/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.78);
    --bg-card: rgba(17, 24, 39, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-highlight: rgba(99, 102, 241, 0.3);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --accent: #a855f7; /* Purple */
    --accent-hover: #9333ea;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --glow-color: rgba(99, 102, 241, 0.15);
    --input-bg: rgba(255, 255, 255, 0.05);
    --admin-text-main: #f8fafc;
    --admin-input-bg: rgba(255, 255, 255, 0.03);
    --card-radius: 20px;
    --inner-radius: 14px;
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.15), 0 1px 3px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 4px 10px -2px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 48px -10px rgba(0, 0, 0, 0.45), 0 8px 20px -4px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 12px 36px -6px rgba(0, 0, 0, 0.35), 0 4px 12px -2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --shadow-canvas: 0 6px 24px -4px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.2);
    --surface-glass: rgba(17, 24, 39, 0.78);
    --surface-canvas: rgba(13, 17, 28, 0.88);
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow: visible !important;
    position: relative;
}

/* Background Glowing Blobs */
.bg-gradient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.blob-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Typography elements */
h1, h2, h3, h4, .brand h1, .auth-logo h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

span strong {
    color: #fff;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
    filter: brightness(1.1);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #d946ef 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.45);
    filter: brightness(1.1);
}

.btn-success {
    background-color: var(--success);
    color: white;
}
.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-with-icon > i:first-child,
.input-with-icon > svg:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.input-with-icon:focus-within > i:first-child,
.input-with-icon:focus-within > svg:first-child {
    color: var(--primary);
}

.input-with-icon input {
    width: 100%;
    padding-left: 42px;
    padding-right: 44px;
}

.form-control, input[type="email"], input[type="password"], input[type="text"], input[type="number"], select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

/* Chrome/Safari/Edge Autofill styling - seamless dark & light theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #151a2e inset !important;
    box-shadow: 0 0 0 1000px #151a2e inset !important;
    -webkit-text-fill-color: #f3f4f6 !important;
    caret-color: #f3f4f6;
    transition: background-color 5000s ease-in-out 0s;
}

body.light-theme input:-webkit-autofill,
body.light-theme input:-webkit-autofill:hover, 
body.light-theme input:-webkit-autofill:focus, 
body.light-theme input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
}

select, select.form-control {
    background-color: #1a1e2e !important;
    color: #f8fafc !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    cursor: pointer;
}

select option, select.form-control option {
    background-color: #161b2e !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
}

select option:checked, select option:hover {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}

body.light-theme select, body.light-theme select.form-control {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.light-theme select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* Password eye toggle button */
.toggle-password-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 12px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s ease, transform 0.15s ease;
    z-index: 3;
    user-select: none;
}

.toggle-password-btn:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.15);
}

.toggle-password-btn.active {
    color: #a855f7;
}

/* Backward compatibility wrap */
.pw-input-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Disable native browser password reveal and clear buttons (Microsoft Edge, Safari, Chrome) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-contacts-auto-fill-button,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}




.form-control:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 12px var(--glow-color);
}

/* AUTH SCREEN */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-logo h2 {
    font-size: 2rem;
    color: white;
}
.auth-logo h2 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

.auth-tabs {
    display: flex;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.trial-gift-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #a7f3d0;
    text-align: left;
}

.trial-gift-info i {
    font-size: 1.2rem;
    color: var(--success);
}

.alert {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: left;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* APP SCREEN - MAIN LAYOUT */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 100;
}

/* ── Header Center: Balance Chip + TopUp ── */
.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.balance-chip {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    height: 36px;
}

.balance-chip-main {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.balance-usd {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

.balance-chip-divider {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    flex-shrink: 0;
}

.balance-mins {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #34d399;
}

.balance-mins i { font-size: 0.75rem; }

.btn-topup {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 34px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-topup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,197,94,0.35);
}

/* ── Header Right Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Icon Circle Buttons (Bell) ── */
.btn-icon-circle {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon-circle:hover {
    color: white;
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

/* ── User Avatar Button ── */
.user-menu-wrapper {
    position: relative;
}

.user-avatar-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-avatar-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.2);
    transform: translateY(-1px);
}

.vip-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.45rem;
    color: white;
}

/* ── User Dropdown Menu ── */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    min-width: 290px;
    background: #0f172a !important; /* Solid fully-opaque dark background prevents bleed-through */
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 10px;
    z-index: 99999;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .user-dropdown {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .user-dropdown-info {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.user-dropdown-avatar {
    font-size: 2.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-dropdown-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-info .user-email {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

body.light-theme .user-dropdown-info .user-email {
    color: #0f172a;
}

.vip-badges-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.vip-expire-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 500;
    color: #f59e0b;
    line-height: 1.3;
    white-space: nowrap;
}

.vip-fup-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 500;
    color: #a855f7;
    line-height: 1.3;
    white-space: nowrap;
}

.user-currency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c7d2fe;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-currency-badge i {
    color: #f59e0b;
    font-size: 0.75rem;
    flex-shrink: 0;
}

body.light-theme .user-currency-badge {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.2);
    color: #4338ca;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

body.light-theme .user-dropdown-divider {
    background: rgba(0, 0, 0, 0.08);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.15s ease;
    text-align: left;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.light-theme .user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.user-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.user-dropdown-item i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand h1 {
    font-size: 1.5rem;
    color: white;
}
.brand h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-balance-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.balance-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.avatar-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-email {
    font-size: 0.9rem;
    font-weight: 600;
}

.vip-badge-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
    animation: gold-glow 2s infinite alternate;
}

@keyframes gold-glow {
    0% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 2px 15px rgba(245, 158, 11, 0.7);
    }
}

.vip-expire-text {
    font-size: 0.72rem;
    color: var(--warning);
    font-weight: 500;
    margin-top: 1px;
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    color: var(--danger);
    background-color: rgba(239, 68, 68, 0.08);
}

/* Main Workspace (Balanced 50/50 Dual Studio Layout) */
.app-main {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 24px;
    flex-grow: 1;
    align-items: start;
}

/* Left Panel */
.workspace-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Drag-Drop Zone */
.upload-zone {
    background: var(--card-bg);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-prompt h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.upload-prompt p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.file-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.hidden-file-input {
    display: none;
}

/* Compact Upload Action Bar (v4.7.0) */
.upload-zone.compact-mode {
    padding: 10px 16px !important;
    border: 1px dashed rgba(99, 102, 241, 0.35) !important;
    border-radius: 12px !important;
    background: rgba(99, 102, 241, 0.04) !important;
    text-align: left !important;
    cursor: default !important;
    transition: all 0.25s ease !important;
}

.upload-zone.compact-mode:hover {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.07) !important;
}

.upload-compact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.upload-compact-left {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}

.compact-cloud-circle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.compact-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.compact-text-wrap strong {
    font-size: 0.86rem;
    color: var(--text-main);
    font-weight: 600;
}

.compact-text-wrap .file-formats-mini {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.upload-compact-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-compact-rec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compact-rec:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-compact-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compact-expand:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Light theme overrides for compact upload bar */
body.light-theme .upload-zone.compact-mode {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .btn-compact-rec,
body.light-theme .btn-compact-expand {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-theme .btn-compact-rec:hover {
    background: #f1f5f9 !important;
    border-color: #6366f1 !important;
}

/* File Details Card */
.file-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.file-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.file-type-icon {
    font-size: 2.2rem;
    color: var(--primary);
}

.file-meta {
    flex-grow: 1;
}

.file-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-remove-file:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.price-estimation {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.est-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.est-label {
    color: var(--text-muted);
}

.est-val {
    font-weight: 500;
}

.total-cost {
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.total-cost .est-label {
    font-weight: 600;
    color: var(--text-main);
}

.highlight {
    font-weight: 700;
    color: #fff;
}

.highlight.text-success {
    color: var(--success);
}
.highlight.text-warning {
    color: var(--warning);
}

/* Loading / Progress State */
.progress-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.spinner-container {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 20px;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: var(--accent);
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

.progress-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.progress-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Results Display */
.results-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.transcription-editor {
    width: 100%;
    height: 400px;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
}

.transcription-editor:focus {
    outline: none;
    border-color: var(--primary);
}

/* Right Panel: AI Tools & Smart Audio Q&A */
.workspace-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-tools-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tools-header {
    margin-bottom: 20px;
}

.tools-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tools-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tools-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.tool-tab-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tool-tab-btn.active {
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: white;
}

.tool-section {
    margin-bottom: 20px;
}

.tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* AI Tool Result View (v3.3 Enhanced) */
.tool-result-box {
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.35s ease;
}

.tool-result-box.glow-active {
    border-color: #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.result-header .actions {
    display: flex;
    gap: 6px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.95rem;
}
.btn-icon:hover {
    background-color: rgba(255,255,255,0.08);
    color: white;
}

.tool-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-size: 0.9rem;
    color: var(--accent);
    background-color: rgba(168, 85, 247, 0.08);
    border: 1px dashed rgba(168, 85, 247, 0.35);
    border-radius: 8px;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-result-editor {
    width: 100%;
    min-height: 280px;
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.btn-close-modal:hover {
    background-color: rgba(255,255,255,0.05);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.amount-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.amount-btn.active {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #10b981;
}

/* Deposit QR Layout */
.deposit-qr-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 20px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background-color: white;
    padding: 16px;
    border-radius: 12px;
}

#vietqr-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.qr-scan-instruction {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.detail-lbl {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 600;
}

.val-with-copy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-small {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-copy-small:hover {
    background-color: rgba(99,102,241,0.1);
}

.highlight-row {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    border-bottom: none;
}

.payment-warning {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #fca5a5;
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 10px;
    border-radius: 6px;
    line-height: 1.4;
    margin-top: 6px;
}

.payment-warning i {
    font-size: 1.1rem;
    color: var(--danger);
    margin-top: 1px;
}

/* Sandbox testing box */
.sandbox-test-box {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
}

.sandbox-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.sandbox-test-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.qr-loading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .app-main {
        grid-template-columns: 1fr;
    }
    .deposit-qr-layout {
        grid-template-columns: 1fr;
    }
    .qr-container {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .user-profile {
        border-left: none;
        padding-left: 0;
    }
    .amount-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Theme Toggle Button Styles */
.btn-theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-theme-toggle:hover {
    color: var(--warning);
    background-color: rgba(245, 158, 11, 0.08);
}

/* Light Theme Variables & Class Overrides */
body.light-theme {
    --bg-dark: #f8fafc; /* Slate 50 */
    --card-bg: rgba(255, 255, 255, 0.95);
    --bg-card: #ffffff;
    --border-color: rgba(15, 23, 42, 0.09); /* Slate 900 9% */
    --border-light: rgba(15, 23, 42, 0.06);
    --border-highlight: rgba(99, 102, 241, 0.2);
    --text-main: #0f172a; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 - High Contrast */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --accent: #9333ea;
    --accent-hover: #7e22ce;
    --glow-color: rgba(79, 70, 229, 0.08);
    --input-bg: rgba(0, 0, 0, 0.03);
    --admin-text-main: #0f172a;
    --admin-input-bg: rgba(0, 0, 0, 0.02);
    --card-radius: 20px;
    --inner-radius: 14px;
    --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.04), 0 1px 3px -1px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.08), 0 8px 20px -4px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 12px 36px -6px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03), 0 0 0 1px rgba(15, 23, 42, 0.05);
    --shadow-canvas: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.06);
    --surface-glass: #ffffff;
    --surface-canvas: #ffffff;
}

body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4, 
body.light-theme .brand h1, 
body.light-theme .auth-logo h2,
body.light-theme span strong,
body.light-theme .balance-amount,
body.light-theme .file-name,
body.light-theme .highlight,
body.light-theme .detail-val,
body.light-theme .user-email,
body.light-theme .history-trigger-title,
body.light-theme .record-info strong {
    color: #0f172a !important;
}

body.light-theme .app-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

/* Dashboard Nav Tabs in Light Theme */
body.light-theme .dashboard-nav-tabs {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .nav-tab {
    color: #475569 !important;
}

body.light-theme .nav-tab:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .nav-tab.active {
    color: #4338ca !important;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(147, 51, 234, 0.12)) !important;
    border: 1px solid rgba(79, 70, 229, 0.35) !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.12) !important;
}

/* Upload Zone in Light Theme */
body.light-theme .upload-zone {
    background: #ffffff !important;
    border: 2px dashed rgba(79, 70, 229, 0.28) !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .upload-prompt h3 {
    color: #0f172a !important;
}

body.light-theme .upload-prompt p {
    color: #64748b !important;
}

body.light-theme .file-formats {
    background: rgba(79, 70, 229, 0.08) !important;
    color: #4338ca !important;
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
}

/* Record Area & Cards in Light Theme */
body.light-theme .record-area {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .record-action-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .record-action-card:hover {
    background: rgba(79, 70, 229, 0.04) !important;
    border-color: rgba(79, 70, 229, 0.35) !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1) !important;
}

body.light-theme .record-info strong {
    color: #0f172a !important;
}

body.light-theme .record-info span {
    color: #64748b !important;
}

/* History Dropdown in Light Theme */
body.light-theme .history-dropdown-trigger {
    background: #ffffff !important;
    border: 1px solid rgba(79, 70, 229, 0.25) !important;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.06) !important;
}

body.light-theme .history-dropdown-trigger:hover {
    background: rgba(79, 70, 229, 0.04) !important;
    border-color: rgba(79, 70, 229, 0.4) !important;
}

body.light-theme .history-trigger-title {
    color: #0f172a !important;
}

body.light-theme .history-trigger-sub {
    color: #475569 !important;
}

body.light-theme .history-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .history-dropdown-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .history-dropdown-item:hover {
    background: rgba(79, 70, 229, 0.06) !important;
}

body.light-theme .history-item-name {
    color: #0f172a !important;
}

/* Right Panel Tools & Tabs in Light Theme */
body.light-theme .tools-card,
body.light-theme .workspace-right,
body.light-theme .results-card {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .tool-tab-btn {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
}

body.light-theme .tool-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-theme .tool-tab-btn.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(147, 51, 234, 0.12)) !important;
    border-color: #4f46e5 !important;
    color: #4338ca !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12) !important;
}

body.light-theme .tool-desc {
    color: #475569 !important;
}

/* Promo Banner in Light Theme */
body.light-theme #workspace-promo-banner,
body.light-theme .workspace-promo-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(147, 51, 234, 0.08)) !important;
    border: 1px solid rgba(79, 70, 229, 0.22) !important;
    color: #1e1b4b !important;
}

body.light-theme #workspace-promo-text {
    color: #1e1b4b !important;
}

body.light-theme #workspace-promo-text strong {
    color: #4338ca !important;
}

/* Demo Meeting Button in Light Theme */
body.light-theme .btn-sample-demo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(147, 51, 234, 0.08)) !important;
    border: 1px dashed rgba(79, 70, 229, 0.35) !important;
    color: #4338ca !important;
}

body.light-theme .btn-sample-demo:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(147, 51, 234, 0.15)) !important;
    color: #312e81 !important;
}

body.light-theme .bg-gradient-glow {
    opacity: 0.15;
}

body.light-theme .auth-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

body.light-theme .auth-tabs {
    background-color: rgba(15, 23, 42, 0.03);
}

body.light-theme .auth-tab-btn.active {
    background-color: white;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

body.light-theme .form-control,
body.light-theme input[type="email"],
body.light-theme input[type="password"],
body.light-theme input[type="number"],
body.light-theme select {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

body.light-theme .form-control:focus,
body.light-theme input:focus,
body.light-theme select:focus {
    background-color: white;
}

body.light-theme .user-balance-card,
body.light-theme .price-estimation {
    background-color: rgba(15, 23, 42, 0.02);
}

body.light-theme .amount-btn {
    background-color: rgba(15, 23, 42, 0.02);
    color: #0f172a;
}

body.light-theme .amount-btn:hover {
    background-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .amount-btn.active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: var(--success);
}

body.light-theme .transcription-editor,
body.light-theme .ai-result-editor {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

body.light-theme .transcription-editor:focus {
    border-color: var(--primary);
}

body.light-theme .modal-card {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

body.light-theme .sandbox-test-box {
    background-color: rgba(245, 158, 11, 0.08);
}

body.light-theme .qr-container {
    border: 1px solid rgba(15, 23, 42, 0.1);
}

body.light-theme .detail-row {
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

body.light-theme .highlight-row {
    background-color: rgba(245, 158, 11, 0.08);
}

/* ============================
   MICROPHONE RECORDING
   ============================ */
.record-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0;
}
.record-divider::before, .record-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.record-area {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.record-area.recording {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.btn-record {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.btn-record:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(239, 68, 68, 0.5);
}

.btn-record.is-recording {
    animation: record-pulse 1.5s infinite;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

@keyframes record-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.record-timer {
    font-family: 'Outfit', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger);
    letter-spacing: 0.05em;
}

.record-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.recorded-audio-preview {
    width: 100%;
    margin-top: 8px;
}

.recorded-audio-preview audio {
    width: 100%;
    height: 36px;
    filter: invert(0);
    border-radius: 8px;
}

body.light-theme .recorded-audio-preview audio {
    filter: none;
}

/* ============================
   HISTORY PANEL
   ============================ */
.history-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
}

.history-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-body {
    max-height: 320px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-item:last-child {
    border-bottom: none;
}

.history-icon {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-filename {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.history-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

.history-cost {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warning);
    white-space: nowrap;
}

.history-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.history-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.5;
}

body.light-theme .history-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* ============================
   FLOATING SUPPORT BUTTON
   ============================ */
.floating-support {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-support-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}

.floating-support-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(6, 182, 212, 0.6);
}

.floating-support-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.floating-support-menu.hidden {
    display: none !important;
}

.support-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.support-link-btn:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.support-link-btn.zalo {
    background: linear-gradient(135deg, #0068FF, #0054CC);
}

.support-link-btn.telegram {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}

/* ============================
   SMART BALANCE ALERT MODAL
   ============================ */
#balance-alert-modal .modal-card {
    max-width: 460px;
}

.balance-alert-body {
    padding: 28px;
    text-align: center;
}

.alert-icon-large {
    font-size: 3.5rem;
    color: var(--warning);
    margin-bottom: 16px;
    display: block;
}

.alert-title {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 10px;
}

.alert-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.balance-alert-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.breakdown-row .label {
    color: var(--text-muted);
}

.breakdown-row .value {
    font-weight: 700;
}

.breakdown-row.need-row .value {
    color: var(--success);
}

.breakdown-row.current-row .value {
    color: var(--danger);
}

.breakdown-row.shortfall-row {
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
}

.breakdown-row.shortfall-row .value {
    color: var(--warning);
}

body.light-theme .balance-alert-breakdown {
    background: rgba(0,0,0,0.02);
}

/* ============================
   BONUS PACKAGE BADGES
   ============================ */
.amount-btn {
    position: relative;
    overflow: visible;
}

.bonus-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    line-height: 1.4;
}

.amount-btn-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 2px;
}

/* ============================
   BILINGUAL TOGGLE
   ============================ */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 4px 10px;
    border-radius: 15px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* USD price note */
.price-usd-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 400;
}

/* Momo/ZaloPay hint in deposit */
.ewallet-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
}

.ewallet-hint i {
    color: var(--accent);
    font-size: 1rem;
}

/* International deposit note */
.intl-deposit-note {
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.intl-deposit-note strong {
    color: #06b6d4;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* ============================
   LIGHT THEME EXTRAS
   ============================ */
body.light-theme .record-area {
    background: rgba(255, 255, 255, 0.8);
}

body.light-theme .lang-toggle {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .history-panel {
    background: rgba(255, 255, 255, 0.9);
}

body.light-theme .floating-support-main {
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

/* ============================
   BTN-WARNING STYLE
   ============================ */
.btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* ============================
   TOAST NOTIFICATION ANIMATION
   ============================ */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================
   DRAG OVER STATE
   ============================ */
.upload-zone.drag-over {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.04) !important;
    box-shadow: 0 0 24px rgba(99, 102, 241, 0.15);
}

/* ==========================================
   BILINGUAL & AFFILIATE BASE CLASSES
   ========================================== */
.bilingual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.aff-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.aff-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.aff-stat-box.highlight-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.aff-row-referral {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.aff-card-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
}

.aff-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.payout-bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.aff-row-logs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.refund-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #fca5a5;
    text-align: left;
}

.refund-warning-box i {
    color: var(--danger);
    font-size: 1.05rem;
    flex-shrink: 0;
    margin-top: 1px;
}

body.light-theme .refund-warning-box {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

/* ==========================================
   AI CHATBOT WIDGET STYLING
   ========================================== */
.chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 100px; /* Keep it next to the floating support button */
    z-index: 199;
}

.chatbot-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.6);
}

.chatbot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    top: 0;
    left: 0;
    animation: chatbot-pulse-anim 2s infinite;
    opacity: 0;
    pointer-events: none;
}

@keyframes chatbot-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}



.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    height: 480px;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom right;
    z-index: 99999 !important;
}

.chatbot-window.hidden {
    display: none !important;
    transform: scale(0.8);
    opacity: 0;
}

.chatbot-header {
    background: #1e293b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    font-size: 1.5rem;
    color: #818cf8;
}

.chatbot-header-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.chatbot-status {
    font-size: 0.72rem;
    color: #10b981;
    display: block;
    font-weight: 500;
}

.chatbot-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.chatbot-close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f172a !important;
}

.chatbot-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    word-break: break-word;
}

.chatbot-msg.bot {
    background: #1e293b !important;
    color: #f8fafc !important;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chatbot-msg.user {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%) !important;
    color: white !important;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.chatbot-msg.loading {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
}

.chatbot-msg.loading span {
    width: 6px;
    height: 6px;
    background-color: #94a3b8;
    border-radius: 50%;
    display: inline-block;
    animation: chatbot-blink 1.4s infinite both;
}

.chatbot-msg.loading span:nth-child(2) { animation-delay: .2s; }
.chatbot-msg.loading span:nth-child(3) { animation-delay: .4s; }

@keyframes chatbot-blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.chatbot-chip {
    background: rgba(99, 102, 241, 0.16) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
    color: #c7d2fe !important;
    padding: 8px 12px !important;
    border-radius: 18px !important;
    font-size: 0.82rem !important;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: fit-content;
    font-weight: 600;
}

.chatbot-chip:hover {
    background: rgba(99, 102, 241, 0.3) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
}

.chatbot-input-area {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #1e293b !important;
    display: flex;
    gap: 10px;
}

.chatbot-input-area input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px;
    padding: 8px 16px;
    color: white;
    font-size: 0.88rem;
}

.chatbot-input-area input:focus {
    outline: none;
    border-color: #6366f1 !important;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.chatbot-input-area button {
    background: #6366f1;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatbot-input-area button:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* Light Theme overrides for AI Chatbot Widget (Rule 3 Dual-Theme Regression Guard) */
body.light-theme .chatbot-window {
    background: #ffffff !important;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .chatbot-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .chatbot-header-info h4 {
    color: #0f172a !important;
}

body.light-theme .chatbot-close-btn {
    color: #64748b !important;
}

body.light-theme .chatbot-close-btn:hover {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .chatbot-messages {
    background: #ffffff !important;
}

body.light-theme .chatbot-msg.bot {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .chatbot-chip {
    background: rgba(99, 102, 241, 0.08) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    color: #4f46e5 !important;
}

body.light-theme .chatbot-chip:hover {
    background: rgba(99, 102, 241, 0.18) !important;
    border-color: #6366f1 !important;
    color: #3730a3 !important;
}

body.light-theme .chatbot-input-area {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

body.light-theme .chatbot-input-area input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .chatbot-input-area input::placeholder {
    color: #94a3b8 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .chatbot-widget {
        right: 14px;
        bottom: 64px;
    }
    
    .chatbot-window {
        width: calc(100vw - 20px);
        max-width: 420px;
        height: 480px;
        max-height: 80vh;
    }
}

/* Chatbot Header Small Language Buttons */
.lang-btn-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn-small.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

body.light-theme .lang-btn-small {
    background: rgba(0, 0, 0, 0.03);
    color: #4b5563;
}

body.light-theme .lang-btn-small.active {
    background: var(--primary);
    color: white;
}

/* Features Intro Modal Styling */
.feature-intro-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-intro-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.1);
}

body.light-theme .feature-intro-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .feature-intro-card:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.08);
}

body.light-theme .feature-intro-card h4 {
    color: #111827 !important;
}

@media (max-width: 768px) {
    .features-intro-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ACCOUNT SIDEBAR (v2.0)
   ========================================================================== */
.account-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-sidebar-overlay.hidden {
    opacity: 0;
    pointer-events: none !important;
    display: none !important;
}

.account-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-sidebar.hidden {
    transform: translateX(100%);
    pointer-events: none !important;
    display: none !important;
}

/* Header */
.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.sidebar-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
    max-width: 250px;
}

.sb-tier-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.sb-tier-badge.vip {
    background: linear-gradient(135deg, var(--accent) 0%, #d946ef 100%);
    color: #fff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.sidebar-close-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* Sidebar Body */
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-body::-webkit-scrollbar {
    width: 6px;
}
.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.sidebar-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Section Title */
.sidebar-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Wallet Card */
.sb-balance-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(168, 85, 247, 0.07) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.sb-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sb-balance-row:last-of-type {
    border-bottom: none;
}

.sb-balance-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.sb-balance-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Transaction List in Sidebar */
.sb-txn-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.sb-txn-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    font-size: 0.8rem;
}

.sb-txn-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sb-txn-type {
    font-weight: 600;
    color: var(--text-main);
}

.sb-txn-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sb-txn-amount {
    font-weight: 700;
}

.sb-txn-amount.plus {
    color: var(--success);
}

.sb-txn-amount.minus {
    color: var(--danger);
}

.sb-txn-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

/* Affiliate section in Sidebar */
.sb-affiliate-link-row {
    background: rgba(99, 102, 241, 0.04);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.sb-ref-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sb-ref-link-text {
    font-size: 0.75rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
    font-family: monospace;
}

.sb-copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.sb-copy-btn:hover {
    color: var(--primary);
}

.sb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sb-stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
}

.sb-stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.sb-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Account Info Rows */
.sb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
}

.sb-info-row:last-of-type {
    border-bottom: none;
}

.sb-info-lbl {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-info-lbl i {
    width: 14px;
    text-align: center;
}

.sb-info-val {
    font-weight: 500;
    color: var(--text-main);
}

/* Quick Actions Button Grid */
.sb-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sb-action-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sb-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.sb-action-btn.danger:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.sb-action-btn i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.sb-action-btn:hover i {
    color: var(--primary);
}

.sb-action-btn.danger:hover i {
    color: var(--danger);
}

/* Light Theme overrides for Sidebar */
body.light-theme .account-sidebar-overlay {
    background: rgba(15, 23, 42, 0.3);
}

body.light-theme .account-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(0, 0, 0, 0.06);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.06);
}

body.light-theme .sidebar-avatar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
}

body.light-theme .sb-tier-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #4b5563;
}

body.light-theme .sidebar-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .sb-balance-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.1);
}

body.light-theme .sb-balance-row {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .sb-txn-item {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .sb-txn-empty {
    background: rgba(0, 0, 0, 0.005);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .sb-affiliate-link-row {
    background: rgba(99, 102, 241, 0.02);
    border-color: rgba(99, 102, 241, 0.12);
}

body.light-theme .sb-ref-link-box {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .sb-stat-card {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .sb-info-row {
    border-bottom-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .sb-action-btn {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .sb-action-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}







/* ==========================================================================
   DASHBOARD TAB NAVIGATION (3 CORE USER TABS)
   ========================================================================== */

.dashboard-nav-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 5px 6px;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin: 14px auto 22px;
    max-width: 100%;
    width: auto;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.dashboard-nav-tabs::-webkit-scrollbar {
    display: none;
}


.nav-tab {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text-muted);
    background: transparent;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.nav-tab-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    line-height: 1;
}

.nav-tab-badge.hot {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.nav-tab-badge.vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s ease-out forwards;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Container Card */
.feature-view-container {
    max-width: 1400px;
    width: 96%;
    margin: 0 auto 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.feature-view-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-view-title p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Notification Bell & Dropdown */
.notif-wrapper {
    position: relative;
    display: inline-block;
}

.btn-notif {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.btn-notif:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #f43f5e);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    border: 2px solid var(--bg-dark);
}

.notif-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 99999;
    overflow: hidden;
    animation: popoverFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFade {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-header {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: background 0.15s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.notif-icon.gift { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.notif-icon.code { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.notif-icon.vip { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.notif-icon.system { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.notif-content h5 {
    font-size: 0.84rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 3px;
}

.notif-content p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.notif-content .notif-time {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

/* Light Theme overrides for Notifications Popover */
body.light-theme .notif-popover {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .notif-header {
    background: #f8fafc !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .notif-header h4 {
    color: #0f172a !important;
}

body.light-theme .notif-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.light-theme .notif-item:hover {
    background: rgba(79, 70, 229, 0.04) !important;
}

body.light-theme .notif-item.unread {
    background: rgba(79, 70, 229, 0.06) !important;
}

body.light-theme .notif-content h5 {
    color: #0f172a !important;
}

body.light-theme .notif-content p {
    color: #475569 !important;
}

body.light-theme .notif-content .notif-time {
    color: #64748b !important;
}

/* B2B API Hub Styles */
.api-hub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 960px) {
    .api-hub-grid {
        grid-template-columns: 1fr;
    }
}

.code-snippet-box {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.code-snippet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-tabs {
    display: flex;
    gap: 6px;
}

.code-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.code-tab-btn.active {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
}

.code-pre {
    padding: 14px;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 280px;
}

/* Pricing Matrix Cards */
.pricing-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.pricing-card-modern {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.12);
}

.pricing-card-modern.featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.pricing-badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.pricing-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-features-list li {
    font-size: 0.84rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features-list li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* History Advanced Table */
.history-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.history-adv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

.history-adv-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.history-adv-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

.history-adv-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.history-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-table-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-table-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-table-action.primary { color: #818cf8; border-color: rgba(99, 102, 241, 0.3); }
.btn-table-action.primary:hover { background: rgba(99, 102, 241, 0.15); }
.btn-table-action.excel { color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.btn-table-action.excel:hover { background: rgba(16, 185, 129, 0.15); }
.btn-table-action.danger { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.btn-table-action.danger:hover { background: rgba(239, 68, 68, 0.15); }



.api-hub-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.2fr);
    gap: 24px;
}

#history-search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-color) !important;
    color: #fff !important;
    padding: 8px 12px 8px 36px !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
}

#history-search-input::placeholder {
    color: var(--text-muted) !important;
}

/* ==========================================================================
   GOOGLE ECOSYSTEM STYLES (v3.2) - Google One-Tap & Audio Chat Q&A
   ========================================================================== */

.google-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.google-auth-divider::before,
.google-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.google-auth-divider span {
    padding: 0 12px;
}

.google-auth-wrap {
    width: 100%;
    margin-bottom: 12px;
}

.btn-google-auth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google-auth:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.chat-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chat-chip:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #818cf8;
    transform: translateY(-1px);
}

.audio-chat-msg-row {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.audio-chat-msg-row.user {
    color: #c084fc;
    font-weight: 600;
}

.audio-chat-msg-row.bot {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.timestamp-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.timestamp-link:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.speed-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-chip:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.speed-chip.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.tts-player-bar {
    animation: fadeInSlide 0.3s ease-out;
}

.bilingual-split-container {
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   --- ULTRA-PREMIUM SLEEK RESULTS & AI WORKSPACE (v3.5) ---
   ============================================================ */

/* 1. Results Card Container Glassmorphism (Dark Theme Default) */
#results-card {
    background: linear-gradient(180deg, rgba(22, 27, 44, 0.85) 0%, rgba(14, 17, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.results-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.time-saved-roi-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-shortcuts-hint {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-shortcuts-hint:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: #fbbf24;
}

/* ============================================================
   --- LIGHT THEME INTEGRATION FOR RESULTS & CARDS ---
   ============================================================ */
body.light-theme #results-card,
body.light-theme .results-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.light-theme #results-file-row,
body.light-theme .results-file-row {
    background: rgba(99, 102, 241, 0.05) !important;
    border: 1px solid rgba(99, 102, 241, 0.18) !important;
}

body.light-theme #current-open-filename {
    color: #0f172a !important;
}

body.light-theme #time-saved-roi-badge,
body.light-theme .time-saved-roi-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.08)) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

body.light-theme #roi-time-saved-text {
    color: #b45309 !important;
}

body.light-theme .btn-shortcuts-hint {
    background: #ffffff !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #b45309 !important;
}

body.light-theme .btn-shortcuts-hint:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

body.light-theme .results-title-text {
    color: #0f172a !important;
}

body.light-theme .results-header-container {
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

body.light-theme .quick-act-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .quick-act-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .quick-act-btn.btn-tts {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
    color: #7e22ce !important;
}

body.light-theme .quick-act-btn.btn-tts:hover {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #6b21a8 !important;
}

body.light-theme .results-toolbar-pills {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03) !important;
}

body.light-theme .pill-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

body.light-theme .pill-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .pill-btn.pill-action-plan {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
    color: #047857 !important;
}

body.light-theme .pill-btn.pill-word {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #1d4ed8 !important;
}

body.light-theme .pill-btn.pill-docs {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
    color: #4338ca !important;
}

body.light-theme .pill-btn.pill-calendar {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #b91c1c !important;
}

body.light-theme .pill-btn.pill-srt {
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
    color: #0e7490 !important;
}

body.light-theme .pill-btn.pill-txt {
    background: rgba(100, 116, 139, 0.08) !important;
    border-color: rgba(100, 116, 139, 0.25) !important;
    color: #334155 !important;
}

body.light-theme .record-action-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .record-action-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .record-action-title {
    color: #0f172a !important;
}

body.light-theme .record-action-desc {
    color: #64748b !important;
}

body.light-theme .record-divider {
    color: #64748b !important;
}

body.light-theme .record-divider::before,
body.light-theme .record-divider::after {
    border-bottom: 1px dashed #cbd5e1 !important;
}

body.light-theme .speaker-analytics-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .speaker-analytics-title {
    color: #0f172a !important;
}

body.light-theme .speaker-chip {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

body.light-theme .search-replace-bar {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .sr-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .sr-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.light-theme .sr-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-theme .sr-btn-close {
    color: #64748b !important;
}

body.light-theme .custom-keywords-container > div:first-child {
    background: rgba(99, 102, 241, 0.04) !important;
    border: 1px dashed rgba(99, 102, 241, 0.25) !important;
}

body.light-theme #custom-keywords-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .shortcuts-grid .shortcut-row {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* ============================================================
   --- ACTION PLAN MODAL & TABLE (Dual Theme Styling) ---
   ============================================================ */
#action-plan-modal .modal-card,
.action-plan-modal-card {
    background: #111827 !important;
    color: #f8fafc;
}

#action-plan-content {
    background: rgba(0, 0, 0, 0.2);
}

#action-plan-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-weight: 600;
}

#action-plan-table td {
    color: #f1f5f9;
}

#action-plan-sheets-guide {
    background: rgba(66, 133, 244, 0.1);
    border: 1px dashed rgba(66, 133, 244, 0.35);
    color: #93c5fd;
}

/* Light Theme overrides for Action Plan Modal */
body.light-theme #action-plan-modal .modal-card,
body.light-theme .action-plan-modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body.light-theme #action-plan-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme #action-plan-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

body.light-theme #action-plan-table td {
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

body.light-theme #action-plan-table td.task-name-cell,
body.light-theme #action-plan-table tr td:nth-child(2) {
    color: #0f172a !important;
    font-weight: 500 !important;
}

body.light-theme #action-plan-sheets-guide {
    background: #eff6ff !important;
    border: 1px dashed #93c5fd !important;
    color: #1e3a8a !important;
}

body.light-theme #action-plan-sheets-guide span {
    color: #1e3a8a !important;
}

body.light-theme #action-plan-count {
    color: #64748b !important;
}

/* ============================================================
   --- RECORDING ACTION CARDS (v3.6 Sleek Modern) ---
   ============================================================ */
.record-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 14px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.record-divider::before,
.record-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.record-divider::before {
    margin-right: 12px;
}

.record-divider::after {
    margin-left: 12px;
}

.record-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 6px;
}

.record-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.record-action-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.record-action-card.recording {
    background: rgba(239, 68, 68, 0.12);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    animation: pulse-recording 1.5s infinite;
}

.record-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.record-circle.mic-circle {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.record-circle.screen-circle {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.record-action-card:hover .record-circle.mic-circle {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.record-action-card:hover .record-circle.screen-circle {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.record-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.record-info strong {
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-info span {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.record-timer {
    display: block;
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
    text-align: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Header & Title Row */
.results-header-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.results-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.results-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.results-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.results-title-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.timer-badge {
    font-size: 0.74rem;
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    padding: 3px 10px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    white-space: nowrap;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* 3. Quick Action Buttons */
.results-title-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.quick-act-btn:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

.quick-act-btn.btn-tts {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

.quick-act-btn.btn-tts:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #c084fc;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3);
}

/* 4. Tier 2: Floating Glass Action Pills Dock */
.results-toolbar-pills {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    background: rgba(10, 14, 26, 0.6);
    padding: 7px 9px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    backdrop-filter: blur(8px);
}

/* Hero Action Plan Pill */
.pill-btn.pill-action-plan {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15);
}

.pill-btn.pill-action-plan:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.2));
    border-color: #10b981;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Word Pill */
.pill-btn.pill-word {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}
.pill-btn.pill-word:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.3);
}

/* Google Docs Pill */
.pill-btn.pill-gdocs {
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.25);
    color: #93c5fd;
}
.pill-btn.pill-gdocs:hover {
    background: rgba(66, 133, 244, 0.22);
    border-color: #4285F4;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(66, 133, 244, 0.3);
}

/* Google Calendar Pill */
.pill-btn.pill-gcal {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}
.pill-btn.pill-gcal:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.3);
}

/* Subtitle SRT Pill */
.pill-btn.pill-srt {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
}
.pill-btn.pill-srt:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

/* File TXT Pill */
.pill-btn.pill-txt {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
.pill-btn.pill-txt:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1.5px);
}

/* 5. Mini Glass Audio Player Bar */
.result-audio-bar {
    margin-bottom: 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(30, 36, 58, 0.65) 0%, rgba(18, 22, 36, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.audio-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.audio-play-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.45);
    transition: all 0.2s ease;
}

.audio-play-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.65);
}

.audio-seek-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.audio-seek-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.audio-time-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audio-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-speed-label {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 500;
}

.speed-chip {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.18s ease;
}

.speed-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.speed-chip.active {
    background: rgba(99, 102, 241, 0.3);
    border-color: #818cf8;
    color: #ffffff;
}

/* 6. Textarea Editor & Status Bar (Clean Document Canvas v3.6) */
.editor-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    overflow: hidden;
}

.transcription-editor {
    width: 100%;
    min-height: 380px;
    background: rgba(13, 17, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    padding: 18px 22px;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.transcription-editor:focus {
    outline: none;
    background: rgba(15, 21, 36, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
}

.editor-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 18px;
    background: rgba(10, 14, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0 0 14px 14px;
    font-size: 0.78rem;
    color: #94a3b8;
    user-select: none;
}

.editor-tip {
    color: #64748b;
    font-style: normal;
    font-size: 0.75rem;
}

/* Light Theme Overrides for Transcription Editor */
body.light-theme .transcription-editor {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom: none !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .transcription-editor:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

body.light-theme .editor-status-bar {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light-theme .editor-tip {
    color: #64748b !important;
}

/* 7. AI Tool Result Box (Clean Paper Box v3.6) */
.tool-result-box {
    margin-top: 16px;
    background: rgba(13, 17, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #818cf8;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.25s ease;
}

body.light-theme .tool-result-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #6366f1 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

.ai-result-editor {
    width: 100%;
    min-height: 260px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 16px;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.94rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    resize: vertical;
    box-sizing: border-box;
}

body.light-theme .ai-result-editor {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Bilingual Split View (v3.7 Two-Way Live Sync) */
.bilingual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .bilingual-grid {
        grid-template-columns: 1fr;
    }
}

.bilingual-editor-textarea {
    width: 100%;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 14px;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.bilingual-editor-textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.45);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

body.light-theme .bilingual-editor-textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .bilingual-editor-textarea:focus {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

/* 8. AI Q&A Card (Dual Theme Clean Modern) */
.audio-chat-card {
    margin-top: 18px;
    background: linear-gradient(135deg, rgba(22, 27, 44, 0.9), rgba(14, 17, 28, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.audio-chat-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.chat-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-chip:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1px);
}

#audio-chat-messages {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#audio-chat-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

/* Light Theme Overrides for Audio Chat Card */
body.light-theme .audio-chat-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .audio-chat-card h4 {
    color: #0f172a !important;
}

body.light-theme .audio-chat-sub {
    color: #475569 !important;
}

body.light-theme .chat-chip {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

body.light-theme .chat-chip:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

body.light-theme #audio-chat-messages {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .audio-chat-msg-row.bot {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid #7c3aed !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03) !important;
}

body.light-theme .audio-chat-msg-row.bot div {
    color: #0f172a !important;
}

body.light-theme .audio-chat-msg-row.user {
    color: #7c3aed !important;
}

body.light-theme #audio-chat-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme #audio-chat-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}

/* ============================================================
   --- HISTORY DROPDOWN COMPONENT (v3.6) ---
   ============================================================ */
.history-dropdown-bar {
    margin-top: 18px;
    width: 100%;
}

.history-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.history-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.history-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.history-trigger-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-trigger-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.history-badge-count {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.history-trigger-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-trigger-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-chevron-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.history-dropdown-trigger.open .history-chevron-icon {
    transform: rotate(180deg);
}

.history-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(14, 18, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    z-index: 100;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
}

.history-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.history-dropdown-header input {
    font-size: 0.82rem;
    padding: 8px 12px 8px 34px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 100%;
}

.history-dropdown-list {
    overflow-y: auto;
    max-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.18s ease;
    gap: 10px;
}

.history-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
}

.history-item-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.history-item-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-item-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.history-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-history-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-history-action:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #818cf8;
    color: #ffffff;
}

.btn-history-action.btn-rename:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
}

/* ============================================================
   --- MASTER MOBILE & TABLET RESPONSIVE SYSTEM (v3.5) ---
   ============================================================ */

/* Global Anti-Overflow & Single Master Scrollbar Guard */
html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body {
    overflow: visible !important;
    width: 100%;
    max-width: 100vw;
}

button, a, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .app-main {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .api-hub-grid {
        grid-template-columns: 1fr !important;
    }
    .feature-view-container {
        width: 98% !important;
        padding: 22px !important;
    }
}

/* 2. Standard Tablets & Large Phones (<= 900px) */
@media (max-width: 900px) {
    .results-title-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .results-title-left {
        justify-content: space-between;
    }
    .results-title-quick-actions {
        width: 100%;
    }
    .quick-act-btn {
        flex: 1;
        justify-content: center;
        padding: 8px;
    }
    .results-toolbar-pills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .pill-btn {
        justify-content: center;
        padding: 8px 6px;
        font-size: 0.75rem;
    }
}

/* 3. Smartphones & Small Tablets (<= 768px) */
@media (max-width: 768px) {
    .app-container {
        padding: 10px 10px !important;
    }

    /* Modern 2-Tier Header on Mobile */
    .app-header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px 10px !important;
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        background: rgba(17, 24, 39, 0.85) !important;
        backdrop-filter: blur(16px) !important;
        border: 1px solid var(--border-color) !important;
    }

    .brand {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    .brand h1 {
        font-size: 1.18rem !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    .brand .logo-icon {
        font-size: 1.35rem !important;
    }

    .header-actions {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        width: auto !important;
    }

    .lang-toggle {
        height: 28px !important;
        padding: 2px !important;
        border-radius: 8px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .lang-btn {
        padding: 2px 7px !important;
        font-size: 0.72rem !important;
        height: 24px !important;
        line-height: 24px !important;
    }

    .btn-icon-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
        flex-shrink: 0 !important;
    }

    .user-avatar-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.15rem !important;
        flex-shrink: 0 !important;
    }

    .header-center {
        order: 3 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(12px) !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        margin-top: 2px !important;
    }

    .balance-chip {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        overflow: hidden !important;
    }

    .balance-chip-main {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        padding: 0 !important;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        color: #ffffff !important;
    }

    .balance-chip-divider {
        width: 1px !important;
        height: 16px !important;
        margin: 0 6px !important;
        background: rgba(255, 255, 255, 0.12) !important;
        flex-shrink: 0 !important;
    }

    .balance-mins {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 0 !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        color: #34d399 !important;
        white-space: nowrap !important;
    }

    .btn-topup {
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
    }

    /* Horizontal Nav Tabs (Sleek Segmented Control on Mobile) */
    .dashboard-nav-tabs {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px 0 14px !important;
        padding: 4px !important;
        gap: 4px !important;
        border-radius: 12px !important;
        background: rgba(17, 24, 39, 0.8) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        justify-content: space-between !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .nav-tab {
        flex: 1 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 8px 4px !important;
        font-size: 0.82rem !important;
        border-radius: 9px !important;
        gap: 5px !important;
        min-height: 38px !important;
        white-space: nowrap !important;
    }

    .nav-tab i {
        font-size: 0.85rem !important;
    }

    .nav-tab-badge {
        font-size: 0.62rem !important;
        padding: 2px 5px !important;
        border-radius: 6px !important;
        margin-left: 2px !important;
    }

    /* Workspace Upload & File Info */
    .upload-zone {
        padding: 22px 14px !important;
        border-radius: 12px !important;
    }

    .upload-icon {
        font-size: 2.2rem !important;
        margin-bottom: 8px !important;
    }

    .upload-prompt h3 {
        font-size: 1.05rem !important;
    }

    .upload-prompt p {
        font-size: 0.82rem !important;
        margin-bottom: 6px !important;
    }

    .file-formats {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    .record-divider {
        margin: 12px 0 !important;
        font-size: 0.74rem !important;
    }

    .record-area {
        padding: 12px !important;
    }

    .file-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .file-info-header {
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .file-type-icon {
        font-size: 1.8rem !important;
    }

    .file-name {
        font-size: 0.95rem !important;
    }

    /* Results Output & Mini Player */
    .results-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .result-audio-bar {
        padding: 10px 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        border-radius: 12px !important;
    }

    .audio-controls-left {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .audio-controls-right {
        width: 100% !important;
        justify-content: flex-end !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        gap: 4px !important;
    }

    .audio-play-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.9rem !important;
    }

    .audio-seek-btn {
        padding: 5px 8px !important;
        font-size: 0.72rem !important;
    }

    .audio-time-badge {
        font-size: 0.74rem !important;
        padding: 3px 6px !important;
    }

    .speed-chip {
        padding: 3px 7px !important;
        font-size: 0.7rem !important;
    }

    .transcription-editor {
        min-height: 220px !important;
        height: 260px !important;
        font-size: 0.88rem !important;
        padding: 12px 14px !important;
        line-height: 1.6 !important;
    }

    .editor-status-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 6px 12px !important;
        font-size: 0.72rem !important;
    }

    /* Bilingual Split View */
    .bilingual-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .bilingual-col {
        padding: 10px !important;
    }

    #bilingual-left-content, #bilingual-right-content {
        max-height: 200px !important;
        font-size: 0.84rem !important;
    }

    /* AI Tools */
    .ai-tools-card {
        padding: 14px !important;
        border-radius: 14px !important;
    }

    .tools-tabs {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .tool-tab-btn {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
        min-height: 38px !important;
    }

    .tool-result-box {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .tool-result-box .result-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .tool-result-box .actions {
        display: flex !important;
        gap: 4px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }

    .ai-result-editor {
        min-height: 220px !important;
        height: 240px !important;
        font-size: 0.88rem !important;
        padding: 12px !important;
    }

    .audio-chat-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .audio-chat-chips {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .audio-chat-card input {
        font-size: 0.82rem !important;
        padding: 9px 12px !important;
    }

    /* Advanced History */
    .feature-view-container {
        padding: 14px !important;
        border-radius: 14px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .feature-view-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding-bottom: 12px !important;
    }

    .feature-view-title h2 {
        font-size: 1.2rem !important;
    }

    .feature-view-header > div:last-child {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .feature-view-header .input-with-icon {
        min-width: 0 !important;
        width: 100% !important;
    }

    .history-adv-table {
        font-size: 0.78rem !important;
    }

    .history-adv-table th, .history-adv-table td {
        padding: 10px 8px !important;
    }

    /* Affiliate Tab */
    .aff-summary-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .aff-stat-box {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .aff-stat-box h3 {
        font-size: 1.25rem !important;
    }

    .aff-row-referral, .aff-row-actions, .aff-row-logs {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
    }

    .aff-card-box {
        padding: 14px !important;
        border-radius: 12px !important;
    }

    .payout-bank-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    /* Modals */
    .modal-card {
        width: 95% !important;
        max-width: 95vw !important;
        margin: 8px !important;
        padding: 14px !important;
        max-height: 90vh !important;
        border-radius: 14px !important;
    }

    .modal-header {
        padding: 12px 14px !important;
    }

    .modal-body {
        padding: 14px 10px !important;
    }

    .amount-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .amount-btn {
        padding: 10px 6px !important;
        font-size: 0.85rem !important;
    }

    .deposit-qr-layout {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .qr-container {
        max-width: 220px !important;
        margin: 0 auto !important;
        padding: 12px !important;
    }

    .payment-details {
        width: 100% !important;
    }

    #action-plan-modal .modal-card {
        padding: 14px !important;
        width: 96% !important;
    }

    #action-plan-content {
        max-height: 240px !important;
    }

    #action-plan-table th, #action-plan-table td {
        padding: 8px 6px !important;
        font-size: 0.74rem !important;
    }

    #action-plan-sheets-guide {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        font-size: 0.75rem !important;
    }

    #action-plan-modal .modal-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    #action-plan-modal .modal-footer > div {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    #action-plan-modal .modal-footer button {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
    }

    /* Mobile Record Card Grid & Capabilities */
    .record-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .desktop-only-btn {
        display: none !important;
    }

    .app-main {
        padding-bottom: 110px !important;
    }

    /* Floating Support & Chatbot (Sleek Non-Overlapping Vertical Stack on Mobile) */
    .floating-support {
        bottom: 20px !important;
        right: 16px !important;
        left: auto !important;
        z-index: 99998 !important;
    }

    .floating-support-main {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45) !important;
    }

    .chatbot-widget {
        bottom: 80px !important;
        right: 16px !important;
        left: auto !important;
        z-index: 99998 !important;
    }

    .chatbot-toggle-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45) !important;
    }

    .chatbot-window {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 14px !important;
        top: auto !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        height: 480px !important;
        max-height: 80vh !important;
        border-radius: 16px !important;
        background: #0f172a !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.95) !important;
        z-index: 999999 !important;
    }

    #live-support-modal .modal-content {
        width: calc(100vw - 24px) !important;
        max-height: 80vh !important;
    }

    .account-sidebar {
        width: 100% !important;
        max-width: 330px !important;
    }

    .sidebar-header {
        padding: 16px !important;
    }

    .sidebar-body {
        padding: 16px !important;
        gap: 16px !important;
    }

    .app-footer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 18px 12px !important;
    }

    .app-footer > div:last-child {
        justify-content: center !important;
        gap: 12px !important;
    }
}

/* 4. Compact Phones (<= 600px) */
@media (max-width: 600px) {
    .record-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .record-action-card {
        padding: 10px 12px !important;
    }
    .record-circle {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    .record-info strong {
        font-size: 0.84rem !important;
    }
    .record-info span {
        font-size: 0.72rem !important;
    }
    .pricing-matrix-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 5. Smaller Smartphones (<= 480px) */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px 16px !important;
        margin: 10px !important;
    }
    .auth-logo h2 {
        font-size: 1.5rem !important;
    }
    .auth-subtitle {
        font-size: 0.82rem !important;
        margin-bottom: 20px !important;
    }
    .results-toolbar-pills {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .tools-tabs {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* 6. Extra Small Screens (<= 380px) - iPhone SE, Galaxy A-series */
@media (max-width: 380px) {
    .aff-summary-grid {
        grid-template-columns: 1fr !important;
    }
    .brand h1 {
        font-size: 1.05rem !important;
    }
    .brand .logo-icon {
        font-size: 1.25rem !important;
    }
    .balance-chip-main {
        font-size: 0.8rem !important;
        gap: 3px !important;
        padding: 0 !important;
    }
    .balance-mins {
        font-size: 0.72rem !important;
        gap: 3px !important;
        padding: 0 !important;
    }
    .balance-chip-divider {
        margin: 0 4px !important;
    }
    .btn-topup {
        height: 30px !important;
        padding: 0 9px !important;
        font-size: 0.74rem !important;
    }
    .results-toolbar-pills {
        grid-template-columns: 1fr !important;
    }
    .dashboard-nav-tabs {
        padding: 3px !important;
        gap: 2px !important;
    }
    .nav-tab {
        padding: 7px 2px !important;
        font-size: 0.74rem !important;
        gap: 3px !important;
    }
    .nav-tab i {
        font-size: 0.76rem !important;
    }
}

/* ── Guest Navigation & Product-Led Workspace Styles ── */
.guest-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-guest-login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
    padding: 7px 15px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-guest-login:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-guest-register {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
    animation: giftGlowPulse 2s infinite alternate;
}

.btn-guest-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.65);
}

@keyframes giftGlowPulse {
    0% { box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35); }
    100% { box-shadow: 0 4px 22px rgba(168, 85, 247, 0.7); }
}

.btn-sample-demo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.12));
    border: 1px dashed rgba(168, 85, 247, 0.45);
    color: #c7d2fe;
    padding: 9px 18px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.btn-sample-demo:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.25));
    border-color: #a855f7;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   IN-EDITOR SEARCH & REPLACE DOCK (v4.1.0)
   ========================================================================== */
.btn-search-replace {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    color: #818cf8;
}

.btn-search-replace:hover {
    background: rgba(99, 102, 241, 0.22);
    border-color: #6366f1;
    color: #ffffff;
}

.search-replace-bar {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: 12px;
    padding: 10px 14px;
    margin: 8px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: popoverFade 0.2s ease-out;
}

.sr-inputs-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 280px;
}

.sr-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.sr-icon {
    position: absolute;
    left: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
}

.sr-input-wrap input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.84rem;
    outline: none;
    transition: all 0.2s ease;
}

.sr-input-wrap input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.sr-match-badge {
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.sr-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sr-action {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-sr-action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-sr-action.primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    color: #ffffff;
}

.btn-sr-action.primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-sr-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s;
}

.btn-sr-close:hover {
    color: #ef4444;
}

/* Light Theme overrides for Search & Replace */
body.light-theme .search-replace-bar {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .sr-input-wrap input {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .sr-input-wrap input:focus {
    border-color: #6366f1 !important;
    background: #ffffff !important;
}

body.light-theme .btn-sr-action {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

body.light-theme .btn-sr-action:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   SPEAKER TALK-TIME ANALYTICS MATRIX (v4.1.0)
   ========================================================================== */
.speaker-analytics-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0 12px;
}

.speaker-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.speaker-analytics-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.speaker-total-badge {
    font-size: 0.72rem;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.speaker-progress-track {
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.speaker-segment {
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.speaker-legend-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.speaker-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.speaker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.speaker-chip-name {
    font-weight: 600;
    color: var(--text-main);
}

.speaker-chip-stat {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Light Theme overrides for Speaker Analytics */
body.light-theme .speaker-analytics-bar {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .speaker-progress-track {
    background: #e2e8f0 !important;
}

body.light-theme .speaker-chip {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* ==========================================================================
   ULTRA-MODERN SLEEK CONTENT FRAMES & CANVAS POLISH (v4.3.0)
   Elevated Glassmorphism, Multi-Layer Soft Shadows & Fluid Typography Canvas
   ========================================================================== */

/* 1. Core Card Container Framework */
.results-card,
.ai-tools-card,
.feature-view-container,
.file-card,
.progress-card,
.auth-card,
.modal-card,
.audio-chat-card,
.bilingual-split-container {
    background: var(--surface-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease;
    position: relative;
}

/* Subtle Specular Top Highlight on Hover */
.results-card:hover,
.ai-tools-card:hover,
.file-card:hover {
    border-color: var(--border-light);
}

/* 2. Drag & Drop Upload Zone (Fluid Glass Surface) */
.upload-zone {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(17, 24, 39, 0.75) 100%);
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--card-radius);
    padding: 38px 24px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover {
    border-color: #818cf8;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.14) 0%, rgba(17, 24, 39, 0.85) 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-zone .upload-icon {
    font-size: 3.2rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 16px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-zone:hover .upload-icon {
    transform: translateY(-4px) scale(1.06);
}

.upload-prompt h3 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 6px;
}

.upload-prompt p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.file-formats {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

/* 3. Recording Cards Grid (Modern Dual Microphone & System Audio) */
.record-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    width: 100%;
}

.record-action-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.record-action-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.record-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.record-circle.mic-circle {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.record-circle.screen-circle {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
}

.record-action-card:hover .record-circle {
    transform: scale(1.08);
}

.record-info strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.record-info span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 2px;
}

/* 4. Sleek Document Studio Canvas (Results Card & Textarea) */
.results-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-header-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.time-saved-roi-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-shortcuts-hint {
    background: none;
    border: none;
    color: #f59e0b;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-shortcuts-hint:hover {
    background: rgba(245, 158, 11, 0.15);
}

.results-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.results-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.results-title-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.results-title-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-act-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.quick-act-btn.btn-copy:hover {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
}

.quick-act-btn.btn-tts:hover {
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.4);
    background: rgba(192, 132, 252, 0.1);
}

/* Results Toolbar Pills Bar */
.results-toolbar-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.pill-btn:hover {
    transform: translateY(-1.5px);
    color: #ffffff;
}

/* 5. Document Editor Studio Canvas */
.editor-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--inner-radius);
    background: var(--surface-canvas);
    box-shadow: var(--shadow-canvas);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.editor-wrapper:focus-within {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 10px 32px -4px rgba(99, 102, 241, 0.2), 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.transcription-editor {
    width: 100%;
    min-height: 380px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 22px 26px !important;
    color: var(--text-main) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.98rem !important;
    line-height: 1.85 !important;
    letter-spacing: 0.012em !important;
    resize: vertical;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
}

.editor-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--inner-radius) var(--inner-radius);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    user-select: none;
}

.editor-tip {
    color: #64748b;
    font-size: 0.75rem;
}

/* 6. AI Smart Tools Studio (Floating Segmented Tab Navigation) */
.ai-tools-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.tools-header {
    margin-bottom: 6px;
}

.tools-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tools-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tools-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.tool-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 9px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.tool-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.tool-tab-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.35) 100%);
    border-color: rgba(168, 85, 247, 0.45);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

/* 7. AI Result Display Box (Glass Cardlet) */
.tool-result-box {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(13, 17, 28, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-left: 4px solid var(--accent);
    border-radius: var(--inner-radius);
    padding: 16px;
    box-shadow: var(--shadow-canvas);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

.ai-result-editor {
    width: 100%;
    min-height: 260px;
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 16px 18px !important;
    color: var(--text-main) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.94rem !important;
    line-height: 1.75 !important;
    letter-spacing: 0.01em !important;
    resize: vertical;
    box-sizing: border-box;
    outline: none !important;
}

.ai-result-editor:focus {
    border-color: rgba(168, 85, 247, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.15) !important;
}

/* 8. Audio Chat Q&A Card (Gemini AI Studio Studio Card) */
.audio-chat-card {
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(22, 28, 48, 0.9) 0%, rgba(14, 18, 30, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.chat-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.chat-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#audio-chat-messages {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* 9. Bilingual Split View (Dual Balanced Canvas) */
.bilingual-split-container {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.bilingual-col {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.bilingual-editor-textarea {
    width: 100%;
    min-height: 280px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 4px !important;
    color: var(--text-main) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
    resize: vertical;
    box-sizing: border-box;
    outline: none !important;
}

/* 10. Floating History Dropdown Bar */
.history-dropdown-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.history-dropdown-menu {
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: #0f172a !important;
    box-shadow: var(--shadow-lg);
}

/* 11. Modal Cards Polish */
.modal-card {
    background: #0f172a !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ==========================================================================
   DUAL-THEME INVARIANT: ULTRA-CLEAN PEARL LIGHT THEME FRAMES
   ========================================================================== */
body.light-theme .results-card,
body.light-theme .ai-tools-card,
body.light-theme .feature-view-container,
body.light-theme .file-card,
body.light-theme .progress-card,
body.light-theme .auth-card,
body.light-theme .modal-card,
body.light-theme .audio-chat-card,
body.light-theme .bilingual-split-container {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: var(--shadow-card) !important;
}

body.light-theme .upload-zone {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.05) 0%, #ffffff 100%) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05) !important;
}

body.light-theme .upload-zone:hover {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.1) 0%, #ffffff 100%) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.15) !important;
}

body.light-theme .record-action-card {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .record-action-card:hover {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .editor-wrapper {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-canvas) !important;
}

body.light-theme .editor-wrapper:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .transcription-editor {
    color: #0f172a !important;
}

body.light-theme .editor-status-bar {
    background: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
    color: #475569 !important;
}

body.light-theme .tools-tabs {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .tool-tab-btn {
    color: #475569 !important;
}

body.light-theme .tool-tab-btn.active {
    background: #ffffff !important;
    color: #4f46e5 !important;
    border-color: rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15) !important;
}

body.light-theme .tool-result-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #6366f1 !important;
    box-shadow: var(--shadow-canvas) !important;
}

body.light-theme .ai-result-editor {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-theme .bilingual-col {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .bilingual-editor-textarea {
    color: #0f172a !important;
}

body.light-theme .history-dropdown-trigger {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .history-dropdown-menu {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.15) !important;
}

body.light-theme .modal-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 24px 48px -10px rgba(15, 23, 42, 0.18) !important;
}

body.light-theme .results-file-row {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .results-toolbar-pills {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .pill-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

body.light-theme .pill-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-theme .quick-act-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

body.light-theme .quick-act-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   BACKGROUND TRANSCRIPTION QUEUE (v4.4.3 Non-blocking Concurrent Transcribing)
   ========================================================================== */
.bg-transcribe-queue {
    margin: 14px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.14) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: popoverFade 0.25s ease;
}

.bg-transcribe-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.bg-transcribe-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bg-transcribe-title strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
}

.spinner-mini-glow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    flex-shrink: 0;
}

.bg-pulse-badge {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bg-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.84rem;
    gap: 10px;
}

.bg-task-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.bg-task-name {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-task-timer {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

body.light-theme .bg-transcribe-queue {
    background: #ffffff !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .bg-transcribe-title strong {
    color: #0f172a !important;
}

body.light-theme .bg-task-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .bg-task-name {
    color: #0f172a !important;
}

/* ==========================================================================
   OFFLINE RECORDING AUTO-RECOVERY BANNER (v4.5.0 Resilient Offline-First)
   ========================================================================== */
.pending-recovery-banner {
    margin: 14px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.14) 100%);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: popoverFade 0.3s ease;
}

.recovery-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.recovery-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.recovery-icon-pulsing {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.recovery-banner-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fbbf24;
    display: block;
    line-height: 1.35;
}

.recovery-banner-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-recovery-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-recovery-resume {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-recovery-resume:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.btn-recovery-preview {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-recovery-preview:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-recovery-download {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
}

.btn-recovery-download:hover {
    background: rgba(168, 85, 247, 0.25);
    color: #ffffff;
}

.btn-recovery-dismiss {
    background: none;
    color: var(--text-muted);
    border: none;
    padding: 6px 8px;
    cursor: pointer;
}

.btn-recovery-dismiss:hover {
    color: #ef4444;
}

body.light-theme .pending-recovery-banner {
    background: #fffbeb !important;
    border-color: #fcd34d !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.1) !important;
}

body.light-theme .recovery-banner-text strong {
    color: #b45309 !important;
}

body.light-theme .btn-recovery-preview {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* System Upgrade Alert Banner (v4.7.2) */
.system-upgrade-banner {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.16), rgba(245, 158, 11, 0.14));
    border-bottom: 1px solid rgba(168, 85, 247, 0.28);
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.system-upgrade-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-main);
}

.system-upgrade-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.btn-dismiss-upgrade {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dismiss-upgrade:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

body.light-theme .system-upgrade-banner {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.09), rgba(168, 85, 247, 0.09), rgba(245, 158, 11, 0.09));
    border-bottom-color: rgba(168, 85, 247, 0.22);
}

body.light-theme .system-upgrade-content {
    color: #0f172a;
}
