:root {
    /* Brand Identity Colors */
    --bg-black: #030303;
    --hot-pink: #FF007F;
    --hot-pink-dim: rgba(255, 0, 127, 0.2);
    --cyan: #00FFFF;
    --cyan-dim: rgba(0, 255, 255, 0.15);
    --white: #FFFFFF;
    
    /* Controlled UI Colors */
    --text-main: #F4F4F5;
    --text-muted: #A1A1AA;
    
    /* Smoked Glass Properties */
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-blur: 16px;
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

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

body {
    background-color: var(--bg-black);
    background-image: url('https://i.postimg.cc/7ZW1fNyY/TEAM-DESIGN-Logo.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

@media (min-width: 600px) {
    body { background-size: contain; }
}

/* --- WARNING TAPE BACKGROUND --- */
.tape-container {
    position: fixed;
    bottom: 5%;
    width: 100vw;
    height: 200px;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.warning-tape {
    position: absolute;
    background: var(--hot-pink);
    color: var(--bg-black);
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 6px;
    white-space: nowrap;
    padding: 10px 200vw;
    margin-left: -100vw;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 0, 127, 0.3);
}

.tape-back { transform: rotate(4deg) translateY(-20px); opacity: 0.4; filter: blur(2px); }
.tape-front { transform: rotate(-6deg); opacity: 0.85; }

/* Ambient glow for modes */
.ambient-glow {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 50vh;
    background: radial-gradient(circle, var(--hot-pink-dim) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, background 0.5s ease;
    z-index: 1;
}

/* --- MAIN APP CONTAINER --- */
.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* --- CHAOTIC BRAND HEADER --- */
.brand-header {
    padding: 40px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-logo-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.logo-svg { width: 100%; display: block; }
.oh-shit-logo { margin-bottom: -15px; transform: rotate(-2deg); }
.tap-kit-logo { transform: scale(0.95); }

.warning-graphic svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 10px rgba(255, 0, 127, 0.4));
}

/* --- CONTROLLED INTERFACE --- */
.controlled-ui {
    flex-grow: 1;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: clamp(260px, 45vh, 400px);
}

/* --- INTRO DEMO SCREEN --- */
.intro-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--cyan-dim);
    border-top: 1px solid var(--cyan);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.intro-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.highlight-box {
    background: rgba(255, 0, 127, 0.08);
    border-left: 3px solid var(--hot-pink);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--white);
    margin-top: 8px;
}
.highlight-box strong {
    color: var(--hot-pink);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Dashboard Elements */
.tenant-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    animation: fadeIn 0.4s ease;
}

#owner-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mode-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#mode-icon { font-size: 1.2rem; color: var(--cyan); }

#mode-selector {
    background: transparent;
    color: var(--white);
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
}
#mode-selector option { background: var(--bg-black); }

.section-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-row {
    background: linear-gradient(90deg, rgba(20,20,25,0.9), rgba(10,10,12,0.9));
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--cyan);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.action-row:active { transform: scale(0.98); }
.action-row.urgent { border-left-color: var(--hot-pink); }
.action-row .material-symbols-outlined { color: var(--white); }
.action-row span.label { font-weight: 600; font-size: 0.9rem; }

/* Smoked Glass Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.glass-module {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.3s ease;
}
.glass-module:active { transform: scale(0.96); }
.glass-module .module-icon { font-size: 1.8rem; color: var(--text-muted); transition: color 0.3s ease; }
.glass-module:hover .module-icon { color: var(--white); }
.glass-module .module-title { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }

/* --- LOST MODE SIGNATURE SCREEN --- */
.hidden { display: none !important; }

#lost-dashboard {
    margin-top: 20px;
    animation: fadeIn 0.4s ease;
}

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

.lost-glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--hot-pink-dim);
    border-top: 1px solid var(--hot-pink);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 0, 127, 0.15);
}

.lost-headline { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.lost-subhead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 8px; }
.highlight-cyan { color: var(--cyan); }
.lost-body { font-size: 0.9rem; color: var(--white); margin-bottom: 32px; }

.lost-action-group { display: flex; flex-direction: column; gap: 12px; }

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.glass-btn:active { background: rgba(255, 255, 255, 0.1); }
.glass-btn.primary {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
}

.privacy-shield {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.privacy-shield .material-symbols-outlined { font-size: 1rem; }

/* --- PREMIUM POPUP MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.modal-glass {
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

.modal-title-area { display: flex; align-items: center; gap: 12px; }
.modal-title-area .module-icon { color: var(--cyan); }
.modal-title-area h3 { font-size: 1rem; font-weight: 600; letter-spacing: 1px; }

.close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.modal-content { padding: 24px; overflow-y: auto; }

.data-block { margin-bottom: 20px; }
.data-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.data-value { font-size: 1rem; color: var(--white); font-weight: 400; }

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
}
