/* =====================================================================
   GE01 STUDIO — Design System  ·  "Neon Arcade Studio"
   Dark, premium gaming dashboard. All original class names/IDs preserved
   so existing JS keeps working. Optimized: dedup + modern + animated.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ----------------------------- Tokens ------------------------------ */
:root {
  /* surfaces */
  --bg-0: #06070c;
  --bg-1: #0a0c13;
  --bg: #0a0c13;
  --surface: rgba(23, 26, 38, 0.72);
  --surface-2: rgba(17, 19, 28, 0.85);
  --surface-solid: #14161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #eef0f8;
  --muted: #9aa0bd;

  /* brand / accents */
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --magenta: #f472b6;
  --gold: #fbbf24;
  --green: #34d399;
  --danger: #fb7185;
  --warning: #fbbf24;
  --success: #34d399;

  /* legacy aliases (used by inline JS + components) */
  --accent: #8b5cf6;
  --accent-2: #22d3ee;

  /* gradients */
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(139,92,246,.22), rgba(34,211,238,.16));
  --grad-progress: linear-gradient(90deg, #f472b6 0%, #8b5cf6 38%, #6366f1 68%, #22d3ee 100%);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.40);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, .18), 0 16px 50px rgba(99, 102, 241, .22);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ----------------------------- Reset ------------------------------- */
* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: .1px;
  background: var(--bg-1);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* animated ambient aurora background */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(45% 45% at 18% 12%, rgba(139, 92, 246, .30), transparent 60%),
    radial-gradient(40% 40% at 85% 18%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(50% 50% at 75% 88%, rgba(244, 114, 182, .18), transparent 60%),
    radial-gradient(45% 45% at 12% 90%, rgba(99, 102, 241, .20), transparent 60%);
  filter: blur(10px);
  animation: auroraDrift 24s var(--ease) infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 7, 12, .55), rgba(6, 7, 12, .82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.03); }
}

img, video, audio { max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(139, 92, 246, .35); }

/* scrollbar */
* { scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.5) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(139,92,246,.4); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.7); }

h1, h2, h3, h4 { margin: 0; font-family: 'Bricolage Grotesque', 'Outfit', sans-serif; font-weight: 700; letter-spacing: -.02em; }

/* ----------------------------- Layout ------------------------------ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex: 0 0 248px;
  padding: 26px 20px;
  background: linear-gradient(180deg, rgba(13, 15, 23, .96), rgba(8, 9, 15, .98));
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 60;
  backdrop-filter: blur(12px);
}

.logo { margin-bottom: 30px; padding: 4px; }
.logo img {
  width: 84px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(139, 92, 246, .45));
  transition: transform .4s var(--ease);
}
.logo img:hover { transform: scale(1.05) rotate(-2deg); }

.logo-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 22px;
  background: var(--grad-brand); font-weight: 800; font-size: 22px;
  font-family: 'Bricolage Grotesque', sans-serif;
  box-shadow: var(--shadow-glow);
}

.nav-menu { display: flex; flex-direction: column; gap: 6px; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 13px;
  font-weight: 500;
  overflow: hidden;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.nav-item span { font-size: 18px; transition: transform .3s var(--ease); }
.nav-item::before {
  content: "";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 60%; border-radius: 9px;
  background: var(--grad-brand);
  transition: transform .3s var(--ease);
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .04); transform: translateX(3px); }
.nav-item:hover span { transform: scale(1.18); }
.nav-item.active {
  color: #fff;
  background: var(--grad-brand-soft);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .25);
}
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dashboard-main { padding: 30px clamp(18px, 3vw, 38px); }

/* topbar / dashboard top */
.topbar, .dashboard-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--border);
}
.dashboard-top { padding: 0 0 26px; border-bottom: none; }
.topbar h1 { font-size: clamp(22px, 3vw, 30px); }

.page-actions, .calendar-left, .calendar-right, .calendar-controls {
  display: flex; align-items: center; gap: 10px;
}

/* inputs */
.search, .input, select, textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  font: inherit;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.search { max-width: 360px; }
.search::placeholder, .input::placeholder, textarea::placeholder { color: var(--muted); }
.search:focus, .input:focus, select:focus, textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
  background: rgba(17, 19, 28, .95);
}

.user-pill {
  background: var(--grad-brand-soft);
  border: 1px solid rgba(139, 92, 246, .32);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(139, 92, 246, .14);
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 14px;
  position: relative; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease), filter .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }

.btn.primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 22px rgba(99, 102, 241, .35);
}
.btn.primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4), transparent 70%);
  transform: translateX(-130%);
  transition: transform .6s var(--ease);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(99, 102, 241, .5); }
.btn.primary:hover::after { transform: translateX(130%); }

.btn.ghost, .btn.secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}
.btn.ghost:hover, .btn.secondary:hover {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
  transform: translateY(-1px);
}

.btn.danger {
  background: rgba(251, 113, 133, .14);
  color: #ffb1bd;
  border: 1px solid rgba(251, 113, 133, .35);
}
.btn.danger:hover { filter: brightness(1.1); box-shadow: 0 0 0 3px rgba(251, 113, 133, .18); }

/* --------------------------- Containers ---------------------------- */
.project-container {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 22px;
}

.dashboard-section { margin-top: 36px; }
.dashboard-section h2 {
  margin-bottom: 16px; font-size: 20px;
  display: flex; align-items: center; gap: 10px;
}
.dashboard-section h2::before {
  content: ""; width: 9px; height: 22px; border-radius: 4px;
  background: var(--grad-brand); box-shadow: 0 0 14px rgba(139, 92, 246, .6);
}

/* ----------------------------- Card -------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card h3 { font-size: 17px; margin-bottom: 4px; }

/* --------------------------- Dashboard hero ------------------------ */
.dashboard-hero {
  position: relative; overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}
.dashboard-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(34,211,238,.25), transparent 50%);
  mix-blend-mode: screen;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(7,8,13,.94) 8%, rgba(7,8,13,.55) 58%, rgba(7,8,13,.12) 100%);
}
.hero-text, .hero-content { position: relative; z-index: 1; padding: clamp(24px, 4vw, 40px); }
.hero-text { max-width: 600px; }
.hero-text h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.04; }
.hero-text p { margin: 12px 0 22px; color: #d7daf0; font-size: 16px; }

/* --------------------------- Project cards ------------------------- */
.horizontal-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 200px;
  position: relative; overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #1c2030, #11131c);
  background-size: cover; background-position: center;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  animation: cardIn .55s var(--ease) both;
}
.project-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,13,.05), rgba(7,8,13,.88));
  transition: opacity .4s var(--ease);
}
.project-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(80% 60% at 50% 120%, rgba(139,92,246,.45), transparent 70%);
  transition: opacity .4s var(--ease);
}
.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(139, 92, 246, .5);
  box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 30px rgba(139,92,246,.25);
}
.project-card:hover::after { opacity: 1; }
.project-card-content { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 18px; }
.project-card h3 { font-size: 16px; margin-bottom: 12px; }

/* --------------------------- Progress bars ------------------------- */
.progress {
  width: 100%; height: 10px;
  background: rgba(255, 255, 255, .08);
  border-radius: 999px; overflow: hidden;
}
.progress-bar {
  width: 0%; height: 100%; border-radius: inherit;
  background: var(--grad-progress);
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(139, 92, 246, .55);
  transition: width 1.1s var(--ease);
  animation: shimmer 3s linear infinite;
}
.progress-meta {
  margin-top: 12px; display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13px;
}
.progress-meta strong { color: #fff; }

/* --------------------------- Quick actions ------------------------- */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card {
  padding: 28px 22px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600; font-size: 16px;
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.quick-card:hover {
  border-color: rgba(139,92,246,.5);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 26px rgba(139,92,246,.2);
}

/* --------------------------- Progress page ------------------------- */
.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.project-summary-card { display: flex; flex-direction: column; gap: 15px; animation: cardIn .5s var(--ease) both; }
.project-summary-top { display: flex; gap: 15px; align-items: center; }
.project-summary-cover {
  width: 90px; height: 90px; border-radius: 18px;
  background: linear-gradient(135deg, #2a3150, #141826);
  background-size: cover; background-position: center;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.project-summary-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.4); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* --------------------------- Project hero -------------------------- */
.project-hero {
  position: relative; overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #232c49, #141826);
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.project-logo { width: 150px; max-height: 96px; object-fit: contain; margin-bottom: 16px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.project-subtitle { margin-top: 6px; color: #dfe4ff; font-weight: 500; font-size: 17px; }

.hero-tags, .tag-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.tag {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.tag:hover { transform: translateY(-2px); background: rgba(139,92,246,.22); }

.project-grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }

/* --------------------------- Demo frame ---------------------------- */
.project-demo-card { overflow: hidden; }
.demo-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.demo-section-head p { margin: 6px 0 0; }
.demo-frame-shell {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(circle at top, rgba(139,92,246,.14), rgba(8,10,16,0) 48%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    #0c0e15;
  padding: 18px; margin-bottom: 16px;
}
.demo-frame-stage {
  position: relative; width: 100%; min-height: 720px;
  border-radius: 16px; overflow: hidden;
  background: #05070d; border: 1px solid rgba(255, 255, 255, .08);
}
.project-demo-frame { display: block; width: 100%; min-height: 720px; border: none; background: #05070d; }
.demo-notice { margin-top: 0; }

/* --------------------------- Features / tech ----------------------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-left: 0; margin: 0; list-style: none; }
.feature-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 13px;
  font-weight: 500;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.feature-pill::before { content: "◆"; color: var(--cyan); font-size: 9px; }
.feature-pill:hover { transform: translateX(3px); border-color: rgba(34,211,238,.4); }

.tech { width: 100%; border-collapse: collapse; }
.tech td { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tech tr:last-child td { border-bottom: none; }
.tech td:first-child { color: var(--muted); width: 44%; font-weight: 500; }
.tech td:last-child { font-weight: 600; text-align: right; }

/* ----------------------- General progress card --------------------- */
.general-progress-card { --project-progress-color: #8b5cf6; }
.general-progress-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.general-progress-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(34px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.04em;
  text-shadow: 0 0 26px color-mix(in srgb, var(--project-progress-color) 55%, transparent);
}
.general-progress-track {
  width: 100%; height: 16px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,.13));
  margin-bottom: 12px;
}
.general-progress-fill {
  width: 0%; height: 100%; border-radius: inherit;
  background: var(--grad-progress); background-size: 220% 100%;
  box-shadow: 0 0 26px color-mix(in srgb, var(--project-progress-color) 55%, transparent);
  transition: width 1.2s var(--ease);
  animation: shimmer 3.4s linear infinite;
}

/* --------------------------- Audio cards --------------------------- */
.audio-grid { display: grid; gap: 14px; }
.audio-card {
  padding: 16px; border-radius: 16px;
  background: rgba(8, 10, 16, .55);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.audio-card:hover { border-color: rgba(34,211,238,.32); transform: translateY(-2px); }
.audio-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.audio-title::before { content: "♫"; color: var(--cyan); }
.audio-card audio { width: 100%; }

/* ------------------------- Milestones ------------------------------ */
.milestone-editor { display: grid; gap: 16px; }
.milestone-item { display: grid; grid-template-columns: 130px 1fr 58px; gap: 14px; align-items: center; }
.milestone-item input[type="range"] { width: 100%; accent-color: var(--violet); }

.milestone-static-item { display: grid; gap: 9px; animation: fadeUp .5s var(--ease) both; }
.milestone-static-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.milestone-static-head strong { font-size: 17px; font-family: 'Bricolage Grotesque', sans-serif; }
.milestone-static-track { width: 100%; height: 11px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.milestone-static-fill {
  height: 100%; border-radius: inherit; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(139,92,246,.45);
  transition: width 1s var(--ease);
}

/* --------------------------- Misc ---------------------------------- */
.empty-state {
  padding: 26px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  color: var(--muted); text-align: center;
  background: rgba(255,255,255,.015);
}
.notice {
  border-left: 4px solid var(--violet);
  background: var(--grad-brand-soft);
  padding: 14px 18px; border-radius: 13px;
}
code {
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  padding: 2px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  color: var(--cyan);
}

/* --------------------------- Forms / Modal ------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }

.modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(3, 4, 8, .72);
  backdrop-filter: blur(8px);
  z-index: 1000;
}
.modal.open { display: flex; animation: fadeIn .25s var(--ease); }
.modal-card {
  width: min(620px, 100%);
  background: linear-gradient(180deg, #181b27, #12141d);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: popIn .35s var(--ease);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.event-form { display: grid; gap: 15px; }
.event-form label { display: grid; gap: 8px; font-size: 14px; }
.event-form input, .event-form select, .event-form textarea {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px; padding: 11px 13px; font: inherit;
}
.modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

.form-status {
  margin-bottom: 14px; padding: 11px 15px; border-radius: 11px; font-size: 14px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .03);
}
.form-status.info { color: var(--muted); }
.form-status.success { color: #6ee7b7; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.form-status.error { color: #fda4af; border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); }

/* --------------------------- Chat ---------------------------------- */
.chat-list { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.chat-message {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 16px;
  animation: fadeUp .4s var(--ease) both;
}
.chat-message strong { color: var(--cyan); font-weight: 700; }

/* --------------------------- Calendar (dark) ----------------------- */
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.calendar-left h2 { font-size: 20px; text-transform: capitalize; }
.calendar-weekdays.google {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  padding: 4px; color: var(--muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}
.calendar-weekdays.google > div { padding: 8px; text-align: center; }
.calendar-grid.google {
  display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 130px;
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: var(--border);
  gap: 1px;
}
.day {
  background: var(--surface-2);
  color: var(--text);
  padding: 9px;
  min-height: 130px;
  display: flex; flex-direction: column;
  transition: background .2s var(--ease);
}
.day:hover { background: rgba(139, 92, 246, .08); }
.day.empty { background: rgba(8, 9, 14, .6); }
.day.today {
  background: rgba(139, 92, 246, .16);
  box-shadow: inset 0 0 0 2px rgba(139, 92, 246, .5);
}
.day-number { text-align: right; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.day.today .day-number {
  color: #fff;
  display: inline-flex; align-self: flex-end; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-brand);
  animation: pulse 2.4s var(--ease) infinite;
}

.event {
  display: block; width: 100%; margin-bottom: 5px; padding: 5px 8px;
  font-size: 11px; font-weight: 600; border-radius: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: none; text-align: left; cursor: pointer;
  border-left: 3px solid;
  transition: transform .15s var(--ease), filter .15s var(--ease);
}
.event:hover { transform: translateX(2px); filter: brightness(1.18); }
.event.low { background: rgba(99,102,241,.18); color: #c7d2fe; border-color: #6366f1; }
.event.medium { background: rgba(251,191,36,.16); color: #fcd34d; border-color: #fbbf24; }
.event.high { background: rgba(251,146,60,.18); color: #fdba74; border-color: #fb923c; }
.event.critical { background: rgba(251,113,133,.18); color: #fda4af; border-color: #fb7185; }
.event-more { font-size: 11px; color: var(--muted); margin-top: 2px; }

.monthly-events-card { margin-top: 22px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-title-row span { color: var(--muted); font-size: 13px; }

.event-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 0; border-top: 1px solid var(--border); }
.event-row:first-child { border-top: none; }
.event-row h4 { margin: 4px 0; }
.event-row p, .event-row small { color: var(--muted); }
.event-row-date { color: var(--violet); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.event-row-actions { display: flex; gap: 8px; }

/* --------------------------- Admin --------------------------------- */
.admin-login-card, .admin-section { max-width: 1320px; }
.admin-section { animation: fadeUp .5s var(--ease) both; }
.admin-login-form, .admin-form-stack { display: grid; gap: 16px; }
.admin-actions-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-project-header { align-items: flex-start; }
.wrap-actions { flex-wrap: wrap; }
.admin-subsection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-inner-card { padding: 18px; background: rgba(8,10,16,.45); }
.admin-inner-card h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.admin-inner-card h3::before { content: ""; width: 7px; height: 16px; border-radius: 3px; background: var(--grad-brand); }
.auto-progress-preview {
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08);
  background: var(--grad-brand-soft);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px; font-weight: 800;
}
.milestone-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* ====================== ANIMATIONS / KEYFRAMES ===================== */
@keyframes shimmer { 0% { background-position: 0 0; } 100% { background-position: 220% 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,.55); } 50% { box-shadow: 0 0 0 7px rgba(139,92,246,0); } }

/* staggered entrance for grids (page load) */
.horizontal-scroll > *, .grid-list > *, .quick-actions > * { animation: cardIn .55s var(--ease) both; }
.horizontal-scroll > *:nth-child(2), .grid-list > *:nth-child(2), .quick-actions > *:nth-child(2) { animation-delay: .06s; }
.horizontal-scroll > *:nth-child(3), .grid-list > *:nth-child(3), .quick-actions > *:nth-child(3) { animation-delay: .12s; }
.horizontal-scroll > *:nth-child(4), .grid-list > *:nth-child(4) { animation-delay: .18s; }
.horizontal-scroll > *:nth-child(5), .grid-list > *:nth-child(5) { animation-delay: .24s; }
.horizontal-scroll > *:nth-child(6), .grid-list > *:nth-child(6) { animation-delay: .30s; }
.horizontal-scroll > *:nth-child(7), .grid-list > *:nth-child(7) { animation-delay: .36s; }
.horizontal-scroll > *:nth-child(n+8), .grid-list > *:nth-child(n+8) { animation-delay: .42s; }

.dashboard-hero, .project-hero, .card { animation: fadeUp .6s var(--ease) both; }

/* ====================== MOBILE NAVIGATION =========================== */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 14px; left: 14px; z-index: 80;
  width: 46px; height: 46px; border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(13, 15, 23, .9);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.sidebar-backdrop {
  display: none; position: fixed; inset: 0; z-index: 55;
  background: rgba(3, 4, 8, .6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.sidebar-backdrop.show { display: block; opacity: 1; }

/* ============================ RESPONSIVE =========================== */
@media (max-width: 1040px) {
  .project-grid-2, .admin-subsection-grid, .milestone-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .mobile-menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed; top: 0; left: 0; height: 100dvh; width: 270px;
    transform: translateX(-100%);
    transition: transform .35s var(--ease);
    box-shadow: 24px 0 60px rgba(0,0,0,.5);
  }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; }
  .dashboard-main { padding-top: 74px; }
  .topbar { padding-top: 22px; padding-left: 72px; }
  .quick-actions { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .dashboard-top, .topbar, .calendar-toolbar, .demo-section-head, .section-title-row, .event-row, .modal-actions, .general-progress-head {
    flex-direction: column; align-items: stretch;
  }
  .topbar { padding-left: 18px; padding-top: 70px; }
  .calendar-left, .calendar-right, .page-actions { justify-content: space-between; }
  .search { max-width: 100%; }
  .milestone-item { grid-template-columns: 1fr; gap: 8px; }
  .features { grid-template-columns: 1fr; }
  .calendar-grid.google { grid-auto-rows: 96px; }
  .day { padding: 5px; }
  .demo-frame-stage, .project-demo-frame { min-height: 480px; }
  .hero-text h1 { font-size: clamp(24px, 7vw, 34px); }
}

@media (max-width: 460px) {
  .calendar-grid.google { grid-auto-rows: 72px; font-size: 10px; }
  .event { font-size: 9px; padding: 3px 5px; }
  .demo-frame-stage, .project-demo-frame { min-height: 380px; }
}

/* ===================== ACCESSIBILITY: reduced motion =============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none; }
}
