/* ============================================
   PREMIUM THEME - Azul Ejecutivo + Piedra
   Sin gradientes, con soporte dark / light
   ============================================ */

:root {
    color-scheme: dark;
    --theme-bg: #16202b;
    --theme-bg-elevated: #1d2a38;
    --theme-surface: rgba(36, 52, 69, 0.88);
    --theme-surface-solid: #243445;
    --theme-surface-soft: rgba(48, 68, 87, 0.72);
    --theme-surface-hover: #304457;
    --theme-border: rgba(217, 210, 199, 0.12);
    --theme-border-strong: rgba(217, 210, 199, 0.24);
    --theme-text: #f8f5ef;
    --theme-text-soft: #d9dde2;
    --theme-text-muted: #9eabba;
    --theme-text-dim: #738191;
    --theme-accent: #f6c445;
    --theme-accent-hover: #ffb400;
    --theme-accent-soft: rgba(246, 196, 69, 0.18);
    --theme-accent-strong: rgba(246, 196, 69, 0.3);
    --theme-stone: #f5f2ec;
    --theme-stone-muted: #d9d2c7;
    --theme-success: #4fbf84;
    --theme-warning: #d69a3a;
    --theme-danger: #d66b6b;
    --theme-shadow-sm: 0 8px 20px rgba(9, 15, 23, 0.18);
    --theme-shadow: 0 18px 40px rgba(8, 14, 24, 0.28);
    --theme-shadow-lg: 0 22px 48px rgba(8, 14, 24, 0.34);
}

html[data-theme="light"] {
    color-scheme: light;
    --theme-bg: #f5f2ec;
    --theme-bg-elevated: #e8e1d6;
    --theme-surface: rgba(255, 255, 255, 0.96);
    --theme-surface-solid: #ffffff;
    --theme-surface-soft: rgba(235, 228, 217, 0.96);
    --theme-surface-hover: #e5ddd2;
    --theme-border: rgba(60, 75, 93, 0.18);
    --theme-border-strong: rgba(60, 75, 93, 0.28);
    --theme-text: #16202b;
    --theme-text-soft: #2f4256;
    --theme-text-muted: #526376;
    --theme-text-dim: #6b7b8d;
    --theme-accent: #f6c445;
    --theme-accent-hover: #ffb400;
    --theme-accent-soft: rgba(246, 196, 69, 0.14);
    --theme-accent-strong: rgba(246, 196, 69, 0.26);
    --theme-shadow-sm: 0 10px 24px rgba(24, 34, 47, 0.06);
    --theme-shadow: 0 18px 40px rgba(24, 34, 47, 0.08);
    --theme-shadow-lg: 0 24px 54px rgba(24, 34, 47, 0.1);
}

body {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.gradient-bg {
    background: var(--theme-bg);
}

.glass-card,
.stat-card,
.quick-action-card,
.premium-section {
    background: var(--theme-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-sm);
}

.stat-card,
.quick-action-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.stat-card:hover,
.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow);
    border-color: var(--theme-accent-strong);
}

.premium-sidebar,
.premium-header {
    background: rgba(22, 32, 43, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.premium-sidebar {
    border-right: 1px solid var(--theme-border);
}

.premium-header {
    border-bottom: 1px solid var(--theme-border);
}

html[data-theme="light"] .premium-sidebar,
html[data-theme="light"] .premium-header {
    background: rgba(245, 242, 236, 0.96);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--theme-bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 124, 194, 0.35);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 124, 194, 0.52);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 124, 194, 0.35) var(--theme-bg-elevated);
}

.premium-table thead {
    background: var(--theme-surface-soft);
    border-bottom: 1px solid var(--theme-border);
}

.premium-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.premium-table tbody tr {
    transition: background-color 0.15s ease;
}

.premium-table tbody tr:hover {
    background: rgba(74, 124, 194, 0.08);
}

.premium-table tbody tr + tr {
    border-top: 1px solid var(--theme-border);
}

.premium-input,
.premium-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border-strong);
    color: var(--theme-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.premium-input::placeholder {
    color: var(--theme-text-dim);
}

.premium-input:focus,
.premium-select:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 1px var(--theme-accent);
}

.premium-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%239eabba' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

html[data-theme="light"] .premium-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%23677483' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.premium-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--theme-accent);
    background: var(--theme-surface-solid);
    border: 1px solid var(--theme-border-strong);
    border-radius: 0.25rem;
}

.premium-checkbox:focus {
    box-shadow: 0 0 0 2px rgba(74, 124, 194, 0.24);
    border-color: var(--theme-accent);
    outline: none;
}

.badge-active,
.alert-success {
    background: rgba(79, 191, 132, 0.14);
    color: var(--theme-success);
    border: 1px solid rgba(79, 191, 132, 0.22);
}

.badge-inactive,
.alert-error {
    background: rgba(214, 107, 107, 0.12);
    color: var(--theme-danger);
    border: 1px solid rgba(214, 107, 107, 0.22);
}

.alert-warning {
    background: rgba(214, 154, 58, 0.1);
    color: var(--theme-warning);
    border: 1px solid rgba(214, 154, 58, 0.2);
}

.badge-active,
.badge-inactive,
.alert-success,
.alert-error,
.alert-warning {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.badge-active,
.badge-inactive {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-premium-primary {
    background: var(--theme-accent);
    color: #07111e;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    box-shadow: 0 12px 22px rgba(74, 124, 194, 0.2);
}

.btn-premium-primary:hover {
    background: var(--theme-accent-hover);
    transform: translateY(-1px);
}

.btn-premium-secondary {
    background: var(--theme-surface-soft);
    color: var(--theme-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-border);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.btn-premium-secondary:hover {
    background: var(--theme-surface-hover);
    border-color: var(--theme-accent-strong);
}

.emoji-glow {
    filter: drop-shadow(0 0 10px rgba(74, 124, 194, 0.22));
}

.progress-ring {
    transform: rotate(-90deg);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.secret {
    filter: blur(6px);
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s ease;
}

.secret.revealed {
    filter: blur(0);
}

.brand-mark {
    background: var(--theme-accent-soft);
    color: var(--theme-accent);
    border: 1px solid rgba(74, 124, 194, 0.28);
    box-shadow: 0 10px 24px rgba(74, 124, 194, 0.16);
}

.brand-title {
    color: var(--theme-text);
}

.brand-kicker,
.link-accent {
    color: var(--theme-accent);
}

.link-accent:hover {
    color: var(--theme-accent-hover);
}

.nav-chip-active {
    color: var(--theme-text);
    background: rgba(74, 124, 194, 0.18);
    border: 1px solid rgba(74, 124, 194, 0.34);
    box-shadow: inset 0 0 0 1px rgba(74, 124, 194, 0.08);
}

.nav-chip-idle {
    color: var(--theme-text-muted);
    background: rgba(36, 52, 69, 0.54);
    border: 1px solid rgba(217, 210, 199, 0.1);
}

.nav-chip-idle:hover {
    color: var(--theme-text);
    background: rgba(48, 68, 87, 0.72);
    border-color: rgba(74, 124, 194, 0.25);
}

html[data-theme="light"] .nav-chip-idle {
    background: rgba(255, 255, 255, 0.94);
    color: var(--theme-text-muted);
    border-color: rgba(60, 75, 93, 0.14);
}

.icon-btn {
    background: rgba(36, 52, 69, 0.56);
    color: var(--theme-text-muted);
    border: 1px solid rgba(217, 210, 199, 0.12);
}

.icon-btn:hover {
    background: rgba(48, 68, 87, 0.76);
    color: var(--theme-text);
    border-color: rgba(74, 124, 194, 0.28);
}

.icon-btn--theme:hover {
    color: var(--theme-accent);
}

.icon-btn--danger:hover {
    color: var(--theme-danger);
}

html[data-theme="light"] .icon-btn {
    background: rgba(255, 255, 255, 0.94);
    color: var(--theme-text-soft);
    border-color: rgba(60, 75, 93, 0.14);
}

.avatar-badge,
.client-avatar-frame {
    border: 2px solid rgba(74, 124, 194, 0.34);
    color: var(--theme-accent);
    background: rgba(74, 124, 194, 0.14);
    box-shadow: 0 10px 24px rgba(74, 124, 194, 0.14);
}

.profile-trigger {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(320px, 88vw);
    display: none;
    background: var(--theme-surface-solid);
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    box-shadow: var(--theme-shadow-lg);
    overflow: hidden;
    z-index: 1001;
}

.profile-menu.active {
    display: block;
    animation: scaleIn 0.16s ease-out forwards;
}

.profile-menu-head {
    padding: 1rem 1rem 0.85rem;
    background: var(--theme-surface-soft);
    border-bottom: 1px solid var(--theme-border);
}

.profile-menu-name {
    color: var(--theme-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.profile-menu-sub {
    color: var(--theme-text-muted);
    font-size: 0.74rem;
    margin-top: 0.2rem;
}

.profile-menu-section {
    padding: 0.45rem;
}

.profile-menu-link,
.profile-menu-action {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    color: var(--theme-text-soft);
    text-decoration: none;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.profile-menu-link:hover,
.profile-menu-action:hover,
.profile-menu-link.is-active {
    background: rgba(74, 124, 194, 0.12);
    color: var(--theme-text);
}

.profile-menu-link-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.profile-menu-divider {
    margin: 0.15rem 1rem 0.35rem;
    height: 1px;
    background: var(--theme-border);
}

.profile-menu-note {
    padding: 0.2rem 1rem 1rem;
    color: var(--theme-text-dim);
    font-size: 0.72rem;
}

.pill-balance {
    background: rgba(36, 52, 69, 0.56);
    border: 1px solid rgba(217, 210, 199, 0.12);
}

html[data-theme="light"] .pill-balance {
    background: rgba(92, 108, 126, 0.18);
    border-color: rgba(60, 75, 93, 0.14);
    color: var(--theme-text-soft);
}

html[data-theme="light"] .profile-menu {
    border-color: rgba(60, 75, 93, 0.16);
}

html[data-theme="light"] .profile-menu-head {
    background: rgba(232, 225, 214, 0.92);
}

html[data-theme="light"] .profile-menu-link,
html[data-theme="light"] .profile-menu-action {
    color: var(--theme-text-soft);
}

html[data-theme="light"] .profile-menu-link:hover,
html[data-theme="light"] .profile-menu-action:hover,
html[data-theme="light"] .profile-menu-link.is-active {
    background: rgba(74, 124, 194, 0.14);
    color: var(--theme-text);
}

html[data-theme="light"] .profile-menu-head .text-slate-300 {
    color: var(--theme-text-soft) !important;
}

.status-dot {
    border-color: var(--theme-bg);
}

html[data-theme="light"] .status-dot {
    border-color: var(--theme-stone);
}

/* Tailwind utility overrides */
html body .text-white {
    color: var(--theme-text);
}

html body .text-gray-200,
html body .text-gray-300,
html body .text-gray-400,
html body .text-slate-200,
html body .text-slate-300,
html body .text-slate-400 {
    color: var(--theme-text-muted);
}

html body .text-gray-500,
html body .text-slate-500,
html body .text-slate-600,
html body .text-gray-600 {
    color: var(--theme-text-dim);
}

html[data-theme="light"] body .placeholder-slate-600::placeholder,
html[data-theme="light"] body .placeholder-gray-500::placeholder,
html[data-theme="light"] body .placeholder-gray-400::placeholder {
    color: var(--theme-text-dim);
    opacity: 1;
}

html body .text-blue-300,
html body .text-blue-400,
html body .text-blue-500 {
    color: var(--theme-accent);
}

html body .text-blue-600 {
    color: var(--theme-accent-hover);
}

html body .hover\:text-blue-300:hover,
html body .hover\:text-blue-400:hover,
html body .hover\:text-blue-500:hover {
    color: var(--theme-accent-hover);
}

html body .bg-blue-400,
html body .bg-blue-500 {
    background-color: var(--theme-accent);
    color: #07111e !important;
}

html body .bg-blue-400 *,
html body .bg-blue-500 * {
    color: #07111e !important;
}

html body .hover\:bg-blue-500:hover,
html body .hover\:bg-blue-600:hover {
    background-color: var(--theme-accent-hover);
}

html body .bg-blue-400\/10,
html body .bg-blue-500\/10 {
    background: rgba(74, 124, 194, 0.1);
}

html body .bg-blue-400\/20,
html body .bg-blue-500\/20,
html body .bg-blue-900\/10 {
    background: rgba(74, 124, 194, 0.16);
}

html body .border-blue-400\/30,
html body .border-blue-400\/40,
html body .border-blue-400\/50,
html body .border-blue-400\/55,
html body .border-blue-500\/20 {
    border-color: rgba(74, 124, 194, 0.3);
}

html body .hover\:border-blue-400:hover,
html body .hover\:border-blue-500:hover {
    border-color: rgba(74, 124, 194, 0.4);
}

html body .bg-slate-900,
html body .bg-slate-900\/60,
html body .bg-slate-900\/90,
html body .bg-\[\#0f172a\] {
    background: var(--theme-bg-elevated);
}

html body .bg-slate-800,
html body .bg-slate-800\/40,
html body .bg-slate-800\/50,
html body .bg-slate-800\/60,
html body .bg-slate-800\/80,
html body .bg-\[\#1e293b\]\/80 {
    background: var(--theme-surface);
}

html body .bg-slate-700,
html body .bg-slate-700\/20,
html body .bg-slate-700\/30,
html body .bg-slate-700\/45 {
    background: rgba(48, 68, 87, 0.68);
}

html body .hover\:bg-slate-700:hover,
html body .hover\:bg-slate-700\/20:hover,
html body .hover\:bg-slate-700\/45:hover,
html body .hover\:bg-slate-600:hover {
    background: var(--theme-surface-hover);
}

html body .border-slate-700,
html body .border-slate-700\/50,
html body .border-slate-700\/60,
html body .border-slate-600,
html body .border-white\/10 {
    border-color: var(--theme-border);
}

html body .divide-slate-700\/50 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--theme-border);
}

html body input[class*="bg-slate-900"],
html body select[class*="bg-slate-900"],
html body textarea[class*="bg-slate-900"] {
    background: var(--theme-bg-elevated) !important;
    border-color: var(--theme-border-strong) !important;
    color: var(--theme-text) !important;
}

html[data-theme="light"] body input[class*="bg-slate-900"],
html[data-theme="light"] body select[class*="bg-slate-900"],
html[data-theme="light"] body textarea[class*="bg-slate-900"] {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

html[data-theme="light"] body input[class*="bg-slate-900"]::placeholder,
html[data-theme="light"] body textarea[class*="bg-slate-900"]::placeholder {
    color: var(--theme-text-dim) !important;
    opacity: 1;
}

html body select option {
    background: var(--theme-surface-solid);
    color: var(--theme-text);
}

html body .wallet-card {
    background: var(--theme-surface);
    background-image: none !important;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-sm);
}

html body .wallet-card:hover {
    border-color: rgba(74, 124, 194, 0.34) !important;
    box-shadow: var(--theme-shadow);
}

html body .bg-gradient-to-br,
html body .bg-gradient-to-r,
html body .bg-gradient-to-tr {
    background-image: none !important;
}

html body .from-blue-600,
html body .from-blue-400,
html body .from-blue-800,
html body .to-blue-400,
html body .to-blue-500,
html body .to-blue-600,
html body .to-blue-800,
html body .from-primary,
html body .to-violet-500\/5,
html body .to-violet-600,
html body .from-navy-800,
html body .to-navy-900 {
    --tw-gradient-from: transparent;
    --tw-gradient-to: transparent;
}

html body .from-blue-600,
html body .from-blue-400,
html body .from-blue-800,
html body .to-blue-400,
html body .to-blue-500,
html body .to-blue-600,
html body .to-blue-800 {
    background-color: var(--theme-accent);
    color: #07111e !important;
}

html body .from-blue-600 *,
html body .from-blue-400 *,
html body .from-blue-800 *,
html body .to-blue-400 *,
html body .to-blue-500 *,
html body .to-blue-600 *,
html body .to-blue-800 * {
    color: #07111e !important;
}

html body .from-primary,
html body .from-primary\/5,
html body .via-primary,
html body .to-violet-500\/5,
html body .to-violet-600 {
    background-color: rgba(74, 124, 194, 0.14);
}

html body .from-navy-800,
html body .to-navy-900 {
    background-color: var(--theme-surface-solid);
}

html body .from-slate-800\/80,
html body .to-slate-900\/90 {
    background-color: var(--theme-surface-solid);
}

html body .from-emerald-400,
html body .from-emerald-500,
html body .to-emerald-400,
html body .to-emerald-600 {
    background-color: rgba(79, 191, 132, 0.9);
}

html body .from-amber-500,
html body .to-amber-400 {
    background-color: rgba(214, 154, 58, 0.92);
}

html body .from-red-500,
html body .from-red-600,
html body .to-red-400,
html body .to-red-500 {
    background-color: rgba(214, 107, 107, 0.92);
}

html body .from-violet-500,
html body .to-violet-400,
html body .from-cyan-500,
html body .to-cyan-400 {
    background-color: rgba(74, 124, 194, 0.88);
}

html body .shadow-blue-500\/25,
html body .shadow-blue-500\/30,
html body .shadow-blue-900\/20 {
    --tw-shadow-color: rgba(74, 124, 194, 0.22);
}

html body .hover\:text-white:hover {
    color: var(--theme-text);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--theme-border);
    background: var(--theme-surface-soft);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    color: var(--theme-text-muted);
}

.theme-toggle-btn:hover {
    color: var(--theme-accent);
    background: var(--theme-surface-hover);
    border-color: var(--theme-accent-strong);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--theme-surface-solid);
    backdrop-filter: blur(12px);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: var(--theme-shadow);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: top right;
    animation: scaleIn 0.2s ease-out forwards;
}

html[data-theme="light"] .notif-dropdown {
    border-color: rgba(60, 75, 93, 0.16);
}

.notif-dropdown.active {
    display: flex;
}

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--theme-text);
}

.notif-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(217, 210, 199, 0.08);
    display: flex;
    gap: 12px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(74, 124, 194, 0.08);
}

.notif-item.unread {
    background: rgba(74, 124, 194, 0.12);
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.info {
    background: rgba(74, 124, 194, 0.14);
    color: var(--theme-accent);
}

.notif-icon.success {
    background: rgba(79, 191, 132, 0.14);
    color: var(--theme-success);
}

.notif-icon.warning {
    background: rgba(214, 154, 58, 0.14);
    color: var(--theme-warning);
}

.notif-icon.error {
    background: rgba(214, 107, 107, 0.14);
    color: var(--theme-danger);
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--theme-text);
}

.notif-text {
    font-size: 12px;
    color: var(--theme-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 10px;
    color: var(--theme-text-dim);
    margin-top: 4px;
}

/* Auth / 2FA */
.auth-shell {
    background: var(--theme-bg);
    color: var(--theme-text);
}

.auth-backdrop-grid {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background: rgba(217, 210, 199, 0.04);
}

.auth-orb {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 9999px;
    filter: blur(72px);
    opacity: 0.24;
}

.auth-orb--accent {
    background: rgba(74, 124, 194, 0.36);
}

.auth-orb--stone {
    background: rgba(217, 210, 199, 0.22);
}

.auth-brand-lock {
    background: var(--theme-accent);
    box-shadow: 0 16px 34px rgba(74, 124, 194, 0.18);
}

.auth-brand-lock-inner {
    background: var(--theme-bg);
}

.auth-wordmark-accent {
    color: var(--theme-accent);
}

.auth-card {
    background: var(--theme-surface);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow-lg);
}

.auth-option {
    background: var(--theme-bg-elevated);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

.auth-option:hover {
    border-color: rgba(74, 124, 194, 0.34);
    box-shadow: 0 12px 28px rgba(8, 14, 24, 0.18);
}

.auth-option-icon {
    background: rgba(74, 124, 194, 0.12);
    color: var(--theme-accent);
}

.auth-option-icon--success {
    background: rgba(79, 191, 132, 0.12);
    color: var(--theme-success);
}

.auth-code-input {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

.auth-code-input:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px rgba(74, 124, 194, 0.16);
}

.auth-primary-btn {
    background: var(--theme-accent);
    color: #07111e;
    box-shadow: 0 16px 28px rgba(74, 124, 194, 0.18);
}

.auth-primary-btn:hover {
    background: var(--theme-accent-hover);
}

.auth-secondary-link {
    color: var(--theme-text-muted);
}

.auth-secondary-link:hover {
    color: var(--theme-text);
}

html[data-theme="light"] .auth-backdrop-grid {
    opacity: 0.3;
    background: rgba(22, 32, 43, 0.04);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   LANDING PRIME VIDEO-LIKE REFRESH
   Scoped only to the public sales page
   ============================================ */

body.landing-prime {
    --landing-bg: #04101d;
    --landing-bg-deep: #07192b;
    --landing-bg-elevated: #0b2036;
    --landing-surface: rgba(7, 24, 40, 0.82);
    --landing-surface-soft: rgba(11, 32, 54, 0.72);
    --landing-surface-strong: rgba(9, 27, 45, 0.92);
    --landing-border: rgba(110, 168, 255, 0.16);
    --landing-border-strong: rgba(110, 168, 255, 0.28);
    --landing-text: #f5f9ff;
    --landing-text-soft: #c4d2e5;
    --landing-text-muted: #7f94ad;
    --landing-blue: #0ea5e9;
    --landing-blue-soft: rgba(14, 165, 233, 0.18);
    --landing-blue-glow: rgba(14, 165, 233, 0.22);
    --landing-yellow: #f6c445;
    --landing-yellow-strong: #ffb400;
    --landing-yellow-soft: rgba(246, 196, 69, 0.18);
    --landing-danger: #f87171;
    --landing-success: #38bdf8;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 26%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, #06101d 0%, #071625 28%, #04101d 100%);
    color: var(--landing-text);
}

body.landing-prime::before,
body.landing-prime::after {
    content: '';
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.55;
}

body.landing-prime::before {
    top: 88px;
    left: -90px;
    width: 260px;
    height: 260px;
    background: rgba(14, 165, 233, 0.18);
}

body.landing-prime::after {
    right: -120px;
    bottom: 12%;
    width: 300px;
    height: 300px;
    background: rgba(246, 196, 69, 0.12);
}

body.landing-prime .bg-image {
    filter: saturate(0.8) brightness(0.34) contrast(1.08);
    transform: scale(1.08);
}

body.landing-prime .bg-blur {
    backdrop-filter: blur(100px) saturate(160%);
    -webkit-backdrop-filter: blur(100px) saturate(160%);
    background:
        radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.1), transparent 24%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(4, 16, 29, 0.66), rgba(4, 16, 29, 0.9));
}

body.landing-prime .bg-grid {
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 88%);
}

body.landing-prime .nav,
body.landing-prime .stats,
body.landing-prime .section,
body.landing-prime .card,
body.landing-prime .footer,
body.landing-prime .modal,
body.landing-prime .landing-hero-panel {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.landing-prime .nav {
    background: rgba(4, 16, 29, 0.72);
    border-bottom: 1px solid var(--landing-border);
    box-shadow: 0 24px 48px rgba(1, 8, 16, 0.26);
}

body.landing-prime .nav-logo {
    background:
        linear-gradient(180deg, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0.08)),
        rgba(7, 24, 40, 0.95);
    border-color: rgba(110, 168, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(2, 10, 18, 0.28);
}

body.landing-prime .nav-title {
    letter-spacing: 0.08em;
    font-size: 0.98rem;
}

body.landing-prime .theme-toggle-btn,
body.landing-prime .btn-secondary,
body.landing-prime .btn-google {
    background: rgba(9, 27, 45, 0.78);
    border: 1px solid rgba(110, 168, 255, 0.16);
    color: var(--landing-text-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.landing-prime .theme-toggle-btn:hover,
body.landing-prime .btn-secondary:hover,
body.landing-prime .btn-google:hover {
    border-color: rgba(246, 196, 69, 0.32);
    background: rgba(11, 32, 54, 0.94);
    color: var(--landing-text);
    box-shadow: 0 16px 28px rgba(1, 8, 16, 0.24);
}

body.landing-prime .btn-primary,
body.landing-prime .card-btn,
body.landing-prime .btn-submit {
    background: #f6c445;
    color: #07111e;
    border: 1px solid rgba(255, 238, 168, 0.45);
    box-shadow: 0 16px 30px rgba(246, 196, 69, 0.22);
}

body.landing-prime .btn-primary:hover,
body.landing-prime .card-btn:hover,
body.landing-prime .btn-submit:hover {
    background: #ffb400;
    color: #04101d;
    box-shadow: 0 20px 34px rgba(246, 196, 69, 0.28);
}

body.landing-prime .hero {
    min-height: auto;
    padding: 132px 24px 68px;
}

body.landing-prime .landing-hero-panel {
    width: min(1080px, 100%);
    padding: clamp(2rem, 4vw, 3.4rem);
    border-radius: 32px;
    border: 1px solid var(--landing-border);
    background: rgba(7, 24, 40, 0.95);
    box-shadow: 0 24px 60px rgba(1, 8, 16, 0.36);
}

body.landing-prime .landing-hero-panel::before {
    display: none;
}

body.landing-prime .hero-badge {
    background: rgba(246, 196, 69, 0.12);
    border-color: rgba(246, 196, 69, 0.24);
    color: #f6c445;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

body.landing-prime .hero-badge::before {
    width: 8px;
    height: 8px;
    background: var(--landing-yellow);
    box-shadow: 0 0 0 6px rgba(246, 196, 69, 0.12);
}

body.landing-prime .hero h1 {
    max-width: 840px;
    color: #f8fbff;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.landing-prime .hero p {
    max-width: 640px;
    color: var(--landing-text-soft);
    font-size: 1.02rem;
}

body.landing-prime .hero-cta {
    gap: 0.9rem;
}

body.landing-prime .stats {
    width: min(1180px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: -12px auto 0;
    padding: 1rem;
    border-radius: 28px;
    border: 1px solid var(--landing-border);
    background: rgba(7, 24, 40, 0.95);
    box-shadow: 0 22px 52px rgba(1, 8, 16, 0.3);
}

body.landing-prime .stat {
    position: relative;
    padding: 1.15rem 1.15rem 1.05rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(110, 168, 255, 0.1);
    overflow: hidden;
}

body.landing-prime .stat::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: rgba(246, 196, 69, 0.82);
}

body.landing-prime .stat-value {
    color: #f8fbff;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.landing-prime .stat-label {
    margin-top: 0.35rem;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    font-weight: 700;
}

body.landing-prime .section {
    position: relative;
    width: min(1180px, calc(100% - 48px));
    margin: 34px auto 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 32px;
    border: 1px solid var(--landing-border);
    background: rgba(7, 24, 40, 0.95);
    box-shadow: 0 22px 52px rgba(1, 8, 16, 0.26);
}

body.landing-prime .section::before {
    display: none;
}

body.landing-prime .section-title {
    color: #f6c445;
    letter-spacing: 0.18em;
    font-weight: 800;
}

body.landing-prime .section h2 {
    color: var(--landing-text);
    letter-spacing: -0.03em;
}

body.landing-prime .landing-filter-bar {
    padding: 0.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(110, 168, 255, 0.1);
}

body.landing-prime .filter-select,
body.landing-prime .form-input {
    background: rgba(5, 18, 31, 0.88);
    color: var(--landing-text);
    border: 1px solid rgba(110, 168, 255, 0.14);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.landing-prime .filter-select:hover,
body.landing-prime .form-input:hover {
    border-color: rgba(246, 196, 69, 0.2);
}

body.landing-prime .filter-select:focus,
body.landing-prime .form-input:focus {
    border-color: rgba(246, 196, 69, 0.5);
    box-shadow: 0 0 0 4px rgba(246, 196, 69, 0.12);
}

body.landing-prime .form-label {
    color: var(--landing-text-soft);
    font-weight: 600;
}

body.landing-prime .form-input::placeholder {
    color: var(--landing-text-muted);
}

body.landing-prime .grid {
    gap: 1.15rem;
}

body.landing-prime .card {
    border-radius: 28px;
    border: 1px solid rgba(110, 168, 255, 0.12);
    background: rgba(8, 24, 40, 0.95);
    box-shadow: 0 18px 40px rgba(1, 8, 16, 0.24);
}

body.landing-prime .card::before {
    display: none;
}

body.landing-prime .card:hover {
    border-color: rgba(246, 196, 69, 0.22);
    box-shadow: 0 24px 50px rgba(1, 8, 16, 0.32);
}

body.landing-prime .card-image {
    background: rgba(5, 18, 31, 0.92);
}

body.landing-prime .card-image img {
    opacity: 0.96;
}

body.landing-prime .card-badge {
    top: 1rem;
    left: 1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.landing-prime .card-badge.in-stock {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(14, 165, 233, 0.22);
    color: #b6e6fb;
}

body.landing-prime .card-badge.out-stock {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.18);
}

body.landing-prime .card h3 {
    color: var(--landing-text);
}

body.landing-prime .card p {
    color: var(--landing-text-soft);
}

body.landing-prime .card-stats {
    gap: 0.5rem;
}

body.landing-prime .card-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 168, 255, 0.08);
    border-radius: 999px;
    color: var(--landing-text-soft);
}

body.landing-prime .card-stat.available {
    color: #8edbff;
}

body.landing-prime .card-stat.sold {
    color: #ffd977;
}

body.landing-prime .card-price {
    color: #fff3c2;
    text-shadow: 0 10px 24px rgba(246, 196, 69, 0.12);
}

body.landing-prime .card-price span {
    color: var(--landing-text-muted);
}

body.landing-prime .footer {
    width: min(1180px, calc(100% - 48px));
    margin: 34px auto 40px;
    border-radius: 32px;
    border: 1px solid var(--landing-border);
    background: linear-gradient(180deg, rgba(8, 24, 40, 0.88), rgba(5, 18, 31, 0.88));
    box-shadow: 0 20px 48px rgba(1, 8, 16, 0.24);
}

body.landing-prime .footer-brand h3,
body.landing-prime .footer h4 {
    color: #f8fbff;
}

body.landing-prime .footer-brand p,
body.landing-prime .footer-contact p,
body.landing-prime .footer-bottom p,
body.landing-prime .footer a {
    color: var(--landing-text-soft);
}

body.landing-prime .footer a:hover,
body.landing-prime .modal-footer a:hover {
    color: #ffe38c;
}

body.landing-prime .footer-bottom {
    border-top-color: rgba(110, 168, 255, 0.12);
}

body.landing-prime .modal-overlay {
    background: rgba(1, 8, 16, 0.74);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.landing-prime .modal {
    border-radius: 30px;
    border: 1px solid rgba(110, 168, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(9, 27, 45, 0.98), rgba(5, 18, 31, 0.96));
    box-shadow: 0 28px 70px rgba(1, 8, 16, 0.45);
}

body.landing-prime .modal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at top right, rgba(246, 196, 69, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
}

body.landing-prime .modal-close {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(110, 168, 255, 0.12);
    color: var(--landing-text-soft);
}

body.landing-prime .modal-close:hover {
    background: rgba(246, 196, 69, 0.12);
    border-color: rgba(246, 196, 69, 0.22);
    color: #fff5d2;
}

body.landing-prime .modal-icon {
    background: linear-gradient(180deg, rgba(246, 196, 69, 0.16), rgba(246, 196, 69, 0.06));
    border: 1px solid rgba(246, 196, 69, 0.2);
    color: #ffe085;
}

body.landing-prime .modal h2 {
    color: var(--landing-text);
}

body.landing-prime .modal > p,
body.landing-prime .modal-footer p,
body.landing-prime .captcha-hint {
    color: var(--landing-text-soft);
}

body.landing-prime .error-box {
    background: rgba(127, 29, 29, 0.24);
    border: 1px solid rgba(248, 113, 113, 0.28);
    color: #fecaca;
}

body.landing-prime .auth-divider span {
    background: rgba(5, 18, 31, 0.96);
    color: var(--landing-text-muted);
}

body.landing-prime .auth-divider::before {
    background: rgba(110, 168, 255, 0.12);
}

@media (max-width: 980px) {
    body.landing-prime .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.landing-prime .nav {
        padding: 14px 18px;
    }

    body.landing-prime .nav-title {
        display: none;
    }

    body.landing-prime .hero {
        padding: 108px 18px 44px;
    }

    body.landing-prime .landing-hero-panel,
    body.landing-prime .section,
    body.landing-prime .footer,
    body.landing-prime .stats {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
        border-radius: 26px;
    }

    body.landing-prime .landing-hero-panel {
        padding: 1.5rem;
    }

    body.landing-prime .section {
        margin-top: 22px;
        padding: 1.25rem;
    }

    body.landing-prime .section-header {
        gap: 1rem;
    }

    body.landing-prime .landing-filter-bar {
        width: 100%;
    }

    body.landing-prime .filter-select {
        width: 100%;
    }

    body.landing-prime .grid {
        gap: 1rem;
    }

    body.landing-prime .card {
        border-radius: 24px;
    }

    body.landing-prime .modal {
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    body.landing-prime .nav-actions {
        gap: 0.55rem;
    }

    body.landing-prime .btn,
    body.landing-prime .btn-large {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.landing-prime .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    body.landing-prime .hero p {
        font-size: 0.96rem;
    }

    body.landing-prime .card-body {
        padding: 1.2rem;
    }
}
