/* ==========================================================================
   BD Sherubai — Aurora Emerald & Gold iOS 26 Liquid Glass Design System
   Clean, uncluttered Home + translucent glass surfaces + floating pill dock
   ========================================================================== */

:root {
    --bg-obsidian: #060d0b;
    --bg-surface: rgba(255, 255, 255, 0.045);
    --bg-surface-strong: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.11);
    --border-specular: rgba(255, 255, 255, 0.22);
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --gold: #f5c451;
    --gold-deep: #d99b26;
    --danger: #f87171;
    --text-primary: #f3f7f5;
    --text-muted: rgba(226, 238, 233, 0.62);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --font-sans: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.45;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }

/* Ambient Aurora Mesh */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.42;
}

.orb-emerald {
    width: 310px;
    height: 310px;
    background: radial-gradient(circle, #10b981, transparent 70%);
    top: -100px;
    left: -80px;
}

.orb-gold {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #f5c451, transparent 70%);
    top: 120px;
    right: -110px;
    opacity: 0.24;
}

.orb-deep {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #065f46, transparent 72%);
    bottom: -120px;
    left: 20%;
    opacity: 0.35;
}

/* Splash & Fullscreen Overlays */
.splash-screen,
.overlay-screen {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 13, 11, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.splash-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
}

.splash-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.splash-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.overlay-card {
    width: 100%;
    max-width: 390px;
    text-align: center;
    padding: 26px 20px;
}

.overlay-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.fj-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    text-align: left;
}

.fj-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}

/* Main App Container */
.app-shell {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 16px 16px calc(104px + env(safe-area-inset-bottom, 0px));
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border-specular);
    background: rgba(16, 185, 129, 0.08);
    display: grid;
    place-items: center;
}

.brand-badge svg {
    width: 34px;
    height: 34px;
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 12.5px;
    color: var(--text-muted);
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface-strong);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.icon-pill svg {
    width: 15px;
    height: 15px;
}

/* Tab Views */
.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
    animation: viewFade 0.2s ease-out;
}

@keyframes viewFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Liquid Glass Cards */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* Clean Hero Balance Card (Home) */
.hero-card {
    position: relative;
    overflow: hidden;
    padding: 22px 20px 18px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.28) 0%, rgba(10, 28, 22, 0.72) 52%, rgba(245, 196, 81, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.24), 0 22px 46px rgba(0, 0, 0, 0.36);
    margin-bottom: 16px;
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(243, 247, 245, 0.78);
}

.status-chip {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.38);
    color: #a7f3d0;
}

.hero-balance {
    margin: 12px 0 18px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #ffffff;
}

.hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-label {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}

.hero-metrics strong {
    font-size: 14.5px;
    font-weight: 700;
}

.metric-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.14);
}

/* Slim Daily Check-in Strip */
.checkin-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
}

.checkin-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkin-dot {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: rgba(245, 196, 81, 0.14);
    border: 1px solid rgba(245, 196, 81, 0.28);
}

.checkin-title {
    font-weight: 700;
    font-size: 14.5px;
}

.checkin-sub {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Sections & Headers */
.page-head {
    margin-bottom: 16px;
}

.page-head h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-head p {
    margin: 0;
    font-size: 13.5px;
}

.section-block {
    margin-top: 20px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-head h3 {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
}

.text-link {
    background: none;
    border: none;
    color: var(--emerald-bright);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.15s ease;
    text-decoration: none;
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 13px; }

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #032219;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.28);
}

.btn-gold {
    background: linear-gradient(135deg, #f8d477, #d99b26);
    color: #1c1303;
    box-shadow: 0 8px 20px rgba(245, 196, 81, 0.22);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.pill {
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.pill.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    color: #ecfdf5;
}

/* Lists & Cards */
.stack-list,
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-card {
    padding: 15px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
}

.task-title {
    font-weight: 700;
    font-size: 14.5px;
}

.task-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.reward-pill {
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: rgba(245, 196, 81, 0.14);
    border: 1px solid rgba(245, 196, 81, 0.32);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
}

.activity-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.activity-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, 0.12);
    font-size: 15px;
    flex-shrink: 0;
}

.activity-title {
    font-weight: 600;
    font-size: 13.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-date {
    font-size: 11.8px;
    color: var(--text-muted);
}

.amt-pos { color: var(--emerald-bright); font-weight: 700; white-space: nowrap; }
.amt-neg { color: var(--gold); font-weight: 700; white-space: nowrap; }

.empty-state {
    text-align: center;
    padding: 26px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px dashed var(--border-glass);
    color: var(--text-muted);
    font-size: 13.5px;
}

/* Refer Card & Milestones */
.refer-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.refer-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
}

.stat-box strong {
    display: block;
    margin-top: 4px;
    font-size: 19px;
    font-weight: 800;
}

.link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-glass);
}

.link-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.milestone-card {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
}

.ms-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.progress-track {
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
}

/* Wallet & Forms */
.wallet-mini-card {
    padding: 18px;
    margin-bottom: 14px;
}

.wallet-amount {
    font-size: 30px;
    font-weight: 800;
    margin: 4px 0;
}

.form-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.method-chip {
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.method-chip.selected {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--emerald);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.method-chip small {
    display: block;
    font-weight: 500;
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.glass-input,
.glass-select,
.glass-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.glass-input:focus,
.glass-select:focus,
.glass-textarea:focus {
    border-color: var(--emerald);
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    text-transform: uppercase;
}
.st-pending { background: rgba(245, 196, 81, 0.16); color: var(--gold); }
.st-approved { background: rgba(16, 185, 129, 0.18); color: var(--emerald-bright); }
.st-rejected { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }

/* Floating iOS 26 Liquid Glass Bottom Dock */
.glass-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: min(420px, calc(100% - 28px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border-radius: 28px;
    background: rgba(11, 22, 19, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 22px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.dock-item svg {
    width: 20px;
    height: 20px;
}

.dock-item.active {
    background: rgba(16, 185, 129, 0.2);
    color: #ecfdf5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Admin Panel Fullscreen Modal */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(5, 11, 9, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.admin-title { font-size: 16px; font-weight: 800; }
.admin-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.admin-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-glass);
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.admin-tab.active {
    background: rgba(16, 185, 129, 0.24);
    border-color: var(--emerald);
    color: #ffffff;
}

.admin-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-card h4 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* iOS Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 25px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 99px;
    cursor: pointer;
    transition: 0.2s;
}
.slider:before {
    content: "";
    position: absolute;
    height: 19px;
    width: 19px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .slider { background: var(--emerald); }
.switch input:checked + .slider:before { transform: translateX(19px); }

.admin-item-row {
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.admin-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Toast */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 120;
    max-width: calc(100% - 32px);
    padding: 11px 18px;
    border-radius: var(--radius-pill);
    background: rgba(12, 26, 22, 0.94);
    border: 1px solid rgba(52, 211, 153, 0.42);
    color: #ecfdf5;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.toast.error {
    border-color: rgba(248, 113, 113, 0.55);
    color: #fee2e2;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* 5-Tab Floating Dock & Sheru Bhai Funny Quiz Cards */
.glass-dock {
    grid-template-columns: repeat(5, 1fr);
}

.quiz-card {
    padding: 18px 16px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.quiz-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--emerald-bright);
    letter-spacing: 0.02em;
}

.quiz-question {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    color: #ffffff;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.quiz-opt:active:not(:disabled) { transform: scale(0.985); }
.quiz-opt:disabled { cursor: default; }

.quiz-opt-letter {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    flex-shrink: 0;
}

.quiz-opt.correct {
    background: rgba(16, 185, 129, 0.22);
    border-color: var(--emerald);
    color: #ecfdf5;
}

.quiz-opt.correct .quiz-opt-letter {
    background: var(--emerald);
    color: #032219;
}

.quiz-opt.wrong {
    background: rgba(248, 113, 113, 0.18);
    border-color: var(--danger);
    color: #fee2e2;
}

.quiz-reply-box {
    padding: 11px 13px;
    border-radius: var(--radius-md);
    background: rgba(245, 196, 81, 0.1);
    border: 1px solid rgba(245, 196, 81, 0.26);
    color: #fef3c7;
    font-size: 13px;
    line-height: 1.45;
}

/* Smooth Quiz Voice / Mic Listen Button */
.quiz-q-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.quiz-voice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.42);
    color: #a7f3d0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quiz-voice-btn svg {
    width: 15px;
    height: 15px;
}

.quiz-voice-btn:active { transform: scale(0.95); }

.quiz-voice-btn.speaking {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(245, 196, 81, 0.28));
    border-color: var(--gold);
    color: #fffbeb;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.38);
}

.voice-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 13px;
}

.voice-bars span {
    width: 2.5px;
    border-radius: 2px;
    background: var(--gold);
    animation: vbar 0.7s ease-in-out infinite alternate;
}

.voice-bars span:nth-child(2) { animation-delay: 0.18s; }
.voice-bars span:nth-child(3) { animation-delay: 0.35s; }

@keyframes vbar {
    from { height: 4px; }
    to { height: 13px; }
}
