/* =========================================================================
   COMPASS design system
   ========================================================================= */
:root {
    --navy: #0b2340;
    --navy-2: #12355f;
    --teal: #0e7c86;
    --teal-2: #17a2a6;
    --accent: #ec6a2b;
    --accent-2: #ff8b4d;
    --gold: #c99a1c;
    --green: #16a34a;
    --red: #dc2626;
    --indigo: #4f46e5;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #e5e9f2;
    --text: #13203a;
    --muted: #64748b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 24px 60px -24px rgba(11, 35, 64, .35);
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--text);
    --bs-link-color: var(--teal);
    --bs-link-color-rgb: 14, 124, 134;
    --bs-link-hover-color: var(--navy);
    --bs-border-color: var(--line);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: .95rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--text); }
a { text-decoration: none; }
.link-u { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.link-u:hover { color: var(--accent); }
code { color: var(--accent); }
.text-accent { color: var(--accent) !important; }
.text-teal { color: var(--teal) !important; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bg-surface { background: var(--surface); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1.05rem; transition: all .18s ease; }
.btn-sm { border-radius: 9px; padding: .35rem .7rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(236, 106, 43, .65); }
.btn-accent:hover, .btn-accent:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(236, 106, 43, .8); }
.btn-navy { background: var(--navy); color: #fff; border: 0; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-light:hover { background: var(--surface-2); border-color: #cfd6e4; }
.btn-outline-accent { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: #fff; }
.btn-soft-accent { background: #fff1ea; color: var(--accent); border: 0; }
.btn-soft-accent:hover { background: #ffe3d4; color: var(--accent); }

/* ---------- Badges ---------- */
.badge { font-weight: 600; border-radius: 8px; padding: .38em .65em; letter-spacing: .01em; }
.badge-soft-success { background: #dcfce7; color: #15803d; }
.badge-soft-warning { background: #fef3c7; color: #b45309; }
.badge-soft-danger { background: #fee2e2; color: #b91c1c; }
.badge-soft-info { background: #e0f2fe; color: #0369a1; }
.badge-soft-primary { background: #e0e7ff; color: #4338ca; }
.badge-soft-secondary { background: #eef2f7; color: #475569; }
.badge-live { background: #dc2626; color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-right: 6px; animation: pulse 1.4s infinite; vertical-align: middle; }
.role-badge { color: #fff; }
.role-citizen { background: var(--teal); }
.role-maker { background: var(--indigo); }
.role-checker { background: var(--accent); }
.role-superadmin { background: var(--navy); }

/* ---------- Navbar ---------- */
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .navbar { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy); }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; line-height: 1; }
.brand-sub { font-size: .62rem; color: var(--muted); letter-spacing: .02em; line-height: 1.1; max-width: 220px; }
.topbar .nav-link { color: var(--text); font-weight: 600; padding: .5rem .85rem !important; border-radius: 10px; }
.topbar .nav-link:hover, .topbar .nav-link.active { color: var(--accent); background: #fff4ee; }
.topbar .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; }
.topbar .dropdown-item { border-radius: 9px; padding: .55rem .8rem; font-weight: 500; }
.topbar .dropdown-item:hover { background: var(--surface-2); }
.mega { min-width: 560px; }
.mega .dropdown-item { display: flex; gap: .7rem; align-items: flex-start; white-space: normal; }
.mega .dropdown-item i { font-size: 1.2rem; color: var(--teal); margin-top: 2px; }
.mega small { display: block; color: var(--muted); font-weight: 400; }
.user-chip { display: flex; align-items: center; gap: .5rem; padding: .3rem .6rem .3rem .3rem; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); color: var(--text); }
.user-chip .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; }
.notice-bar { background: linear-gradient(90deg, var(--navy), var(--teal)); color: #e6f6f7; font-size: .82rem; padding: .45rem 0; }
.notice-bar strong { color: #fff; }

/* ---------- Hero / landing ---------- */
.hero { position: relative; color: #fff; padding: 72px 0 120px; overflow: hidden;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(23, 162, 166, .55), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(236, 106, 43, .35), transparent 60%),
                linear-gradient(135deg, #0a1f3a 0%, #0f2f55 55%, #0e4f66 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background: url('../img/skyline.svg') bottom center / 1600px auto no-repeat; opacity: .18; pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.hero h1 .hl { background: linear-gradient(90deg, #ffb48a, #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #c9d6e8; max-width: 640px; font-size: 1.1rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: .35rem .8rem; border-radius: 40px; font-size: .82rem; color: #e2ecf7; }
.hero-compass { position: absolute; right: -60px; top: 40px; width: 460px; opacity: .95; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }
.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stats div b { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero-stats div span { color: #a9bdd6; font-size: .85rem; }

.hero-search { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); position: relative; margin-top: 4.4rem; }
.topbar .nav-link, .topbar .btn { white-space: nowrap; }
.hero-search .hs-tabs { display: flex; gap: .25rem; position: absolute; top: -46px; left: 0; }
.hero-search .hs-tabs a { padding: .65rem 1.4rem; background: rgba(255, 255, 255, .14); color: #dbe7f5; border-radius: 14px 14px 0 0; font-weight: 600; backdrop-filter: blur(6px); }
.hero-search .hs-tabs a.active { background: var(--surface); color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.hero-search .hs-row { display: flex; align-items: stretch; padding: .6rem; gap: .2rem; flex-wrap: wrap; }
.hs-field { flex: 1 1 180px; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border-right: 1px solid var(--line); }
.hs-field:last-of-type { border-right: 0; }
.hs-field i { color: var(--accent); font-size: 1.2rem; }
.hs-field select, .hs-field input { border: 0; outline: 0; width: 100%; background: transparent; font-weight: 600; color: var(--text); font-size: .98rem; padding: .35rem 0; cursor: pointer; }
.hs-go { border-radius: 14px; padding: .8rem 2rem; font-size: 1.05rem; }
.search-band { background: linear-gradient(135deg, #0a1f3a, #0e4f66); padding: 64px 0 26px; }
.hero-search.compact { margin-top: 0; }

.sub-hero { background: linear-gradient(135deg, #0a1f3a, #0f3a5c 60%, #0e5f6e); color: #fff; padding: 48px 0 40px; }
.sub-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 760px; }
.sub-hero p { color: #bcd0e6; max-width: 680px; margin: 0; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.section-head p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--teal); margin-bottom: .35rem; }
.eyebrow a { color: var(--teal); }
.eyebrow.light { color: #7fd6d9; }

/* Module tiles */
.module-tile { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; transition: all .22s ease; position: relative; overflow: hidden; }
.module-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--teal)); }
.module-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.module-tile .mt-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: var(--c, var(--teal)); margin-bottom: 1rem; box-shadow: 0 10px 20px -10px var(--c, var(--teal)); }
.module-tile h5 { margin-bottom: .25rem; }
.module-tile p { color: var(--muted); font-size: .88rem; flex-grow: 1; }
.module-tile .mt-links { display: flex; flex-direction: column; gap: .35rem; margin-top: .6rem; }
.module-tile .mt-links a { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .86rem; }
.module-tile .mt-links a:hover { background: #fff1ea; color: var(--accent); }
.module-tile .mt-links a span { font-size: .7rem; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .05rem .5rem; }
.module-tile .schema { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .7rem; color: var(--muted); background: var(--surface-2); padding: .15rem .55rem; border-radius: 20px; border: 1px solid var(--line); }

.class-card { display: block; border-radius: 22px; overflow: hidden; position: relative; color: #fff; min-height: 260px; box-shadow: var(--shadow); transition: transform .25s; }
.class-card:hover { transform: translateY(-4px); color: #fff; }
.class-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.class-card .cc-over { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 58, .05) 0%, rgba(10, 31, 58, .55) 35%, rgba(10, 31, 58, .94) 75%); }
.class-card { min-height: 300px; }
.class-card .cc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; }
.class-card h4 { color: #fff; margin: 0; }
.class-card .cc-count { font-size: .85rem; color: #cfe0f2; }
.class-card .cc-cats { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.class-card .cc-cats span { font-size: .72rem; background: rgba(255, 255, 255, .16); padding: .2rem .6rem; border-radius: 20px; backdrop-filter: blur(4px); }

.steps { counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; height: 100%; position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #fff; font-weight: 800; margin-bottom: .8rem; }
.step p { color: var(--muted); font-size: .88rem; margin: 0; }
.persona-card { border-radius: 20px; padding: 1.6rem; color: #fff; height: 100%; position: relative; overflow: hidden; }
.persona-card h5 { color: #fff; }
.persona-card ul { padding-left: 1.1rem; font-size: .88rem; opacity: .92; }
.persona-card .btn { background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.persona-card .btn:hover { background: #fff; color: var(--navy); }
.pc-citizen { background: linear-gradient(135deg, #0e7c86, #17a2a6); }
.pc-maker { background: linear-gradient(135deg, #4338ca, #6366f1); }
.pc-checker { background: linear-gradient(135deg, #c2410c, #ec6a2b); }
.pc-admin { background: linear-gradient(135deg, #0b2340, #1e3a8a); }
.arch { background: var(--navy); border-radius: 24px; color: #cfdced; padding: 2rem; }
.arch h3, .arch h5 { color: #fff; }
.arch .layer { border: 1px dashed rgba(255, 255, 255, .25); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .7rem; }
.arch .layer b { color: #fff; }
.arch .mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; margin-top: .5rem; }
.arch .mods span { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: .45rem .6rem; font-size: .8rem; text-align: center; }
.arch .mods span i { display: block; font-size: 1.1rem; color: #7fd6d9; }

/* ---------- Cards / KPIs ---------- */
.card-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.card-title-sm { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .8rem; }
.kpi { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; color: var(--text); transition: all .18s; }
.kpi-link:hover, .kpi-link.active { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.kpi-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.kpi-value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.bg-teal { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.bg-navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.bg-orange { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.bg-green { background: linear-gradient(135deg, #15803d, #22c55e); }
.bg-red { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.bg-indigo { background: linear-gradient(135deg, #4338ca, #6366f1); }
.bg-gold { background: linear-gradient(135deg, #a16207, #eab308); }
.bg-teal-grad { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.big-num { font-size: 2rem; font-weight: 800; color: var(--navy); }
.mini-stat { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.mini-stat:last-child { border-bottom: 0; }
.mini-stat span { color: var(--muted); }
.mini-stat.total { font-size: 1.05rem; border-top: 2px solid var(--line); margin-top: .3rem; padding-top: .8rem; }
.mini-stat.total strong { color: var(--accent); font-size: 1.3rem; }
.bar { height: 8px; background: #eef2f7; border-radius: 10px; overflow: hidden; flex-grow: 1; }
.bar i { display: block; height: 100%; border-radius: 10px; }
.pipe { display: flex; align-items: center; gap: .8rem; margin-bottom: .55rem; font-size: .85rem; }
.pipe span { width: 120px; color: var(--muted); }
.pipe b { width: 28px; text-align: right; }
.pipe .bar i { background: currentColor; }
.ann { padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.ann:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-c { --bs-table-bg: transparent; margin: 0; }
.table-c thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: .8rem 1rem; white-space: nowrap; }
.table-c tbody td { padding: .85rem 1rem; border-color: var(--line); vertical-align: middle; }
.table-c tbody tr:hover { background: #fafbfe; }
.table-auction thead th { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 600; padding: 1rem; border: 0; white-space: nowrap; }
.table-auction tbody td { padding: 1rem; border-color: var(--line); }
.table-auction tbody tr:nth-child(even) { background: #fafbfd; }
.thumb { width: 72px; height: 52px; object-fit: cover; border-radius: 10px; }
.thumb-sm { width: 46px; height: 36px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.bank-dot { width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 800; font-size: .72rem; display: grid; place-items: center; flex: 0 0 auto; }
.hash { font-size: .72rem; background: var(--surface-2); padding: .15rem .4rem; border-radius: 6px; }

/* ---------- Countdown ---------- */
.countdown { display: inline-flex; gap: .35rem; }
.countdown .cd { min-width: 52px; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: .3rem .35rem; background: var(--surface); }
.countdown .cd b { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.1; }
.countdown .cd small { font-size: .66rem; color: var(--muted); }
.countdown-xs .cd { min-width: 34px; padding: .15rem .2rem; border-radius: 7px; }
.countdown-xs .cd b { font-size: .82rem; }
.countdown-xs .cd small { font-size: .55rem; }
.countdown-lg { gap: .6rem; }
.countdown-lg .cd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); min-width: 70px; padding: .6rem .4rem; }
.countdown-lg .cd b { font-size: 1.8rem; color: #fff; }
.countdown-lg .cd small { color: #a9bdd6; }
.countdown .ended { font-size: .8rem; color: var(--muted); }

/* ---------- Page head (portal) ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.page-head .sub { color: var(--muted); margin: .25rem 0 0; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.search-inline { display: flex; align-items: center; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .1rem .8rem; }
.search-inline input { border: 0; outline: 0; padding: .45rem 0; background: transparent; min-width: 220px; }
.search-inline i { color: var(--muted); }

/* ---------- Portal layout ---------- */
.portal { display: flex; min-height: calc(100vh - 70px); overflow-x: clip; }
body { overflow-x: clip; }
.portal-side { width: 260px; flex: 0 0 260px; background: var(--surface); border-right: 1px solid var(--line); padding: 1.2rem .9rem; position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; }
.portal-main { flex: 1; min-width: 0; padding: 1.8rem 2rem 3rem; }
.side-user { display: flex; gap: .7rem; align-items: center; padding: .8rem; border-radius: 14px; background: linear-gradient(135deg, #f0fbfb, #fff7f2); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.side-user .av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.side-user .nm { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.side-user .rl { font-size: .74rem; color: var(--muted); }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; font-weight: 700; margin: 1.1rem .6rem .4rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .58rem .75rem; border-radius: 11px; color: #334155; font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.side-link i { font-size: 1.05rem; color: #94a3b8; width: 20px; text-align: center; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: #fff1ea; color: var(--accent); }
.side-link.active i { color: var(--accent); }
.side-link .cnt { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; border-radius: 20px; padding: .05rem .5rem; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 11px; border-color: #dbe1ec; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal-2); box-shadow: 0 0 0 .2rem rgba(23, 162, 166, .15); }
.form-label { font-weight: 600; font-size: .84rem; color: #334155; margin-bottom: .35rem; }
.input-group-text { border-radius: 11px; background: var(--surface-2); border-color: #dbe1ec; }
.form-sec { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: 1.1rem; }
.form-sec span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #e6f6f7; color: var(--teal); font-size: .85rem; font-weight: 800; }
.sticky-actions { position: sticky; bottom: 0; display: flex; gap: .6rem; justify-content: flex-end; background: rgba(244, 246, 251, .92); backdrop-filter: blur(8px); padding: 1rem 0; border-top: 1px solid var(--line); }
.checklist label { display: flex; align-items: center; padding: .45rem 0; font-size: .88rem; }
.seg .nav-link { border-radius: 12px; color: var(--muted); font-weight: 600; }
.seg .nav-link.active { background: var(--navy); color: #fff; }
.seg { background: var(--surface-2); padding: .3rem; border-radius: 14px; display: inline-flex; }

/* ---------- Status tabs, chips ---------- */
.status-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.status-tabs a { padding: .45rem .9rem; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .84rem; }
.status-tabs a span { background: var(--surface-2); border-radius: 20px; padding: 0 .45rem; margin-left: .3rem; font-size: .75rem; color: var(--muted); }
.status-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.status-tabs a.active span { background: rgba(255, 255, 255, .2); color: #fff; }
.chip { display: inline-flex; align-items: center; font-size: .76rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: .2rem .65rem; color: #334155; }
.chip-doc:hover { border-color: var(--accent); color: var(--accent); }
.pill-tabs { display: flex; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .3rem; }
.pill-tabs a { padding: .55rem 1rem; border-radius: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.pill-tabs a b { background: var(--surface-2); border-radius: 20px; padding: 0 .5rem; font-size: .75rem; }
.pill-tabs a.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.pill-tabs a.active b { background: rgba(255, 255, 255, .25); }
.chip-filter { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-filter a { padding: .42rem .85rem; border-radius: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .84rem; font-weight: 600; }
.chip-filter a.on { border-color: var(--teal); color: var(--teal); background: #e6f6f7; }
.tax-item { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; }

/* ---------- Explore ---------- */
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; position: sticky; top: 86px; }
.fp-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .45rem; display: block; }
.fp-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.fp-chips input { display: none; }
.fp-chips span { display: inline-flex; gap: .35rem; align-items: center; border: 1px solid var(--line); border-radius: 30px; padding: .3rem .7rem; font-size: .8rem; font-weight: 600; cursor: pointer; }
.fp-chips input:checked + span { background: #e6f6f7; border-color: var(--teal); color: var(--teal); }
.fp-list label { display: flex; align-items: center; gap: .5rem; font-size: .88rem; padding: .22rem 0; cursor: pointer; }
.fp-list input { accent-color: var(--accent); }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle a { padding: .38rem .7rem; color: var(--muted); }
.view-toggle a.on { background: var(--navy); color: #fff; }

.asset-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; transition: all .22s ease; }
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ac-img { display: block; position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e8eef6; }
.ac-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.asset-card:hover .ac-img img { transform: scale(1.05); }
.ac-tags { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; }
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: .3rem .55rem; border-radius: 8px; color: #fff; backdrop-filter: blur(6px); }
.tag-live { background: rgba(220, 38, 38, .92); }
.tag-upcoming { background: rgba(11, 35, 64, .85); }
.tag-listing { background: rgba(14, 124, 134, .9); }
.tag-sold { background: rgba(71, 85, 105, .9); }
.tag-featured { background: rgba(234, 179, 8, .95); }
.ac-id { position: absolute; bottom: .6rem; left: .7rem; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 6px; padding: .15rem .45rem; }
.fav-btn { position: absolute; top: .65rem; right: .65rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #64748b; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.fav-btn.on, .icon-btn.on { color: #e11d48; }
.ac-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex-grow: 1; }
.ac-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); }
.ac-title { font-weight: 700; color: var(--text); line-height: 1.35; margin: .25rem 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-title:hover { color: var(--accent); }
.ac-loc { font-size: .84rem; color: var(--muted); }
.ac-specs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .8rem; color: #475569; margin: .8rem 0; padding: .6rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ac-specs i { margin-right: .3rem; color: var(--muted); }
.ac-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.ac-price { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.ac-bank { font-size: .76rem; color: var(--muted); }

.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: .7rem; }
.detail-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.views { font-size: .9rem; color: var(--muted); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: #475569; font-size: 1.1rem; }
.gallery { position: relative; border-radius: 18px; overflow: hidden; background: #e8eef6; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gal-count { position: absolute; left: 1rem; bottom: 1rem; background: #fff; border-radius: 30px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }
.gal-gps { position: absolute; right: 1rem; top: 1rem; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 10px; padding: .35rem .7rem; font-size: .72rem; max-width: 70%; }
.doc-card .doc-hero { display: block; text-align: center; background: var(--surface-2); border-radius: 14px; padding: 1.4rem; color: var(--text); }
.pdf-ico { width: 64px; height: 78px; margin: 0 auto; background: #fff; border-radius: 6px; border: 1px solid var(--line); position: relative; display: flex; align-items: flex-end; justify-content: center; font-weight: 800; color: #fff; font-size: .8rem; }
.pdf-ico::after { content: "PDF"; position: absolute; bottom: 12px; left: 6px; right: 6px; background: #dc2626; border-radius: 3px; padding: 2px 0; }
.pdf-ico::before { content: ""; position: absolute; top: 14px; left: 18px; width: 28px; height: 22px; border: 3px solid #dc2626; border-radius: 50% 50% 4px 4px; }
.doc-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.doc-list li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.doc-list li > i:first-child { color: #dc2626; font-size: 1.3rem; }
.doc-list a { font-weight: 600; color: var(--text); }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow); }
.pc-price { text-align: center; font-size: 2rem; font-weight: 800; color: var(--navy); }
.pc-price sup { color: var(--accent); font-size: .9rem; }
.pc-facts { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin: 1rem 0; }
.pc-facts div { display: flex; gap: .7rem; padding: .4rem 0; font-size: .88rem; }
.pc-facts i { color: var(--muted); }
.auction-strip { background: var(--surface-2); border-radius: 14px; padding: .9rem; margin-bottom: .8rem; border: 1px solid var(--line); }
.auction-strip.live { background: #fff1f1; border-color: #fecaca; }
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem; }
.spec-strip label { display: block; font-size: .78rem; color: var(--muted); }
.spec-strip strong { font-weight: 700; }
.map { width: 100%; height: 300px; border: 0; display: block; }

/* ---------- Auction room ---------- */
.room-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; }
.fact-row div { background: var(--surface-2); border-radius: 12px; padding: .7rem .85rem; }
.fact-row label { display: block; font-size: .74rem; color: var(--muted); }
.fact-row strong { font-size: .92rem; }
.bid-panel { background: radial-gradient(500px 200px at 100% 0, rgba(23, 162, 166, .35), transparent), linear-gradient(160deg, #0b2340, #12355f); color: #fff; border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.bid-panel .hb { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.bid-panel .input-group-text { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.bid-panel .form-control { background: rgba(255, 255, 255, .95); font-weight: 700; }
.ledger { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow: auto; }
.ledger li { display: flex; align-items: center; gap: .8rem; padding: .6rem .4rem; border-bottom: 1px dashed var(--line); }
.ledger li.mine { background: #f0fdf4; border-radius: 10px; }
.ledger .rank { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.ledger li:first-child .rank { background: var(--gold); color: #fff; }
.ledger small { display: block; color: var(--muted); font-size: .72rem; }
.ledger .amt { font-weight: 800; }
.pay-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pay-modes input { display: none; }
.pay-modes span { display: flex; flex-direction: column; gap: .15rem; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; cursor: pointer; font-weight: 700; }
.pay-modes span i { font-size: 1.4rem; color: var(--teal); }
.pay-modes small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.pay-modes input:checked + span { border-color: var(--accent); background: #fff7f2; }

/* ---------- Proforma ---------- */
.proforma { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pf-head { display: flex; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, var(--navy), #0f4a63); color: #fff; padding: 1.2rem 1.5rem; border-bottom: 4px solid var(--accent); }
.pf-bank { font-weight: 800; font-size: 1.1rem; }
.pf-title { font-weight: 800; letter-spacing: .14em; }
.pf-body { padding: 1.5rem; }
.pf-img { width: 180px; height: 120px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.pf-price { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.pf-price small { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.pf-sec { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); font-weight: 800; margin: 1.4rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem 1.2rem; }
.pf-grid label, .pf-sign label { display: block; font-size: .72rem; color: var(--muted); }
.pf-grid span { font-weight: 600; font-size: .9rem; }
.pf-grid .span-2 { grid-column: span 2; }
.pf-sign { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 1rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.pf-sign span { display: block; font-weight: 700; }
.pf-sign small { color: var(--muted); }
.print-body { background: #eef2f7; }
.print-page { max-width: 900px; margin: 0 auto; }
@media print {
    .no-print, .topbar, .portal-side, footer { display: none !important; }
    .print-body { background: #fff; }
    .print-page { max-width: none; }
    .proforma { border: 0; }
    .pf-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Misc portal widgets ---------- */
.timeline { list-style: none; padding: 0 0 0 1.1rem; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.48rem; top: .3rem; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--teal); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.photo-tile { position: relative; }
.photo-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.photo-tile .del { position: absolute; top: 4px; right: 4px; border: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; padding: 0; }
.cover-tag { position: absolute; bottom: 4px; left: 4px; font-size: .62rem; background: var(--accent); color: #fff; padding: .05rem .35rem; border-radius: 5px; }
.queue-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); transition: all .2s; }
.queue-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.queue-card img { width: 100%; height: 140px; object-fit: cover; }
.module-health .kpi-icon { width: 40px; height: 40px; }
.avatar-xl { width: 88px; height: 88px; border-radius: 26px; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal), var(--accent)); }

/* ---------- Auth ---------- */
.auth-wrap { padding: 56px 0 80px; background: radial-gradient(900px 400px at 100% 0, rgba(23, 162, 166, .12), transparent), radial-gradient(800px 400px at 0 100%, rgba(236, 106, 43, .1), transparent); }
.auth-card { background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.auth-side { background: linear-gradient(160deg, #0a1f3a, #0f3d5e 60%, #0e6370); color: #fff; position: relative; }
.auth-side-inner { padding: 3rem 2.5rem; }
.auth-side h2 { color: #fff; font-weight: 800; }
.auth-points { list-style: none; padding: 0; margin-top: 2rem; }
.auth-points li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; }
.auth-points i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-height: 430px; overflow-y: auto; padding-right: .3rem; }
.persona { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 14px; padding: .65rem .75rem; background: var(--surface); transition: all .15s; }
.persona:hover { border-color: var(--accent); background: #fff7f2; }
.persona-av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex: 0 0 auto; }
.otp-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 2rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.otp-icon.navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.otp-icon.danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.otp-boxes { display: flex; gap: .5rem; justify-content: center; }
.otp-box { width: 52px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 800; border: 1.5px solid #cfd7e6; border-radius: 14px; outline: 0; }
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(236, 106, 43, .15); }

/* ---------- Toasts / SMS ---------- */
.toast-stack { position: fixed; top: 84px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: .6rem; max-width: 380px; }
.c-toast { display: flex; gap: .7rem; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow-lg); border-left: 4px solid var(--green); animation: slideIn .35s ease; font-size: .9rem; }
.c-toast.err { border-left-color: var(--red); }
.c-toast i { font-size: 1.2rem; }
.c-toast.ok i { color: var(--green); }
.c-toast.err i { color: var(--red); }
.sms { background: #111827; color: #f9fafb; border-radius: 18px; padding: .9rem 1rem; box-shadow: var(--shadow-lg); animation: slideIn .4s ease; font-size: .88rem; }
.sms .sms-head { display: flex; justify-content: space-between; font-size: .72rem; color: #9ca3af; margin-bottom: .35rem; }
.sms .sms-head b { color: #fff; }
.sms .otp { font-weight: 800; letter-spacing: .25em; color: #fbbf24; font-size: 1.05rem; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
footer.site { background: #081a31; color: #93a8c3; padding: 56px 0 28px; margin-top: 40px; font-size: .88rem; }
footer.site h6 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
footer.site a { color: #c5d4e7; display: block; padding: .2rem 0; }
footer.site a:hover { color: var(--accent-2); }
footer.site .copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2rem; padding-top: 1.2rem; font-size: .8rem; }

/* ---------- Art variants (hue shift so illustrations don't all look the same) ---------- */
.art-v1 { filter: hue-rotate(-16deg) saturate(1.05); }
.art-v2 { filter: hue-rotate(22deg); }
.art-v3 { filter: hue-rotate(160deg) saturate(.85); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .portal { display: block; }
    .portal-side { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3rem; padding: .8rem 1rem; }
    .portal-side .side-group, .portal-side .side-user { display: none; }
    .portal-side .side-link { padding: .4rem .7rem; font-size: .82rem; background: var(--surface-2); }
    .portal-main { padding: 1.2rem 1rem 2rem; }
    .hero-compass { display: none; }
    .hs-field { border-right: 0; border-bottom: 1px solid var(--line); flex-basis: 100%; }
    .hs-go { width: 100%; }
    .mega { min-width: 0; }
    .persona-grid { grid-template-columns: 1fr; }
    .pf-sign { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .search-inline input { min-width: 140px; }
}
.c-toast, .sms { cursor: pointer; }
@media (max-width: 575.98px) {
    .toast-stack { top: auto; bottom: 12px; left: 12px; right: 12px; max-width: none; }
    .hero { padding: 48px 0 90px; }
    .hero-search .hs-tabs a { padding: .55rem .8rem; font-size: .82rem; }
    .otp-box { width: 42px; height: 52px; }
    .pay-modes { grid-template-columns: 1fr; }
}
