@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
:root {
    --bg-primary: #0f0f11;
    --bg-secondary: #161618;
    --bg-card: #1c1c1f;
    --bg-card-hover: #222226;
    --bg-input: #141416;
    --border: #2e2e33;
    --border-focus: #ef4444;
    --text-primary: #e4e4e8;
    --text-secondary: #909098;
    --text-muted: #4e4e58;
    --accent: #ef4444;
    --accent-hover: #f87171;
    --accent-glow: rgba(239,68,68,0.2);
    --accent-secondary: #f87171;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --header-height: 56px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Baseline scroll behaviour. Explicitly allow vertical scroll on the viewport
   in web mode. nui.css overrides both of these when ?nui=1 is present, to
   lock the viewport and scroll inside .portal-content instead — so this
   doesn't affect the in-game tablet. */
html { overflow-y: auto; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; overflow-y: visible; }
/* Defense-in-depth: in normal (non-NUI) mode, neither the layout nor the
   main content container should ever clip vertical scroll. If a child
   element leaks overflow:hidden up the tree, this keeps the page usable.
   The NUI mode overrides in nui.css continue to win because their selectors
   (body.nui-mode .portal-content) are more specific than ours here. */
body:not(.nui-mode) .portal-layout,
body:not(.nui-mode) .portal-content { overflow-y: visible !important; max-height: none !important; }
h1,h2,h3,h4,h5,h6 { font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 0.01em; line-height: 1.25; }
a { color: var(--accent-secondary); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--accent); }

/* ── Public Header ─────────────────────────────────── */
.pub-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15,15,17,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; }
.pub-header .logo { font-family: 'Rajdhani', sans-serif; font-size: 1.375rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 0.5rem; } .pub-header .logo span { color: var(--accent-secondary); }
.pub-nav { display: flex; align-items: center; gap: 0.125rem; } .pub-nav a { color: var(--text-secondary); padding: 0.5rem 0.875rem; border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500; transition: all var(--transition); } .pub-nav a:hover, .pub-nav a.active { color: var(--text-primary); background: var(--bg-card); }
.pub-nav a.btn.btn-discord { background: #5865F2 !important; color: #fff !important; border-color: #5865F2 !important; } .pub-nav a.btn.btn-discord:hover { background: #4752c4 !important; color: #fff !important; border-color: #4752c4 !important; }
.pub-nav a.btn.btn-primary { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; } .pub-nav a.btn.btn-primary:hover { background: var(--accent-hover) !important; color: #fff !important; }
.pub-main { padding-top: var(--header-height); }

/* ── Hero ──────────────────────────────────────────── */
.hero { position: relative; padding: 6rem 2rem 4rem; text-align: center; background: linear-gradient(180deg, rgba(239,68,68,0.06) 0%, transparent 60%); overflow: hidden; }
.hero.has-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero.has-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,17,0.85) 0%, rgba(15,15,17,0.95) 100%); pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(239,68,68,0.08) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.hero > * { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.5rem,6vw,4rem); margin-bottom: 1rem; background: linear-gradient(135deg, #fff 30%, var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.0625rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 2rem; } .hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.125rem; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); } .btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-secondary); } .btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; } .btn-success:hover { background: #16a34a; }
.btn-warning { background: var(--warning); color: #fff; } .btn-warning:hover { background: #d97706; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; } .btn-lg { padding: 0.75rem 1.75rem; font-size: 0.9375rem; }
.btn-discord { background: #5865F2; color: #fff; border-color: #5865F2; } .btn-discord:hover { background: #4752c4; color: #fff; border-color: #4752c4; }
.pub-nav .btn-discord, .pub-nav .btn-primary { color: #fff !important; }

/* ── Cards ─────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: all var(--transition); }
.card:hover { border-color: color-mix(in srgb, var(--border) 50%, var(--text-muted)); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); } .card-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ── Portal Layout ─────────────────────────────────── */
/* padding-top reserves space under the fixed-positioned topbar so the
   content area starts below it. The flex display the sidebar relied on
   is gone — the topbar is the only chrome now. */
.portal-layout { min-height: 100vh; padding-top: var(--topbar-height, 56px); }
:root { --topbar-height: 56px; }

/* ── Top Bar ─────────────────────────────────────────── */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-height); display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; background: rgba(22,22,24,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); z-index: 60; }
.topbar-logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Rajdhani',sans-serif; font-size: 1.125rem; font-weight: 700; color: var(--text-primary); text-decoration: none; flex-shrink: 0; }
.topbar-logo:hover { color: var(--accent-secondary); }
.topbar-logo span { color: var(--accent-secondary); letter-spacing: 0.02em; }
.topbar-aop { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.625rem; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius); flex-shrink: 0; }
.topbar-aop-label { font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.topbar-aop-value { font-family: 'Rajdhani',sans-serif; font-size: 0.875rem; font-weight: 700; color: var(--accent-secondary); }
.topbar-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: 0.5rem; min-width: 0; overflow: hidden; }
.topbar-link-label { display: inline; }
.topbar-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; border-radius: var(--radius); text-decoration: none; transition: all var(--transition); position: relative; }
.topbar-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.topbar-link.active { color: var(--accent-secondary); background: rgba(239,68,68,0.08); }
.topbar-link i { font-size: 0.875rem; opacity: 0.8; }
.topbar-badge { background: var(--accent); color: #fff; font-size: 0.625rem; padding: 0.0625rem 0.4375rem; border-radius: 99px; font-weight: 700; min-width: 16px; text-align: center; }
.topbar-divider { width: 1px; height: 24px; background: var(--border); margin: 0 0.25rem; flex-shrink: 0; }

/* ── Portal Radio: pill in topbar + floating panel anchored below ── */
.portal-radio-pill { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border: 1px solid var(--border); border-radius: 99px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-card); cursor: pointer; transition: all var(--transition); flex-shrink: 0; font-family: inherit; }
.portal-radio-pill:hover { color: var(--text-primary); border-color: var(--accent-secondary); }
.portal-radio-pill i.fa-broadcast-tower { font-size: 0.8125rem; opacity: 0.85; color: var(--accent-secondary); }
.portal-radio-pill .portal-radio-chev { font-size: 0.5625rem; opacity: 0.45; margin-left: 0.125rem; transition: transform 0.25s; }
body.radio-panel-open .portal-radio-pill .portal-radio-chev { transform: rotate(180deg); }
.portal-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; transition: all 0.2s; }
body.radio-connected .portal-radio-dot { background: var(--success); box-shadow: 0 0 6px rgba(34,197,94,0.6); }
body.radio-transmitting .portal-radio-dot { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.8); animation: radioPulse 0.6s ease-in-out infinite alternate; }
@keyframes radioPulse { from { box-shadow: 0 0 4px rgba(239,68,68,0.5); } to { box-shadow: 0 0 12px rgba(239,68,68,1); } }

/* Panel — fixed position, anchored under the pill on the right. Lives in
   #portalRadio which is OUTSIDE the SPA-swapped region, so it persists. */
.portal-radio-widget { position: fixed; top: 0; right: 0; left: 0; height: 0; z-index: 75; pointer-events: none; }
.portal-radio-panel { position: fixed; top: calc(var(--topbar-height) + 6px); right: 1rem; width: 340px; max-height: calc(100vh - var(--topbar-height) - 20px); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.55); display: none; flex-direction: column; overflow: hidden; pointer-events: auto; }
body.radio-panel-open .portal-radio-panel { display: flex; animation: radioPanelIn 0.18s ease; }
@keyframes radioPanelIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.portal-radio-panel-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.portal-radio-panel-header strong { font-size: 0.875rem; flex: 1; }
.portal-radio-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem 0.5rem; border-radius: var(--radius); font-size: 0.75rem; }
.portal-radio-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* Radio internals inside the panel — narrower padding so it fits 340px wide. */
.portal-radio-panel .radio-channel-bar,
.portal-radio-panel .radio-mode-bar,
.portal-radio-panel .radio-controls,
.portal-radio-panel .radio-participants,
.portal-radio-panel .radio-volume-bar,
.portal-radio-panel .radio-status-bar,
.portal-radio-panel .radio-settings,
.portal-radio-panel .radio-empty { padding-left: 0.875rem; padding-right: 0.875rem; }
.portal-radio-panel .radio-empty { padding-top: 2rem; padding-bottom: 2rem; }
.portal-radio-panel .radio-tx-indicator { border-radius: 0; }

/* ── Progressive topbar compaction ───────────────────────────
   Hides/shrinks items in order of least → most essential as the
   viewport narrows, so the radio pill + bell + user menu stay
   visible on small screens (and inside narrow NUI tablets). */

/* ≤1280px — tighten spacing */
@media (max-width: 1280px) {
    .topbar { gap: 0.625rem; padding: 0 0.875rem; }
    .topbar-link { padding: 0.5rem 0.625rem; }
    .topbar-nav { margin-left: 0; }
}

/* ≤1100px — drop Site link, hide user role, trim user name */
@media (max-width: 1100px) {
    .topbar-link-site { display: none; }
    .topbar-user-role { display: none; }
    .topbar-user-name { max-width: 100px; font-size: 0.75rem; }
}

/* ≤960px — nav becomes icon-only, AOP label hides, dividers drop */
@media (max-width: 960px) {
    .topbar-aop-label { display: none; }
    .topbar-aop { padding: 0.25rem 0.5rem; }
    .topbar-link-label { display: none; }
    .topbar-link { padding: 0.5rem 0.5rem; gap: 0; }
    .topbar-link i { font-size: 1rem; opacity: 1; }
    .topbar-divider { display: none; }
    .topbar-link .topbar-badge { position: absolute; top: 2px; right: 2px; font-size: 0.5rem; padding: 0.0625rem 0.3125rem; }
}

/* ≤768px — logo text + user info + AOP all hide; radio pill keeps label */
@media (max-width: 768px) {
    .topbar-logo span { display: none; }
    .topbar-user-info { display: none; }
    .topbar-aop { display: none; }
    .topbar { padding: 0 0.5rem; gap: 0.375rem; }
    .topbar-right { gap: 0.25rem; }
}

/* ≤560px — radio pill → icon-only, notif badge shrinks, chevron hides */
@media (max-width: 560px) {
    .portal-radio-pill span:not(.portal-radio-dot),
    .portal-radio-pill .portal-radio-chev { display: none; }
    .portal-radio-pill { padding: 0.375rem 0.5rem; gap: 0.375rem; }
}

/* ≤480px — panel goes full-width */
@media (max-width: 480px) {
    .portal-radio-panel { width: calc(100vw - 1rem); right: 0.5rem; }
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.topbar-icon-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.5rem 0.625rem; border-radius: var(--radius); font-size: 1rem; position: relative; transition: all var(--transition); }
.topbar-icon-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.topbar-icon-btn .topbar-badge { position: absolute; top: 2px; right: 2px; font-size: 0.5rem; padding: 0.0625rem 0.3125rem; }
.topbar-user { position: relative; display: flex; align-items: center; gap: 0.625rem; padding: 0.375rem 0.625rem 0.375rem 0.375rem; border-radius: var(--radius); cursor: pointer; transition: background var(--transition); outline: none; }
.topbar-user:hover, .topbar-user:focus-within { background: rgba(255,255,255,0.04); }
.topbar-user-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.topbar-user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.topbar-user-role { font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.topbar-user-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(0,0,0,0.5); padding: 0.375rem; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: all 0.15s; z-index: 100; display: flex; flex-direction: column; gap: 1px; }
.topbar-user:hover .topbar-user-menu, .topbar-user:focus-within .topbar-user-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.topbar-user-menu a, .topbar-user-menu button { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; color: var(--text-secondary); font-size: 0.8125rem; text-decoration: none; border-radius: var(--radius); background: none; border: 0; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }
.topbar-user-menu a:hover, .topbar-user-menu button:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
/* Compact user trigger — avatar only, no inline name/role text. The
   dropdown still surfaces full identity for users who actually need it. */
.topbar-user-compact { padding: 0.25rem; gap: 0; }
.topbar-user-compact .avatar { width: 32px !important; height: 32px !important; }
.topbar-notif-panel { position: fixed; top: calc(var(--topbar-height) + 4px); right: 1rem; width: 340px; max-height: 400px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 999; }
.topbar-notif-header { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.topbar-notif-header strong { font-size: 0.875rem; }
.topbar-notif-header button { background: none; border: none; color: var(--accent-secondary); cursor: pointer; font-size: 0.6875rem; font-weight: 600; }

/* Block picker on portal home */
.section-title { font-family: 'Rajdhani',sans-serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.625rem; }
.block-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.block-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem 1.75rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); text-decoration: none; transition: all 0.2s ease; position: relative; overflow: hidden; min-height: 220px; }
.block-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--block-accent, var(--accent-secondary)) 0%, transparent 60%); opacity: 0.08; transition: opacity 0.2s; pointer-events: none; }
.block-card:hover { transform: translateY(-3px); border-color: var(--block-accent, var(--accent-secondary)); box-shadow: 0 12px 32px rgba(0,0,0,0.4); color: var(--text-primary); }
.block-card:hover::before { opacity: 0.2; }
.block-card .block-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; color: var(--block-accent, var(--accent-secondary)); background: rgba(239,68,68,0.1); margin-bottom: 1rem; position: relative; }
.block-card h2 { font-size: 1.375rem; font-family: 'Rajdhani',sans-serif; margin-bottom: 0.375rem; position: relative; }
.block-card p { font-size: 0.875rem; color: var(--text-secondary); max-width: 220px; position: relative; }
.block-card-cad { --block-accent: #3b82f6; }
.block-card-cad .block-icon { background: rgba(59,130,246,0.12); }
.block-card-admin { --block-accent: #f59e0b; }
.block-card-admin .block-icon { background: rgba(245,158,11,0.12); }
.block-card-community { --block-accent: #22c55e; }
.block-card-community .block-icon { background: rgba(34,197,94,0.12); }

/* Sub-cards (inside a category drill-in) */
.subcard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.875rem; margin-bottom: 1.5rem; }
.subcard { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--text-primary); text-decoration: none; transition: all 0.18s ease; min-height: 120px; gap: 0.625rem; }
.subcard:hover { transform: translateY(-2px); border-color: var(--subcard-accent, var(--accent-secondary)); background: var(--bg-card-hover); color: var(--text-primary); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.subcard i:first-child { font-size: 1.5rem; color: var(--subcard-accent, var(--accent-secondary)); opacity: 0.85; }
.subcard span { font-size: 0.8125rem; font-weight: 600; }

/* Reusable badge pill — used by section headers, settings tabs, admin
   tables, and dashboard counters. Originally lived under .sidebar; the
   sidebar is gone but the badge stayed because half the portal renders
   counts through it. */
.nav-badge {
    display: inline-block;
    background: rgba(239,68,68,0.18);
    color: var(--accent-secondary);
    font-size: 0.625rem;
    line-height: 1.2;
    padding: 0.0625rem 0.4375rem;
    border-radius: 99px;
    font-weight: 700;
    text-align: center;
    min-width: 1.25rem;
    /* Tabular numerals so 11/22 don't shift width vs 1/2. */
    font-variant-numeric: tabular-nums;
    /* When a badge sits next to a heading/button text, keep it level. */
    vertical-align: middle;
}
/* Empty badges or badges containing literal "0" auto-mute: if a counter is
   zero we don't want the loud red/orange pill drawing the eye. Anything
   non-zero keeps its original color. */
.nav-badge:empty { display: none !important; }
.nav-badge[data-count="0"] { background: rgba(255,255,255,0.06) !important; color: var(--text-muted) !important; }

.portal-content { min-width: 0; padding: 1.5rem 2rem 4rem; max-width: 1400px; width: 100%; margin-left: auto; margin-right: auto; overflow-x: hidden; }
.portal-page-header { margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.portal-page-header h1 { font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; } .portal-page-header p { color: var(--text-secondary); font-size: 0.8125rem; }

/* ── Stats ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.875rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.125rem 1.25rem; }
.stat-card .stat-label { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.stat-card .stat-value { font-family: 'Rajdhani', sans-serif; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }

/* ── Tables ────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; } thead { background: var(--bg-secondary); }
th { padding: 0.625rem 1rem; text-align: left; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.8125rem; } tr:last-child td { border-bottom: none; } tr:hover td { background: rgba(255,255,255,0.015); }

/* ── Forms ─────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; } .form-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.375rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.5625rem 0.875rem; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.8125rem; transition: border-color var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { min-height: 80px; resize: vertical; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.875rem; }
.form-actions { display: flex; gap: 0.625rem; margin-top: 1.25rem; }

/* ── Badges ────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; border-radius: 4px; font-size: 0.6875rem; font-weight: 600; background: color-mix(in srgb, var(--badge-color) 15%, transparent); color: var(--badge-color); border: 1px solid color-mix(in srgb, var(--badge-color) 25%, transparent); }

/* ── Avatars ───────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-secondary); color: var(--accent-secondary); font-family: 'Rajdhani', sans-serif; font-weight: 700; border: 2px solid var(--border); }

/* ── Flash ─────────────────────────────────────────── */
.flash { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.8125rem; font-weight: 500; border: 1px solid; }
.flash-success { background: rgba(34,197,94,0.08); color: var(--success); border-color: rgba(34,197,94,0.2); }
.flash-error { background: rgba(239,68,68,0.08); color: var(--danger); border-color: rgba(239,68,68,0.2); }
.flash-warning { background: rgba(245,158,11,0.08); color: var(--warning); border-color: rgba(245,158,11,0.2); }
.flash-info { background: rgba(59,130,246,0.08); color: var(--info); border-color: rgba(59,130,246,0.2); }

/* ── Empty State ───────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); } .empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.2; } .empty-state h3 { color: var(--text-secondary); margin-bottom: 0.375rem; font-size: 1.0625rem; }

/* ── Sections ──────────────────────────────────────── */
.section { padding: 4rem 2rem; max-width: 1100px; margin: 0 auto; } .section h2 { font-size: 1.75rem; margin-bottom: 0.375rem; } .section .subtitle { color: var(--text-secondary); margin-bottom: 1.75rem; font-size: 0.9375rem; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* Dept cards are defined further down ("Dept Cards Enhanced") — kept
   together with the other dept-card visuals. */

/* ── CAD Specifics ─────────────────────────────────── */
.cad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.625rem; }
.unit-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.625rem; text-align: center; }
.unit-callsign { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.125rem; }

/* ── Unit Status Dropdown (status-bar.php) ─────────────
   Custom dropdown that replaces the native <select> on the MDT status
   bar. The native element stays in the DOM (offscreen) for form submit;
   this is the visible UI. --status-color is set inline per row from PHP. */
.status-select-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    white-space: nowrap !important; border: 0 !important;
}
.status-control {
    position: relative;
    display: inline-block;
}
.status-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3125rem 0.75rem 0.3125rem 0.625rem;
    border: 1px solid color-mix(in srgb, var(--status-color, #22c55e) 40%, transparent);
    background: color-mix(in srgb, var(--status-color, #22c55e) 12%, var(--bg-card));
    color: var(--status-color, #22c55e);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.06s;
    min-width: 130px;
}
.status-trigger:hover {
    background: color-mix(in srgb, var(--status-color, #22c55e) 22%, var(--bg-card));
    border-color: color-mix(in srgb, var(--status-color, #22c55e) 60%, transparent);
}
.status-trigger:active { transform: translateY(1px); }
.status-trigger:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--status-color, #22c55e) 70%, transparent);
    outline-offset: 2px;
}
.status-trigger .status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--status-color, #22c55e);
    box-shadow: 0 0 6px color-mix(in srgb, var(--status-color, #22c55e) 65%, transparent);
    flex-shrink: 0;
    /* Subtle pulse on dot — gives the "live" feel without being noisy. */
    animation: statusDotPulse 2.4s ease-in-out infinite;
}
@keyframes statusDotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
/* Status icon (the one between the dot and the label). The chevron has
   its own .status-chevron class so this :not() filter scopes it. */
.status-trigger > i:not(.status-chevron) {
    font-size: 0.75rem;
    flex-shrink: 0;
}
.status-trigger .status-text { flex: 1; text-align: left; }
.status-trigger .status-chevron {
    font-size: 0.5625rem;
    opacity: 0.7;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}
.status-control[data-open="1"] .status-trigger .status-chevron {
    transform: rotate(180deg);
}

.status-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.3);
    padding: 0.3125rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 1px;
    animation: statusMenuIn 0.14s ease;
}
@keyframes statusMenuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.status-menu[hidden] { display: none; }

.status-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
    width: 100%;
}
.status-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}
.status-item .status-item-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--c, var(--text-muted));
    flex-shrink: 0;
}
.status-item .status-item-icon {
    font-size: 0.75rem;
    color: var(--c, var(--text-muted));
    width: 14px;
    text-align: center;
    opacity: 0.85;
}
.status-item .status-item-label { flex: 1; }
.status-item .status-item-check {
    font-size: 0.625rem;
    color: var(--c, var(--accent-secondary));
}
.status-item.active {
    background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
    color: var(--c, var(--accent-secondary));
    font-weight: 700;
}
.status-item.active .status-item-icon { opacity: 1; }
.status-item:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--c, var(--accent)) 60%, transparent);
    outline-offset: -2px;
}

/* ── Modals ────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease; }
.modal-overlay.active { display: flex; opacity: 1; animation: fadeIn 0.2s ease; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; max-width: 540px; width: 92%; max-height: 85vh; overflow-y: auto; transform: scale(0.95) translateY(10px); animation: modalSlideIn 0.25s ease forwards; }
.modal h2 { margin-bottom: 1.25rem; font-size: 1.25rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

/* ── Priority Banner ───────────────────────────────── */
.priority-banner { background: linear-gradient(90deg, rgba(239,68,68,0.12), rgba(239,68,68,0.03)); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--radius-lg); padding: 0.875rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0%,100% { border-color: rgba(239,68,68,0.3); } 50% { border-color: rgba(239,68,68,0.1); } }
.priority-banner .priority-icon { font-size: 1.75rem; color: var(--danger); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Duty Indicator ────────────────────────────────── */
.duty-indicator { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 99px; font-size: 0.6875rem; font-weight: 600; }
.duty-on { background: rgba(34,197,94,0.1); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.duty-off { background: rgba(107,114,128,0.1); color: var(--text-muted); border: 1px solid rgba(107,114,128,0.2); }

/* ── Pagination ────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .portal-content { padding: 1rem; }
    .topbar { padding: 0 0.75rem; gap: 0.5rem; }
    .topbar-aop { display: none; }
    .topbar-user-info { display: none; }
    .topbar-link span { display: none; }
    .pub-nav { display: none; }
    .cad-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Utilities ─────────────────────────────────────── */
.text-center { text-align: center; } .text-accent { color: var(--accent-secondary); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.hidden { display: none !important; }

/* ── Plate Badge ─────────────────────────────────────
   Mirrors the SA-style plates rendered in slg_radar's NUI. Two variants:
     • .plate-badge       — full plate, uses the actual GTA SA license
                            plate PNG as background (same image the radar
                            uses). Plate text overlays the image's
                            number area in the German-FE plate font.
     • .plate-badge-sm    — compact CSS-only badge for tight table cells.

   Plate-type variant classes (.is-exempt, .is-black, .is-blue, .is-wo,
   .is-yankton) swap the background image to match the GTA plate-text
   index, same as the radar's per-slot variants. */
@font-face {
    font-family: 'plate';
    src: url('/assets/fonts/GL-Nummernschild-Mtl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.plate-badge {
    display: inline-block;
    position: relative;
    width: 88px;
    height: 38px;
    background-image: url('/assets/images/san_andreas.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
    /* Plate text — positioned over the number area on the image
       (lower portion; the top quarter is the "SAN ANDREAS" header
       baked into the PNG). */
    font-family: 'plate', 'Courier New', monospace;
    font-weight: 700;
    color: #1a2a5b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
    text-align: center;
    /* Indent + flexbox align for vertical centering inside the image. */
    padding-top: 17px;
    font-size: 12px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
/* Plate-type variants — same files, same look as the radar. */
.plate-badge.is-exempt  { background-image: url('/assets/images/san_andreas_exempt.png'); color: #f1ead5; }
.plate-badge.is-black   { background-image: url('/assets/images/san_andreas_black.png');  color: #f3c64a; }
.plate-badge.is-blue    { background-image: url('/assets/images/san_andreas_blue.png');   }
.plate-badge.is-wo      { background-image: url('/assets/images/san_andreas_wo.png');     }
.plate-badge.is-yankton { background-image: url('/assets/images/yankton.png');            }
/* Stolen — red glow ring around the plate. Doesn't change the image so
   the plate stays readable. */
.plate-badge.stolen { box-shadow: 0 0 0 2px var(--danger), 0 0 8px rgba(239,68,68,0.55); border-radius: 3px; }
/* Small variant — same actual-plate image, scaled to a row-friendly size.
   Used in tight contexts (BOLO row, search-result cards) where the full
   88×38 plate looks oversized. Different from .plate-badge-sm which is
   the older flat (no image) variant kept for backwards compat. */
.plate-badge.is-sm { width: 64px; height: 28px; font-size: 9px; padding-top: 12px; letter-spacing: 1px; }
/* Compact variant — drops the image, smaller padding/font. Use inside
   tight table cells where the full plate would dominate the row. */
.plate-badge-sm {
    display: inline-block;
    background: #f3ecd2;
    color: #1a2a5b;
    font-family: 'plate', 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.0625rem 0.375rem;
    border: 1px solid #1a2a5b;
    border-radius: 2px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    vertical-align: middle;
}
/* Variants — same plate-type indices the radar uses (PLATE_TYPE_CLASS in
   radar.js). Compact badge so we approximate each variant's color tone:
     1 / 5 = is-black  → black field, gold numerals
     2     = is-yankton → light field with North Yankton blue numerals
     4     = is-exempt  → dark navy field with cream numerals (LSPD/EXEMPT) */
.plate-badge-sm.is-black   { background: #181818; color: #f3c64a; border-color: #f3c64a; }
.plate-badge-sm.is-yankton { background: #f6f4ec; color: #1f3a8a; border-color: #1f3a8a; }
.plate-badge-sm.is-exempt  { background: #1a2a5b; color: #f1ead5; border-color: #f1ead5; }
.plate-badge-sm.is-blue    { background: #f3ecd2; color: #1f3a8a; border-color: #1f3a8a; }
.plate-badge-sm.is-wo      { background: #f3ecd2; color: #1a2a5b; border-color: #1a2a5b; }
/* Stolen — red border + text, applied LAST so it wins regardless of variant. */
.plate-badge-sm.stolen { border-color: var(--danger); color: var(--danger); }

/* ── Quick Access Tiles ────────────────────────────── */
.quick-tile { text-align: center; text-decoration: none; color: inherit; padding: 1.25rem; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tile-color, var(--accent-secondary)) 30%, transparent) !important; border-top: 3px solid var(--tile-color, var(--accent-secondary)) !important; }
.quick-tile::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(circle at 50% 0%, var(--tile-color, var(--accent-secondary)) 0%, transparent 70%); }
.quick-tile:hover::before { opacity: 0.06; }
.quick-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); border-color: var(--tile-color, var(--accent-secondary)) !important; }
.quick-tile .tile-icon { font-size: 1.75rem; margin-bottom: 0.5rem; display: block; transition: transform 0.3s ease; color: var(--tile-color, var(--accent-secondary)); }
.quick-tile:hover .tile-icon { transform: scale(1.1); }

/* ── Wanted Glow ───────────────────────────────────── */
.wanted-glow { border: 1px solid rgba(239,68,68,0.4) !important; box-shadow: 0 0 16px rgba(239,68,68,0.15), inset 0 0 16px rgba(239,68,68,0.03); animation: wantedPulse 2s infinite; }
@keyframes wantedPulse { 0%,100% { box-shadow: 0 0 16px rgba(239,68,68,0.15); } 50% { box-shadow: 0 0 24px rgba(239,68,68,0.25); } }

/* ── Stat Counter Animation ────────────────────────── */
.stat-value[data-count] { animation: countFadeIn 0.6s ease-out; }
@keyframes countFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── CAD Ticker ────────────────────────────────────── */
.cad-ticker { overflow: hidden; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.375rem 0.75rem; margin-bottom: 1rem; position: relative; }
.cad-ticker::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.cad-ticker-inner { display: flex; gap: 2rem; animation: tickerScroll 30s linear infinite; white-space: nowrap; font-size: 0.75rem; color: var(--text-muted); }
.cad-ticker-inner:hover { animation-play-state: paused; }
.cad-ticker-item { display: inline-flex; align-items: center; gap: 0.375rem; }
.cad-ticker-item .ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-secondary); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Dept Cards Enhanced ───────────────────────────── */
.dept-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; position: relative; overflow: hidden; transition: all 0.3s ease; }
.dept-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--dept-color, var(--accent)); }
.dept-card::after { content: ''; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: var(--dept-color, var(--accent)); opacity: 0.03; border-radius: 50%; transform: translate(30%, -30%); transition: all 0.3s ease; }
.dept-card:hover { border-color: var(--dept-color, var(--accent)); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }
.dept-card:hover::after { opacity: 0.06; transform: translate(20%, -20%) scale(1.5); }
.dept-card h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; } .dept-card .dept-abbr { color: var(--dept-color, var(--accent)); font-size: 0.75rem; font-weight: 600; margin-bottom: 0.375rem; }

/* ── Search Result Photo Glow ──────────────────────── */
.civ-photo { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); transition: border-color 0.3s ease; }
.civ-photo.wanted { border-color: var(--danger); box-shadow: 0 0 16px rgba(239,68,68,0.3); animation: wantedPulse 2s infinite; }

/* ── Smooth page transitions ───────────────────────── */
.portal-content { animation: pageSlideIn 0.3s ease; }
@keyframes pageSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Reusable search/segmented design language ─────────
   Extracted from the unified CAD search modal so the same look can be
   reused on any page. All new class names — no existing markup is
   affected. Pair `.ui-seg` with the small initUiSeg() helper to slide
   the glider; `.ui-input-glow` adds the accent focus ring; `.ui-stagger`
   fades its children in with a stagger. */
.ui-seg { position: relative; display: inline-flex; gap: 0.25rem; padding: 0.25rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 11px; }
.ui-seg-glider { position: absolute; top: 0.25rem; left: 0; height: calc(100% - 0.5rem); width: 0; border-radius: 8px; background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform 0.32s cubic-bezier(.4,.8,.3,1), width 0.32s cubic-bezier(.4,.8,.3,1); z-index: 0; pointer-events: none; }
.ui-seg-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border: 0; background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; border-radius: 8px; transition: color 0.2s ease; white-space: nowrap; }
.ui-seg-btn i { font-size: 0.8125rem; transition: color 0.2s ease; }
.ui-seg-btn:hover { color: var(--text-primary); }
.ui-seg-btn.active, .ui-seg-btn.active i { color: #fff; }

.ui-input-glow { transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.ui-input-glow:focus { outline: none; border-color: var(--accent); background: var(--bg-secondary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.ui-stagger > * { animation: uiStaggerIn 0.28s ease both; }
.ui-stagger > *:nth-child(1) { animation-delay: 0.02s; }
.ui-stagger > *:nth-child(2) { animation-delay: 0.05s; }
.ui-stagger > *:nth-child(3) { animation-delay: 0.08s; }
.ui-stagger > *:nth-child(4) { animation-delay: 0.11s; }
.ui-stagger > *:nth-child(5) { animation-delay: 0.14s; }
.ui-stagger > *:nth-child(6) { animation-delay: 0.17s; }
.ui-stagger > *:nth-child(n+7) { animation-delay: 0.19s; }
@keyframes uiStaggerIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
