/* ==========================================================================
   OPERATION SCHUTZSCHILD: UNTER BEOBACHTUNG (FRAUEN-EDITION)
   Styles for Cyberstalking Forensics, Multi-App Ecosystem & Camouflage Engine
   ========================================================================== */

:root {
    --bg-dark: #0a0612;
    --bg-card: #150d24;
    --bg-card-hover: #1f1435;
    --phone-bg: #090514;
    --accent-crimson: #e11d48;
    --accent-rose: #f43f5e;
    --accent-purple: #9333ea;
    --accent-cyan: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(225, 29, 72, 0.25);
    --border-glow: rgba(244, 63, 94, 0.4);
    --wa-bg: #0b141a;
    --wa-incoming: #202c33;
    --wa-outgoing: #005c4b;
    --wa-green: #25d366;
    --insta-bg: #121212;
    --insta-card: #1e1e1e;
    --mail-bg: #0f172a;
    --bank-bg: #064e3b;
    --car-bg: #0f172a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed;
    inset: 0;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top, #1e0b2b 0%, var(--bg-dark) 70%);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Smartphone Device Wrapper */
.simulation-wrapper {
    width: 100%;
    max-width: 440px;
    height: 100%;
    height: 100dvh;
    max-height: 920px;
    background: var(--phone-bg);
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 29, 72, 0.2);
    border: 8px solid #2d193c;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 480px) {
    .simulation-wrapper {
        border-radius: 0;
        border: none;
        max-height: 100dvh;
        height: 100dvh;
    }
}

/* Dynamic Top Notch / Status Bar */
.phone-top-bar {
    height: 52px;
    background: rgba(10, 6, 18, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.status-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-btn:hover {
    background: rgba(244, 63, 94, 0.3);
    color: #fff;
    border-color: var(--accent-rose);
}

.status-btn.btn-sos {
    background: rgba(225, 29, 72, 0.25);
    border-color: var(--accent-crimson);
    color: #ff6b81;
}
.status-btn.btn-sos:hover {
    background: var(--accent-crimson);
    color: #fff;
}

.status-btn.btn-disguise {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-cyan);
    color: #67e8f9;
}

.status-btn.btn-call {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-green);
    color: #6ee7b7;
}

.status-btn.btn-pause {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-gold);
    color: #fcd34d;
}

/* Pause Banner */
.pause-indicator-banner {
    background: linear-gradient(90deg, #9a3412 0%, #c2410c 100%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 95;
    border-bottom: 2px solid #fdba74;
    animation: pulsePause 2s infinite ease-in-out;
}
@keyframes pulsePause {
    0%, 100% { opacity: 0.95; }
    50% { opacity: 0.8; }
}

.pause-indicator-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.btn-pause-resume {
    background: #fff;
    color: #9a3412;
    border: none;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.btn-pause-resume:hover {
    transform: scale(1.05);
}

/* Main App Views Viewport */
.app-viewport {
    flex: 1 1 0%;
    min-height: 0;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

.screen-view {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.screen-view.active {
    display: flex;
    animation: fadeInView 0.25s ease-out;
}

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

/* Home App Grid (HomeScreen) */
.home-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 10px;
    padding: 16px;
}

.app-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app-icon-item:hover {
    transform: scale(1.08);
}

.app-icon-box {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.app-icon-box.whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.app-icon-box.insta { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.app-icon-box.photos { background: linear-gradient(135deg, #38bdf8 0%, #ec4899 100%); }
.app-icon-box.mail { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.app-icon-box.banking { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.app-icon-box.smarthome { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.app-icon-box.car { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.app-icon-box.radar { background: linear-gradient(135deg, #9333ea 0%, #e11d48 100%); }
.app-icon-box.lab { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.app-icon-box.diary { background: linear-gradient(135deg, #64748b 0%, #334155 100%); }
.app-icon-box.emergency { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }
.app-icon-box.tactics { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }

/* Tactics Hub Screen & Safety Cards */
.tactics-hub-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 90px;
}

.tactics-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent-rose);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tactics-card.card-pink {
    border-left-color: #ec4899;
    background: rgba(236, 72, 153, 0.07);
}

.tactics-card.card-amber {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.07);
}

.tactics-card.card-cyan {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, 0.07);
}

.tactics-card.card-purple {
    border-left-color: #a855f7;
    background: rgba(168, 85, 247, 0.07);
}

.tactics-card.card-emerald {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.07);
}

.tactics-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tactics-card p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
}

.tactics-callout-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.78rem;
    color: #f1f5f9;
    line-height: 1.4;
}

.hotline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.hotline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hotline-row .hotline-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.hotline-row .hotline-sub {
    font-size: 0.7rem;
    color: #94a3b8;
}

.hotline-row .btn-hotline-call {
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.hotline-row .btn-hotline-call.btn-blue {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.hotline-row .btn-hotline-call.btn-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.hotline-row .btn-hotline-call.btn-emerald {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

.app-badge-num {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--phone-bg);
}

.app-icon-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Briefing Screen */
.briefing-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,6,18,0.96) 0%, rgba(20,10,35,0.98) 100%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    overflow-y: auto;
    backdrop-filter: blur(16px);
}

.briefing-badge {
    align-self: flex-start;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid var(--accent-rose);
    color: #fda4af;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.briefing-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #fda4af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.briefing-intro-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.case-victim-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.victim-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.victim-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #9333ea 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
}

.victim-meta h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
}
.victim-meta p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.creepy-quote-box {
    background: rgba(225, 29, 72, 0.15);
    border-left: 3px solid var(--accent-rose);
    padding: 10px 12px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.85rem;
    color: #fecdd3;
}

.btn-start-case-main {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.btn-start-case-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.6);
}

/* App Header */
.app-screen-header {
    padding: 14px 16px;
    background: rgba(20, 10, 35, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-screen-back {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

.app-screen-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    flex: 1;
}

/* Messenger View */
.chat-list {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(244, 63, 94, 0.4);
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.chat-avatar.marc { background: linear-gradient(135deg, #e11d48 0%, #475569 100%); }
.chat-avatar.laura { background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%); }
.chat-avatar.mama { background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%); }

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.chat-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
}

.chat-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chat-preview {
    font-size: 0.8rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-badge-unread {
    background: var(--accent-rose);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

/* Conversation Container */
.chat-conversation-view {
    display: none;
    position: absolute;
    inset: 0;
    background: var(--wa-bg);
    z-index: 80;
    flex-direction: column;
}

.chat-conversation-view.active {
    display: flex;
}

.convo-header {
    background: #202c33;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.convo-user-meta {
    flex: 1;
}

.convo-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e9edef;
}

.convo-user-status {
    font-size: 0.72rem;
    color: #8696a0;
}

.convo-body {
    flex: 1 1 0%;
    min-height: 0;
    padding: 14px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg-bubble {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.msg-bubble.incoming {
    background: var(--wa-incoming);
    color: #e9edef;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.msg-bubble.outgoing {
    background: var(--wa-outgoing);
    color: #e9edef;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.msg-time {
    font-size: 0.65rem;
    color: #8696a0;
    float: right;
    margin-left: 8px;
    margin-top: 4px;
}

/* InstaLife Screen */
#view-insta {
    display: none;
    flex-direction: column;
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
}

#view-insta.active {
    display: flex;
}

.insta-stories-bar {
    display: flex;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #181818;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 30;
}

.insta-story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.story-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid #181818;
}

.story-name {
    font-size: 0.68rem;
    color: #cbd5e1;
    max-width: 58px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insta-feed {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.insta-post-card {
    background: var(--insta-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-header {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 0.9rem;
}

.post-user-meta {
    flex: 1;
}

.post-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.post-location-tag {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    cursor: pointer;
}

.post-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #2a2a2a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    position: relative;
    padding: 16px;
    text-align: center;
}

.post-caption-box {
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #cbd5e1;
}

/* Connected Car View */
.car-status-card {
    margin: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #3b82f6;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.car-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.car-live-badge {
    background: rgba(225, 29, 72, 0.25);
    border: 1px solid #f43f5e;
    color: #fda4af;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
}

.car-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px 12px;
}

.car-control-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
}

.car-control-btn.alert {
    border-color: var(--accent-rose);
    background: rgba(225, 29, 72, 0.15);
    color: #fecdd3;
}

/* Photo Gallery & Forensics */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.gallery-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.gallery-card:hover {
    transform: scale(1.03);
    border-color: var(--accent-rose);
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: #1e1b2e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    font-size: 1.8rem;
    padding: 12px;
    text-align: center;
}

.gallery-title {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #f1f5f9;
    background: #110920;
    text-align: center;
}

.gallery-risk-pill {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e11d48;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
}

/* Mailbox Screen */
.mail-list {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mail-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mail-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
}

.mail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.mail-sender {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}

.mail-subject {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
}

.mail-preview {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Banking Screen */
.bank-balance-card {
    margin: 12px;
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border: 1px solid #10b981;
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.4);
}

.bank-balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6ee7b7;
    margin-bottom: 4px;
}

.bank-balance-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.bank-tx-list {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-tx-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-tx-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-tx-sender {
    font-size: 0.88rem;
    font-weight: 800;
    color: #f1f5f9;
}

.bank-tx-amount {
    font-size: 0.9rem;
    font-weight: 800;
    color: #10b981;
}

.bank-tx-reason {
    font-size: 0.8rem;
    color: #fecdd3;
    background: rgba(225, 29, 72, 0.15);
    border-left: 3px solid #e11d48;
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    margin-top: 4px;
    font-style: italic;
}

/* Smart Home Screen */
.smarthome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.smarthome-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.smarthome-card.compromised {
    border-color: var(--accent-crimson);
    background: linear-gradient(135deg, rgba(225,29,72,0.15) 0%, rgba(21,13,36,0.9) 100%);
}

.device-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.smarthome-card.compromised .device-icon-box {
    background: rgba(225, 29, 72, 0.25);
    color: #f43f5e;
}

.device-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
}

.device-status {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Stalking Radar Screen */
.clue-slots-container {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clue-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}

.clue-card.unlocked {
    border-color: var(--accent-rose);
    background: linear-gradient(135deg, rgba(225,29,72,0.1) 0%, rgba(21,13,36,0.9) 100%);
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.2);
}

.clue-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #64748b;
    flex-shrink: 0;
}

.clue-card.unlocked .clue-icon-box {
    background: rgba(244, 63, 94, 0.2);
    color: var(--accent-rose);
}

.clue-details {
    flex: 1;
}

.clue-details h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #cbd5e1;
    margin-bottom: 2px;
}

.clue-card.unlocked .clue-details h4 {
    color: #fff;
}

.clue-details p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.clue-card.unlocked .clue-details p {
    color: #cbd5e1;
}

.clue-status-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

.clue-card.unlocked .clue-status-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Forensic Laboratory View */
.lab-tools-grid {
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lab-tool-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lab-tool-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.lab-tool-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.lab-tool-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f1f5f9;
}

.lab-tool-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Modal Sheet */
.forensic-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 18, 0.88);
    backdrop-filter: blur(14px);
    z-index: 120;
    display: none;
    flex-direction: column;
    padding: 16px;
    overflow-y: auto;
}

.forensic-modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.2s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.forensic-modal-content {
    background: #190f2b;
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 20px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Platform Switch Tabs */
.platform-switch-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}

.platform-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-tab-btn.active {
    background: var(--accent-rose);
    color: #fff;
}

.platform-guide-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.guide-step {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step::before {
    content: "➔";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Fake Call Overlay */
.fake-call-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1e1035 0%, #080312 100%);
    z-index: 180;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 24px 40px;
}

.fake-call-overlay.active {
    display: flex;
    animation: fadeInCall 0.3s ease;
}

@keyframes fadeInCall {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

.caller-info-box {
    text-align: center;
}

.caller-avatar-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.caller-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.caller-status {
    font-size: 0.9rem;
    color: #94a3b8;
}

.call-actions-row {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.call-action-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.call-action-btn:hover {
    transform: scale(1.1);
}

.call-btn-decline { background: #e11d48; }
.call-btn-accept { background: #10b981; }

/* Camouflage Calculator Overlay */
.camouflage-calculator-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 300;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px 14px 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.camouflage-calculator-overlay.active {
    display: flex;
}

.calc-display {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: right;
    padding: 0 10px 12px;
    word-break: break-all;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.calc-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.15s ease;
    padding: 0;
}

.calc-btn:active { filter: brightness(1.3); }
.calc-btn.gray { background: #a5a5a5; color: #000; }
.calc-btn.dark { background: #333333; color: #fff; }
.calc-btn.orange { background: #ff9f0a; color: #fff; }
.calc-btn.zero {
    grid-column: span 2;
    aspect-ratio: auto;
    border-radius: 30px;
    justify-content: flex-start;
    padding-left: 22px;
}


/* Bottom App Navigation Bar */
.phone-bottom-nav {
    height: 64px;
    background: rgba(15, 8, 26, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 90;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 6px 10px;
}

.nav-item i { font-size: 1.15rem; }
.nav-item.active { color: var(--accent-rose); }

/* Stalking Diary */
.diary-container {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diary-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diary-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.diary-incident-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1f5f9;
}

.diary-proof-badge {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.btn-export-diary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
}

/* Emergency Helpline Hub */
.emergency-hub-container {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emergency-card {
    background: var(--bg-card);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.emergency-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f43f5e;
}

.emergency-card p {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.btn-call-emergency {
    background: #e11d48;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Push Notification Banner */
.push-banner-container {
    position: absolute;
    top: 58px;
    left: 12px;
    right: 12px;
    background: rgba(26, 14, 46, 0.95);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 16px;
    padding: 12px 14px;
    backdrop-filter: blur(16px);
    z-index: 160;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: slideDownPush 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-banner-container.active {
    display: flex;
}

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

.push-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-rose);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.push-text-box {
    flex: 1;
    min-width: 0;
}

.push-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 2px;
}

.push-msg {
    font-size: 0.82rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Forensic Educational Info Popup (Full Details with X) */
.forensic-info-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(16px);
    z-index: 250;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
}

.forensic-info-popup-overlay.active {
    display: flex;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-card {
    width: 100%;
    max-width: 390px;
    background: linear-gradient(180deg, #1c1032 0%, #120922 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.5);
    border-radius: 24px;
    padding: 20px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 29, 72, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.popup-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.popup-badge {
    align-self: flex-start;
    background: rgba(225, 29, 72, 0.2);
    border: 1px solid var(--accent-rose);
    color: #fda4af;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

.popup-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
}

.popup-image-container {
    width: 100%;
    max-height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-body-text {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.popup-body-text strong {
    color: #fff;
}

.popup-callout-box {
    background: rgba(225, 29, 72, 0.15);
    border-left: 3px solid var(--accent-rose);
    padding: 8px 10px;
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: #fecdd3;
}

.popup-callout-box.cyan {
    background: rgba(6, 182, 212, 0.15);
    border-left-color: var(--accent-cyan);
    color: #a5f3fc;
}

.popup-callout-box.gold {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: var(--accent-gold);
    color: #fde68a;
}

/* ==========================================================================
   FULLSCREEN CINEMATIC INTRO VIDEO OVERLAY (MATCHING YOUTH APP EXPERIENCE)
   ========================================================================== */
.intro-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 18px 24px;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    display: none !important;
}

#intro-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.9;
}

.intro-video-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 6, 18, 0.75) 0%, rgba(10, 6, 18, 0.1) 40%, rgba(10, 6, 18, 0.92) 100%);
    z-index: 2;
    pointer-events: none;
}

.intro-top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intro-case-tag {
    background: rgba(225, 29, 72, 0.25);
    border: 1px solid rgba(244, 63, 94, 0.6);
    color: #fda4af;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.intro-controls-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sound-toggle-intro {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    position: relative;
    z-index: 100;
}
.btn-sound-toggle-intro:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

.btn-skip-intro {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    position: relative;
    z-index: 100;
}
.btn-skip-intro:hover {
    background: rgba(225, 29, 72, 0.6);
    border-color: var(--accent-rose);
    transform: scale(1.04);
}

.intro-bottom-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-subtitles-card {
    background: rgba(26, 14, 46, 0.85);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 16px;
    padding: 12px 14px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.intro-subtitles-header {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-rose);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-subtitles-text {
    font-size: 0.85rem;
    color: #f8fafc;
    line-height: 1.4;
    font-style: italic;
}

.btn-intro-continue {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: 2px solid #fda4af;
    color: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.5);
    transition: all 0.2s ease;
}
.btn-intro-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(225, 29, 72, 0.7);
}

/* ==========================================================================
   STATUS BAR ONBOARDING / TUTORIAL OVERLAY (COMPACT 2x2 - ZERO SCROLLING)
   ========================================================================== */
.tutorial-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 4, 16, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 650;
    display: none !important;
    pointer-events: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.tutorial-modal-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
    animation: fadeInModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tutorial-card {
    width: 100%;
    max-width: 370px;
    background: linear-gradient(180deg, #1b1033 0%, #100720 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.35);
    border-radius: 20px;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    box-sizing: border-box;
}

.tutorial-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
}

.tutorial-grid-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.tutorial-grid-item .tutorial-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.tutorial-grid-item h4 {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.tutorial-grid-item p {
    font-size: 0.62rem;
    color: #94a3b8;
    line-height: 1.15;
    margin: 0;
}

.btn-tutorial-setup-sos {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.btn-tutorial-setup-sos:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ==========================================================================
   SOS NUMBERS SETUP MODAL (CLEAN, DEDICATED, LARGE INPUT FIELD)
   ========================================================================== */
.sos-setup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 10, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 700;
    display: none !important;
    pointer-events: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
}

.sos-setup-modal-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
    animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sos-setup-card {
    width: 100%;
    max-width: 370px;
    background: linear-gradient(180deg, #1e1338 0%, #110822 100%);
    border: 2px solid #6366f1;
    border-radius: 20px;
    padding: 16px 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(99, 102, 241, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    position: relative;
}

.sos-privacy-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.68rem;
    line-height: 1.3;
    padding: 6px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sos-input-field {
    width: 100%;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(99, 102, 241, 0.7);
    border-radius: 12px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
    outline: none;
    box-sizing: border-box;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.sos-input-field:focus {
    border-color: #818cf8;
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.sos-input-field::placeholder {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ==========================================================================
   GRAND FINALE & SCHUTZSCHILD CERTIFICATE OVERLAY
   ========================================================================== */
.grand-finale-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #2e083a 0%, #080312 100%);
    z-index: 600;
    display: none !important;
    pointer-events: none !important;
    flex-direction: column;
    padding: 20px 16px;
    overflow-y: auto;
    animation: fadeInModal 0.4s ease;
    box-sizing: border-box;
}

.grand-finale-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
}

.finale-trophy-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    color: #fff;
    margin: 0 auto 12px;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
    animation: pulseRing 1.8s infinite;
}

.finale-certificate-card {
    background: #fff;
    color: #0f172a;
    border-radius: 20px;
    padding: 24px 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 4px double #e11d48;
}

.cert-header {
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.cert-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #be123c;
    letter-spacing: -0.3px;
}

.cert-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.cert-body {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #334155;
    text-align: center;
}

.cert-stamp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
}

.cert-seal {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #e11d48;
    color: #e11d48;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
}



