/* ==========================================================================
   improvestyles.css — Updated palette to match your latest landing style
   - Switch accent from purple to clean cyan/sky like your new hero
   - Keep your original structure (topbar/hero/cards/etc.)
   - Improves contrast in dark + light themes
   ========================================================================== */

:root{
  --bg:#070A12;
  --card:#0D1326;
  --muted:#A7B0C2;
  --text:#EAF0FF;
  --border:rgba(255,255,255,.10);
  --shadow: 0 18px 60px rgba(0,0,0,.35);

  /* ✅ Updated accents (similar to your landing code) */
  --accent:#0ea5e9;     /* main */
  --accent2:#22c55e;    /* secondary */
  --ok:#35D07F;
  --warn:#FFB020;
  --bad:#FF4D6D;

  --radius:16px;
  --radius2:22px;
  --max:1120px;
  --font:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Extra helpers (safe additions) */
  --accentGlow: rgba(14,165,233,.18);
  --accentGlow2: rgba(34,197,94,.12);
}

[data-theme="light"]{
  --bg:#F7F8FF;
  --card:#FFFFFF;
  --muted:#4C5568;
  --text:#0B1020;
  --border:rgba(10,15,30,.10);
  --shadow: 0 18px 60px rgba(16, 24, 40, .12);

  /* ✅ Light theme accents matching landing */
  --accent:#0ea5e9;
  --accent2:#22c55e;

  --accentGlow: rgba(14,165,233,.18);
  --accentGlow2: rgba(34,197,94,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);

  /* ✅ Updated background orbs like your landing */
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(14,165,233,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(34,197,94,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}

/* Background orbs (supports orb1 + orb2) */
.bg-orb{
  position:fixed;
  inset:auto auto 0 0;
  width:520px; height:520px;

  /* ✅ cyan glow */
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.22), transparent 65%);

  filter: blur(40px);
  opacity:.85;
  pointer-events:none;
  z-index:-1;
}
.bg-orb.orb1{ inset:auto auto 0 0; }
.bg-orb.orb2{
  inset:0 0 auto auto;
  width:620px; height:620px;

  /* ✅ green glow */
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.14), transparent 65%);
}

/* =========================
   TOPBAR — PRO 2-ROW HEADER
   ========================= */
.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(12px);

  /* ✅ make it match cyan/green theme */
  background: linear-gradient(to bottom, rgba(7,10,18,.78), rgba(7,10,18,.55));
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topbar{
  background: linear-gradient(to bottom, rgba(247,248,255,.86), rgba(247,248,255,.65));
}

.topbar .container{
  display:flex;
  flex-direction:column;
}

.topbar-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Row 1 spacing */
.topbar-row.topbar-row1{ padding:14px 0 10px; }

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width: 240px;
}

.brand-avatar{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);

  /* ✅ updated gradient */
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 20%, var(--accent2)));
}

.brand-photo{
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  max-width:44px;
  max-height:44px;
  object-fit:cover;
  display:block;
}

.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-weight:800; letter-spacing:.2px; font-size:16px; }
.brand-tag{ font-size:12px; color:var(--muted); margin-top:2px; }

/* Row 2 menu */
.nav{ display:flex; gap:18px; align-items:center; }

.nav.nav-row2{
  justify-content:center;
  padding:10px 0 14px;
  border-top: 1px solid var(--border);
  margin-top:6px;
}

.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.nav a:hover{
  transform: translateY(-1px);
  color:var(--text);
  background: rgba(255,255,255,.06);
}
[data-theme="light"] .nav a:hover{ background: rgba(10,15,30,.06); }

/* Actions */
.top-actions{ display:flex; align-items:center; gap:10px; }

/* Search */
.search{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--border);

  /* ✅ better contrast */
  background: rgba(255,255,255,.035);

  border-radius:14px;
  padding:8px 10px;
}
.search input{
  width:240px;
  max-width: 42vw;
  border:none;
  outline:none;
  background:transparent;
  color:var(--text);
  font: inherit;
}
.search input::placeholder{
  color: color-mix(in oklab, var(--muted) 80%, transparent);
}

/* Icon buttons */
.icon-btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  width:40px; height:40px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.icon-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
[data-theme="light"] .icon-btn:hover{ background: rgba(10,15,30,.06); }
.icon{font-weight:900}

/* Primary button */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--border);

  /* ✅ updated gradient */
  background: linear-gradient(135deg, rgba(14,165,233,.95), rgba(14,165,233,.60));

  color:white;
  text-decoration:none;
  font-weight:800;
  box-shadow: 0 18px 48px rgba(14,165,233,.18);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 60px rgba(14,165,233,.22);
}
.btn.btn-sm{ padding:10px 12px; font-size:14px }

/* Mobile nav */
.mobile-nav{ display:none; padding:0 0 14px; }
.mobile-nav a{
  display:block;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  margin-top:10px;
  text-decoration:none;
  color:var(--text);
  background: rgba(255,255,255,.03);
}
.muted{color:var(--muted)}
.burger{display:none}

/* =========================
   CONTENT UI COMPONENTS
   ========================= */
.hero{
  margin:26px 0 20px;
  border:1px solid var(--border);
  border-radius: var(--radius2);

  /* ✅ match landing glow */
  background:
    radial-gradient(1100px 420px at 20% 0%, rgba(14,165,233,.16), transparent 60%),
    radial-gradient(900px 360px at 110% 10%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));

  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:18px;
  padding:26px;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
  border:1px solid var(--border);
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.03);
}
.h1{
  font-size:44px;
  line-height:1.05;
  margin:14px 0 10px;
  letter-spacing:-.8px;
}
.lead{
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  margin:0 0 16px;
}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: rgba(255,255,255,.05);
}

/* Panels / stats */
.panel{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:18px;
}
.panel h3{margin:0 0 10px}
.stat{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.stat:last-child{border-bottom:none}
.stat b{font-size:14px}
.stat span{color:var(--muted); font-size:13px}

/* Cards / grids */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin:14px 0 26px;
}
.card{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.card h3{margin:4px 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.55}
.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

/* Section titles */
.section-title{
  margin:26px 0 12px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}
.section-title h2{margin:0; font-size:22px}
.section-title p{margin:0; color:var(--muted)}

/* Lists / items */
.list{display:grid; gap:12px; margin-bottom:28px}
.item{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:16px;
}
.item-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}
.item h3{margin:0 0 6px}
.item .meta{color:var(--muted); font-size:13px}
.item .body{margin-top:10px; color:var(--muted); line-height:1.6}
.item a{color:inherit}

/* Forms */
.form{
  border:1px solid var(--border);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.03);
  padding:16px;
}
.field{display:grid; gap:6px; margin-bottom:12px}
.field label{font-weight:800; font-size:13px}
.field input,.field textarea,.field select{
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
  background: rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
  font: inherit;
}
.field input:focus,.field textarea:focus,.field select:focus{
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 4px rgba(14,165,233,.18);
}
.field textarea{min-height:140px; resize:vertical}

/* Alerts */
.alert{
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  margin:12px 0;
}
.alert.ok{border-color: color-mix(in oklab, var(--ok) 55%, var(--border));}
.alert.bad{border-color: color-mix(in oklab, var(--bad) 55%, var(--border));}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  margin-top:30px;
  padding:22px 0 20px;
  background: rgba(0,0,0,.18);
}
[data-theme="light"] .footer{background: rgba(255,255,255,.35)}
.footer-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-title{font-weight:900}
.footer-sub{color:var(--muted); margin-top:6px}
.footer-meta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:800;
}
.footer-links a:hover{color:var(--text)}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}

  .nav.nav-row2{display:none}
  .burger{display:grid}
  .mobile-nav.show{display:block}

  .search input{width:160px}
}
