/* ==========================================
   1. ROOT VARIABLES & THEMES
========================================== */

:root {
    --primary: #6C63FF;
    --primary-dark: #5046e5;
    --neon: #00D4FF;
    --glow: rgba(108, 99, 255, 0.4);
    --bg: #09090b;
    --card: rgba(30, 30, 35, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #fafafa;
    --muted: #a1a1aa;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --medical: #6366f1;
    --coffee: #6F4E37;
}

body.contrast {
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --primary: #4f46e5;
    --glow: rgba(79, 70, 229, 0.2);
}

body.contrast nav { background: rgba(255, 255, 255, 0.95); border-color: var(--border); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
body.contrast .logo, body.contrast .nav-links a.link { color: var(--text); }
body.contrast .nav-links a.link:hover { color: var(--primary); }
body.contrast .card, body.contrast .survey-box, body.contrast .breathe-box, body.contrast .grounding-box, body.contrast .journal-section, body.contrast .feedback-box, body.contrast .focus-timer-box, body.contrast .focus-mixer, body.contrast .focus-notes, body.contrast .aware-card, body.contrast .sound-section, body.contrast .geo-card, body.contrast .pulse-card { background: var(--card); border-color: var(--border); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
body.contrast .news-card { background: var(--card); border-color: var(--border); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
body.contrast .creator-title { background: linear-gradient(to right, #0f172a, #475569); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.contrast .auth-box, body.contrast .profile-box, body.contrast .admin-box { background: var(--card); border-color: var(--border); }
body.contrast .input-group input, body.contrast .distraction-pad, body.contrast .journal-area, body.contrast .feedback-area { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }
body.contrast .input-group label { color: var(--muted); }
body.contrast .input-group input:focus ~ label, body.contrast .input-group input:not(:placeholder-shown) ~ label { background: var(--card); color: var(--primary); }
body.contrast .history-item { background: #f8fafc; border-color: var(--border); color: var(--text); }
body.contrast .chat-body { background: #f8fafc; }
body.contrast .bot-msg { background: #ffffff; border: 1px solid #e2e8f0; color: #0f172a; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
body.contrast .loc-card { background: #f8fafc; border-color: var(--border); }
body.contrast .loc-card:hover { border-color: var(--primary); background: #ffffff; }
body.contrast footer { background: var(--card); border-color: var(--border); }

/* Deep Work Focus Mode */
body.deep-focus-mode { --bg: #050505; }
body.deep-focus-mode nav, body.deep-focus-mode footer, body.deep-focus-mode #hero-header, body.deep-focus-mode #locator, body.deep-focus-mode #hub, body.deep-focus-mode .news-section, body.deep-focus-mode #chat-btn, body.deep-focus-mode #bmc-btn, body.deep-focus-mode #creator-btn, body.deep-focus-mode #creator, body.deep-focus-mode #feedback, body.deep-focus-mode .pulse-section, body.deep-focus-mode #awareness, body.deep-focus-mode .anon-wall, body.deep-focus-mode .sound-section, body.deep-focus-mode #mutual-aid { display: none !important; opacity: 0; pointer-events: none; }
body.deep-focus-mode #deepwork { margin-top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }

/* ==========================================
   2. GLOBAL RESET
========================================== */

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); background-image: radial-gradient(at 0% 0%, rgba(108, 99, 255, .1), transparent 50%), radial-gradient(at 100% 100%, rgba(0, 212, 255, .05), transparent 50%); background-attachment: fixed; transition: background 0.3s, color 0.3s; overflow-x: hidden; }

.container { max-width: 1200px; margin: auto; padding: 0 20px; }
section { margin-top: 100px; }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 2.5rem; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: 10px; }

/* ==========================================
   3. NAVIGATION BAR
========================================== */

nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 95%; max-width: 1200px; background: rgba(9, 9, 11, .8); backdrop-filter: blur(16px); border: 1px solid var(--border); padding: 10px 20px; border-radius: 100px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); transition: 0.5s; }
.logo { font-size: 1.4rem; font-weight: 800; } 
.logo span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a.link:hover { color: var(--primary); }

.nav-emergency { display: flex; gap: 10px; align-items: center; border-left: 1px solid var(--border); padding-left: 20px; margin-left: 10px; }
.em-icon { color: var(--text); font-size: 1.1rem; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s; text-decoration: none; }
.em-icon:hover { transform: scale(1.1); }
.em-icon.police:hover { background: #3b82f6; }
.em-icon.ambulance:hover { background: #ef4444; }
.em-icon.support:hover { background: #ec4899; }

.login-btn-nav { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 0.9rem; }
.login-btn-nav:hover { box-shadow: 0 0 15px var(--glow); transform: translateY(-2px); }
.user-profile-nav { display: none; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); padding: 5px 15px 5px 5px; border-radius: 50px; cursor: pointer; }
.user-avatar { width: 32px; height: 32px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #000; font-size: 0.9rem; text-transform: uppercase; }
.admin-badge { background: #f59e0b !important; color: black !important; }

/* Theme Switcher */
.animatic-theme-switch { position: relative; display: inline-block; width: 60px; height: 34px; margin: 0 10px; }
.animatic-theme-switch input { opacity: 0; width: 0; height: 0; }
.slider.animatic-round { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #27272a; transition: 0.4s; border-radius: 34px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.slider.animatic-round::before { position: absolute; content: ""; height: 26px; width: 26px; left: 3px; bottom: 3px; background-color: var(--primary); transition: 0.4s; border-radius: 50%; z-index: 2; box-shadow: 0 0 10px var(--glow); }
.sun-icon { color: #f59e0b; font-size: 0.8rem; z-index: 1; margin-left: 2px;}
.moon-icon { color: #a1a1aa; font-size: 0.8rem; z-index: 1; margin-right: 2px;}
input:checked + .slider.animatic-round { background-color: #e4e4e7; }
input:checked + .slider.animatic-round::before { transform: translateX(26px); background-color: var(--primary); }

/* ==========================================
   4. INSANELY PREMIUM AUTH MODAL
========================================== */

/* Deep Dark Glass Base for entire screen */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle at center, rgba(11, 15, 25, 0.9) 0%, rgba(5, 7, 10, 0.95) 100%) !important;
    backdrop-filter: blur(15px) !important;
    z-index: 5000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    animation: fadeIn 0.3s ease; 
}

/* Floating Neon Orbs in Background */
.auth-orb-1, .auth-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    animation: authOrbFloat 10s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.auth-orb-1 { width: 350px; height: 350px; background: var(--primary); top: 10%; left: 20%; opacity: 0.3; }
.auth-orb-2 { width: 300px; height: 300px; background: var(--neon); bottom: 10%; right: 20%; opacity: 0.2; animation-delay: -5s; }

@keyframes authOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.1); }
}

/* The Dribbble-level Glass Card */
.auth-box { 
    width: 450px; 
    background: rgba(20, 25, 40, 0.4) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 40px rgba(108, 99, 255, 0.05) !important;
    border-radius: 28px !important;
    transform-style: preserve-3d;
    padding: 50px; 
    position: relative; 
    z-index: 10;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.auth-close { position: absolute; top: 25px; right: 25px; color: var(--muted); cursor: pointer; font-size: 1.2rem; transition: 0.3s; z-index: 10; }
.auth-close:hover { color: white; transform: rotate(90deg); }

.auth-header { text-align: center; margin-bottom: 35px; }
.auth-header h2 { font-size: 2.2rem; margin-bottom: 8px; background: linear-gradient(to right, #fff, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }

/* Refined Form Inputs */
.input-group { position: relative; margin-bottom: 22px; }
.input-group input { 
    width: 100%; 
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    padding: 16px; 
    border-radius: 14px !important;
    color: var(--text); 
    outline: none; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.input-group input:focus { 
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(108, 99, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

.input-group label { position: absolute; left: 16px; top: 16px; color: var(--muted); pointer-events: none; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 0.95rem; }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label { top: -12px; left: 12px; font-size: 0.75rem; background: #12151c; padding: 0 8px; color: var(--neon); border-radius: 4px; }
.eye-btn { position: absolute; right: 16px; top: 18px; color: var(--muted); cursor: pointer; transition: 0.3s; z-index: 5; }
.eye-btn:hover { color: var(--neon); }

/* Hero Button */
.auth-submit { 
    background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%) !important;
    color: white; 
    border: none !important;
    padding: 16px; 
    border-radius: 16px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    width: 100%; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem !important;
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important;
}
.auth-submit:hover { 
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.4) !important;
    transform: translateY(-3px) scale(1.02) !important;
    filter: brightness(1.1);
}

.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--muted); cursor: pointer;}
.auth-switch span { color: var(--neon); font-weight: 600; transition: 0.3s; }
.auth-switch span:hover { text-decoration: underline; text-shadow: 0 0 10px var(--neon); }
.text-link { color: var(--neon); font-weight: 600; cursor: pointer; transition: 0.3s; }
.text-link:hover { color: #fff; text-shadow: 0 0 10px var(--neon); text-decoration: underline; }

.form-container { display: none; animation: fadeIn 0.4s ease; }
.form-container.active { display: block; }
.auth-error { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 12px; border-radius: 12px; font-size: 0.85rem; text-align: center; display: none; margin-bottom: 20px; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Other Modals (Profile, Admin) */
.profile-box, .admin-box { background: rgba(20, 25, 40, 0.4) !important; backdrop-filter: blur(30px) saturate(150%) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important; border-top: 1px solid rgba(255, 255, 255, 0.15) !important; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 40px rgba(108, 99, 255, 0.05) !important; border-radius: 28px !important; padding: 40px; position: relative; animation: slideUp 0.4s ease; }
.profile-box { width: 420px; } 
.admin-box { width: 90%; max-width: 1000px; height: 80vh; padding: 0; display: flex; flex-direction: column; }

.profile-header { background: linear-gradient(180deg, rgba(108, 99, 255, 0.15) 0%, transparent 100%); padding: 50px 30px 30px; text-align: center; border-bottom: 1px solid var(--border); }
.profile-avatar-lg { width: 90px; height: 90px; background: linear-gradient(135deg, #6C63FF, #00D4FF) !important; box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4), inset 0 2px 0 rgba(255,255,255,0.4) !important; color: white; border-radius: 50%; font-size: 2.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; border: 4px solid #0B0F19 !important; transition: transform 0.4s ease; cursor: pointer; }
.profile-avatar-lg:hover { transform: scale(1.1) rotate(5deg); }
.profile-body { padding: 25px; display: flex; flex-direction: column; gap: 12px; }
.perf-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; display: flex; align-items: center; gap: 15px; transition: 0.3s; cursor: pointer; position: relative; }
.perf-card:hover { background: rgba(255,255,255,0.06); border-color: var(--primary); }
.perf-icon { width: 44px; height: 44px; background: rgba(108,99,255,0.1); border-radius: 12px; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.history-view { display: none; padding: 25px; width: 100%;}
.history-item { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 15px; margin-bottom: 10px; border: 1px solid var(--border); }
.logout-btn { width: 100%; padding: 15px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444; border-radius: 14px; cursor: pointer; font-weight: 700; margin-top: 15px; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;}
.logout-btn:hover { background: var(--danger); color: white; }

.admin-header { padding: 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); }
.admin-content { padding: 30px; overflow-y: auto; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th { text-align: left; padding: 15px; color: var(--muted); font-size: 0.85rem; border-bottom: 1px solid var(--border); text-transform: uppercase; }
.data-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; color: var(--text); }
.status-pill { padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-good { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.tab-btn { background: transparent; border: none; color: var(--muted); padding: 10px 20px; cursor: pointer; font-weight: 600; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.download-btn { background: #27272a; color: white; border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }

/* ==========================================
   5. FLOATING BUTTONS & CHATBOT UI
========================================== */

/* Fixed Premium BMC Button */
#bmc-btn { 
    position: fixed; 
    bottom: 30px; 
    left: 30px; 
    width: 65px; 
    height: 65px; 
    background: linear-gradient(135deg, #f59e0b, #fbbf24); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #000; 
    font-size: 1.8rem; 
    cursor: pointer; 
    z-index: 4000; 
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4); 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: none; 
    text-decoration: none; 
}
#bmc-btn:hover { transform: scale(1.1) rotate(-10deg); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6); }

/* New Animated Creator Button */
#creator-btn { 
    position: fixed; 
    bottom: 105px; 
    left: 30px; 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, #1e293b, #0f172a); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--neon); 
    font-size: 1.4rem; 
    cursor: pointer; 
    z-index: 3000; 
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2); 
    transition: 0.3s; 
    text-decoration: none; 
    border: 1px solid rgba(0, 212, 255, 0.3); 
}
#creator-btn:hover { transform: scale(1.1) rotate(5deg); box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4); border-color: var(--neon); color: #fff;}

/* Chatbot Float Button */
#chat-btn { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary), var(--neon)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; cursor: pointer; z-index: 3000; box-shadow: 0 10px 30px var(--glow); transition: 0.3s; border: none; }
#chat-btn:hover { transform: scale(1.1) rotate(5deg); }

.glass-chat { position: fixed; bottom: 110px; right: 30px; width: 380px; height: 600px; background: rgba(18, 18, 23, 0.75); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 24px; display: none; flex-direction: column; overflow: hidden; z-index: 3000; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5); animation: chatPopUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes chatPopUp { from { opacity: 0; transform: translateY(50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
.neon-gradient { background: linear-gradient(135deg, var(--primary), var(--neon)); }

.chat-head { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; color: white; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.bot-avatar { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; scroll-behavior: smooth; }
.chat-bubble { padding: 14px 18px; font-size: 0.95rem; max-width: 85%; line-height: 1.5; animation: slideInMsg 0.3s ease-out forwards; opacity: 0; transform: translateY(10px); }
.bot-msg { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); border-radius: 18px 18px 18px 4px; align-self: flex-start; }
.user-msg { background: linear-gradient(135deg, var(--primary), var(--neon)); color: white; border-radius: 18px 18px 4px 18px; align-self: flex-end; box-shadow: 0 5px 15px var(--glow); }

@keyframes slideInMsg { to { opacity: 1; transform: translateY(0); } }

.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; animation: fadeIn 0.5s 0.5s both; opacity: 0; }
.chip { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 8px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.chip:hover { background: var(--primary); color: white; }

.chat-foot { padding: 15px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--border); }
.chat-input-wrapper { display: flex; align-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 50px; padding: 5px 5px 5px 20px; transition: 0.3s; }
.chat-input-wrapper:focus-within { border-color: var(--neon); box-shadow: 0 0 10px rgba(0, 212, 255, 0.2); background: rgba(255, 255, 255, 0.1); }
#chat-input { background: transparent; border: none; color: var(--text); flex: 1; outline: none; font-size: 0.95rem; }
.send-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--neon)); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.send-btn:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--glow); }

.typing-indicator { display: flex; gap: 4px; padding: 10px 15px; background: rgba(255, 255, 255, 0.05); border-radius: 18px 18px 18px 4px; align-self: flex-start; width: max-content; }
.typing-dot { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); background: var(--primary); } }

/* ==========================================
   6. HERO & HUB
========================================== */

header { padding: 180px 20px 80px; text-align: center; position: relative; background: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat; }
header#hero-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(9, 9, 11, .8), var(--bg)); }
.hero { position: relative; max-width: 800px; margin: auto; z-index: 2; }
.hero h1 { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; line-height: 1.1; }
.hero p { color: var(--muted); font-size: 1.2rem; margin: 24px 0 36px; }
.cta-btn { display: inline-block; background: var(--primary); color: #fff; padding: 16px 36px; border-radius: 100px; font-weight: 700; text-decoration: none; transition: 0.3s; cursor: pointer; border: none; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px -5px var(--glow); }

/* Grid Class */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 35px; transition: .3s; position: relative; }
.card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 40px -20px var(--glow); }
.card i { font-size: 2.2rem; color: var(--primary); margin-bottom: 20px; }
.large { grid-column: span 2; }
.trust-badge { position: absolute; top: 15px; right: 15px; font-size: 0.7rem; font-weight: 700; padding: 6px 12px; border-radius: 50px; border: 1px solid currentColor; display: flex; align-items: center; gap: 5px; }
.verify-c { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.verify-g { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.verify-s { color: var(--primary); background: rgba(108, 99, 255, 0.1); }

/* ==========================================
   7. DEEP WORK ZONE
========================================== */

.deep-work-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.focus-container { display: grid !important; grid-template-columns: 1fr 1.5fr 1fr !important; gap: 30px !important; align-items: stretch !important; }
.focus-timer-box, .focus-mixer, .focus-notes { background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 40px 30px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: visible; height: 100%; }
.focus-timer-box { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); justify-content: center; }

.timer-progress-bar { position: absolute; top: 0; left: 0; height: 6px; width: 0%; background: var(--primary); transition: width 1s linear; border-radius: 30px 30px 0 0; }
.timer-status-badge { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: inline-block; margin-bottom: 10px; align-self: center; }
.status-focus { color: var(--primary); border-color: var(--primary); background: rgba(108, 99, 255, 0.1); }
.status-break { color: var(--success); border-color: var(--success); background: rgba(16, 185, 129, 0.1); }

.timer-display { font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 800; font-family: monospace; line-height: 1.2; color: var(--text); margin: 15px 0; }
.coffee-cup { position: relative; width: 100px; height: 80px; border: 4px solid #a1a1aa; border-radius: 0 0 50px 50px; background: transparent; margin: 10px auto; overflow: hidden; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); }
.coffee-handle { position: absolute; right: -28px; top: 10px; width: 25px; height: 35px; border: 4px solid #a1a1aa; border-radius: 0 20px 20px 0; }
.coffee-liquid { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: var(--coffee); transition: height 1s linear; box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5); }
.steam-container { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; opacity: 0; transition: opacity 0.5s; }
.steam { width: 5px; height: 20px; background: rgba(255, 255, 255, 0.4); border-radius: 10px; filter: blur(2px); animation: steamRise 2s infinite; }
.steam:nth-child(2) { animation-delay: 0.5s; height: 25px; }
.steam:nth-child(3) { animation-delay: 1s; }
@keyframes steamRise { 0% { transform: translateY(0); opacity: 0.5; } 100% { transform: translateY(-20px); opacity: 0; } }
.focus-timer-box.active .steam-container { opacity: 1; }

.timer-settings { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.setting-grp { display: flex; flex-direction: column; align-items: center; }
.setting-grp label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; margin-bottom: 5px; }
.time-input { background: transparent; border: none; border-bottom: 2px solid var(--border); color: var(--text); font-size: 1.2rem; font-weight: 700; width: 60px; text-align: center; padding: 5px; transition: 0.3s; outline: none; }
.time-input:focus { border-color: var(--primary); }

.focus-hist-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; font-size: 1.1rem; }
.focus-hist-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.timer-controls { display: flex; gap: 15px; justify-content: center; }
.btn-focus { padding: 14px 30px; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 1rem; }
.btn-start { background: var(--primary); color: white; box-shadow: 0 0 20px rgba(108, 99, 255, 0.3); }
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(108, 99, 255, 0.5); }
.btn-reset { background: rgba(255, 255, 255, 0.05); color: var(--text); border: 1px solid var(--border); }
.btn-reset:hover { background: rgba(255, 255, 255, 0.1); }

.mixer-track { display: flex; align-items: center; gap: 20px; margin-bottom: 15px;}
.mixer-icon { width: 40px; text-align: center; color: var(--muted); font-size: 1.2rem; }
.mixer-slider { flex: 1; -webkit-appearance: none; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; outline: none; }
.mixer-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 10px var(--primary); transition: 0.2s; }

.distraction-pad { width: 100%; flex: 1; min-height: 200px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 15px; padding: 20px; color: var(--text); font-size: 1rem; resize: none; outline: none; margin-top: 15px; font-family: 'Courier New', monospace; line-height: 1.6; height: 100%; }
.distraction-pad:focus { border-color: var(--primary); box-shadow: 0 0 15px rgba(108, 99, 255, 0.1); }

.sound-grid { display: flex !important; justify-content: center !important; gap: 20px !important; margin-top: 30px; }
.sound-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 15px 30px; border-radius: 100px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--text); font-weight: 600; font-size: 1rem; backdrop-filter: blur(10px); }
.sound-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.2); }
.sound-btn.active { background: linear-gradient(135deg, var(--primary), var(--neon)); color: white; border: none; box-shadow: 0 10px 20px var(--glow); }

/* ==========================================
   8. LOCATOR & LIVE PULSE (UPGRADED)
========================================== */

.geo-section { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.geo-card { background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.geo-btn { background: transparent; border: 1px solid var(--primary); color: var(--primary); padding: 12px 24px; border-radius: 50px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: 0.3s; margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; }
.geo-btn:hover { background: var(--primary); color: white; }

.radar-loader { display: none; width: 100px; height: 100px; margin: 30px auto; border-radius: 50%; border: 2px solid var(--primary); position: relative; }
.radar-loader::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%; background: var(--primary); opacity: 0.3; animation: ping 1.5s infinite; }

/* Upgraded Locator Grid */
.local-results { 
    display: grid !important; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 30px !important; 
    margin-top: 40px; 
    text-align: left; 
}

/* Premium Animated Locator Card */
.loc-card { 
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.9), rgba(18, 18, 20, 0.95)); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 24px; 
    padding: 30px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.loc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--neon));
    opacity: 0;
    transition: 0.4s ease;
}

.loc-card:hover { 
    border-color: rgba(108, 99, 255, 0.4); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px -10px var(--glow); 
}
.loc-card:hover::before { opacity: 1; }

.loc-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.loc-header h3 {
    font-size: 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.loc-badge { font-size: 0.7rem; font-weight: 800; padding: 5px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px; }
.badge-open { background: var(--success); color: #000; box-shadow: 0 0 10px rgba(16, 185, 129, 0.3); }
.badge-close { background: var(--warning); color: #000; }
.badge-medical { background: var(--medical); color: #fff; box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }

.loc-meta {
    color: var(--neon);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loc-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7; 
    margin-bottom: 25px; 
}

/* Feature 5: Capacity Indicators */
.capacity-indicator { width: 100%; margin-bottom: 25px; }
.cap-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase;}
.cap-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 10px; transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 1s ease; }


.loc-btn { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #fff; 
    padding: 14px 20px; 
    border-radius: 14px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    font-weight: 600; 
    margin-top: auto; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.loc-btn:hover { 
    background: linear-gradient(135deg, var(--primary), var(--neon)); 
    border-color: transparent; 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 10px 25px var(--glow); 
    color: white; 
}

.pulse-section { max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.pulse-card { background: var(--card); border: 1px solid var(--border); border-radius: 30px; padding: 30px; display: flex; align-items: center; gap: 30px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); flex-wrap: wrap; }
.pulse-info { flex: 1; min-width: 250px; }
.pulse-info h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 10px var(--success); animation: blink 2s infinite; }
.pulse-numbers { display: flex; gap: 30px; margin-top: 15px; }
.p-stat h3 { font-size: 2rem; color: var(--primary); line-height: 1; }
.p-stat p { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.graph-visualizer { flex: 2; height: auto; display: flex; }
.bar { flex: 1; background: var(--primary); border-radius: 10px; opacity: 0.6; animation: bounce 1s infinite ease-in-out; }
.bar:nth-child(odd) { background: var(--neon); }

.heatmap-container { width: 100%; height: 100px; background: rgba(0,0,0,0.3); border-radius: 15px; position: relative; overflow: hidden; border: 1px solid var(--border); margin-top: 15px; }
.heat-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; animation: heatPulse 2s infinite alternate; }
@keyframes heatPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 1; } }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes bounce { 0%, 100% { height: 20%; } 50% { height: 100%; } }

/* ==========================================
   9. WELLNESS, BREATHE & JOURNAL
========================================== */

.breathe-box, .survey-box, .grounding-box, .journal-section { background: var(--card); border: 1px solid var(--border); border-radius: 40px; padding: 60px 40px; text-align: center; }

.breath-circle { width: 200px; height: 200px; margin: 40px auto; border-radius: 50%; background: conic-gradient(from 0deg, var(--primary), transparent); box-shadow: 0 0 60px var(--glow); display: flex; align-items: center; justify-content: center; position: relative; animation-play-state: paused; }
.breath-circle.running { animation: spin 8s linear infinite, pulseBreath 8s ease-in-out infinite; }
.breath-circle::after { content: ''; position: absolute; inset: 5px; background: var(--bg); border-radius: 50%; }
.breath-text { position: absolute; z-index: 2; font-weight: 800; font-size: 1.5rem; }
.breathe-control { margin-top: 30px; padding: 12px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; border: none; background: var(--primary); color: white; transition: 0.3s; }
.breathe-results { display: none; margin-top: 20px; padding: 20px; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); border-radius: 20px; color: var(--success); animation: fadeIn 0.5s ease; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.ground-step { display: none; animation: fadeIn 0.5s ease; }
.ground-step.active { display: block; }
.ground-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; display: inline-block; animation: float 3s infinite; }
.ground-count { font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.1); line-height: 1; margin-bottom: -20px; display: block; }
.ground-title { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.ground-desc { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.ground-btn { padding: 14px 35px; border-radius: 50px; background: var(--primary); color: white; border: none; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 20px; }

.journal-area { width: 100%; height: 120px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 15px; padding: 20px; color: var(--text); font-size: 1rem; margin-top: 20px; resize: none; outline: none; }
.journal-area:focus { border-color: var(--primary); }
.mood-bar { display: flex; gap: 15px; margin-top: 15px; justify-content: center; }
.mood-btn { font-size: 1.5rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 10px; width: 50px; height: 50px; cursor: pointer; transition: 0.3s; }
.mood-btn:hover, .mood-btn.selected { background: var(--primary); transform: scale(1.1); }

.survey-box { min-height: 450px; display: flex; flex-direction: column; }
.survey-welcome { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; animation: fadeIn 0.5s ease; }
.survey-icon-float { font-size: 4rem; color: var(--primary); margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.survey-stats { display: flex; gap: 15px; margin-bottom: 30px; justify-content: center; }
.stat-chip { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--text); }
.survey-ui { display: none; width: 100%; text-align: left; animation: slideUp 0.4s ease; }
.progress-container { width: 100%; height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 10px; margin-bottom: 40px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 10px; width: 0%; transition: 0.5s ease; box-shadow: 0 0 15px var(--glow); }

.question-step { display: none; }
.question-step.active { display: block; animation: fadeIn 0.4s ease; }
.question-step h3 { font-size: 1.8rem; margin-bottom: 25px; font-weight: 700; }

.option-btn { width: 100%; text-align: left; padding: 20px 25px; margin-bottom: 15px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 18px; color: var(--text); font-size: 1.1rem; cursor: pointer; transition: 0.2s; font-weight: 500; }
.option-btn:hover { background: rgba(108, 99, 255, 0.1); border-color: var(--primary); transform: translateX(-5px); }
.option-btn.selected { background: linear-gradient(135deg, var(--primary), var(--neon)); border-color: transparent; color: white; box-shadow: 0 5px 15px var(--glow); }

.rating-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rating-num { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: 0.2s; font-weight: 700; }
.rating-num:hover, .rating-num.selected { background: var(--primary); color: white; transform: scale(1.1); }
.survey-input { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 15px; padding: 20px; color: white; font-size: 1rem; min-height: 120px; resize: none; outline: none; margin-top: 10px; }
.survey-input:focus { border-color: var(--primary); }
.survey-nav { display: flex; justify-content: space-between; margin-top: 40px; }
.nav-btn { padding: 12px 30px; border-radius: 50px; cursor: pointer; font-weight: 600; border: none; transition: 0.3s; }
.btn-prev { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-next { background: var(--primary); color: white; }
.btn-next:disabled { opacity: 0.5; cursor: not-allowed; }

.survey-results { display: none; text-align: center; animation: fadeIn 0.6s ease; padding-top: 20px; }
.score-circle { width: 200px; height: 200px; border-radius: 50%; border: 10px solid var(--card); display: flex; align-items: center; justify-content: center; flex-direction: column; margin: 0 auto 30px; position: relative; background: conic-gradient(var(--primary) 0%, rgba(255, 255, 255, 0.05) 0%); }
.score-inner { position: absolute; width: 160px; height: 160px; background: var(--bg); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-val { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.score-label { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================
   10. AWARENESS & RESOURCES
========================================== */

.awareness-section { padding: 80px 20px; background: linear-gradient(180deg, rgba(108, 99, 255, 0.05) 0%, var(--bg) 100%); border-top: 1px solid var(--border); }
.awareness-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.aware-card { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; padding: 35px 30px; transition: all 0.4s ease; position: relative; overflow: hidden; opacity: 0; transform: translateY(30px); }
.aware-card.visible { opacity: 1; transform: translateY(0); }
.aware-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px -15px var(--glow); background: rgba(255, 255, 255, 0.05); }

.aware-icon-box { width: 60px; height: 60px; background: rgba(108, 99, 255, 0.15); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 25px; transition: 0.3s; }
.aware-card:hover .aware-icon-box { transform: scale(1.1) rotate(5deg); }
.warn-icon { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.med-icon { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.aware-card h3 { font-size: 1.5rem; margin-bottom: 25px; font-weight: 700; }
.aware-list { list-style: none; padding: 0; }
.aware-list li { display: flex; gap: 15px; margin-bottom: 18px; font-size: 0.95rem; color: var(--muted); line-height: 1.6; align-items: flex-start; }
.aware-list li i { color: var(--success); margin-top: 4px; flex-shrink: 0; }

.crisis-box-internal { margin-top: 30px; background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(236, 72, 153, 0.8)); padding: 20px; border-radius: 16px; text-align: center; color: white; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }

/* Anon Wall */
.anon-wall { margin-top: 100px; padding: 80px 20px; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.anon-title { color: var(--primary); margin-bottom: 30px; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; }
.quote-box { font-size: 1.8rem; font-style: italic; color: #fff; font-family: 'Playfair Display', serif; opacity: 0.9; transition: opacity 0.5s; }

#dynamic-thoughts-container { text-align: center; padding: 60px 20px 20px; background: transparent; }
#dynamic-thought-text { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-style: italic; color: var(--muted); background: linear-gradient(to right, #6C63FF, #00D4FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 1; transition: opacity 1s ease-in-out; }

/* ==========================================
   11. INFINITE SCROLL MARQUEE
========================================== */

.news-section { margin-top: 100px; overflow: hidden; padding: 20px 0; background: linear-gradient(to right, rgba(9, 9, 11, 0), rgba(108, 99, 255, 0.05), rgba(9, 9, 11, 0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.news-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.news-track { display: flex; width: max-content; animation: scrollMarquee 30s linear infinite; }
.news-track:hover { animation-play-state: paused; }
.news-card { display: inline-block; width: 350px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-right: 20px; white-space: normal; vertical-align: top; transition: 0.3s; cursor: pointer; }
.news-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px -10px var(--glow); }
.news-img { width: 100%; height: 160px; border-radius: 12px; object-fit: cover; margin-bottom: 15px; }
.news-badge { font-size: 0.7rem; color: var(--neon); font-weight: 700; }
.news-title { font-size: 1.1rem; font-weight: 700; margin: 8px 0; }
.news-date { font-size: 0.8rem; color: var(--muted); }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================
   12. FEEDBACK SECTION
========================================== */

.feedback-section { padding: 100px 20px; max-width: 800px; margin: 0 auto; text-align: center; }
.glass-panel { background: rgba(255, 255, 255, 0.02); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.stars { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; font-size: 2rem; color: var(--muted); cursor: pointer; }
.star-btn { transition: 0.3s; }
.star-btn:hover, .star-btn.active { color: #f59e0b; transform: scale(1.2); }
.feedback-area { width: 100%; height: 120px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 12px; padding: 15px; color: var(--text); resize: none; outline: none; margin-bottom: 20px; font-size: 1rem; transition: 0.3s; }
.feedback-area:focus { border-color: var(--primary); box-shadow: 0 0 15px var(--glow); }
.gradient-btn { background: linear-gradient(135deg, var(--primary), var(--neon)); border: none; width: 100%; border-radius: 12px; font-size: 1.1rem; cursor: pointer; padding: 15px; color: white; font-weight: bold;}

/* ==========================================
   13. CREATOR SECTION
========================================== */

.creator-section { padding: 100px 20px; background: linear-gradient(0deg, var(--bg) 0%, rgba(108, 99, 255, 0.05) 100%); border-top: 1px solid var(--border); overflow: hidden; }
.creator-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 60px; flex-wrap: wrap-reverse; }
.creator-content { flex: 1; min-width: 300px; }
.creator-badge { display: inline-block; padding: 6px 16px; background: rgba(108, 99, 255, 0.15); color: var(--primary); border-radius: 50px; font-size: 0.8rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; border: 1px solid var(--glow); }
.creator-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 10px; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.creator-role { font-size: 1.1rem; color: var(--neon); font-weight: 600; margin-bottom: 25px; }
.creator-bio { color: var(--muted); line-height: 1.8; margin-bottom: 30px; font-size: 1.05rem; }

.creator-skills { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 30px; }
.creator-skills span { padding: 8px 15px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.creator-skills span:hover { border-color: var(--neon); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2); }

.creator-projects h4 { margin-bottom: 15px; font-size: 1.1rem; }
.creator-projects ul { list-style: none; color: var(--muted); }
.creator-projects li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.creator-projects li::before { content: '▹'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.creator-socials { display: flex; gap: 15px; margin-top: 35px; }
.social-icon { width: 45px; height: 45px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 1.2rem; transition: 0.3s; text-decoration: none; }
.social-icon:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px var(--glow); }

.creator-visual { flex: 1; min-width: 300px; display: flex; justify-content: center; position: relative; }
.glow-orb { position: absolute; width: 300px; height: 300px; background: var(--primary); border-radius: 50%; filter: blur(80px); opacity: 0.3; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulseOrb 4s infinite alternate; }
.profile-frame { width: 350px; height: 450px; border-radius: 30px; border: 2px solid rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; z-index: 2; transform: rotate(3deg); transition: 0.5s; box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5); }
.profile-frame:hover { transform: rotate(0deg) scale(1.02); border-color: var(--neon); }
.profile-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(110%); transition: 0.5s; }
.profile-frame:hover img { filter: grayscale(0%) contrast(100%); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseOrb { from { transform: translate(-50%, -50%) scale(0.8); } to { transform: translate(-50%, -50%) scale(1.2); } }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: 0.8s ease-out; }
.pop-in { opacity: 0; transform: scale(0.8); transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.is-visible { opacity: 1; transform: translateX(0) scale(1); }

/* ==========================================
   14. GLOBAL LOADER & TOASTS
========================================== */

#global-loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
.loader-core { position: relative; width: 80px; height: 80px; }
.loader-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--primary); animation: spinLoader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.loader-ring:nth-child(2) { border-top-color: var(--neon); animation-delay: -0.3s; width: 70%; height: 70%; top: 15%; left: 15%; }
@keyframes spinLoader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

#toast-container { position: fixed; bottom: 30px; left: 30px; z-index: 6000; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.custom-toast { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary); color: var(--text); padding: 16px 24px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); display: flex; align-items: center; gap: 15px; font-weight: 600; font-size: 0.95rem; animation: slideInToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; max-width: 350px; }
.custom-toast.success { border-left-color: var(--success); }
.custom-toast.error { border-left-color: var(--danger); }
.custom-toast.fade-out { animation: fadeOutToast 0.4s ease forwards; }
@keyframes slideInToast { from { transform: translateX(-120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOutToast { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-120%); opacity: 0; } }
.btn-js-press { transform: scale(0.92) !important; filter: brightness(1.2); }

/* ==========================================
   15. FOOTER & MEDIA QUERIES
========================================== */

footer { padding: 60px 20px; background: var(--card); border-top: 1px solid var(--border); margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: auto; text-align: left; }
.footer-col h3 { color: var(--primary); margin-bottom: 20px; }
.footer-link { display: block; color: var(--muted); margin-bottom: 10px; text-decoration: none; transition: 0.3s; }
.footer-link:hover { color: var(--text); }
.emergency-row { display: flex; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.foot-em-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 10px 20px; border-radius: 8px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.foot-em-btn:hover { background: var(--danger); border-color: var(--danger); color: white; }
.bottom-bar { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.community-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-weight: 600; color: var(--text); }

@media(max-width: 900px) {
  .grid, .local-results, .focus-container, .awareness-grid, .footer-grid { grid-template-columns: 1fr !important; }
  .large { grid-column: span 1; }
  .auth-box, .profile-box, .admin-box, .glass-chat { width: 90%; right: 5%; }
}

/* ==========================================
   PREMIUM BUTTONS (MODALS & PDF)
========================================== */
.back-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
    text-decoration: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.back-btn i { font-size: 0.9rem; color: var(--muted); transition: all 0.3s ease; }
.back-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--neon));
    border-color: transparent; color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.back-btn:hover i { transform: translateX(-4px); color: white; }

/* FIX: PDF Button matched to Back Button aesthetics */
.pdf-dl-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.pdf-dl-btn i { font-size: 0.9rem; color: var(--muted); transition: all 0.3s ease; }
.pdf-dl-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--neon));
    border-color: transparent; color: white;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.pdf-dl-btn:hover i { transform: translateY(-2px); color: white; }
