/* ===============================
   Innovashub – Base Styles
   =============================== */

/* 1) Reset & tokens */
:root{
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #111a2e;
  --surface-2:#0e162a;
  --card: #0f1a30;
  --border: rgba(255,255,255,.08);
  --primary: #4f86ff;
  --primary-600:#3e6ce0;
  --primary-700:#2f52b4;
  --text: #e7ecff;
  --muted: #9fb0d5;
  --ok: #22c55e;
  --warn:#f59e0b;
  --err:#ef4444;
  --chip-border: rgba(255,255,255,.14);
  --shadow: 0 8px 30px rgba(0,0,0,.45);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 80% -20%, rgba(79,134,255,.18), transparent 60%),
    radial-gradient(900px 700px at -10% 10%, rgba(0,180,255,.15), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height:100%;
}

/* 2) Layout helpers */
.container{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  padding:24px;
}
.center{
  display:flex; align-items:center; justify-content:center;
}
.stack{display:flex;flex-direction:column;gap:16px}
.row{display:flex;gap:12px;flex-wrap:wrap}
.hidden{display:none !important}

/* 3) Cards & panels */
.card{
  background: linear-gradient(180deg, var(--card), rgba(17, 27, 49, .75));
  border:1px solid var(--border);
  border-radius:var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.panel{padding:22px;border-radius:var(--radius-lg)}
.panel-header{font-weight:700;font-size:18px;margin-bottom:10px}

/* 4) Inputs */
.input, .select, .textarea{
  width:100%;
  background:#0b1324;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:12px 14px;
  outline:none;
}
.input:focus, .select:focus, .textarea:focus{
  border-color:rgba(99, 134, 255, .6);
  box-shadow:0 0 0 4px rgba(99, 134, 255, .12);
}
.textarea{min-height:120px;resize:vertical}

/* 5) Buttons */
.btn{
  appearance:none;border:0;
  padding:12px 16px;border-radius:12px;
  font-weight:700;cursor:pointer;
  color:white;background:#1f2a44;
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px);opacity:.98}
.btn:active{transform:translateY(0)}
.btn-primary{background:var(--primary)}
.btn-primary:hover{background:var(--primary-600)}
.btn-google{
  background:#fff;color:#1f2937;
  display:flex; align-items:center; justify-content:center; gap:10px;
  box-shadow:0 6px 20px rgba(66,133,244,.25);
}
.btn-outline{
  background:transparent;border:1px solid var(--border);color:var(--text)
}

/* 6) Labels & messages */
.muted{color:var(--muted)}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  font-size:12px;font-weight:600;color:var(--text)
}
.badge.ok{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.3);color:#86efac}
.error{color:var(--err);font-weight:600}
.warning{color:var(--warn);font-weight:600}

/* 7) Auth page (landing linda) */
.auth-wrap{
  min-height:100vh; display:grid; place-items:center;
  padding:42px 18px;
}
.auth-card{
  width:100%; max-width:520px;
  padding:28px;
}
.auth-title{font-size:28px;font-weight:800;margin:6px 0 2px}
.auth-sub{color:var(--muted);margin-bottom:18px}
.auth-sep{
  text-align:center; color:var(--muted); font-weight:700;
  margin:6px 0 2px; position:relative;
}
.auth-sep:before,.auth-sep:after{
  content:""; height:1px; width:35%; top:50%; position:absolute; background:var(--border)
}
.auth-sep:before{left:0} .auth-sep:after{right:0}

/* 8) Palette chips & font pills (onboarding) */
.palette{display:flex; flex-wrap:wrap; gap:8px}
.chip{
  width:28px;height:28px;border-radius:8px;
  border:1px solid var(--chip-border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.35);
}
.font-pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{
  padding:6px 10px;border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--chip-border);
  color:var(--text); font-weight:700; font-size:12px;
}

/* 9) Little loader */
.loader{
  width:22px;height:22px;border-radius:999px;
  border:3px solid rgba(255,255,255,.2);
  border-top-color:var(--primary);
  animation:spin .8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}

/* 10) Links */
a{color:#a7c3ff;text-decoration:none}
a:hover{text-decoration:underline}

/* 11) Table (if used later) */
.table{
  width:100%;border-collapse:separate;border-spacing:0 8px
}
.table th{color:var(--muted);text-align:left;font-weight:700}
.table td, .table th{padding:12px 14px}
.table .row{
  background:#0d152a;border:1px solid var(--border);
  border-radius:12px
}

/* 12) Utilities */
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}
.center-text{text-align:center}
