/* ============================================================
   VOLITION HOSTING — WHMCS Custom Theme CSS
   Premium Game Server Hosting
   Dark Red & Charcoal Design System
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
    --vh-red: #E63946;
    --vh-red-hover: #C62D38;
    --vh-red-dark: #9B1B24;
    --vh-red-glow: rgba(230, 57, 70, 0.35);
    --vh-bg-darkest: #0B0B0F;
    --vh-bg-dark: #111117;
    --vh-bg-surface: #1A1A23;
    --vh-bg-card: #1E1E28;
    --vh-bg-card-hover: #252530;
    --vh-border: #2A2A36;
    --vh-border-accent: rgba(230, 57, 70, 0.25);
    --vh-text-primary: #F0F0F5;
    --vh-text-secondary: #9A9AB0;
    --vh-text-muted: #6B6B80;
    --vh-success: #2ECC71;
    --vh-warning: #F39C12;
    --vh-danger: #E74C3C;
    --vh-info: #3498DB;
    --vh-radius: 8px;
    --vh-radius-lg: 12px;
    --vh-radius-xl: 16px;
    --vh-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --vh-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.6);
    --vh-shadow-red: 0 4px 24px rgba(230, 57, 70, 0.15);
    --vh-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --vh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* ── Global Reset & Base ───────────────────────────────────── */
body,
body.primary-bg-color {
    background-color: var(--vh-bg-darkest) !important;
    color: var(--vh-text-primary) !important;
    font-family: var(--vh-font) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--vh-red);
    color: #fff;
}

a {
    color: var(--vh-red);
    transition: var(--vh-transition);
}
a:hover {
    color: var(--vh-red-hover);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--vh-text-primary) !important;
    font-family: var(--vh-font) !important;
    font-weight: 700;
}

p, li, td, th, span, label, div {
    color: var(--vh-text-secondary);
}

hr {
    border-color: var(--vh-border);
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--vh-bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--vh-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--vh-red);
}

/* ============================================================
   HEADER / TOPBAR / NAVBAR
   ============================================================ */

header#header,
.header {
    background: var(--vh-bg-dark) !important;
    border-bottom: 1px solid var(--vh-border);
}

/* Top bar for logged-in users */
.topbar {
    background: var(--vh-bg-darkest) !important;
    border-bottom: 1px solid var(--vh-border);
    padding: 6px 0;
}
.topbar .btn {
    color: var(--vh-text-secondary) !important;
    font-size: 0.85rem;
}
.topbar .btn:hover {
    color: var(--vh-red) !important;
}
.topbar .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--vh-text-muted) !important;
    font-size: 0.8rem;
}
.topbar .btn-active-client {
    background: var(--vh-bg-surface) !important;
    color: var(--vh-text-primary) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius) !important;
    font-size: 0.85rem;
}
.topbar .btn-return-to-admin {
    background: var(--vh-red) !important;
    color: #fff !important;
    border-radius: var(--vh-radius) !important;
}

/* Client alerts popover */
.client-alerts {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius) !important;
}
.client-alerts li a {
    color: var(--vh-text-secondary) !important;
}
.client-alerts li a:hover {
    color: var(--vh-text-primary) !important;
    background: var(--vh-bg-card-hover) !important;
}

/* Main navbar */
.navbar {
    background: transparent !important;
    padding: 12px 0;
}
.navbar.navbar-light {
    background: transparent !important;
}

/* Logo */
.navbar-brand {
    color: var(--vh-text-primary) !important;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.navbar-brand img.logo-img {
    max-height: 48px;
    width: auto;
}

/* KB search bar */
.navbar .search {
    background: var(--vh-bg-surface) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius) !important;
    overflow: hidden;
}
.navbar .search .form-control {
    background: transparent !important;
    border: none !important;
    color: var(--vh-text-primary) !important;
    font-size: 0.85rem;
}
.navbar .search .form-control::placeholder {
    color: var(--vh-text-muted) !important;
}
.navbar .search .btn {
    background: transparent !important;
    border: none !important;
    color: var(--vh-text-muted) !important;
}
.navbar .search .btn:hover {
    color: var(--vh-red) !important;
}

/* Cart button */
.cart-btn {
    color: var(--vh-text-secondary) !important;
    position: relative;
}
.cart-btn:hover {
    color: var(--vh-red) !important;
}
.cart-btn .badge-info {
    background: var(--vh-red) !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 0.65rem;
    padding: 3px 6px;
    position: absolute;
    top: 2px;
    right: -2px;
}

/* Hamburger button */
.navbar .nav-link {
    color: var(--vh-text-secondary) !important;
}
.navbar .nav-link:hover {
    color: var(--vh-red) !important;
}

/* Main navigation bar */
.main-navbar-wrapper {
    background: var(--vh-bg-surface) !important;
    border-top: 1px solid var(--vh-border);
    border-bottom: 2px solid var(--vh-red);
    padding: 0 !important;
}
.main-navbar-wrapper .container {
    padding-top: 0;
    padding-bottom: 0;
}
#nav .nav-item > a,
#nav > li > a,
.navbar-nav > li > a {
    color: var(--vh-text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 14px 16px !important;
    transition: var(--vh-transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
#nav .nav-item > a:hover,
#nav > li > a:hover,
.navbar-nav > li > a:hover {
    color: var(--vh-text-primary) !important;
    background: rgba(230, 57, 70, 0.08) !important;
    border-bottom-color: var(--vh-red);
}
.navbar-nav .dropdown-menu {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius) !important;
    box-shadow: var(--vh-shadow) !important;
    padding: 8px 0;
    margin-top: 0;
}
.navbar-nav .dropdown-menu .dropdown-item,
.navbar-nav .dropdown-menu .dropdown-item a {
    color: var(--vh-text-secondary) !important;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: var(--vh-transition);
}
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item a:hover {
    color: var(--vh-text-primary) !important;
    background: rgba(230, 57, 70, 0.1) !important;
}
.navbar-nav .dropdown-divider {
    border-color: var(--vh-border) !important;
}

/* Collapsable dropdown */
.collapsable-dropdown-menu {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.master-breadcrumb {
    background: var(--vh-bg-dark) !important;
    border-bottom: 1px solid var(--vh-border);
    padding: 10px 0;
}
.breadcrumb {
    background: transparent !important;
    margin: 0;
    padding: 0;
}
.breadcrumb-item,
.breadcrumb-item a {
    color: var(--vh-text-muted) !important;
    font-size: 0.82rem;
}
.breadcrumb-item.active {
    color: var(--vh-text-secondary) !important;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--vh-text-muted) !important;
}

/* ============================================================
   MAIN BODY / CONTENT AREA
   ============================================================ */
#main-body {
    background: var(--vh-bg-darkest);
    min-height: 60vh;
    padding: 30px 0;
}
.primary-content {
    color: var(--vh-text-secondary);
}

/* ============================================================
   CARDS — Universal
   ============================================================ */
.card {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-lg) !important;
    box-shadow: var(--vh-shadow);
    transition: var(--vh-transition);
    color: var(--vh-text-secondary);
}
.card:hover {
    border-color: var(--vh-border-accent) !important;
}
.card-header {
    background: var(--vh-bg-surface) !important;
    border-bottom: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-lg) var(--vh-radius-lg) 0 0 !important;
    padding: 16px 20px;
}
.card-header .card-title {
    color: var(--vh-text-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}
.card-body {
    padding: 20px;
}
.card-footer {
    background: var(--vh-bg-surface) !important;
    border-top: 1px solid var(--vh-border) !important;
    border-radius: 0 0 var(--vh-radius-lg) var(--vh-radius-lg) !important;
}

/* Card accent colors — override twenty-one defaults */
.card-accent-blue { border-top: 3px solid var(--vh-info) !important; }
.card-accent-green { border-top: 3px solid var(--vh-success) !important; }
.card-accent-red { border-top: 3px solid var(--vh-red) !important; }
.card-accent-gold { border-top: 3px solid var(--vh-warning) !important; }
.card-accent-teal { border-top: 3px solid #1ABC9C !important; }
.card-accent-pomegranate { border-top: 3px solid var(--vh-red) !important; }
.card-accent-sun-flower { border-top: 3px solid var(--vh-warning) !important; }
.card-accent-asbestos { border-top: 3px solid var(--vh-text-muted) !important; }
.card-accent-midnight-blue { border-top: 3px solid var(--vh-red) !important; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar .card,
.card-sidebar {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-lg) !important;
}
.sidebar .card-header,
.card-sidebar .card-header {
    background: var(--vh-bg-surface) !important;
    border-bottom: 1px solid var(--vh-border) !important;
}
.sidebar .card-header .card-title {
    color: var(--vh-text-primary) !important;
    font-size: 0.9rem;
    font-weight: 600;
}
.sidebar .card-minimise {
    color: var(--vh-text-muted) !important;
    cursor: pointer;
}

/* Sidebar list items */
.sidebar .list-group-item,
.list-group-item {
    background: var(--vh-bg-card) !important;
    border-color: var(--vh-border) !important;
    color: var(--vh-text-secondary) !important;
    transition: var(--vh-transition);
    font-size: 0.88rem;
}
.sidebar .list-group-item:hover,
.list-group-item.list-group-item-action:hover {
    background: var(--vh-bg-card-hover) !important;
    color: var(--vh-text-primary) !important;
}
.sidebar .list-group-item.active,
.list-group-item.active {
    background: rgba(230, 57, 70, 0.12) !important;
    border-left: 3px solid var(--vh-red) !important;
    color: var(--vh-red) !important;
}
.sidebar .list-group-item i,
.list-group-item i {
    color: var(--vh-text-muted);
    width: 24px;
    text-align: center;
}
.sidebar .list-group-item:hover i {
    color: var(--vh-red);
}

/* Sidebar badges */
.sidebar .badge,
.card-sidebar .badge {
    background: var(--vh-red) !important;
    color: #fff !important;
    border-radius: 10px;
    font-size: 0.72rem;
    padding: 3px 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-primary:focus {
    background: var(--vh-red) !important;
    border-color: var(--vh-red) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--vh-radius) !important;
    box-shadow: 0 2px 12px rgba(230, 57, 70, 0.25);
    transition: var(--vh-transition);
    text-transform: none;
    letter-spacing: 0;
}
.btn-primary:hover,
.btn-primary:active {
    background: var(--vh-red-hover) !important;
    border-color: var(--vh-red-hover) !important;
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.35) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--vh-red) !important;
    border-color: var(--vh-red) !important;
    background: transparent !important;
    border-radius: var(--vh-radius) !important;
    font-weight: 500;
    transition: var(--vh-transition);
}
.btn-outline-primary:hover {
    background: var(--vh-red) !important;
    color: #fff !important;
    box-shadow: var(--vh-shadow-red);
}

.btn-default,
.btn-secondary {
    background: var(--vh-bg-surface) !important;
    border: 1px solid var(--vh-border) !important;
    color: var(--vh-text-secondary) !important;
    border-radius: var(--vh-radius) !important;
    font-weight: 500;
    transition: var(--vh-transition);
}
.btn-default:hover,
.btn-secondary:hover {
    background: var(--vh-bg-card-hover) !important;
    border-color: var(--vh-red) !important;
    color: var(--vh-text-primary) !important;
}

.btn-success {
    background: var(--vh-success) !important;
    border-color: var(--vh-success) !important;
    border-radius: var(--vh-radius) !important;
}
.btn-danger {
    background: var(--vh-danger) !important;
    border-color: var(--vh-danger) !important;
    border-radius: var(--vh-radius) !important;
}
.btn-warning {
    background: var(--vh-warning) !important;
    border-color: var(--vh-warning) !important;
    border-radius: var(--vh-radius) !important;
}
.btn-info {
    background: var(--vh-info) !important;
    border-color: var(--vh-info) !important;
    border-radius: var(--vh-radius) !important;
    color: #fff !important;
}

.btn-lg {
    padding: 12px 32px !important;
    font-size: 1rem !important;
    border-radius: var(--vh-radius-lg) !important;
}
.btn-sm, .btn-xs {
    border-radius: 6px !important;
    font-size: 0.8rem !important;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control,
.field,
select.form-control {
    background: var(--vh-bg-surface) !important;
    border: 1px solid var(--vh-border) !important;
    color: var(--vh-text-primary) !important;
    border-radius: var(--vh-radius) !important;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--vh-transition);
}
.form-control:focus,
.field:focus {
    border-color: var(--vh-red) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
    outline: none !important;
}
.form-control::placeholder {
    color: var(--vh-text-muted) !important;
}
.form-control-label,
label {
    color: var(--vh-text-secondary) !important;
    font-weight: 500;
    font-size: 0.85rem;
}

.input-group-text {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    color: var(--vh-text-muted) !important;
    border-radius: var(--vh-radius) !important;
}
.input-group-merge .input-group-text {
    border-right: none !important;
}
.input-group-merge .form-control {
    border-left: none !important;
}

/* Custom select */
select.form-control option {
    background: var(--vh-bg-card);
    color: var(--vh-text-primary);
}

/* Checkbox & toggle */
.form-check-input {
    accent-color: var(--vh-red);
}

/* ============================================================
   TABLES
   ============================================================ */
.table {
    color: var(--vh-text-secondary) !important;
}
.table thead th {
    background: var(--vh-bg-surface) !important;
    border-bottom: 2px solid var(--vh-border) !important;
    color: var(--vh-text-primary) !important;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
}
.table td {
    border-top: 1px solid var(--vh-border) !important;
    padding: 12px 16px;
    color: var(--vh-text-secondary) !important;
    font-size: 0.88rem;
    vertical-align: middle;
}
.table tbody tr:hover td {
    background: var(--vh-bg-card-hover) !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255,255,255,0.02) !important;
}

/* Pagination */
.pagination .page-item .page-link {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    color: var(--vh-text-secondary) !important;
    border-radius: var(--vh-radius) !important;
    margin: 0 3px;
    transition: var(--vh-transition);
}
.pagination .page-item.active .page-link {
    background: var(--vh-red) !important;
    border-color: var(--vh-red) !important;
    color: #fff !important;
}
.pagination .page-item .page-link:hover {
    background: var(--vh-bg-card-hover) !important;
    border-color: var(--vh-red) !important;
    color: var(--vh-text-primary) !important;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    border-radius: var(--vh-radius) !important;
    border: 1px solid;
    font-size: 0.9rem;
}
.alert-success {
    background: rgba(46, 204, 113, 0.1) !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
    color: var(--vh-success) !important;
}
.alert-danger,
.alert-error {
    background: rgba(231, 76, 60, 0.1) !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
    color: var(--vh-danger) !important;
}
.alert-warning {
    background: rgba(243, 156, 18, 0.1) !important;
    border-color: rgba(243, 156, 18, 0.3) !important;
    color: var(--vh-warning) !important;
}
.alert-info {
    background: rgba(52, 152, 219, 0.1) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
    color: var(--vh-info) !important;
}

/* ============================================================
   CLIENT AREA DASHBOARD — TILES
   ============================================================ */
.tiles {
    background: transparent;
}
.tiles .tile {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-lg) !important;
    margin: 6px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--vh-transition);
    display: block;
    text-decoration: none;
}
.tiles .tile:hover {
    border-color: var(--vh-red) !important;
    background: var(--vh-bg-card-hover) !important;
    box-shadow: var(--vh-shadow-red);
    transform: translateY(-2px);
}
.tiles .tile i {
    font-size: 1.8rem;
    color: var(--vh-red);
    margin-bottom: 8px;
}
.tiles .tile .stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vh-text-primary) !important;
    line-height: 1.2;
}
.tiles .tile .title {
    font-size: 0.8rem;
    color: var(--vh-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 4px;
}
.tiles .tile .highlight {
    height: 3px;
    border-radius: 3px;
    margin-top: 12px;
}
.bg-color-blue { background: var(--vh-info) !important; }
.bg-color-green { background: var(--vh-success) !important; }
.bg-color-red { background: var(--vh-red) !important; }
.bg-color-gold { background: var(--vh-warning) !important; }

/* Client home cards */
.client-home-cards .card {
    margin-bottom: 20px;
}
.client-home-cards .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.client-home-cards .list-group-item {
    padding: 12px 20px;
}

/* ============================================================
   HOMEPAGE — DEFAULT PRODUCT CARDS
   ============================================================ */
.card-columns.home .card {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
}
.card-columns.home .card:hover {
    border-color: var(--vh-red) !important;
    box-shadow: var(--vh-shadow-red);
}
.card-columns.home .card .card-title {
    color: var(--vh-text-primary) !important;
}
.card-columns.home .btn-outline-primary {
    margin-top: 12px;
}

/* Action icon buttons on homepage */
.action-icon-btns a {
    display: block;
    text-align: center;
    padding: 24px 12px;
    color: var(--vh-text-secondary) !important;
    text-decoration: none;
    border-radius: var(--vh-radius-lg);
    border: 1px solid transparent;
    transition: var(--vh-transition);
    margin-bottom: 12px;
}
.action-icon-btns a:hover {
    background: var(--vh-bg-card) !important;
    border-color: var(--vh-border);
    color: var(--vh-text-primary) !important;
    transform: translateY(-2px);
}
.action-icon-btns .ico-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: var(--vh-transition);
}
.action-icon-btns a:hover .ico-container {
    background: var(--vh-red);
}
.action-icon-btns .ico-container i {
    font-size: 1.4rem;
    color: var(--vh-red);
    transition: var(--vh-transition);
}
.action-icon-btns a:hover .ico-container i {
    color: #fff;
}

/* Override card-accent colors on action icons */
.action-icon-btns a[class*="card-accent-"] .ico-container {
    background: rgba(230, 57, 70, 0.1);
}
.action-icon-btns a[class*="card-accent-"]:hover .ico-container {
    background: var(--vh-red);
}

/* ============================================================
   LOGIN / REGISTER PAGES
   ============================================================ */
.login-form .card {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-xl) !important;
    max-width: 480px;
    margin: 40px auto;
}
.login-form .card-body {
    padding: 40px !important;
}
.login-form .card-footer {
    background: var(--vh-bg-surface) !important;
    border-top: 1px solid var(--vh-border) !important;
    text-align: center;
    padding: 16px;
}
.login-form .card-footer small {
    color: var(--vh-text-muted) !important;
}
.login-form .card-footer a {
    color: var(--vh-red) !important;
}
.login-form .form-group {
    margin-bottom: 20px;
}
.login-form .text-muted {
    color: var(--vh-text-muted) !important;
}

/* pw-reveal button */
.btn-reveal-pw {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    color: var(--vh-text-muted) !important;
}
.btn-reveal-pw:hover {
    color: var(--vh-red) !important;
}

/* Registration form */
#registration .card {
    border-radius: var(--vh-radius-lg) !important;
}
#registration .card-title {
    font-size: 1.1rem;
    color: var(--vh-text-primary) !important;
    border-bottom: 1px solid var(--vh-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

/* ============================================================
   SUPPORT TICKETS
   ============================================================ */
.ticket-reply {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-lg) !important;
    margin-bottom: 16px;
    padding: 20px;
}
.ticket-reply-operator {
    border-left: 3px solid var(--vh-red) !important;
}
.ticket-reply .name {
    color: var(--vh-text-primary) !important;
    font-weight: 600;
}
.ticket-reply .date {
    color: var(--vh-text-muted) !important;
    font-size: 0.82rem;
}

/* ============================================================
   KNOWLEDGEBASE
   ============================================================ */
.kb-article-content {
    color: var(--vh-text-secondary);
    line-height: 1.7;
}
.kb-article-content h1,
.kb-article-content h2,
.kb-article-content h3 {
    color: var(--vh-text-primary) !important;
}

/* ============================================================
   INVOICES
   ============================================================ */
.invoice-header {
    background: var(--vh-bg-surface);
    border-radius: var(--vh-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

/* ============================================================
   DOMAIN SEARCH — HIDE ON HOMEPAGE
   (Game hosting only — no domain sales)
   ============================================================ */
.domain-checker-container,
.domain-search-container,
#domainSearchContainer {
    display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer#footer,
.footer {
    background: var(--vh-bg-dark) !important;
    border-top: 1px solid var(--vh-border);
    padding: 40px 0 24px;
    margin-top: 40px;
}
.footer .nav-link {
    color: var(--vh-text-muted) !important;
    font-size: 0.85rem;
    padding: 4px 12px;
    transition: var(--vh-transition);
}
.footer .nav-link:hover {
    color: var(--vh-red) !important;
}
.footer .copyright {
    color: var(--vh-text-muted) !important;
    font-size: 0.8rem;
    border-top: 1px solid var(--vh-border);
    padding-top: 20px;
    margin-top: 20px;
}
.footer .list-inline-item .btn {
    color: var(--vh-text-muted) !important;
}
.footer .list-inline-item .btn:hover {
    color: var(--vh-red) !important;
}

/* Footer social icons */
.footer .social-icons a {
    color: var(--vh-text-muted);
    font-size: 1.2rem;
    margin: 0 8px;
    transition: var(--vh-transition);
}
.footer .social-icons a:hover {
    color: var(--vh-red);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-content {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius-xl) !important;
    color: var(--vh-text-secondary);
}
.modal-header {
    border-bottom: 1px solid var(--vh-border) !important;
    background: var(--vh-bg-surface) !important;
    border-radius: var(--vh-radius-xl) var(--vh-radius-xl) 0 0 !important;
}
.modal-header .modal-title {
    color: var(--vh-text-primary) !important;
}
.modal-header .close {
    color: var(--vh-text-muted) !important;
}
.modal-footer {
    border-top: 1px solid var(--vh-border) !important;
    background: var(--vh-bg-surface) !important;
    border-radius: 0 0 var(--vh-radius-xl) var(--vh-radius-xl) !important;
}

/* Language/currency modal */
.modal-localisation .modal-content {
    background: var(--vh-bg-dark) !important;
}
.modal-localisation .item-selector .item {
    background: var(--vh-bg-card);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius);
    padding: 10px 16px;
    color: var(--vh-text-secondary);
    display: block;
    text-align: center;
    margin-bottom: 8px;
    transition: var(--vh-transition);
}
.modal-localisation .item-selector .item:hover,
.modal-localisation .item-selector .item.active {
    background: var(--vh-red);
    border-color: var(--vh-red);
    color: #fff;
}

/* ============================================================
   BADGES / STATUS
   ============================================================ */
.badge {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 10px;
}
.badge-primary { background: var(--vh-red) !important; }
.badge-success { background: var(--vh-success) !important; }
.badge-danger { background: var(--vh-danger) !important; }
.badge-warning { background: var(--vh-warning) !important; color: #000 !important; }
.badge-info { background: var(--vh-info) !important; }
.badge-secondary { background: var(--vh-text-muted) !important; }

/* Status labels */
.label-active,
.label-success {
    background: var(--vh-success) !important;
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
}
.label-pending {
    background: var(--vh-warning) !important;
    color: #000 !important;
}
.label-terminated,
.label-cancelled {
    background: var(--vh-danger) !important;
    color: #fff !important;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */
.progress {
    background: var(--vh-bg-surface) !important;
    border-radius: var(--vh-radius) !important;
    height: 8px;
}
.progress-bar {
    border-radius: var(--vh-radius) !important;
}

/* ============================================================
   POPOVER
   ============================================================ */
.popover {
    background: var(--vh-bg-card) !important;
    border: 1px solid var(--vh-border) !important;
    border-radius: var(--vh-radius) !important;
    box-shadow: var(--vh-shadow) !important;
}
.popover-body {
    color: var(--vh-text-secondary) !important;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
.tooltip-inner {
    background: var(--vh-bg-surface) !important;
    color: var(--vh-text-primary) !important;
    border-radius: 6px !important;
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* ============================================================
   FULLPAGE OVERLAY / LOADING
   ============================================================ */
#fullpage-overlay {
    background: rgba(11, 11, 15, 0.85) !important;
}
#fullpage-overlay .msg {
    color: var(--vh-text-primary) !important;
}

/* ============================================================
   VOLITION CUSTOM HOMEPAGE SECTIONS
   (Applied via custom homepage.tpl)
   ============================================================ */

/* Hero Section */
.vh-hero {
    background: linear-gradient(135deg, var(--vh-bg-darkest) 0%, #1a0a0c 50%, var(--vh-bg-darkest) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.vh-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(230, 57, 70, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.vh-hero .vh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.25);
    color: var(--vh-red);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vh-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--vh-text-primary) !important;
}
.vh-hero h1 span {
    color: var(--vh-red) !important;
}
.vh-hero .vh-subtitle {
    font-size: 1.1rem;
    color: var(--vh-text-secondary) !important;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.vh-hero .vh-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.vh-hero .btn-hero-primary {
    background: var(--vh-red) !important;
    border: none;
    color: #fff !important;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--vh-radius-lg);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.3);
    transition: var(--vh-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vh-hero .btn-hero-primary:hover {
    background: var(--vh-red-hover) !important;
    box-shadow: 0 6px 28px rgba(230, 57, 70, 0.45);
    transform: translateY(-2px);
}
.vh-hero .btn-hero-secondary {
    background: transparent !important;
    border: 2px solid var(--vh-border);
    color: var(--vh-text-secondary) !important;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--vh-radius-lg);
    transition: var(--vh-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.vh-hero .btn-hero-secondary:hover {
    border-color: var(--vh-red);
    color: var(--vh-text-primary) !important;
    background: rgba(230, 57, 70, 0.05) !important;
}

/* Supported Games Grid */
.vh-section {
    padding: 60px 0;
}
.vh-section-alt {
    background: var(--vh-bg-dark);
}
.vh-section-title {
    text-align: center;
    margin-bottom: 12px;
}
.vh-section-title h2 {
    font-size: 2rem !important;
    font-weight: 800;
}
.vh-section-title h2 span {
    color: var(--vh-red) !important;
}
.vh-section-subtitle {
    text-align: center;
    color: var(--vh-text-muted) !important;
    font-size: 1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.vh-label {
    display: inline-block;
    color: var(--vh-red);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

/* Game cards */
.vh-game-card {
    background: var(--vh-bg-card);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-lg);
    overflow: hidden;
    transition: var(--vh-transition);
    text-decoration: none !important;
    display: block;
    margin-bottom: 24px;
}
.vh-game-card:hover {
    border-color: var(--vh-red);
    box-shadow: var(--vh-shadow-red);
    transform: translateY(-4px);
}
.vh-game-card .game-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: var(--vh-bg-surface);
}
.vh-game-card .game-info {
    padding: 16px;
}
.vh-game-card .game-name {
    color: var(--vh-text-primary) !important;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}
.vh-game-card .game-price {
    color: var(--vh-red) !important;
    font-weight: 600;
    font-size: 0.85rem;
}
.vh-game-card .game-cta {
    color: var(--vh-text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.vh-game-card:hover .game-cta {
    color: var(--vh-red);
}

/* Feature cards */
.vh-feature-card {
    background: var(--vh-bg-card);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--vh-transition);
    height: 100%;
}
.vh-feature-card:hover {
    border-color: var(--vh-border-accent);
    background: var(--vh-bg-card-hover);
}
.vh-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(230, 57, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.vh-feature-icon i {
    font-size: 1.4rem;
    color: var(--vh-red);
}
.vh-feature-card h4 {
    font-size: 1rem !important;
    font-weight: 700;
    margin-bottom: 8px;
}
.vh-feature-card p {
    font-size: 0.85rem;
    color: var(--vh-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Panel / WISP section */
.vh-panel-section {
    background: linear-gradient(135deg, var(--vh-bg-surface) 0%, #1a0a0c 100%);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.vh-panel-section .panel-content {
    flex: 1;
}
.vh-panel-section .panel-visual {
    flex: 1;
    text-align: center;
}
.vh-panel-section .panel-visual i {
    font-size: 6rem;
    color: var(--vh-red);
    opacity: 0.4;
}

/* FAQ Section */
.vh-faq-item {
    background: var(--vh-bg-card);
    border: 1px solid var(--vh-border);
    border-radius: var(--vh-radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
}
.vh-faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--vh-transition);
    user-select: none;
}
.vh-faq-question:hover {
    background: var(--vh-bg-card-hover);
}
.vh-faq-question h5 {
    margin: 0;
    font-size: 0.95rem !important;
    font-weight: 600;
    color: var(--vh-text-primary) !important;
}
.vh-faq-question .faq-icon {
    color: var(--vh-red);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.vh-faq-item.active .vh-faq-question .faq-icon {
    transform: rotate(180deg);
}
.vh-faq-answer {
    padding: 0 24px 18px;
    display: none;
    color: var(--vh-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.vh-faq-item.active .vh-faq-answer {
    display: block;
}

/* CTA Banner */
.vh-cta-banner {
    background: linear-gradient(135deg, var(--vh-red-dark) 0%, var(--vh-red) 100%);
    border-radius: var(--vh-radius-xl);
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.vh-cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.vh-cta-banner h2 {
    color: #fff !important;
    font-size: 2rem !important;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}
.vh-cta-banner p {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.05rem;
    margin-bottom: 24px;
    position: relative;
}
.vh-cta-banner .btn-cta {
    background: #fff !important;
    color: var(--vh-red) !important;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--vh-radius-lg);
    border: none;
    transition: var(--vh-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.vh-cta-banner .btn-cta:hover {
    background: var(--vh-text-primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

/* Custom Footer */
.vh-footer {
    background: var(--vh-bg-dark);
    border-top: 1px solid var(--vh-border);
    padding: 48px 0 24px;
}
.vh-footer-brand {
    margin-bottom: 16px;
}
.vh-footer-brand img {
    max-height: 40px;
}
.vh-footer-desc {
    color: var(--vh-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 280px;
}
.vh-footer-title {
    color: var(--vh-text-primary) !important;
    font-size: 0.85rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.vh-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.vh-footer-links li {
    margin-bottom: 8px;
}
.vh-footer-links a {
    color: var(--vh-text-muted) !important;
    font-size: 0.85rem;
    transition: var(--vh-transition);
    text-decoration: none;
}
.vh-footer-links a:hover {
    color: var(--vh-red) !important;
    padding-left: 4px;
}
.vh-footer-bottom {
    border-top: 1px solid var(--vh-border);
    padding-top: 20px;
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.vh-footer-bottom p {
    color: var(--vh-text-muted);
    font-size: 0.8rem;
    margin: 0;
}
.vh-footer-social a {
    color: var(--vh-text-muted);
    font-size: 1.1rem;
    margin-left: 16px;
    transition: var(--vh-transition);
}
.vh-footer-social a:hover {
    color: var(--vh-red);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
    .main-navbar-wrapper .navbar-collapse {
        background: var(--vh-bg-surface);
        border: 1px solid var(--vh-border);
        border-radius: var(--vh-radius-lg);
        padding: 16px;
        margin-top: 8px;
    }
    #nav .nav-item > a,
    .navbar-nav > li > a {
        padding: 10px 12px !important;
        border-bottom: none;
    }
}

@media (max-width: 991.98px) {
    .vh-hero {
        padding: 48px 0 40px;
    }
    .vh-hero h1 {
        font-size: 2rem !important;
    }
    .vh-panel-section {
        flex-direction: column;
        padding: 32px;
    }
    .vh-cta-banner {
        padding: 32px 20px;
    }
    .vh-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .tiles .tile {
        padding: 16px 12px;
    }
    .tiles .tile .stat {
        font-size: 1.5rem;
    }
    .vh-section {
        padding: 40px 0;
    }
    .vh-hero .vh-cta-group {
        flex-direction: column;
        align-items: center;
    }
    .vh-hero .btn-hero-primary,
    .vh-hero .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-red { color: var(--vh-red) !important; }
.text-muted { color: var(--vh-text-muted) !important; }
.bg-vh-dark { background: var(--vh-bg-dark) !important; }
.bg-vh-surface { background: var(--vh-bg-surface) !important; }
.bg-vh-card { background: var(--vh-bg-card) !important; }
.border-vh { border-color: var(--vh-border) !important; }
.glow-red { box-shadow: var(--vh-shadow-red) !important; }

/* Hide domain-specific items via CSS */
.domain-pricing-table,
.domain-checker-bg,
.domainchecker {
    display: none !important;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .header, .footer, .sidebar { display: none !important; }
    .card { border: 1px solid #ccc !important; background: #fff !important; box-shadow: none !important; }
}
