/**
 * ═══════════════════════════════════════════════════════════════
 * SIMULADOR DE NÓMINA PRO v36.0 — PREMIUM DESIGN SYSTEM
 * Glassmorphism + Dark Mode + Micro-Animations
 * ═══════════════════════════════════════════════════════════════
 */

/* ─── Google Fonts fallback ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══ DESIGN TOKENS ═══ */
:root {
    /* Color Palette — Deep Space */
    --bg-primary: #050a18;
    --bg-secondary: #0c1529;
    --bg-surface: rgba(15, 25, 50, 0.7);
    --bg-surface-solid: #0f1932;
    --bg-elevated: rgba(25, 40, 75, 0.6);
    --bg-hover: rgba(30, 50, 90, 0.5);

    /* Accent Colors */
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-600: #2563eb;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --purple-500: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.25);
    --emerald-500: #10b981;
    --emerald-400: #34d399;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --amber-500: #f59e0b;
    --red-500: #ef4444;
    --red-400: #f87171;
    --red-glow: rgba(239, 68, 68, 0.15);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-accent: var(--blue-400);

    /* Glass Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.06);
    --glass-border-hover: 1px solid rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    --glass-blur-heavy: blur(24px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 40px var(--blue-glow);
    --shadow-glow-emerald: 0 0 40px var(--emerald-glow);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.35s;
    --duration-slow: 0.6s;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 85% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hidden { display: none !important; }

/* ═══ APP CONTAINER ═══ */
.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* ═══ HEADER ═══ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: var(--glass-border);
    flex-wrap: wrap;
    gap: 16px;
}

.header-left { display: flex; align-items: center; }
.header-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 12px var(--blue-glow));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-400), var(--purple-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

.version-badge {
    display: inline-block;
    background: var(--bg-elevated);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    color: var(--text-muted);
    border: var(--glass-border);
    margin-left: 6px;
}

/* Server status */
.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: var(--glass-border);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-checking { background: rgba(245, 158, 11, 0.1); color: var(--amber-500); }
.status-checking .status-dot { background: var(--amber-500); }
.status-online { background: rgba(16, 185, 129, 0.1); color: var(--emerald-500); }
.status-online .status-dot { background: var(--emerald-500); animation: none; }
.status-offline { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }
.status-offline .status-dot { background: var(--text-muted); animation: none; }

.driver-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-400);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ═══ PANELS ═══ */
.panel {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: border-color var(--duration-fast);
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) backwards;
}

.panel:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

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

.panel-header { margin-bottom: 20px; }
.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-icon { font-size: 1.2rem; }

/* ═══ CONFIG GRID ═══ */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-secondary);
    border: var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--duration-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background: rgba(15, 21, 41, 0.9);
}

/* Prices panel */
.prices-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: var(--glass-border);
}

.prices-title {
    font-size: 0.85rem;
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.price-item label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    display: block;
}

.price-input {
    color: var(--emerald-400) !important;
    font-weight: 700 !important;
}

.panel-warning {
    background: var(--red-glow);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 20px 24px;
    border-radius: 12px;
}

.warning-title {
    color: var(--red-400);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input, select {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--bg-hover);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* (Merged into single .btn definition below) */

.warning-list li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══ UPLOAD ZONE ═══ */
.upload-zone {
    position: relative;
    border: 2px dashed rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    background: rgba(59, 130, 246, 0.02);
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.upload-zone:hover {
    border-color: var(--blue-500);
    background: rgba(59, 130, 246, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}

.upload-zone:hover::before { opacity: 1; }

.upload-zone.drag-over {
    border-color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: var(--shadow-glow-emerald);
}

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

.upload-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px var(--blue-glow));
}

.upload-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.upload-formats {
    margin-top: 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    border: var(--glass-border);
}

.upload-progress {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.progress-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    border-radius: 4px;
    width: 0%;
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    display: block;
}

/* ═══ ACTION BUTTONS ═══ */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 13px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    color: white;
    box-shadow: 0 6px 20px -4px var(--blue-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -4px var(--blue-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ═══ STATUS MESSAGE ═══ */
.status-message {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: fadeSlideUp 0.3s var(--ease-out);
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-400);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--amber-500);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ═══ RESULTS ═══ */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-accent);
}

/* ═══ METRIC CARDS ═══ */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .metrics-row {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) backwards;
}

.metric-card:nth-child(1) { animation-delay: 0.05s; }
.metric-card:nth-child(2) { animation-delay: 0.15s; }
.metric-card:nth-child(3) { animation-delay: 0.25s; }

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Left accent bar */
.metric-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.metric-hours::before { background: linear-gradient(180deg, var(--blue-400), var(--blue-600)); }
.metric-extra::before { background: linear-gradient(180deg, var(--red-400), var(--red-500)); }
.metric-money::before { background: linear-gradient(180deg, var(--emerald-400), var(--emerald-500)); }

/* Glow effect */
.metric-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.06;
}

.metric-hours::after { background: var(--blue-500); }
.metric-extra::after { background: var(--red-500); }
.metric-money::after { background: var(--emerald-500); }

.metric-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* (Diet badges defined below in single block) */

.metric-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.metric-val {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.metric-hours .metric-val { color: var(--blue-400); }
.metric-extra .metric-val { color: var(--red-400); }
.metric-money .metric-val { color: var(--emerald-400); }

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══ CHARTS ═══ */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .charts-row { grid-template-columns: 1fr; }
}

.chart-panel h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.chart-container {
    position: relative;
    height: 250px;
}

.chart-container-small {
    position: relative;
    height: 220px;
}

/* ═══ TABLE ═══ */
.table-panel {
    overflow: hidden;
    margin-bottom: 24px;
}

.table-header {
    margin-bottom: 16px;
}

.table-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

/* Anchos de columna optimizados */
.col-fecha { min-width: 130px; width: 130px; text-align: left !important; }
.col-hora  { min-width: 55px; width: 55px; }
.col-pern  { min-width: 60px; width: 60px; }
.col-dur   { min-width: 75px; width: 75px; }
.col-km    { min-width: 50px; width: 50px; }
.col-extra { min-width: 70px; width: 70px; }
.col-dieta { min-width: 140px; width: 140px; }
.col-desc  { min-width: 80px; width: 80px; }
.col-imp   { min-width: 100px; width: 100px; }

thead th {
    text-align: center;
    padding: 14px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--blue-500);
    position: sticky;
    top: 0;
}

thead th:first-child, tbody td:first-child {
    text-align: left;
    padding-left: 20px;
}

tbody td {
    padding: 12px 10px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-align: center;
}

tbody tr {
    transition: background var(--duration-fast);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.row-date {
    font-weight: 700;
    color: var(--text-primary) !important;
}

.badge-money {
    color: var(--emerald-400) !important;
    font-weight: 800 !important;
}

tfoot {
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid var(--blue-500);
}

tfoot td {
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    padding: 16px 12px;
}

/* ═══ LEGAL NOTICE ═══ */
.legal-notice {
    background: var(--red-glow);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 20px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.legal-notice strong {
    color: var(--red-400);
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 768px) {
    .app-container { padding: 16px 12px; gap: 20px; }
    .header { flex-direction: column; align-items: flex-start; }
    .header-right { width: 100%; }
    .logo h1 { font-size: 1.2rem; }
    .metrics-row { grid-template-columns: 1fr; }
    .metric-val { font-size: 1.8rem; }
    .action-buttons { grid-template-columns: 1fr; }
    .config-grid { grid-template-columns: 1fr; }
    .upload-zone { padding: 30px 20px; }
    .panel { padding: 20px; }
}

@media (max-width: 480px) {
    .logo-icon { font-size: 2rem; }
    .logo h1 { font-size: 1rem; }
    thead th { font-size: 0.6rem; padding: 10px 6px; }
    tbody td { font-size: 0.75rem; padding: 8px 6px; }
}

/* ═══ INFRACTION ENGINE & LEARNING STYLES ═══ */
.infra-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    font-size: 0.9rem;
    transition: transform 0.2s var(--ease-bounce);
    filter: drop-shadow(0 0 4px var(--amber-500));
}

.infra-dot:hover {
    transform: scale(1.3) rotate(10deg);
}

.learning-card {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--blue-500);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    animation: fadeSlideUp 0.5s var(--ease-out);
}

.learning-card h4 {
    font-size: 0.9rem;
    color: var(--blue-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.learning-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.learning-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.tip-badge {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--amber-500);
    font-weight: 700;
    margin-right: 6px;
}

/* ─── Print Logic ─── */
.print-only { display: none; }

/* ─── Diet Badges ─── */
.diet-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.diet-badge.premium {
    background: var(--emerald-glow);
    color: var(--emerald-400);
    border-color: rgba(16, 185, 129, 0.3);
}

.diet-badge.disabled {
    opacity: 0.4;
    cursor: pointer;
}

.diet-badge.disabled:hover {
    opacity: 0.8;
    background: rgba(59, 130, 246, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — Simulador Dietas Trucker
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nav ─── */
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 24px; transition: all 0.3s; }
.landing-nav.scrolled { background: rgba(5,10,24,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 800; font-size: 1.1rem; }
.nav-logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.btn-nav-cta { background: var(--blue-500) !important; color: white !important; padding: 8px 18px !important; border-radius: 8px !important; font-weight: 700 !important; }
.nav-mobile-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ─── Landing Container ─── */
.landing-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ─── Hero ─── */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; min-height: 100vh; padding-top: 100px; }
.hero-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; color: var(--blue-400); font-weight: 600; margin-bottom: 24px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--emerald-500); border-radius: 50%; animation: pulse-dot 2s infinite; }
.hero-title { font-size: 3.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; color: var(--text-primary); letter-spacing: -1px; }
.hero-highlight { background: linear-gradient(135deg, var(--blue-400), var(--purple-500), var(--emerald-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 500px; }
.hero-actions { margin-bottom: 28px; }
.btn-hero { background: linear-gradient(135deg, var(--blue-500), var(--purple-500)); color: white; padding: 16px 32px; border-radius: 12px; font-size: 1.05rem; font-weight: 800; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all 0.3s; box-shadow: 0 8px 30px -4px var(--blue-glow); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 12px 40px -4px var(--blue-glow); filter: brightness(1.1); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }
.hero-trust span { display: flex; align-items: center; gap: 4px; }

/* ─── Hero Mockup ─── */
.hero-visual { position: relative; z-index: 1; }
.hero-mockup { background: var(--bg-surface); backdrop-filter: blur(20px); border: var(--glass-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 80px rgba(59,130,246,0.1); }
.mockup-header { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.red { background: #ef4444; } .mockup-dot.yellow { background: #f59e0b; } .mockup-dot.green { background: #22c55e; }
.mockup-title { margin-left: 8px; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.mockup-body { padding: 20px; }
.mockup-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 0.9rem; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.mockup-row.total { border-bottom: none; padding-top: 14px; font-weight: 800; font-size: 1rem; color: var(--text-primary); }
.mockup-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.mockup-badge.green { background: rgba(16,185,129,0.15); color: var(--emerald-400); }
.mockup-val { font-weight: 800; font-size: 1rem; }
.mockup-val.red { color: var(--red-400); } .mockup-val.blue { color: var(--blue-400); } .mockup-val.green { color: var(--emerald-400); } .mockup-val.gold { color: #fbbf24; }
.mockup-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); margin: 8px 0; }

/* ─── Sections ─── */
.section { padding: 100px 0; }
.section-dark { background: rgba(0,0,0,0.2); margin: 0 -24px; padding: 100px 24px; }
.section-title { font-size: 2rem; font-weight: 900; text-align: center; margin-bottom: 12px; color: var(--text-primary); }
.section-sub { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 48px; }

/* ─── Benefits ─── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card { background: var(--bg-surface); backdrop-filter: blur(16px); border: var(--glass-border); border-radius: 16px; padding: 28px; transition: all 0.3s; }
.benefit-card:hover { transform: translateY(-6px); border-color: rgba(59,130,246,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.benefit-icon { font-size: 2rem; margin-bottom: 14px; }
.benefit-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.benefit-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Steps ─── */
.steps-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.step-card { background: var(--bg-surface); border: var(--glass-border); border-radius: 16px; padding: 32px 28px; text-align: center; flex: 1; max-width: 280px; position: relative; }
.step-number { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--blue-500), var(--purple-500)); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: white; }
.step-icon { font-size: 2.2rem; margin-bottom: 16px; margin-top: 8px; }
.step-card h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.step-arrow { font-size: 1.5rem; color: var(--blue-400); font-weight: 800; }

/* ─── Pricing ─── */
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1050px; margin: 0 auto; }
.pricing-card { background: var(--bg-surface); border: var(--glass-border); border-radius: 20px; padding: 36px 28px; text-align: center; position: relative; }
.pricing-featured { border-color: var(--blue-500); box-shadow: 0 0 60px rgba(59,130,246,0.15); }
.pricing-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--blue-500), var(--purple-500)); padding: 4px 20px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; color: white; white-space: nowrap; }
.pricing-tag { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 12px; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.pricing-cents { font-size: 1.5rem; }
.pricing-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; margin-top: 4px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li { padding: 8px 0; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.04); }
.locked-text { opacity: 0.5; }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 0.95rem; text-decoration: none; }

/* ─── FAQ ─── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--bg-surface); border: var(--glass-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 24px; cursor: pointer; font-weight: 700; font-size: 0.95rem; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--blue-400); transition: transform 0.2s; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 18px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── CTA Final ─── */
.cta-final { text-align: center; }
.cta-box { background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1)); border: 1px solid rgba(59,130,246,0.2); border-radius: 24px; padding: 60px 40px; }
.cta-box h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 12px; }
.cta-box p { color: var(--text-muted); margin-bottom: 28px; font-size: 1rem; }
.btn-lg { padding: 18px 36px !important; font-size: 1.1rem !important; }

/* ─── Footer ─── */
.landing-footer { border-top: 1px solid rgba(255,255,255,0.06); margin-top: 60px; padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.footer-brand { max-width: 400px; }
.footer-logo { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; display: block; }
.footer-brand p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-400); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ─── Premium Panel (App) ─── */
.premium-panel { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08)); border: 2px solid var(--blue-500); border-radius: 20px; padding: 40px; text-align: center; margin: 28px 0; }
.premium-inner h3 { font-size: 1.3rem; font-weight: 900; margin: 16px 0 8px; }
.premium-inner p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }
.premium-icon { font-size: 2.5rem; }
.premium-secure { display: block; margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }
.premium-hint { color: var(--blue-400) !important; font-weight: 600; }

/* ─── Back Link ─── */
.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; font-weight: 600; margin-right: 16px; padding: 6px 12px; border-radius: 8px; border: var(--glass-border); transition: all 0.2s; }
.back-link:hover { color: var(--text-primary); background: var(--bg-elevated); }

/* ─── Scroll Animations ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ─── Locked cells ─── */
.cell-locked { filter: blur(6px); user-select: none; pointer-events: none; color: var(--text-muted); }

/* ─── Landing Responsive ─── */
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 80px; min-height: auto; padding-bottom: 40px; }
    .hero-title { font-size: 2.2rem; }
    .hero-visual { order: -1; }
    .hero-trust { flex-direction: column; gap: 8px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .steps-row { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .pricing-row { grid-template-columns: 1fr; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: rgba(5,10,24,0.98); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-links.open { display: flex; }
    .nav-mobile-btn { display: block; }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-links { flex-wrap: wrap; }
    .section { padding: 60px 0; }
    .section-dark { padding: 60px 24px; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 1.3rem; }
}

/* ─── Liquidation Panel ─── */
.liquidation-panel {
    margin-top: 24px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 24px;
    animation: fadeSlideUp var(--duration-slow) var(--ease-out) backwards;
    animation-delay: 0.3s;
}

.liquidation-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.liquidation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.liq-card {
    background: rgba(15, 25, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.liq-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.liq-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.liq-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.liq-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

.text-red {
    color: var(--red-400) !important;
}

.liq-total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(4, 120, 87, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.liq-total .liq-val {
    color: var(--emerald-400);
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

