@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep: #06080d;
    --bg-base: #0a0e17;
    --bg-card: #0f1420;
    --bg-card-elevated: #141a28;
    --bg-input: #0b0f18;
    --bg-hover: rgba(255, 255, 255, 0.025);
    --border: #1a2235;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-focus: #e2a316;
    --accent: #f0b429;
    --accent-dim: #c99a2e;
    --accent-glow: rgba(240, 180, 41, 0.12);
    --accent-subtle: rgba(240, 180, 41, 0.06);
    --green: #34d399;
    --green-dim: #10b981;
    --green-bg: rgba(52, 211, 153, 0.08);
    --green-border: rgba(52, 211, 153, 0.2);
    --red: #f87171;
    --red-dim: #ef4444;
    --red-bg: rgba(248, 113, 113, 0.08);
    --red-border: rgba(248, 113, 113, 0.2);
    --blue: #60a5fa;
    --blue-bg: rgba(96, 165, 250, 0.08);
    --text: #e8e4de;
    --text-secondary: #8d8a83;
    --text-muted: #4e4c48;
    --text-link: #f0b429;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --sans: 'Outfit', -apple-system, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    --shadow-elevated: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(240, 180, 41, 0.08);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--sans);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse at 15% -5%, rgba(240, 180, 41, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 105%, rgba(52, 211, 153, 0.025) 0%, transparent 40%);
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px 48px;
}

.grid {
    display: grid;
    gap: 24px;
}

/* ═══════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.header h1 {
    margin-bottom: 0;
    font-family: var(--mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 0 0 12px var(--accent-glow), 0 0 4px var(--accent-glow);
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.header-right > span {
    padding: 0 4px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */

h1 {
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 18px;
    position: relative;
    padding-left: 14px;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow-x: auto;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
    position: relative;
}

.card:hover {
    border-color: rgba(240, 180, 41, 0.12);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ═══════════════════════════════════════
   FORMS
   ═══════════════════════════════════════ */

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 400;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 16px rgba(240, 180, 41, 0.06);
    background: rgba(240, 180, 41, 0.02);
}

input::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

select {
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.88rem;
    width: 100%;
    transition: all var(--transition);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234e4c48' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

button {
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #0d0d0d;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity var(--transition);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(240, 180, 41, 0.3), 0 1px 4px rgba(240, 180, 41, 0.2);
}

button:hover::after {
    opacity: 1;
}

button:active {
    transform: translateY(0);
}

.btn-small {
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
}

.btn-small::after { display: none; }

.btn-small:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    padding: 9px 18px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-secondary::after { display: none; }

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--text-muted);
    background: var(--bg-hover);
    transform: none;
    box-shadow: none;
}

.btn-delete {
    padding: 5px 12px;
    background: transparent;
    color: var(--red);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.73rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-delete::after { display: none; }

.btn-delete:hover {
    background: var(--red-bg);
    border-color: var(--red);
    transform: none;
    box-shadow: none;
}

/* ═══════════════════════════════════════
   FORM LAYOUTS
   ═══════════════════════════════════════ */

.inline-form {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    align-items: stretch;
}

.inline-form input { flex: 1; }
.inline { display: inline; }

.project-form {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.project-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.project-form .form-row:last-child { margin-bottom: 0; }
.project-form .form-row input { flex: 1; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--transition);
}

.checkbox-label:hover { color: var(--text); }

.checkbox-label input[type="checkbox"] {
    width: auto;
    accent-color: var(--accent);
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-actions .inline-form {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

/* ═══════════════════════════════════════
   LISTS
   ═══════════════════════════════════════ */

.list {
    list-style: none;
}

.list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.list li:last-child { border-bottom: none; }
.list .empty { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

/* ═══════════════════════════════════════
   TABLES
   ═══════════════════════════════════════ */

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.015);
}

.table th:first-child { border-radius: var(--radius-xs) 0 0 0; }
.table th:last-child { border-radius: 0 var(--radius-xs) 0 0; }

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.86rem;
}

.table tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: rgba(240, 180, 41, 0.02);
}

.table .empty { color: var(--text-muted); font-style: italic; }

.token {
    font-family: var(--mono);
    font-size: 0.78rem;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   STATUS & ALERTS
   ═══════════════════════════════════════ */

.error {
    background: var(--red-bg);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    border: 1px solid var(--red-border);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.5;
}

.success {
    background: var(--green-bg);
    color: #6ee7b7;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    border: 1px solid var(--green-border);
    font-size: 0.86rem;
}

/* ═══════════════════════════════════════
   LINKS & HINTS
   ═══════════════════════════════════════ */

.link {
    margin-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.link a { color: var(--accent); text-decoration: none; font-weight: 500; }
.link a:hover { text-decoration: underline; }

.back-link {
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover { opacity: 0.8; }

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: -0.01em;
}

.project-link:hover { text-decoration: underline; }

.hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.tag {
    display: inline-block;
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: var(--radius-xs);
    font-size: 0.75rem;
    margin: 2px;
    font-family: var(--mono);
    font-weight: 500;
    border: 1px solid rgba(240, 180, 41, 0.1);
}

/* ═══════════════════════════════════════
   MQTT MONITOR
   ═══════════════════════════════════════ */

.mqtt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mqtt-header h2 { margin-bottom: 0; }

.mqtt-log {
    max-height: 600px;
    overflow-y: auto;
}

.mqtt-message {
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 8px;
    border-left: 3px solid var(--border);
    transition: border-color var(--transition);
}

.mqtt-message.new {
    border-left-color: var(--green);
    animation: mqttIn 0.35s ease;
}

@keyframes mqttIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.mqtt-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.73rem;
}

.mqtt-topic {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--mono);
}

.mqtt-time {
    color: var(--text-muted);
    font-family: var(--mono);
}

.mqtt-payload {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    line-height: 1.6;
}

.mqtt-status {
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mqtt-status.connected {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.mqtt-status.disconnected {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

/* ═══════════════════════════════════════
   BRIDGE CONTROLS
   ═══════════════════════════════════════ */

.bridge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bridge-header h2 { margin-bottom: 0; }

.bridge-status {
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--mono);
}

.bridge-status.running {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.bridge-status.stopped {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.bridge-status.error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.bridge-status.unknown {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.bridge-controls {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.btn-bridge {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-start {
    background: linear-gradient(135deg, var(--green), var(--green-dim));
    color: #0a0a0a;
}

.btn-start:hover { box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3); transform: none; }
.btn-start::after { display: none; }

.btn-stop {
    background: linear-gradient(135deg, var(--red), var(--red-dim));
    color: white;
}

.btn-stop:hover { box-shadow: 0 4px 12px rgba(248, 113, 113, 0.3); transform: none; }
.btn-stop::after { display: none; }

.btn-status {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-status::after { display: none; }
.btn-status:hover { color: var(--text); border-color: var(--text-muted); transform: none; box-shadow: none; }

.bridge-log {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 14px;
}

.bridge-log-entry {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* ═══════════════════════════════════════
   WORKER STATUS
   ═══════════════════════════════════════ */

.worker-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--mono);
    margin-right: 6px;
    gap: 6px;
}

.worker-status::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.worker-status.online {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.worker-status.online::before {
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: pulse 2.5s ease-in-out infinite;
}

.worker-status.offline {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.worker-status.offline::before {
    background: var(--red);
    opacity: 0.4;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.3; box-shadow: 0 0 4px rgba(52, 211, 153, 0.2); }
}

.btn-tiny {
    padding: 4px 10px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all var(--transition);
    font-family: var(--sans);
}

.btn-tiny::after { display: none; }
.btn-tiny:hover { color: var(--text); border-color: var(--text-muted); background: var(--bg-hover); transform: none; box-shadow: none; }

.btn-tiny-start { border-color: var(--green-border); color: var(--green); }
.btn-tiny-start:hover { background: var(--green-bg); border-color: var(--green); }

.btn-tiny-stop { border-color: var(--red-border); color: var(--red); }
.btn-tiny-stop:hover { background: var(--red-bg); border-color: var(--red); }

/* ═══════════════════════════════════════
   DIRECTORY & PROJECT DETAILS
   ═══════════════════════════════════════ */

.dir-truncate {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 0.78rem;
    cursor: help;
    direction: rtl;
    text-align: left;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

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

.section-header h2 { margin-bottom: 0; }

.tg-users-cell {
    font-size: 0.76rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-family: var(--mono);
}

.bridge-actions {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

.inline-edit {
    display: flex;
    gap: 6px;
    align-items: center;
}

.inline-input {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 0.82rem;
    width: 130px;
    font-family: var(--sans);
    transition: all var(--transition);
}

.inline-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

/* ═══════════════════════════════════════
   AUTH / BIOMETRIC
   ═══════════════════════════════════════ */

.auth-box {
    max-width: 440px;
    margin: 80px auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px 44px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-elevated);
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim), transparent);
}

.auth-box h1 {
    margin-bottom: 6px;
    font-size: 1.6rem;
}

.auth-box h2 {
    margin-bottom: 28px;
    color: var(--text);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    padding-left: 0;
}

.auth-box h2::before { display: none; }

.auth-box .hint {
    margin-bottom: 28px;
}

.auth-box button {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.auth-box .error {
    margin-bottom: 18px;
    text-align: left;
}

.auth-box .field {
    text-align: left;
}

/* ═══════════════════════════════════════
   TERMINAL
   ═══════════════════════════════════════ */

.terminal-prompt {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 10px 0 10px 4px;
}

.terminal-controls {
    margin-bottom: 14px;
}

.terminal-controls .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.terminal-controls input { flex: 1; }

.terminal-output {
    background: #040710;
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 420px;
    max-height: 600px;
    overflow-y: auto;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.75;
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
}

.terminal-hint {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 2px;
}

.terminal-input {
    color: var(--accent);
    font-weight: 500;
}

.terminal-output-line, .terminal-output {
    color: var(--text);
}

.terminal-error {
    color: #fca5a5;
}

.terminal-system {
    color: var(--text-muted);
    font-style: italic;
}

.fingerprint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ═══════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════ */

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

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

.card {
    animation: fadeUp 0.5s ease both;
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.08s; }
.card:nth-child(3) { animation-delay: 0.16s; }
.card:nth-child(4) { animation-delay: 0.24s; }

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

.auth-box {
    animation: slideIn 0.6s ease both;
}
