:root {
    --bg: #000;
    --card: #1c1c1e;
    --accent: #0A84FF;
    --red: #FF453A;
    --green: #32D74B;
    --text: #FFF;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, sans-serif;
    margin: 0;
    overflow: hidden;
}

#system-tray { padding: 15px 25px; display: flex; justify-content: space-between; font-size: 13px; color: #8e8e93; }
.secure-tag { color: var(--green); font-weight: bold; }

#app-shell { height: 90vh; display: flex; justify-content: center; align-items: center; }

.view { width: 90%; max-width: 400px; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* LOGIN/INPUT STYLES */
.input-field {
    width: 100%; padding: 18px; margin-bottom: 15px; border-radius: 15px;
    border: 1px solid #333; background: #1c1c1e; color: white; font-size: 18px; box-sizing: border-box;
}

.user-profile h1 { font-size: 36px; margin: 0; }
.score { color: var(--green); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }

.tile {
    background: var(--card); height: 165px; border-radius: 30px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid #333; cursor: pointer; transition: 0.2s;
}
.tile:active { transform: scale(0.92); }
.tile-icon { font-size: 50px; margin-bottom: 8px; }
.tile-label { font-size: 18px; font-weight: 600; }
.sos-tile { border: 2px solid var(--red); box-shadow: 0 0 15px rgba(255,69,58,0.2); }

/* OVERLAYS */
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    backdrop-filter: blur(25px); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-card, .sos-alert { background: #2c2c2e; padding: 40px; border-radius: 40px; text-align: center; width: 80%; }

.scanner { font-size: 80px; position: relative; margin: 30px auto; width: fit-content; }
.laser {
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent); box-shadow: 0 0 10px var(--accent);
    animation: scan 2s infinite linear;
}
@keyframes scan { 0%, 100% { top: 0; } 50% { top: 100%; } }

.action-btn, .stop-btn {
    width: 100%; padding: 20px; border-radius: 15px; border: none;
    font-size: 18px; font-weight: bold; cursor: pointer;
}
.action-btn { background: var(--accent); color: white; }
.stop-btn { background: white; color: black; }

.hidden { display: none !important; }
.entry { background: var(--card); padding: 20px; border-radius: 15px; margin-bottom: 10px; border-left: 5px solid var(--accent); }
.timer-display { font-size: 80px; font-weight: 900; margin: 10px 0; color: var(--red); }
.ghost-btn { background: none; border: none; color: #8e8e93; margin-top: 15px; cursor: pointer; }