/* ============================================================
   style.css v3 — Modern Dark Luxury
   FiveM Trade Platform
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --bg:           #080808;
    --bg-1:         #0f0f0f;
    --bg-2:         #161616;
    --bg-3:         #1e1e1e;
    --bg-4:         #252525;
    --border:       rgba(255,255,255,.07);
    --border-hover: rgba(255,255,255,.14);
    --text:         #f0f0f0;
    --text-2:       #a0a0a0;
    --text-3:       #606060;
    --accent:       #ffffff;
    --gold:         #c9a84c;
    --gold-dim:     rgba(201,168,76,.15);
    --gold-glow:    rgba(201,168,76,.25);
    --danger:       #f04646;
    --danger-dim:   rgba(240,70,70,.12);
    --success:      #3ecf8e;
    --success-dim:  rgba(62,207,142,.12);
    --purple:       #a78bfa;
    --purple-dim:   rgba(167,139,250,.1);
    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    16px;
    --shadow:       0 4px 24px rgba(0,0,0,.6);
    --shadow-lg:    0 8px 48px rgba(0,0,0,.8);
    --transition:   .18s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans Thai', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; }

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(8,8,8,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Logo */
.navbar .logo {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Nav menu */
.navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.navbar .nav-menu li a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .2px;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.navbar .nav-menu li a:hover {
    color: var(--text);
    background: var(--bg-3);
}

.navbar .nav-menu li a.active {
    color: var(--accent);
    background: var(--bg-3);
}

.navbar .nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 99px;
}

/* ── Profile dropdown ──────────────────────────────────────── */
.profile-menu { position: relative; }

.profile-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 99px;
    cursor: pointer;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}

.profile-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-3);
}

.profile-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.profile-btn .chevron {
    opacity: .4;
    transition: transform var(--transition);
}

.profile-btn[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 230px;
    overflow: hidden;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    animation: dropIn .15s ease;
}

@keyframes dropIn {
    from { opacity:0; transform:translateY(-6px) scale(.98); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.profile-dropdown.show { display: block; }

.profile-dropdown .dd-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-dropdown .dd-header img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.profile-dropdown .dd-header .dd-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.profile-dropdown .dd-header .dd-role {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 1px;
}

.profile-dropdown .dd-links { padding: 8px; }

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.profile-dropdown a .dd-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: background var(--transition);
}

.profile-dropdown a:hover { color: var(--text); background: var(--bg-3); }
.profile-dropdown a:hover .dd-icon { background: var(--bg-4); }

.profile-dropdown a.admin-link { color: var(--purple); }
.profile-dropdown a.admin-link .dd-icon { background: var(--purple-dim); }
.profile-dropdown a.admin-link:hover { background: var(--purple-dim); }

.profile-dropdown .dd-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
}

.profile-dropdown a.logout-link { color: var(--danger); }
.profile-dropdown a.logout-link .dd-icon { background: var(--danger-dim); }
.profile-dropdown a.logout-link:hover { background: var(--danger-dim); }

/* ================================================================
   AUTH PAGES (login, recaptcha)
   ================================================================ */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind card */
.auth-screen::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.auth-logo span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px var(--gold-glow);
}

.auth-tagline {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 36px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-3);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform .1s;
    font-family: inherit;
    letter-spacing: .2px;
}

.btn:hover {
    background: var(--bg-4);
    border-color: var(--border-hover);
}

.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-discord {
    background: #5865F2;
    border-color: #5865F2;
    color: #fff;
}
.btn-discord:hover { background: #4752c4; border-color: #4752c4; }

.btn-gold {
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border-color: transparent;
    color: #000;
}
.btn-gold:hover { background: linear-gradient(135deg, #b8963e, #d4b558); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; text-align: left; }

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
select:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

.form-group input:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 7px;
    line-height: 1.5;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 13.5px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.alert-error  { background: var(--danger-dim);  border: 1px solid rgba(240,70,70,.3);   color: #ff8080; }
.alert-success{ background: var(--success-dim); border: 1px solid rgba(62,207,142,.3);  color: #6ee7b7; }

/* reCAPTCHA */
.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

/* ================================================================
   PAGE LAYOUT
   ================================================================ */
.page-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 36px 28px;
}

/* Page header */
.page-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header-left .page-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 6px;
}

.page-header-left .page-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
}

.page-header-left .page-subtitle {
    font-size: 13.5px;
    color: var(--text-2);
    margin-top: 5px;
}

/* Card */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition);
}

.card:hover { border-color: var(--border-hover); }

/* ================================================================
   BANNER SYSTEM
   ================================================================ */
.banner-top-grid {
    display: grid;
    grid-template-columns: repeat(10, 150px);
    gap: 6px;
    justify-content: center;
    padding: 12px 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
}

.banner-cell {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-cell--filled img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: transform .3s ease, opacity .2s;
}

.banner-cell--filled:hover img { transform: scale(1.04); opacity: .9; }

.banner-cell--empty {
    border: 1px dashed rgba(255,255,255,.07);
    background: var(--bg-2);
}

.banner-cell--empty span { color: var(--text-3); font-size: 11px; }

/* Sticky banners — เลื่อนตามหน้า แต่หนีบอยู่ใกล้ content */
.banner-sticky {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 270px;
    border-radius: var(--radius);
    overflow: hidden;
    max-height: calc(100vh - 100px);
    transition: top .25s ease;
}

/* ตำแหน่ง left/right จะถูก override ด้วย JS ให้ชิดกับ .board-layout */
.banner-sticky--left  { left: 8px; }
.banner-sticky--right { right: 8px; }

.banner-sticky img {
    width: 270px;
    height: 540px;
    object-fit: cover;
    transition: opacity .2s;
}

.banner-sticky img:hover { opacity: .92; }

.banner-sticky-empty {
    width: 270px;
    height: 540px;
    border: 1px dashed rgba(255,255,255,.07);
    background: var(--bg-2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-sticky-empty span { color: var(--text-3); font-size: 11px; }

/* ================================================================
   PROFILE PAGE
   ================================================================ */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-dim) 0%, transparent 70%);
    pointer-events: none;
}

.profile-hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-hover);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.profile-hero-info { position: relative; z-index: 1; }

.profile-hero-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.profile-hero-discord {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .3px;
    border: 1px solid var(--border);
    color: var(--text-3);
    background: var(--bg-3);
}

.badge.verified {
    color: var(--success);
    border-color: rgba(62,207,142,.3);
    background: var(--success-dim);
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.admin-sidebar {
    width: 230px;
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-3);
    padding: 0 20px 14px;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13.5px;
    color: var(--text-2);
    transition: background var(--transition), color var(--transition);
    border-left: 2px solid transparent;
    margin: 1px 0;
}

.admin-sidebar a:hover { background: var(--bg-2); color: var(--text); }

.admin-sidebar a.active {
    background: var(--bg-2);
    color: var(--accent);
    border-left-color: var(--gold);
}

.admin-sidebar .sidebar-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.admin-sidebar a.active .sidebar-icon { background: var(--gold-dim); }

.admin-sidebar .sidebar-sep {
    height: 1px;
    background: var(--border);
    margin: 10px 16px;
}

/* Admin content */
.admin-content {
    flex: 1;
    padding: 30px 36px;
    overflow-x: auto;
    background: var(--bg);
}

.admin-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.3px;
    margin-bottom: 4px;
}

.admin-section-sub {
    color: var(--text-2);
    font-size: 13px;
    margin-bottom: 24px;
}

/* Stat cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition: border-color var(--transition);
}

.stat-card:hover { border-color: var(--border-hover); }

.stat-card .stat-icon {
    font-size: 22px;
    margin-bottom: 12px;
    opacity: .7;
}

.stat-card .stat-value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 5px;
    font-weight: 500;
}

/* Admin card */
.admin-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.admin-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Data table */
.table-wrap {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: var(--bg-1);
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover td { background: var(--bg-3); }

.avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid var(--border);
    object-fit: cover;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.ok      { color: var(--success); background: var(--success-dim); }
.status-badge.ok::before { background: var(--success); }
.status-badge.banned  { color: var(--danger);  background: var(--danger-dim); }
.status-badge.banned::before { background: var(--danger); }
.status-badge.active  { color: var(--success); background: var(--success-dim); }
.status-badge.active::before { background: var(--success); }
.status-badge.off     { color: var(--text-3);  background: var(--bg-3); }
.status-badge.off::before { background: var(--text-3); }
.status-badge.log-ok  { color: var(--success); background: var(--success-dim); }
.status-badge.log-ok::before { background: var(--success); }
.status-badge.log-ban { color: var(--danger);  background: var(--danger-dim); }
.status-badge.log-ban::before { background: var(--danger); }

/* Admin buttons */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-3);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-sm:hover { background: var(--bg-4); color: var(--text); border-color: var(--border-hover); }
.btn-sm.danger { color: var(--danger); border-color: rgba(240,70,70,.3); background: var(--danger-dim); }
.btn-sm.danger:hover { background: rgba(240,70,70,.2); }
.btn-sm.success { color: var(--success); border-color: rgba(62,207,142,.3); background: var(--success-dim); }
.btn-sm.success:hover { background: rgba(62,207,142,.2); }

/* Search bar */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

.search-input::placeholder { color: var(--text-3); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-2);
    color: var(--text-2);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.pagination a:hover { background: var(--bg-3); color: var(--text); }
.pagination .current { background: var(--bg-4); color: var(--accent); border-color: var(--border-hover); font-weight: 700; }

/* Banner position info cards */
.pos-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pos-info-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    font-size: 13px;
}

.pos-info-card .pos-name {
    font-family: monospace;
    font-size: 12px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.pos-info-card .pos-desc { color: var(--text-2); font-size: 12px; line-height: 1.6; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .navbar {
        padding: 0 16px;
        flex-wrap: wrap;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px;
    }

    .navbar .nav-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .banner-sticky { display: none; }

    .banner-top-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
    }

    .banner-cell { width: 100%; height: 80px; }
    .banner-cell--filled img { width: 100%; height: 80px; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; padding: 12px; gap: 4px; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-sidebar .sidebar-title { display: none; }
    .admin-sidebar a { padding: 8px 12px; border-left: none; border-radius: var(--radius-sm); font-size: 12px; }
    .admin-sidebar .sidebar-sep { display: none; }
    .admin-content { padding: 20px 16px; }

    .form-row { grid-template-columns: 1fr; }
    .pos-info-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .page-wrapper { padding: 20px 16px; }
    .profile-hero { flex-direction: column; text-align: center; }
}
