/* main_style.css — Hunting Vendor (mobile-first, dark glass theme) */
:root {
    --bg: #0b0e1a;
    --bg_2: #121628;
    --surface: rgba(255, 255, 255, 0.045);
    --surface_2: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.09);
    --text: #e8eaf6;
    --muted: #9198b8;
    --primary: hsl(258, 90%, 66%);
    --primary_2: hsl(190, 90%, 55%);
    --accent: hsl(160, 75%, 50%);
    --danger: hsl(352, 85%, 62%);
    --warn: hsl(38, 95%, 60%);
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary_2) 100%);
    --radius: 16px;
    --radius_sm: 10px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --nav_h: 64px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.5;
    background:
        radial-gradient(1200px 600px at 100% -10%, hsla(258, 90%, 50%, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, hsla(190, 90%, 45%, 0.14), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
}
a { color: var(--primary_2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
code { font-size: 0.85em; background: var(--surface_2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.req { color: var(--danger); font-weight: 600; }
.grad_text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font: 600 14px var(--font); color: var(--text); cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
    text-decoration: none !important;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn_primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px hsla(258, 90%, 60%, .7); }
.btn_primary:hover { box-shadow: 0 10px 30px -6px hsla(258, 90%, 60%, .9); }
.btn_soft { background: hsla(258, 90%, 66%, .15); color: hsl(258, 100%, 85%); border-color: hsla(258, 90%, 66%, .3); }
.btn_ghost { background: var(--surface); border-color: var(--border); }
.btn_ghost:hover { background: var(--surface_2); }
.btn_danger { background: var(--danger); color: #fff; }
.btn_block { width: 100%; }
.btn_sq { width: 44px; padding: 0; flex: none; font-size: 18px; }
.icon_btn {
    width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px;
    transition: background .2s, transform .15s;
}
.icon_btn:hover { background: var(--surface_2); }
.icon_btn.danger:hover { background: hsla(352, 85%, 62%, .2); border-color: hsla(352, 85%, 62%, .4); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none !important; }
.brand_lg { font-size: 22px; }

/* ---------- Login ---------- */
.login_wrap {
    position: relative; min-height: 100vh; display: grid; gap: 28px; padding: 32px 20px; align-content: center;
    max-width: 1100px; margin: 0 auto; overflow: hidden;
}
.login_glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(90px); opacity: .45; z-index: -1; animation: float 12s ease-in-out infinite; }
.glow_a { background: var(--primary); top: -80px; right: -60px; }
.glow_b { background: var(--primary_2); bottom: -100px; left: -80px; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.1); } }
.login_hero h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; margin: 24px 0 14px; }
.lead { font-size: 17px; color: var(--muted); max-width: 520px; }
.feature_list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature_list li { display: flex; align-items: center; gap: 12px; color: #cfd3ea; }
.feat_icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--surface_2); border: 1px solid var(--border); }
.login_card { border-radius: 24px; padding: 32px 26px; box-shadow: var(--shadow); animation: rise .6s ease both; }
.login_card h2 { font-size: 26px; margin-bottom: 6px; }
.btn_google {
    margin: 22px 0 12px; display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 14px;
    background: #fff; color: #1f1f1f; font-weight: 700; text-decoration: none !important; transition: transform .15s, box-shadow .2s;
    box-shadow: 0 10px 30px -10px rgba(255,255,255,.35);
}
.btn_google:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255,255,255,.45); }
.login_footer { text-align: center; }
.alert { padding: 12px 14px; border-radius: 12px; margin-top: 16px; font-size: 14px; }
.alert_error { background: hsla(352, 85%, 62%, .14); border: 1px solid hsla(352, 85%, 62%, .35); color: #ffc2cb; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- App shell (mobile first: bottom nav) ---------- */
.app_shell { min-height: 100vh; }
.side_nav {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--nav_h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(13, 16, 32, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border);
}
.side_nav .brand, .side_footer { display: none; }
.nav_list { display: flex; height: var(--nav_h); }
.nav_link {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none !important; position: relative; transition: color .2s;
}
.nav_ico { font-size: 20px; filter: grayscale(1) opacity(.7); transition: filter .2s, transform .2s; }
.nav_link.active { color: var(--text); }
.nav_link.active .nav_ico { filter: none; transform: translateY(-2px); }
.nav_link.active::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
.main_area { padding: 20px 14px calc(var(--nav_h) + 90px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }

.page { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.page_head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.page_title { font-size: 24px; font-weight: 800; }
.page_head .muted { margin: 2px 0 0; font-size: 13px; }
.page_head .btn_primary { display: none; }
.card { border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }

.user_chip { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #fff; }
.user_meta { display: flex; flex-direction: column; min-width: 0; }
.user_meta strong, .user_meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user_meta small { color: var(--muted); font-size: 12px; }
.copyright { margin: 12px 0 0; }

.fab {
    position: fixed; right: 18px; bottom: calc(var(--nav_h) + 18px + env(safe-area-inset-bottom)); z-index: 41;
    width: 58px; height: 58px; border-radius: 18px; border: 0; background: var(--grad); color: #fff; font-size: 28px; cursor: pointer;
    box-shadow: 0 14px 30px -8px hsla(258, 90%, 60%, .8); transition: transform .2s;
}
.fab:active { transform: scale(.92); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #cfd3ea; }
input, select, textarea {
    width: 100%; font: 500 15px var(--font); color: var(--text); background: rgba(0, 0, 0, .25);
    border: 1px solid var(--border); border-radius: var(--radius_sm); padding: 11px 13px; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
input, select { height: 46px; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg_2); color: var(--text); }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px hsla(258, 90%, 66%, .18); background: rgba(0,0,0,.35); }
input::placeholder, textarea::placeholder { color: #5f6688; }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px hsla(352, 85%, 62%, .15) !important; }
.hint { color: var(--muted); font-size: 12px; }
/* Inline error banner inside modals */
.form_error_banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: hsla(352, 85%, 62%, .13); border: 1px solid hsla(352, 85%, 62%, .35);
    border-left: 4px solid var(--danger);
    color: hsl(352, 90%, 80%); font-size: 13.5px; font-weight: 500;
    padding: 11px 14px; border-radius: 12px; margin-bottom: 16px;
    animation: banner_in .22s ease both;
}
.form_error_banner[hidden] { display: none !important; }
.form_error_banner .fe_icon { font-size: 16px; flex: none; line-height: 1.4; }
.form_error_banner .fe_msg { flex: 1; line-height: 1.45; }
@keyframes banner_in { from { opacity: 0; transform: translateY(-6px); } }
.grid_2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.grid_loc { grid-template-columns: 1fr 1fr; }
.input_row { display: flex; gap: 8px; }
.form_card { max-width: 720px; padding: 20px; }
.form_actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.section_label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 12px; }
.section_label:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.loc_actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Data table ---------- */
.dt_toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.dt_search { position: relative; flex: 1; }
.dt_search input { padding-left: 38px; }
.dt_search_ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.dt_len { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.dt_len select { width: 78px; }
.dt_table { width: 100%; border-collapse: collapse; }
.dt_table thead { display: none; }
.dt_table tbody { display: grid; gap: 10px; }
.dt_table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: background .2s, transform .2s; }
.dt_table td { display: block; padding: 0; font-size: 14px; min-width: 0; }
.dt_table td.col_main { grid-column: 1 / -1; }
.dt_table td.col_actions { grid-column: 2; grid-row: 2 / span 5; align-self: end; }
.dt_table td:not(.col_main):not(.col_actions)::before { content: attr(data-label); display: inline-block; min-width: 72px; color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 6px; }
.dt_table td.dt_empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: var(--muted); }
.dt_table td.dt_empty::before { display: none; }
.is_loading .dt_table tbody { opacity: .55; transition: opacity .2s; }
.dt_footer { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.dt_pager { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.dt_pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer; }
.dt_pager button.active { background: var(--grad); border-color: transparent; color: #fff; }
.dt_pager button:disabled { opacity: .35; cursor: default; }
.dt_gap { padding: 0 4px; align-self: center; color: var(--muted); }
.cell_main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.cell_main > div { min-width: 0; display: flex; flex-direction: column; }
.row_thumb { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface_2); border: 1px solid var(--border); }
.row_thumb_empty { display: grid; place-items: center; font-size: 22px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.price { color: hsl(160, 80%, 65%); }
.pill { display: inline-block; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface_2); }
.row_btns { display: flex; gap: 6px; justify-content: flex-end; }
.wa_link { color: hsl(142, 70%, 60%); font-size: 13px; }
.skeleton { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface_2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk_row td::before { display: none !important; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modals ---------- */
.modal {
    padding: 0; border: 1px solid var(--border); color: var(--text); background: var(--bg_2);
    width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0;
    box-shadow: var(--shadow);
}
.modal[open] { animation: sheet .28s cubic-bezier(.2, .9, .3, 1.1) both; }
.modal::backdrop { background: rgba(5, 6, 14, .7); backdrop-filter: blur(4px); }
@keyframes sheet { from { opacity: 0; transform: translateY(30px); } }
.modal_form { display: flex; flex-direction: column; height: 100%; }
.modal_head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg_2); z-index: 2; }
.modal_head h3 { font-size: 18px; }
.modal_body { padding: 16px; overflow-y: auto; flex: 1; }
.modal_foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg_2); position: sticky; bottom: 0; flex-wrap: wrap; }
.modal_foot .btn_ghost[data-close] { margin-right: auto; }
.modal_form.is_loading .modal_body { opacity: .5; pointer-events: none; }
.modal_sm { height: auto; max-width: 440px; margin: auto; border-radius: 20px; width: calc(100% - 32px); }
.confirm_body { text-align: center; }
.confirm_icon { font-size: 40px; margin-bottom: 6px; }
.confirm_body h3 { margin-bottom: 6px; }

/* ---------- Media picker ---------- */
.mp_drop { border: 1.5px dashed rgba(255,255,255,.18); border-radius: 14px; padding: 14px; text-align: center; transition: border-color .2s, background .2s; }
.mp_drop.drag { border-color: var(--primary); background: hsla(258, 90%, 66%, .08); }
.media_picker.invalid .mp_drop { border-color: var(--danger); background: hsla(352, 85%, 62%, .06); }
.mp_buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mp_btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer; transition: background .2s, transform .15s, border-color .2s;
}
.mp_btn span { font-size: 24px; }
.mp_btn:hover { background: var(--surface_2); border-color: hsla(258, 90%, 66%, .4); }
.mp_btn:active { transform: scale(.96); }
.mp_hint { margin: 10px 0 0; }
.mp_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.mp_grid:empty { display: none; }
.mp_tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface_2); border: 1px solid var(--border); animation: pop .25s ease both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.mp_tile.is_new { border-color: hsla(160, 75%, 50%, .5); }
.mp_tile.removed { opacity: .35; }
.mp_tile.removed .mp_view { filter: grayscale(1); }
.mp_view { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.mp_view img, .mp_view video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mp_badge { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.mp_pdf { display: grid; place-items: center; height: 100%; font-weight: 800; color: hsl(352, 85%, 70%); font-size: 18px; }
.mp_name { display: block; font-size: 10.5px; padding: 4px 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp_remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 13px; }

/* ---------- Camera ---------- */
.modal_camera { background: #000; border: 0; display: none; }
.modal_camera[open] { display: flex; flex-direction: column; }
.camera_wrap { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; }
.camera_wrap video { width: 100%; height: 100%; object-fit: contain; }
.camera_wrap video.mirror { transform: scaleX(-1); }
.camera_rec { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(220, 30, 60, .85); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.camera_bar { display: flex; align-items: center; justify-content: space-around; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: #000; }
.camera_bar .icon_btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); border: 0; font-size: 20px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: rgba(255,255,255,.9); cursor: pointer; transition: transform .1s, background .2s, border-radius .2s; }
.shutter:active { transform: scale(.9); }
.is_video .shutter { background: hsl(352, 85%, 55%); }
.shutter.recording { border-radius: 18px; transform: scale(.8); }
.modal_camera.flash .camera_wrap::after { content: ''; position: absolute; inset: 0; background: #fff; animation: flash .18s ease; }
@keyframes flash { from { opacity: .8; } to { opacity: 0; } }

/* ---------- Viewer ---------- */
.modal_viewer { background: rgba(0,0,0,.92); border: 0; display: none; }
.modal_viewer[open] { display: grid; place-items: center; }
.viewer_body img, .viewer_body video { max-width: 100vw; max-height: 100vh; display: block; }
.viewer_close { position: absolute; top: 14px; right: 14px; z-index: 3; }

/* ---------- Toast ---------- */
.toast_stack { position: fixed; z-index: 1000; top: 14px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; background: #1b2140; border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: none; }
.toast_success { border-left: 4px solid var(--accent); }
.toast_error { border-left: 4px solid var(--danger); }

/* ---------- Toggle switch ---------- */
.toggle_field { margin-bottom: 16px; }
.toggle_label { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.toggle_wrap { position: relative; flex: none; margin-top: 2px; }
.toggle_wrap input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle_track {
    display: block; width: 48px; height: 28px; border-radius: 999px;
    background: var(--surface_2); border: 1px solid var(--border);
    position: relative; transition: background .25s, border-color .25s;
}
.toggle_thumb {
    position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--muted); transition: transform .25s cubic-bezier(.3,1.4,.5,1), background .25s;
}
.toggle_wrap input:checked ~ .toggle_track { background: var(--accent); border-color: var(--accent); }
.toggle_wrap input:checked ~ .toggle_track .toggle_thumb { transform: translateX(20px); background: #fff; }
.toggle_wrap input:focus-visible ~ .toggle_track { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle_label > span:last-child { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 3px; }
.toggle_label > span:last-child small { font-weight: 400; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
    .grid_2 { grid-template-columns: 1fr 1fr; }
    .modal:not(.modal_camera):not(.modal_viewer) { height: auto; max-height: calc(100vh - 48px); max-width: 680px; margin: auto; border-radius: 22px; width: calc(100% - 48px); }
    .modal_sm { max-width: 440px !important; }
    .modal_form { max-height: calc(100vh - 48px); }
    .dt_footer { flex-direction: row; justify-content: space-between; }
}

/* ================= Desktop ================= */
@media (min-width: 1024px) {
    .side_nav {
        top: 0; right: auto; width: 260px; height: 100vh; padding: 22px 16px; border-top: 0; border-right: 1px solid var(--border);
        display: flex; flex-direction: column; gap: 26px;
    }
    .side_nav .brand { display: flex; padding: 0 8px; }
    .side_footer { display: block; margin-top: auto; }
    .nav_list { flex-direction: column; height: auto; gap: 4px; }
    .nav_link { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14.5px; }
    .nav_link:hover { background: var(--surface); color: var(--text); }
    .nav_link.active { background: var(--surface_2); }
    .nav_link.active::before { top: 50%; left: 0; width: 3px; height: 22px; transform: translateY(-50%); border-radius: 0 4px 4px 0; }
    .nav_ico { font-size: 18px; }
    .main_area { margin-left: 260px; padding: 34px 36px 50px; }
    .page_title { font-size: 30px; }
    .page_head .btn_primary { display: inline-flex; }
    .fab { display: none; }
    .card { padding: 20px; }

    .dt_table thead { display: table-header-group; }
    .dt_table tbody { display: table-row-group; }
    .dt_table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
    .dt_table tbody tr { border-top: 1px solid var(--border); }
    .dt_table tbody tr:hover { background: var(--surface); }
    .dt_table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; white-space: nowrap; user-select: none; }
    .dt_table th.sortable { cursor: pointer; }
    .dt_table th.sortable:hover { color: var(--text); }
    .sort_ico::after { content: '⇅'; margin-left: 6px; opacity: .35; font-style: normal; }
    th.sorted[data-dir="asc"] .sort_ico::after { content: '↑'; opacity: 1; color: var(--primary_2); }
    th.sorted[data-dir="desc"] .sort_ico::after { content: '↓'; opacity: 1; color: var(--primary_2); }
    .dt_table td { display: table-cell; padding: 12px; vertical-align: middle; }
    .dt_table td::before { display: none !important; }
    .dt_table td.dt_empty { display: table-cell; }
    .clamp { max-width: 380px; }
}

@media (min-width: 900px) {
    .login_wrap { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; }
    .login_footer { grid-column: 1 / -1; }
    .login_card { padding: 40px 36px; }
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Logout section (profile page) ---------- */
.logout_card {
    max-width: 720px;
    margin-top: 20px;
    padding: 20px;
    border-color: hsla(352, 85%, 62%, .22);
    background: hsla(352, 85%, 62%, .05);
}
.logout_info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.logout_icon {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 14px;
    border: 1px solid hsla(352, 85%, 62%, .3);
    background: hsla(352, 85%, 62%, .1);
    display: grid;
    place-items: center;
    font-size: 22px;
}
.logout_info h3 { margin-bottom: 2px; }
.logout_info .muted { font-size: 13px; margin: 0; }
.btn_logout {
    background: transparent;
    border: 1.5px solid hsla(352, 85%, 62%, .6);
    color: hsl(352, 85%, 70%);
    font-weight: 700;
    transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn_logout:hover {
    background: hsla(352, 85%, 62%, .18);
    border-color: hsl(352, 85%, 62%);
    color: #fff;
    box-shadow: 0 6px 20px -6px hsla(352, 85%, 62%, .5);
}
.btn_logout:active { transform: scale(0.97); }
#form_logout { display: flex; justify-content: flex-end; }

/* ---------- Admin nav group ---------- */
/* Mobile: flatten sub-links into the bottom bar row */
.nav_group { display: contents; }
.nav_group_label { display: none; }
.nav_sub { flex: 1; }

/* Desktop: show as indented group with label */
@media (min-width: 1024px) {
    .nav_group {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .nav_group_label {
        display: block;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .12em;
        color: var(--muted);
        padding: 0 14px 4px;
    }
    .nav_sub { flex: none; }
}
