/* ═══════════════════════════════════════════════════════════════════
   HOSXI × WHMCS — Custom CSS  (Hostinger / hPanel style)
   Theme: Light (#F5F5FF bg) · Purple (#673DE6) · Lime (#CCFF00)
   Fonts: Inter (body) · Outfit (display/headings)
   Template: Twenty-One
   ═══════════════════════════════════════════════════════════════════ */

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





/* GENERAL */
.modern-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
}


/* TOPBAR */
.topbar-minimal {
    background: #f9fafb;
    border-bottom: 1px solid #f1f3f5;
    padding: 6px 0;
}

/* Desktop: show all card bodies and hide collapse arrow */
@media (min-width: 769px) {
    .card-sidebar .collapsable-card-body {
        display: block !important; /* always show */
    }

    .card-sidebar .card-minimise {
        display: none !important; /* hide collapse arrow */
    }
}

/* Hide all sidebar cards on screens smaller than 768px */
@media (max-width: 768px) {
    .card-sidebar {
        display: none !important;
    }
}

/* NAVBAR */
.modern-navbar {
    padding: 14px 0;
    background: #fff;
}

/* LOGO */
.modern-logo img {
    height: 34px;
}

/* NAV LINKS */
.modern-nav li {
    margin: 0 12px;
}

.modern-nav a {
    color: #555;
    font-weight: 500;
    transition: 0.2s;
}

.modern-nav a:hover {
    color: #111;
}

/* SEARCH */
.search-modern input {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    outline: none;
    background: #f9fafb;
}

.search-modern input:focus {
    background: #fff;
    border-color: #ccc;
}

/* CART */
.cart-modern {
    position: relative;
    color: #555;
}

.cart-modern span {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #6366f1;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* MOBILE */
.menu-toggle {
    border: none;
    background: transparent;
    font-size: 20px;
}

/* MOBILE NAV */
.mobile-nav {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 15px 0;
}

/* BUTTONS */
.btn-outline-light {
    border: 1px solid #ddd;
    color: #333;
}

.btn-outline-light:hover {
    background: #f5f5f5;
}

body {
    font-family: 'Inter', sans-serif;
}
/* ===== NEW LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: #0b1220;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding-top: 80px; /* space for header */
}

.app-content {
    margin-left: 260px;
    width: 100%;
    padding: 30px;
    background: #f1f5f9;
    min-height: 100vh;
}
.app-sidebar {
    padding-top: 120px;
}
/* ===== SIDEBAR V2 ===== */
.sidebar-v2 {
    width: 270px;
    height: 100vh;
    background: #0b1220;
    position: fixed;
    left: 0;
    top: 0;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

/* COLLAPSED STATE */
.sidebar-v2.collapsed {
    width: 80px;
}

/* TOP */
.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
}

.logo-text {
    color: #fff;
    font-weight: 700;
}

.toggle-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

/* USER */
.sidebar-user {
    display: flex;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4ac3ff,#56c0f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.user-meta .name {
    color: #fff;
    font-size: 14px;
}

.user-meta .email {
    font-size: 11px;
    color: #94a3b8;
}

/* MENU */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

.menu-title {
    font-size: 11px;
    text-transform: uppercase;
    padding: 12px 18px;
    color: #64748b;
}

/* ITEM */
.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    margin: 4px 10px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.25s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.menu-item.active {
    background: linear-gradient(135deg,#4ac3ff,#56c0f1);
    color: #fff;
}

/* ICON */
.menu-item .icon {
    width: 20px;
}

/* BADGE */
.menu-item .badge {
    margin-left: auto;
    font-size: 11px;
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 6px;
}

/* FOOTER */
.sidebar-bottom {
    padding: 15px;
}

.logout {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
}

.logout:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* COLLAPSED BEHAVIOR */
.sidebar-v2.collapsed .text,
.sidebar-v2.collapsed .menu-title,
.sidebar-v2.collapsed .user-meta,
.sidebar-v2.collapsed .logo-text {
    display: none;
}

/* ───────────────────────────────
   CSS VARIABLES — Hostinger Palette
─────────────────────────────── */


:root {
    /* Backgrounds */
    --h-bg:           #F4F4FF;
    --h-bg-2:         #FFFFFF;
    --h-surface:      #FFFFFF;
    --h-surface-alt:  #F8F7FF;

    /* Brand */
    --h-purple:       #673DE6;
    --h-purple-dark:  #4E22CC;
    --h-purple-light: #EDE9FF;
    --h-purple-mid:   #7C55F0;
    --h-lime:         #CCFF00;
    --h-lime-dark:    #A8D900;

    /* Text */
    --h-fg:           #1A1A2E;
    --h-fg-2:         #3D3D5C;
    --h-muted:        #6B6B8A;
    --h-placeholder:  #A9A9C4;

    /* Borders */
    --h-border:       #E4E2F4;
    --h-border-focus: #673DE6;

    /* Semantic colours */
    --h-green:        #00A96E;
    --h-green-bg:     #E6FFF6;
    --h-green-border: #B3EDD6;
    --h-amber:        #D97706;
    --h-amber-bg:     #FFFBEB;
    --h-amber-border: #FDE68A;
    --h-red:          #DC2626;
    --h-red-bg:       #FEF2F2;
    --h-red-border:   #FECACA;
    --h-blue:         #2563EB;
    --h-blue-bg:      #EFF6FF;
    --h-blue-border:  #BFDBFE;

    /* Shape */
    --h-radius:       12px;
    --h-radius-md:    8px;
    --h-radius-sm:    6px;
    --h-radius-pill:  100px;

    /* Shadows */
    --h-shadow-xs:    0 1px 3px rgba(103, 61, 230, 0.08);
    --h-shadow-sm:    0 2px 8px rgba(103, 61, 230, 0.10);
    --h-shadow-md:    0 4px 20px rgba(103, 61, 230, 0.12);
    --h-shadow-lg:    0 8px 32px rgba(103, 61, 230, 0.15);
    --h-shadow-card:  0 1px 4px rgba(26, 26, 46, 0.06), 0 4px 16px rgba(26, 26, 46, 0.06);

    /* Transitions */
    --h-transition:   all 0.2s ease;
    --h-transition-fast: all 0.15s ease;
}

/* ═══════════════════════════════════════
   GLOBAL RESET & BASE
═══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body,
body.skin-twenty-one {
    background-color: var(--h-bg) !important;
    color: var(--h-fg) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background-color: rgba(103, 61, 230, 0.15);
    color: var(--h-fg);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--h-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(103, 61, 230, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(103, 61, 230, 0.45);
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    font-family: 'Outfit', system-ui, sans-serif !important;
    color: var(--h-fg) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* Links */
a {
    color: var(--h-purple) !important;
    text-decoration: none !important;
    transition: var(--h-transition) !important;
}
a:hover {
    color: var(--h-purple-dark) !important;
    text-decoration: underline !important;
}

/* Paragraphs */
p { color: var(--h-fg-2) !important; }

/* ═══════════════════════════════════════
   LAYOUT — PAGE BACKGROUND
═══════════════════════════════════════ */
#main-body,
.container-fluid,
.container {
    background: transparent !important;
}

#wrapper,
#main-body > .container-fluid:first-of-type {
    background: var(--h-bg) !important;
}

/* ═══════════════════════════════════════
   NAVBAR / TOP BAR
═══════════════════════════════════════ */
.navbar,
#navigation,
nav.navbar,
.navbar-default {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--h-border) !important;
    box-shadow: 0 1px 8px rgba(103, 61, 230, 0.07) !important;
    backdrop-filter: none !important;
}

.navbar-brand,
.navbar-brand:hover {
    color: var(--h-purple) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    letter-spacing: -0.5px;
    text-decoration: none !important;
}

.navbar-nav > li > a,
.nav > li > a {
    color: var(--h-fg-2) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 14px 16px !important;
    transition: var(--h-transition) !important;
}

.navbar-nav > li > a:hover,
.nav > li > a:hover,
.navbar-nav > li.active > a {
    color: var(--h-purple) !important;
    background: var(--h-purple-light) !important;
}

.navbar-nav > li.active > a {
    font-weight: 600 !important;
    border-bottom: 2px solid var(--h-purple) !important;
}

/* Dropdown menus */
.dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    box-shadow: var(--h-shadow-lg) !important;
    padding: 8px !important;
}
.dropdown-menu > li > a {
    color: var(--h-fg-2) !important;
    border-radius: var(--h-radius-sm) !important;
    padding: 9px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: var(--h-transition-fast) !important;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li.active > a {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    text-decoration: none !important;
}
.dropdown-divider,
.dropdown-menu .divider {
    background-color: var(--h-border) !important;
    margin: 6px 0 !important;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
#sidebar,
.sidebar,
.sidebar-nav {
    background: #FFFFFF !important;
    border-right: 1px solid var(--h-border) !important;
    box-shadow: 2px 0 12px rgba(103, 61, 230, 0.05) !important;
}

#sidebar .sidebar-header,
.sidebar .logo-wrapper {
    background: var(--h-purple-light) !important;
    border-bottom: 1px solid var(--h-border) !important;
    padding: 20px 16px !important;
    text-align: center !important;
}

#sidebar .list-group-item,
.sidebar .nav-link,
.sidebar ul li a {
    background: transparent !important;
    border: none !important;
    color: var(--h-fg-2) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 10px 18px !important;
    border-radius: var(--h-radius-sm) !important;
    margin: 2px 10px !important;
    transition: var(--h-transition) !important;
    display: block !important;
}

#sidebar .list-group-item:hover,
.sidebar .nav-link:hover,
.sidebar ul li a:hover {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    transform: translateX(2px);
    text-decoration: none !important;
}

#sidebar .list-group-item.active,
.sidebar .nav-link.active,
.sidebar ul li.active > a {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    border-left: 3px solid var(--h-purple) !important;
    font-weight: 600 !important;
}

#sidebar .list-group-item-heading,
.sidebar .nav-section-label {
    color: var(--h-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 16px 18px 6px !important;
}

#sidebar .list-group-item i,
.sidebar .nav-link i {
    color: var(--h-purple) !important;
    width: 18px;
    text-align: center;
    margin-right: 10px;
}

/* ═══════════════════════════════════════
   CARDS / PANELS / WELLS
═══════════════════════════════════════ */
.panel,
.card,
.well,
.box {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    box-shadow: var(--h-shadow-card) !important;
    color: var(--h-fg) !important;
    transition: var(--h-transition) !important;
    margin-bottom: 20px;
}

.panel:hover,
.card:hover {
    border-color: rgba(103, 61, 230, 0.25) !important;
    box-shadow: var(--h-shadow-md) !important;
}

.panel-heading,
.card-header {
    background: var(--h-surface-alt) !important;
    border-bottom: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) var(--h-radius) 0 0 !important;
    padding: 16px 20px !important;
    color: var(--h-fg) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.panel-body,
.card-body {
    padding: 20px !important;
    color: var(--h-fg-2) !important;
}

.panel-footer,
.card-footer {
    background: var(--h-surface-alt) !important;
    border-top: 1px solid var(--h-border) !important;
    border-radius: 0 0 var(--h-radius) var(--h-radius) !important;
    padding: 14px 20px !important;
}

/* Card sidebar variant */
.card-sidebar {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    box-shadow: var(--h-shadow-card) !important;
    overflow: hidden;
    transition: var(--h-transition) !important;
}
.card-sidebar:hover {
    transform: translateY(-2px);
    border-color: rgba(103, 61, 230, 0.2) !important;
    box-shadow: var(--h-shadow-md) !important;
}
.card-sidebar .card-header {
    background: var(--h-surface-alt) !important;
    border-bottom: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) var(--h-radius) 0 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px !important;
}
.card-sidebar .card-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--h-fg) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-sidebar .card-title i { color: var(--h-purple) !important; }
.card-sidebar .card-body {
    padding: 18px 20px !important;
    background: transparent !important;
}
.card-sidebar .card-body p { color: var(--h-fg-2) !important; }
.card-sidebar .card-body strong {
    color: var(--h-purple) !important;
    font-weight: 600 !important;
}
.card-sidebar .list-group-item {
    background: transparent !important;
    border: none !important;
    border-radius: var(--h-radius-sm) !important;
    margin-bottom: 2px !important;
    color: var(--h-fg-2) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 10px 14px !important;
    transition: var(--h-transition) !important;
}
.card-sidebar .list-group-item:hover {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    transform: translateX(2px);
}
.card-sidebar .list-group-item.active {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    border-left: 3px solid var(--h-purple) !important;
    font-weight: 600 !important;
}
.card-sidebar .card-footer {
    background: var(--h-surface-alt) !important;
    border-top: 1px solid var(--h-border) !important;
    padding: 12px 16px !important;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    border-radius: var(--h-radius-md) !important;
    padding: 10px 20px !important;
    min-height: 40px !important;
    cursor: pointer !important;
    transition: var(--h-transition) !important;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

/* Primary — Purple solid */
.btn-primary,
.btn-success {
    background: var(--h-purple) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(103, 61, 230, 0.30) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
    background: var(--h-purple-dark) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(103, 61, 230, 0.40) !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}
.btn-primary:active,
.btn-success:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Danger */
.btn-danger {
    background: var(--h-red-bg) !important;
    color: var(--h-red) !important;
    border: 1px solid var(--h-red-border) !important;
}
.btn-danger:hover {
    background: var(--h-red) !important;
    color: #FFFFFF !important;
    border-color: var(--h-red) !important;
    transform: translateY(-1px);
}

/* Warning */
.btn-warning {
    background: var(--h-amber-bg) !important;
    color: var(--h-amber) !important;
    border: 1px solid var(--h-amber-border) !important;
}
.btn-warning:hover {
    background: var(--h-amber) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

/* Secondary / Default / Light */
.btn-default,
.btn-secondary,
.btn-light,
.btn-outline-primary {
    background: #FFFFFF !important;
    color: var(--h-fg) !important;
    border: 1px solid var(--h-border) !important;
}
.btn-default:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-outline-primary:hover {
    background: var(--h-purple-light) !important;
    border-color: var(--h-purple) !important;
    color: var(--h-purple) !important;
    transform: translateY(-1px);
}

/* Info */
.btn-info {
    background: var(--h-blue-bg) !important;
    color: var(--h-blue) !important;
    border: 1px solid var(--h-blue-border) !important;
}
.btn-info:hover {
    background: var(--h-blue) !important;
    color: #fff !important;
    border-color: var(--h-blue) !important;
    transform: translateY(-1px);
}

/* Link button */
.btn-link {
    color: var(--h-purple) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    min-height: unset !important;
    font-weight: 500 !important;
}
.btn-link:hover { color: var(--h-purple-dark) !important; }

/* ═══════════════════════════════════════
   FORM CONTROLS
═══════════════════════════════════════ */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea,
select {
    background: #FFFFFF !important;
    border: 1.5px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) !important;
    color: var(--h-fg) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 10px 14px !important;
    height: 42px !important;
    transition: var(--h-transition) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

textarea.form-control,
textarea {
    height: auto !important;
    min-height: 110px;
    resize: vertical;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--h-placeholder) !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    background: #FFFFFF !important;
    border-color: var(--h-purple) !important;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.12) !important;
    color: var(--h-fg) !important;
    outline: none !important;
}

/* Select dropdown arrow */
select.form-control,
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23673DE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px !important;
    padding-right: 36px !important;
    cursor: pointer;
}

/* Labels */
.form-group label,
.control-label,
label {
    color: var(--h-fg) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.form-group { margin-bottom: 18px !important; }

/* Input groups */
.input-group-text,
.input-group-addon {
    background: var(--h-surface-alt) !important;
    border: 1.5px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) 0 0 var(--h-radius-md) !important;
    color: var(--h-muted) !important;
    padding: 0 14px !important;
    height: 42px !important;
    display: flex;
    align-items: center;
}
.input-group .form-control {
    border-radius: 0 var(--h-radius-md) var(--h-radius-md) 0 !important;
    border-left: none !important;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    height: auto !important;
    width: 16px;
    height: 16px;
    accent-color: var(--h-purple);
    cursor: pointer;
}

/* ═══════════════════════════════════════
   TABLES
═══════════════════════════════════════ */
.table, table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    color: var(--h-fg) !important;
}

.table thead th,
table thead th {
    background: var(--h-surface-alt) !important;
    border: none !important;
    border-bottom: 2px solid var(--h-border) !important;
    color: var(--h-muted) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 12px 16px !important;
}

.table tbody tr,
table tbody tr {
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--h-border) !important;
    transition: var(--h-transition) !important;
}

.table tbody tr:hover,
table tbody tr:hover {
    background: var(--h-surface-alt) !important;
}

.table tbody td,
table tbody td {
    border: none !important;
    padding: 13px 16px !important;
    vertical-align: middle !important;
    color: var(--h-fg-2) !important;
    font-size: 0.875rem !important;
}

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

/* ═══════════════════════════════════════
   ALERTS
═══════════════════════════════════════ */
.alert {
    border: 1px solid transparent !important;
    border-radius: var(--h-radius-md) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 14px 18px !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success {
    background: var(--h-green-bg) !important;
    border-color: var(--h-green-border) !important;
    color: #065F46 !important;
}
.alert-danger,
.alert-error {
    background: var(--h-red-bg) !important;
    border-color: var(--h-red-border) !important;
    color: #991B1B !important;
}
.alert-warning {
    background: var(--h-amber-bg) !important;
    border-color: var(--h-amber-border) !important;
    color: #92400E !important;
}
.alert-info {
    background: var(--h-blue-bg) !important;
    border-color: var(--h-blue-border) !important;
    color: #1E40AF !important;
}

/* ═══════════════════════════════════════
   BADGES / LABELS
═══════════════════════════════════════ */
.badge, .label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    padding: 3px 10px !important;
    border-radius: var(--h-radius-pill) !important;
    text-transform: uppercase;
}

.badge-primary, .label-primary {
    background: var(--h-purple) !important;
    color: #fff !important;
}
.badge-success, .label-success {
    background: var(--h-green-bg) !important;
    color: #065F46 !important;
    border: 1px solid var(--h-green-border) !important;
}
.badge-danger, .label-danger {
    background: var(--h-red-bg) !important;
    color: var(--h-red) !important;
    border: 1px solid var(--h-red-border) !important;
}
.badge-warning, .label-warning {
    background: var(--h-amber-bg) !important;
    color: var(--h-amber) !important;
    border: 1px solid var(--h-amber-border) !important;
}
.badge-info, .label-info {
    background: var(--h-blue-bg) !important;
    color: var(--h-blue) !important;
    border: 1px solid var(--h-blue-border) !important;
}
.badge-default, .label-default {
    background: var(--h-surface-alt) !important;
    color: var(--h-muted) !important;
    border: 1px solid var(--h-border) !important;
}

/* Status dots */
.status-active::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--h-green); margin-right: 6px;
    box-shadow: 0 0 6px rgba(0, 169, 110, 0.4);
}
.status-pending::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--h-amber); margin-right: 6px;
}
.status-suspended::before,
.status-terminated::before {
    content: ''; display: inline-block;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--h-red); margin-right: 6px;
}

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.modal-backdrop {
    background: rgba(26, 26, 46, 0.55) !important;
    backdrop-filter: blur(3px) !important;
}
.modal-content {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    box-shadow: var(--h-shadow-lg) !important;
    color: var(--h-fg) !important;
}
.modal-header {
    background: var(--h-surface-alt) !important;
    border-bottom: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) var(--h-radius) 0 0 !important;
    padding: 18px 24px !important;
}
.modal-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--h-fg) !important;
    font-size: 1.1rem !important;
}
.modal-body {
    padding: 24px !important;
    color: var(--h-fg-2) !important;
}
.modal-footer {
    border-top: 1px solid var(--h-border) !important;
    background: var(--h-surface-alt) !important;
    border-radius: 0 0 var(--h-radius) var(--h-radius) !important;
    padding: 14px 24px !important;
    gap: 10px;
}
.close, .btn-close {
    color: var(--h-muted) !important;
    opacity: 0.7 !important;
    font-size: 1.2rem !important;
    text-shadow: none !important;
}
.close:hover, .btn-close:hover {
    color: var(--h-fg) !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.pagination {
    gap: 4px;
    display: flex;
    align-items: center;
}
.pagination > li > a,
.pagination > li > span {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-sm) !important;
    color: var(--h-fg-2) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 7px 14px !important;
    min-width: 38px;
    text-align: center;
    transition: var(--h-transition) !important;
}
.pagination > li > a:hover {
    background: var(--h-purple-light) !important;
    border-color: var(--h-purple) !important;
    color: var(--h-purple) !important;
}
.pagination > li.active > a,
.pagination > li.active > span {
    background: var(--h-purple) !important;
    border-color: var(--h-purple) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(103, 61, 230, 0.30) !important;
}
.pagination > li.disabled > a,
.pagination > li.disabled > span {
    background: var(--h-surface-alt) !important;
    border-color: var(--h-border) !important;
    color: var(--h-placeholder) !important;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════
   TABS
═══════════════════════════════════════ */
.nav-tabs {
    border-bottom: 2px solid var(--h-border) !important;
    gap: 4px;
}
.nav-tabs > li > a,
.nav-tabs .nav-link {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--h-radius-sm) var(--h-radius-sm) 0 0 !important;
    color: var(--h-muted) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 10px 18px !important;
    transition: var(--h-transition) !important;
}
.nav-tabs > li > a:hover,
.nav-tabs .nav-link:hover {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
    text-decoration: none !important;
}
.nav-tabs > li.active > a,
.nav-tabs .nav-link.active {
    background: #FFFFFF !important;
    border-color: var(--h-border) var(--h-border) transparent !important;
    color: var(--h-purple) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid var(--h-purple) !important;
    margin-bottom: -2px;
}
.tab-content {
    border: 1px solid var(--h-border) !important;
    border-top: none !important;
    border-radius: 0 0 var(--h-radius) var(--h-radius) !important;
    background: #FFFFFF !important;
    padding: 20px !important;
}

/* Pill nav */
.nav-pills > li > a,
.nav-pills .nav-link {
    background: var(--h-surface-alt) !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-sm) !important;
    color: var(--h-fg-2) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
}
.nav-pills > li > a:hover {
    background: var(--h-purple-light) !important;
    color: var(--h-purple) !important;
}
.nav-pills > li.active > a,
.nav-pills .nav-link.active {
    background: var(--h-purple) !important;
    border-color: var(--h-purple) !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════ */
.breadcrumb {
    background: transparent !important;
    padding: 8px 0 !important;
    margin-bottom: 16px !important;
    font-size: 0.8rem !important;
    display: flex;
    gap: 4px;
    align-items: center;
}
.breadcrumb > li { color: var(--h-muted) !important; }
.breadcrumb > li > a { color: var(--h-muted) !important; }
.breadcrumb > li > a:hover { color: var(--h-purple) !important; }
.breadcrumb > li.active {
    color: var(--h-purple) !important;
    font-weight: 600 !important;
}
.breadcrumb > li + li::before {
    content: '/' !important;
    color: var(--h-border) !important;
    padding: 0 4px !important;
}

/* ═══════════════════════════════════════
   PROGRESS BARS
═══════════════════════════════════════ */
.progress {
    background: var(--h-purple-light) !important;
    border-radius: var(--h-radius-pill) !important;
    height: 8px !important;
    box-shadow: none !important;
    overflow: hidden;
}
.progress-bar {
    background: var(--h-purple) !important;
    border-radius: var(--h-radius-pill) !important;
    transition: width 0.6s ease !important;
}
.progress-bar-success {
    background: var(--h-green) !important;
}
.progress-bar-danger {
    background: var(--h-red) !important;
}
.progress-bar-warning {
    background: var(--h-amber) !important;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
#footer, footer {
    background: #FFFFFF !important;
    border-top: 1px solid var(--h-border) !important;
    color: var(--h-muted) !important;
    padding: 24px 0 !important;
    font-size: 0.875rem !important;
}
#footer a, footer a { color: var(--h-muted) !important; }
#footer a:hover, footer a:hover { color: var(--h-purple) !important; }

/* ═══════════════════════════════════════
   DASHBOARD STAT CARDS
═══════════════════════════════════════ */
.stat-card,
.action-card,
.wallet-card,
.dashboard-card {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    box-shadow: var(--h-shadow-card) !important;
    padding: 28px 20px !important;
    text-align: center;
    transition: var(--h-transition) !important;
    display: block;
    text-decoration: none !important;
    color: var(--h-fg) !important;
    position: relative;
    overflow: hidden;
}

.stat-card::before,
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--h-purple);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.stat-card:hover,
.action-card:hover,
.wallet-card:hover,
.dashboard-card:hover {
    border-color: rgba(103, 61, 230, 0.25) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--h-shadow-md) !important;
    text-decoration: none !important;
}

.stat-card:hover::before,
.action-card:hover::before {
    opacity: 1;
}

.stat-card h4,
.stat-card .stat-value {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--h-purple) !important;
    margin-bottom: 6px !important;
}

.stat-card p,
.stat-card .stat-label {
    color: var(--h-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.wallet-card h4,
.wallet-card .balance {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--h-green) !important;
    margin-bottom: 6px !important;
}
.wallet-card p {
    color: var(--h-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
.wallet-card .btn-success,
.wallet-card .btn-add-funds {
    background: var(--h-purple) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: var(--h-radius-md) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 8px 0 !important;
    width: 70% !important;
    margin: 14px auto 0 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(103, 61, 230, 0.25) !important;
    transition: var(--h-transition) !important;
}
.wallet-card .btn-success:hover,
.wallet-card .btn-add-funds:hover {
    background: var(--h-purple-dark) !important;
    box-shadow: 0 4px 14px rgba(103, 61, 230, 0.35) !important;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   LIST GROUPS
═══════════════════════════════════════ */
.list-group-item {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    color: var(--h-fg-2) !important;
    font-size: 0.875rem !important;
    padding: 12px 16px !important;
    transition: var(--h-transition) !important;
    border-radius: 0 !important;
}
.list-group-item:first-child {
    border-radius: var(--h-radius-md) var(--h-radius-md) 0 0 !important;
}
.list-group-item:last-child {
    border-radius: 0 0 var(--h-radius-md) var(--h-radius-md) !important;
}
.list-group-item:hover {
    background: var(--h-surface-alt) !important;
    color: var(--h-purple) !important;
    text-decoration: none !important;
}
.list-group-item.active {
    background: var(--h-purple-light) !important;
    border-color: var(--h-purple) !important;
    color: var(--h-purple) !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════
   INVOICE / ORDER STYLES
═══════════════════════════════════════ */
.invoice-total,
.order-total,
.summary-total {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--h-purple) !important;
}

.table tfoot td,
.table tfoot th {
    border-top: 2px solid var(--h-border) !important;
    color: var(--h-fg) !important;
    font-weight: 700 !important;
    background: var(--h-surface-alt) !important;
    padding: 14px 16px !important;
}

/* ═══════════════════════════════════════
   TOASTS / FLASH MESSAGES
═══════════════════════════════════════ */
.toast,
.flash-message,
.message-box {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) !important;
    box-shadow: var(--h-shadow-lg) !important;
    color: var(--h-fg) !important;
    font-size: 0.875rem !important;
    padding: 14px 18px !important;
}

/* ═══════════════════════════════════════
   TOOLTIPS
═══════════════════════════════════════ */
.tooltip .tooltip-inner,
.tooltip-inner {
    background: var(--h-fg) !important;
    border-radius: var(--h-radius-sm) !important;
    color: #FFFFFF !important;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    box-shadow: var(--h-shadow-md) !important;
    max-width: 220px;
}

/* ═══════════════════════════════════════
   POPOVERS
═══════════════════════════════════════ */
.popover {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) !important;
    box-shadow: var(--h-shadow-lg) !important;
    color: var(--h-fg) !important;
}
.popover-header, .popover-title {
    background: var(--h-surface-alt) !important;
    border-bottom: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) var(--h-radius-md) 0 0 !important;
    color: var(--h-fg) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    padding: 12px 16px !important;
}
.popover-body, .popover-content {
    color: var(--h-fg-2) !important;
    padding: 14px 16px !important;
    font-size: 0.875rem !important;
}

/* ═══════════════════════════════════════
   ANNOUNCEMENTS / NOTICES
═══════════════════════════════════════ */
.announcement,
.notice-bar,
.system-announcement {
    background: var(--h-purple-light) !important;
    border: 1px solid rgba(103, 61, 230, 0.2) !important;
    border-radius: var(--h-radius-md) !important;
    color: var(--h-purple-dark) !important;
    padding: 14px 20px !important;
    margin-bottom: 16px;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════
   LOADING SPINNER
═══════════════════════════════════════ */
.loading-spinner,
.spinner-border,
.spinner {
    color: var(--h-purple) !important;
    border-color: rgba(103, 61, 230, 0.2) !important;
    border-top-color: var(--h-purple) !important;
}

/* ═══════════════════════════════════════
   TICKET / SUPPORT
═══════════════════════════════════════ */
.ticket-reply,
.support-message {
    background: var(--h-surface-alt) !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) !important;
    padding: 18px !important;
    margin-bottom: 14px;
}
.ticket-reply.staff-reply,
.support-message.staff {
    border-left: 3px solid var(--h-purple) !important;
    background: var(--h-purple-light) !important;
}
.ticket-reply.client-reply,
.support-message.client {
    border-left: 3px solid var(--h-green) !important;
    background: var(--h-green-bg) !important;
}

/* ═══════════════════════════════════════
   DOMAIN SEARCH / ORDER FORM
═══════════════════════════════════════ */
.domain-search-input,
.order-search-input {
    background: #FFFFFF !important;
    border: 1.5px solid var(--h-border) !important;
    border-radius: var(--h-radius-md) !important;
    color: var(--h-fg) !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    transition: var(--h-transition) !important;
}
.domain-search-input:focus,
.order-search-input:focus {
    border-color: var(--h-purple) !important;
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.12) !important;
    outline: none !important;
}

/* TLD pills */
.tld-option,
.domain-tld-pill {
    background: var(--h-purple-light) !important;
    border: 1px solid rgba(103, 61, 230, 0.2) !important;
    border-radius: var(--h-radius-pill) !important;
    color: var(--h-purple) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 4px 12px !important;
    cursor: pointer;
    transition: var(--h-transition) !important;
    display: inline-block;
}
.tld-option:hover,
.domain-tld-pill:hover {
    background: var(--h-purple) !important;
    color: #FFFFFF !important;
    border-color: var(--h-purple) !important;
    transform: translateY(-1px);
}

/* Domain availability */
.domain-available {
    border-left: 3px solid var(--h-green) !important;
    background: var(--h-green-bg) !important;
}
.domain-unavailable {
    border-left: 3px solid var(--h-red) !important;
    background: var(--h-red-bg) !important;
}

/* ═══════════════════════════════════════
   CHECKOUT / CART
═══════════════════════════════════════ */
.cart-summary,
.order-summary {
    background: #FFFFFF !important;
    border: 1px solid var(--h-border) !important;
    border-radius: var(--h-radius) !important;
    padding: 20px !important;
    box-shadow: var(--h-shadow-card) !important;
}
.cart-total-row {
    border-top: 2px solid var(--h-border) !important;
    padding-top: 14px !important;
    margin-top: 10px;
    font-weight: 700 !important;
}

/* ═══════════════════════════════════════
   SPECIAL: Purple top accent bar (hPanel style)
═══════════════════════════════════════ */
#main-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--h-purple), var(--h-purple-mid), #A78BFA);
    z-index: 9999;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
    #sidebar {
        border-right: none !important;
        box-shadow: 0 -1px 0 var(--h-border) !important;
    }
    .stat-card,
    .action-card,
    .wallet-card { padding: 20px 14px !important; }
    .stat-card h4,
    .wallet-card h4 { font-size: 1.6rem !important; }
    .panel-body,
    .card-body { padding: 16px !important; }
    .modal-content { margin: 10px !important; }
    .btn {
        font-size: 0.85rem !important;
        padding: 9px 16px !important;
    }
    .table-responsive { overflow-x: auto !important; }
}

@media (max-width: 480px) {
    .stat-card h4,
    .wallet-card h4 { font-size: 1.4rem !important; }
    .panel-heading,
    .card-header {
        padding: 13px 16px !important;
        font-size: 0.95rem !important;
    }
    .breadcrumb { font-size: 0.75rem !important; }
}

/* ═══════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}