:root {
    --bg: #08090b;
    --bg2: #0d0f12;
    --panel: #101216;
    --panel2: #14171b;
    --panel3: #191c21;

    --border: #292d33;
    --border-light: #353a42;

    --text: #f2f2f2;
    --muted: #858b94;
    --dim: #5f656e;

    --red: #b32127;
    --red-bright: #e3383f;
    --red-dark: #73151a;

    --green: #49d17c;
    --orange: #e4a441;

    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(179, 33, 39, .08),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.topbar {
    background: rgba(8, 9, 11, .96);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    min-height: 76px;
    max-width: 1500px;
    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid var(--red);
    background:
        linear-gradient(
            135deg,
            rgba(179, 33, 39, .22),
            transparent
        );

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.brand-subtitle {
    color: var(--muted);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-self: stretch;
    margin-left: 20px;
}

.nav-link {
    min-width: 82px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-bottom: 2px solid transparent;

    color: #9ea3aa;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .7px;

    transition: .2s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, .025);
}

.nav-link.active {
    color: white;
    border-bottom-color: var(--red-bright);
}

.account-area {
    margin-left: auto;
}

.steam-login {
    padding: 11px 15px;

    display: flex;
    align-items: center;
    gap: 9px;

    border: 1px solid var(--border-light);

    color: #d9dde2;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.steam-login:hover {
    border-color: #626871;
}

.steam-dot,
.status-light {
    display: inline-block;

    width: 7px;
    height: 7px;

    border-radius: 100%;
}

.steam-dot {
    background: #5ba5d6;
    box-shadow: 0 0 8px rgba(91, 165, 214, .7);
}

.status-light.green {
    background: var(--green);
    box-shadow: 0 0 8px rgba(73, 209, 124, .6);
}

.system-strip {
    background: #0b0c0e;
    border-bottom: 1px solid #1e2126;
}

.system-strip-inner {
    max-width: 1500px;
    min-height: 34px;

    margin: auto;
    padding: 0 28px;

    display: flex;
    align-items: center;
    gap: 30px;

    color: #acb0b6;

    font-family: monospace;
    font-size: 10px;
    letter-spacing: .8px;
}

.system-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-item.right {
    margin-left: auto;
}

.system-item.right a {
    color: #c4c7cb;
}

.system-item.right a:hover {
    color: white;
}

.muted {
    color: var(--dim);
}

.page-container {
    max-width: 1500px;
    margin: auto;
    padding: 42px 28px 70px;
}

.page-heading {
    margin-bottom: 32px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.eyebrow {
    margin-bottom: 8px;

    color: #737981;

    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.eyebrow.red {
    color: var(--red-bright);
}

.page-heading h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1;
    letter-spacing: 1px;
}

.page-heading p {
    margin: 12px 0 0;

    color: var(--muted);

    line-height: 1.7;
}

.heading-actions {
    display: flex;
    gap: 10px;
}

.button {
    min-height: 42px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-light);
    border-radius: var(--radius);

    background: #13161a;
    color: #e7e9ec;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;

    transition: .2s;
}

.button:hover {
    border-color: #5b616b;
    background: #181b20;
}

.button.primary {
    border-color: var(--red);
    background: var(--red-dark);
}

.button.primary:hover {
    background: var(--red);
}

.button.full {
    width: 100%;
}

.stats-grid {
    margin-bottom: 24px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    min-height: 124px;
    padding: 20px;

    border: 1px solid var(--border);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .018),
            transparent 70%
        ),
        var(--panel);
}

.stats-grid.compact .stat-card {
    min-height: 105px;
}

.stat-label {
    margin-bottom: 18px;

    color: #777d85;

    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
}

.status-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-sub {
    margin-top: 7px;

    color: #666c74;

    font-size: 11px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, .8fr);
    gap: 18px;
}

.panel {
    border: 1px solid var(--border);
    background: var(--panel);
}

.panel-header {
    min-height: 76px;
    padding: 18px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.panel-header h2,
.toolbar-title {
    margin: 0;

    font-size: 15px;
    letter-spacing: .6px;
}

.panel-body {
    padding: 24px;
}

.lead {
    margin-top: 0;

    color: #abb0b7;

    line-height: 1.8;
}

.badge,
.rank-badge {
    display: inline-flex;
    align-items: center;

    border: 1px solid;

    font-family: monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.badge {
    padding: 5px 8px;
}

.badge.green {
    border-color: rgba(73, 209, 124, .35);
    background: rgba(73, 209, 124, .08);
    color: var(--green);
}

.badge.red {
    border-color: rgba(227, 56, 63, .35);
    background: rgba(227, 56, 63, .08);
    color: #ff686e;
}

.quick-grid {
    margin-top: 24px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-card {
    padding: 17px;

    display: flex;
    gap: 14px;

    border: 1px solid var(--border);
    background: #0d0f12;

    transition: .2s;
}

.quick-card:hover {
    border-color: #42474f;
    background: #111419;
}

.quick-number {
    color: var(--red-bright);

    font-family: monospace;
    font-size: 11px;
}

.quick-card strong {
    display: block;

    font-size: 11px;
    letter-spacing: .5px;
}

.quick-card span:last-child {
    display: block;

    margin-top: 6px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}

.info-list {
    padding: 6px 20px;
}

.info-row {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    border-bottom: 1px solid #24272c;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row span {
    color: var(--muted);

    font-size: 11px;
}

.info-row strong {
    font-size: 11px;
}

.table-toolbar {
    min-height: 70px;
    padding: 14px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter {
    min-height: 34px;
    padding: 0 12px;

    border: 1px solid transparent;
    background: transparent;
    color: #70767f;

    cursor: pointer;

    font-family: monospace;
    font-size: 10px;
    font-weight: 800;
}

.filter:hover {
    color: #c0c4c9;
}

.filter.active {
    border-color: var(--border-light);
    background: #15181c;
    color: white;
}

.search-box input {
    width: 285px;
    height: 37px;
    padding: 0 12px;

    border: 1px solid var(--border);
    outline: none;

    background: #090b0d;
    color: white;

    font-family: monospace;
    font-size: 11px;
}

.search-box input:focus {
    border-color: #4a5059;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px 16px;

    border-bottom: 1px solid var(--border);

    color: #666c75;

    text-align: left;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

td {
    padding: 15px 16px;

    border-bottom: 1px solid #202328;

    color: #c5c8cd;

    font-size: 11px;
}

tbody tr:hover {
    background: rgba(255, 255, 255, .015);
}

.empty-row:hover {
    background: transparent;
}

.empty-state {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #5d636c;

    text-align: center;
}

.empty-state strong {
    color: #898f97;

    font-family: monospace;
    font-size: 11px;
    letter-spacing: .8px;
}

.empty-state span {
    margin-top: 7px;

    font-size: 11px;
}

.rules-layout {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 18px;
}

.rules-sidebar {
    padding-bottom: 12px;
    align-self: start;
}

.rules-sidebar-title,
.admin-section-title {
    padding: 17px;

    color: #656b74;

    font-family: monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.rule-category {
    width: 100%;
    min-height: 46px;
    padding: 0 17px;

    border: 0;
    border-left: 2px solid transparent;

    background: transparent;
    color: #747a82;

    cursor: pointer;

    text-align: left;

    font-family: monospace;
    font-size: 10px;
}

.rule-category:hover {
    color: #d0d3d7;
    background: #14171b;
}

.rule-category.active {
    border-left-color: var(--red-bright);
    background: #17191e;
    color: white;
}

.rules-content {
    min-height: 550px;
}

.rule-list {
    padding: 10px 22px 24px;
}

.rule {
    padding: 22px 4px;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;

    border-bottom: 1px solid #24272c;
}

.rule-number {
    color: var(--red-bright);

    font-family: monospace;
    font-size: 11px;
}

.rule strong {
    font-size: 13px;
}

.rule p {
    max-width: 850px;
    margin: 8px 0 0;

    color: var(--muted);

    line-height: 1.7;
}

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-placeholder {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border: 1px solid #3c424a;
    background: #191c21;

    font-weight: 900;
}

.player-cell strong,
.player-cell span {
    display: block;
}

.player-cell span {
    margin-top: 3px;

    color: #6d737b;

    font-size: 10px;
}

.rank-badge {
    padding: 5px 8px;
}

.rank-badge.owner {
    border-color: rgba(227, 56, 63, .45);
    background: rgba(227, 56, 63, .08);
    color: #ff6268;
}

.mono {
    font-family: monospace;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.package-card {
    position: relative;

    min-height: 445px;
    padding: 26px;

    border: 1px solid var(--border);
    background:
        linear-gradient(
            160deg,
            rgba(255, 255, 255, .02),
            transparent 55%
        ),
        var(--panel);

    display: flex;
    flex-direction: column;
}

.package-card.featured {
    border-color: rgba(179, 33, 39, .8);

    background:
        linear-gradient(
            160deg,
            rgba(179, 33, 39, .10),
            transparent 50%
        ),
        var(--panel);
}

.featured-label {
    position: absolute;
    top: -1px;
    right: -1px;

    padding: 7px 9px;

    background: var(--red-dark);

    color: white;

    font-family: monospace;
    font-size: 8px;
    letter-spacing: 1px;
}

.package-tier {
    margin-bottom: 18px;

    color: var(--red-bright);

    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1.4px;
}

.package-card h2 {
    margin: 0 0 24px;

    font-size: 23px;
}

.package-price {
    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);

    font-size: 25px;
    font-weight: 900;
}

.package-price span {
    display: block;

    margin-top: 5px;

    color: #686e77;

    font-size: 10px;
    font-weight: normal;
}

.feature-list {
    flex: 1;

    margin: 22px 0 30px;
    padding: 0;

    list-style: none;
}

.feature-list li {
    padding: 9px 0;

    color: #aeb2b8;

    font-size: 11px;
}

.feature-list li::before {
    content: "+";

    margin-right: 9px;

    color: var(--green);
    font-family: monospace;
}

.admin-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
}

.admin-sidebar {
    align-self: start;
    padding-bottom: 14px;
}

.admin-link {
    min-height: 40px;
    padding: 0 16px;

    display: flex;
    align-items: center;

    border-left: 2px solid transparent;

    color: #757b84;

    font-size: 11px;
}

.admin-link:hover {
    background: #14171b;
    color: #d4d7db;
}

.admin-link.active {
    border-left-color: var(--red-bright);
    background: #17191e;
    color: white;
}

.admin-cards {
    padding: 18px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-card {
    min-height: 110px;
    padding: 18px;

    border: 1px solid var(--border);
    background: #0d0f12;
}

.admin-card strong {
    display: block;

    font-size: 11px;
    letter-spacing: .5px;
}

.admin-card span {
    display: block;

    margin-top: 9px;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.6;
}

.not-found {
    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.not-found h1 {
    margin: 0;

    font-size: 40px;
}

.not-found p {
    margin: 14px 0 25px;

    color: var(--muted);
}

.footer {
    max-width: 1500px;
    margin: auto;
    padding: 25px 28px 35px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid #181b1f;

    color: #545a62;

    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

.footer-muted {
    color: #393e45;
}

@media (max-width: 1100px) {

    .topbar-inner {
        flex-wrap: wrap;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        order: 3;
        margin-left: 0;
        overflow-x: auto;
    }

    .nav-link {
        min-height: 45px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid,
    .rules-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .topbar-inner,
    .page-container,
    .system-strip-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-subtitle {
        display: none;
    }

    .account-area {
        margin-left: auto;
    }

    .steam-login {
        font-size: 9px;
    }

    .system-strip-inner {
        overflow-x: auto;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid,
    .admin-cards {
        grid-template-columns: 1fr;
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .footer {
        gap: 15px;
        flex-direction: column;
    }

}


/* =========================================================
   POG HEADER BRANDING
   ========================================================= */

.topbar-inner {
    min-height: 130px;
}

.brand {
    gap: 20px;
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-copy {
    padding-right: 8px;
}

.brand-title {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 1.8px;
    white-space: nowrap;
}

.brand-title strong {
    color: var(--red-bright);
    font-weight: 900;
}

.brand-subtitle {
    margin-top: 6px;
    white-space: nowrap;
}

.account-avatar {
    width: 27px;
    height: 27px;
    object-fit: cover;
    border-radius: 2px;
}

@media (max-width: 1200px) {

    .brand-logo {
        width: 95px;
        height: 95px;
    }

    .topbar-inner {
        min-height: 110px;
    }

    .brand-title {
        font-size: 21px;
    }

}

@media (max-width: 700px) {

    .brand-logo {
        width: 70px;
        height: 70px;
    }

    .topbar-inner {
        min-height: 90px;
    }

    .brand-title {
        font-size: 17px;
    }

}

/* =========================================================
   PEOPLE OF GAMING BRAND THEME
   ========================================================= */

:root {
    --red: #009fe8;
    --red-bright: #00b7ff;
    --red-dark: #006fa8;

    --pog-blue: #00a9f4;
    --pog-blue-bright: #29c2ff;
    --pog-blue-dark: #006da5;
}

/* HEADER */

.topbar-inner {
    min-height: 125px;
}

.brand {
    gap: 0;
    flex-shrink: 0;
}

/* Full People Of Gaming logo */
.brand-logo {
    width: 390px;
    height: 105px;
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

/* Logo already contains People Of Gaming text */
.brand-copy {
    display: none;
}

/* Navigation */

.nav-link.active {
    color: #fff;
    border-bottom-color: var(--pog-blue-bright);
}

.nav-link:hover {
    color: #fff;
}

/* Steam */

.steam-dot {
    background: var(--pog-blue-bright);
    box-shadow: 0 0 10px rgba(0, 183, 255, .75);
}

.steam-login:hover {
    border-color: var(--pog-blue);
}

/* Buttons */

.button.primary {
    border-color: var(--pog-blue);
    background: var(--pog-blue-dark);
}

.button.primary:hover {
    background: var(--pog-blue);
}

/* Labels */

.eyebrow.red {
    color: var(--pog-blue-bright);
}

/* Rule/sidebar selections */

.rule-category.active,
.admin-link.active {
    border-left-color: var(--pog-blue-bright);
}

/* Package cards */

.package-card.featured {
    border-color: rgba(0, 183, 255, .8);

    background:
        linear-gradient(
            160deg,
            rgba(0, 183, 255, .10),
            transparent 50%
        ),
        var(--panel);
}

.featured-label {
    background: var(--pog-blue-dark);
}

.package-tier {
    color: var(--pog-blue-bright);
}

/* Quick dashboard numbering */

.quick-number {
    color: var(--pog-blue-bright);
}

/* Rule numbering */

.rule-number {
    color: var(--pog-blue-bright);
}

/* Rank accents */

.rank-badge.owner {
    border-color: rgba(0, 183, 255, .45);
    background: rgba(0, 183, 255, .08);
    color: var(--pog-blue-bright);
}

/* Subtle blue glow instead of red */

body {
    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(0, 169, 244, .07),
            transparent 32%
        ),
        var(--bg);
}

/* Mobile */

@media (max-width: 1200px) {

    .brand-logo {
        width: 300px;
        height: 90px;
    }

}

@media (max-width: 700px) {

    .brand-logo {
        width: 220px;
        height: 72px;
    }

}
