:root {
  --bg: #060a12;
  --bg-2: #0a1220;
  --surface: #0d1626;
  --card: #101b2e;
  --line: #1a2c48;
  --line-2: #243a5c;
  --text: #e8eefc;
  --muted: #7d8eab;
  --faint: #5b6d8a;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --cyan: #22d3ee;
  --glow: #3b82f666;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --font: 'Outfit', Arial, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
a { color: inherit; text-decoration: none; }
a.auth-link { color: #22d3ee; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, #3b82f618, transparent 60%),
    radial-gradient(700px 380px at 110% 8%, #22d3ee10, transparent 55%),
    linear-gradient(rgba(59,130,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
button, textarea, input, select { font: inherit; color: inherit; }
button { cursor: pointer; appearance: none; -webkit-appearance: none; }
.app-shell { display: flex; min-height: 100vh; background: transparent; position: relative; z-index: 1; }
.sidebar {
  width: 252px; flex: 0 0 252px;
  background: linear-gradient(180deg, #0c1526 0%, #0a1220 100%);
  border-right: 1px solid var(--line);
  padding: 25px 15px 16px;
  display: flex; flex-direction: column;
  position: relative;
}
.sidebar::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, #22d3ee55, transparent 40%, transparent 70%, #3b82f640);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 13px; font-size: 21px; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.brand-mark {
  width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: white;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  box-shadow: 0 0 18px #3b82f666, 0 5px 12px #0ea5e633;
}
.brand-dot, .welcome-row h1 span { color: var(--cyan); }
.workspace { display: flex; align-items: center; gap: 10px; margin: 34px 5px 24px; padding: 10px 9px; border: 1px solid var(--line); border-radius: 12px; background: #0e1a2e; }
.workspace-avatar, .user-avatar, .top-avatar { display: grid; place-items: center; background: #163056; color: #7dd3fc; font-size: 11px; font-weight: 800; }
.workspace-avatar { width: 29px; height: 29px; border-radius: 9px; }
.workspace strong, .workspace span, .sidebar-user strong, .sidebar-user span { display: block; }
.workspace strong { font-size: 12px; color: var(--text); }
.workspace span { font-size: 10px; color: var(--muted); margin-top: 2px; }
.workspace .chevron { margin-left: auto; font-size: 18px; color: var(--faint); }
.nav-label { color: #4d6280; font-size: 9px; letter-spacing: .12em; font-weight: 700; padding: 0 13px; margin: 0 0 8px; font-family: var(--mono); }
.space-top { margin-top: 28px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: #8aa0c0; font-size: 12px; font-weight: 600; text-align: left; padding: 11px 13px; border-radius: 9px; margin-bottom: 3px; }
.nav-item svg { color: #6b82a4; }
.nav-item.active { background: linear-gradient(90deg, #163563, #122844); color: #7dd3fc; box-shadow: inset 2px 0 0 #22d3ee; }
.nav-item.active svg { color: #22d3ee; }
.nav-item:hover:not(.active) { background: #122033; color: #c5d4ea; }
.nav-item b { margin-left: auto; font-size: 10px; border-radius: 8px; padding: 3px 7px; color: #7dd3fc; background: #163056; font-family: var(--mono); }
.upgrade-card { margin: auto 5px 20px; padding: 15px; border-radius: 13px; background: linear-gradient(180deg, #122844, #0e1c33); border: 1px solid #1d3b66; }
.upgrade-icon { display: grid; place-items: center; width: 27px; height: 27px; color: #7dd3fc; background: #163056; border-radius: 8px; margin-bottom: 10px; }
.upgrade-card strong { font-size: 11px; color: #c9def8; }
.upgrade-card p { font-size: 10px; color: #7d8eab; line-height: 1.45; margin: 5px 0 10px; }
.upgrade-card button, .upgrade-card .upgrade-link { background: none; border: 0; color: #22d3ee; font-size: 10px; display: flex; align-items: center; gap: 5px; padding: 0; font-weight: 700; }
.sidebar-user { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 16px 8px 0; }
.user-avatar, .top-avatar { width: 30px; height: 30px; border-radius: 50%; }
.sidebar-user strong { color: #d5e4f7; font-size: 11px; }
.sidebar-user span { color: #6e82a0; font-size: 9px; margin-top: 2px; }
.sidebar-user .more { margin-left: auto; color: #6e82a0; letter-spacing: 1px; }
.content { flex: 1; min-width: 0; }
.topbar { height: 72px; background: rgba(10,18,32,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0 42px; display: flex; align-items: center; justify-content: space-between; }
.breadcrumbs { font-size: 11px; color: var(--faint); font-family: var(--mono); }
.breadcrumbs span { margin: 0 9px; color: #334863; }
.breadcrumbs strong { color: #b9cce6; }
.top-actions { display: flex; gap: 18px; align-items: center; }
.icon-button { position: relative; border: 0; background: none; color: #8aa0c0; }
.icon-button i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; right: 0; top: 1px; box-shadow: 0 0 8px #22d3ee; }
.top-avatar { background: #123348; color: #34d399; }
.mobile-brand { display: none; }
.page-content { max-width: 1130px; margin: 0 auto; padding: 39px 42px 70px; }
.welcome-row, .section-heading, .card-top, .prompt-footer, .recent-heading { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { margin: 0 0 9px; color: #22d3ee; letter-spacing: .14em; font-size: 9px; font-weight: 700; font-family: var(--mono); }
.welcome-row h1 { margin: 0; font-size: 27px; letter-spacing: -.9px; color: var(--text); }
.welcome-row h1 span { font-size: 20px; }
.welcome-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.welcome-actions .generate-button { font-size: 12px; padding: 8px 12px; gap: 6px; }
.subheading { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.primary-button, .generate-button {
  border: 0; color: white;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 9px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 0 0 1px #60a5fa55, 0 8px 22px #2563eb44;
}
.primary-button { padding: 12px 15px; }
.primary-button:hover, .generate-button:hover { filter: brightness(1.08); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 37px; }
.metric-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 16px 17px; }
.metric-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; }
.metric-icon.purple { color: #7dd3fc; background: #163056; }
.metric-icon.orange { color: #22d3ee; background: #123348; }
.metric-icon.green { color: #34d399; background: #12362c; }
.metric-card div span { display: block; color: var(--muted); font-size: 10px; }
.metric-card div strong { display: block; margin-top: 4px; font-size: 21px; color: var(--text); letter-spacing: -.5px; }
.metric-card em { margin-left: auto; font-size: 10px; color: #34d399; font-style: normal; font-weight: 700; font-family: var(--mono); }
.metric-card em small { display: block; color: var(--faint); font-weight: 400; margin-top: 3px; }
.metric-card em.neutral { color: var(--muted); font-weight: 400; }
.section-heading { margin-bottom: 15px; }
.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.35px; color: var(--text); }
.section-heading p { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.step-pill { color: #8aa0c0; background: #122033; border: 1px solid var(--line); border-radius: 20px; padding: 7px 10px; font-size: 10px; font-family: var(--mono); }
.step-pill b { color: #22d3ee; margin-right: 6px; }
.generator-grid { display: grid; grid-template-columns: 1fr 285px; gap: 16px; margin-bottom: 37px; }
.prompt-card, .tip-card, .ads-table { border: 1px solid var(--line); background: var(--card); border-radius: 13px; }
.prompt-card { padding: 18px 19px 14px; }
.card-top { justify-content: flex-start; gap: 10px; margin-bottom: 15px; }
.ai-badge { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #7dd3fc; background: #163056; box-shadow: 0 0 12px #3b82f633; }
.card-top strong { font-size: 12px; color: #d7e6f8; }
.card-top p { margin: 4px 0 0; font-size: 10px; color: var(--muted); }
.prompt-card textarea { width: 100%; min-height: 140px; border: 1px solid var(--line-2); resize: none; border-radius: 8px; color: #c9d8ee; padding: 13px; outline: none; font-size: 11px; line-height: 1.55; background: #0b1422; }
.prompt-card textarea:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px #3b82f633; }
.prompt-footer { margin-top: 12px; }
.prompt-footer > span { color: var(--faint); font-size: 9px; font-family: var(--mono); }
.prompt-actions { display: flex; align-items: center; gap: 8px; }
.improve-hint { margin: 8px 0 0; color: #7dd3fc; font-size: 10px; }
.ia-check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: #9bb0cc; font-size: 11px; cursor: pointer; }
.ia-check input { width: 15px; height: 15px; accent-color: #22d3ee; }
.ad-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.ad-gallery-wide { margin-top: 22px; max-width: 720px; }
.ad-gallery figure { margin: 0; }
.ad-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ad-gallery figcaption { margin-top: 6px; color: #6e82a0; font-size: 9px; font-family: var(--mono); }
.studio-card { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.prompt-card.studio-card { padding: 19px; }
.studio-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.studio-head strong { display: block; font-size: 13px; color: #d7e6f8; }
.studio-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.studio-head .outline-button { margin-left: 0; }
.studio-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.studio-tools .generate-button { font-size: 11px; padding: 8px 11px; white-space: nowrap; }
.ad-gallery-edit { margin: 0; max-width: none; }
.ad-gallery-edit figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.img-pick { display: block; position: relative; cursor: pointer; }
.img-pick input { position: absolute; top: 8px; left: 8px; width: 16px; height: 16px; accent-color: #22d3ee; z-index: 1; }
.img-missing { display: grid; place-items: center; aspect-ratio: 1; border: 1px dashed var(--line-2); border-radius: 10px; color: #6e82a0; font-size: 10px; background: #0b1422; }
.img-loading { display: grid; place-items: center; gap: 8px; aspect-ratio: 1; border: 1px dashed #1d4ed8; border-radius: 10px; color: #7dd3fc; font-size: 10px; background: #0b1422; text-align: center; padding: 10px; }
.img-loading i { width: 22px; height: 22px; border: 2px solid #1d3b66; border-top-color: #22d3ee; border-radius: 50%; animation: img-spin .8s linear infinite; }
.ad-gallery-edit figure.is-busy .ghost-button { opacity: .45; pointer-events: none; }
@keyframes img-spin { to { transform: rotate(360deg); } }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.field-head label { margin: 0; }
.field-tools { display: flex; gap: 6px; }
.ghost-button { border: 1px solid var(--line-2); border-radius: 7px; padding: 5px 8px; background: #0b1422; color: #7dd3fc; font-size: 9px; font-weight: 700; }
.ghost-button:hover { border-color: #3b82f6; }
.gpt-prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gpt-prompt-card { margin: 0; }
.gpt-prompt-card textarea { min-height: 220px; font-size: 11px; line-height: 1.45; resize: vertical; }
@media (max-width: 900px) { .gpt-prompt-grid { grid-template-columns: 1fr; } }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.result-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 4px 8px; color: #7dd3fc; background: #0b1422; font-size: 9px; }
@media (max-width: 650px) { .ad-gallery { grid-template-columns: 1fr 1fr; } }
.generate-button { padding: 10px 13px; }
.tip-card { padding: 18px; background: linear-gradient(180deg, #122033, #0e1a2c); border-color: #1d3b66; }
.tip-title { font-size: 11px; font-weight: 700; color: #7dd3fc; }
.tip-title span { color: #22d3ee; margin-right: 6px; }
.tip-card > p { color: #8aa0c0; font-size: 10px; line-height: 1.55; margin: 11px 0 15px; }
.tip-example { border-radius: 8px; background: #0b1422; border: 1px solid var(--line); padding: 10px; }
.tip-example span { font-size: 9px; color: #22d3ee; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.tip-example p { color: #8aa0c0; font-size: 10px; line-height: 1.4; margin: 5px 0 0; font-style: italic; }
.recent-heading { margin-bottom: 15px; }
.text-button { display: flex; align-items: center; gap: 7px; color: #22d3ee; border: 0; background: transparent; font-size: 10px; font-weight: 700; }
.ads-table { overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: 2.4fr 1.15fr 1.05fr .8fr 20px; gap: 12px; align-items: center; padding: 0 18px; }
.table-head { height: 37px; background: #0c1628; border-bottom: 1px solid var(--line); color: #5b6d8a; font-size: 9px; font-weight: 700; letter-spacing: .08em; font-family: var(--mono); }
.table-row { min-height: 65px; border-bottom: 1px solid var(--line); font-size: 10px; }
.table-row:last-child { border-bottom: 0; }
.table-row:hover { background: #122033; }
.ad-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-name strong { font-size: 11px; font-weight: 600; color: #d7e6f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-thumb { width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; font-size: 20px; flex: 0 0 33px; overflow: hidden; }
.product-thumb.shoe { background: #1c2d18; color: #86efac; }
.product-thumb.chair { background: #163056; color: #7dd3fc; }
.product-thumb.headphone { background: #1a2844; color: #22d3ee; }
.marketplace { color: #9bb0cc; }
.date { color: #6e82a0; font-family: var(--mono); }
.status { justify-self: start; padding: 5px 8px; border-radius: 12px; font-size: 9px; font-weight: 700; }
.status.yellow { color: #fbbf24; background: #2a2410; }
.status.blue { color: #7dd3fc; background: #163056; }
.status.pink { color: #22d3ee; background: #123348; }
.row-more { border: 0; background: transparent; color: #6e82a0; letter-spacing: 1px; }
@media (max-width: 850px) { .sidebar { width: 210px; flex-basis: 210px; }.topbar { padding: 0 24px; }.page-content { padding: 30px 24px; }.generator-grid { grid-template-columns: 1fr; }.tip-card { display: none; }.quota-strip { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .sidebar { display: none; }.topbar { height: 62px; padding: 0 18px; }.mobile-brand { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.7px; }.breadcrumbs { display: none; }.page-content { padding: 27px 17px 45px; }.welcome-row { align-items: flex-start; gap: 15px; flex-direction: column; }.primary-button { align-self: stretch; justify-content: center; }.metrics { grid-template-columns: 1fr; margin: 25px 0 30px; gap: 8px; }.metric-card { padding: 13px; }.step-pill { display: none; }.section-heading { align-items: flex-end; }.generator-grid { margin-bottom: 30px; }.table-head { display: none; }.table-row { grid-template-columns: 1fr auto; padding: 10px 13px; gap: 6px; }.marketplace, .date { grid-column: 1; margin-left: 43px; }.status { grid-column: 2; grid-row: 1 / span 2; }.row-more { grid-column: 2; grid-row: 3; }.ad-name strong { max-width: 180px; }.ads-table { overflow: visible; } }

.admin-page { padding-bottom: 25px; }
.admin-live { align-items: center; display: flex; gap: 7px; color: #34d399; background: #12362c; border: 1px solid #1d5c45; border-radius: 18px; font-size: 10px; font-weight: 700; padding: 8px 11px; font-family: var(--mono); }
.admin-live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0 26px; }
.admin-stat { display: flex; gap: 12px; align-items: center; padding: 17px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.admin-stat > div span, .admin-stat > div strong, .admin-stat > div em { display: block; }
.admin-stat > div span { font-size: 10px; color: var(--muted); }
.admin-stat > div strong { margin-top: 4px; color: var(--text); font-size: 21px; }
.admin-stat em { margin-top: 3px; color: #34d399; font-size: 9px; font-style: normal; font-weight: 700; font-family: var(--mono); }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; margin-bottom: 15px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 19px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 17px; }
.admin-card h2 { margin: 0; color: var(--text); font-size: 15px; }
.admin-card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.status { font-size: 10px; font-weight: 700; }
.green-status { padding: 5px 8px; border-radius: 7px; color: #34d399; background: #12362c; }
.provider-row, .user-row, .activity-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 13px 0; }
.provider-logo { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #fff; background: #163056; font-size: 16px; font-weight: 800; }
.provider-logo.gemini { background: linear-gradient(135deg, #4285f4, #34a853); }
.provider-logo.anthropic { background: #164e63; }
.provider-logo.cloudflare { background: #f6821f; }
.provider-logo.pollinations { background: linear-gradient(135deg, #f472b6, #a855f7); }
.ia-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); max-width: 760px; }
.ia-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #0b1422; border-bottom: 1px solid var(--line); }
.ia-tab { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #8aa0c0; text-align: left; padding: 14px 12px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ia-tab .provider-logo { width: 28px; height: 28px; font-size: 13px; flex: 0 0 28px; }
.ia-tab strong, .ia-tab em { display: block; }
.ia-tab strong { font-size: 12px; color: #c9d8ee; }
.ia-tab em { margin-top: 2px; font-size: 9px; font-style: normal; color: #6e82a0; font-family: var(--mono); }
.ia-tab.active { background: #101b2e; box-shadow: inset 0 -2px 0 #22d3ee; }
.ia-tab.active strong { color: #fff; }
.ia-body { padding: 22px 20px 18px; }
.ia-pane { display: none !important; }
.ia-pane.active { display: block !important; }
.ia-pane .subheading { margin: 0 0 16px; }
.ia-pane .subheading b { color: #7dd3fc; font-weight: 700; }
.ia-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.ia-actions .outline-button { margin-left: 0; }
.ia-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: -6px 0 16px; }
.quota-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 18px; }
.quota-strip .ia-quota { margin: 0; }
.ia-quota { margin: 0 0 16px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: #0b1422; }
.ia-quota-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ia-quota-top strong { font-size: 11px; color: #d7e6f8; }
.ia-quota-top span { font-size: 9px; color: #7dd3fc; font-family: var(--mono); }
.ia-quota-bar { height: 6px; margin: 10px 0 8px; border-radius: 99px; background: #163056; overflow: hidden; }
.ia-quota-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #3b82f6); }
.ia-quota.is-google .ia-quota-bar i { background: linear-gradient(90deg, #4285f4, #34a853); }
.ia-quota.is-cloudflare .ia-quota-bar i { background: linear-gradient(90deg, #f6821f, #fb923c); }
.ia-quota p { margin: 0; color: #8aa0c0; font-size: 10px; }
.ia-quota em { display: block; margin-top: 8px; color: #fbbf24; font-size: 9px; font-style: normal; }
.ia-quota.is-warn .ia-quota-bar i { background: #fbbf24; }
.quota-models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quota-models span { font-size: 9px; font-family: var(--mono); color: #9ec0e8; background: #163056; padding: 3px 6px; border-radius: 6px; }
.ia-test-photo { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.ia-test-photo img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.ia-test-photo span { color: #6e82a0; font-size: 9px; font-family: var(--mono); }
.product-thumb.has-photo { overflow: hidden; padding: 0; background: #0b1422; }
.product-thumb.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-photo, .ad-hero { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin: 0 0 16px; display: block; }
.ad-hero { margin: 22px 0 0; max-width: 420px; }
@media (max-width: 650px) {
  .ia-tabs { grid-template-columns: 1fr; }
  .ia-tab.active { box-shadow: inset 2px 0 0 #22d3ee; }
}
.provider-row strong, .provider-row span, .user-row strong, .user-row span, .activity-item strong, .activity-item span { display: block; }
.provider-row strong, .user-row strong, .activity-item strong { color: #d7e6f8; font-size: 11px; }
.provider-row span, .user-row span, .activity-item span { margin-top: 3px; color: #6e82a0; font-size: 9px; }
.outline-button { margin-left: auto; border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 9px; background: #0b1422; color: #7dd3fc; font-size: 9px; font-weight: 700; }
.outline-button:hover { border-color: #3b82f6; }
.muted-row { opacity: .55; }
.activity-card .text-button { margin-top: 2px; }
.activity-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.purple-dot { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.orange-dot { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.green-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
.activity-item { gap: 10px; }
.users-card { padding-bottom: 8px; }
.users-list .user-avatar { flex: 0 0 30px; }
.blue-avatar { background: #163056; color: #7dd3fc; }
.green-avatar { background: #12362c; color: #34d399; }
.user-row > div:nth-child(2) { min-width: 150px; }
.plan { margin-left: auto; border-radius: 6px; padding: 4px 7px; font-size: 9px !important; }
.pro-plan { color: #7dd3fc !important; background: #163056; }
.free-plan { color: #8aa0c0 !important; background: #122033; }
.users-card .date { margin-left: auto; }
@media (max-width: 850px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .admin-metrics { grid-template-columns: 1fr; margin-top: 25px; }.admin-live { align-self: flex-start; }.admin-card-head { gap: 12px; }.user-row { flex-wrap: wrap; }.user-row > div:nth-child(2) { min-width: 120px; }.users-card .date { width: 100%; margin-left: 40px; }.admin-page .welcome-row h1 { font-size: 23px; } }

a.brand, a.nav-item, a.workspace, a.primary-button, a.text-button, a.outline-button, a.table-row, a.upgrade-link, a.auth-link { text-decoration: none; }
a.primary-button, a.generate-button { color: #fff; }
a.workspace { color: inherit; }
a.table-row { color: inherit; }
a.outline-button { display: inline-flex; align-items: center; }
form.inline { display: inline; }
.menu-toggle { display: none; border: 0; background: none; color: #8aa0c0; margin-right: 10px; }
.sidebar-backdrop { display: none; }
.flash { margin-bottom: 18px; border-radius: 10px; padding: 11px 14px; font-size: 11px; font-weight: 600; }
.flash-success { background: #12362c; color: #34d399; border: 1px solid #1d5c45; }
.flash-error { background: #2a1518; color: #f87171; border: 1px solid #7f1d1d; }
.drop { position: relative; }
.drop-menu { display: none; position: absolute; right: 0; top: 28px; background: #101b2e; border: 1px solid var(--line-2); border-radius: 10px; min-width: 188px; box-shadow: 0 16px 40px #00000066; z-index: 20; padding: 6px; }
.drop.open .drop-menu { display: block; }
.drop-menu a, .drop-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; font-size: 11px; color: #c9d8ee; font-weight: 600; text-decoration: none; cursor: pointer; }
.drop-menu a:hover, .drop-menu button:hover { background: #163056; color: #7dd3fc; }
.drop-menu .muted { color: #6e82a0; font-size: 10px; font-weight: 600; padding: 8px 10px 4px; font-family: var(--mono); }
.notify-item { display: block; padding: 8px 10px; border-radius: 7px; }
.notify-item strong, .notify-item span { display: block; }
.notify-item strong { font-size: 11px; color: #d7e6f8; }
.notify-item span { margin-top: 3px; font-size: 9px; color: #6e82a0; font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 10px; font-weight: 700; color: #8aa0c0; font-family: var(--mono); letter-spacing: .04em; }
.field input, .field select, .field textarea, .form-input { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; color: #c9d8ee; padding: 11px 13px; outline: none; font-size: 11px; background: #0b1422; }
.field input:focus, .field select:focus, .field textarea:focus, .form-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px #3b82f633; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ia-form { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.result-card { margin: -20px 0 37px; }
.result-card .card-top { margin-bottom: 12px; }
.result-title { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.result-desc { margin: 0 0 12px; color: #9bb0cc; font-size: 11px; line-height: 1.65; }
.result-bullets { margin: 0 0 14px; padding: 0 0 0 18px; color: #9bb0cc; font-size: 11px; line-height: 1.7; }
.help-list .activity-item { align-items: flex-start; }
.help-list .activity-item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.user-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; background: transparent; padding: 28px 18px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 32px 28px 26px; box-shadow: 0 0 0 1px #3b82f622, 0 24px 60px #00000066; }
.auth-card .brand { padding: 0; margin-bottom: 22px; justify-content: center; }
.auth-card h1 { margin: 0; text-align: center; font-size: 22px; letter-spacing: -.6px; color: var(--text); }
.auth-card .subheading { text-align: center; margin: 8px 0 22px; }
.auth-card .primary-button { width: 100%; justify-content: center; margin-top: 6px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted); }
.auth-foot a { color: #22d3ee; font-weight: 700; }
.empty-row { padding: 22px 18px; color: var(--muted); font-size: 11px; }
.danger-button { color: #f87171 !important; }

.admin-shell .page-content { max-width: 1280px; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.admin-tabs a { text-decoration: none; font-size: 10px; font-weight: 700; color: #8aa0c0; border: 1px solid var(--line); background: #0b1422; padding: 8px 12px; border-radius: 8px; font-family: var(--mono); letter-spacing: .04em; }
.admin-tabs a.active, .admin-tabs a:hover { color: #7dd3fc; border-color: #3b82f6; background: #163056; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { border: 1px solid var(--line-2); background: #0b1422; color: #c9d8ee; border-radius: 8px; padding: 10px 12px; font-size: 11px; outline: none; min-width: 160px; }
.filters input:focus, .filters select:focus { border-color: #3b82f6; }
.filters .primary-button, .filters .outline-button { margin-left: 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th { text-align: left; font-size: 9px; letter-spacing: .08em; color: #5b6d8a; font-family: var(--mono); padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); color: #c9d8ee; vertical-align: middle; }
.data-table tr:hover td { background: #122033; }
.data-table .muted { color: #6e82a0; }
.chart-row { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 8px 0 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #22d3ee, #3b82f6); box-shadow: 0 0 12px #3b82f655; min-height: 4px; }
.chart-col span { font-size: 8px; color: #6e82a0; font-family: var(--mono); }
.kpi-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 22px; }
.split-3 { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 15px; }
.badge-off { color: #fbbf24; background: #2a2410; padding: 5px 8px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { text-decoration: none; font-size: 10px; color: #8aa0c0; border: 1px solid var(--line); padding: 6px 10px; border-radius: 7px; font-family: var(--mono); }
.pager .active span, .pager a:hover { color: #7dd3fc; border-color: #3b82f6; }
.mini-actions { display: flex; gap: 6px; justify-content: flex-end; }
.admin-exit { color: #22d3ee !important; font-size: 10px; font-weight: 700; text-decoration: none; }
@media (max-width: 1100px) { .kpi-4, .split-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 650px) {
  .menu-toggle { display: grid; place-items: center; }
  .sidebar.open { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 30; height: 100vh; box-shadow: 12px 0 40px #00000088; }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; background: #060a12cc; z-index: 25; }
  .field-row, .kpi-4, .split-3 { grid-template-columns: 1fr; }
  .user-actions { width: 100%; margin-left: 40px; }
  .data-table { display: block; overflow-x: auto; }
}
