/* ============================================
   RapidSpawn 2.0 - Dark Theme Stylesheet
   ============================================

   Colors:
   - Primary Gradient: #4a52d4 → #1a1f65
   - Accent: #20a8ec
   - Dark BG: rgba(14, 20, 59, 0.85)
   - Text: #ffffff, #d6d6d6
   - Borders: rgba(255, 255, 255, 0.1)

============================================ */

/* ============================================
   BASE / BODY
============================================ */
html {
    min-height: 100%;
}

body {
    background: linear-gradient(90deg,
        #4a52d4 0%,
        #3d45c5 15%,
        #3540b8 30%,
        #2d38a5 50%,
        #252d8c 70%,
        #1e2470 85%,
        #1a1f65 100%);
    background-attachment: fixed;
    color: #d6d6d6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.primary-bg-color {
    background: linear-gradient(90deg,
        #4a52d4 0%,
        #3d45c5 15%,
        #3540b8 30%,
        #2d38a5 50%,
        #252d8c 70%,
        #1e2470 85%,
        #1a1f65 100%);
    background-attachment: fixed;
}

/* ============================================
   HEADER
============================================ */
#header,
.header {
    background: linear-gradient(180deg,
        rgba(14, 20, 59, 0.98) 0%,
        rgba(14, 20, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* First navbar row (logo, search, cart) */
header.header > .navbar:first-of-type,
.header > .navbar.navbar-dark {
    background: linear-gradient(90deg,
        rgba(74, 82, 212, 0.3) 0%,
        rgba(45, 56, 165, 0.3) 50%,
        rgba(26, 31, 101, 0.3) 100%) !important;
}

.topbar {
    background: linear-gradient(90deg,
        rgba(74, 82, 212, 0.2) 0%,
        rgba(45, 56, 165, 0.2) 50%,
        rgba(26, 31, 101, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Breadcrumb - Dark styling to match theme */
.master-breadcrumb {
    background: rgba(14, 20, 59, 0.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.master-breadcrumb .breadcrumb {
    background: transparent !important;
}

.master-breadcrumb .breadcrumb-item,
.master-breadcrumb .breadcrumb-item a {
    color: #d6d6d6 !important;
}

.master-breadcrumb .breadcrumb-item a:hover {
    color: #20a8ec !important;
}

.master-breadcrumb .breadcrumb-item.active {
    color: #ffffff !important;
}

.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

.topbar .btn {
    color: #d6d6d6;
}

.topbar .btn:hover {
    color: #20a8ec;
}

.topbar .input-group-text {
    background: transparent;
    border: none;
    color: #d6d6d6;
}

.topbar .btn-active-client {
    background: rgba(32, 168, 236, 0.15);
    border: 1px solid rgba(32, 168, 236, 0.3);
    color: #20a8ec;
}

.topbar .btn-return-to-admin {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

/* Navbar - Force white/light text on all navbars */
.navbar {
    background: transparent !important;
}

.navbar-brand {
    color: #ffffff !important;
}

/* CRITICAL: Override theme.css header.header .navbar a { color: #444; } */
/* Must use same or higher specificity with !important */
header.header .navbar a,
header.header .navbar-nav a,
header.header .main-navbar-wrapper a,
header.header #nav a,
header.header #mainNavbar a,
header.header .navbar-collapse a,
.header .navbar a,
.header .navbar-nav a,
#header .navbar a,
#header .navbar-nav a {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

header.header .navbar a:hover,
header.header .navbar a:focus,
header.header .navbar-nav a:hover,
header.header .navbar-nav a:focus,
header.header #nav a:hover,
header.header #nav a:focus,
.header .navbar a:hover,
.header .navbar a:focus {
    color: #20a8ec !important;
}

/* Main navigation wrapper background */
header.header .main-navbar-wrapper,
.header .main-navbar-wrapper,
#header .main-navbar-wrapper {
    background: rgba(14, 20, 59, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Also cover nav-link class for completeness */
.navbar .nav-link,
.navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
#nav-main .nav-link,
.main-navbar-wrapper .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #20a8ec !important;
}

.navbar .nav-link.active,
.navbar-nav .nav-link.active {
    color: #20a8ec !important;
}

/* Dropdown toggle caret */
header.header .navbar .dropdown-toggle::after,
.navbar .dropdown-toggle::after {
    color: #ffffff !important;
    border-top-color: #ffffff !important;
}

/* Navbar icons */
header.header .navbar a i,
header.header .navbar-nav a i,
.navbar .nav-link i,
.navbar-nav .nav-link i {
    color: #ffffff !important;
}

header.header .navbar a:hover i,
.navbar .nav-link:hover i {
    color: #20a8ec !important;
}

/* Dropdown menus - Must have high z-index to appear above other content */
header.header .navbar-nav .dropdown-menu,
header.header .dropdown-menu,
.navbar-nav .dropdown-menu {
    background: rgba(14, 20, 59, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
    z-index: 10000 !important;
    position: absolute !important;
}

/* Ensure header has proper stacking context */
#header,
.header,
header.header {
    position: relative;
    z-index: 1050;
}

header.header .navbar,
header.header .main-navbar-wrapper {
    position: relative;
    z-index: 1051;
}

header.header .navbar-nav .dropdown {
    position: relative;
}

header.header .navbar-nav .dropdown.show .dropdown-menu {
    display: block;
    z-index: 10000 !important;
}

header.header .navbar-nav .dropdown-menu .dropdown-item,
header.header .dropdown-menu a,
.navbar-nav .dropdown-menu .dropdown-item {
    color: #d6d6d6 !important;
    padding: 10px 20px !important;
}

header.header .navbar-nav .dropdown-menu .dropdown-item:hover,
header.header .navbar-nav .dropdown-menu .dropdown-item:focus,
header.header .dropdown-menu a:hover,
header.header .dropdown-menu a:focus,
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:focus {
    background: rgba(32, 168, 236, 0.2) !important;
    color: #20a8ec !important;
}

/* Hamburger menu icon for mobile */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Search */
.navbar .search .form-control {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.navbar .search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.navbar .search .btn {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

/* Cart Button */
.cart-btn {
    color: #d6d6d6;
}

.cart-btn:hover {
    color: #20a8ec;
}

.cart-btn .badge {
    background: #20a8ec;
    color: #ffffff;
}

/* ============================================
   BREADCRUMB
============================================ */
.master-breadcrumb {
    background: rgba(14, 20, 59, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #d6d6d6;
}

.breadcrumb-item a:hover {
    color: #20a8ec;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
============================================ */
#main-body {
    flex: 1 0 auto;
    padding-top: 30px;
    padding-bottom: 30px;
}

.primary-content {
    color: #d6d6d6;
}

/* ============================================
   CARDS / PANELS
============================================ */
.card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #d6d6d6;
}

.card-header {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.card-title {
    color: #ffffff;
}

.card-body {
    color: #d6d6d6;
}

.card-footer {
    background: rgba(14, 20, 59, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Panel Variant */
.panel {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel-heading {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.panel-body {
    color: #d6d6d6;
}

.panel-footer {
    background: rgba(14, 20, 59, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar .card,
.sidebar .card-sidebar {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .card-header {
    background: rgba(43, 53, 160, 0.4);
    color: #ffffff;
}

.sidebar .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
}

.sidebar .list-group-item:hover {
    background: rgba(32, 168, 236, 0.15);
    color: #20a8ec;
}

.sidebar .list-group-item.active {
    background: rgba(32, 168, 236, 0.25);
    border-color: rgba(32, 168, 236, 0.3);
    color: #20a8ec;
}

/* ============================================
   GAME SERVER FLYOUT SUBMENU
============================================ */
/* Ensure sidebar column sits above main content for flyout */
.sidebar,
.col-md-3.col-lg-3:first-child {
    position: relative;
    z-index: 10;
}

/* Ensure sidebar card and list-group don't clip the flyout */
.sidebar .card-sidebar,
.sidebar .card,
.panel.card.card-sidebar,
.sidebar .collapsable-card-body,
.sidebar .list-group,
.collapsable-card-body,
.list-group.collapsable-card-body {
    overflow: visible !important;
}

.sidebar-game-server-wrapper {
    position: relative;
    z-index: 1050;
    margin: 0;
    padding: 0;
}

.sidebar-game-server-wrapper > a .sidebar-menu-item-label::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900;
    font-size: 0.65em;
    float: right;
    opacity: 0.5;
    margin-top: 3px;
    transition: opacity 0.2s ease;
}

.sidebar-game-server-wrapper:hover > a .sidebar-menu-item-label::after {
    opacity: 1;
}

.game-flyout-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 220px;
    background: rgba(14, 20, 59, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    padding: 8px 0;
    margin-left: 2px;
    max-height: 70vh;
    overflow-y: auto;
}

.game-flyout-submenu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 100%;
}

.sidebar-game-server-wrapper:hover .game-flyout-submenu {
    display: block;
}

.game-flyout-submenu .flyout-header {
    padding: 8px 20px 6px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.game-flyout-submenu a.game-flyout-link {
    display: block;
    padding: 10px 20px;
    color: #d6d6d6;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1.5;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    border: none;
}

.game-flyout-submenu a.game-flyout-link:hover {
    background: rgba(32, 168, 236, 0.15);
    color: #20a8ec;
    text-decoration: none;
}

.game-flyout-submenu::-webkit-scrollbar {
    width: 4px;
}

.game-flyout-submenu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .game-flyout-submenu {
        display: none !important;
    }
    .sidebar-game-server-wrapper > a .sidebar-menu-item-label::after {
        display: none;
    }
}

/* ============================================
   FORMS
============================================ */
.form-control {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-control:hover {
    background: rgba(14, 20, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.form-control:focus {
    background: rgba(14, 20, 59, 0.9);
    border-color: #20a8ec;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(32, 168, 236, 0.25);
}

.form-control:disabled,
.form-control[readonly] {
    background: rgba(14, 20, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* Labels */
label,
.form-label {
    color: #d6d6d6;
    font-weight: 500;
}

/* Select */
select.form-control {
    background: rgba(14, 20, 59, 0.7);
    color: #ffffff;
}

select.form-control option {
    background: #0e143b;
    color: #ffffff;
}

/* Textarea */
textarea.form-control {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Input Group */
.input-group-text {
    background: rgba(43, 53, 160, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

.input-group-prepend .btn,
.input-group-append .btn {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Checkbox & Radio */
.form-check-input {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #20a8ec;
    border-color: #20a8ec;
}

.form-check-label {
    color: #d6d6d6;
}

/* Custom File */
.custom-file-label {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

.custom-file-label::after {
    background: rgba(43, 53, 160, 0.6);
    color: #ffffff;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(32, 168, 236, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3db8ff 0%, #20a8ec 100%);
    box-shadow: 0 6px 20px rgba(32, 168, 236, 0.5);
    color: #ffffff;
}

.btn-secondary,
.btn-default {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d6d6d6;
}

.btn-secondary:hover,
.btn-default:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
    border: none;
    color: #ffffff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #6fcf6f 0%, #5cb85c 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border: none;
    color: #ffffff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff8080 0%, #ff6b6b 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    border: none;
    color: #ffffff !important;
}

.btn-info {
    background: linear-gradient(135deg, #5bc0de 0%, #31b0d5 100%);
    border: none;
    color: #ffffff;
}

.btn-link {
    color: #20a8ec;
}

.btn-link:hover {
    color: #3db8ff;
}

/* ============================================
   TABLES
============================================ */
.table {
    color: #d6d6d6;
}

.table thead th {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.table td,
.table th {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table tbody tr {
    background: transparent;
}

.table tbody tr:hover {
    background: rgba(32, 168, 236, 0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03);
}

.table-bordered {
    border-color: rgba(255, 255, 255, 0.1);
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(255, 255, 255, 0.1);
}

/* DataTables */
.dataTables_wrapper {
    color: #d6d6d6;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(32, 168, 236, 0.2);
    border-color: #20a8ec;
    color: #20a8ec !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #20a8ec;
    border-color: #20a8ec;
    color: #ffffff !important;
}

/* ============================================
   ALERTS
============================================ */
.alert {
    border-radius: 8px;
    border: 1px solid;
}

.alert-success {
    background: rgba(92, 184, 92, 0.2);
    border-color: rgba(92, 184, 92, 0.4);
    color: #5cb85c;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.alert-warning {
    background: rgba(240, 173, 78, 0.2);
    border-color: rgba(240, 173, 78, 0.4);
    color: #f0ad4e;
}

.alert-info {
    background: rgba(32, 168, 236, 0.2);
    border-color: rgba(32, 168, 236, 0.4);
    color: #20a8ec;
}

/* ============================================
   BADGES / LABELS
============================================ */
.badge {
    font-weight: 500;
}

.badge-primary {
    background: #20a8ec;
}

.badge-success {
    background: #5cb85c;
}

.badge-danger {
    background: #ff6b6b;
}

.badge-warning {
    background: #f0ad4e;
    color: #000;
}

.badge-info {
    background: #5bc0de;
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.2);
}

.label {
    padding: 4px 8px;
    border-radius: 4px;
}

/* ============================================
   MODALS
============================================ */
.modal-content {
    background: rgba(14, 20, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: #ffffff;
}

.modal-header .close {
    color: #ffffff;
    opacity: 0.7;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    color: #d6d6d6;
}

.modal-footer {
    background: rgba(14, 20, 59, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

/* ============================================
   PAGINATION
============================================ */
.pagination .page-link {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

.pagination .page-link:hover {
    background: rgba(32, 168, 236, 0.2);
    border-color: #20a8ec;
    color: #20a8ec;
}

.pagination .page-item.active .page-link {
    background: #20a8ec;
    border-color: #20a8ec;
    color: #ffffff;
}

.pagination .page-item.disabled .page-link {
    background: rgba(14, 20, 59, 0.4);
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   LIST GROUPS
============================================ */
.list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
}

.list-group-item:hover {
    background: rgba(32, 168, 236, 0.1);
}

.list-group-item.active {
    background: rgba(32, 168, 236, 0.25);
    border-color: rgba(32, 168, 236, 0.3);
    color: #20a8ec;
}

a.list-group-item {
    color: #d6d6d6;
}

a.list-group-item:hover {
    color: #20a8ec;
}

/* ============================================
   TABS / NAV
============================================ */
.nav-tabs {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link {
    background: transparent;
    border: none;
    color: #d6d6d6;
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link:hover {
    background: rgba(32, 168, 236, 0.1);
    color: #20a8ec;
}

.nav-tabs .nav-link.active {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    color: #20a8ec;
}

.tab-content {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
}

.nav-pills .nav-link {
    background: rgba(255, 255, 255, 0.1);
    color: #d6d6d6;
}

.nav-pills .nav-link:hover {
    background: rgba(32, 168, 236, 0.2);
    color: #20a8ec;
}

.nav-pills .nav-link.active {
    background: #20a8ec;
    color: #ffffff;
}

/* ============================================
   FOOTER
============================================ */
footer,
#footer,
.footer {
    background: rgba(15, 19, 64, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d6d6d6;
    flex-shrink: 0;
}

footer a {
    color: #d6d6d6;
}

footer a:hover {
    color: #20a8ec;
}

.footer-social a {
    color: #d6d6d6;
}

.footer-social a:hover {
    color: #20a8ec;
}

/* ============================================
   TILES (Dashboard)
============================================ */
.tiles {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    min-height: 140px;
}

.tile:hover {
    background: rgba(32, 168, 236, 0.1);
}

.tile i {
    font-size: 32px;
    color: #20a8ec;
    margin-bottom: 10px;
}

.tile .stat {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}

.tile .title {
    font-size: 14px;
    color: #d6d6d6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile .highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.tile .stat-label {
    color: #d6d6d6;
}

.tile-icon {
    color: #20a8ec;
}

/* Client Home Cards */
.client-home-cards .card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
}

.client-home-cards .card-header {
    background: rgba(43, 53, 160, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.client-home-cards .card-title {
    color: #ffffff;
}

.client-home-cards .card-footer {
    background: rgba(43, 53, 160, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Card Accent Colors */
.card-accent-blue {
    border-left: 4px solid #20a8ec;
}

.card-accent-green {
    border-left: 4px solid #5cb85c;
}

.card-accent-red {
    border-left: 4px solid #ff6b6b;
}

.card-accent-gold {
    border-left: 4px solid #f0ad4e;
}

/* Colored Tiles */
.bg-color-blue {
    background: linear-gradient(135deg, rgba(32, 168, 236, 0.3) 0%, rgba(32, 168, 236, 0.1) 100%);
    border-color: rgba(32, 168, 236, 0.3);
}

.bg-color-green {
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.3) 0%, rgba(92, 184, 92, 0.1) 100%);
    border-color: rgba(92, 184, 92, 0.3);
}

.bg-color-red {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-color: rgba(255, 107, 107, 0.3);
}

.bg-color-gold {
    background: linear-gradient(135deg, rgba(240, 173, 78, 0.3) 0%, rgba(240, 173, 78, 0.1) 100%);
    border-color: rgba(240, 173, 78, 0.3);
}

/* ============================================
   MODERN DOMAIN SEARCH HERO
============================================ */
.rs-domain-hero {
    background: linear-gradient(135deg,
        rgba(14, 20, 59, 0.95) 0%,
        rgba(43, 53, 160, 0.4) 50%,
        rgba(14, 20, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(32, 168, 236, 0.2);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.rs-domain-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(32, 168, 236, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.rs-domain-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Header */
.rs-domain-header {
    margin-bottom: 35px;
}

.rs-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(32, 168, 236, 0.15) 0%, rgba(32, 168, 236, 0.05) 100%);
    border: 1px solid rgba(32, 168, 236, 0.3);
    color: #20a8ec;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.rs-domain-badge i {
    font-size: 14px;
}

.rs-domain-header h2 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.rs-domain-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

/* Search Container */
.rs-search-container {
    margin-bottom: 30px;
}

/* Simple Search (single input) */
.rs-search-simple {
    max-width: 650px;
    margin: 0 auto;
}

.rs-search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(14, 20, 59, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 8px 8px 8px 25px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rs-search-input-wrap:focus-within {
    border-color: #20a8ec;
    box-shadow: 0 10px 40px rgba(32, 168, 236, 0.2);
}

.rs-search-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    margin-right: 15px;
}

.rs-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px;
    padding: 12px 0 !important;
    outline: none;
}

.rs-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.rs-btn-search {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rs-btn-search:hover {
    background: linear-gradient(135deg, #3db8ff 0%, #20a8ec 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 168, 236, 0.4);
}

.rs-transfer-link {
    margin-top: 15px;
}

.rs-btn-transfer-link {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rs-btn-transfer-link:hover {
    color: #20a8ec;
}

.rs-btn-transfer-link i {
    margin-right: 6px;
}

/* Advanced Search */
.rs-search-advanced {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.rs-search-textarea {
    width: 100%;
    background: rgba(14, 20, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 16px;
    padding: 18px !important;
    min-height: 80px;
    resize: none;
    margin-bottom: 20px;
}

.rs-search-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.rs-search-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.rs-search-options .multiselect,
.rs-search-options .btn-group > .btn {
    background: rgba(14, 20, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #d6d6d6 !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
}

.rs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d6d6d6 !important;
    font-size: 14px;
    cursor: pointer;
}

.rs-checkbox-label input[type="checkbox"] {
    accent-color: #20a8ec;
    width: 18px;
    height: 18px;
}

.rs-search-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.rs-btn-transfer {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rs-btn-transfer:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* TLD Showcase */
.rs-tld-showcase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.rs-tld-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 500;
}

.rs-tld-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rs-tld-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.rs-tld-pill:hover {
    border-color: rgba(32, 168, 236, 0.4);
    background: rgba(32, 168, 236, 0.1);
}

.rs-tld-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.rs-tld-price {
    color: #20a8ec;
    font-size: 13px;
    font-weight: 500;
}

/* Pricing Link */
.rs-pricing-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.rs-pricing-link:hover {
    color: #20a8ec;
    text-decoration: none;
}

.rs-pricing-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.rs-pricing-link:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .rs-domain-hero {
        padding: 40px 0;
    }

    .rs-domain-header h2 {
        font-size: 28px;
    }

    .rs-search-input-wrap {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .rs-search-icon {
        display: none;
    }

    .rs-search-input {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .rs-btn-search {
        width: 100%;
    }

    .rs-search-buttons {
        flex-direction: column;
    }

    .rs-tld-showcase {
        flex-direction: column;
    }
}

/* Legacy support - keep old class working */
.home-domain-search {
    display: none;
}

.domain-search-container,
.domain-checker-container {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
}

.domain-search-container h2,
.domain-checker-container h2 {
    color: #ffffff;
}

.domain-search-container .form-control {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 18px;
    height: 50px;
}

.domain-pricing-table {
    background: rgba(14, 20, 59, 0.5);
    border-radius: 8px;
}

.domain-pricing-table td {
    border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   HEADINGS & TEXT
============================================ */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-primary {
    color: #20a8ec !important;
}

.text-success {
    color: #5cb85c !important;
}

.text-danger {
    color: #ff6b6b !important;
}

.text-warning {
    color: #f0ad4e !important;
}

.text-info {
    color: #5bc0de !important;
}

a {
    color: #20a8ec;
}

a:hover {
    color: #3db8ff;
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   TICKET SPECIFIC
============================================ */
.view-ticket.card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.view-ticket .card-title {
    color: #ffffff;
}

.view-ticket .ticket-actions .btn {
    margin-left: 5px;
}

.ticket-reply {
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 0;
}

.ticket-reply.staff-reply,
.ticket-reply.staff {
    background: rgba(43, 53, 160, 0.3);
    border-color: rgba(32, 168, 236, 0.2);
    border-left: 4px solid #20a8ec;
}

.ticket-reply .posted-by {
    color: #d6d6d6;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

.ticket-reply .posted-by-name {
    color: #ffffff;
    font-weight: 600;
}

.ticket-reply .posted-on {
    color: rgba(255, 255, 255, 0.5);
}

.ticket-reply .posted-by .badge,
.ticket-reply .requestor-badge {
    background: #20a8ec;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.ticket-reply .message {
    color: #d6d6d6;
}

.ticket-reply .attachments {
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-reply .attachment-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.ticket-reply .attachment-list li {
    display: inline-block;
    margin-right: 10px;
}

.ticket-reply .attachment-list a {
    color: #20a8ec;
}

.ticket-subject {
    color: #ffffff;
}

.ticket-number {
    color: #20a8ec;
    font-weight: 600;
    margin-right: 10px;
}

.ticket-status {
    padding: 4px 10px;
    border-radius: 4px;
}

/* Ticket Submit Department Cards */
.ticket-department-card {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.ticket-department-card:hover {
    background: rgba(32, 168, 236, 0.15);
    border-color: rgba(32, 168, 236, 0.3);
    transform: translateY(-3px);
}

.ticket-department-card h4 {
    color: #ffffff;
}

.ticket-department-card p {
    color: #d6d6d6;
}

/* Rating stars */
.rating .star,
.rating-done .star {
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.rating .star:hover,
.rating .star.active,
.rating-done .star.active {
    color: #f1c40f;
}

/* ============================================
   KNOWLEDGE BASE
============================================ */
.kb-search .form-control {
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.kb-category {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.kb-category:hover {
    background: rgba(32, 168, 236, 0.1);
    border-color: rgba(32, 168, 236, 0.3);
}

.kb-article-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-article-item a {
    color: #d6d6d6;
}

.kb-article-item a:hover {
    color: #20a8ec;
}

/* ============================================
   PROGRESS BARS
============================================ */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, #20a8ec 0%, #3db8ff 100%);
}

/* ============================================
   TOOLTIPS & POPOVERS
============================================ */
.tooltip-inner {
    background: rgba(14, 20, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.popover {
    background: rgba(14, 20, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.popover-header {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.popover-body {
    color: #d6d6d6;
}

/* ============================================
   ANNOUNCEMENTS
============================================ */
.announcement-single {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.announcement-single h3 a {
    color: #20a8ec;
}

.announcement-date {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   CODE / PRE
============================================ */
code {
    background: rgba(0, 0, 0, 0.3);
    color: #20a8ec;
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #d6d6d6;
    padding: 15px;
}

/* ============================================
   DROPDOWN
============================================ */
.dropdown-menu {
    background: rgba(14, 20, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dropdown-item {
    color: #d6d6d6;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(32, 168, 236, 0.15);
    color: #20a8ec;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   INVOICE / BILLING
============================================ */
.invoice-container {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.invoice-header {
    background: rgba(43, 53, 160, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   LOGIN PAGE
============================================ */
.login-form {
    max-width: 540px;
    margin: 0 auto;
}

.login-form .card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.login-form .card-body {
    background: transparent;
}

.login-form .card-footer {
    background: rgba(43, 53, 160, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form h1,
.login-form h2,
.login-form h3,
.login-form h6 {
    color: #ffffff;
}

.login-form p,
.login-form label,
.login-form small {
    color: #d6d6d6;
}

.login-form .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.login-form .input-group-text {
    background: rgba(43, 53, 160, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

.login-form .btn-reveal-pw {
    background: rgba(43, 53, 160, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
}

.login-form .social-login {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    padding-top: 20px;
}

/* ============================================
   REGISTRATION PAGE
============================================ */
#registration .card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

#registration .card-title {
    color: #ffffff;
}

#registration label,
#registration .field-icon {
    color: #d6d6d6;
}

#registration .field-icon i {
    color: rgba(255, 255, 255, 0.5);
}

/* Password strength meter */
.pw-strength {
    margin-top: 10px;
}

.pw-strength .progress {
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
}

.pw-strength-weak .progress-bar {
    background: #e74c3c;
}

.pw-strength-moderate .progress-bar {
    background: #f1c40f;
}

.pw-strength-strong .progress-bar {
    background: #27ae60;
}

/* Linked Accounts */
.linked-accounts-panel {
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.linked-accounts-panel .btn-social {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.linked-accounts-panel .btn-social:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   GLOBAL OVERRIDES - Force Dark Theme
============================================ */
/* Ensure all inputs, textareas, selects get dark styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Bootstrap multiselect overrides */
.multiselect-container {
    background: rgba(14, 20, 59, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.multiselect-container > li > a {
    color: #d6d6d6 !important;
    background: transparent !important;
}

.multiselect-container > li > a:hover,
.multiselect-container > li.active > a {
    background: rgba(32, 168, 236, 0.2) !important;
    color: #20a8ec !important;
}

/* Bootstrap select dropdowns */
.bootstrap-select .dropdown-menu {
    background: rgba(14, 20, 59, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bootstrap-select .dropdown-menu li a {
    color: #d6d6d6 !important;
}

.bootstrap-select .dropdown-menu li a:hover {
    background: rgba(32, 168, 236, 0.2) !important;
    color: #20a8ec !important;
}

/* Select2 styling */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}

.select2-dropdown {
    background: rgba(14, 20, 59, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.select2-results__option {
    color: #d6d6d6 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(32, 168, 236, 0.3) !important;
    color: #20a8ec !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */
@media (max-width: 991px) {
    .sidebar {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .card {
        border-radius: 8px;
    }

    .modal-content {
        border-radius: 8px;
    }

    .domain-search-container {
        padding: 20px;
    }
}

/* ============================================
   HOMEPAGE ACTION BUTTONS
============================================ */
.action-icon-btns {
    margin: 30px 0;
}

.action-icon-btns > div {
    margin-bottom: 20px;
}

.action-icon-btns a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 130px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-icon-btns a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-icon-btns .ico-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.action-icon-btns .ico-container i {
    font-size: 28px;
}

/* Accent Colors */
.action-icon-btns .card-accent-teal {
    border-color: rgba(26, 188, 156, 0.3);
}
.action-icon-btns .card-accent-teal:hover {
    background: rgba(26, 188, 156, 0.15);
    border-color: rgba(26, 188, 156, 0.5);
}
.action-icon-btns .card-accent-teal .ico-container {
    background: rgba(26, 188, 156, 0.2);
    color: #1abc9c;
}

.action-icon-btns .card-accent-pomegranate {
    border-color: rgba(192, 57, 43, 0.3);
}
.action-icon-btns .card-accent-pomegranate:hover {
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.5);
}
.action-icon-btns .card-accent-pomegranate .ico-container {
    background: rgba(192, 57, 43, 0.2);
    color: #e74c3c;
}

.action-icon-btns .card-accent-sun-flower {
    border-color: rgba(241, 196, 15, 0.3);
}
.action-icon-btns .card-accent-sun-flower:hover {
    background: rgba(241, 196, 15, 0.15);
    border-color: rgba(241, 196, 15, 0.5);
}
.action-icon-btns .card-accent-sun-flower .ico-container {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.action-icon-btns .card-accent-asbestos {
    border-color: rgba(127, 140, 141, 0.3);
}
.action-icon-btns .card-accent-asbestos:hover {
    background: rgba(127, 140, 141, 0.15);
    border-color: rgba(127, 140, 141, 0.5);
}
.action-icon-btns .card-accent-asbestos .ico-container {
    background: rgba(127, 140, 141, 0.2);
    color: #95a5a6;
}

.action-icon-btns .card-accent-green {
    border-color: rgba(39, 174, 96, 0.3);
}
.action-icon-btns .card-accent-green:hover {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.5);
}
.action-icon-btns .card-accent-green .ico-container {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.action-icon-btns .card-accent-midnight-blue {
    border-color: rgba(32, 168, 236, 0.3);
}
.action-icon-btns .card-accent-midnight-blue:hover {
    background: rgba(32, 168, 236, 0.15);
    border-color: rgba(32, 168, 236, 0.5);
}
.action-icon-btns .card-accent-midnight-blue .ico-container {
    background: rgba(32, 168, 236, 0.2);
    color: #20a8ec;
}

/* Homepage Card Columns - Product/Service Cards */
.card-columns.home {
    column-count: 3;
    column-gap: 20px;
}

.card-columns.home .card {
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(32, 168, 236, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.card-columns.home .card:hover {
    transform: translateY(-5px);
    border-color: rgba(32, 168, 236, 0.5);
    box-shadow: 0 15px 40px rgba(32, 168, 236, 0.2);
}

.card-columns.home .card-body {
    position: relative;
    padding: 30px 25px;
}

.card-columns.home .card-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a52d4, #20a8ec);
}

.card-columns.home .card-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-columns.home p {
    color: #d6d6d6;
    margin-bottom: 20px;
    min-height: 40px;
}

.card-columns.home .btn-outline-primary {
    background: transparent;
    border: 2px solid #20a8ec;
    color: #20a8ec;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-columns.home .btn-outline-primary:hover {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    border-color: #20a8ec;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(32, 168, 236, 0.4);
}

@media (max-width: 991px) {
    .card-columns.home {
        column-count: 2;
    }
}

@media (max-width: 575px) {
    .card-columns.home {
        column-count: 1;
    }
}

/* Homepage section titles */
.home h2.text-center,
#main-body h2.text-center {
    color: #ffffff;
}

/* ============================================
   STATUS LABELS
============================================ */
.label.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Service/Product Status */
.status-active {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-suspended {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-terminated,
.status-cancelled {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

/* Invoice Status */
.status-paid {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-unpaid {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-overdue {
    background: rgba(192, 57, 43, 0.3);
    color: #e74c3c;
    border: 1px solid rgba(192, 57, 43, 0.5);
}

.status-refunded {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.status-cancelled {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-collections {
    background: rgba(231, 76, 60, 0.3);
    color: #c0392b;
    border: 1px solid rgba(192, 57, 43, 0.5);
}

/* Ticket Status */
.status-open {
    background: rgba(32, 168, 236, 0.2);
    color: #20a8ec;
    border: 1px solid rgba(32, 168, 236, 0.3);
}

.status-answered {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-customer-reply,
.status-customerreply {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-closed {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}

.status-on-hold,
.status-onhold {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.status-in-progress,
.status-inprogress {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Domain Status */
.status-domain-active {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.status-domain-expired {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.status-domain-grace {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-domain-redemption {
    background: rgba(192, 57, 43, 0.3);
    color: #c0392b;
}

/* ============================================
   ADVANCED DOMAIN SEARCH OVERRIDES
   Override theme.css line 10487: background-color: #fff;
============================================ */
/* CRITICAL: Override the white background from theme.css */
.home-domain-search .input-group-wrapper {
    background-color: rgba(14, 20, 59, 0.9) !important;
    background: rgba(14, 20, 59, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

/* Force dark background on ALL input wrappers */
.home-domain-search .input-group-wrapper,
.home-domain-search .advanced-input,
#frmDomainHomepage .input-group-wrapper,
#frmDomainHomepage .advanced-input {
    background-color: rgba(14, 20, 59, 0.9) !important;
    background: rgba(14, 20, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* Override theme.css label color #333 */
.home-domain-search .input-group-wrapper .advanced-input label {
    color: #d6d6d6 !important;
}

/* Ensure no white background anywhere in domain search */
#frmDomainHomepage * {
    background-color: transparent;
}

#frmDomainHomepage .input-group-wrapper {
    background-color: rgba(14, 20, 59, 0.9) !important;
    background: rgba(14, 20, 59, 0.9) !important;
}

#frmDomainHomepage textarea,
#frmDomainHomepage input[type="text"],
#frmDomainHomepage .form-control {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

#frmDomainHomepage textarea::placeholder,
#frmDomainHomepage input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Multiselect button styling */
#frmDomainHomepage .multiselect.dropdown-toggle,
#frmDomainHomepage .btn-group > .btn.dropdown-toggle {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #d6d6d6 !important;
}

#frmDomainHomepage .multiselect.dropdown-toggle:hover,
#frmDomainHomepage .btn-group > .btn.dropdown-toggle:hover {
    background: rgba(32, 168, 236, 0.2) !important;
    border-color: rgba(32, 168, 236, 0.4) !important;
}

/* Multiselect dropdown */
#frmDomainHomepage .multiselect-container,
#frmDomainHomepage .dropdown-menu {
    background: rgba(14, 20, 59, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

#frmDomainHomepage .multiselect-container li,
#frmDomainHomepage .dropdown-menu li {
    background: transparent !important;
}

#frmDomainHomepage .multiselect-container li a,
#frmDomainHomepage .dropdown-menu li a {
    color: #d6d6d6 !important;
    padding: 8px 15px !important;
}

#frmDomainHomepage .multiselect-container li a:hover,
#frmDomainHomepage .dropdown-menu li a:hover {
    background: rgba(32, 168, 236, 0.2) !important;
    color: #20a8ec !important;
}

#frmDomainHomepage .multiselect-container .checkbox,
#frmDomainHomepage .multiselect-container label {
    color: #d6d6d6 !important;
}

/* Filter input in multiselect */
#frmDomainHomepage .multiselect-filter input,
#frmDomainHomepage .multiselect-search input {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* Checkbox label in search form */
#frmDomainHomepage label {
    color: #d6d6d6 !important;
}

#frmDomainHomepage input[type="checkbox"] {
    accent-color: #20a8ec !important;
}

/* ============================================
   HOMEPAGE IMPROVEMENTS
============================================ */
/* Section titles */
#main-body > h2,
.container > h2.text-center {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 30px;
}

/* "Browse our Products/Services" text */
h2:contains("Products"),
h2:contains("Services") {
    color: #ffffff !important;
}

/* Make sure all backgrounds in main content are transparent/dark */
#main-body .container {
    color: #d6d6d6;
}

/* Fix any white backgrounds that slip through */
.bg-white,
.bg-light {
    background: rgba(14, 20, 59, 0.85) !important;
}

/* WHMCS AI domain search specific styling */
.domain-checker-advanced,
.ai-domain-search {
    background: rgba(14, 20, 59, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 25px !important;
}

/* Bootstrap override for white bg */
.card.bg-white,
.card.bg-light,
.panel.bg-white,
.panel.bg-light {
    background: rgba(14, 20, 59, 0.85) !important;
}

/* ============================================
   RAPIDSPAWN HOMEPAGE - PROFESSIONAL REDESIGN
============================================ */

/* Section Header */
.rs-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.rs-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(32, 168, 236, 0.2) 0%, rgba(32, 168, 236, 0.1) 100%);
    border: 1px solid rgba(32, 168, 236, 0.3);
    color: #20a8ec;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.rs-section-header h2 {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.rs-highlight {
    color: #20a8ec;
}

.rs-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

.rs-mt-60 {
    margin-top: 60px;
}

/* Products Grid */
.rs-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Product Card */
.rs-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(14, 20, 59, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.rs-product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a52d4, #20a8ec);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rs-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(32, 168, 236, 0.4);
    box-shadow: 0 20px 50px rgba(32, 168, 236, 0.2);
    text-decoration: none;
}

.rs-product-card:hover::before {
    transform: scaleX(1);
}

/* Product Icon */
.rs-product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(32, 168, 236, 0.15) 0%, rgba(74, 82, 212, 0.1) 100%);
    border: 1px solid rgba(32, 168, 236, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.rs-product-icon i {
    font-size: 32px;
    color: #20a8ec;
    transition: all 0.3s ease;
}

.rs-product-card:hover .rs-product-icon {
    background: linear-gradient(135deg, rgba(32, 168, 236, 0.25) 0%, rgba(74, 82, 212, 0.2) 100%);
    border-color: rgba(32, 168, 236, 0.4);
    transform: scale(1.1);
}

.rs-product-card:hover .rs-product-icon i {
    color: #4fc3f7;
}

/* Product Name */
.rs-product-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* Product Tagline */
.rs-product-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Product Button */
.rs-product-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #20a8ec;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rs-product-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.rs-product-card:hover .rs-product-btn {
    color: #4fc3f7;
}

.rs-product-card:hover .rs-product-btn i {
    transform: translateX(5px);
}

/* Domain Card Accent */
.rs-domain-card .rs-product-icon {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(39, 174, 96, 0.2);
}

.rs-domain-card .rs-product-icon i {
    color: #27ae60;
}

.rs-domain-card:hover .rs-product-icon {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.25) 0%, rgba(39, 174, 96, 0.15) 100%);
    border-color: rgba(39, 174, 96, 0.4);
}

.rs-domain-card .rs-product-btn {
    color: #27ae60;
}

.rs-domain-card:hover .rs-product-btn {
    color: #2ecc71;
}

/* Quick Links */
.rs-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.rs-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.rs-quick-link:hover {
    background: rgba(14, 20, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.rs-quick-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.rs-quick-icon i {
    font-size: 18px;
    color: var(--accent-color, #20a8ec);
}

.rs-quick-link:hover .rs-quick-icon {
    background: var(--accent-color, #20a8ec);
}

.rs-quick-link:hover .rs-quick-icon i {
    color: #ffffff;
}

.rs-quick-link span {
    font-size: 14px;
    font-weight: 500;
}

/* Hide old homepage elements */
.card-columns.home,
.action-icon-btns {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .rs-section-header h2 {
        font-size: 28px;
    }

    .rs-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 575px) {
    .rs-section-header h2 {
        font-size: 24px;
    }

    .rs-products-grid {
        grid-template-columns: 1fr;
    }

    .rs-quick-links {
        flex-direction: column;
        align-items: stretch;
    }

    .rs-quick-link {
        min-width: auto;
    }
}

/* ============================================
   MARKDOWN EDITOR (EasyMDE/SimpleMDE)
============================================ */
/* Editor container */
.EasyMDEContainer,
.CodeMirror,
.editor-toolbar {
    background: rgba(14, 20, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Main editor area */
.CodeMirror {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
}

.CodeMirror-scroll {
    background: rgba(14, 20, 59, 0.85) !important;
}

/* Editor cursor */
.CodeMirror-cursor {
    border-left-color: #20a8ec !important;
}

/* Editor selection */
.CodeMirror-selected,
.CodeMirror-focused .CodeMirror-selected {
    background: rgba(32, 168, 236, 0.3) !important;
}

/* Editor line numbers */
.CodeMirror-gutters {
    background: rgba(14, 20, 59, 0.9) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.CodeMirror-linenumber {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Editor toolbar */
.editor-toolbar {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 8px !important;
}

.editor-toolbar a,
.editor-toolbar button {
    color: #d6d6d6 !important;
    border: none !important;
    background: transparent !important;
}

.editor-toolbar a:hover,
.editor-toolbar a.active,
.editor-toolbar button:hover {
    background: rgba(32, 168, 236, 0.2) !important;
    color: #20a8ec !important;
    border-radius: 4px !important;
}

.editor-toolbar i.separator {
    border-left-color: rgba(255, 255, 255, 0.2) !important;
    border-right-color: rgba(255, 255, 255, 0.2) !important;
}

/* Editor preview */
.editor-preview,
.editor-preview-side {
    background: rgba(14, 20, 59, 0.95) !important;
    color: #d6d6d6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.editor-preview pre,
.editor-preview-side pre {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #d6d6d6 !important;
}

/* Editor statusbar */
.editor-statusbar {
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(14, 20, 59, 0.7) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Fullscreen mode */
.CodeMirror-fullscreen,
.editor-toolbar.fullscreen,
.editor-preview-side.editor-preview-active-side {
    background: rgba(14, 20, 59, 0.98) !important;
}

/* Preview button active state */
.editor-toolbar .fa-eye.active,
.editor-toolbar .preview.active {
    background: rgba(32, 168, 236, 0.3) !important;
}

/* Support ticket form specific */
#ticketMessage .EasyMDEContainer,
#ticketMessage .CodeMirror,
.ticket-reply .EasyMDEContainer,
.ticket-reply .CodeMirror {
    background: rgba(14, 20, 59, 0.85) !important;
}

/* ============================================
   SUPPORT TICKET PAGES
============================================ */
/* Ticket form card */
.ticket-form .card,
.submit-ticket .card {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Ticket messages */
.ticket-message,
.client-reply,
.staff-reply {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
}

.staff-reply {
    background: rgba(43, 53, 160, 0.3) !important;
    border-color: rgba(32, 168, 236, 0.2) !important;
}

/* File upload area */
.file-upload,
.custom-file,
.custom-file-label {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #d6d6d6 !important;
}

.custom-file-label::after {
    background: linear-gradient(135deg, #4a52d4 0%, #2d38a5 100%) !important;
    color: #ffffff !important;
    border: none !important;
}

/* ============================================
   ORDER FORM - DOMAIN REGISTRATION PAGE
   (Applies to ALL order forms)
============================================ */

/* Domain Checker Container - Override WHMCS default cream/tan background */
.domain-checker-container,
.domain-checker-bg,
.domain-checker-advanced,
.domain-checker-container .domain-checker-bg {
    background: rgba(14, 20, 59, 0.95) !important;
    background-image: none !important;
    background-color: rgba(14, 20, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
}

/* Domain search textarea and input */
.domain-checker-bg textarea,
.domain-checker-bg input[type="text"],
.domain-checker-container textarea,
.domain-checker-container input[type="text"],
#frmDomainChecker textarea,
#frmDomainChecker input[type="text"],
#message,
#inputDomain,
textarea#message {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* Remove scrollbar from domain search textarea */
.domain-checker-bg textarea,
.domain-checker-container textarea,
#frmDomainChecker textarea,
#message,
textarea#message {
    overflow: hidden !important;
    overflow-y: hidden !important;
    resize: none !important;
    min-height: 110px !important;
    height: 110px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 15px 15px 20px 15px !important;
    line-height: 1.8 !important;
}

.domain-checker-bg textarea::-webkit-scrollbar,
.domain-checker-container textarea::-webkit-scrollbar,
#frmDomainChecker textarea::-webkit-scrollbar,
#message::-webkit-scrollbar,
textarea#message::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.domain-checker-bg textarea::placeholder,
.domain-checker-bg input::placeholder,
#message::placeholder,
#inputDomain::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Input group box */
.input-group-box {
    background: rgba(14, 20, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
}

/* TLD Pricing Section */
.domain-pricing,
.tld-pricing-container {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

/* TLD Pricing Header */
.tld-pricing-header,
.domain-pricing .tld-pricing-header,
.row.no-gutters.tld-pricing-header,
.tld-pricing-container > .row:first-child {
    background: rgba(43, 53, 160, 0.8) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    padding: 18px 15px !important;
    letter-spacing: 0.5px !important;
    border-radius: 12px 12px 0 0 !important;
}

.tld-pricing-header div,
.tld-pricing-header .col-md-4,
.tld-pricing-header .col-md-8,
.tld-pricing-header .col-4,
.tld-pricing-header .col-xs-4,
.tld-pricing-header .tld-column,
.tld-pricing-header [class*="col-"],
.tld-pricing-container > .row:first-child div {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* TLD Rows */
.tld-row {
    background: rgba(14, 20, 59, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.tld-row:nth-child(even) {
    background: rgba(14, 20, 59, 0.7) !important;
}

.tld-row:hover {
    background: rgba(32, 168, 236, 0.2) !important;
}

.tld-row strong {
    color: #ffffff !important;
}

.tld-row small {
    color: #b0b0b0 !important;
}

.tld-row div[class*="col-"],
.tld-row .col-4,
.tld-row .col-xs-4,
.tld-row .col-md-4,
.tld-row .col-md-8 {
    color: #ffffff !important;
}

/* TLD Filters */
.tld-filters {
    margin-bottom: 25px !important;
}

.tld-filters .badge,
.tld-filters a.badge {
    background: rgba(14, 20, 59, 0.85) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
}

.tld-filters .badge:hover,
.tld-filters .badge.active,
.tld-filters a.badge:hover,
.tld-filters a.badge.active {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%) !important;
    border-color: #20a8ec !important;
    color: #ffffff !important;
}

/* Featured TLDs */
.featured-tlds-container {
    background: transparent !important;
    margin-bottom: 30px !important;
}

.featured-tld {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    padding: 25px 15px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.featured-tld:hover {
    border-color: rgba(32, 168, 236, 0.5) !important;
    transform: translateY(-3px) !important;
}

.featured-tld .img-container {
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
}

.featured-tld .img-container img {
    max-width: 100px !important;
    max-height: 50px !important;
}

.featured-tld .price {
    color: #20a8ec !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%) !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    display: inline-block !important;
    margin-top: 10px !important;
}

/* Domain promo boxes */
.domain-promo-box {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #d6d6d6 !important;
}

.domain-promo-box h3 {
    color: #ffffff !important;
}

.domain-promo-box i {
    color: #20a8ec !important;
}

/* ============================================
   DOMAIN PRICING PAGE
============================================ */

/* Main container */
.domain-pricing {
    padding: 30px 0;
}

.domain-pricing h4 {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 20px;
    clear: both;
}

/* Featured TLDs */
.featured-tlds-container {
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.featured-tld {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.featured-tld:hover {
    border-color: rgba(32, 168, 236, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.featured-tld .img-container {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.featured-tld .img-container img {
    max-width: 80px;
    max-height: 50px;
    filter: brightness(1.1);
}

.featured-tld .price {
    color: #20a8ec;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Currency selector */
.domain-pricing .currency-selector {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 6px;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.domain-pricing .currency-selector option {
    background: #0e143b !important;
    color: #ffffff !important;
}

/* TLD Category Filters */
.tld-filters {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tld-filters a.badge {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d6d6d6 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tld-filters a.badge:hover {
    background: rgba(32, 168, 236, 0.2) !important;
    border-color: rgba(32, 168, 236, 0.5);
    color: #ffffff !important;
}

.tld-filters a.badge.badge-success,
.tld-filters a.badge:active {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%) !important;
    border-color: #20a8ec !important;
    color: #ffffff !important;
}

/* Table container */
.domain-pricing .table-container {
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

/* DataTables wrapper */
.domain-pricing .dataTables_wrapper {
    color: #d6d6d6;
}

/* DataTables search and length */
.domain-pricing .dataTables_filter input,
.domain-pricing .dataTables_length select,
#tableDomainPricing_wrapper .dataTables_filter input,
#tableDomainPricing_wrapper .dataTables_length select {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 6px 12px;
}

.domain-pricing .dataTables_filter label,
.domain-pricing .dataTables_length label,
#tableDomainPricing_wrapper .dataTables_filter label,
#tableDomainPricing_wrapper .dataTables_length label {
    color: #d6d6d6 !important;
}

/* Info text */
.domain-pricing .dataTables_info,
#tableDomainPricing_wrapper .dataTables_info {
    color: #a0a0a0 !important;
}

/* Pagination */
.domain-pricing .dataTables_paginate .paginate_button,
#tableDomainPricing_wrapper .dataTables_paginate .paginate_button {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #d6d6d6 !important;
    border-radius: 6px !important;
    margin: 0 3px;
}

.domain-pricing .dataTables_paginate .paginate_button:hover,
#tableDomainPricing_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(32, 168, 236, 0.3) !important;
    border-color: rgba(32, 168, 236, 0.5) !important;
    color: #ffffff !important;
}

.domain-pricing .dataTables_paginate .paginate_button.current,
#tableDomainPricing_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%) !important;
    border-color: #20a8ec !important;
    color: #ffffff !important;
}

.domain-pricing .dataTables_paginate .paginate_button.disabled,
#tableDomainPricing_wrapper .dataTables_paginate .paginate_button.disabled {
    background: rgba(14, 20, 59, 0.5) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
}

/* Domain Pricing Table */
#tableDomainPricing {
    background: transparent !important;
    color: #d6d6d6 !important;
    border-collapse: separate;
    border-spacing: 0;
}

#tableDomainPricing thead th {
    background: rgba(43, 53, 160, 0.4) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 15px 12px !important;
    border: none !important;
    border-bottom: 2px solid rgba(32, 168, 236, 0.3) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#tableDomainPricing thead th:first-child {
    border-radius: 8px 0 0 0;
}

#tableDomainPricing thead th:last-child {
    border-radius: 0 8px 0 0;
}

#tableDomainPricing tbody tr {
    background: rgba(14, 20, 59, 0.4) !important;
    transition: all 0.2s ease;
}

#tableDomainPricing tbody tr:nth-child(even) {
    background: rgba(14, 20, 59, 0.6) !important;
}

#tableDomainPricing tbody tr:hover {
    background: rgba(32, 168, 236, 0.15) !important;
}

#tableDomainPricing tbody td {
    color: #d6d6d6 !important;
    padding: 12px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle;
}

#tableDomainPricing tbody td:first-child {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
}

#tableDomainPricing tbody td small {
    color: #a0a0a0 !important;
    font-size: 0.8rem;
}

/* TLD Sale Group badges */
.tld-sale-group {
    display: inline-block;
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.tld-sale-group-sale {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.tld-sale-group-new {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

.tld-sale-group-popular {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

/* Hidden categories */
.domain-pricing .w-hidden {
    display: none !important;
}

/* Loading indicator */
#tableLoading {
    padding: 40px;
}

#tableLoading p {
    color: #d6d6d6;
    font-size: 1.1rem;
}

#tableLoading .fa-spinner {
    color: #20a8ec;
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ============================================
   MODERN DOMAIN PRICING PAGE
============================================ */

/* Main container */
.domain-pricing-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.dp-hero {
    background: linear-gradient(135deg, rgba(14, 20, 59, 0.95) 0%, rgba(43, 53, 160, 0.4) 50%, rgba(14, 20, 59, 0.95) 100%);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dp-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.dp-badge {
    display: inline-block;
    background: rgba(32, 168, 236, 0.2);
    color: #20a8ec;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.dp-hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.dp-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Search Box */
.dp-search-box {
    display: flex;
    align-items: center;
    background: rgba(14, 20, 59, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 25px;
    max-width: 500px;
    margin: 0 auto;
}

.dp-search-box i {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 15px;
}

.dp-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.dp-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Currency Bar */
.dp-currency-bar {
    text-align: right;
    margin-bottom: 20px;
}

.dp-currency-bar form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dp-currency-bar label {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

.dp-currency-select {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
}

/* Category Filters */
.dp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.dp-filter-btn {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d6d6d6;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dp-filter-btn:hover {
    border-color: rgba(32, 168, 236, 0.5);
    color: #20a8ec;
}

.dp-filter-btn.active {
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    border-color: #20a8ec;
    color: #ffffff;
}

.dp-filter-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

.dp-filter-btn.active .dp-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Featured Section */
.dp-featured {
    margin-bottom: 40px;
}

.dp-featured h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.dp-featured h3 i {
    color: #f1c40f;
    margin-right: 10px;
}

.dp-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.dp-featured-card {
    background: rgba(14, 20, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.dp-featured-card:hover {
    border-color: rgba(32, 168, 236, 0.5);
    transform: translateY(-3px);
}

.dp-featured-tld {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dp-featured-price {
    color: #20a8ec;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.dp-period {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 400;
}

.dp-featured-btn {
    display: inline-block;
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dp-featured-btn:hover {
    background: linear-gradient(135deg, #3db8ff 0%, #20a8ec 100%);
    color: #ffffff;
}

/* All Domains Section */
.dp-all-domains {
    margin-bottom: 40px;
}

.dp-all-domains h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dp-all-domains h3 i {
    color: #20a8ec;
    margin-right: 10px;
}

.dp-help-text {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Domain Grid */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.dp-card {
    display: block;
    background: rgba(14, 20, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dp-card:hover {
    background: rgba(32, 168, 236, 0.1);
    border-color: rgba(32, 168, 236, 0.4);
    transform: translateY(-2px);
}

.dp-card-tld {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dp-badge-small {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.dp-badge-sale {
    background: #e74c3c;
    color: #fff;
}

.dp-badge-new {
    background: #27ae60;
    color: #fff;
}

.dp-badge-hot {
    background: #f39c12;
    color: #fff;
}

.dp-badge-popular {
    background: #20a8ec;
    color: #fff;
}

.dp-price-main {
    color: #20a8ec;
    font-size: 1.1rem;
    font-weight: 600;
}

.dp-price-period {
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 400;
}

.dp-price-renew {
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
}

.dp-price-unavailable {
    color: #888;
    font-size: 0.9rem;
}

/* No Results */
.dp-no-results,
.dp-no-domains {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.dp-no-results i,
.dp-no-domains i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #555;
}

/* CTA Section */
.dp-cta {
    background: linear-gradient(135deg, rgba(43, 53, 160, 0.4) 0%, rgba(14, 20, 59, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.dp-cta h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.dp-cta p {
    color: #b0b0b0;
    margin-bottom: 20px;
}

.dp-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #20a8ec 0%, #1a8cc4 100%);
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dp-cta-btn:hover {
    background: linear-gradient(135deg, #3db8ff 0%, #20a8ec 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

.dp-cta-btn i {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .featured-tlds-container {
        padding: 20px 15px;
    }

    .featured-tld {
        padding: 15px 10px;
    }

    .tld-filters {
        gap: 8px;
    }

    .tld-filters a.badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #tableDomainPricing thead th,
    #tableDomainPricing tbody td {
        padding: 10px 8px !important;
        font-size: 0.85rem;
    }

    .domain-pricing .table-container {
        padding: 10px;
        overflow-x: auto;
    }

    /* Modern Domain Pricing Responsive */
    .dp-hero {
        padding: 30px 20px;
    }

    .dp-hero h1 {
        font-size: 1.8rem;
    }

    .dp-search-box {
        flex-direction: column;
        border-radius: 12px;
        padding: 15px;
    }

    .dp-search-box i {
        display: none;
    }

    .dp-search-box input {
        width: 100%;
        text-align: center;
    }

    .dp-filters {
        justify-content: center;
    }

    .dp-filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .dp-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dp-card {
        padding: 15px;
    }

    .dp-card-tld {
        font-size: 1.2rem;
    }

    .dp-cta {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .dp-featured-grid,
    .dp-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GLOBAL TEXT OVERFLOW FIXES
============================================ */

/* Ensure proper line-height for all text */
body {
    line-height: 1.8;
}

/* Fix text cutoff in form controls - extra bottom padding for descenders */
.form-control,
select.form-control,
select,
.form-control option,
option {
    line-height: 2 !important;
    height: auto !important;
    min-height: 56px !important;
    padding: 15px 15px 20px 15px !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

/* Fix text cutoff in list items */
.list-group-item {
    line-height: 2 !important;
    padding: 18px 20px 22px 20px !important;
    overflow: visible !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

/* Fix sidebar items */
.panel .list-group-item,
.card-sidebar .list-group-item,
.sidebar .list-group-item,
.card .list-group-item {
    line-height: 2 !important;
    padding: 18px 20px 22px 20px !important;
}

/* Fix panel headers */
.panel-heading,
.card-header {
    line-height: 2 !important;
    padding: 18px 20px 20px 20px !important;
}

/* Fix links and text elements */
a, p, span, label {
    overflow-wrap: break-word;
    line-height: 1.8;
}

/* Aggressive text fix - ensure all text elements have proper spacing */
.list-group-item a,
.list-group-item span,
.form-control,
select {
    display: block;
    padding-bottom: 5px !important;
}

/* ===================================
   Game Servers Landing Page
   =================================== */

.game-servers-page {
    padding: 20px 0 60px;
}

/* Hero Section */
.gs-hero {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #4a52d4 0%, #2d38a5 50%, #1a1f65 100%);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.gs-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    background-size: 30px 30px;
    opacity: 0.3;
}

.gs-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
}

.gs-hero h1 i {
    color: #20a8ec;
    margin-right: 15px;
}

.gs-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Game Selection Grid */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Base Card Style (no image) */
.gs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 5;
    min-height: 300px;
    padding: 40px 20px;
    background: rgba(14, 20, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gs-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a52d4, #20a8ec);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gs-card:hover::before {
    opacity: 1;
}

/* Card with Background Image */
.gs-card.has-image {
    background-size: cover;
    background-position: center;
    padding: 0;
    border: none;
}

.gs-card.has-image .gs-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(
        180deg,
        rgba(14, 20, 59, 0.1) 0%,
        rgba(14, 20, 59, 0.5) 40%,
        rgba(14, 20, 59, 0.95) 100%
    );
}

.gs-card:hover {
    transform: translateY(-8px);
    border-color: rgba(32, 168, 236, 0.5);
    box-shadow: 0 20px 50px rgba(32, 168, 236, 0.25);
    text-decoration: none;
}

/* Card Icon (for cards without images) */
.gs-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a52d4, #20a8ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(32, 168, 236, 0.3);
}

.gs-card-icon i {
    font-size: 2rem;
    color: #ffffff;
}

/* Card Title */
.gs-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Card Tagline */
.gs-card-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 15px;
    text-align: center;
}

/* Card CTA */
.gs-card-cta {
    color: #20a8ec;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-card:hover .gs-card-cta {
    color: #4fc3f7;
}

.gs-card-cta i {
    transition: transform 0.3s ease;
}

.gs-card:hover .gs-card-cta i {
    transform: translateX(5px);
}

/* Features Section */
.gs-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gs-feature {
    text-align: center;
    padding: 30px 20px;
    background: rgba(14, 20, 59, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.gs-feature:hover {
    background: rgba(14, 20, 59, 0.7);
    border-color: rgba(32, 168, 236, 0.2);
}

.gs-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(74, 82, 212, 0.2), rgba(32, 168, 236, 0.2));
    border: 1px solid rgba(32, 168, 236, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.gs-feature-icon i {
    font-size: 1.5rem;
    color: #20a8ec;
}

.gs-feature h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.gs-feature p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .gs-hero h1 {
        font-size: 2rem;
    }

    .gs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gs-hero {
        padding: 40px 20px;
    }

    .gs-hero h1 {
        font-size: 1.6rem;
    }

    .gs-hero h1 i {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .gs-hero p {
        font-size: 1rem;
    }

    .gs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .gs-card {
        aspect-ratio: 2 / 3;
        min-height: 240px;
    }

    .gs-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gs-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MAIN CONTENT AREA OVERRIDES
============================================ */
.main-content,
main.main-content,
#main-body,
.contentarea {
    background: transparent !important;
}

.main-content .card,
.main-content .panel,
main .card,
main .panel,
#main-body .card,
#main-body .panel {
    background: rgba(14, 20, 59, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #d6d6d6 !important;
}

.main-content .card-header,
.main-content .panel-heading,
main .card-header,
main .panel-heading {
    background: rgba(43, 53, 160, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.main-content .card-body,
.main-content .panel-body,
main .card-body,
main .panel-body {
    background: transparent !important;
    color: #d6d6d6 !important;
}

/* ============================================
   FORM OVERRIDES (HIGH SPECIFICITY)
============================================ */
.main-content .form-control,
main .form-control,
#main-body .form-control,
.card .form-control,
.panel .form-control,
.modal .form-control,
form .form-control {
    background: rgba(14, 20, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px;
}

.main-content .form-control:focus,
main .form-control:focus,
.card .form-control:focus,
form .form-control:focus {
    background: rgba(14, 20, 59, 0.9) !important;
    border-color: #20a8ec !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(32, 168, 236, 0.25) !important;
}

.main-content .form-control::placeholder,
main .form-control::placeholder,
.card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.main-content select.form-control,
main select.form-control,
.card select.form-control {
    background: rgba(14, 20, 59, 0.7) !important;
    color: #ffffff !important;
}

.main-content select.form-control option,
main select.form-control option,
.card select.form-control option {
    background: #0e143b !important;
    color: #ffffff !important;
}

.main-content textarea.form-control,
main textarea.form-control,
.card textarea.form-control {
    background: rgba(14, 20, 59, 0.7) !important;
    color: #ffffff !important;
}

.main-content label,
main label,
.card label,
.form-label {
    color: #d6d6d6 !important;
}

/* ============================================
   SUPPORT TICKET PAGES
============================================ */
.ticket-submit-form .card,
.support-ticket-submit .card,
#ticketSubmit .card {
    background: rgba(14, 20, 59, 0.85) !important;
}

/* Markdown Editor / CodeMirror - Comprehensive Dark Theme */
.markdown-editor-container,
.EasyMDEContainer,
.EasyMDEContainer .CodeMirror,
.CodeMirror,
.CodeMirror-wrap,
.cm-s-easymde,
.cm-s-default {
    background: #0e143b !important;
    background-color: #0e143b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber,
.CodeMirror-vscrollbar,
.CodeMirror-hscrollbar {
    background: #0e143b !important;
    background-color: #0e143b !important;
}

.CodeMirror-lines {
    background: transparent !important;
}

.CodeMirror pre,
.CodeMirror pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like,
.CodeMirror-line span,
.cm-s-easymde .CodeMirror-line span,
.cm-s-default .CodeMirror-line span {
    color: #ffffff !important;
}

.cm-header { color: #20a8ec !important; }
.cm-link { color: #4fc3f7 !important; }
.cm-url { color: #7c84e8 !important; }
.cm-comment { color: rgba(255, 255, 255, 0.5) !important; }
.cm-strong { color: #ffffff !important; font-weight: bold !important; }
.cm-em { color: #d6d6d6 !important; font-style: italic !important; }

.CodeMirror-cursor {
    border-left: 2px solid #20a8ec !important;
}

.CodeMirror-selected,
.CodeMirror-selectedtext,
.CodeMirror-focused .CodeMirror-selected {
    background: rgba(32, 168, 236, 0.3) !important;
}

.editor-toolbar {
    background: rgba(43, 53, 160, 0.5) !important;
    background-color: rgba(43, 53, 160, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: none !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 5px 10px !important;
}

.editor-toolbar::before,
.editor-toolbar::after {
    display: none !important;
}

.editor-toolbar a,
.editor-toolbar button,
.editor-toolbar i {
    color: #d6d6d6 !important;
    border: none !important;
}

.editor-toolbar i.separator {
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-right: none !important;
}

.editor-toolbar a:hover,
.editor-toolbar button:hover,
.editor-toolbar a.active {
    background: rgba(32, 168, 236, 0.3) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.editor-toolbar.disabled-for-preview a:not(.no-disable) {
    opacity: 0.4 !important;
}

.editor-preview,
.editor-preview-side,
.editor-preview-active {
    background: #0e143b !important;
    background-color: #0e143b !important;
    color: #d6d6d6 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.editor-statusbar {
    background: rgba(14, 20, 59, 0.8) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 5px 10px !important;
}

.editor-statusbar span {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* EasyMDE container border radius */
.EasyMDEContainer .CodeMirror {
    border-top: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* File Upload */
.file-upload,
.custom-file-input,
.custom-file-label {
    background: rgba(14, 20, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #d6d6d6 !important;
}

.custom-file-label::after {
    background: linear-gradient(135deg, #4a52d4 0%, #2d38a5 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Captcha */
.captcha-container img,
.g-recaptcha {
    border-radius: 8px;
}

/* ============================================
   STYLED DEFAULT CAPTCHA
============================================ */
.rs-captcha-wrap {
    max-width: 420px;
    margin: 20px auto 0;
}

.rs-captcha-box {
    background: rgba(14, 20, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rs-captcha-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rs-captcha-image-col {
    flex-shrink: 0;
}

.rs-captcha-image-col img {
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 48px;
    width: auto;
}

.rs-captcha-input-col {
    flex: 1;
}

.rs-captcha-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 16px;
    letter-spacing: 4px;
    font-weight: 600;
    color: #fff !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rs-captcha-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    letter-spacing: 1px;
    font-weight: 400;
}

.rs-captcha-input:focus {
    border-color: #20a8ec !important;
    box-shadow: 0 0 0 3px rgba(32, 168, 236, 0.15);
    background: rgba(255, 255, 255, 0.12) !important;
}

.rs-captcha-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.rs-captcha-hint i {
    margin-right: 4px;
    color: rgba(32, 168, 236, 0.6);
}

@media (max-width: 480px) {
    .rs-captcha-wrap {
        max-width: 100%;
    }

    .rs-captcha-inner {
        flex-direction: column;
        gap: 12px;
    }

    .rs-captcha-input {
        text-align: center;
    }
}

/* ============================================
   WELL / JUMBOTRON OVERRIDES
============================================ */
.well,
.jumbotron {
    background: rgba(14, 20, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #d6d6d6 !important;
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb {
    background: transparent !important;
}

.breadcrumb-item a {
    color: #20a8ec !important;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ============================================
   INPUT GROUP ADDONS
============================================ */
.input-group-text,
.input-group-prepend .input-group-text,
.input-group-append .input-group-text {
    background: rgba(43, 53, 160, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #d6d6d6 !important;
}
