@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Exo+2:wght@500;600;700&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* =========================================================================
   TopFrag Suite Theme  —  Ban System & Admin System
   -------------------------------------------------------------------------
   Purely-visual overlay that re-skins the existing Ban/Admin/Shop/Stats
   markup to match the "Server Control Panel" design language
   (references/Server Control Panel/public/assets/css/app.css).

   Loaded via a <link> placed AFTER each page's original stylesheet, so
   equal-specificity rules here win the cascade. NO markup, id, class,
   data-attribute or DOM hook is changed anywhere — this file only restyles
   selectors that already exist.
   ========================================================================= */

:root {
    --bg: #080a10;
    --panel: #0d1020;
    --panel-alt: #11152a;
    --panel-2: #161b33;
    --border: #20253c;
    --border-soft: #2b3150;
    --text: #c8cee8;
    --text-bright: #eef2ff;
    --text-dim: #707a9e;
    --accent: #00f5c3;
    --accent-hover: #33ffdb;
    --accent2: #00c8ff;
    --glow: rgba(0, 245, 195, 0.34);
    --danger: #ff3b4e;
    --danger-bg: rgba(255, 59, 78, 0.12);
    --online: #22c55e;
    --online-bg: rgba(34, 197, 94, 0.12);
    --offline: #4d587b;
    --warning: #f5c451;
    --warning-bg: rgba(245, 196, 81, 0.12);
    --purple: #a78bfa;
    --purple-bg: rgba(167, 139, 250, 0.14);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 7px;

    --glass-bg: rgba(9, 10, 18, 0.82);
    --glass-blur: blur(16px) saturate(1.3);

    --font-body: 'Inter', 'Play', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Exo 2', 'Play', var(--font-body);
    --font-display: 'Orbitron', 'Play', var(--font-body);
    --font-cond: 'Rajdhani', 'Play', var(--font-body);
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    /* legacy shop token remap (keeps the shop's gold identity, aligned hue) */
    --gold: #f5c451;
    --gold-soft: #fdf1cf;
    --gold-dark: #b98f27;
}

* { box-sizing: border-box; }

html {
    color: var(--text);
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    background:
        radial-gradient(ellipse 55% 32% at 38% -5%, rgba(45, 120, 170, 0.20) 0%, rgba(18, 67, 95, 0.10) 35%, transparent 70%),
        radial-gradient(ellipse 55% 55% at 52% 38%, rgba(18, 63, 92, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 35% 55% at 8% 0%, rgba(0, 238, 210, 0.09) 0%, transparent 60%),
        radial-gradient(ellipse 45% 55% at 100% 80%, rgba(0, 210, 195, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.50) 100%),
        #050912;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* angled light shaft, fixed behind all page content, non-interactive.
   z-index:-1 keeps it strictly behind normal-flow content without needing
   to touch the position/z-index of any existing element. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 30%, rgba(69, 177, 220, 0.05) 42%, rgba(87, 190, 225, 0.10) 49%, rgba(64, 155, 205, 0.04) 57%, transparent 70%),
        linear-gradient(300deg, transparent 40%, rgba(0, 255, 220, 0.04) 50%, transparent 62%);
    filter: blur(30px);
}

a { color: inherit; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--text-bright);
    font-weight: 700;
}

::selection { background: rgba(0, 245, 195, 0.28); color: #fff; }

/* ---- Global scrollbars ---- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); background-clip: padding-box; }

/* =========================================================================
   Layout shells
   ========================================================================= */

.wrapper {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: min(1640px, calc(100% - 40px));
    margin: 26px auto 40px;
}

.panel-body {
    width: min(1480px, calc(100% - 40px));
    margin: 26px auto 40px;
    background: rgba(13, 16, 32, 0.92);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.wrapper > .panel-body {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.panel-header {
    background: var(--panel-alt);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.panel-content { padding: 20px 22px; }

.panel-side {
    width: 420px;
    flex-shrink: 0;
    margin: 0;
    height: auto;
    overflow: visible;
    position: sticky;
    top: 24px;
    color: var(--text);
}

/* forms live full-width inside the sticky side column */
.panel-side .form-add,
.panel-side .form-search {
    max-width: none;
    margin: 0 0 16px 0;
}

fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 0 18px;
    padding: 14px 16px;
    min-width: 0;
}
fieldset:last-child { margin-bottom: 0; }

.hr-line-top,
.hr-title,
.imaginary-br { border-color: var(--border) !important; }

/* =========================================================================
   Typography — module headings
   ========================================================================= */

.module-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 4px 0 16px 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-bright);
}

.module-description {
    margin: 0;
    font-style: normal;
    font-weight: 500;
    font-size: 12.5px;
    color: var(--text-dim);
    text-transform: none;
}

.purchase-title,
.title-player-identification,
.title-server,
.title-notes { color: var(--text-bright); }

/* =========================================================================
   Admin brand top-bar  (panel.php)  — mirrors the Server Control Panel topnav:
   logo · TOPFRAG wordmark · subtitle · nav links · user · logout
   ========================================================================= */

.tf-topnav {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    padding: 12px 32px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
}

.tf-topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.tf-topnav-logo {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.tf-topnav-mark {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 20px;
    line-height: 1;
    color: var(--text-bright);
    white-space: nowrap;
}

.tf-topnav-accent { color: var(--accent); }

.tf-topnav-sub {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

/* the relocated <nav class="navbar tf-topnav-links"> — .navbar already styles
   the links + dropdowns; this only lets it consume the middle space */
.tf-topnav-links {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
}

.tf-topnav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.tf-topnav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cond);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.tf-topnav-userinfo {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.tf-topnav-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-bright);
}

.tf-topnav-role {
    font-size: 11px;
    color: var(--text-dim);
}

.tf-topnav-logout {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tf-topnav-logout:hover {
    border-color: var(--danger);
    color: #fca5a5;
    background: var(--danger-bg);
}

@media (max-width: 1000px) {
    .tf-topnav { padding: 10px 18px; gap: 14px; }
    .tf-topnav-links { order: 3; flex-basis: 100%; }
}

@media (max-width: 600px) {
    .tf-topnav-sub { display: none; }
    .tf-topnav-userinfo { display: none; }
}

/* =========================================================================
   Admin panel navigation  (panel.php / modules/panel.php)
   ========================================================================= */

.navbar {
    overflow: visible;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: transparent;
    border-bottom: none;
    padding: 6px 10px;
}

.navbar a,
.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    float: none;
    color: var(--text-dim);
    font-family: var(--font-cond);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 10px 14px;
    margin: 2px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background: var(--panel-2);
    box-shadow: none;
    color: var(--text-bright);
}

.active_panel,
.navbar a.active_panel {
    background: var(--panel-2);
    box-shadow: none;
    color: var(--accent);
}

.navbar a[style*="float: right"],
.navbar a[style*="float:right"] {
    margin-left: auto;
    color: var(--text-dim);
}
.navbar a[style*="float: right"]:hover { color: #fca5a5; background: var(--danger-bg); }

.dropdown { float: none; position: relative; overflow: visible; }

.dropdown-content {
    top: 100%;
    left: 0;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    padding: 6px;
    margin-top: 2px;
    min-width: 190px;
}

.dropdown-content a {
    color: var(--text);
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: var(--radius-xs);
}

.dropdown-content a:hover {
    background: var(--panel-alt);
    box-shadow: none;
    color: var(--text-bright);
}

.active_subpanel {
    background: var(--panel-alt);
    color: var(--accent);
}

/* =========================================================================
   Public header / footer  (header.php / footer.php)
   ========================================================================= */

.header2 {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 60px;
    top: 0;
    margin: 0 0 26px 0;
    padding: 10px 26px;
    gap: 16px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.menu-left, .menu-right { gap: 4px; flex-wrap: wrap; }

.menu-button {
    background: transparent;
    color: var(--text-dim);
    padding: 9px 13px;
    margin-top: 0;
    border-radius: var(--radius-sm);
    font-family: var(--font-cond);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu-button:hover {
    background: var(--panel-2);
    color: var(--text-bright);
    border-color: var(--border);
}

.menu-button:not(:nth-child(2)):not(:last-child) {
    border-right: 1px solid transparent;
    padding-right: 13px;
}

.dropdown-container { margin-left: 6px; }

.search-icon {
    left: 12px;
    margin-top: 0;
    color: var(--text-dim);
}

.server-selector {
    padding: 9px 34px 9px 30px;
    border-radius: var(--radius-sm);
    background: var(--panel-alt);
    color: var(--text);
    border: 1px solid var(--border);
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 13px;
    margin-top: 0;
    margin-left: 8px;
}
.server-selector:focus { outline: none; border-color: var(--accent); }

/* central brand — flatten the rotated polygon into a plain inline logo */
.polygonheader {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    height: auto;
    background-image: none;
    clip-path: none;
    flex-shrink: 0;
}
.polygonheader img {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    height: 34px;
}

.footer {
    min-width: 0;
    width: 100%;
    margin: 40px 0 0 0;
    padding: 0;
    background: var(--panel);
    border-top: 1px solid var(--border);
}
.footer > div[style] {
    width: auto !important;
    max-width: 1480px !important;
    padding: 0 26px;
}

.footer-container {
    padding: 32px 0 8px;
    margin: 0 !important;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: space-between;
}

.footer-item { margin-right: 0; width: auto; max-width: 300px; flex: 1 1 220px; }

.footer-item-title {
    font-family: var(--font-cond);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.footer-item-box { color: var(--text-dim); font-size: 13px; }
.footer-item-box a:hover { color: var(--accent); }

.footer-border { border: none; border-top: 1px solid var(--border); }

.footer-copyright-credits {
    width: auto;
    padding: 18px 0 20px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.03em;
}

/* ---- Stats breadcrumb ---- */
.breadcrumb {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
}
.breadcrumb-link { font-family: var(--font-cond); font-weight: 600; font-size: 14px; }
.breadcrumb-link:hover,
.breadcrumb-link.active { color: var(--accent); }
.breadcrumb-separator { color: var(--text-dim); }

/* =========================================================================
   Form controls
   ========================================================================= */

/* Bare/unclassed fields fallback — kept a step below the class rules that
   follow (equal specificity, earlier in source) so those still win. */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input:not([type]),
textarea,
select {
    background: var(--panel-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 245, 195, 0.13);
}

input::placeholder,
textarea::placeholder { color: var(--text-dim); }

select option,
select optgroup { background: var(--panel); color: var(--text); }

.input-tf-style input,
.select-tf-style select,
.textarea-tf-style,
.bar-notes input,
.search-box input,
.shop-legacy-input,
.select,
.input,
.input-no-disabled {
    background: var(--panel-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-tf-style input { width: 100%; display: block; margin: 6px 0 0 0; }
.select-tf-style select { width: 100%; display: block; margin: 6px 0 0 0; }
.textarea-tf-style { width: 100%; min-height: 56px; }

.input-tf-style input:focus,
.select-tf-style select:focus,
.textarea-tf-style:focus,
.bar-notes input:focus,
.search-box input:focus,
.select:focus,
.input:focus,
.input-no-disabled:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 245, 195, 0.13);
}

.input-tf-style input::placeholder,
.textarea-tf-style::placeholder,
.bar-notes input::placeholder,
.search-box input::placeholder,
.input::placeholder,
.input-no-disabled::placeholder { color: var(--text-dim); }

.input-tf-style input:disabled,
.select-tf-style select:disabled,
.select:disabled,
.input:disabled,
.input-no-disabled:disabled {
    background: #1a1e30;
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.7;
}

.input-tf-style input:-webkit-autofill,
.bar-notes input:-webkit-autofill,
.search-box input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 40px var(--panel-alt) inset;
    caret-color: var(--text);
}

/* labels sitting above -tf-style fields */
.input-tf-style label,
.select-tf-style label {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.checkbox-tf-style input,
.radio-tf-style input,
input[type="checkbox"],
input[type="radio"] { accent-color: var(--accent); }

.note-input { color: var(--text-dim); }

/* =========================================================================
   Buttons
   ========================================================================= */

.button-tf-style button,
.bar-notes .blue,
.search-box button,
.checkout button,
.console-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 0;
    color: #04140f;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

.button-tf-style button:hover,
.bar-notes .blue:hover,
.search-box button:hover,
.checkout button:hover,
.console-submit-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--glow);
}

.button-tf-style button:disabled,
.bar-notes .blue:disabled,
.search-box button:disabled,
.checkout button:disabled {
    background: var(--panel-alt) !important;
    border-color: var(--border) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    filter: none;
}

/* danger / warning variants */
.red button,
.bar-notes .red,
.trash button,
.button-tf-style.red button {
    background: var(--danger-bg);
    border: 1px solid rgba(255, 59, 78, 0.45);
    color: #fca5a5;
    box-shadow: none;
}
.red button:hover,
.bar-notes .red:hover,
.trash button:hover,
.button-tf-style.red button:hover {
    background: rgba(255, 59, 78, 0.2);
    border-color: var(--danger);
    box-shadow: none;
}

.orange button,
.button-tf-style.orange button {
    background: var(--warning-bg);
    border: 1px solid rgba(245, 196, 81, 0.45);
    color: var(--warning);
    box-shadow: none;
}
.orange button:hover,
.button-tf-style.orange button:hover {
    background: rgba(245, 196, 81, 0.22);
    border-color: var(--warning);
}

.no-flags,
.no-flags button {
    background: var(--panel-alt) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.group-buttons { margin-top: 14px; }

/* =========================================================================
   Tables
   ========================================================================= */

.table {
    width: 100%;
    border-collapse: collapse;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    margin: 0 0 10px 0;
    font-size: 13px;
}

.table th {
    color: var(--text-dim);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    padding: 9px 8px;
}

.table td {
    border-top: 1px solid var(--border);
    padding: 8px;
}

.shadowMouse:hover,
tr.shadowMouse:hover { background: var(--panel-alt); }

.table-details { line-height: 1.55; }
.table-details td { border: none; padding: 6px 8px; }
.table-details td.right { color: var(--text-dim); }

.table-awards td { border: 1px solid var(--border); }

.img-table { border: 1px solid var(--border); border-radius: 3px; }
.country, .flag, .flag_badge { border-radius: 2px; }

/* =========================================================================
   Sub-panels / cards  (forms, lists, notes)
   ========================================================================= */

.form-add,
.form-search,
.form-edit,
.form-notes,
.online-list,
.server-list {
    display: block;
    width: auto;
    max-width: 520px;
    margin: 16px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 0 14px;
    background: var(--panel-alt);
    line-height: 1.6;
}

.form-search { max-width: none; }
.online-list, .server-list { max-width: none; }

.form-add form,
.form-search form,
.form-edit form,
.form-notes form { margin: 0 18px; }

.form-add-header,
.form-search-header,
.form-edit-header,
.form-notes-header,
.server-list-header,
.online-list-header,
.ban-details-header,
.box-header,
.top-players-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-bright);
    background: var(--panel-2);
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    text-align: left;
}

.server-list-content, .online-list-content { padding: 4px 16px; }

.bar-notes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 16px;
}
.bar-notes input { flex: 1 1 200px; width: auto; min-width: 0; }

.scrollable-div { max-height: 320px; }

.form-group-search-container { flex-wrap: wrap; gap: 0; }
.form-group-search-box { width: 33%; min-width: 280px; flex: 1 1 300px; }

.search_ban_property,
.search_player_property { border-top-color: var(--border); }

.date-note { color: var(--text-dim); }

/* ban list — expandable record detail (bans.php) */
.ban-details { width: min(680px, 96%); }
.ban-details-content {
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--panel-alt);
}

/* =========================================================================
   Badges & status
   ========================================================================= */

.badge-high-level,
.badge-trial,
.badge-buyed,
.package-tag,
.cmd-badge {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 999px;
    padding: 3px 9px;
    margin: 0 0 0 5px;
    border: 1px solid transparent;
    vertical-align: 1px;
}

.badge-high-level { background: var(--danger-bg); color: #fca5a5; border-color: rgba(255, 59, 78, 0.4); }
.badge-trial { background: var(--warning-bg); color: var(--warning); border-color: rgba(245, 196, 81, 0.4); }
.badge-buyed { background: var(--panel-2); color: var(--text-dim); border-color: var(--border); }

.package-tag { background: var(--warning-bg); color: var(--warning); border-color: rgba(245, 196, 81, 0.35); margin: 0; }
.cmd-badge {
    background: #0a0d11;
    color: var(--accent);
    border-color: var(--border);
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    letter-spacing: 0;
}

.ongoing,
.server-online,
.online { color: var(--online) !important; font-weight: 700; }
.server-offline { color: var(--danger) !important; font-weight: 700; }
.red { color: #fca5a5; }

.tr-default { color: var(--warning); }
.hr-default { border-top-color: var(--warning); }

/* shop status / alert boxes */
.status-message { border-radius: var(--radius-sm); }
.alert-red { background: var(--danger-bg); border: 1px solid rgba(255, 59, 78, 0.4); }
.alert-green { background: var(--online-bg); border: 1px solid rgba(34, 197, 94, 0.4); }
.alert-blue { background: rgba(0, 200, 255, 0.1); border: 1px solid rgba(0, 200, 255, 0.35); }
.status-icon-success { background: var(--online); color: #06150f; }
.status-icon-error { background: var(--danger); color: #1a0608; }
.status-icon-info { border-color: var(--accent2); color: var(--accent2); }

/* =========================================================================
   Pagination
   ========================================================================= */

.paginacion ul { padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.paginacion ul li { margin: 0; }

.paginacion ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 7px 11px;
    color: var(--text);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    box-shadow: none;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.paginacion ul li a:hover {
    background: var(--panel-2);
    border-color: var(--accent);
    color: var(--text-bright);
}

.paginacion ul li .active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #04140f !important;
    box-shadow: none !important;
    cursor: default;
}

/* =========================================================================
   Modals
   ========================================================================= */

.modal { background-color: rgba(3, 5, 12, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.modal-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    color: var(--text);
    /* !important defeats the fixed 800-1250px min/max-width that several
       modals hard-code (inline style or admin_v2.css) so they stop
       overflowing narrow viewports. */
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px);
    overflow: auto;
}

/* Admin modals live inside .wrapper and had no explicit width (they relied
   on the now-neutralised 1250px min-width) — give them a fluid one. Public
   modals (body-level, width:700px in the page stylesheet) are untouched. */
.wrapper .modal-content {
    width: min(1200px, calc(100vw - 32px));
}

.modal-content h2 { color: var(--text-bright); font-family: var(--font-head); }

.close { color: var(--text-dim); }
.close:hover { color: var(--text-bright); }

.rule-number {
    background: rgba(0, 245, 195, 0.14);
    color: var(--accent);
    border-radius: var(--radius-xs);
    font-family: var(--font-cond);
}

/* shop upsell modal */
.tfu-modal-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.tfu-modal-title { color: var(--text-bright); }
.tfu-modal-subtitle { color: var(--text-dim); }
.tfu-bundle-card { background: var(--panel-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tfu-bundle-card .tfu-card-price { color: var(--warning); }
.tfu-bundle-plus { color: var(--accent2); }
.tfu-btn-add-bundle { background: var(--online); color: #06150f; border-radius: var(--radius-sm); }
.tfu-btn-add-bundle:hover { background: #16a34a; }
.tfu-btn-continue-without { background: var(--panel-2); color: var(--text); border-radius: var(--radius-sm); }
.tfu-btn-continue-without:hover { background: var(--border-soft); }
.tfu-total-price { color: var(--online); }

/* =========================================================================
   Tooltip note ( .elemento:hover .nota )
   ========================================================================= */

.nota {
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xs);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-size: 12px;
}
.flecha { border-color: transparent transparent var(--border-soft) transparent; }

/* =========================================================================
   Toggle switch
   ========================================================================= */

.slider { background-color: var(--border-soft); border-radius: 999px; }
.slider:before { background-color: #e7ecff; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:focus + .slider { box-shadow: 0 0 0 3px rgba(0, 245, 195, 0.2); }

/* =========================================================================
   Inline messages
   ========================================================================= */

.ad-message,
.ad-message-delete,
#ad-message,
#ad-message-note {
    font-size: 13px;
    color: #fca5a5;
}

/* =========================================================================
   Console widget (admin)
   ========================================================================= */

.console-window {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.console-header,
.console-footer {
    background: var(--panel-alt);
    color: var(--text-bright);
    border: none;
    font-family: var(--font-cond);
    letter-spacing: 0.03em;
}
.console-header { border-bottom: 1px solid var(--border); }
.console-footer { border-top: 1px solid var(--border); }
.console-body {
    background: #0a0d11;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
}
.console-body::-webkit-scrollbar-track { background: var(--panel-alt); }
.console-body::-webkit-scrollbar-thumb { background: var(--border-soft); border: 2px solid var(--panel-alt); }
.console-input {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font-mono);
}
.console-input:focus { outline: none; border-color: var(--accent); }
.console-submit-button { padding: 8px 16px; }

/* =========================================================================
   Gauges (admin stats)
   ========================================================================= */

.gauge-card {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 210px;
}
.gauge-label { color: var(--text-dim); font-family: var(--font-cond); letter-spacing: 0.03em; }
.gauge-value { color: var(--text-bright); }
.icon-box { color: var(--accent); }

/* =========================================================================
   Progress bars
   ========================================================================= */

.progress-bar-container { background: var(--panel-2); border-radius: 999px; }
.full-progress-bar { border-radius: 999px; }
.green_bar { background: var(--online); }
.blue_bar  { background: var(--accent2); }
.yellow_bar { background: var(--warning); }
.red_bar   { background: var(--danger); }

/* =========================================================================
   Stats pages — player lookup, boxes, pills
   ========================================================================= */

.search-box { width: min(680px, 92%); }
.search-box input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.search-box button {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    width: auto;
    padding: 10px 18px;
    margin-left: 6px;
}

.search-result { width: min(920px, 96%); }

.result-item {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.result-item::before { background: var(--accent); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.result-item:hover { background: var(--panel-2); border-color: var(--border-soft); }
.results-info, .span-servername { color: var(--text-dim); }

.top-players-box {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    overflow: hidden;
}

.box-container { white-space: normal; }
.box-content { border: 1px solid var(--border); border-top: none; }

.rank-pill, .season-pill {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-bright);
    font-family: var(--font-cond);
}

.map-image { border-radius: var(--radius-sm); }

.win  { color: #51ff8b; }
.loss { color: #ff6b6b; }
.tied { color: var(--text-dim); }

/* =========================================================================
   Shop-specific  (index.php / result.php)
   ========================================================================= */

.glow-container {
    background: linear-gradient(90deg, var(--accent2), var(--border), var(--accent), var(--border));
    background-size: 400%;
    border-radius: var(--radius-sm);
}

.package {
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-xs);
}
.package:first-child { border-top: 1px solid var(--border); }
.package:hover { background: rgba(255, 255, 255, 0.03); }
.package:has(input[type="checkbox"]:checked) { background: rgba(245, 196, 81, 0.08); border-left: 3px solid var(--gold); }
.package.highlight { background: rgba(0, 245, 195, 0.07); }

.inline-stepper {
    background: linear-gradient(145deg, #0d1020, #161b33);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: none;
}
.inline-stepper:hover { box-shadow: 0 0 16px rgba(245, 196, 81, 0.22); }
.inline-stepper button { border: 2px solid var(--gold); background: radial-gradient(circle at 30% 30%, #1b2036, #0a0c16); color: var(--gold-soft); }
.inline-stepper button:hover { background: var(--gold); color: #1a1000; }

.server-card {
    background: var(--panel-alt);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
}
.server-name { color: var(--text-bright); }
.server-address, .package-header, .status-secure { color: var(--text-dim); }
.server-rules { border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text); }
.server-rules strong { color: var(--gold); }

.info-card { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.info-card.non-steam, .info-card.expiration { border-top: 3px solid var(--gold); }
.info-card-desc { color: var(--text); }

.result { text-align: left; }

.checkout button,
.trash button { width: 100%; }

#pay-link, .button-paypal { border-radius: 999px; }

/* =========================================================================
   iframes
   ========================================================================= */

.iframe-stats, .iframe-interactions, .iframe-match { border: none; border-radius: var(--radius-sm); }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
    .wrapper { flex-direction: column; }
    .panel-side {
        width: 100%;
        position: static;
        max-height: none;
        margin-top: 24px;
    }
}

@media (max-width: 900px) {
    .form-group-search-box { width: 100%; min-width: 0; }
    .charts-content-left,
    .charts-content-right { width: 100% !important; }
    canvas { max-width: 100% !important; }
}

@media (max-width: 720px) {
    .panel-content { padding: 16px 14px; }
    .header2 { padding: 10px 14px; }
    .footer > div[style] { padding: 0 14px; }
    .navbar { padding: 4px; }
    .navbar a, .dropdown .dropbtn { padding: 9px 11px; font-size: 13px; }
    .module-title { font-size: 16px; }
}
