/* ============================================================
   NEXBRIDGE GROWTH AI — Main Stylesheet
   Matching the premium SaaS design mockup
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --blue:#1a6af4; --blue-light:#e8f0fe; --blue-mid:#4285f4; --blue-dark:#1558d6;
  --teal:#00b8a0; --teal-light:#e0f7f5; --teal-dark:#007a6b;
  --navy:#0d1b3e; --navy-mid:#1e2f5c;
  --bg:#f4f6fb; --card:#ffffff;
  --text:#0d1b3e; --text-muted:#6b7a99; --text-light:#a0aec0;
  --border:#e4e9f5; --border-light:#f0f3fa;
  --green:#00c48c; --green-light:#e3faf3;
  --orange:#ff7043; --orange-light:#fff0ec;
  --purple:#7c3aed; --purple-light:#f3eeff;
  --yellow:#f59e0b; --yellow-light:#fffbeb;
  --red:#ef4444; --red-light:#fef2f2;
  --shadow:0 2px 12px rgba(13,27,62,.08);
  --shadow-md:0 4px 24px rgba(13,27,62,.12);
  --shadow-lg:0 8px 40px rgba(13,27,62,.16);
  --radius:12px; --radius-lg:18px; --radius-xl:24px;
  --sidebar-width:240px;
  --topbar-height:64px;
  --font:'Plus Jakarta Sans',sans-serif;
  --font-body:'DM Sans',sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Layout ───────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.main-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }
.page-content { padding: 28px; max-width: 1400px; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--navy);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 200; overflow-y: auto;
  transition: transform 0.3s;
}
.sidebar::-webkit-scrollbar { width: 0; }
.sb-logo {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sb-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg,var(--blue),var(--teal));
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; color: #fff; flex-shrink: 0;
}
.sb-teal { color: var(--teal); }
.sb-section {
  padding: 14px 20px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
}
.sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 10px; margin: 2px 8px;
  color: rgba(255,255,255,.6); font-size: 13.5px; font-weight: 500;
  transition: all .2s;
}
.sb-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.sb-item.active { background: rgba(26,106,244,.3); color: #fff; }
.sb-item i { font-size: 16px; width: 20px; text-align: center; }
.sb-badge {
  margin-left: auto; background: var(--blue); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px;
}
.sb-bottom { margin-top: auto; padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.06); }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.sb-user:hover { background: rgba(255,255,255,.07); }
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,var(--blue),var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sb-user-name { font-size: 13px; font-weight: 600; color: #fff; }
.sb-user-role { font-size: 11px; color: rgba(255,255,255,.4); }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height); background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 100;
}
.topbar-search { flex: 1; max-width: 360px; position: relative; }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 15px; }
.topbar-search input {
  width: 100%; padding: 9px 14px 9px 40px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 13.5px; color: var(--text); outline: none;
  background: #fafbfe; transition: border-color .2s;
}
.topbar-search input:focus { border-color: var(--blue); background: #fff; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px; position: relative; transition: all .2s;
}
.tb-icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; border: 2px solid #fff;
}
.tb-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg,var(--blue),var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
}
.btn-upgrade {
  background: linear-gradient(135deg,var(--blue),var(--teal));
  color: #fff; padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; border: none;
  display: flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.btn-upgrade:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,106,244,.35); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; border: none; font-family: var(--font); transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,106,244,.3); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.btn-icon-sm { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); transition: all .2s; }
.btn-icon-sm:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ── Cards ────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── KPI Cards ────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--card); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--border); position: relative; overflow: hidden; transition: all .2s; }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card::after { content:''; position: absolute; top:0; left:0; right:0; height:3px; }
.kpi-card.blue::after { background: linear-gradient(90deg,var(--blue),var(--blue-mid)); }
.kpi-card.teal::after { background: linear-gradient(90deg,var(--teal),#00d4bb); }
.kpi-card.purple::after { background: linear-gradient(90deg,var(--purple),#9b59b6); }
.kpi-card.green::after { background: linear-gradient(90deg,var(--green),#00e5a0); }
.kpi-card.orange::after { background: linear-gradient(90deg,var(--orange),#ff9800); }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.kpi-value { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.kpi-change { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.kpi-change.up { color: var(--green); } .kpi-change.down { color: var(--red); }
.kpi-icon { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.kpi-icon.blue { background: var(--blue-light); color: var(--blue); }
.kpi-icon.teal { background: var(--teal-light); color: var(--teal); }
.kpi-icon.purple { background: var(--purple-light); color: var(--purple); }
.kpi-icon.green { background: var(--green-light); color: var(--green); }
.kpi-icon.orange { background: var(--orange-light); color: var(--orange); }

/* ── Tags / Badges ────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag.blue { background: var(--blue-light); color: var(--blue); }
.tag.teal { background: var(--teal-light); color: var(--teal); }
.tag.green { background: var(--green-light); color: var(--green); }
.tag.purple { background: var(--purple-light); color: var(--purple); }
.tag.orange { background: var(--orange-light); color: var(--orange); }
.tag.red { background: var(--red-light); color: var(--red); }
.tag.gray { background: var(--bg); color: var(--text-muted); }
.badge-live { display: inline-flex; align-items: center; gap: 6px; background: var(--green-light); color: var(--green); padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-live::before { content:''; width:7px; height:7px; background: var(--green); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

/* ── Grid helpers ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-main-aside { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

/* ── AI Generator Card ────────────────────────────────────── */
.ai-gen-card {
  background: linear-gradient(135deg,var(--navy),#1a3068);
  border-radius: var(--radius-xl); padding: 28px; color: #fff;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.ai-gen-card::before { content:''; position:absolute; top:-60px; right:-60px; width:250px; height:250px; background:radial-gradient(circle,rgba(0,184,160,.2),transparent 70%); border-radius:50%; }
.ai-gen-card::after  { content:''; position:absolute; bottom:-40px; left:200px; width:200px; height:200px; background:radial-gradient(circle,rgba(26,106,244,.2),transparent 70%); border-radius:50%; }
.ai-gen-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; position: relative; z-index: 1; }
.ai-gen-sub { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 24px; position: relative; z-index: 1; }
.ai-input-chips { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-bottom: 16px; position: relative; z-index: 1; }
.ai-input-chip { background:rgba(255,255,255,.08); border:1.5px solid rgba(255,255,255,.12); border-radius:10px; padding:12px 16px; cursor:pointer; transition:all .2s; text-align:center; }
.ai-input-chip:hover,.ai-input-chip.active { background:rgba(26,106,244,.4); border-color:rgba(26,106,244,.6); }
.ai-input-chip i { font-size:20px; display:block; margin-bottom:6px; color:rgba(255,255,255,.7); }
.ai-input-chip span { font-size:12px; color:rgba(255,255,255,.7); font-weight:500; }
.ai-text-input { width:100%; background:rgba(255,255,255,.1); border:1.5px solid rgba(255,255,255,.2); border-radius:12px; padding:14px 18px; font-size:15px; color:#fff; font-family:var(--font); outline:none; margin-bottom:14px; position:relative; z-index:1; }
.ai-text-input::placeholder { color:rgba(255,255,255,.35); }
.ai-text-input:focus { border-color:rgba(0,184,160,.6); background:rgba(255,255,255,.15); }
.ai-btn { background:linear-gradient(135deg,var(--blue),var(--teal)); color:#fff; padding:14px 32px; border-radius:12px; font-size:15px; font-weight:700; border:none; cursor:pointer; font-family:var(--font); display:inline-flex; align-items:center; gap:10px; position:relative; z-index:1; transition:all .2s; }
.ai-btn:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(0,184,160,.4); }
.ai-btn:disabled { opacity:.6; transform:none; }

/* ── Platform Preview Cards ───────────────────────────────── */
.platforms-preview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.plat-preview-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; position: relative; overflow: hidden; transition: all .2s; }
.plat-preview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plat-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plat-icon-wrap { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.plat-name { font-size: 12px; font-weight: 700; color: var(--navy); }
.plat-status-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.plat-status-dot.ready { background: var(--green); }
.plat-status-dot.pending { background: var(--yellow); }
.plat-caption { font-size: 11.5px; color: var(--text); line-height: 1.55; margin-bottom: 8px; font-family: var(--font-body); min-height: 60px; padding: 8px; border-radius: 6px; border: 1px solid transparent; transition: border-color .2s; }
.plat-caption:focus { outline: none; border-color: var(--blue); background: #fafbfe; }
.plat-hashtags { font-size: 11px; color: var(--blue); margin-bottom: 8px; font-family: var(--font-body); }
.plat-footer { display: flex; gap: 8px; align-items: center; }
.plat-metric { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.plat-metric i { font-size: 10px; }
.campaign-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 16px; }
.campaign-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.campaign-idea { font-size: 14px; color: var(--text-muted); font-family: var(--font-body); }
.campaign-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── AI Chat Panel ────────────────────────────────────────── */
.ai-panel { background:linear-gradient(160deg,var(--navy),#1a3068); border-radius:var(--radius-xl); padding:20px; color:#fff; display:flex; flex-direction:column; height:100%; }
.ai-panel-header { display:flex; align-items:center; gap:10px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.1); }
.ai-avatar { width:38px; height:38px; border-radius:12px; background:linear-gradient(135deg,var(--blue),var(--teal)); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.ai-online-status { font-size:11px; color:rgba(255,255,255,.5); display:flex; align-items:center; gap:4px; }
.ai-online-status::before { content:''; width:6px; height:6px; background:var(--green); border-radius:50%; }
.ai-chat-messages { flex:1; display:flex; flex-direction:column; gap:10px; overflow-y:auto; margin-bottom:14px; padding-right:4px; }
.ai-chat-messages::-webkit-scrollbar { width:4px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background:rgba(255,255,255,.2); border-radius:2px; }
.ai-bubble { padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.55; max-width:90%; font-family:var(--font-body); }
.ai-bubble.ai { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.9); border-bottom-left-radius:3px; align-self:flex-start; }
.ai-bubble.user { background:rgba(26,106,244,.4); border:1px solid rgba(26,106,244,.3); color:#fff; border-bottom-right-radius:3px; align-self:flex-end; }
.ai-insight { background:rgba(0,184,160,.15); border:1px solid rgba(0,184,160,.25); border-radius:10px; padding:12px; font-size:12px; color:rgba(255,255,255,.8); margin-bottom:12px; }
.ai-insight-title { font-weight:700; font-size:12px; color:var(--teal); margin-bottom:6px; display:flex; align-items:center; gap:6px; }
.quick-prompts { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.quick-prompt { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:20px; padding:5px 12px; font-size:11px; color:rgba(255,255,255,.6); cursor:pointer; transition:all .2s; }
.quick-prompt:hover { background:rgba(255,255,255,.15); color:rgba(255,255,255,.9); }
.ai-input-row { display:flex; gap:8px; }
.ai-chat-input { flex:1; background:rgba(255,255,255,.1); border:1.5px solid rgba(255,255,255,.15); border-radius:10px; padding:10px 14px; font-size:13px; color:#fff; font-family:var(--font); outline:none; }
.ai-chat-input::placeholder { color:rgba(255,255,255,.3); }
.ai-chat-input:focus { border-color:rgba(0,184,160,.5); }
.ai-send-btn { width:38px; height:38px; background:var(--blue); border-radius:10px; border:none; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; transition:all .2s; }
.ai-send-btn:hover { background:var(--blue-dark); }
.typing-dots { display:flex; gap:4px; align-items:center; padding:4px 0; }
.typing-dots span { width:6px; height:6px; background:rgba(255,255,255,.6); border-radius:50%; animation:typing 1.4s infinite; }
.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}
@keyframes typing { 0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1} }

/* ── Toast Notifications ──────────────────────────────────── */
#toast-container { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; gap:10px; }
.nexbridge-toast { display:flex; align-items:center; gap:12px; padding:14px 18px; border-radius:12px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-lg); font-size:14px; font-weight:500; color:var(--text); max-width:380px; opacity:0; transform:translateY(16px); transition:all .3s; }
.nexbridge-toast.show { opacity:1; transform:translateY(0); }
.nexbridge-toast.toast-success { border-left:4px solid var(--green); }
.nexbridge-toast.toast-error   { border-left:4px solid var(--red); }
.nexbridge-toast.toast-warning { border-left:4px solid var(--yellow); }
.nexbridge-toast.toast-info    { border-left:4px solid var(--blue); }
.toast-icon { font-size:18px; flex-shrink:0; }

/* ── Spinner ──────────────────────────────────────────────── */
.spinner { display:inline-block; width:16px; height:16px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:8px; }
.form-control { width:100%; padding:12px 16px; border:1.5px solid var(--border); border-radius:10px; font-size:14px; font-family:var(--font); color:var(--text); outline:none; background:#fafbfe; transition:border-color .2s; }
.form-control:focus { border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(26,106,244,.08); }
.form-control::placeholder { color:var(--text-light); }
select.form-control { cursor:pointer; }

/* ── Page header ──────────────────────────────────────────── */
.page-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:24px; }
.page-title { font-size:22px; font-weight:800; color:var(--navy); }
.page-subtitle { font-size:14px; color:var(--text-muted); margin-top:4px; font-family:var(--font-body); }
.page-actions { display:flex; gap:10px; align-items:center; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-layout { min-height:100vh; display:grid; grid-template-columns:1fr 1fr; }
.auth-left { background:linear-gradient(160deg,var(--navy) 0%,#1a3068 50%,#0a4a7c 100%); padding:60px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; }
.auth-left::before { content:''; position:absolute; top:-100px; right:-100px; width:400px; height:400px; background:radial-gradient(circle,rgba(0,184,160,.15),transparent 70%); border-radius:50%; }
.auth-right { background:#fff; padding:60px 80px; display:flex; flex-direction:column; justify-content:center; }
.auth-form-wrap { max-width:400px; width:100%; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding:12px 16px; border-radius:10px; font-size:14px; font-weight:500; margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.alert-success { background:var(--green-light); color:var(--green); border:1px solid rgba(0,196,140,.2); }
.alert-error   { background:var(--red-light);   color:var(--red);   border:1px solid rgba(239,68,68,.2); }
.alert-warning { background:var(--yellow-light); color:#92400e;     border:1px solid rgba(245,158,11,.2); }
.alert-info    { background:var(--blue-light);   color:var(--blue); border:1px solid rgba(26,106,244,.2); }

/* ── Empty states ─────────────────────────────────────────── */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }
.empty-state i { font-size:48px; margin-bottom:16px; opacity:.3; }
.empty-state h3 { font-size:18px; font-weight:600; margin-bottom:8px; color:var(--navy); }
.empty-state p { font-size:14px; max-width:320px; margin:0 auto 20px; line-height:1.6; }

/* ── PWA Install Banner ───────────────────────────────────── */
.pwa-install-banner { background:linear-gradient(135deg,var(--navy),#1a3068); color:#fff; padding:12px 24px; display:flex; align-items:center; gap:16px; font-size:14px; }
.pwa-install-banner.hidden { display:none; }
.pwa-install-banner button { background:var(--teal); color:#fff; border:none; padding:8px 20px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; font-family:var(--font); }

/* ── Offline page ─────────────────────────────────────────── */
.offline-page { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bg); text-align:center; padding:24px; }
.offline-icon { font-size:80px; margin-bottom:24px; }
.offline-page h1 { font-size:32px; font-weight:800; color:var(--navy); margin-bottom:12px; }
.offline-page p  { font-size:16px; color:var(--text-muted); max-width:400px; margin:0 auto 28px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:1200px) {
  .kpi-grid { grid-template-columns: repeat(3,1fr); }
  .platforms-preview-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:900px) {
  :root { --sidebar-width:0px; }
  .sidebar { transform: translateX(-240px); width:240px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left:0; }
  .grid-main-aside { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .platforms-preview-grid { grid-template-columns: repeat(2,1fr); }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display:none; }
  .ai-input-chips { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:600px) {
  .page-content { padding:16px; }
  .topbar { padding:0 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .platforms-preview-grid { grid-template-columns: 1fr; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .ai-input-chips { grid-template-columns: repeat(2,1fr); }
}
