/* ============================================================
   TesterApp – Shared Design System
   main.css – Imported by ALL pages
   ============================================================ */

/* ── RESET & TOKENS ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  
  --bg:  #0d1117;
  --bg2: #151b23;
  --bg3: #1d2530;

  --surface:  #1e2330;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.12);
  
  --accent: #4285F4;      /* Google Blue */
  --accent2: #34A853;     /* Google Green */
  
  --accent-rgb: 66, 133, 244;
	
  --accent-glow-bg: radial-gradient(
        ellipse,
        rgba(var(--accent-rgb), 0.12) 0%,
        transparent 70%
    );
	
	--accent-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
	--premium-accent-shadow:  0 0 14px rgba(0, 229, 160, 0.15);
    --accent-shadow-hover: 0 0 30px rgba(var(--accent-rgb), 0.4);
	
   --accent-dim: rgba(66, 133, 244, 0.12);
   --accent-glow: rgba(66, 133, 244, 0.25);
  
  --warn: #FBBC04;        /* Google Yellow */
  --red:  #EA4335;        /* Google Red */
	
  --txt:      #e8eaf0;
  --txt2:     #8b909e;
  --txt3:     #555c6b;
  --font-head: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --r:  10px;
  --r2: 16px;
  /* Layout */
  --nav-height: 64px;
  --container:  1080px;
  --premium: #00e5a0;
}

html 
{ 
	scroll-behavior: smooth; 
	overflow-x: hidden; 
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: clamp(14px, 0.9vw + 11px, 16px);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { cursor: pointer; font-family: var(--font-body); }

/* ── GRAIN OVERLAY ──────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* ── GRID BACKGROUND ────────────────────────────────────────── */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 30%, transparent 100%);
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: var(--nav-height);
  background: rgba(10,11,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800; font-size: 20px;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.5px;
}
/* Logo image in nav */
.nav-logo-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  transition: opacity .2s;
}
.nav-logo:hover .nav-logo-img { opacity: .85; }
/* Legacy dot (kept for fallback) */
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; color: var(--txt2);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a.active { color: var(--accent); }

/* Nav right area — auth buttons */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--accent); color: #000;
  font-weight: 600; font-size: 13px;
  padding: 8px 20px; border-radius: 6px; border: none;
  transition: opacity .2s, transform .15s;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }
.nav-login {
  background: transparent; color: var(--txt2);
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--border2);
  transition: color .2s, border-color .2s;
}
.nav-login:hover { color: var(--txt); border-color: rgba(255,255,255,0.2); }

/* Nav mobile toggle */
.nav-toggle {
  display: none; width: 32px; height: 32px; border: none;
  background: transparent; color: var(--txt);
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0; cursor: pointer; z-index: 1100;
}
.nav-toggle span { width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav user avatar (when logged in) */
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border2);
  cursor: pointer;
  transition: border-color .2s;
}
.nav-avatar:hover { border-color: var(--accent); }
 
/* ── NAV DROPDOWNS ──────────────────────────────────────────── */
.nav-dropdown-wrap { position: relative; display: flex; align-items: center; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 14px;
  min-width: 220px; z-index: 2000; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  display: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 8px;
}
.nav-dropdown.show { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; }

.dropdown-user-info { padding: 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown-user-info .username { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--txt); }
.dropdown-user-info .score { font-family: var(--font-mono); font-size: 11px; color: var(--accent); margin-top: 2px; }

.dropdown-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--txt2); font-size: 13px; transition: all .15s;
}
.dropdown-link:hover { background: var(--bg3); color: var(--txt); }
.dropdown-link.admin { color: var(--warn); }
.dropdown-link.logout { color: var(--red); }
.dropdown-link.logout:hover { background: rgba(255,77,109,0.08); }

.nav-dropdown .separator { height: 1px; background: var(--border); margin: 6px 0; }

/* ── NOTIFICATIONS DROPDOWN ─────────────────────────────────── */
.nav-notif-btn {
  background: transparent; border: none; color: var(--txt2);
  padding: 8px; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; transition: color .2s, background .2s;
}
.nav-notif-btn:hover { color: var(--txt); background: rgba(255,255,255,0.04); }
.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: var(--red) !important;
  border-radius: 50%; border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(255,77,109,0.3);
  pointer-events: none;
}

.nav-credits-frame {
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center;
}
.nav-credits {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.1;
}
.nav-credits .label { font-size: 8px; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 1px; }
.nav-credits .value { font-size: 13px; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }

.notif-dropdown { min-width: 320px; padding: 0; overflow: hidden; }
.notif-dropdown .dropdown-header {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.notif-dropdown .dropdown-header span { font-weight: 700; font-family: var(--font-head); font-size: 14px; }
.notif-dropdown .dropdown-header a { font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.notif-item-mini {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.notif-item-mini:hover { background: var(--bg3); }
.notif-item-mini.unread { background: rgba(0,229,160,0.03); }
.notif-item-mini .ni-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.notif-item-mini .ni-content { flex: 1; min-width: 0; }
.notif-item-mini .ni-title { font-size: 12px; font-weight: 500; color: var(--txt2); line-height: 1.4; }
.notif-item-mini .ni-time { font-size: 10px; color: var(--txt3); font-family: var(--font-mono); margin-top: 4px; }
.empty-notifs { padding: 32px; text-align: center; color: var(--txt3); font-size: 13px; }

/* ── MOBILE NAV LINKS ────────────────────────────────────────── */
.mobile-profile-links { display: none; flex-direction: column; gap: 4px; width: 100%; }
.mobile-profile-links .separator { height: 1px; background: var(--border); margin: 12px 0; width: 100%; }

/* ── SECTION COMMON ─────────────────────────────────────────── */
section { position: relative; padding: 100px 24px; }
.container { max-width: var(--container); margin: 0 auto; }

.section-label {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px;
}
h2 {
  font-family: var(--font-head); font-size: clamp(24px, 5vw, 42px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
}
h3 { font-family: var(--font-head); }
.section-sub {
  color: var(--txt2); font-size: 16px; margin-top: 14px; max-width: 520px; line-height: 1.6;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  background: var(--accent); color: #000;
  font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 8px; border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--accent-shadow);
}

.btn-primary:hover 
{
	transform: translateY(-2px); 
	box-shadow: var(--accent-shadow-hover); 
}
	
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: transparent; color: var(--txt2);
  font-weight: 500; font-size: 15px;
  padding: 14px 32px; border-radius: 8px;
  border: 1px solid var(--border2);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--txt); border-color: rgba(255,255,255,0.2); }

.btn-sm {
  padding: 8px 20px; font-size: 13px; border-radius: 6px;
}
.btn-danger {
  background: rgba(255,77,109,0.12); color: var(--red);
  border: 1px solid rgba(255,77,109,0.2);
  font-size: 13px; padding: 8px 20px; border-radius: 6px;
  transition: background .2s;
}
.btn-danger:hover { background: rgba(255,77,109,0.2); }

.btn-xs {
  padding: 4px 10px; font-size: 11px; border-radius: 4px;
}
.btn-xs:hover { opacity: 0.8; }

/* ── CARDS (shared) ─────────────────────────────────────────── */
.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
  overflow: hidden;
  min-width: 0;
}
.card:hover { border-color: var(--border2); }

@media (max-width: 600px) {
  .card { padding: 18px 16px; }
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--txt2);
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.form-group label span.required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border2); color: var(--txt);
  padding: 12px 16px; border-radius: 8px; font-size: 14px; font-family: var(--font-body);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: var(--txt3); }
.form-control:focus {
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.06);
}
.form-control.error { border-color: rgba(255,77,109,0.5); }

.form-hint { font-size: 12px; color: var(--txt3); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-error.visible { display: block; }

textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }

/* ── BADGES / TAGS ──────────────────────────────────────────── */
.badge {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid var(--border2); color: var(--txt2);
  display: inline-block;
  text-align: center;
}

.badge.accent { background: var(--accent-dim); color: var(--accent); border-color: rgba(66, 133, 244, 0.25); }
.badge.warn   { background: rgba(245,166,35,0.1); color: var(--warn); border-color: rgba(245,166,35,0.2); }
.badge.red    { background: rgba(255,77,109,0.1); color: var(--red); border-color: rgba(255,77,109,0.2); }

/* Status badges */
.status-active   { background: rgba(0,229,160,0.1); color: var(--accent2); border-color: rgba(0,229,160,0.2); }
.status-pending  { background: rgba(245,166,35,0.1); color: var(--warn);  border-color: rgba(245,166,35,0.2); }
.status-complete { background: rgba(99,179,237,0.1); color: #63b3ed;      border-color: rgba(99,179,237,0.2); }
.status-rejected { background: rgba(255,77,109,0.1); color: var(--red);   border-color: rgba(255,77,109,0.2); }
.status-paused   { background: var(--surface); color: var(--txt3); }

.fireabse-badge-accent {
    background: rgba(0, 229, 160, 0.12);
    color: var(--accent2) !important;
    border-color: rgba(0, 229, 160, 0.25);
	font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid var(--border2);
    color: var(--txt2);
    display: inline-block;
    text-align: center;
}

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px; background: var(--accent);
  transition: width .8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.warn  { background: var(--warn); }
.progress-fill.red   { background: var(--red); }

/* 14-day grid */
.day-progress-grid {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px;
}
.day-box {
  width: 12px; height: 12px; border-radius: 2px;
  background: var(--bg3); border: 1px solid var(--border);
  position: relative;
}
.day-box.green        { background: var(--accent); }
.day-box.yellow-green { background: linear-gradient(90deg, var(--accent) 50%, var(--warn) 50%); }
.day-box.red-green    { background: linear-gradient(90deg, var(--red) 50%, var(--accent) 50%); }
.day-box.red          { background: var(--red); }
.day-box.missed       { background: #232326; border: 1px dashed var(--border2); }
.day-box.empty        { background: var(--bg3); opacity: 0.4; }

/* ── SPINNER ────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── AVATAR ─────────────────────────────────────────────────── */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  overflow: hidden; object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 80px; height: 80px; font-size: 24px; }

/* ── TICKER / LIVE FEED BAR ─────────────────────────────────── */
.ticker-wrap {
  width: 100%; overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 12px 0;
  background: var(--bg2); position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg2), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg2), transparent); }
.ticker { display: flex; gap: 0; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 40px; font-family: var(--font-mono); font-size: 12px; color: var(--txt2);
}
.ticker-item .t-icon { font-size: 14px; }
.ticker-item .t-text { color: var(--txt); font-weight: 500; font-family: var(--font-body); }
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; opacity: 0.5; }
.ticker-item .t-time { font-size: 11px; color: var(--txt3); }

/* ── ALERTS / TOASTS ────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--r);
  font-size: 13px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(0,229,160,0.08); border: 1px solid rgba(0,229,160,0.2); color: var(--accent); }
.alert-error   { background: rgba(255,77,109,0.08); border: 1px solid rgba(255,77,109,0.2); color: var(--red); }
.alert-warn    { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.2); color: var(--warn); }
.alert-info    { background: rgba(99,179,237,0.08); border: 1px solid rgba(99,179,237,0.2); color: #63b3ed; }

.alert-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.2;
}
.alert-content {
  flex: 1;
  min-width: 0;
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 24px; color: var(--txt3);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--txt2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 24px; }

/* ── LOADER ─────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }

/* ── PAGE HEADER (inner pages) ──────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 48px) 24px 48px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-head); font-size: clamp(24px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px;
}
.page-header p { color: var(--txt2); font-size: 15px; }
.page-header .grid-bg {
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 20%, transparent 100%);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
}
.footer-brand .logo { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--txt); }
.footer-brand p { font-size: 13px; color: var(--txt3); max-width: 17rem; margin-top: 8px; }
/* Logo image in footer */
.footer-logo-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-logo-img  {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.footer-logo-link:hover .footer-logo-img { opacity: .8; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; color: var(--txt2);
  margin-bottom: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--txt3); transition: color .2s; }
.footer-col ul li a:hover { color: var(--txt); }
.footer-bottom {
  max-width: var(--container); 
  margin: 2rem auto 0; 
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex; 
  justify-content: center; 
  align-items: center;
  flex-wrap: wrap; 
  gap: .2rem;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--txt3); text-align:center }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes pulse   { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }
@keyframes ticker  { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{opacity:0;transform:translateX(-8px)} to{opacity:1;transform:translateX(0)} }
@keyframes spin    { to{transform:rotate(360deg)} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 3%; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg2); border-left: 1px solid var(--border);
    flex-direction: column; padding: 100px 32px 40px;
    transition: right .3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050; display: flex; gap: 20px;
  }
  .nav-links.open { right: 0; box-shadow: -20px 0 60px rgba(0,0,0,0.5); }
  .nav-links a { font-size: 16px; font-weight: 600; width: 100%; }
  
  .mobile-profile-links { display: flex; gap:1rem }
  .nav-right .nav-avatar { display: none; }
  .nav-notif-wrap { display: none; }
  .nav-auth-desktop { display: none; }
}

@media (max-width: 768px) {
  .footer-links { flex-direction: column; gap: 24px; }
  section { padding: 60px 20px; }
}
@media (max-width: 480px) {
  .btn-primary, .btn-ghost { padding: 10px 20px; font-size: 14px; width: 100%; justify-content: center; }
  .nav-logo { font-size: 18px; }
  .nav-logo-img  { height: 28px; width: 28px; }
  .footer-logo-img { height: 36px; width: 36px; }
}
@media (max-width: 374px) 
{
	.nav-logo { font-size: 100%; }
	
	.nav-credits-frame 
	{
		padding: .5rem .2rem .5rem .2rem;
	}
	
	.nav-right 
	{
		gap:.5rem;
	}
}


@media (max-width: 600px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

@media (max-width: 340px) {
.footer-brand p { font-size: 13px; color: var(--txt3); max-width: 13rem; }
}

/* ── MOBILE NAV BACKDROP ─────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 408px) {
    .nav-dropdown {
        position: fixed;
        top: 70px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
        width: calc(100vw - 32px);
        max-width: 320px;
    }

    .nav-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 320px) 
{
	.nav-dropdown 
	{
		width: 95%;
        max-width: 95%;
        min-width: 95%;
	}
	
	.dropdown-header
	{
		padding:.5rem;
	}
	.notif-item-mini 
	{
		padding:.5rem;
	}
	
	.nav-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.typewriter.animate {
    animation: typing 1s steps(25, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 25ch; }
}