.app-section {
    display: none;
    animation: fadeUp .25s ease;
}

.app-section.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.section-head,
.section-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    box-sizing: border-box;
}

/* The only scroller in the whole app */
.section-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.ar-view {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

/* Respect JS-applied inline display:none */
.ar-view[style*="none"] {
    display: none !important;
}

/* Profile output section head */
#ar-view-output .section-head {
    z-index: 100;
    background: var(--bg);
    padding: 12px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.main-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--footer-h, 38px);
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */

.report-shortcut-bar::-webkit-scrollbar {
    display: none;
}

.report-shortcut-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.report-shortcut-bar .shortcut-chip {
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.rsb-chip {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #ecebee;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #5a5a68;
    white-space: nowrap;
    cursor: pointer;
}

.rsb-chip ion-icon,
.rsb-chip i {
    font-size: 14px;
}

.rsb-chip.active {
    background: var(--primary, #ff6a00);
    border-color: var(--primary, #ff6a00);
    color: #fff;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--warn);
    margin: 0;
}

.section-sub {
    font-size: 12px;
    color: var(--warn);
    margin: 0;
}

.btn-back-section {
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 50%;
    border: 1px solid #333;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .18s;
    margin-bottom: 15px;
    /* margin-left: 14px; */
}

.ps-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
}

#pd-profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

#pd-profile-name .pd-sub {
    display: flex;
    align-items: center;
    gap: 4px;
}

#ps-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.btn-add-profile {
    margin-left: auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(249, 115, 22, .25);
    transition: all .2s ease;
    cursor: pointer;
}


/* ══════════════════════════════════════════════════════════
   PROFILE GRID
══════════════════════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.pc-primary-badge {
    font-size: 9px;
    font-weight: 700;
    color: var(--saffron-dk);
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 99px;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 4px;
}

.profile-card:hover {
    border-color: var(--saffron);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, .15);
}

.pc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(249, 115, 22, .3);
}

.pc-info {
    flex: 1;
    min-width: 0;
}

.pc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-meta {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 3px;
}

/* Action chips (delete / edit) under the name/meta */
.pc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.pc-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    opacity: 1;
    padding: 0;
    transition: transform .15s, opacity .15s;
}

.pc-btn:hover {
    transform: scale(1.08);
    opacity: .85;
}

.pc-delete {
    background: rgba(239, 68, 68, .12);
    color: var(--error);
}

.pc-edit {
    background: #d9edfb;
    color: #2f8fdb;
}

.pc-status {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    transition: .25s;
    flex-shrink: 0;
}

.pc-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.pc-arrow {
    color: var(--saffron-mid);
    font-size: 13px;
    align-self: center;
}

.profile-card.add-card {
    border-style: dashed;
    background: transparent;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    color: var(--slate-lt);
}

.profile-card.add-card:hover {
    border-color: var(--saffron);
    color: var(--saffron);
    background: var(--saffron-lt);
}

.add-card i {
    font-size: 22px;
}

.add-card span {
    font-size: 13px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   CREATE PROFILE FORM
══════════════════════════════════════════════════════════ */

.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
}

.form-card-sub {
    font-size: 12.5px;
    color: var(--slate-lt);
    margin-bottom: 20px;
}

/* ── Layout ── */
.form-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group.full {
    width: 100%;
}

/* ── Fields ── */
.form-group label {
    display: block;
    font-size: 11.5px;
    color: var(--slate-mid);
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--slate);
    transition: border-color .18s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--saffron);
    background: #fff;
}

/* ── Error ── */
.form-err {
    color: var(--error);
    font-size: 12px;
    margin-bottom: 12px;
}

/* ── Button ── */
.form-actions {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.btn-create-profile {
    width: 100%;
    padding: 12px 28px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(249, 115, 22, .3);
    transition: all .2s;
}

.btn-create-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(249, 115, 22, .4);
}

.btn-create-profile:disabled {
    opacity: .5;
    transform: none;
}

/* ══════════════════════════════════════════════════════════
   PROFILE DETAIL TABS
══════════════════════════════════════════════════════════ */
.profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.ptab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    text-align: center;
    background: none;
    color: var(--warn);
}

.ptab i {
    font-size: 24px;
    line-height: 1;
}

.ptab span {
    font-size: 10px;
    line-height: 1;
}

.ptab-panel {
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ptab-panel.active {
    display: block;
}

/* ── PROFILE SWITCHER ── */
.profile-switcher {
    position: relative;
}

.ps-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    /* color: ; */
    cursor: pointer;
    line-height: 1.4;
}



.ps-arrow {
    font-size: 9px;
    transition: transform .2s ease;
}

.ps-arrow.open {
    transform: rotate(180deg);
}

.ps-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    z-index: 500;
    overflow: hidden;
}

.ps-dropdown.open {
    display: block;
    animation: fadeUp .18s ease;
}

.ps-list {
    display: flex;
    flex-direction: column;
}

.ps-item {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--slate);
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.ps-item:last-child {
    border-bottom: none;
}

.ps-item:hover {
    background: var(--saffron-lt);
    color: var(--maroon);
}

.ps-item.active {
    background: var(--saffron-lt);
    color: var(--maroon);
    font-weight: 700;
    border-left: 3px solid var(--saffron);
}


/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: var(--slate);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn .3s ease;
    max-width: 320px;
}

.toast-item.success {
    background: var(--success);
}

.toast-item.error {
    background: var(--error);
}

.toast-item.warn {
    background: var(--warn);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ══════════════════════════════════════════════════════════
   NO PROFILE NOTE
══════════════════════════════════════════════════════════ */
.no-profile-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    color: var(--slate-lt);
}

.no-profile-note i {
    font-size: 44px;
}

.no-profile-note p {
    font-size: 14px;
}

.no-profile-note button {
    padding: 9px 24px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

#pd-profile-name {
    padding: 2px 0px;
    font-size: 14.5px;
}



@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }
}

@media (max-width: 767.98px) {
    #ar-view-output {
        overflow: hidden;
    }


    #ar-view-output .ptab-panel.active {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .section-title {
        font-size: 18px;
    }

    .kundli-row {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        gap: 0;
    }

    .ptab {
        padding: 9px 14px;
        font-size: 13px;
    }

    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .reg-step-panel {
        padding: 24px 20px;
    }

    #kundli-container,
    .ptab-panel {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .kd-table-wrap {
        margin: 0 0 10px 0;
        border-radius: var(--radius-sm);
    }

    .kundli-table th,
    .kundli-table td,
    .kd-table th,
    .kd-table td {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .kd-section-title {
        font-size: 13.5px;
        margin: 14px 0 6px;
    }

    .kd-chart-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kd-panch-grid,
    .kd-yogi-grid,
    .kd-dasha-row {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }


    .muhurat-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Match responsive */
    .match-pickers-row {
        grid-template-columns: 1fr;
    }

    .match-vs-divider {
        transform: rotate(90deg);
        margin: -4px 0;
    }

    .match-score-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .match-dosha-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    #logoutModal .modal-dialog {
        max-width: 280px;
        margin: 0 auto;
    }

    #logoutModal .modal-body {
        padding: 16px;
    }

    #logoutModal .modal-footer {
        padding: 12px 16px 16px;
        gap: 8px;
    }

    #logoutModal .btn {
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .xm-dialog {
        max-width: 100%;
        margin: 0;
    }

    .xm-content {
        border-radius: 16px 16px 0 0;
    }

    .xm-modal .modal-dialog {
        align-items: flex-end;
        min-height: 100%;
        margin: 0;
    }

    .xm-otp-box {
        width: 40px;
        height: 46px;
        font-size: 1.1rem;
    }

    .xm-otp-row {
        gap: 6px;
    }
}

@media (max-width: 479.98px) {
    :root {
        --header-h: 54px;
    }

    .header-mobile {
        display: none;
    }

    .logo-mark {
        font-size: 15px;
    }

    .otp-boxes {
        gap: 7px;
    }

    .otp-box {
        width: 36px;
        height: 44px;
        font-size: 16px;
    }

    .wallet-badge {
        padding: 4px 10px;
        font-size: 11.5px;
    }

    .kd-info-card .kd-table {
        width: 100%;
        table-layout: fixed;
    }

    .kd-info-card .kd-table td:first-child {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
        font-weight: 600;
    }

    .kd-info-card .kd-table td:last-child {
        width: auto;
        white-space: normal;
        word-break: break-word;
    }

    .kundli-table th,
    .kundli-table td,
    .kd-table th,
    .kd-table td {
        padding: 5px 6px;
        font-size: 11px;
    }

    .kd-info-card .kd-table td {
        font-size: 11.5px;
    }

    /* Match responsive */
    .match-score-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .match-score-ring {
        width: 80px;
        height: 80px;
    }

    .match-guna-big {
        font-size: 40px;
    }
}

@media (max-width: 320px) {
    #ar-view-output .section-head {
        gap: 5px;
        padding: 0;
    }
}


/* ── Page Hero ── */
.page-hero {
    position: relative;
    background: linear-gradient(160deg, var(--maroon) 0%, #a83250 40%, var(--saffron-dk) 100%);
    border-radius: var(--radius);
    padding: 48px 32px 40px;
    margin-bottom: 24px;
    overflow: hidden;
    text-align: center;
}

.page-hero-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, .08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 99px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Content Block ── */
.content-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.content-block-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.content-block-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--saffron);
    flex-shrink: 0;
}

.content-block-icon.icon-gold {
    background: var(--gold-lt);
    border-color: #fde68a;
    color: var(--gold);
}

.content-block-icon.icon-maroon {
    background: var(--maroon-lt);
    border-color: #fecdd3;
    color: var(--maroon);
}

.content-block-icon.icon-indigo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--indigo);
}

.content-block-icon.icon-teal {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f766e;
}

.content-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--maroon);
    margin: 0;
    line-height: 1.2;
}

.content-block-line {
    width: 36px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 99px;
    margin-top: 6px;
}

.content-block-body {
    font-size: 13.5px;
    color: var(--slate-mid);
    line-height: 1.7;
}

.content-block-body p {
    margin-bottom: 10px;
}

.content-block-body p:last-child {
    margin-bottom: 0;
}

.content-block-body strong {
    color: var(--maroon);
    font-weight: 700;
}

.content-block-body em {
    color: var(--slate);
    font-style: italic;
    font-weight: 500;
}

/* ── Card Grid ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.card-grid-item {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all .2s ease;
}

.card-grid-item:hover {
    transform: translateY(-2px);
    border-color: var(--saffron-mid);
}

.card-grid-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--saffron);
    margin-bottom: 12px;
}

.card-grid-icon.icon-maroon {
    background: var(--maroon-lt);
    border-color: #fecdd3;
    color: var(--maroon);
}

.card-grid-icon.icon-indigo {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--indigo);
}

.card-grid-icon.icon-teal {
    background: #f0fdfa;
    border-color: #99f6e4;
    color: #0f766e;
}

.card-grid-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 6px;
}

.card-grid-desc {
    font-size: 12.5px;
    color: var(--slate-lt);
    line-height: 1.6;
    margin: 0;
}

/* ── Numbered Grid ── */
.numbered-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px;
}

.numbered-grid-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 22px 22px 22px 72px;
    transition: all .2s ease;
}

.numbered-grid-item:hover {
    border-color: var(--indigo);
}

.numbered-grid-num {
    position: absolute;
    left: 22px;
    top: 22px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--indigo);
}

.numbered-grid-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 6px;
}

.numbered-grid-item p {
    font-size: 12.5px;
    color: var(--slate-mid);
    line-height: 1.65;
    margin: 0;
}

.numbered-grid-item strong {
    color: var(--indigo);
    font-weight: 600;
}

/* ── Profile Cards ── */
.profile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.profile-card-item {
    display: flex;
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 24px;
    transition: all .25s ease;
}

.profile-card-item:hover {
    border-color: var(--saffron-mid);
    transform: translateY(-1px);
}

.profile-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.profile-card-avatar.alt {
    background: var(--grad-maroon);
}

.profile-card-body {
    flex: 1;
    min-width: 0;
}

.profile-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 4px;
}

.profile-card-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--saffron);
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 99px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.profile-card-role i {
    font-size: 11px;
}

.profile-card-bio {
    font-size: 12.5px;
    color: var(--slate-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ── Tag Pills ── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--slate-mid);
}

.tag-pill i {
    font-size: 9px;
    color: var(--saffron);
}

/* ── Summary Strip ── */
.summary-strip {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    margin-bottom: 24px;
}

.summary-strip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--slate-lt);
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-strip-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 6px;
}

.summary-strip-sub {
    font-size: 12px;
    color: var(--slate-lt);
    font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .page-hero {
        padding: 36px 20px 32px;
    }

    .page-hero-title {
        font-size: 24px;
    }

    .page-hero-sub {
        font-size: 13px;
    }

    .content-block {
        padding: 20px 18px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-card-role {
        margin-left: auto;
        margin-right: auto;
    }

    .tag-list {
        justify-content: center;
    }

    .numbered-grid-item {
        padding-left: 22px;
        padding-top: 60px;
    }

    .numbered-grid-num {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .numbered-grid {
        grid-template-columns: 1fr;
    }

    .profile-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .numbered-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero-title {
        font-size: 36px;
    }
}


/* ══════════════════════════════════════════════════════════
   HOME SEARCH ROW
══════════════════════════════════════════════════════════ */
.home-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 7px;
}

.home-search-wrap {
    flex: 1;
    position: relative;
    margin: 0;
}

.home-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid var(--saffron);
    border-radius: 32px;
    background: var(--surface);
    font-size: 14px;
    color: var(--slate);
    outline: none;
}

.home-search-input:focus {
    border-color: var(--saffron);
}

.home-search-input::placeholder {
    color: var(--slate-lt);
}

.home-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-lt);
    font-size: 14px;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   FILTER BUTTON
══════════════════════════════════════════════════════════ */
.home-filter-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--slate-mid);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
}

.home-filter-btn:hover {
    background: var(--saffron-lt);
    border-color: var(--saffron);
    color: var(--saffron);
}

.home-filter-btn.has-active-filter {
    background: var(--saffron);
    border-color: var(--saffron-dk);
    color: #fff;
}

.filter-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    display: none;
    pointer-events: none;
}

.home-filter-btn.has-active-filter .filter-dot {
    display: block;
}

/* ══════════════════════════════════════════════════════════
   STAR RATINGS  (home grid)
══════════════════════════════════════════════════════════ */
.home-app-rating {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 2px;
    line-height: 1;
}

.home-app-rating .star-filled {
    color: var(--gold);
}

.home-app-rating .star-empty {
    color: var(--slate-xlt);
}

/* Main Container */

.module-profile-selector {
    display: flex;
    flex-direction: column;
}

/* ==========================
   Header
========================== */

.mps-header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f8f7f5;
    padding-bottom: 14px;
    margin-bottom: 12px;
}

.mps-header-left {
    flex: 1;
}

.mps-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 5px;
}

.mps-subtitle {
    font-size: 13px;
    color: var(--slate-mid);
    line-height: 1.5;
}

.mps-subtitle strong {
    color: var(--saffron);
}

/* ==========================
   Add Button
========================== */

.mps-add-btn {
    width: 38px;
    height: 38px;

    border-radius: 50%;
    background: var(--saffron);

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: .25s;

    flex-shrink: 0;
}

.mps-add-btn:hover {
    transform: rotate(90deg);
}

/* ==========================
   Profile List
========================== */

.mps-profile-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.mps-profile-list::-webkit-scrollbar {
    width: 6px;
}

.mps-profile-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 20px;
}

/* ══════════════════════════════════════════════════════════
   BUY / STATUS BUTTONS  (home grid)
══════════════════════════════════════════════════════════ */
.app-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px;
    font-size: 12px;
    border-radius: 8px;
    border: 1.5px solid var(--saffron);
    background: var(--surface);
    color: var(--saffron-dk);
    cursor: pointer;
    transition: all .15s ease;
    width: 100%;
    text-align: center;
}

/* Added to cart */
.app-buy-btn.added {
    background: var(--saffron-lt);
    color: var(--success);
    border-color: var(--success);
    pointer-events: all;
    cursor: pointer;
}

/* Downloaded / Purchased */
.app-buy-btn.downloaded,
.app-buy-btn.free {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
    pointer-events: all;
    cursor: pointer;
}


.price-buy-group {
    display: flex;
    align-items: center;
    justify-content: center;
    /* space-between ki jagah center */
    gap: 6px;
    /* control gap yahin se */
    width: 100%;
    margin-top: 6px;
}

.price-tag {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Sirf price-buy-group ke andar wale button ka width override */
.price-buy-group .app-buy-btn {
    width: auto;
    min-width: 44px;
    margin-top: 0;
    flex-shrink: 0;
}

.price-buy-group .app-buy-btn.icon-only {
    height: 24px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.price-buy-group .app-buy-btn.icon-only i {
    margin: 0;
    font-size: 13px;
}

/* ══════════════════════════════════════════════════════════
   CART HEADER BADGE
══════════════════════════════════════════════════════════ */
.cart-trigger {
    position: relative;
    cursor: pointer;
    /*background: var(--gold-lt);
    border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 5px 14px;*/
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    transition: border-color .15s, background .15s;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: teal;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ══════════════════════════════════════════════════════════
   FILTER BOTTOM SHEET
══════════════════════════════════════════════════════════ */
.filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, .5);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.filter-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    z-index: 1101;
    padding: 12px 20px 36px;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
    max-height: 88vh;
    overflow-y: auto;
}

.filter-sheet.open {
    transform: translateY(0);
}

.filter-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0 auto 18px;
}

.filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.filter-sheet-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--slate);
}

.filter-reset-btn {
    background: none;
    border: none;
    color: var(--saffron-dk);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background .15s;
}

.filter-reset-btn:hover {
    background: var(--saffron-lt);
}

/* ── Filter groups & chips ── */
.filter-group {
    margin-bottom: 22px;
}

.filter-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-lt);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 7px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-mid);
    cursor: pointer;
    transition: all .15s ease;
}

.filter-chip:hover {
    border-color: var(--saffron);
    color: var(--saffron-dk);
    background: var(--saffron-lt);
}

.filter-chip.active {
    background: var(--saffron);
    border-color: var(--saffron-dk);
    color: #fff;
}

.filter-apply-btn {
    width: 100%;
    padding: 14px;
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s, opacity .15s;
    letter-spacing: .3px;
}

.filter-apply-btn:hover {
    background: var(--saffron-dk);
}

.filter-apply-btn:active {
    opacity: .88;
}

/* ══════════════════════════════════════════════════════════
   CART SECTION  —  Amazon-style list layout
══════════════════════════════════════════════════════════ */
.cart-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 12px;
    margin-bottom: 16px;
}

.cart-summary-bar .csb-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-mid);
}

.cart-summary-bar .csb-total {
    font-size: 16px;
    font-weight: 800;
    color: var(--saffron-dk);
}

.cart-summary-bar .csb-label {
    font-size: 11px;
    color: var(--slate-lt);
    font-weight: 400;
}

/* List container */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 80px;
    /* space for sticky checkout */
}

/* Single cart row */
.cart-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: stretch;
    gap: 14px;
    position: relative;
}

/* Left: label badge */
.cart-row-badge {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--saffron-lt);
    border: 1.5px solid var(--saffron-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--saffron-dk);
    text-align: center;
    line-height: 1.2;
    padding: 4px;
}

/* Middle: info */
.cart-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.cart-row-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-row-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
}

.cart-row-rating .rating-count {
    font-size: 11px;
    color: var(--slate-lt);
    letter-spacing: 0;
}

.cart-row-meta {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 1px;
}

.cart-row-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate);
    margin-top: 4px;
}

.cart-row-price .price-currency {
    font-size: 13px;
    font-weight: 500;
    vertical-align: super;
    color: var(--slate-mid);
}

/* Right: actions */
.cart-row-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.cart-row-buy-btn {
    padding: 9px 16px;
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

.cart-row-buy-btn:hover {
    background: var(--saffron-dk);
}

.cart-row-remove-btn {
    background: none;
    border: none;
    color: var(--slate-xlt);
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    line-height: 1;
    transition: color .15s, background .15s;
}

.cart-row-remove-btn:hover {
    color: #e53;
    background: #fef2f2;
}

/* In-stock badge */
.cart-row-stock {
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Sticky checkout bar at the bottom */
.cart-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 500;
}

.cart-checkout-bar .cob-total-wrap {
    line-height: 1.2;
}

.cart-checkout-bar .cob-label {
    font-size: 11px;
    color: var(--slate-lt);
}

.cart-checkout-bar .cob-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--slate);
}

.cart-checkout-btn {
    flex-shrink: 0;
    padding: 6px 17px;
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-checkout-btn:hover {
    background: var(--saffron-dk);
}

/* Empty state */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    color: var(--slate-lt);
}

.cart-empty-state i {
    font-size: 44px;
    color: var(--saffron-mid);
    margin-bottom: 14px;
}

.cart-empty-state p {
    font-size: 15px;
    color: var(--slate-mid);
    margin-bottom: 20px;
    font-weight: 500;
}





/* ══════════════════════════════════════════════════════════
   PAYMENT MODAL
══════════════════════════════════════════════════════════ */
.pay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, .55);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.pay-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.pay-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    z-index: 1201;
    max-height: 92vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -8px 32px rgba(30, 41, 59, .15);
}

.pay-modal.open {
    transform: translateY(0);
}

/* Steps — only one visible at a time */
.pay-step {
    padding: 0 0 32px;
    max-height: 92vh;
    overflow-y: auto;
}

.pay-step.d-none {
    display: none !important;
}

/* Header inside modal */
.pay-modal-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.pay-close-btn,
.pay-back-btn {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    color: var(--slate-mid);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.pay-close-btn:hover,
.pay-back-btn:hover {
    background: var(--saffron-lt);
    color: var(--saffron-dk);
}

.pay-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--slate);
}

.pay-modal-sub {
    font-size: 22px;
    font-weight: 800;
    color: var(--saffron-dk);
    margin-top: 2px;
}

/* Body padding */
.pay-body {
    padding: 20px 20px 0;
}

/* Payment method cards */
.pay-methods {
    padding: 14px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    width: 100%;
}

.pay-method-card:hover {
    border-color: var(--saffron);
    background: var(--saffron-lt);
    box-shadow: 0 2px 12px rgba(249, 115, 22, .1);
}

.pay-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-method-info {
    flex: 1;
}

.pay-method-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
}

.pay-method-desc {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 2px;
}

.pay-method-arrow {
    color: var(--slate-xlt);
    font-size: 13px;
}

/* Secure note */
.pay-secure-note {
    text-align: center;
    font-size: 11.5px;
    color: var(--slate-lt);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pay-secure-note i {
    color: var(--success);
}

/* UPI app shortcuts */
.pay-upi-apps {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.pay-upi-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-mid);
    flex: 1;
}

.pay-upi-app img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pay-upi-app:hover {
    border-color: var(--saffron);
    background: var(--saffron-lt);
}

.pay-upi-app.selected {
    border-color: var(--saffron);
    background: var(--saffron-lt);
}

/* Divider */
.pay-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--slate-lt);
    font-size: 12px;
}

.pay-divider::before,
.pay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Form fields */
.pay-field-group {
    margin-bottom: 14px;
}

.pay-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-mid);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pay-field-input {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-size: 15px;
    color: var(--slate);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: 'Inter', monospace;
}

.pay-field-input:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px var(--saffron-mid);
    background: var(--surface);
}

.pay-field-hint {
    font-size: 11px;
    color: var(--slate-lt);
    margin-top: 5px;
}

/* Card input row */
.pay-card-input-wrap {
    position: relative;
}

.pay-card-networks {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    font-size: 22px;
    color: var(--slate-xlt);
}

/* Bank grid */
.pay-bank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.pay-bank-btn {
    padding: 16px 8px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-mid);
    cursor: pointer;
    transition: all .15s;
}

.pay-bank-btn:hover {
    border-color: var(--saffron);
    background: var(--saffron-lt);
    color: var(--saffron-dk);
}

/* Submit button */
.pay-submit-btn {
    width: 100%;
    margin-top: 6px;
    padding: 15px;
    background: var(--saffron);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
    letter-spacing: .3px;
}

.pay-submit-btn:hover {
    background: var(--saffron-dk);
}

.pay-submit-btn:disabled {
    opacity: .6;
    pointer-events: none;
}

/* ── Processing ── */
.pay-processing-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 40px;
    gap: 28px;
}

/* Spinner ring */
.pay-spinner-ring {
    width: 64px;
    height: 64px;
    border: 5px solid var(--saffron-mid);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: pay-spin .8s linear infinite;
    flex-shrink: 0;
}

@keyframes pay-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Processing step list */
.pay-processing-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.pay-pstep {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate-lt);
    transition: all .3s ease;
}

.pay-pstep.active {
    background: var(--saffron-lt);
    color: var(--saffron-dk);
    border: 1px solid var(--saffron-mid);
}

.pay-pstep.done {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.pay-pstep-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: var(--border);
    color: var(--slate-lt);
}

.pay-pstep.active .pay-pstep-icon {
    background: var(--saffron);
    color: #fff;
    animation: pay-pulse .8s ease infinite;
}

.pay-pstep.done .pay-pstep-icon {
    background: var(--success);
    color: #fff;
}

@keyframes pay-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

.pay-processing-note {
    font-size: 11.5px;
    color: var(--slate-lt);
    text-align: center;
}

/* ── Success ── */
.pay-success-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 36px;
    text-align: center;
    gap: 8px;
}

.pay-success-circle {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

/* SVG checkmark animation */
.pay-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    stroke: var(--success);
    stroke-width: 2;
}

.pay-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: pay-stroke .5s cubic-bezier(.65, 0, .45, 1) .1s forwards;
}

.pay-checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: pay-stroke .35s cubic-bezier(.65, 0, .45, 1) .55s forwards;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes pay-stroke {
    to {
        stroke-dashoffset: 0;
    }
}

.pay-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--slate);
}

.pay-success-amount {
    font-size: 30px;
    font-weight: 800;
    color: var(--success);
}

.pay-success-txn {
    font-size: 12px;
    color: var(--slate-lt);
    margin-top: 2px;
}

.pay-success-items {
    margin-top: 12px;
    width: 100%;
    background: var(--bg);
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-success-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--slate-mid);
}

.pay-success-item-row .psi-name {
    font-weight: 600;
    color: var(--slate);
}

.pay-success-item-row .psi-price {
    color: var(--saffron-dk);
    font-weight: 700;
}




/* ══════════════════════════════════════════════════════════
   WALLET SECTION  —  built on top of your existing base theme
   (uses --saffron / --gold / --maroon / --surface / --border /
    --radius / --shadow / --slate variables already in :root)
   Append this to your main stylesheet.
════════════════════════════════════════════════════════════ */

/* ── Summary cards ── */
.w-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.w-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: all .2s ease;
}

.w-summary-card:hover {
    transform: translateY(-2px);
    border-color: var(--saffron-mid);
}

.w-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #fff;
}

.w-card-balance .w-summary-icon {
    background: var(--grad-primary);
}

.w-card-credit .w-summary-icon {
    background: linear-gradient(145deg, #16a34a, #22c55e);
}

.w-card-debit .w-summary-icon {
    background: linear-gradient(145deg, #dc2626, #f87171);
}

.w-summary-body {
    min-width: 0;
}

.w-summary-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--slate-lt);
    font-weight: 600;
    margin-bottom: 3px;
}

.w-summary-value {
    font-size: 17px;
    font-weight: 800;
    color: var(--maroon);
}

.w-card-credit .w-summary-value {
    color: var(--success);
}

.w-card-debit .w-summary-value {
    color: var(--error);
}

/* ── Add Money button ── */
.w-add-money-btn {
    width: 100%;
    padding: 13px;
    background: var(--grad-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 3px 12px rgba(249, 115, 22, .3);
    transition: all .2s ease;
    margin-bottom: 20px;
    cursor: pointer;
}

.w-add-money-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(249, 115, 22, .4);
}

/* ── Transaction card ── */
.w-txn-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.w-txn-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(135deg, var(--maroon-lt), #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.w-txn-card-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--maroon);
    display: flex;
    align-items: center;
    gap: 8px;
}

.w-txn-card-head i {
    color: var(--saffron);
}

.w-txn-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-lt);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* category tag shown inside a txn remark, e.g. "QNA", "CHART" */
.w-txn-tag {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--saffron-dk);
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 99px;
    padding: 1px 8px;
    margin-right: 6px;
    vertical-align: middle;
}

.w-txn-list {
    display: flex;
    flex-direction: column;
}

/* single row (built by _renderTxnList in wallet.js) */
.w-txn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-soft);
    transition: background .15s;
}

.w-txn-row:last-child {
    border-bottom: none;
}

.w-txn-row:hover {
    background: var(--saffron-lt);
}

.w-txn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.w-txn-icon-credit {
    background: #dcfce7;
    color: var(--success);
}

.w-txn-icon-debit {
    background: #fee2e2;
    color: var(--error);
}

.w-txn-info {
    flex: 1;
    min-width: 0;
}

.w-txn-source {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-txn-remark {
    font-size: 11.5px;
    color: var(--slate-mid);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-txn-date {
    font-size: 10.5px;
    color: var(--slate-lt);
    margin-top: 3px;
}

.w-txn-status {
    font-weight: 600;
    text-transform: capitalize;
}

.w-txn-amount {
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    white-space: nowrap;
}

.w-txn-credit {
    color: var(--success);
}

.w-txn-debit {
    color: var(--error);
}

/* Empty state */
.w-txn-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 50px 20px;
    text-align: center;
    color: var(--slate-lt);
}

.w-txn-empty i {
    font-size: 38px;
    color: var(--saffron-mid);
}

.w-txn-empty p {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-mid);
}

.w-txn-empty span {
    font-size: 12px;
}

/* ── Skeleton loader ── */
.w-skeleton {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.w-skel-card,
.w-skel-btn,
.w-skel-row {
    background: linear-gradient(90deg, var(--border-soft) 25%, var(--border) 37%, var(--border-soft) 63%);
    background-size: 400% 100%;
    animation: w-shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

.w-skel-card {
    height: 78px;
}

.w-skel-btn {
    height: 46px;
}

.w-skel-row {
    height: 64px;
}

@keyframes w-shimmer {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ── Add Money modal specifics (built on your .pay-modal base) ── */
.w-add-modal {
    max-width: 480px;
    margin: 0 auto;
}

.w-amount-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    padding: 4px 4px 4px 16px;
    transition: border-color .18s, background .18s;
}

.w-amount-input-wrap:focus-within {
    border-color: var(--saffron);
    background: #fff;
}

.w-amount-prefix {
    font-size: 20px;
    font-weight: 800;
    color: var(--saffron-dk);
    margin-right: 4px;
}

.w-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--slate);
    padding: 10px 6px;
    font-family: 'Inter', sans-serif;
}

.w-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.w-quick-chip {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-mid);
    cursor: pointer;
    transition: all .15s ease;
}

.w-quick-chip:hover {
    border-color: var(--saffron);
    color: var(--saffron-dk);
    background: var(--saffron-lt);
}

.w-quick-chip.active {
    background: var(--saffron);
    border-color: var(--saffron-dk);
    color: #fff;
}

/* Success step balance note */
.w-add-balance-note {
    margin-top: 10px;
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--slate-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w-add-balance-note strong {
    font-size: 15px;
    color: var(--maroon);
    font-weight: 800;
}

/* Error step */
.w-add-error-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 24px 30px;
    text-align: center;
}

.w-add-error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fee2e2;
    color: var(--error);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w-add-error-wrap p {
    font-size: 13.5px;
    color: var(--slate-mid);
    max-width: 320px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .w-summary-grid {
        grid-template-columns: 1fr;
    }

    .w-summary-value {
        font-size: 16px;
    }

    .w-txn-row {
        padding: 12px 14px;
    }
}


.wallet-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 20px 0 8px;
}

.wallet-pagination button {
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: var(--radius-xs);

    background: var(--surface);
    color: var(--slate-mid);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.wallet-pagination button:hover:not(:disabled) {
    border-color: var(--saffron);
    background: var(--saffron-lt);
    color: var(--saffron-dk);
    transform: translateY(-1px);
}

.wallet-pagination button.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow);
}

.wallet-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
    background: var(--bg);
    color: var(--slate-lt);
    transform: none;
    box-shadow: none;
}

.wallet-pagination button i {
    font-size: 12px;
}

.wallet-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    color: var(--slate-lt);
    font-weight: 700;
    user-select: none;
}

/* ══════════════════════════════════════════════════════════
   MY ACCOUNT
══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */

.acc-hero {
    position: relative;
    background: linear-gradient(160deg,
            var(--gold) 0%,
            var(--saffron) 55%,
            var(--saffron-dk) 100%);
    border-radius: var(--radius);
    padding: 36px 24px 30px;
    margin-bottom: 18px;
    overflow: hidden;
    text-align: center;
}

.acc-hero-glow {
    position: absolute;
    top: -55%;
    left: 50%;
    transform: translateX(-50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle,
            rgba(255, 255, 255, .22) 0%,
            transparent 70%);
    pointer-events: none;
}

.acc-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--saffron-dk);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    margin-bottom: 10px;
    overflow: hidden;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.acc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.acc-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.acc-mobile {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    letter-spacing: .3px;
}

.acc-created {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-created::before {
    content: "\f073";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Birthday Banner ──────────────────────────────────── */

.acc-birthday-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg,
            var(--saffron-lt),
            var(--gold-lt));
    border: 1px solid var(--saffron-mid);
    border-radius: var(--radius);
    text-align: left;
    transition: .18s ease;
}

.acc-birthday-banner:hover {
    border-color: var(--saffron);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.acc-bday-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--maroon);
}

.acc-bday-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.acc-bday-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow);
    color: var(--saffron);
    font-size: 17px;
}

/* ── Quick Actions ────────────────────────────────────── */

.acc-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.acc-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--slate-mid);
    font-size: 12px;
    font-weight: 600;
    transition: .18s ease;
}

.acc-quick-card:hover {
    border-color: var(--saffron-mid);
    color: var(--maroon);
    transform: translateY(-2px);
}

.acc-quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 12px;
    color: var(--saffron-dk);
    font-size: 17px;
}

/* ── List Cards ───────────────────────────────────────── */

.acc-list-card {
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.acc-list-title {
    padding: 14px 18px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--slate-lt);
}

.acc-list-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: none;
    border: none;
    border-top: 1px solid var(--border-soft);
    text-align: left;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--slate);
    transition: background .15s;
}

.acc-list-card .acc-list-title+.acc-list-item {
    border-top: none;
}

.acc-list-item i:first-child {
    width: 18px;
    text-align: center;
    color: var(--saffron);
    font-size: 15px;
}

.acc-list-item span {
    flex: 1;
}

.acc-list-arrow {
    color: var(--slate-xlt) !important;
    font-size: 12px !important;
}

.acc-list-item:hover {
    background: var(--saffron-lt);
    color: var(--maroon);
}

.acc-list-item:hover i:first-child {
    color: var(--maroon);
}

/* ── Logout ───────────────────────────────────────────── */

.acc-logout-item {
    color: var(--error);
    font-weight: 700;
}

.acc-logout-item i:first-child {
    color: var(--error) !important;
}

.acc-logout-item:hover {
    background: #fef2f2;
    color: var(--error);
}

/* ── Footer ───────────────────────────────────────────── */

.acc-footer-note {
    padding: 6px 0 20px;
    text-align: center;
    font-size: 10.5px;
    color: var(--slate-lt);
    letter-spacing: .3px;
}

.main-tabs-wrap {
    /* position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 850 */
    background: var(--bg);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.main-tabs-wrap::-webkit-scrollbar {
    display: none;
}

@media (min-width: 769px) {
    /* .main-tabs-wrap {
        left: var(--sidebar-w); 
    } */
}

.main-tabs-wrap::-webkit-scrollbar {
    display: none;
}


.main-tabs-bar {

    display: flex;

    flex-wrap: nowrap;

    width: max-content;

    min-width: 100%;

}

.main-tab-btn {
    flex: none;

    border: none;

    background: none;

    outline: none;

    cursor: pointer;

    white-space: nowrap;

    padding: 14px 18px;

    font-size: 14px;

    font-weight: 500;

    color: #333;
    border-bottom: 3px solid #e1e1e1;

}


.main-tab-btn.active {
    color: var(--saffron-dk);
    font-weight: 600;
    border-bottom: 3px solid var(--saffron-dk);
}


@media(max-width:480px) {

    .main-tab-btn {

        padding: 14px 16px;

        font-size: 13px;

    }

}



/* ── COMING SOON SECTION ────────────────────────────────── */
.coming-soon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px 60px;
    text-align: center;
    min-height: 60vh;
}

.coming-soon-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maroon, #6b1020) 0%, var(--saffron, #d4a017) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 12px 40px rgba(107, 16, 32, 0.2);
    animation: csFloat 3s ease-in-out infinite;
}

@keyframes csFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.coming-soon-icon-wrap i {
    font-size: 48px;
    color: #fff;
}

.coming-soon-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 10px;
}

.coming-soon-sub {
    font-size: 14px;
    color: var(--slate-mid, #8e8e93);
    max-width: 280px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(107, 16, 32, 0.08);
    color: var(--maroon, #6b1020);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.coming-soon-badge i {
    font-size: 10px;
    animation: csPulse 1.5s ease-in-out infinite;
}

@keyframes csPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ── TODAY SECTION ──────────────────────────────────────── */
.today-hero-card {
    margin: 14px 0px;
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    overflow: hidden;
}


.today-greeting {
    font-size: 13px;
    margin-bottom: 4px;
}

.today-date {
    font-family: 'Gergia', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.today-day {
    font-size: 13px;
}

.today-quick-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.today-quick-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e8e8ec);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.today-quick-card:active {
    transform: scale(0.97);
}

.today-quick-card .tqc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
    color: #fff;
}

.today-quick-card .tqc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 3px;
}

.today-quick-card .tqc-desc {
    font-size: 11px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.4;
}

.today-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    padding: 12px 0px;
}

/* ── TAB CONTENT TRANSITIONS ────────────────────────────── */
.tab-content-area {
    animation: tabFadeIn 0.25s ease;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 2px;
}

.shop-cat-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 5px;
}

.shop-cat-row::-webkit-scrollbar {
    display: none;
}

.shop-cat-chip {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--saffron);
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #5a5a68;
    white-space: nowrap;
    cursor: pointer;
}

.shop-cat-chip.active {
    background: var(--saffron, #E67E22);
    color: #fff;
    border-color: transparent;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 2px 24px;
}

@media (min-width:640px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:960px) {
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shop-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    border: 1px solid #f4f2f5;
}

.shop-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: #f6f5f8;
    overflow: hidden;
}

.shop-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #27AE60;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    z-index: 2;
}

.shop-card-body {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.shop-card-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--saffron, #E67E22);
}

.shop-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-desc {
    font-size: 11px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 29px;
}

.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 6px;
}

.shop-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.shop-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.shop-mrp {
    font-size: 10.5px;
    color: #b3b3bb;
    text-decoration: line-through;
}

.shop-add-btn {
    border: 1.5px solid var(--saffron, #E67E22);
    color: var(--saffron, #E67E22);
    background: #fff8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.shop-add-btn.added {
    background: var(--saffron, #E67E22);
    color: #fff;
}

.shop-add-btn.purchased {
    background: #eafaf1;
    border-color: #27AE60;
    color: #1e8449;
}



.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 12px 2px 24px;
}

@media (min-width: 640px) {
    .report-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 960px) {
    .report-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.report-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    padding: 20px 16px 8px 0px;
}

/* ── Card ── */
.report-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 14px 8px 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    cursor: pointer;
    transition: box-shadow .2s ease;
}

.report-card:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

/* ── Square icon ── */
.report-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-card-icon ion-icon {
    font-size: 24px;
    color: #fff;
}

.report-icon-text {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
}

/* ── Name ── */
.report-card-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Footer: price left, button right ── */
.report-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.report-card-price {
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
    color: #1a1a2e;
}


.academy-hero {
    padding: 6px 2px 16px;
}

.academy-search-row {
    padding: 0 2px 14px;
}

.academy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 2px 24px;
}

.academy-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    border: 1px solid #f4f2f5;
    cursor: pointer;
}

.academy-card-img {
    position: relative;
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f5f8;
}

.academy-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.academy-enrolled-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: #27AE60;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-bottom-right-radius: 8px;
}

.academy-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.academy-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.academy-card-subtitle {
    font-size: 11.5px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.academy-card-instructor {
    font-size: 11px;
    color: var(--slate-mid, #8e8e93);
    margin-top: 1px;
}

.academy-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    margin-top: 2px;
}

.academy-rating-value {
    font-weight: 800;
    color: #B4690E;
}

.academy-stars {
    color: #E58E26;
    font-size: 10px;
    letter-spacing: 1px;
}

.academy-review-count {
    color: var(--slate-mid, #8e8e93);
    font-size: 10.5px;
}

.academy-card-meta {
    font-size: 10.5px;
    color: var(--slate-mid, #8e8e93);
    margin-top: 1px;
}

.academy-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}

.academy-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.academy-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.academy-mrp {
    font-size: 11px;
    color: #b3b3bb;
    text-decoration: line-through;
}

.academy-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.academy-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    color: #fff;
}

.academy-badge.premium {
    background: #6C3483;
}

.academy-badge.bestseller {
    background: #E67E22;
}

.academy-add-btn {
    border: 1.5px solid var(--saffron, #E67E22);
    color: var(--saffron, #E67E22);
    background: #fff8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    flex: 0 0 auto;
}

.academy-add-btn.added {
    background: var(--saffron, #E67E22);
    color: #fff;
}

.academy-add-btn.purchased {
    background: #eafaf1;
    border-color: #27AE60;
    color: #1e8449;
}


.tab-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.tab-hero-sub {
    font-size: 12.5px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Category chip row */
.tab-cat-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 14px;
    scrollbar-width: none;
}

.tab-cat-row::-webkit-scrollbar {
    display: none;
}

.tab-cat-chip {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #ecebee;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #5a5a68;
    white-space: nowrap;
    cursor: pointer;
}

.tab-cat-chip.active {
    background: var(--saffron, #E67E22);
    border-color: var(--saffron, #E67E22);
    color: #fff;
}

/* Card list */
.tab-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 2px 24px;
    margin-top: 10px;
}

.tab-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    border: 1px solid #f4f2f5;
    cursor: pointer;
}

.tab-card-img {
    position: relative;
    width: 80px;
    height: 80px;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tab-card-img ion-icon {
    font-size: 32px;
}

.tab-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tab-card-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.tab-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-card-desc {
    font-size: 11.5px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tab-card-location {
    font-size: 11px;
    color: var(--slate-mid, #8e8e93);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 8px;
}

.tab-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.tab-action-btn {
    border: 1.5px solid var(--saffron, #E67E22);
    color: var(--saffron, #E67E22);
    background: #fff8f0;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.tab-action-btn ion-icon {
    font-size: 14px;
}

/* Detail page */
.tab-detail-hero {
    width: 100%;
    height: 400px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

.tab-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-detail-hero ion-icon {
    font-size: 56px;
}

.tab-detail-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.tab-detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin: 4px 0 8px;
    line-height: 1.3;
}

.tab-detail-desc {
    font-size: 13px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.5;
    margin-bottom: 8px;
}

.tab-detail-location {
    font-size: 12.5px;
    color: var(--slate-mid, #8e8e93);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.tab-detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 18px;
}

.tab-detail-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

.tab-detail-price-label {
    font-size: 12px;
    color: var(--slate-mid, #8e8e93);
}

/* Booking / detail form */
.tab-form {
    background: #fff;
    border: 1px solid #f4f2f5;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.tab-form-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
    margin-bottom: 4px;
}

.tab-form-sub {
    font-size: 12px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.4;
    margin-bottom: 14px;
}

.tab-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 10px 0 5px;
}

.tab-form-input {
    width: 100%;
    border: 1.5px solid #eee;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13.5px;
    box-sizing: border-box;
}

.tab-form-input:focus {
    outline: none;
    border-color: var(--saffron, #E67E22);
}

.tab-form-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0eef1;
}

.tab-form-total-label {
    font-size: 13px;
    color: var(--slate-mid, #8e8e93);
    font-weight: 600;
}

.tab-form-total-value {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary, #1a1a2e);
}

/* ── Academy detail page — pieces not covered by the generic .tab-detail-* set ── */
.academy-detail-subtitle {
    font-size: 13px;
    color: var(--slate-mid, #8e8e93);
    line-height: 1.5;
    margin-bottom: 10px;
}

.academy-detail-instructor {
    font-size: 12.5px;
    color: var(--text-primary, #1a1a2e);
    font-weight: 600;
    margin-bottom: 6px;
}

.academy-detail-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.academy-detail-meta {
    font-size: 12px;
    color: var(--slate-mid, #8e8e93);
    margin-bottom: 16px;
}

.academy-detail-card {
    background: #fff;
    border: 1px solid #f4f2f5;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.academy-detail-mrp {
    font-size: 13px;
    color: #b3b3bb;
    text-decoration: line-through;
}

.academy-detail-sub-note {
    font-size: 11.5px;
    color: var(--slate-mid, #8e8e93);
    margin-bottom: 14px;
}

.academy-enrolled-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eafaf1;
    border: 1px solid #27AE60;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    color: #1e8449;
    font-size: 13px;
    font-weight: 600;
}





/* ACADEMY — COURSE PLAYER DETAIL PAGE */

/* ── Video player ── */
.academy-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0b10;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    transition: opacity .18s ease;
}

.academy-player-wrap.academy-video-fading {
    opacity: .25;
}

.academy-player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.academy-current-lecture-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate-mid);
    margin-bottom: 14px;
}

.academy-current-lecture-row i {
    color: var(--saffron);
    font-size: 13px;
}

/* ── Header meta row additions ── */
.academy-detail-students {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--slate-mid);
    margin-left: 4px;
}

.academy-detail-students i {
    color: var(--saffron);
    font-size: 11px;
}

.academy-detail-meta i {
    color: var(--saffron);
    margin-right: 3px;
}

/* ── Course Content block ── */
.academy-content-block {
    margin-bottom: 16px;
}

#academy-lecture-content-block .content-block-header {
    margin-bottom: 10px;
}

/* ── Section header (collapsible) ── */
.academy-lecture-section+.academy-lecture-section {
    margin-top: 14px;
}

.academy-lecture-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s;
}

.academy-lecture-section-header:hover {
    background: var(--saffron-lt);
}

.academy-lecture-section-chevron {
    font-size: 11px;
    color: var(--saffron);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.academy-lecture-section-header.collapsed .academy-lecture-section-chevron {
    transform: rotate(-90deg);
}

.academy-lecture-section-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
    text-align: left;
}

.academy-lecture-section-count {
    font-size: 11px;
    color: var(--slate-lt);
    font-weight: 500;
    white-space: nowrap;
}

/* ── Section body (lecture rows) ── */
.academy-lecture-section-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 4000px;
    transition: max-height .3s ease;
}

.academy-lecture-section-body.collapsed {
    max-height: 0;
}

/* ── Lecture row ── */
.academy-lecture-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 16px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.academy-lecture-section-body>.academy-lecture-row:last-child {
    border-bottom: none;
}

.academy-lecture-row:hover:not(.locked) {
    background: var(--saffron-lt);
}

.academy-lecture-row.current {
    background: var(--saffron-lt);
    border-left-color: var(--saffron);
}

.academy-lecture-row.current .academy-lecture-title {
    color: var(--maroon);
    font-weight: 700;
}

.academy-lecture-play-icon {
    color: var(--saffron);
    font-size: 15px;
    flex-shrink: 0;
}

.academy-lecture-row.current .academy-lecture-play-icon {
    color: var(--saffron-dk);
}

.academy-lecture-lock-icon {
    color: var(--slate-lt);
    font-size: 13px;
    flex-shrink: 0;
}

.academy-lecture-row.locked {
    cursor: pointer;
    /* still clickable to trigger the "purchase to unlock" toast */
}

.academy-lecture-row.locked .academy-lecture-title {
    color: var(--slate-lt);
}

.academy-lecture-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.academy-free-badge {
    flex-shrink: 0;
    background: var(--success);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .4px;
    padding: 2px 8px;
    border-radius: 5px;
}

.academy-lecture-duration {
    flex-shrink: 0;
    font-size: 11.5px;
    color: var(--slate-lt);
    font-weight: 500;
    min-width: 38px;
    text-align: right;
}

/* ── Sticky bottom bar (pay / continue) ── */
.academy-sticky-pay-bar,
.academy-sticky-continue-bar {
    /* position: fixed;
    bottom: 0; */
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
}

.academy-sticky-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.academy-sticky-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--slate);
}

.academy-sticky-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--success);
}

.academy-sticky-info i {
    font-size: 16px;
}

.academy-sticky-pay-bar .btn-create-profile,
.academy-sticky-continue-bar .btn-create-profile {
    margin: 0;
    white-space: nowrap;
}

/* ── content-block bullet lists (Requirements / What You'll Learn) ── */
.content-block-body ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.content-block-body ul li {
    line-height: 1.6;
}

.content-block-body ul li::marker {
    color: var(--saffron);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {

    .academy-sticky-pay-bar,
    .academy-sticky-continue-bar {
        padding: 10px 14px;
    }

    .academy-sticky-price {
        font-size: 17px;
    }

    .academy-lecture-title {
        font-size: 12.5px;
    }
}

/* ── Settings: language picker ──────────────────────────────
   Append to your main stylesheet. Reuses your existing
   acc-list-item / acc-list-card look — adjust the custom
   properties below to match your real theme tokens if you have
   them (e.g. swap the hex values for your --acc-* variables). */

.acc-lang-trigger {
    cursor: pointer;
    justify-content: flex-start;
    gap: 12px;
}

.acc-lang-current {
    margin-left: auto;
    margin-right: 8px;
    font-size: 0.9em;
    opacity: 0.7;
}

.acc-lang-trigger .acc-list-arrow {
    transition: transform 0.2s ease;
}

.acc-lang-trigger.open .acc-list-arrow {
    transform: rotate(90deg);
}

.acc-lang-menu {
    display: none;
    flex-direction: column;
    padding: 4px 0 8px;
}

.acc-lang-menu.open {
    display: flex;
}

.acc-lang-opt {
    all: unset;
    cursor: pointer;
    padding: 10px 16px 10px 44px;
    font-size: 0.95em;
    border-radius: 8px;
}

.acc-lang-opt:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .acc-lang-opt:hover {
    background: rgba(255, 255, 255, 0.06);
}

.acc-lang-opt.active {
    font-weight: 600;
    color: var(--acc-accent, #6c5ce7);
}










/* ══════════════════════════════════════════════════════════
   PICKER TRIGGER BUTTONS (replace native date/time/city inputs)
══════════════════════════════════════════════════════════ */
.cp-picker-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--slate);
    font-size: 13px;
    text-align: left;
    transition: border-color .18s;
}

.cp-picker-trigger i {
    color: var(--saffron);
    font-size: 14px;
    flex-shrink: 0;
}

.cp-picker-trigger span {
    flex: 1;
    color: var(--slate);
}

.cp-picker-trigger span.placeholder {
    color: var(--slate-lt);
}

.placeholder {
    background-color: none !important;
}

.cp-picker-trigger:hover,
.cp-picker-trigger:focus {
    border-color: var(--saffron);
}

/* ══════════════════════════════════════════════════════════
   WHEEL PICKER (DOB / TOB) — AstroSage style
══════════════════════════════════════════════════════════ */
.wp-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, .55);
    z-index: 1300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.wp-backdrop.open {
    display: flex;
    animation: fadeUp .2s ease;
}

.wp-modal {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 16px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .18);
}

.wp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 18px;
}

.wp-header i {
    color: var(--saffron);
    font-size: 18px;
}

.wp-columns {
    display: flex;
    gap: 6px;
}

.wp-col-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wp-col-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-lt);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}

.wp-col-viewport {
    position: relative;
    height: 132px;
    /* 3 items x 44px */
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.wp-col-viewport::before,
.wp-col-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 44px;
    pointer-events: none;
    z-index: 2;
}

.wp-col-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, var(--surface) 20%, rgba(255, 255, 255, 0));
}

.wp-col-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, var(--surface) 20%, rgba(255, 255, 255, 0));
}

.wp-col-highlight {
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    height: 44px;
    border-top: 1.5px solid var(--border);
    border-bottom: 1.5px solid var(--border);
    pointer-events: none;
    z-index: 1;
}

.wp-col-list {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-col-list::-webkit-scrollbar {
    display: none;
}

.wp-col-list li {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--slate-xlt);
    cursor: pointer;
    transition: color .15s, font-weight .15s;
}

.wp-col-list li.wp-selected {
    color: var(--slate);
    font-weight: 700;
    font-size: 18px;
}

.wp-actions {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 20px;
    padding-top: 4px;
}

.wp-btn-cancel {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-mid);
    padding: 8px 4px;
}

.wp-btn-set {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--saffron-dk);
    padding: 8px 4px;
}

/* ══════════════════════════════════════════════════════════
   CITY SEARCH MODAL
══════════════════════════════════════════════════════════ */
.csm-backdrop {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 1300;
    display: none;
    flex-direction: column;
}

.csm-backdrop.open {
    display: flex;
    animation: fadeUp .2s ease;
}

.csm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.csm-back-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--slate-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.csm-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--maroon);
}

.csm-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.csm-tab {
    flex: 1;
    padding: 12px 6px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--slate-lt);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    letter-spacing: .4px;
}

.csm-tab.active {
    color: var(--saffron-dk);
    border-bottom-color: var(--saffron-dk);
}

.csm-tab-panel {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px;
    flex-direction: column;
}

.csm-tab-panel.active {
    display: flex;
}

.csm-search-wrap {
    position: relative;
    margin-bottom: 6px;
}

.csm-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-lt);
    font-size: 13px;
}

.csm-search-input {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-size: 14px;
    color: var(--slate);
    outline: none;
}

.csm-search-input:focus {
    border-color: var(--saffron);
}

.csm-results {
    display: flex;
    flex-direction: column;
}

.csm-result-row {
    padding: 14px 6px;
    border-bottom: 1px solid var(--border-soft);
    cursor: pointer;
}

.csm-result-row:hover {
    background: var(--saffron-lt);
}

.csm-result-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--slate);
}

.csm-result-sub {
    font-size: 12px;
    color: var(--slate-lt);
    margin-top: 2px;
}

.csm-empty,
.csm-loading {
    text-align: center;
    padding: 30px 10px;
    color: var(--slate-lt);
    font-size: 13px;
}

.csm-gps-btn {
    width: 100%;
    padding: 13px;
    background: var(--grad-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.csm-gps-status {
    text-align: center;
    font-size: 12.5px;
    color: var(--slate-mid);
    margin-top: 12px;
}

.csm-custom-field {
    margin-bottom: 12px;
}

.csm-custom-field label {
    display: block;
    font-size: 11.5px;
    color: var(--slate-mid);
    font-weight: 500;
    margin-bottom: 5px;
}

.csm-custom-field input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--slate);
}

.csm-custom-field input:focus {
    border-color: var(--saffron);
    background: #fff;
}
