:root, [data-theme="dark"] {
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --bg: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --text: #ffffff;
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.3);
    --border: rgba(255,255,255,0.08);
    --modal-bg: #16161f;
    --particle-opacity: 0.6;
    --shadow: rgba(0,0,0,0.6);
}

[data-theme="light"] {
    --bg: var(--light-bg, #eef3fb);
    --bg-secondary: var(--light-bg-sec, #dce6f5);
    --bg-card: var(--light-card, #f4f7fc);
    --bg-card-hover: var(--light-card-hover, #e8eef8);
    --text: #1a1a2e;
    --text-muted: rgba(26,26,46,0.55);
    --text-dim: rgba(26,26,46,0.35);
    --border: rgba(26,26,46,0.1);
    --modal-bg: var(--light-card, #f4f7fc);
    --particle-opacity: 0.35;
    --shadow: rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* ===== PARTICLES ===== */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.particle {
    position: absolute; width: 3px; height: 3px;
    background: var(--accent-glow); border-radius: 50%;
    animation: float linear infinite;
}
@keyframes float {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: var(--particle-opacity); } 90% { opacity: var(--particle-opacity); }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* ===== LOGIN SCREEN ===== */
.login-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 100;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg) 70%);
}
.login-content { text-align: center; padding: 40px 24px; max-width: 420px; }
.login-badge {
    display: inline-block; border: 2px solid var(--accent); padding: 8px 24px;
    font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 28px;
    animation: fadeInDown 0.8s ease 0.2s both, pulseGlow 2.5s ease-in-out infinite;
}
.login-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 7vw, 48px); margin-bottom: 10px;
    animation: fadeInDown 0.8s ease 0.5s both;
}
.login-subtitle {
    font-size: 14px; color: var(--text-muted); margin-bottom: 28px;
    animation: fadeInDown 0.8s ease 0.7s both;
}
.login-form { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: fadeInDown 0.8s ease 1s both; }
.login-input {
    background: transparent; border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--text); padding: 16px 24px; font-size: 16px;
    font-family: 'Inter', sans-serif; text-align: center;
    letter-spacing: 3px; border-radius: 8px; outline: none;
    width: 280px; transition: border-color 0.3s ease;
}
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
.login-input::placeholder { color: var(--text-dim); letter-spacing: 1px; }
.login-error { color: #e74c3c; font-size: 13px; opacity: 0; transition: opacity 0.3s ease; height: 0; }
.login-error.visible { opacity: 1; height: auto; }

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; z-index: 100;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg) 70%);
    overflow-y: auto;
}
.welcome-content { text-align: center; padding: 40px 24px; max-width: 520px; }
.welcome-badge {
    display: inline-block; border: 2px solid var(--accent); padding: 8px 24px;
    font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 28px;
    animation: fadeInDown 0.8s ease 0.2s both, pulseGlow 2.5s ease-in-out infinite;
}
.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 6vw, 48px); margin-bottom: 20px;
    animation: fadeInDown 0.8s ease 0.6s both;
}
.welcome-title span { color: var(--accent); }
.welcome-message {
    font-size: clamp(14px, 3vw, 17px); color: var(--text-muted);
    line-height: 1.7; margin-bottom: 16px; font-weight: 300;
    animation: fadeInDown 0.8s ease 1s both;
}
.welcome-career {
    font-size: 13px; color: var(--accent); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 24px;
    animation: fadeInDown 0.8s ease 1.2s both;
}

/* QUOTE CARD */
.quote-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 20px 24px; margin-bottom: 28px;
    text-align: left; animation: fadeInDown 0.8s ease 1.4s both;
}
.quote-label {
    font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 10px;
}
.quote-text {
    font-family: 'Playfair Display', serif; font-size: 15px;
    line-height: 1.7; color: var(--text-muted); font-style: italic;
}

.quote-mini {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
}
.quote-mini p {
    font-family: 'Playfair Display', serif; font-size: 13px;
    line-height: 1.6; color: var(--text-muted); font-style: italic;
    text-align: center;
}

.btn-primary {
    background: transparent; border: 2px solid var(--accent);
    color: var(--accent); padding: 16px 48px; font-size: 14px;
    font-family: 'Inter', sans-serif; letter-spacing: 3px;
    text-transform: uppercase; cursor: pointer;
    transition: all 0.4s ease; position: relative; overflow: hidden;
    animation: fadeInDown 0.8s ease 1.6s both;
}
.btn-primary.btn-login { animation: none; opacity: 1; }
.btn-primary:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.03);
}
.btn-primary:active { transform: scale(0.98); }

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.35); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== MAIN APP ===== */
.main-app {
    position: relative; z-index: 1;
    max-width: 900px; margin: 0 auto; padding: 0 16px 40px;
    animation: fadeInUp 0.6s ease both;
}

/* ===== NAV ===== */
.nav {
    display: flex; flex-direction: column; align-items: center;
    padding: 24px 0 16px; gap: 16px;
    border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.nav-brand {
    font-family: 'Playfair Display', serif; font-size: 22px;
    display: flex; align-items: center; gap: 10px;
}
.nav-icon { color: var(--accent); font-size: 18px; }
.nav-tabs { display: flex; gap: 4px; }
.nav-tab {
    background: transparent; border: 1px solid transparent;
    color: var(--text-muted); padding: 10px 20px; font-size: 13px;
    font-family: 'Inter', sans-serif; cursor: pointer;
    border-radius: 6px; transition: all 0.3s ease; letter-spacing: 0.5px;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-tab.active {
    color: var(--accent); border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.06);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 400; }
.btn-add {
    background: rgba(212, 175, 55, 0.08); border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--accent); padding: 10px 20px; font-size: 13px;
    font-family: 'Inter', sans-serif; cursor: pointer;
    border-radius: 6px; transition: all 0.3s ease;
}
.btn-add:hover { background: rgba(212, 175, 55, 0.15); box-shadow: 0 0 15px rgba(212, 175, 55, 0.15); }

/* ===== TAB CONTENT ===== */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== SCHEDULE GRID ===== */
.schedule-grid {
    display: grid; grid-template-columns: 60px repeat(6, 1fr);
    gap: 2px; background: var(--border); border-radius: 10px; overflow: hidden;
}
.schedule-header {
    background: var(--bg-card); padding: 12px 6px; text-align: center;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.schedule-header.today { color: var(--accent); }
.schedule-time {
    background: var(--bg-card); padding: 8px 4px; text-align: center;
    font-size: 11px; color: var(--text-dim);
    display: flex; align-items: center; justify-content: center; min-height: 52px;
}
.schedule-cell {
    background: var(--bg-card); min-height: 52px; position: relative;
    transition: background 0.2s ease;
}
.schedule-cell:hover { background: var(--bg-card-hover); }
.schedule-block {
    position: absolute; left: 2px; right: 2px; top: 2px; bottom: 2px;
    border-radius: 6px; padding: 4px 6px; font-size: 11px; font-weight: 500;
    overflow: hidden; cursor: pointer; transition: transform 0.2s ease;
    display: flex; flex-direction: column; justify-content: center;
}
.schedule-block:hover { transform: scale(1.02); }
.schedule-block .block-name { font-size: 11px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-block .block-room { font-size: 9px; opacity: 0.7; margin-top: 2px; }

/* ===== SUBJECTS ===== */
.subjects-list { display: flex; flex-direction: column; gap: 10px; }
.subject-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 16px 18px; transition: all 0.3s ease;
}
.subject-card:hover { border-color: var(--border); background: var(--bg-card-hover); }
.subject-color {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.subject-info { flex: 1; }
.subject-name { font-weight: 500; font-size: 15px; margin-bottom: 3px; }
.subject-detail { font-size: 12px; color: var(--text-muted); }
.subject-delete {
    background: none; border: none; color: var(--text-dim);
    font-size: 18px; cursor: pointer; padding: 8px; transition: color 0.3s ease; border-radius: 6px;
}
.subject-delete:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

/* ===== TASKS ===== */
.tasks-list { display: flex; flex-direction: column; gap: 8px; }
.task-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px; transition: all 0.3s ease;
}
.task-card.completed { opacity: 0.5; }
.task-check {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--text-dim); background: transparent;
    cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: transparent;
}
.task-check:hover { border-color: var(--accent); }
.task-card.completed .task-check { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.task-info { flex: 1; }
.task-title { font-size: 14px; }
.task-card.completed .task-title { text-decoration: line-through; }
.task-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 10px; }
.task-subject-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.task-due { color: var(--text-dim); }
.task-due.overdue { color: #e74c3c; }
.task-delete {
    background: none; border: none; color: var(--text-dim);
    font-size: 16px; cursor: pointer; padding: 6px; transition: color 0.3s ease;
}
.task-delete:hover { color: #e74c3c; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 15px; margin-bottom: 6px; }
.empty-hint { font-size: 13px; color: var(--text-dim); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1000;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--modal-bg); border: 1px solid var(--border);
    border-radius: 14px; width: 90%; max-width: 440px;
    animation: fadeInUp 0.3s ease; max-height: 90vh; overflow-y: auto;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 400; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; padding: 0 4px; }
.modal-body { padding: 24px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-input, .form-select {
    width: 100%; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1); color: var(--text);
    padding: 12px 14px; font-size: 14px; font-family: 'Inter', sans-serif;
    border-radius: 8px; outline: none; transition: border-color 0.3s ease;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--modal-bg); color: var(--text); }
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-option {
    width: 32px; height: 32px; border-radius: 8px;
    border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease;
}
.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: var(--text); transform: scale(1.15); }
.btn-submit {
    width: 100%; background: var(--accent); border: none;
    color: var(--bg); padding: 14px; font-size: 14px;
    font-family: 'Inter', sans-serif; font-weight: 600;
    border-radius: 8px; cursor: pointer; margin-top: 8px;
    transition: all 0.3s ease; letter-spacing: 0.5px;
}
.btn-submit:hover { opacity: 0.9; box-shadow: 0 0 20px var(--accent-glow); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.2); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    /* NAV */
    .nav { padding: 16px 0 12px; gap: 12px; }
    .nav-brand { font-size: 20px; }
    .nav-tabs { width: 100%; justify-content: center; }
    .nav-tab { padding: 10px 18px; font-size: 14px; flex: 1; text-align: center; }

    /* SECTION HEADER */
    .section-header { flex-direction: row; gap: 12px; align-items: center; }
    .section-header h2 { font-size: 20px; }
    .btn-add { padding: 12px 18px; font-size: 14px; }

    /* SCHEDULE - horizontal scroll */
    .schedule-grid {
        grid-template-columns: 50px repeat(6, 120px);
        overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .schedule-header { font-size: 12px; padding: 12px 6px; }
    .schedule-time { font-size: 11px; min-height: 56px; }
    .schedule-cell { min-height: 56px; }
    .schedule-block .block-name { font-size: 12px; }
    .schedule-block .block-room { font-size: 10px; }

    /* SUBJECTS */
    .subject-card { padding: 16px; }
    .subject-color { width: 48px; height: 48px; font-size: 20px; }
    .subject-name { font-size: 16px; }
    .subject-detail { font-size: 13px; }
    .subject-delete { font-size: 22px; padding: 10px; }

    /* TASKS */
    .task-card { padding: 16px; }
    .task-check { width: 26px; height: 26px; font-size: 14px; }
    .task-title { font-size: 15px; }
    .task-meta { font-size: 12px; }
    .task-subject-badge { font-size: 11px; }
    .task-delete { font-size: 20px; padding: 10px; }

    /* EMPTY STATE */
    .empty-icon { font-size: 56px; }
    .empty-state p { font-size: 16px; }
    .empty-hint { font-size: 14px; }

    /* MODAL */
    .modal { width: 95%; max-width: none; border-radius: 16px; }
    .modal-header { padding: 18px 20px; }
    .modal-header h3 { font-size: 20px; }
    .modal-close { font-size: 28px; }
    .modal-body { padding: 20px; }
    .form-label { font-size: 13px; }
    .form-input, .form-select { padding: 14px 16px; font-size: 16px; }
    .btn-submit { padding: 16px; font-size: 16px; }
    .color-option { width: 38px; height: 38px; }

    /* QUOTE */
    .quote-mini { padding: 16px; }
    .quote-mini p { font-size: 14px; }

    /* MAIN APP */
    .main-app { padding: 0 12px 100px; }
}

/* ===== CHAT IA ===== */
.chat-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 800;
    width: 52px; height: 52px; border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark, var(--accent)));
    border: none; color: #fff;
    font-size: 22px; cursor: pointer;
    box-shadow: 0 4px 16px var(--accent-glow), 0 2px 6px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--accent-glow), 0 4px 10px rgba(0,0,0,0.2); }
.chat-fab:active { transform: translateY(0); }

.chat-panel {
    position: fixed; bottom: 92px; right: 24px; z-index: 800;
    width: 360px; max-height: 480px; border-radius: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 12px 40px var(--shadow);
    display: flex; flex-direction: column; overflow: hidden;
    animation: fadeInUp 0.3s ease;
}
.chat-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.chat-header strong { font-size: 14px; color: var(--text); display: block; }
.chat-subtitle { font-size: 11px; color: var(--text-dim); }
.chat-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 22px; cursor: pointer; padding: 0 4px;
}
.chat-close:hover { color: var(--text); }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 320px; min-height: 200px;
}
.chat-msg { max-width: 85%; }
.chat-msg p {
    padding: 10px 14px; border-radius: 12px; font-size: 13px;
    line-height: 1.5; word-wrap: break-word;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.bot p { background: var(--bg-card-hover); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.user p { background: var(--accent); color: var(--bg); border-bottom-right-radius: 4px; }
.chat-msg.typing p { color: var(--text-dim); font-style: italic; }

.chat-input-area {
    display: flex; gap: 8px; padding: 12px;
    border-top: 1px solid var(--border);
}
.chat-input {
    flex: 1; background: var(--bg); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px; font-size: 13px;
    font-family: 'Inter', sans-serif; border-radius: 8px; outline: none;
}
.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-dim); }
.chat-send {
    background: var(--accent); border: none; color: var(--bg);
    width: 38px; height: 38px; border-radius: 8px;
    font-size: 16px; cursor: pointer; transition: opacity 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.chat-send:hover { opacity: 0.85; }

@media (max-width: 600px) {
    .chat-fab { bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 18px; }
    .chat-panel {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; max-height: 100%; border-radius: 0;
        z-index: 900;
    }
    .chat-messages { max-height: none; flex: 1; }
    .chat-header { padding: 16px 18px; }
    .chat-header strong { font-size: 16px; }
    .chat-subtitle { font-size: 12px; }
    .chat-close { font-size: 28px; }
    .chat-msg p { font-size: 15px; padding: 12px 16px; }
    .chat-input { padding: 14px 16px; font-size: 16px; }
    .chat-send { width: 44px; height: 44px; font-size: 18px; }
    .chat-input-area { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: fixed; top: 16px; right: 16px; z-index: 200;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px; transition: all 0.3s ease;
    box-shadow: 0 2px 12px var(--shadow); color: var(--text-muted);
}
.theme-toggle:hover { background: var(--bg-card-hover); color: var(--text); transform: scale(1.1); }

/* ===== INSTALL BANNER ===== */
.install-banner {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px 18px; z-index: 900;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 8px 32px var(--shadow);
    max-width: 420px; width: calc(100% - 32px);
    animation: fadeInUp 0.5s ease both;
}
.install-banner-text { flex: 1; }
.install-banner-text strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.install-banner-text span { font-size: 12px; color: var(--text-muted); }
.install-btn {
    background: var(--accent); border: none; color: var(--bg);
    padding: 10px 20px; border-radius: 8px; font-size: 13px;
    font-family: 'Inter', sans-serif; font-weight: 600;
    cursor: pointer; white-space: nowrap; transition: opacity 0.3s;
}
.install-btn:hover { opacity: 0.85; }
.install-close {
    background: none; border: none; color: var(--text-dim);
    font-size: 20px; cursor: pointer; padding: 0 4px;
}
.install-close:hover { color: var(--text); }

/* ===== UPDATE BANNER ===== */
.update-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: var(--accent); color: var(--bg);
    padding: 14px 20px; display: flex; align-items: center;
    gap: 14px; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease both;
}
.update-banner-text { text-align: center; }
.update-banner-text strong { display: block; font-size: 14px; font-weight: 600; }
.update-banner-text span { font-size: 12px; opacity: 0.8; }
.update-btn {
    background: var(--bg); color: var(--accent); border: none;
    padding: 10px 24px; border-radius: 8px; font-size: 13px;
    font-family: 'Inter', sans-serif; font-weight: 600;
    cursor: pointer; white-space: nowrap;
}
.update-btn:hover { opacity: 0.9; }
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ===== MOBILE WELCOME/LOGIN ===== */
@media (max-width: 600px) {
    .login-content { padding: 32px 20px; }
    .login-title { font-size: 36px; }
    .login-subtitle { font-size: 15px; }
    .login-input { width: 100%; max-width: 300px; font-size: 18px; padding: 18px 24px; }
    .btn-primary { padding: 18px 40px; font-size: 15px; }
    .btn-primary.btn-login { width: 100%; max-width: 300px; }

    .welcome-content { padding: 32px 20px; }
    .welcome-title { font-size: 32px; }
    .welcome-message { font-size: 16px; }
    .welcome-career { font-size: 14px; }
    .quote-card { padding: 18px 20px; }
    .quote-label { font-size: 11px; }
    .quote-text { font-size: 15px; }

    .theme-toggle { width: 44px; height: 44px; font-size: 20px; }
}

/* ===== SAFE AREA ===== */
@supports (padding-top: env(safe-area-inset-top)) {
    body { padding-top: env(safe-area-inset-top); }
    .nav { padding-top: calc(24px + env(safe-area-inset-top)); }
}
