/* ── Page heading (shared across all pages) ── */
.page-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 0;
}

.page-subheading {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stat card container */
.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Stat card header row */
.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* Stat card title label */
.stat-card-label {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #111827;
}

/* Stat card large number */
.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: #111827;
    margin-top: -15px;
}

/* Stat card subtitle */
.stat-card-subtitle {
    font-size: 13px;
    margin: 0;
    color: #6b7280;
    margin-top: 5px;
}

/* Stat card teal icon box */
.stat-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e0f2f1;
}

/* Legacy stat icon (used in analytics page) */
.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ededf0;
    margin-top: -5px;
}

/* Quick action rounded-square icon */
.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e0f2f1;
    color: #00877b;
}

/* Top-FAQ numbered circle badge */
.faq-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-num.rest {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Drawer Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.drawer-backdrop {
    animation: fadeIn 0.3s ease-out forwards;
}

.drawer-backdrop.closing {
    animation: fadeOut 0.3s ease-in forwards;
}

.drawer-content {
    animation: slideIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.drawer-content.closing {
    animation: slideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Custom Pagination Styles */
.custom-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-button {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #202223;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-button:hover:not(:disabled) {
    background-color: #f6f6f7;
    border-color: #c9cccf;
}

.pagination-button.active {
    background-color: #202223;
    color: #ffffff;
    border-color: #202223;
}

.pagination-button.active:hover {
    background-color: #202223;
    color: #ffffff;
    border-color: #202223;
}

.pagination-button:disabled {
    background-color: #f1f2f3;
    color: #8c9196;
    border-color: #e1e3e5;
    cursor: not-allowed;
}

/* ── OnboardingWizard ── */
.onboarding-main {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.onboarding-container {
    margin: auto;
    width: 100%;
    max-width: 35rem;
    padding: 40px 0;
}

.onboarding-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.onboarding-progress {
    padding: 20px 20px 1px;
}

.onboarding-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.onboarding-progress-step {
    display: flex;
    align-items: center;
}

.onboarding-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.onboarding-progress-circle.active {
    background-color: #000000;
    color: white;
}

.onboarding-progress-line {
    width: 60px;
    height: 2px;
    background-color: #e5e7eb;
    transition: all 0.3s ease;
}

.onboarding-progress-line.active {
    background-color: #000000;
}

.onboarding-header {
    background: #000000;
    padding: 25px;
    text-align: center;
    color: white;
}

.onboarding-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.onboarding-subtitle {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.onboarding-content {
    padding: 1.5rem;
    overflow-y: auto;
}

.onboarding-nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.onboarding-nav.has-previous {
    justify-content: space-between;
}

.welcome-features {
    display: grid;
    gap: 24px;
    margin: 8px 0 8px;
}

.feature-item h3 {
    color: #1f2937;
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 13px;
}

.plan-notice {
    background: #fef9c3;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px 16px;
}

.plan-notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #92400e;
    margin-bottom: 6px;
}

.plan-notice p {
    margin: 0;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lang-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lang-card {
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.lang-card.selected {
    border: 1px solid #000000;
    background: #fafafa;
}

.lang-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lang-card-circle {
    width: 15px;
    height: 15px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    background: #fff;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-card-circle.selected {
    border-color: #1a1a1a;
    background: #1a1a1a;
    box-shadow: none;
}

.lang-card-circle.selected::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}


.provider-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.provider-btn {
    border-radius: 7px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    transition: all 0.15s;
}

.provider-btn.active {
    border: 2px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px;
}

.section-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.section-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 4px 0 20px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.saved-badge {
    color: #10b981;
    font-weight: 400;
    margin-left: 6px;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 4px;
}


@media (max-width: 480px) {
    .onboarding-container {
        padding: 0.5rem;
    }

    .onboarding-header {
        padding: 1.5rem 1rem;
    }

    .onboarding-content {
        padding: 1rem;
    }

    .onboarding-title {
        font-size: 1.1rem;
    }
}