/*
    Theme: RECON — Dark Military Gaming Store
    Prometheus Version: 1.6
    
    Design: Near-black bg, deep crimson accents, sharp edges
    Fonts: Rajdhani (display) + Barlow Condensed (body)
*/

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

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
    --bg:           #06060a;
    --bg-2:         #0d0d14;
    --bg-3:         #13131e;
    --bg-4:         #1a1a28;
    --surface:      #0f0f18;
    --surface-2:    #161622;
    --surface-3:    #1e1e2e;

    --red:          #c41818;
    --red-bright:   #e52222;
    --red-dim:      #8c1010;
    --red-glow:     rgba(196, 24, 24, 0.25);
    --red-border:   rgba(196, 24, 24, 0.4);

    --text:         #d8d8e8;
    --text-dim:     #8888a0;
    --text-muted:   #505060;
    --white:        #f0f0f8;

    --border:       rgba(255,255,255,0.06);
    --border-red:   rgba(196,24,24,0.35);

    --radius:       2px;
    --radius-md:    4px;

    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'Barlow Condensed', sans-serif;
    --font-prose:   'Barlow', sans-serif;

    --transition:   0.18s ease;
}

/* ─── Base Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 80% 40% at 50% -10%, rgba(196,24,24,0.07) 0%, transparent 70%);
    background-attachment: fixed;
}

.wrap {
    background-color: var(--bg) !important;
}

/* Subtle scanline overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.content {
    position: relative;
    z-index: 1;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.header {
    font-family: var(--font-display) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

h1, .header {
    color: var(--white) !important;
    font-size: 1.8rem;
    border-left: 3px solid var(--red);
    padding-left: 14px;
    margin-bottom: 1.5rem;
    position: relative;
}

h1::before, .header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    box-shadow: 0 0 12px var(--red), 0 0 24px var(--red-glow);
}

h2 {
    color: var(--white) !important;
    font-size: 1.3rem;
}

h3 {
    color: var(--text) !important;
    font-size: 1.1rem;
}

h6 {
    color: var(--red-bright) !important;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-display) !important;
}

a {
    color: var(--text) !important;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover, a:focus {
    color: var(--red-bright) !important;
    text-decoration: none;
}

hr {
    border-color: var(--border-red) !important;
    opacity: 0.5;
    margin: 1.5rem 0;
}

p {
    font-family: var(--font-prose);
    color: var(--text-dim);
    line-height: 1.7;
}

/* ─── Navbar ─────────────────────────────────────────────────── */
.navbar-inverse {
    background-color: var(--bg-2) !important;
    border-bottom: 1px solid var(--border-red) !important;
    border-top: 2px solid var(--red) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6) !important;
}

.navbar-inverse .navbar-nav > li > a {
    color: var(--text-dim) !important;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 18px 16px;
    transition: all var(--transition);
    position: relative;
}

.navbar-inverse .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width var(--transition);
    box-shadow: 0 0 8px var(--red);
}

.navbar-inverse .navbar-nav > li > a:hover::after,
.navbar-inverse .navbar-nav > .active > a::after {
    width: 60%;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    background-color: transparent !important;
    color: var(--white) !important;
}

.navbar-brand {
    font-family: var(--font-display) !important;
    font-weight: 700;
    font-size: 1.4rem !important;
    letter-spacing: 0.12em;
    color: var(--white) !important;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: 1px solid transparent;
    padding: 8px 20px;
}

.btn-prom {
    background-color: var(--surface-3) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.btn-prom:hover,
.btn-prom:focus {
    background-color: var(--bg-4) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
}

.buy-btn {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dim) 100%) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(196,24,24,0.3);
}

.buy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 100%);
    transition: opacity var(--transition);
    pointer-events: none; /* fix: was intercepting clicks on .buy-with-stripe */
}

.buy-btn:hover,
.buy-btn:focus {
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%) !important;
    color: var(--white) !important;
    border-color: var(--red-bright) !important;
    box-shadow: 0 4px 20px rgba(196,24,24,0.5);
    transform: translateY(-1px);
}

.buy-btn:hover {
    border-color: var(--red-bright) !important;
}

.btn-success {
    background: #1a6b1a !important;
    border-color: #1a6b1a !important;
    color: var(--white) !important;
}

.btn-success:hover {
    background: #228022 !important;
    box-shadow: 0 4px 16px rgba(26,107,26,0.4);
}

.btn-danger {
    background: var(--red-dim) !important;
    border-color: var(--red-dim) !important;
    color: var(--white) !important;
}

.btn-danger:hover {
    background: var(--red) !important;
}

.btn-default {
    background: var(--surface-3) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

/* ─── Form Controls ──────────────────────────────────────────── */
.form-control {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-family: var(--font-body) !important;
    padding: 10px 14px !important;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px var(--red-glow) !important;
    outline: none;
    background-color: var(--surface-3) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

select.form-control option {
    background: var(--surface-2);
}

/* ─── Store Boxes (Package Cards) ───────────────────────────── */
.store-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.store-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.store-box:hover {
    border-color: var(--border-red) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px var(--border-red);
    transform: translateY(-3px);
}

.store-box:hover::before {
    opacity: 1;
}

.store-box-header {
    background: var(--bg-2) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.store-box-upper span {
    border-color: var(--border) !important;
    color: var(--red-bright) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.store-box-upper li {
    border-color: var(--border) !important;
    color: var(--text-dim);
    font-family: var(--font-prose);
    font-size: 0.9rem;
    padding: 6px 0;
}

.store-box-upper li::before {
    content: '▸';
    color: var(--red);
    margin-right: 6px;
    font-size: 0.7rem;
}

/* ─── Server Boxes ───────────────────────────────────────────── */
.srv-box {
    background: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.22s ease;
    text-align: center;
    padding: 24px 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.srv-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--red-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
}

.srv-box:hover {
    background-color: var(--surface-2) !important;
    border-color: var(--border-red) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.srv-box:hover::after {
    opacity: 1;
}

.srv-box:hover .fa {
    color: var(--red-bright) !important;
}

.srv-box .fa {
    color: var(--text-dim) !important;
    transition: color var(--transition), transform var(--transition);
    position: relative;
    z-index: 1;
}

.srv-box:hover .fa {
    transform: scale(1.1);
}

.srv-label {
    background-color: var(--red) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-top: 12px;
    display: inline-block;
    border-radius: var(--radius);
}

a .srv-label {
    color: var(--white) !important;
}

/* ─── Panels & Boxes ─────────────────────────────────────────── */
.options,
.dashboard-widget-small-box,
.panel-body,
.stat-box {
    background-color: var(--surface) !important;
    color: var(--text-dim) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.options,
.dashboard-widget-small-box,
.panel-body,
.panel-body .panel-inner,
.stat-box {
    color: var(--text-dim) !important;
}

.panel-body > .panel-header,
.stat-box-header {
    background-color: var(--bg-2) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-red);
    padding: 12px 16px;
}

.darker-box {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.darker-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--red), transparent);
    opacity: 0.5;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.info-box {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--border-red) !important;
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

/* ─── Dashboard Widgets ──────────────────────────────────────── */
.dashboard-widget-small-box {
    border-color: var(--border) !important;
}

.dashboard-widget-small-box .element {
    color: var(--bg-2) !important;
}

.dashboard-widget-small-box i,
#sortable li i {
    color: var(--bg-2) !important;
}

.dashboard-widget-small-box .caption {
    color: var(--white) !important;
    font-family: var(--font-display);
}

#sortable li {
    background-color: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ─── Navigation Menu ────────────────────────────────────────── */
.main-menu-box,
.version-marker {
    background-color: var(--bg-2) !important;
    border-right: 1px solid var(--border-red);
}

.main-menu-box ul li {
    color: var(--text-dim) !important;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
}

.main-menu-box ul li:hover {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border-left: 2px solid var(--red);
    padding-left: 18px;
}

.main-menu-box ul li.active {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border-left: 3px solid var(--red);
    box-shadow: inset 4px 0 12px var(--red-glow);
}

.version-marker {
    color: var(--text-muted) !important;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.main-menu-box .sub-menu {
    background-color: var(--bg) !important;
    border-top: 1px solid var(--border-red);
}

.main-menu-box ul.sub-menu .submenu-header {
    color: var(--red-bright) !important;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    opacity: 0.7;
}

/* ─── Content Page Header ────────────────────────────────────── */
.content-page-top {
    background-color: var(--bg-2) !important;
    border-bottom: 1px solid var(--border-red);
    border-top: 2px solid var(--red);
    position: relative;
}

.content-page-top > span {
    color: var(--text) !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-page-top > span > i {
    color: var(--red-bright) !important;
}

.content-page-top:after {
    border-color: var(--bg-2) transparent transparent !important;
}

/* ─── Dashboard Nav ──────────────────────────────────────────── */
.dashboard-nav,
.dashboard-nav a {
    background-color: var(--surface-2) !important;
    border-bottom: 1px solid var(--border);
}

.dashboard-nav a {
    color: var(--text-dim) !important;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all var(--transition);
    padding: 10px 16px;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
}

.dashboard-nav a.active {
    background-color: var(--bg-3) !important;
    color: var(--red-bright) !important;
    border-bottom: 2px solid var(--red);
}

/* ─── Package Steps ──────────────────────────────────────────── */
.pkg-step {
    background-color: var(--surface-2) !important;
    color: var(--text-dim) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    transition: all var(--transition);
    position: relative;
}

.pkg-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition);
}

.pkg-step:hover::before {
    opacity: 1;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.table {
    color: var(--text) !important;
    font-family: var(--font-body);
}

.table-striped thead {
    background-color: var(--bg-2) !important;
    color: var(--red-bright) !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table-striped thead td {
    border-bottom: 2px solid var(--border-red) !important;
    padding: 12px 16px;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: var(--bg-2) !important;
}

.table-striped > tbody > tr:hover {
    background-color: var(--surface-2) !important;
}

.table-striped td {
    border-color: var(--border) !important;
    padding: 10px 16px;
}

/* ─── Callouts / Alerts ──────────────────────────────────────── */
.bs-callout {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: none;
    border-left: 3px solid;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: var(--font-prose);
    position: relative;
    overflow: hidden;
}

.bs-callout::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, transparent 60%);
}

.bs-callout-success {
    border-left-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.08) !important;
}

.bs-callout-danger {
    border-left-color: var(--red) !important;
    background: rgba(196, 24, 24, 0.08) !important;
}

.bs-callout-info {
    border-left-color: #0d6efd !important;
    background: rgba(13, 110, 253, 0.06) !important;
}

.alert {
    border-radius: var(--radius-md);
    font-family: var(--font-prose);
}

/* ─── Pagination ─────────────────────────────────────────────── */
.pagination li a {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
    font-family: var(--font-display);
    font-weight: 500;
    transition: all var(--transition);
    border-radius: 0 !important;
}

.pagination li a:hover,
.pagination li a:focus {
    background-color: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus {
    background-color: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

/* ─── Dropdowns ──────────────────────────────────────────────── */
.dropdown-menu {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    padding: 4px 0;
}

.dropdown-menu > li > a {
    color: var(--text-dim) !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all var(--transition);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background-color: var(--red) !important;
    color: var(--white) !important;
}

/* ─── Category Links ─────────────────────────────────────────── */
.categoryLink {
    background-color: var(--surface-2) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 7px 16px;
    transition: all var(--transition);
}

.categoryLink:hover,
.categoryLink.active {
    background-color: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
    box-shadow: 0 0 12px var(--red-glow);
}

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-content {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.modal-header {
    background-color: var(--bg-2) !important;
    color: var(--white) !important;
    border-bottom: 1px solid var(--border-red);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-top: 2px solid var(--red);
}

.modal-footer {
    background-color: var(--bg-2) !important;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.modal-backdrop {
    background: rgba(0,0,0,0.8) !important;
}

/* ─── Credits Section ────────────────────────────────────────── */
.credits {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.credit-content {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition);
    background: var(--surface);
}

.credit-content:hover {
    border-color: var(--border-red) !important;
    background: var(--surface-2);
}

.credit-content {
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
}

.credit-content span {
    color: var(--text-muted) !important;
    font-family: var(--font-prose);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ─── Banner ─────────────────────────────────────────────────── */
.banner {
    background-color: var(--bg-3) !important;
    border-bottom: 1px solid var(--border-red);
    overflow: hidden;
    position: relative;
}

.banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--red-glow), transparent 60%);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    background-color: var(--bg-2) !important;
    color: var(--text-muted) !important;
    font-family: var(--font-body);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-red);
    padding: 24px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--red) 20%, var(--red) 80%, transparent 100%);
    opacity: 0.5;
}

.version {
    color: var(--text-muted) !important;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

/* ─── iCheck Inputs ──────────────────────────────────────────── */
.icheckbox_line-red,
.iradio_line-red {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.icheckbox_line-red.checked,
.iradio_line-red.checked {
    border-color: var(--red) !important;
    background: rgba(196,24,24,0.12) !important;
}

/* ─── Donation Goal ──────────────────────────────────────────── */
.donationGoal {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.progress {
    background-color: var(--bg-2) !important;
    border-radius: var(--radius);
    height: 28px !important;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.progress-bar {
    background: linear-gradient(90deg, var(--red-dim) 0%, var(--red) 100%) !important;
    position: relative;
    overflow: visible;
    transition: width 1s ease;
    box-shadow: 4px 0 16px var(--red-glow);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--red-bright);
    box-shadow: 0 0 12px var(--red);
}

.progress-bar span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    line-height: 28px;
    position: relative;
    z-index: 1;
}

/* ─── Ticket ─────────────────────────────────────────────────── */
.ticket-header {
    background-color: var(--surface-2) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-red);
    padding: 14px 20px;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
#storeSidebar {
    padding: 16px 0;
}

#storeSidebar .form-group {
    margin-bottom: 10px;
}

#storeSidebar label {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--red-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-muted {
    color: var(--text-muted) !important;
}

.text-danger {
    color: var(--red-bright) !important;
}

.text-success {
    color: #28a745 !important;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes redPulse {
    0%, 100% { box-shadow: 0 0 8px var(--red-glow); }
    50%       { box-shadow: 0 0 20px rgba(196,24,24,0.5); }
}

.store-box { animation: fadeInUp 0.4s ease both; }
.store-box:nth-child(2) { animation-delay: 0.05s; }
.store-box:nth-child(3) { animation-delay: 0.10s; }
.store-box:nth-child(4) { animation-delay: 0.15s; }
.store-box:nth-child(5) { animation-delay: 0.20s; }
.store-box:nth-child(6) { animation-delay: 0.25s; }

/* ─── Featured Package ───────────────────────────────────────── */
.featured-package,
.featured {
    border: 1px solid var(--red) !important;
    box-shadow: 0 0 24px var(--red-glow);
    position: relative;
}

.featured-package::before,
.featured::before {
    content: '★ BEST VALUE';
    position: absolute;
    top: -1px;
    right: 16px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 4px 10px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 12px var(--red-glow);
}

/* ─── Read More / Description ────────────────────────────────── */
.store-box-lower {
    padding: 12px 16px;
}

.store-box-lower p,
.store-box-lower li {
    color: var(--text-dim);
    font-family: var(--font-prose);
    font-size: 0.9rem;
}

.read-more {
    color: var(--red-bright) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}

.read-more::after {
    content: '→';
    transition: transform var(--transition);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* ─── Input Group ────────────────────────────────────────────── */
.input-group-btn .btn {
    height: 100%;
}

/* ─── Checkbox styling ───────────────────────────────────────── */
.checkbox label {
    font-family: var(--font-body);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
}

/* ─── Bootstrap Slider (customjob) ──────────────────────────── */
.slider-track {
    background: var(--surface-3) !important;
    height: 6px;
}

.slider-selection {
    background: var(--red) !important;
}

.slider-handle {
    background: var(--red-bright) !important;
    border: 2px solid var(--red);
    box-shadow: 0 0 8px var(--red-glow);
}

/* ─── Loading State ──────────────────────────────────────────── */
#packages:empty::after,
#raffles:empty::after,
#credits:empty::after {
    content: '';
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    padding: 40px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    h1, .header {
        font-size: 1.4rem;
        padding-left: 10px;
    }

    .store-box:hover {
        transform: none;
    }

    .darker-box,
    .info-box {
        padding: 14px;
    }
}

/* ─── Close Button ───────────────────────────────────────────── */
.close {
    color: var(--text-muted) !important;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.close:hover {
    opacity: 1;
    color: var(--white) !important;
}

/* ─── Nav Pills / Tabs ───────────────────────────────────────── */
.nav-pills > li > a {
    background: var(--surface-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    transition: all var(--transition);
}

.nav-pills > li.active > a,
.nav-pills > li > a:hover {
    background: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

/* ─── Badge / Label ──────────────────────────────────────────── */
.label-default, .badge {
    background: var(--surface-3);
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.label-success { background: #1a6b1a; color: #fff; }
.label-danger  { background: var(--red); color: #fff; }

/* ─── Selection ──────────────────────────────────────────────── */
::selection {
    background: rgba(196,24,24,0.35);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   PATCH — Grey element fixes + missing Bootstrap overrides
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nav Tabs ───────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 1px solid var(--border-red) !important;
    background: transparent;
}

.nav-tabs > li > a {
    background-color: var(--surface) !important;
    color: var(--text-dim) !important;
    border: 1px solid var(--border) !important;
    border-bottom: none !important;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 10px 18px;
    transition: all var(--transition);
    margin-right: 3px;
}

.nav-tabs > li > a:hover {
    background-color: var(--surface-2) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
    border-bottom-color: var(--surface-3) !important;
    box-shadow: inset 0 2px 0 var(--red);
}

.tab-content {
    background: var(--surface-3);
    border: 1px solid var(--border-red);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 20px;
}

/* ─── Bootstrap Panels ───────────────────────────────────────── */
.panel {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
}

.panel-default {
    border-color: var(--border) !important;
}

.panel-default > .panel-heading {
    background-color: var(--bg-2) !important;
    color: var(--white) !important;
    border-bottom: 1px solid var(--border-red) !important;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    padding: 12px 16px;
}

.panel-default > .panel-heading + .panel-collapse > .panel-body {
    border-top-color: var(--border-red) !important;
}

.panel-footer {
    background-color: var(--bg-2) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
}

/* ─── Bootstrap Wells ────────────────────────────────────────── */
.well {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    color: var(--text) !important;
}

.well-sm { padding: 9px 14px; }
.well-lg { padding: 24px; }

/* ─── Bootstrap List Groups ──────────────────────────────────── */
.list-group {
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.list-group-item {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-family: var(--font-body);
    transition: all var(--transition);
}

.list-group-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0 !important; }
.list-group-item:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md) !important; }

.list-group-item:hover,
.list-group-item:focus {
    background-color: var(--surface-2) !important;
    color: var(--white) !important;
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: var(--red) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
}

/* ─── Bootstrap Breadcrumb ───────────────────────────────────── */
.breadcrumb {
    background-color: var(--surface) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.breadcrumb > li + li::before {
    color: var(--red) !important;
    content: '▸ ' !important;
}

.breadcrumb > .active {
    color: var(--text-dim) !important;
}

/* ─── Bootstrap Jumbotron ────────────────────────────────────── */
.jumbotron {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md) !important;
    color: var(--text) !important;
}

/* ─── News Panel ─────────────────────────────────────────────── */
/* Prometheus news panel - typically .col-md-X wrapper with inner content */
.news-panel,
.news-box,
.news-container,
div[class*="news"],
aside[class*="news"] {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text) !important;
}

/* News widget commonly rendered inside .panel or .options */
.news h3, .news h4,
.news-panel h3, .news-panel h4 {
    font-family: var(--font-display);
    color: var(--white) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-red);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Generic Prometheus sidebar column */
.col-md-3 .options,
.col-md-4 .options {
    padding: 16px;
}

/* ─── Input Group Add-ons ────────────────────────────────────── */
.input-group-addon {
    background-color: var(--surface-3) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-body);
}

/* ─── Select2 / Custom Selects ───────────────────────────────── */
select {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 8px 12px;
}

select:focus {
    border-color: var(--red) !important;
    outline: none;
    box-shadow: 0 0 0 3px var(--red-glow) !important;
}

/* ─── Bootstrap Accordion / Collapse ────────────────────────── */
.accordion-group,
.accordion-inner {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.accordion-heading {
    background: var(--bg-2) !important;
    border-bottom: 1px solid var(--border-red) !important;
}

.accordion-heading a {
    color: var(--text) !important;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Popovers & Tooltips ────────────────────────────────────── */
.popover {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--border-red) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
}

.popover-title {
    background-color: var(--bg-2) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-red) !important;
}

.popover-content {
    color: var(--text) !important;
    font-family: var(--font-prose);
}

.tooltip-inner {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border: 1px solid var(--border-red);
    font-family: var(--font-body);
    border-radius: var(--radius) !important;
}

.tooltip.top .tooltip-arrow    { border-top-color: var(--border-red) !important; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--border-red) !important; }

/* ─── Bootstrap Button Groups ────────────────────────────────── */
.btn-group > .btn {
    border-color: var(--border) !important;
}

.btn-group > .btn + .btn {
    border-left-color: var(--border) !important;
}

/* ─── Code / Pre ─────────────────────────────────────────────── */
code {
    background: var(--surface-3) !important;
    color: var(--red-bright) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 6px;
    font-size: 0.85em;
}

pre {
    background: var(--bg-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-red) !important;
    border-radius: var(--radius-md) !important;
    border-left: 3px solid var(--red) !important;
}

/* ─── Gateway Buttons (Prometheus gateways->display()) ──────── */
/* The gateways class outputs .gateway-box or similar cols */
.gateway-box,
.payment-option,
div[class*="gateway"] {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition);
}

.gateway-box:hover,
div[class*="gateway"]:hover {
    border-color: var(--border-red) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ─── Image thumbnails ───────────────────────────────────────── */
.thumbnail {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
}

/* ─── Fix: buy-btn pointer-events on all pseudo-elements ─────── */
/* Belt-and-suspenders: ensure NO pseudo on buy-btn blocks clicks */
.buy-btn::before,
.buy-btn::after,
.store-box::before,
.store-box::after {
    pointer-events: none;
}

/* ─── Fix: Stripe button — ensure z-index & cursor correct ──── */
.buy-with-stripe {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.buy-with-stripe * {
    pointer-events: none;
}

/* ─── Fix: any remaining Bootstrap grey backgrounds ──────────── */
/* Catch-all for any container/row that Bootstrap left with a
   white/light background via .bg-light, .bg-white, .bg-secondary */
.bg-light    { background-color: var(--surface-2) !important; color: var(--text) !important; }
.bg-white    { background-color: var(--surface) !important; color: var(--text) !important; }
.bg-dark     { background-color: var(--bg-2) !important; }
.bg-secondary { background-color: var(--surface-3) !important; }

/* Bootstrap 3 context classes */
.bg-success  { background-color: rgba(40,167,69,0.15) !important; }
.bg-danger   { background-color: rgba(196,24,24,0.12) !important; }
.bg-info     { background-color: rgba(13,110,253,0.08) !important; }
.bg-warning  { background-color: rgba(255,165,0,0.10) !important; }

/* ─── Fix: table td/th default colors ───────────────────────── */
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    border-color: rgba(255,255,255,0.06) !important;
    color: var(--text);
}

/* ─── Fix: Bootstrap's hardcoded grey on .close ─────────────── */
button.close {
    color: var(--text-muted) !important;
    text-shadow: none !important;
    opacity: 0.7;
}

button.close:hover {
    color: var(--white) !important;
    opacity: 1;
}

/* ─── Fix: Bootstrap's hardcoded blockquote ─────────────────── */
blockquote {
    border-left-color: var(--red) !important;
    color: var(--text-dim) !important;
    font-family: var(--font-prose);
}

/* ─── Fix: hr color override ─────────────────────────────────── */
.content hr,
.darker-box hr,
.info-box hr {
    border-color: var(--border-red) !important;
}


/* ═══════════════════════════════════════════════════════════════
   PATCH 2 — Deep grey kills + gateway button theming
   ═══════════════════════════════════════════════════════════════ */

/* ─── btn-default: missing hover state ───────────────────────── */
/* Bootstrap 3 defaults to #e6e6e6 on hover — override everything */
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-color: var(--surface-2) !important;
    border-color: var(--border-red) !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

.btn-default:active,
.btn-default.active {
    background-color: var(--bg-3) !important;
}

/* ─── Native buttons not given .btn class ────────────────────── */
button:not(.close):not(.navbar-toggle) {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    font-family: var(--font-display) !important;
    transition: all var(--transition);
}

button:not(.close):not(.navbar-toggle):hover,
button:not(.close):not(.navbar-toggle):focus {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ─── input[type=submit] — browser default grey ──────────────── */
input[type="submit"],
input[type="button"],
input[type="reset"] {
    background-color: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: all var(--transition);
}

input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--surface-3) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
}

/* ─── Bootstrap navbar toggle (mobile hamburger) ─────────────── */
.navbar-toggle {
    background-color: transparent !important;
    border-color: var(--border-red) !important;
}

.navbar-toggle .icon-bar {
    background-color: var(--text-dim) !important;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: var(--surface-2) !important;
}

.navbar-toggle:hover .icon-bar,
.navbar-toggle:focus .icon-bar {
    background-color: var(--white) !important;
}

/* ─── Bootstrap open dropdown toggle ─────────────────────────── */
.navbar-inverse .navbar-nav .open .dropdown-toggle,
.navbar-inverse .navbar-nav .open .dropdown-toggle:hover,
.navbar-inverse .navbar-nav .open .dropdown-toggle:focus {
    background-color: var(--surface-2) !important;
    color: var(--white) !important;
}

/* ─── Stripe + gateway buttons — theme them directly ─────────── */
/* Prometheus gateways::display() outputs .buy-with-stripe and other
   gateway anchors. Style them all to match buy-btn look.          */
.buy-with-stripe,
a[href*="gateway=stripe"],
a[href*="gateway=paypal"],
a[href*="gateway=credits"],
a[href*="gateway=paymentwall"],
.gateway-link,
.payment-gateway-btn {
    display: block !important;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dim) 100%) !important;
    color: var(--white) !important;
    border: 1px solid var(--red) !important;
    border-radius: var(--radius) !important;
    padding: 14px 24px !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 12px rgba(196,24,24,0.3) !important;
    position: relative !important;
    z-index: 1 !important;
    /* CRITICAL: pointer-events must be 'auto' on the element itself */
    pointer-events: auto !important;
}

.buy-with-stripe:hover,
a[href*="gateway=stripe"]:hover,
a[href*="gateway=paypal"]:hover,
a[href*="gateway=credits"]:hover,
a[href*="gateway=paymentwall"]:hover {
    background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%) !important;
    color: var(--white) !important;
    border-color: var(--red-bright) !important;
    box-shadow: 0 4px 20px rgba(196,24,24,0.5) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Credits gateway — distinct blue/dark colour */
a[href*="gateway=credits"],
.buy-with-credits {
    background: linear-gradient(135deg, var(--surface-3) 0%, var(--surface-2) 100%) !important;
    border-color: var(--border-red) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

a[href*="gateway=credits"]:hover {
    background: var(--surface-2) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
}

/* Kill any pseudo-elements on gateway buttons */
.buy-with-stripe::before,
.buy-with-stripe::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

/* ─── Bootstrap grey panel variants ──────────────────────────── */
.panel-success > .panel-heading { background: rgba(40,167,69,0.15) !important; border-color: rgba(40,167,69,0.3) !important; color: #28a745 !important; }
.panel-danger  > .panel-heading { background: rgba(196,24,24,0.12) !important; border-color: var(--border-red)            !important; color: var(--red-bright) !important; }
.panel-info    > .panel-heading { background: rgba(13,110,253,0.10) !important; border-color: rgba(13,110,253,0.3)         !important; color: #5b9bef !important; }
.panel-warning > .panel-heading { background: rgba(255,165,0,0.10)  !important; border-color: rgba(255,165,0,0.3)          !important; color: #f0a020 !important; }

.panel-success { border-color: rgba(40,167,69,0.25) !important; }
.panel-danger  { border-color: var(--border-red) !important; }
.panel-info    { border-color: rgba(13,110,253,0.25) !important; }
.panel-warning { border-color: rgba(255,165,0,0.25) !important; }

/* ─── Bootstrap nav base hover (non-navbar) ──────────────────── */
.nav > li > a:hover,
.nav > li > a:focus {
    background-color: var(--surface-2) !important;
    color: var(--white) !important;
}

/* ─── Prometheus news panel — all likely class combos ────────── */
/* Prometheus news usually wraps in .options or .panel inside a col */
.options h3,
.options h4,
.options h5,
.options p,
.options span {
    color: var(--text) !important;
}

.options a {
    color: var(--text-dim) !important;
}

.options a:hover {
    color: var(--red-bright) !important;
}

/* News item date stamps */
.options .date,
.options .timestamp,
.options small {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

/* ─── Prometheus sidebar news via .panel ─────────────────────── */
.panel-default {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
}

.panel-default > .panel-heading,
.panel-default > .panel-heading + .panel-collapse > .panel-body {
    background-color: var(--bg-2) !important;
    color: var(--white) !important;
    border-color: var(--border-red) !important;
}

.panel-default > .panel-body {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

/* ─── Any remaining white/grey hardcoded Bootstrap backgrounds── */
.container-fluid,
.container,
.row,
.col,
[class^="col-"] {
    /* Don't set background on these — they're layout only.
       But catch any Bootstrap utility that turns them white: */
}

/* Bootstrap's page header */
.page-header {
    border-bottom-color: var(--border-red) !important;
    color: var(--white) !important;
    font-family: var(--font-display) !important;
}

/* ─── Prometheus .content-page-top inner spans ───────────────── */
.content-page-top a,
.content-page-top span {
    color: var(--text) !important;
}

/* ─── Bootstrap .media (news items sometimes use .media) ─────── */
.media-heading {
    color: var(--white) !important;
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
}

.media-body {
    color: var(--text-dim) !important;
    font-family: var(--font-prose) !important;
}

/* ─── Bootstrap blockquote footer ────────────────────────────── */
blockquote footer,
blockquote small,
blockquote .small {
    color: var(--text-muted) !important;
}

/* ─── Bootstrap mark/kbd ─────────────────────────────────────── */
mark {
    background: rgba(196,24,24,0.2) !important;
    color: var(--red-bright) !important;
    padding: 2px 4px;
    border-radius: 2px;
}

kbd {
    background: var(--bg-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-red);
    border-radius: var(--radius);
    box-shadow: none !important;
}

/* ─── Bootstrap img-thumbnail ────────────────────────────────── */
.img-thumbnail {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
}

/* ─── text-* helpers that Bootstrap makes grey ───────────────── */
.text-primary { color: var(--red-bright) !important; }
.text-info    { color: #5b9bef !important; }
.text-warning { color: #f0a020 !important; }

/* ─── Bootstrap .form-group label ────────────────────────────── */
label {
    color: var(--text-dim) !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
}

/* ─── Bootstrap help-block ───────────────────────────────────── */
.help-block {
    color: var(--text-muted) !important;
    font-family: var(--font-prose) !important;
    font-size: 0.85rem !important;
}

/* ─── Bootstrap input-group-addon (fix icon boxes) ──────────── */
.input-group-addon {
    background-color: var(--surface-3) !important;
    border-color: var(--border) !important;
    color: var(--text-dim) !important;
}

/* ─── Bootstrap .form-control[disabled] / readonly ──────────── */
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: var(--bg-3) !important;
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ─── Fix buy-btn — ZERO pseudo-element interference ─────────── */
/* Ensure the anchor itself is always clickable no matter what */
a.buy-btn,
a.buy-with-stripe,
a[class*="buy-"],
a[class*="gateway"] {
    pointer-events: auto !important;
    z-index: 2 !important;
    position: relative !important;
}

a.buy-btn *,
a.buy-with-stripe * {
    pointer-events: none !important;
}

a.buy-btn::before,
a.buy-btn::after {
    pointer-events: none !important;
}



/* ═══════════════════════════════════════════════════════════════
   PATCH 3 — Beat site.css overrides + fix srv-box gateway hover
   These rules MUST be at the end to load last and win.
   ═══════════════════════════════════════════════════════════════ */

/* site.css:224 sets color:#495057 !important on .navbar .nav-item .nav-link
   We need the SAME selector + !important, loading AFTER to win. */
.navbar .nav-item .nav-link,
.navbar .nav-item .nav-link:visited {
    color: var(--text-dim) !important;
    background-color: transparent !important;
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link:focus,
.navbar .nav-item.active .nav-link,
.navbar .nav-item.active .nav-link:hover {
    color: var(--white) !important;
    background-color: var(--surface-2) !important;
}

/* Dropdown items inside nav */
.navbar .dropdown-menu .nav-link,
.navbar .dropdown-menu a {
    color: var(--text-dim) !important;
}

.navbar .dropdown-menu .nav-link:hover,
.navbar .dropdown-menu a:hover {
    color: var(--white) !important;
    background-color: var(--surface-2) !important;
}

/* ─── srv-box used as gateway buttons on purchase page ───────────
   Prometheus renders payment gateways as .srv-box divs inside
   anchor tags. The hover transition bg is being overridden.
   Use the SAME specificity as the broken rule + !important.       */

/* Non-hover base */
.srv-box {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-dim) !important;
    cursor: pointer !important;
}

/* Hover — extremely explicit to win over transitions_style */
.srv-box:hover,
a:hover .srv-box,
a:focus .srv-box,
div:hover > .srv-box,
.col-md-4:hover .srv-box,
.col-md-3:hover .srv-box,
[class*="col-"]:hover .srv-box {
    background: var(--surface-2) !important;
    background-color: var(--surface-2) !important;
    border-color: var(--red) !important;
    color: var(--white) !important;
    box-shadow: 0 0 16px rgba(196,24,24,0.35) !important;
    transform: translateY(-2px) !important;
}

/* Icon color inside srv-box */
.srv-box .fa,
.srv-box i {
    color: var(--red) !important;
    transition: color var(--transition) !important;
}

.srv-box:hover .fa,
.srv-box:hover i,
a:hover .srv-box .fa,
a:hover .srv-box i {
    color: var(--white) !important;
}

/* srv-label inside gateway srv-box */
.srv-box .srv-label {
    background-color: var(--red) !important;
    color: var(--white) !important;
}

.srv-box:hover .srv-label,
a:hover .srv-box .srv-label {
    background-color: var(--red-bright) !important;
}

/* Anchor wrapping the srv-box — ensure no pointer-events block */
a:has(.srv-box),
a.buy-with-stripe,
a[href*="gateway="] {
    display: block !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Kill any lingering grey from Bootstrap or site.css on btn-default */
.btn-default,
.btn-default:link,
.btn-default:visited {
    background-color: var(--surface-2) !important;
    background-image: none !important;
    border-color: var(--border) !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
    background-color: var(--surface-3) !important;
    background-image: none !important;
    border-color: var(--border-red) !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

/* Bootstrap 3 gradient mixin override */
.btn-default {
    filter: none !important;
}

/* Any remaining #495057 grey text that site.css injects */
.text-muted,
.help-block,
small,
.small {
    color: var(--text-muted) !important;
}



/* ═══════════════════════════════════════════════════════════════
   PATCH 4 — Stretch .buy-with-stripe anchor to fill entire srv-box
   Structure: div.srv-box > svg + a.btn.buy-btn.buy-with-stripe
   The <a> is tiny (316×54) inside a large srv-box.
   Make it position:absolute covering the whole box so clicking
   anywhere on the srv-box triggers the link.
   ═══════════════════════════════════════════════════════════════ */

.srv-box {
    position: relative !important;
}

.srv-box .buy-with-stripe,
.srv-box .buy-btn,
.srv-box a.btn {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;       /* invisible — srv-box visuals show through */
    z-index: 10 !important;
    cursor: pointer !important;
    display: block !important;
    pointer-events: auto !important;
}



/* ═══════════════════════════════════════════════════════════════
   PATCH 5 — Fix clipped text in select dropdowns
   ═══════════════════════════════════════════════════════════════ */

select.form-control,
select {
    height: auto !important;
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    line-height: 1.5 !important;
    overflow: visible !important;
    /* Prevent browser from clipping option text */
    text-overflow: ellipsis;
}

/* Firefox specific — it clips differently */
select.form-control:-moz-focusring {
    color: transparent !important;
    text-shadow: 0 0 0 var(--text) !important;
}



/* ═══════════════════════════════════════════════════════════════
   PATCH 6 — Hide Home + Store nav links
   Home page is removed; store is the root. No nav buttons needed.
   ═══════════════════════════════════════════════════════════════ */

/* Hide any nav-item whose link points to index / home or store */
.navbar .nav-item a.nav-link[href="."],
.navbar .nav-item a.nav-link[href="./"],
.navbar .nav-item a.nav-link[href="index.php"],
.navbar .nav-item a.nav-link[href="store.php"],
.navbar .nav-item a.nav-link[href="store.php?page=server"] {
    display: none !important;
}

/* Hide the parent li too so it doesn't leave a gap */
.navbar .nav-item:has(a.nav-link[href="."]),
.navbar .nav-item:has(a.nav-link[href="./"]),
.navbar .nav-item:has(a.nav-link[href="index.php"]),
.navbar .nav-item:has(a.nav-link[href="store.php"]),
.navbar .nav-item:has(a.nav-link[href="store.php?page=server"]) {
    display: none !important;
}

/* Also hide any dropdown that ONLY contains the store link */
.navbar .nav-item.dropdown:has(a.dropdown-item[href="store.php?page=server"]):not(:has(a.dropdown-item:not([href="store.php?page=server"]))) {
    display: none !important;
}



/* ═══════════════════════════════════════════════════════════════
   PATCH 7 — Fix srv-box background image being overridden
   My earlier .srv-box { background: !important } clobbers the
   inline background-image set by Prometheus. Switch to
   background-color only so images show through.
   ═══════════════════════════════════════════════════════════════ */

.srv-box {
    background: unset !important;           /* clear the shorthand override */
    background-color: var(--surface) !important;  /* only set colour */
    background-size: cover !important;      /* if an image IS set inline, size it nicely */
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Hover — keep colour overlay but don't kill the image */
.srv-box:hover,
a:hover .srv-box,
a:focus .srv-box {
    background-color: rgba(22, 22, 34, 0.55) !important;  /* dark tint over image */
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}