.business-hub-page {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 2rem;
    padding: 2rem;
    margin: 0 auto;
}

.business-hub-page section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.business-hub-page h1,
.business-hub-page h2 {
    margin-top: 0;
    font-weight: 600;
    color: #1e293b;
}

#business-info {
    grid-column: 1 / -1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

#stripe-management,
#subscription-section,
#team-management {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-input {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f9fafb;
}

.address-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.address-fields input {
    width: 100%;
}

#card-form,
#invite-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#card-element {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
}

#card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card-box {
    flex: 1 1 300px;
    max-width: 340px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
}

.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.card-box.default::after {
    content: "Default";
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.card-brand-icon {
    width: 36px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.card-number {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.card-expiry {
    font-size: 0.85rem;
    color: #dbeafe;
}

.card-brand {
    font-size: 0.85rem;
    color: #cbd5fd;
    text-transform: capitalize;
}

.btn-set-default {
    margin-top: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    background: white;
    color: #1e3a8a;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-set-default:hover {
    background: #f1f5f9;
}

#subscription-info p {
    margin: 0.25rem 0;
}

#team-list {
    list-style: none;
    padding-left: 0;
}

#team-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

input[type="email"],
input[type="text"] {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #ffffff;
}

button {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background-color: #374151;
}

.error-text {
    color: #dc2626;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .business-hub-page {
        grid-template-columns: 1fr 1fr;
        padding: 1.25rem;
    }

}

@media (max-width: 575px) {
    .business-hub-page {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.business-details {
    flex: 1 1 300px;
    margin-right: 2rem;
}

.business-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.business-details p {
    margin: 0.25rem 0;
    color: #444;
}

.business-switcher {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.business-switcher label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.business-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #f9f9f9;
}


.subscription-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s ease;
}

.subscription-card:hover {
    transform: translateY(-2px);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subscription-plan {
    font-size: 1.1rem;
    color: #1f2937;
}

.subscription-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    text-transform: capitalize;
    font-weight: 500;
}

.subscription-status.active {
    background-color: #d1fae5;
    color: #065f46;
}

.subscription-status.canceled {
    background-color: #fee2e2;
    color: #991b1b;
}

.subscription-status.trialing {
    background-color: #e0f2fe;
    color: #0369a1;
}

.subscription-body p {
    margin: 0.2rem 0;
    font-size: 0.95rem;
    color: #374151;
}