/* Liberia Connect — neon glass design system */
:root {
  --navy-950: #030820; --navy-900: #060d2b; --navy-800: #0a1642; --navy-700: #112066; --navy-600: #19308f;
  --blue: #1f6bff; --electric: #2f8bff; --cyan: #19d3ff; --purple: #8b3dff; --magenta: #d63cff;
  --green: #18c964; --gold: #ffc21a; --orange: #ff8a1f; --red: #ff3651; --pink: #ff3fa4; --teal: #12b5a8;
  --paper: #edf2fc; --card: #ffffff; --ink: #0d1640; --ink-2: #44507a; --line: #dbe3f4;
  --glass: rgba(16, 32, 102, .55); --glass-line: rgba(80, 150, 255, .45);
  --radius: 16px; --shadow: 0 10px 30px rgba(6, 13, 43, .14);
  --font-d: "Barlow Semi Condensed", "Inter", system-ui, sans-serif; --font: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--navy-950); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-d); margin: 0; letter-spacing: .2px; }
img { max-width: 100%; }
#bg-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; min-height: 100vh; }
.boot { height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; color: #9fc2ff; font-family: var(--font-d); font-size: 20px; }
.boot-ring { width: 64px; height: 64px; border-radius: 50%; border: 4px solid rgba(47, 139, 255, .2); border-top-color: var(--cyan); animation: spin 1s linear infinite; box-shadow: 0 0 30px var(--electric); }
@keyframes spin { to { transform: rotate(360deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons, pills, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 11px 20px; border-radius: 12px; font-weight: 700; font-family: var(--font-d); font-size: 17px; color: #fff; background: var(--blue); transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.sm { padding: 7px 13px; font-size: 15px; border-radius: 10px; }
.btn.xs { padding: 4px 10px; font-size: 13.5px; border-radius: 8px; }
.btn-glow { background: linear-gradient(135deg, #1f6bff, #19b6ff); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 6px 22px rgba(31, 107, 255, .55); }
.btn-red { background: linear-gradient(135deg, #ff2e4d, #e0102f); box-shadow: 0 6px 22px rgba(255, 54, 81, .45); }
.btn-green { background: linear-gradient(135deg, #18c964, #0d9c4a); box-shadow: 0 6px 22px rgba(24, 201, 100, .4); }
.btn-purple { background: linear-gradient(135deg, #8b3dff, #d63cff); box-shadow: 0 6px 22px rgba(139, 61, 255, .5); }
.btn-gold { background: linear-gradient(135deg, #ffc21a, #ff8a1f); color: #2a1600; box-shadow: 0 6px 22px rgba(255, 170, 26, .45); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1.5px solid rgba(160, 200, 255, .65); box-shadow: 0 0 18px rgba(47, 139, 255, .3) inset; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger-light { background: #fff0f2; color: #d0102c; border: 1px solid #ffc9d1; }
.btn-rainbow { background: linear-gradient(90deg, #19b6ff, #8b3dff, #ff3fa4); background-size: 200% 100%; animation: slide 5s linear infinite; box-shadow: 0 6px 24px rgba(214, 60, 255, .45); }
@keyframes slide { to { background-position: 200% 0; } }
.icon-btn { border: 0; background: transparent; color: inherit; cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; position: relative; font-size: 19px; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.badge { position: absolute; top: -2px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 10px var(--red); }
.badge:empty, .badge[data-n="0"] { display: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #fff; background: var(--blue); white-space: nowrap; text-transform: capitalize; }
.pill.green, .pill.approved, .pill.active, .pill.resolved, .pill.confirmed, .pill.published, .pill.verified, .pill.open, .pill.replied { background: var(--green); }
.pill.orange, .pill.in_review, .pill.review, .pill.pending, .pill.in_progress { background: var(--orange); }
.pill.red, .pill.rejected, .pill.suspended, .pill.closed, .pill.unverified, .pill.cancelled { background: var(--red); }
.pill.purple, .pill.submitted, .pill.premium { background: var(--purple); }
.pill.blue, .pill.new, .pill.requested { background: var(--electric); }
.pill.gray { background: #7a86ad; }
.field { position: relative; display: block; margin-bottom: 12px; }
.field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6c78a3; pointer-events: none; }
.field.area > i { top: 18px; transform: none; }
.input, .field input, .field select, .field textarea { width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
.field.plain input, .field.plain select, .field.plain textarea { padding-left: 14px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--electric); box-shadow: 0 0 0 4px rgba(47, 139, 255, .18); }
.field .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #44507a; }
.field label.lbl { display: block; font-weight: 600; font-size: 13px; margin: 0 0 5px 2px; color: var(--ink-2); }
.field label.lbl + input, .field label.lbl + select, .field label.lbl + textarea { padding-left: 14px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.muted { color: var(--ink-2); }
.err-text { color: var(--red); font-size: 13px; min-height: 18px; }

/* ---------- public header ---------- */
.topbar { position: relative; background: linear-gradient(180deg, #050b28, #0a1645); color: #fff; display: flex; align-items: center; gap: 22px; padding: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .flag-map { width: 64px; height: 44px; filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); animation: wave 4s ease-in-out infinite; transform-origin: left center; }
@keyframes wave { 50% { transform: perspective(200px) rotateY(-12deg) skewY(-1deg); } }
.brand .name { font-family: var(--font-d); font-weight: 800; font-size: 34px; line-height: .9; letter-spacing: .3px; }
.brand .name em { font-style: normal; color: #ff3651; text-shadow: 0 0 18px rgba(255, 54, 81, .55); }
.brand .tag { font-size: 12.5px; opacity: .9; font-weight: 500; margin-top: 3px; }
.search { flex: 1; max-width: 680px; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 4px 4px 4px 16px; box-shadow: 0 0 0 2px rgba(47, 139, 255, .6), 0 0 26px rgba(47, 139, 255, .45); }
.search i.fa-magnifying-glass:first-child { color: #44507a; }
.search input { flex: 1; border: 0; outline: none; padding: 10px 12px; min-width: 0; color: var(--ink); background: transparent; }
.search .icon-btn { color: #2c3870; }
.search .go { width: 48px; height: 40px; border-radius: 11px; border: 0; color: #fff; background: linear-gradient(135deg, #1f6bff, #19b6ff); cursor: pointer; font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.acct { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 30px; position: relative; border: 0; background: transparent; color: #fff; font-weight: 600; }
.acct:hover { background: rgba(255,255,255,.08); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-family: var(--font-d); font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 0 0 2px #fff, 0 0 14px rgba(47, 139, 255, .7); flex-shrink: 0; }
.avatar.lg { width: 130px; height: 130px; font-size: 52px; border-radius: 20px; box-shadow: 0 0 0 3px #fff, 0 0 30px rgba(47, 139, 255, .6); }
.avatar.md { width: 56px; height: 56px; font-size: 22px; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: #0d1a52; border: 1px solid var(--glass-line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 24px rgba(47,139,255,.25); z-index: 50; display: none; }
.menu.open { display: block; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #dfe9ff; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14.5px; }
.menu a:hover, .menu button:hover { background: rgba(47, 139, 255, .22); color: #fff; }
.menu .menu-head { padding: 8px 12px 10px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; color: #9fb4e6; font-size: 13px; }
.notif-menu { width: 340px; max-height: 420px; overflow: auto; }
.notif-menu .n { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #dfe9ff; display: block; }
.notif-menu .n.unread { background: rgba(47, 139, 255, .16); }
.notif-menu .n small { display: block; color: #8ea3d6; margin-top: 3px; }

.mainnav { background: linear-gradient(180deg, #0b1a55, #08133f); border-top: 1px solid rgba(80, 150, 255, .25); border-bottom: 1px solid rgba(80, 150, 255, .35); display: flex; gap: 4px; padding: 7px 20px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 40; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { color: #e3ecff; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, box-shadow .2s; font-family: var(--font-d); font-size: 17px; }
.mainnav a:hover { background: rgba(47, 139, 255, .2); }
.mainnav a.active { background: linear-gradient(135deg, #1f6bff, #2f8bff); box-shadow: 0 0 18px rgba(47, 139, 255, .8), 0 0 0 1px rgba(255,255,255,.25) inset; }
.burger { display: none; }

/* ---------- hero with 3D ---------- */
.hero { position: relative; min-height: 470px; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 70% 30%, #2a3fb8 0%, #11206a 35%, #060d2b 75%); }
.hero .sky { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 120, 60, .0) 0%, rgba(255, 110, 70, .22) 55%, rgba(120, 40, 160, .35) 75%, rgba(6, 13, 43, .9) 100%); }
.hero .skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background-repeat: repeat-x; background-position: bottom; background-size: auto 100%; opacity: .85; }
.hero canvas.three { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.1fr) 260px; align-items: center; gap: 20px; padding: 36px 70px 40px; min-height: 470px; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: .98; font-weight: 800; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero h1 .gold { color: var(--gold); text-shadow: 0 0 26px rgba(255, 194, 26, .55); }
.hero p.lead { font-size: 22px; font-family: var(--font-d); font-weight: 600; margin: 14px 0 26px; opacity: .95; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-spacer { min-height: 300px; pointer-events: none !important; }
.county-card { background: rgba(10, 22, 80, .72); border: 2px solid rgba(80, 160, 255, .8); border-radius: 18px; padding: 14px; backdrop-filter: blur(8px); box-shadow: 0 0 30px rgba(47, 139, 255, .55), 0 0 0 1px rgba(255,255,255,.1) inset; }
.county-card .pic { height: 92px; border-radius: 12px; background: linear-gradient(160deg, #ff9a5a, #8f3dd8 60%, #1a2a7a); position: relative; overflow: hidden; }
.county-card .pic .skyline { height: 70px; opacity: 1; }
.county-card h3 { font-size: 24px; margin: 10px 0 2px; }
.county-card .cap { font-size: 13.5px; opacity: .9; }
.county-card ul { list-style: none; padding: 0; margin: 10px 0 12px; }
.county-card li a { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,.08); }
.county-card li a:hover { color: var(--cyan); }
.hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(6,13,43,.4); color: #fff; cursor: pointer; font-size: 18px; }
.hero .arrow.l { left: 14px; } .hero .arrow.r { right: 14px; }
.dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; box-shadow: 0 0 10px #fff; }
.county-tip { position: absolute; z-index: 4; pointer-events: none; background: rgba(6, 13, 43, .85); color: #fff; border: 1px solid var(--cyan); border-radius: 10px; padding: 6px 10px; font-family: var(--font-d); font-weight: 700; font-size: 16px; box-shadow: 0 0 16px rgba(25, 211, 255, .6); transform: translate(-50%, -130%); white-space: nowrap; display: none; }

/* AI strip */
.ai-strip { position: relative; z-index: 5; margin: -26px 18px 0; display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 120px; border-radius: 20px; background: linear-gradient(90deg, #0b1d6b, #10208a 40%, #0b1d6b); border: 2px solid rgba(80, 160, 255, .9); box-shadow: 0 0 30px rgba(47, 139, 255, .6); color: #fff; }
.ai-strip .robot { position: absolute; left: 20px; bottom: 2px; width: 84px; height: 84px; }
.ai-strip h3 { font-size: 26px; white-space: nowrap; }
.ai-strip .wave { display: flex; gap: 3px; height: 14px; align-items: center; }
.ai-strip .wave i { width: 3px; background: var(--cyan); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.ai-strip form { flex: 1; display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 4px; min-width: 0; }
.ai-strip input { flex: 1; border: 0; outline: none; padding: 10px 14px; min-width: 0; color: var(--ink); }
.ai-strip .quick { display: flex; gap: 8px; }
.robot { position: relative; display: inline-block; width: 46px; height: 46px; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 35% 30%, #fff, #c9d6ff 60%, #8fa4e8); box-shadow: 0 0 22px rgba(25, 211, 255, .7); animation: bob 3s ease-in-out infinite; }
.robot::before { content: ""; position: absolute; left: 14%; right: 14%; top: 24%; height: 46%; border-radius: 40%; background: #0a1238; box-shadow: inset 0 0 10px rgba(25,211,255,.4); }
.robot .eye { position: absolute; top: 37%; width: 17%; height: 18%; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 4s infinite; }
.robot .eye:first-child { left: 27%; } .robot .eye:last-child { right: 27%; }
.robot.mini { width: 40px; height: 40px; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- light content area ---------- */
.page { background: var(--paper); min-height: 60vh; padding: 22px 18px 40px; position: relative; }
.page.flush { padding-top: 46px; }
.wrap { max-width: 1480px; margin: 0 auto; }
.cat-tiles { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.cat-tile { --c1: #1f6bff; --c2: #0d3fc7; aspect-ratio: 1 / .86; border-radius: 14px; color: #fff; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 8px 4px; font-family: var(--font-d); font-weight: 700; font-size: 15px; line-height: 1.05; background: linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: 0 8px 18px rgba(6,13,43,.18), inset 0 1px 0 rgba(255,255,255,.35); transform-style: preserve-3d; transition: transform .2s, box-shadow .2s; }
.cat-tile i { font-size: 28px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.cat-tile:hover { box-shadow: 0 16px 30px rgba(6,13,43,.3), 0 0 22px var(--c1); }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-side { grid-template-columns: 320px minmax(0, 1fr) 380px; }
.g-main-side { grid-template-columns: minmax(0, 1fr) 380px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid rgba(219, 227, 244, .9); position: relative; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { font-size: 23px; display: flex; align-items: center; gap: 10px; }
.card-head h2 i, .card-head h3 i { color: var(--blue); }
.card-head .more { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 14px; white-space: nowrap; }
.card-head .more:hover { text-decoration: underline; }
.tag-red { background: linear-gradient(135deg, #ff2e4d, #d70f2d); color: #fff; padding: 6px 14px; border-radius: 10px; font-family: var(--font-d); font-weight: 700; font-size: 20px; box-shadow: 0 0 16px rgba(255, 54, 81, .5); }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid #edf1fa; border-radius: 8px; transition: background .15s; }
.row:hover { background: #f4f7ff; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--ink-2); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .num { font-family: var(--font-d); font-weight: 800; font-size: 24px; color: var(--ink); width: 26px; text-align: center; }
.datebox { width: 52px; text-align: center; border-radius: 10px; background: #fff3f3; border: 1px solid #ffd6d6; padding: 4px 0; flex-shrink: 0; }
.datebox b { display: block; color: var(--red); font-size: 13px; font-family: var(--font-d); }
.datebox span { font-family: var(--font-d); font-weight: 800; font-size: 22px; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 20px; flex-shrink: 0; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 6px 14px rgba(31, 107, 255, .3); }
.ico.sm { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }
.feature-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.feature { position: relative; height: 128px; border-radius: 14px; overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 10px; font-family: var(--font-d); font-weight: 700; font-size: 18px; box-shadow: var(--shadow); }
.feature .bgicon { position: absolute; right: -8px; top: -6px; font-size: 92px; opacity: .25; transform: rotate(-12deg); transition: transform .4s; }
.feature:hover .bgicon { transform: rotate(0) scale(1.1); }
.feature span { position: relative; display: flex; width: 100%; justify-content: space-between; align-items: center; background: rgba(6, 13, 43, .45); padding: 6px 10px; border-radius: 10px; backdrop-filter: blur(4px); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 15px; border-radius: 999px; background: #eef2fb; border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--electric); }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 14px rgba(31, 107, 255, .5); }
.creator { text-align: center; }
.creator .avatar { margin: 0 auto 8px; width: 78px; height: 78px; font-size: 28px; position: relative; }
.creator .avatar::after { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; position: absolute; right: -2px; bottom: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; border: 2px solid #fff; }
.creator b { display: block; font-family: var(--font-d); font-size: 17px; }
.creator small { color: var(--ink-2); }
.live-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.4s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.empty { text-align: center; padding: 26px 10px; color: var(--ink-2); }
.empty i { font-size: 34px; color: #b8c4e6; display: block; margin-bottom: 8px; }

/* page banners */
.banner { position: relative; overflow: hidden; color: #fff; padding: 34px 60px 40px; min-height: 230px; background: radial-gradient(ellipse at 75% 20%, #3047c4, #11206a 45%, #060d2b 85%); }
.banner canvas.three { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner .skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background-repeat: repeat-x; background-size: auto 100%; opacity: .8; }
.banner-inner { position: relative; z-index: 2; max-width: 760px; }
.banner h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1; font-weight: 800; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.banner h1 .gold { color: var(--gold); }
.banner p { font-size: 18px; margin: 10px 0 16px; opacity: .95; max-width: 640px; }
.banner .ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.banner .ticks i { color: var(--green); margin-right: 6px; filter: drop-shadow(0 0 4px var(--green)); }
.banner-float { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 130px; color: rgba(255,255,255,.9); filter: drop-shadow(0 0 30px rgba(47, 139, 255, .9)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-58%) rotate(-4deg); } }

.listing { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s, box-shadow .2s; }
.listing:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(6, 13, 43, .2); }
.listing .art { height: 120px; display: grid; place-items: center; font-size: 54px; color: #fff; position: relative; overflow: hidden; }
.listing .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); transform: translateX(-100%); transition: transform .8s; }
.listing:hover .art::after { transform: translateX(100%); }
.listing .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing .price { color: var(--green); font-weight: 800; font-family: var(--font-d); font-size: 19px; }
.listing .foot { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.org-logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 24px; flex-shrink: 0; box-shadow: 0 6px 14px rgba(6,13,43,.2); }
.verified { color: var(--blue); }
.poll-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); margin-bottom: 8px; cursor: pointer; overflow: hidden; background: #fff; width: 100%; text-align: left; color: var(--ink); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(31,107,255,.18), rgba(139,61,255,.18)); transition: width 1s ease; }
.poll-opt > * { position: relative; }
.poll-opt.mine { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,107,255,.15); }
.poll-opt b { margin-left: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { text-align: center; padding: 14px 8px; border-radius: 14px; background: #f3f6ff; border: 1px solid var(--line); }
.step .n { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 22px; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 0 16px rgba(31,107,255,.6); }
.acct-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.acct-type { border: 0; cursor: pointer; border-radius: 14px; padding: 12px 6px; color: #fff; font-family: var(--font-d); font-weight: 700; font-size: 15px; line-height: 1.1; display: grid; gap: 6px; place-items: center; position: relative; transition: transform .2s, box-shadow .2s; }
.acct-type i { font-size: 26px; }
.acct-type.on { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 22px currentColor; }
.acct-type.on::after { content: "\f00c"; font: 900 12px "Font Awesome 6 Free"; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 0 10px var(--green); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; color: var(--ink); }
.tabs button.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #1f6bff, #19b6ff); box-shadow: 0 0 18px rgba(31,107,255,.5); }
.ok-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ok-list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ok-list li i { color: var(--green); font-size: 18px; }
.split { display: flex; align-items: center; gap: 12px; color: var(--ink-2); margin: 14px 0; font-size: 13px; }
.split::before, .split::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px solid #ffe2a1; color: #6b4b00; font-size: 14px; }
.notice.blue { background: #eef4ff; border-color: #c8dafe; color: #1a3a8a; }
.footer { background: linear-gradient(180deg, #08133f, #030820); color: #c9d6ff; padding: 30px 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; font-size: 14px; }
.footer h4 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; color: #c9d6ff; }
.footer a:hover { color: var(--cyan); }
.footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; font-size: 12.5px; color: #8ea3d6; }

/* ---------- dashboards (dark neon) ---------- */
.dash { display: grid; grid-template-columns: 262px minmax(0, 1fr); min-height: 100vh; color: #e8f0ff; background: radial-gradient(ellipse at 60% 0%, rgba(47, 80, 220, .35), transparent 60%), linear-gradient(180deg, #060d33, #040a26); }
.dash-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 8px 20px; position: relative; overflow: hidden; min-height: 78px; background: linear-gradient(90deg, #071242 0%, #0e1d6b 45%, #3a2a8a 75%, #8a3d7a 100%); border-bottom: 2px solid rgba(80, 160, 255, .6); box-shadow: 0 0 24px rgba(47, 139, 255, .45); }
.dash-head .skyline { position: absolute; right: 0; bottom: 0; width: 70%; height: 74px; background-repeat: repeat-x; background-size: auto 100%; opacity: .55; pointer-events: none; }
.dash-head .brand .name { font-size: 30px; }
.dash-head .title { display: flex; align-items: center; gap: 14px; position: relative; padding-left: 24px; border-left: 2px solid rgba(255,255,255,.25); min-width: 0; }
.dash-head .title i.crown { font-size: 40px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(255, 194, 26, .8)); }
.dash-head .title h1 { font-size: clamp(22px, 2.4vw, 36px); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-head .title p { margin: 4px 0 0; font-size: 15px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-head .top-actions { position: relative; background: rgba(6, 13, 43, .55); border: 1px solid rgba(255,255,255,.18); border-radius: 30px; padding: 4px 6px 4px 10px; }
.acct .who { text-align: left; line-height: 1.15; }
.acct .who small { display: block; color: var(--gold); font-weight: 600; font-size: 12.5px; }
.side { padding: 14px 10px; position: relative; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid rgba(80, 150, 255, .2); }
.side a { display: flex; align-items: center; gap: 13px; padding: 9px 12px; border-radius: 12px; color: #e3ecff; font-family: var(--font-d); font-weight: 600; font-size: 18px; transition: background .2s, transform .2s; position: relative; }
.side a i { width: 24px; text-align: center; font-size: 19px; color: #9fc2ff; }
.side a:hover { background: rgba(47, 139, 255, .16); transform: translateX(3px); }
.side a.active { background: linear-gradient(135deg, #7a2cf0, #b13cff); box-shadow: 0 0 22px rgba(160, 70, 255, .75), 0 0 0 1px rgba(255,255,255,.3) inset; }
.side a.active i { color: #fff; }
.side a .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 12px; border-radius: 10px; padding: 1px 8px; font-family: var(--font); box-shadow: 0 0 10px var(--red); }
.side a .cnt[data-n="0"] { display: none; }
.side .flagmap { margin-top: auto; padding-top: 18px; height: 200px; position: relative; }
.side .flagmap canvas { display: block; width: 100%; height: 100%; }
canvas.three { display: block; }
.main { padding: 16px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { --c1: #2f6bff; --c2: #1338b8; position: relative; border-radius: 16px; padding: 12px 14px; color: #fff; display: flex; align-items: center; gap: 12px; overflow: hidden; background: linear-gradient(150deg, var(--c1), var(--c2)); border: 1.5px solid rgba(255,255,255,.35); box-shadow: 0 0 20px color-mix(in srgb, var(--c1) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.4); cursor: pointer; transition: transform .2s; }
.kpi:hover { transform: translateY(-3px) scale(1.02); }
.kpi::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.35), transparent 50%); }
.kpi i { font-size: 34px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); position: relative; }
.kpi .v { position: relative; min-width: 0; }
.kpi .lbl { font-family: var(--font-d); font-weight: 600; font-size: 16px; line-height: 1.05; }
.kpi .n { font-family: var(--font-d); font-weight: 800; font-size: 32px; line-height: 1.05; }
.kpi .d { font-size: 13px; font-weight: 700; color: #a6ffcb; }
.kpi.stack { flex-direction: column; text-align: center; gap: 4px; padding: 14px 8px; }
.panel { position: relative; background: linear-gradient(180deg, rgba(20, 38, 120, .62), rgba(10, 22, 80, .62)); border: 1.5px solid rgba(80, 150, 255, .55); border-radius: 18px; padding: 14px 16px; box-shadow: 0 0 18px rgba(47, 139, 255, .28), inset 0 0 30px rgba(47, 139, 255, .08); backdrop-filter: blur(6px); min-width: 0; }
.panel .card-head h3 { color: #fff; font-size: 23px; }
.panel .card-head h3 i { color: #7fb5ff; filter: drop-shadow(0 0 6px rgba(47,139,255,.8)); }
.panel .card-head .more { color: #7fd0ff; }
.panel .row { border-bottom-color: rgba(120, 160, 255, .14); }
.panel .row:hover { background: rgba(47, 139, 255, .12); }
.panel .row .s { color: #a9bbea; }
.panel .muted { color: #a9bbea; }
.panel.light { background: #f5f8ff; color: var(--ink); border-color: rgba(80,150,255,.6); }
.panel.light .card-head h3 { color: var(--ink); }
.panel.light .row .s { color: var(--ink-2); }
.dgrid { display: grid; gap: 14px; }
.d3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.d12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.d-prof { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr); }
.d-chart-side { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.act { --c1: #2f6bff; --c2: #1338b8; border: 1.5px solid rgba(255,255,255,.3); cursor: pointer; border-radius: 14px; padding: 12px 6px; min-height: 86px; color: #fff; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; font-family: var(--font-d); font-weight: 700; font-size: 15.5px; line-height: 1.05; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 0 14px color-mix(in srgb, var(--c1) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .18s, box-shadow .2s; }
.act i { font-size: 26px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.act:hover { transform: translateY(-3px); box-shadow: 0 0 26px var(--c1); }
.chart-box { position: relative; height: 230px; }
.chart-box.sm { height: 190px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; padding: 9px 10px; color: #9fb4e6; border-bottom: 1px solid rgba(120,160,255,.25); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid rgba(120,160,255,.12); vertical-align: middle; }
.tbl tr:hover td { background: rgba(47,139,255,.08); }
.tbl td .btn + .btn { margin-left: 4px; }
.page .tbl th { color: var(--ink-2); border-bottom-color: var(--line); }
.page .tbl td { border-bottom-color: #eef2fa; }
.tbl select { padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(120,160,255,.4); background: #0b1850; color: #fff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input { max-width: 300px; padding-left: 14px; }
.panel .input, .panel .field input, .panel .field select, .panel .field textarea { background: rgba(6, 13, 43, .55); color: #fff; border-color: rgba(120, 160, 255, .35); }
.panel .field label.lbl { color: #a9bbea; }
.panel .field > i { color: #8fb2ff; }
.progress { height: 12px; border-radius: 8px; background: rgba(255,255,255,.15); overflow: hidden; }
.progress > div { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 10px var(--cyan); width: 0; transition: width 1.2s ease; }
.ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--font-d); background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); box-shadow: 0 0 26px rgba(24, 201, 100, .55); position: relative; flex-shrink: 0; }
.ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #0a1650; }
.ring > div { position: relative; }
.ring b { display: block; font-size: 36px; line-height: 1; }
.status-list .row { padding: 7px 4px; }
.status-list .ok { color: var(--green); font-weight: 700; margin-left: auto; }
.status-list .warn { color: var(--gold); font-weight: 700; margin-left: auto; }
.cat-bar { display: grid; grid-template-columns: 26px 140px 1fr 56px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.cat-bar .b { height: 14px; border-radius: 4px; box-shadow: 0 0 10px currentColor; transition: width 1s; }
.profile-card { display: flex; gap: 18px; align-items: center; overflow: hidden; }
.profile-card h2 { font-size: 32px; display: flex; gap: 10px; align-items: center; }
.profile-card .flagbg { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background: linear-gradient(90deg, rgba(10,22,80,1), rgba(10,22,80,.4)), repeating-linear-gradient(180deg, #c8102e 0 12px, #fff 12px 24px); opacity: .45; pointer-events: none; }
.profile-card .meta { display: grid; gap: 3px; font-size: 14px; color: #cfdcff; position: relative; }
.online { display: inline-flex; gap: 6px; align-items: center; background: var(--green); color: #fff; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 13px; box-shadow: 0 0 12px var(--green); width: fit-content; }
.online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.bottom-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; flex-wrap: wrap; background: linear-gradient(90deg, rgba(10, 22, 80, .9), rgba(20, 38, 120, .9)); border: 1.5px solid rgba(80, 150, 255, .55); box-shadow: 0 0 20px rgba(47, 139, 255, .35); }
.bottom-bar .brand .name { font-size: 28px; }
.bottom-bar .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.bottom-bar .btn { border-radius: 30px; }
.dash .page-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash .page-title h2 { font-size: 30px; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(3, 8, 32, .7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 2px rgba(47,139,255,.5), 0 0 40px rgba(47,139,255,.4); animation: pop .22s ease-out; }
.modal.wide { width: min(820px, 100%); }
.modal h3 { font-size: 26px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.modal .actions-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 14px; color: #fff; display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; background: #0d1a52; border: 1.5px solid var(--green); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 18px rgba(24, 201, 100, .45); animation: slidein .3s ease-out; }
.toast i { color: var(--green); font-size: 18px; margin-top: 1px; }
.toast.error { border-color: var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 18px rgba(255, 54, 81, .45); }
.toast.error i { color: var(--red); }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }

/* ---------- AI chat ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 66px; height: 66px; border-radius: 50%; border: 2px solid rgba(160, 220, 255, .9); cursor: pointer; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2f8bff, #10208a); box-shadow: 0 0 26px rgba(47, 139, 255, .9); animation: halo 2.6s ease-in-out infinite; }
@keyframes halo { 50% { box-shadow: 0 0 44px rgba(25, 211, 255, 1); } }
.ai-panel { position: fixed; right: 20px; bottom: 98px; z-index: 95; width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 130px)); display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #0a1650; color: #e8f0ff; border: 2px solid rgba(80, 160, 255, .85); box-shadow: 0 0 40px rgba(47, 139, 255, .6), 0 30px 60px rgba(0,0,0,.5); animation: pop .2s; }
.ai-panel[hidden] { display: none; }
.ai-panel header { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: linear-gradient(90deg, #10208a, #5a2bd0); }
.ai-panel header small { display: block; font-size: 12px; opacity: .85; }
.ai-panel header .icon-btn { margin-left: auto; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #1f6bff, #19b6ff); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(120,160,255,.3); border-bottom-left-radius: 4px; }
.bubble .links { display: grid; gap: 5px; margin-top: 8px; }
.bubble .links a { background: rgba(47,139,255,.22); padding: 6px 10px; border-radius: 9px; font-size: 13px; }
.bubble .links a:hover { background: rgba(47,139,255,.4); }
.bubble small { display: block; margin-top: 6px; opacity: .6; font-size: 11px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 4px; animation: pulse 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
.ai-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(120,160,255,.25); align-items: center; }
.ai-form input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid rgba(120,160,255,.4); background: rgba(6, 13, 43, .6); color: #fff; padding: 11px 12px; outline: none; }
.mic.listening { color: var(--red); animation: pulse 1s infinite; }

/* reveal animation hook */
.reveal { animation: rise .65s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.98); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .cat-tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: 280px minmax(0, 1fr); }
  .g-side > :last-child { grid-column: 1 / -1; }
  .hero-inner { grid-template-columns: 1fr 240px; padding: 30px 60px; }
  .hero-spacer { display: none; }
  .feature-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .burger { display: inline-grid; }
  .mainnav { display: none; flex-direction: column; position: static; padding: 8px 16px; }
  .mainnav.open { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 28px 22px 60px; }
  .county-card { display: none; }
  .hero .arrow { display: none; }
  .ai-strip { flex-wrap: wrap; padding: 12px 14px 12px 90px; margin: -20px 10px 0; }
  .ai-strip .robot { width: 62px; height: 62px; left: 12px; top: 8px; bottom: auto; }
  .ai-strip form { flex-basis: 100%; order: 3; }
  .ai-strip .quick { display: none; }
  .g3, .g2, .g-side, .g-main-side, .d3, .d2, .d21, .d12, .d-prof, .d-chart-side { grid-template-columns: minmax(0, 1fr); }
  .g-side > :last-child { grid-column: auto; }
  .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; width: 270px; background: #071140; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  .side.open { transform: none; }
  .dash-head { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .dash-head .title { padding-left: 0; border-left: 0; order: 3; flex-basis: 100%; }
  .dash-head .title i.crown { font-size: 28px; }
  .dash-head .title p { white-space: normal; }
  .acct .who { display: none; }
  .banner { padding: 26px 22px 34px; }
  .banner-float { display: none; }
  .footer { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .acct-types { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand .name { font-size: 26px; }
  .brand .tag { display: none; }
  .brand .flag-map { width: 46px; height: 32px; }
  .hide-sm { display: none !important; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: minmax(0, 1fr); }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding: 16px 12px 32px; }
  .main { padding: 12px; }
  .hero h1 { font-size: 38px; }
  .hero p.lead { font-size: 18px; }
  .footer { grid-template-columns: 1fr; }
  .kpi .n { font-size: 26px; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-card h2 { justify-content: center; font-size: 26px; }
  .cat-bar { grid-template-columns: 22px 100px 1fr 48px; }
  .bottom-bar .btns { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
