/* === SPOTLIGHT COMMAND-K SEARCH (Mac Spotlight Style) === */
.spotlight-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 2, 8, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 300;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: max(12vh, 60px);
}

.spotlight-overlay.active {
    display: flex;
}

.spotlight-box {
    width: 92%;
    max-width: 600px;
    background: var(--spotlight-bg);
    border: 1.5px solid var(--neon-cyan);
    box-shadow: 0 10px 50px rgba(0, 240, 255, 0.35), 0 0 0 1px rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    animation: spotlight-slide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlight-slide {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.spotlight-input-wrapper {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    gap: 12px;
}

body.day-mode .spotlight-input-wrapper {
    border-bottom: 1px solid #e2e8f0;
}

.spotlight-icon {
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.spotlight-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.05rem;
    outline: none;
}

.spotlight-input::placeholder {
    color: #648da5;
}

.spotlight-esc {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
    padding: 2px 6px;
    border-radius: 4px;
    user-select: none;
}

.spotlight-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-results::-webkit-scrollbar { width: 4px; }
.spotlight-results::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

.spotlight-item {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
    border: 1px solid transparent;
}

.spotlight-item:hover, .spotlight-item.selected {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
}

body.day-mode .spotlight-item:hover,
body.day-mode .spotlight-item.selected {
    background: #f1f5f9;
    border-color: #0284c7;
}

.spotlight-item-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 2px;
}

.spotlight-item-sub {
    font-size: 0.78rem;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.spotlight-item-tags {
    font-size: 0.7rem;
    color: var(--neon-cyan);
}

/* === SETTINGS TERMINAL MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 2, 8, 0.85);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.tron-modal {
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    background: var(--modal-bg);
    border: 1.5px solid var(--modal-border);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    color: var(--text-title);
}

.modal-close-btn {
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #79c5d8;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

.pref-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.tron-switch { position: relative; width: 44px; height: 22px; }
.tron-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #0d2238;
    border: 1px solid #1a517e;
    border-radius: 22px;
    transition: .3s;
}

.slider:before {
    position: absolute; content: "";
    height: 14px; width: 14px; left: 3px; bottom: 3px;
    background-color: #79c5d8;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider {
    background-color: rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--neon-cyan);
}

/* Consent Banner */
.consent-banner {
    position: fixed;
    bottom: 0; left: 0; width: 100vw;
    background: var(--modal-bg);
    border-top: 1.5px solid var(--neon-cyan);
    box-shadow: 0 -5px 30px rgba(0, 240, 255, 0.3);
    padding: 18px;
    z-index: 150;
    display: none;
    flex-direction: column;
    gap: 12px;
}

.consent-banner.active { display: flex; }

.consent-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--text-title);
}

.consent-text {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tron-btn {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.tron-btn-primary {
    background: rgba(0, 240, 255, 0.25);
    border-color: var(--neon-cyan);
}

.tron-btn-reject {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    background: rgba(255, 0, 85, 0.08);
}

.tron-toast {
    position: fixed;
    top: 20px; left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #020d1c;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    z-index: 400;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.tron-toast.show { transform: translateX(-50%) translateY(0); }
