/* --- ACREVS SCOUT: NATIVE iOS (SAN FRANCISCO) & GLASSMORPHISM THEME --- */

:root {
    --accent-cyan: #007AFF; /* Native Apple System Blue */
    --accent-indigo: #5856D6; /* Native Apple Indigo */
    --text-main: #1C1C1E; /* iOS Primary Text */
    --text-muted: #8E8E93; /* iOS Muted Text */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    color: var(--text-main); 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    font-size: 15px; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0; padding: 15px; 
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh;
    line-height: 1.5;
}

/* --- GLASSMORPHISM CORE CLASSES --- */
.container, .expert-card, .tracking-box, #purified_sandbox, .hub-panel, .input-hub-actions {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px; 
}

.container {
    max-width: 600px; width: 100%; 
    padding: 30px; 
    box-sizing: border-box;
    position: relative;
}

#gateway_screen { text-align: center; padding: 20px 0; }

.pin-input {
    width: 140px; font-size: 26px; text-align: center; letter-spacing: 8px;
    background: rgba(255, 255, 255, 0.6); color: var(--accent-indigo); 
    border: 1px solid var(--glass-border); padding: 14px; 
    border-radius: 14px; margin: 20px 0; outline: none;
    font-family: -apple-system, BlinkMacSystemFont, monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}
.pin-input:focus { border-color: var(--accent-cyan); background: rgba(255, 255, 255, 0.95); box-shadow: 0 0 15px rgba(0, 122, 255, 0.2); transform: scale(1.02); }

.disclaimer-box { background: rgba(255, 149, 0, 0.1); border-left: 3px solid #FF9500; padding: 14px; border-radius: 10px; font-size: 13.5px; color: var(--text-muted); text-align: left; margin-bottom: 20px; }
.checkbox-container { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; margin-bottom: 25px; cursor: pointer; color: var(--text-main); }
.checkbox-container input { margin-top: 3px; cursor: pointer; width: 18px; height: 18px; accent-color: var(--accent-cyan); }

#role_selection_screen, #main_app_screen, #expert_dashboard_screen { display: none; animation: fadeIn 0.4s cubic-bezier(0.25, 0.1, 0.25, 1); }

.role-btn { margin-bottom: 15px; padding: 16px; font-size: 16px; }
.expert-card { padding: 20px; margin-top: 20px; text-align: center; position: relative; }

.header-box { text-align: center; margin-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.06); padding-bottom: 15px; }
h2 { color: var(--text-main); font-weight: 700; margin: 0 0 6px 0; font-size: 24px; letter-spacing: -0.5px; }
.subtitle { color: var(--accent-cyan); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}

label { display: block; margin-bottom: 8px; font-size: 15px; color: var(--text-main); font-weight: 500; }

select, textarea, input[type="text"] {
    width: 100%; background: rgba(255, 255, 255, 0.6); color: var(--text-main); 
    border: 1px solid var(--glass-border); 
    padding: 14px; border-radius: 12px; box-sizing: border-box; margin-bottom: 18px; 
    font-family: inherit; font-size: 15px;
    transition: all 0.3s ease;
    resize: vertical;
}
select:focus, textarea:focus, input[type="text"]:focus {
    border-color: var(--accent-cyan); background: rgba(255, 255, 255, 0.95); outline: none;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.15);
}

.input-hub-actions { padding: 12px; margin-bottom: 18px; }
.plus-btn { background: var(--accent-cyan); color: white; font-size: 26px; font-weight: 300; width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); }
.plus-btn:hover { transform: scale(1.08) rotate(90deg); box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4); }

.hub-panel { padding: 15px; margin-bottom: 18px; gap: 10px; display: none; flex-wrap: wrap; }
.hub-option { 
    background: rgba(255, 255, 255, 0.85); 
    color: var(--text-main); 
    padding: 12px 10px; 
    border-radius: 10px; 
    cursor: pointer; 
    text-align: center; 
    font-size: 14px; 
    font-weight: 500; 
    flex: 1; 
    min-width: 100px; 
    border: 1px solid rgba(255,255,255,0.9); 
    box-shadow: 0 1px 4px rgba(0,0,0,0.04); 
    transition: all 0.2s ease; 
}
.hub-option:hover { 
    background: #FFFFFF; 
    color: var(--accent-cyan); 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1); 
}

.action-layout-btn { 
    width: 100%; 
    padding: 16px; 
    background: var(--text-main); 
    color: white; 
    border: none; 
    cursor: pointer; 
    border-radius: 14px; 
    font-family: inherit; 
    font-weight: 600; 
    font-size: 16px; 
    margin-top: 5px; 
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
}
.action-layout-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

.ai-tab-btn { background: var(--accent-cyan); animation: softPulse 2.5s infinite; }
.ai-tab-btn:hover { animation: none; transform: translateY(-2px) scale(1.01); background: #0062CC; box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35); }

@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

#input_forms_area { position: relative; padding: 15px; margin-bottom: 15px; }
#purified_sandbox { padding: 20px; margin-top: 20px; border: 1.5px solid var(--accent-cyan); position: relative; }
.empowerment-banner { background: rgba(0, 122, 255, 0.06); border-left: 3px solid var(--accent-cyan); padding: 14px; border-radius: 10px; margin-bottom: 15px; font-size: 14px; line-height: 1.4; color: var(--text-main); }

#educational_block { display: none; background: var(--glass-bg); backdrop-filter: blur(15px); border: 1.5px dashed var(--accent-cyan); padding: 25px; border-radius: 16px; margin-top: 20px; text-align: center; font-weight: 500;}

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

.tracking-box { padding: 20px; margin-bottom: 25px; position: relative; }
#track_result { display: none; margin-top: 15px; font-size: 14px; padding: 15px; background: rgba(255,255,255,0.8); border-radius: 12px; border: 1px solid var(--glass-border); line-height: 1.5;}

::selection { background-color: rgba(0, 122, 255, 0.25); color: var(--text-main); }

/* --- FULL SCREEN LOGIC CLASSES --- */
.fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    padding: 30px 10% !important; 
    background: rgba(242, 242, 247, 0.95) !important; 
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    box-sizing: border-box !important;
}

/* --- THE KILL SWITCH: PROMINENT EXIT BUTTON --- */
.fs-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    z-index: 10000; /* FORCE IT ON TOP */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.fs-toggle-btn:hover { transform: scale(1.1); background: #ffffff; }

.fullscreen-active textarea { height: 65vh !important; font-size: 16px; }
