/**
 * ClickHost WHMCS Theme Stylesheet
 * Adapts the ClickHost WordPress theme design for WHMCS twenty-one (Bootstrap 4).
 * =============================================================================
 */

/* =============================================================================
   1. CSS Custom Properties
   ============================================================================= */

:root {
    /* Orange palette */
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-glow: rgba(249, 115, 22, 0.25);

    /* Dark palette */
    --dark-950: #06090f;
    --dark-900: #0a0f1a;
    --dark-800: #0f1628;
    --dark-700: #162036;
    --dark-600: #1e293b;

    /* Light palette */
    --white: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;

    /* Text */
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Borders */
    --border-light: #e2e8f0;
    --border-lighter: #f1f5f9;

    /* Status colours */
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --blue: #3b82f6;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px var(--orange-glow);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease-out);

    /* Layout */
    --nav-height: 72px;
}

/* =============================================================================
   2. Base & Typography Overrides
   ============================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
body.ch-body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--bg-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Remove WHMCS default primary-bg-color background */
.primary-bg-color,
.primary-bg {
    background-color: transparent !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.375rem; }
h4, .h4 { font-size: 1.125rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.875rem; }

p {
    color: var(--text-body);
    line-height: 1.7;
}

a {
    color: var(--orange-500);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--orange-600);
    text-decoration: none;
}

::selection {
    background: var(--orange-500);
    color: var(--white);
}

/* Container override */
.ch-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* =============================================================================
   3. ClickHost Logo
   ============================================================================= */

.ch-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.ch-logo__icon {
    color: var(--orange-500);
    margin-right: 6px;
    font-size: 1.2rem;
}

.ch-logo__accent {
    color: var(--orange-500);
}

/* =============================================================================
   5. Navbar (.ch-nav) — Exact WordPress theme copy
   ============================================================================= */

.ch-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.ch-nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ch-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ch-nav__logo img {
    height: 36px;
    width: auto;
}

.ch-nav__logo-white {
    display: block;
}

.ch-nav__logo-dark {
    display: none;
}

.ch-nav.scrolled .ch-nav__logo-white {
    display: none;
}

.ch-nav.scrolled .ch-nav__logo-dark {
    display: block;
}

/* Footer logo */
.ch-footer__logo-img {
    height: 36px;
    width: auto;
}

.ch-nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ch-nav__link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    display: block;
    white-space: nowrap;
}

.ch-nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out);
}

.ch-nav__link:hover {
    color: var(--white);
}

.ch-nav__link:hover::after {
    transform: scaleX(1);
}

/* Navbar on scroll: dark text */
.ch-nav.scrolled .ch-nav__link {
    color: var(--text-body);
}

.ch-nav.scrolled .ch-nav__link:hover {
    color: var(--text-dark);
}

.ch-nav.scrolled .ch-nav__link::after {
    background: var(--orange-500);
}

.ch-nav.scrolled .ch-btn--primary {
    box-shadow: 0 2px 12px var(--orange-glow);
}

.ch-nav.scrolled .ch-nav__toggle span {
    background: var(--text-dark);
}

.ch-nav.scrolled .ch-nav__cart {
    color: var(--text-body);
}

/* Login page dark nav (not logged in, uses :has fallback) */
body:has(.ch-login) .ch-nav.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body:has(.ch-login) .ch-nav.scrolled .ch-nav__logo-white { display: block; }
body:has(.ch-login) .ch-nav.scrolled .ch-nav__logo-dark { display: none; }
body:has(.ch-login) .ch-nav.scrolled .ch-nav__link { color: rgba(255, 255, 255, 0.7); }
body:has(.ch-login) .ch-nav.scrolled .ch-nav__link:hover { color: var(--white); }
body:has(.ch-login) .ch-nav.scrolled .ch-nav__toggle span { background: var(--white); }
body:has(.ch-login) .ch-nav.scrolled .ch-nav__cart { color: rgba(255, 255, 255, 0.7); }

/* Actions */
.ch-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* =============================================================================
   6. ClickHost Buttons (shared with nav)
   ============================================================================= */

.ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.4;
}

.ch-btn--primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    color: var(--white);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.ch-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px var(--orange-glow);
    filter: brightness(1.1);
    color: var(--white);
}

.ch-btn--sm {
    padding: 10px 24px;
    font-size: 13px;
}

.ch-btn--block {
    width: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
}

/* =============================================================================
   7. User Dropdown (.ch-nav__user-menu)
   ============================================================================= */

.ch-nav__user-menu {
    position: relative;
}

.ch-nav__user-toggle {
    border-radius: var(--radius-full) !important;
}

.ch-nav__user-arrow {
    font-size: 0.6rem;
    transition: transform var(--transition);
}

.ch-nav__user-menu.open .ch-nav__user-arrow {
    transform: rotate(180deg);
}

.ch-nav__user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 1060;
}

.ch-nav__user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ch-nav__user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.ch-nav__user-dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--orange-500);
}

.ch-nav__user-dropdown a i {
    width: 18px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ch-nav__user-dropdown a:hover i {
    color: var(--orange-500);
}

.ch-nav__user-info {
    padding: 12px 14px;
}

.ch-nav__user-info strong {
    display: block;
    font-size: 0.875rem;
    color: var(--dark-900);
    font-family: var(--font-heading);
}

.ch-nav__user-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ch-nav__user-divider {
    height: 1px;
    background: var(--border-lighter);
    margin: 6px 0;
}

/* =============================================================================
   8. Cart Badge (.ch-nav__cart)
   ============================================================================= */

.ch-nav__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 1rem;
}

.ch-nav__cart:hover {
    color: var(--white);
}

.ch-nav__cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--orange-500);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 4px;
}

/* =============================================================================
   9. Hamburger Toggle (.ch-nav__toggle)
   ============================================================================= */

.ch-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.ch-nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.ch-nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ch-nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.ch-nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================================================
   10. Mobile Menu (.ch-nav__mobile)
   ============================================================================= */

.ch-nav__mobile {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-800);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    z-index: 1000;
}

.ch-nav__mobile.active {
    max-height: 600px;
    padding: 16px 24px 24px;
}

.ch-nav__mobile ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-nav__mobile ul li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-nav__mobile ul li:last-child {
    border-bottom: none;
    padding-top: 12px;
}

.ch-nav__mobile ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.ch-nav__mobile ul li a:hover {
    color: var(--orange-500);
    text-decoration: none;
    padding-left: 8px;
}

.ch-nav__mobile ul li a i {
    width: 20px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 0.875rem;
}

.ch-nav__mobile ul li a:hover i {
    color: var(--orange-500);
}

.ch-nav__mobile ul li a.ch-btn {
    margin-top: 4px;
    color: var(--white);
    justify-content: center;
}

.ch-nav__mobile-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 6px 0;
    list-style: none;
    border-bottom: none !important;
}

/* =============================================================================
   11. Breadcrumb (.ch-breadcrumb-wrap)
   ============================================================================= */

.ch-breadcrumb-wrap {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 8px;
    background: var(--bg-secondary);
}

.ch-breadcrumb-wrap .breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin: 0;
    font-size: 0.8125rem;
    border-radius: 0;
}

.ch-breadcrumb-wrap .breadcrumb-item a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.ch-breadcrumb-wrap .breadcrumb-item a:hover {
    color: var(--orange-500);
}

.ch-breadcrumb-wrap .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.ch-breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-light);
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.55rem;
    vertical-align: middle;
}

/* =============================================================================
   11b. Floating Notifications (.ch-notif-fab, .ch-notif-modal)
   ============================================================================= */

.ch-notif-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    border: none;
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(249,115,22,0.4);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ch-notif-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(249,115,22,0.5);
}

.ch-notif-fab__badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Notification modal overlay */
.ch-notif-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.ch-notif-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ch-notif-modal {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 480px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.ch-notif-overlay.active .ch-notif-modal {
    transform: scale(1) translateY(0);
}

.ch-notif-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.ch-notif-modal__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-notif-modal__title i {
    color: var(--orange-500);
}

.ch-notif-modal__close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.ch-notif-modal__close:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.ch-notif-modal__body {
    overflow-y: auto;
    padding: 8px;
}

.ch-notif-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}

.ch-notif-modal__item:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: var(--white);
}

.ch-notif-modal__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.ch-notif-modal__item--danger .ch-notif-modal__icon {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.ch-notif-modal__item--warning .ch-notif-modal__icon {
    background: rgba(250,204,21,0.12);
    color: #facc15;
}

.ch-notif-modal__item--info .ch-notif-modal__icon {
    background: rgba(56,189,248,0.12);
    color: #38bdf8;
}

.ch-notif-modal__item--success .ch-notif-modal__icon {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
}

.ch-notif-modal__msg {
    font-size: 0.8125rem;
    line-height: 1.5;
    padding-top: 6px;
}

.ch-notif-modal__empty {
    text-align: center;
    padding: 40px 20px;
}

.ch-notif-modal__empty i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.12);
    margin-bottom: 12px;
}

.ch-notif-modal__empty p {
    color: rgba(255,255,255,0.35);
    margin: 0;
    font-size: 0.875rem;
}

/* =============================================================================
   11c. Client Area Sub-Nav (.ch-client-nav)
   ============================================================================= */

.ch-client-nav {
    padding: 16px 0;
}

.ch-client-nav__list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ch-client-nav__list::-webkit-scrollbar {
    display: none;
}

.ch-client-nav__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.ch-client-nav__link:hover {
    color: var(--orange-500);
    background: var(--white);
    border-color: var(--orange-500);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.ch-client-nav__link.ch-client-nav__link--active,
.ch-client-nav__link.ch-client-nav__link--active:visited,
.ch-client-nav__link.ch-client-nav__link--active:focus {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px var(--orange-glow);
}

.ch-client-nav__link.ch-client-nav__link--active:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--orange-glow);
}

.ch-client-nav__link i {
    font-size: 0.875rem;
}

/* =============================================================================
   12. Main Content (.ch-main)
   ============================================================================= */

section#main-body.ch-main {
    min-height: calc(100vh - 400px);
    padding-top: calc(var(--nav-height));
    padding-bottom: 48px;
    background: var(--bg-secondary);
    margin: 0;
}




/* =============================================================================
   13. Sidebar (.ch-sidebar)
   ============================================================================= */

.ch-sidebar .card-sidebar,
.ch-sidebar .card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    margin-bottom: 20px;
}

.ch-sidebar .card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-lighter);
    padding: 16px 20px;
}

.ch-sidebar .card-header .card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-sidebar .card-header .card-title i:first-child {
    color: var(--orange-500);
    margin-right: 8px;
}

.ch-sidebar .card-header .card-minimise {
    color: var(--text-light);
    cursor: pointer;
    transition: transform var(--transition);
    font-size: 0.75rem;
}

.ch-sidebar .list-group-flush .list-group-item {
    border-color: var(--border-lighter);
    padding: 12px 20px;
    font-size: 0.875rem;
    color: var(--text-body);
    transition: all var(--transition);
}

.ch-sidebar .list-group-flush .list-group-item:hover {
    background: var(--bg-secondary);
    color: var(--orange-500);
}

.ch-sidebar .list-group-flush .list-group-item.active {
    background: rgba(249, 115, 22, 0.06);
    color: var(--orange-500);
    border-left: 3px solid var(--orange-500);
    font-weight: 600;
    border-color: var(--border-lighter);
}

.ch-sidebar .list-group-item .sidebar-menu-item-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-sidebar .list-group-item .sidebar-menu-item-icon {
    color: var(--text-muted);
    width: 18px;
    text-align: center;
    font-size: 0.875rem;
}

.ch-sidebar .list-group-item.active .sidebar-menu-item-icon {
    color: var(--orange-500);
}

.ch-sidebar .list-group-item .sidebar-menu-item-badge .badge {
    background: var(--orange-500);
    color: var(--white);
    font-size: 0.6875rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.ch-sidebar .card-body {
    padding: 16px 20px;
}

.ch-sidebar .card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-lighter);
    padding: 12px 20px;
}

/* =============================================================================
   14. WHMCS Bootstrap Overrides - Buttons
   ============================================================================= */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.875rem;
    padding: 8px 20px;
    border: none;
    line-height: 1.5;
}

.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    border: none;
    color: var(--white);
    box-shadow: 0 2px 10px var(--orange-glow);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: var(--white);
    box-shadow: 0 4px 20px var(--orange-glow);
    transform: translateY(-1px);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: 0 0 0 3px var(--orange-glow), 0 4px 20px var(--orange-glow);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    opacity: 0.6;
    transform: none;
}

.btn-default,
.btn-secondary {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--green);
    border: none;
    color: var(--white);
}

.btn-success:hover {
    background: #16a34a;
    color: var(--white);
}

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

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.btn-warning {
    background: var(--yellow);
    border: none;
    color: var(--text-dark);
}

.btn-info {
    background: var(--orange-500);
    border: none;
    color: var(--white);
}

.btn-info:hover {
    background: var(--orange-600);
    color: var(--white);
}

.btn-link {
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--orange-600);
    text-decoration: none;
}

.btn-outline-primary {
    border: 2px solid var(--orange-500);
    color: var(--orange-500);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

.btn-group .btn {
    border-radius: var(--radius-sm);
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

/* =============================================================================
   15. WHMCS Bootstrap Overrides - Cards
   ============================================================================= */

.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-lighter);
    padding: 18px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.card-header h3,
.card-header .card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-lighter);
    padding: 16px 24px;
}

/* =============================================================================
   16. WHMCS Bootstrap Overrides - Forms
   ============================================================================= */

.form-control {
    font-family: var(--font-body);
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-dark);
    background: var(--white);
    transition: all var(--transition);
    height: auto;
}

.form-control:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px var(--orange-glow);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control-label,
.form-label,
label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.input-group-text {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.input-group .form-control {
    border-radius: var(--radius-sm);
}

.input-group-merge .input-group-prepend .input-group-text {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-merge .form-control {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-merge .input-group-append .input-group-text,
.input-group-merge .input-group-append .btn {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.custom-select {
    font-family: var(--font-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-dark);
}

.custom-select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* =============================================================================
   17. WHMCS Bootstrap Overrides - Tables
   ============================================================================= */

.table {
    color: var(--text-body);
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--dark-800);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    border: none;
    white-space: nowrap;
}

.table thead th:first-child {
    border-top-left-radius: var(--radius-sm);
}

.table thead th:last-child {
    border-top-right-radius: var(--radius-sm);
}

.table tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-lighter);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(249, 115, 22, 0.02);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-sm);
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-sm);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: rgba(249, 115, 22, 0.04);
}

.table-bordered {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.table-bordered td,
.table-bordered th {
    border-color: var(--border-lighter);
}

/* Responsive table wrapper */
.table-responsive {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.table-responsive .table {
    margin-bottom: 0;
}

/* =============================================================================
   18. WHMCS Bootstrap Overrides - Alerts
   ============================================================================= */

.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    font-size: 0.875rem;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
    color: #a16207;
}

.alert-info {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
    color: var(--orange-600);
}

.alert a {
    font-weight: 600;
    text-decoration: underline;
}

.alert-success a { color: #15803d; }
.alert-danger a { color: #b91c1c; }
.alert-warning a { color: #a16207; }
.alert-info a { color: var(--orange-600); }

/* =============================================================================
   19. WHMCS Bootstrap Overrides - Badges
   ============================================================================= */

.badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-primary,
.badge-info {
    background: var(--orange-500);
    color: var(--white);
}

.badge-success {
    background: var(--green);
    color: var(--white);
}

.badge-danger {
    background: var(--red);
    color: var(--white);
}

.badge-warning {
    background: var(--yellow);
    color: var(--text-dark);
}

.badge-secondary {
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.badge-dark {
    background: var(--dark-800);
    color: var(--white);
}

/* Status badges used in tables */
.label,
span.label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.6875rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

/* =============================================================================
   20. Dashboard (.ch-dash-hero, .ch-dash-card)
   ============================================================================= */

/* ── Hero Banner with Stats ── */
.ch-dash-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 28px;
}

.ch-dash-hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 50%, var(--dark-600) 100%);
    z-index: 0;
}

.ch-dash-hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.ch-dash-hero__bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.ch-dash-hero__content {
    position: relative;
    z-index: 1;
    padding: 32px 36px;
}

.ch-dash-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-dash-hero__welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ch-dash-hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.ch-dash-hero__title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.ch-dash-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 6px;
}

.ch-dash-hero__meta span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-dash-hero__meta i {
    color: var(--orange-500);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

.ch-dash-hero__edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.ch-dash-hero__edit:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.ch-dash-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ch-dash-stat {
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 22px 20px;
    text-decoration: none;
    transition: all var(--transition);
    overflow: hidden;
}

.ch-dash-stat:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(249,115,22,0.3);
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.ch-dash-stat__number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.ch-dash-stat__label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.ch-dash-stat__icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.25rem;
    color: rgba(255,255,255,0.15);
    transition: all var(--transition);
}

.ch-dash-stat:hover .ch-dash-stat__icon {
    color: var(--orange-500);
    transform: scale(1.2);
}

/* ── Quick Actions (inside hero) ── */
.ch-dash-hero__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ch-dash-hero__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    color: rgba(255,255,255,0.55);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.ch-dash-hero__action-btn i {
    color: var(--orange-500);
    font-size: 0.875rem;
}

.ch-dash-hero__action-btn:hover {
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.25);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Dashboard Panel Cards ── */
.ch-dash-panels {
    margin-top: 0;
}

.ch-dash-card {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ch-dash-panels .row {
    margin-left: -14px;
    margin-right: -14px;
}

.ch-dash-panels .row > [class*="col-"] {
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 28px;
}

.ch-dash-panels .col-md-6 {
    display: flex;
    flex-direction: column;
}

.ch-dash-panels .col-md-6 .ch-dash-card {
    flex: 1;
}

.ch-dash-card:hover {
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.ch-dash-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: transparent;
}

.ch-dash-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-dash-card__title i {
    color: var(--orange-500);
    font-size: 1rem;
}

.ch-dash-card__badge {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange-500);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.ch-dash-card__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.ch-dash-card__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
    color: var(--white);
    text-decoration: none;
}

.ch-dash-card__body {
    padding: 20px 24px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    flex: 1;
}

.ch-dash-card__body a {
    color: var(--orange-500);
    font-weight: 500;
}

.ch-dash-card__body a:hover {
    color: var(--orange-400);
}

.ch-dash-card__list {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ch-dash-card__list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all var(--transition);
}

.ch-dash-card__list-item:last-child {
    border-bottom: none;
}

.ch-dash-card__list-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--orange-500);
    text-decoration: none;
}

.ch-dash-card__list-item i {
    color: rgba(255,255,255,0.3);
    width: 18px;
    text-align: center;
}

.ch-dash-card__list-item:hover i {
    color: var(--orange-500);
}

.ch-dash-card__footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

.ch-dash-card__footer a {
    color: var(--orange-500);
    font-weight: 500;
}

/* Colour accent (left border glow) */
.ch-dash-card--blue { border-left: 3px solid var(--blue); }
.ch-dash-card--green { border-left: 3px solid var(--green); }
.ch-dash-card--red { border-left: 3px solid var(--red); }
.ch-dash-card--gold { border-left: 3px solid var(--yellow); }

/* Hide panels not needed */
.ch-dash-card[menuItemName="Recent News"],
.ch-dash-card[menuItemName="Register a New Domain"] {
    display: none;
}

/* Spacing between colspan panels and the 2-col row */
.ch-dash-panels .col-12 .ch-dash-card:last-child {
    margin-bottom: 28px;
}

/* Dashboard page background */
body:has(.ch-dash-hero) #main-body.ch-main {
    background: var(--white);
}

/* ── Services Page ── */
body:has(.ch-services) #main-body.ch-main {
    background: var(--white);
}

.ch-services__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.ch-services__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-services__title i {
    color: var(--orange-500);
}

/* Service cards grid */
.ch-services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Individual service card */
.ch-service-card {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.ch-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange-500);
    opacity: 0;
    transition: opacity var(--transition);
}

.ch-service-card:hover {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.ch-service-card:hover::before {
    opacity: 1;
}

/* Status-colored top bar */
.ch-service-card--active::before { background: #4ade80; opacity: 1; }
.ch-service-card--pending::before { background: #facc15; opacity: 1; }
.ch-service-card--suspended::before { background: #fb923c; opacity: 1; }
.ch-service-card--terminated::before { background: #f87171; opacity: 1; }
.ch-service-card--cancelled::before { background: #9ca3af; opacity: 1; }

/* Card top row: icon + status */
.ch-service-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-service-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(249,115,22,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-500);
    font-size: 1.125rem;
}

.ch-service-card__status {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-service-card__status--active { background: rgba(34,197,94,.12); color: #4ade80; }
.ch-service-card__status--pending { background: rgba(250,204,21,.12); color: #facc15; }
.ch-service-card__status--suspended { background: rgba(249,115,22,.12); color: #fb923c; }
.ch-service-card__status--terminated { background: rgba(239,68,68,.12); color: #f87171; }
.ch-service-card__status--cancelled { background: rgba(156,163,175,.12); color: #9ca3af; }

/* Card info: product name + domain */
.ch-service-card__info {
    flex: 1;
}

.ch-service-card__group {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.ch-service-card__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin: 0 0 6px 0;
}

.ch-service-card__domain {
    font-size: 0.8125rem;
    color: var(--orange-500);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-service-card__domain i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.ch-service-card__domain--empty {
    color: rgba(255,255,255,0.2);
}

/* Card details row */
.ch-service-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ch-service-card__detail {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-service-card__detail i {
    font-size: 0.625rem;
    color: var(--orange-500);
    opacity: 0.7;
    width: 12px;
    text-align: center;
}

/* Card bottom row: price + due date */
.ch-service-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ch-service-card__price {
    display: flex;
    flex-direction: column;
}

.ch-service-card__amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.ch-service-card__cycle {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
    text-transform: capitalize;
}

.ch-service-card__due {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-service-card__due i {
    color: rgba(255,255,255,0.3);
}

/* Empty state */
.ch-services__empty {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 60px 24px;
    text-align: center;
}

.ch-services__empty i {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.ch-services__empty p {
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

/* ── Invoices table ── */
body:has(.ch-invoices) #main-body.ch-main {
    background: var(--white);
}

.ch-invoices {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ch-invoices__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-invoices__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-invoices__title i {
    color: var(--orange-500);
}

.ch-invoices__table-wrap {
    overflow-x: auto;
}

.ch-invoices__table {
    width: 100%;
    border-collapse: collapse;
}

.ch-invoices__table thead th {
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.5);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px;
    border: none;
    text-align: left;
}

.ch-invoices__table thead th:nth-child(3),
.ch-invoices__table thead th:nth-child(4),
.ch-invoices__table thead th:nth-child(5) {
    text-align: center;
}

.ch-invoices__table tbody tr {
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ch-invoices__table tbody tr:last-child {
    border-bottom: none;
}

.ch-invoices__table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.ch-invoices__table tbody td {
    padding: 16px 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    vertical-align: middle;
}

.ch-invoices__table tbody td:nth-child(3),
.ch-invoices__table tbody td:nth-child(4),
.ch-invoices__table tbody td:nth-child(5) {
    text-align: center;
}

.ch-invoices__num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white) !important;
}

.ch-invoices__amount {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white) !important;
}

.ch-invoices__status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-invoices__status--paid { background: rgba(34,197,94,.15); color: #22c55e; }
.ch-invoices__status--unpaid,
.ch-invoices__status--overdue { background: rgba(239,68,68,.15); color: #ef4444; }
.ch-invoices__status--cancelled { background: rgba(156,163,175,.12); color: #9ca3af; }
.ch-invoices__status--refunded { background: rgba(167,139,250,.12); color: #a78bfa; }
.ch-invoices__status--collections,
.ch-invoices__status--payment-pending { background: rgba(250,204,21,.12); color: #facc15; }

.ch-invoices__actions {
    text-align: center;
    width: 60px;
}

.ch-invoices__view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.ch-invoices__view-btn:hover {
    background: rgba(249,115,22,0.15);
    color: var(--orange-500);
}

/* ── PDF Modal ── */
.ch-pdf-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.ch-pdf-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ch-pdf-modal {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    width: 90vw;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.ch-pdf-overlay.active .ch-pdf-modal {
    transform: scale(1) translateY(0);
}

.ch-pdf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.ch-pdf-modal__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-pdf-modal__title i {
    color: var(--orange-500);
}

.ch-pdf-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-pdf-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--transition);
    text-decoration: none;
}

.ch-pdf-modal__btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

.ch-pdf-modal__btn--close:hover {
    background: rgba(239,68,68,0.15);
    color: #f87171;
}

.ch-pdf-modal__body {
    flex: 1;
    overflow: hidden;
}

.ch-pdf-modal__body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Empty state */
.ch-invoices__empty {
    padding: 60px 24px;
    text-align: center;
}

.ch-invoices__empty i {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.ch-invoices__empty p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9375rem;
    margin: 0;
}

/* ── Domains table ── */
body:has(.ch-domains) #main-body.ch-main {
    background: var(--white);
}

.ch-domains {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ch-domains__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-domains__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-domains__title i {
    color: var(--orange-500);
}

.ch-domains__table-wrap {
    overflow-x: auto;
}

.ch-domains__table {
    width: 100%;
    border-collapse: collapse;
}

.ch-domains__table thead th {
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.5);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px;
    border: none;
    text-align: left;
}

.ch-domains__table thead th:nth-child(2),
.ch-domains__table thead th:nth-child(3),
.ch-domains__table thead th:nth-child(4) {
    text-align: center;
}

.ch-domains__table tbody tr {
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ch-domains__table tbody tr:last-child {
    border-bottom: none;
}

.ch-domains__table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.ch-domains__table tbody td {
    padding: 16px 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    vertical-align: middle;
}

.ch-domains__table tbody td:nth-child(2),
.ch-domains__table tbody td:nth-child(3),
.ch-domains__table tbody td:nth-child(4) {
    text-align: center;
}

.ch-domains__name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white) !important;
}

.ch-domains__name small {
    display: block;
    font-weight: 400;
    font-family: var(--font-body);
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    margin-top: 4px;
}

.ch-domains__name small i {
    margin-right: 4px;
}

.ch-domains__status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-domains__status--active { background: rgba(34,197,94,.15); color: #22c55e; }
.ch-domains__status--pending,
.ch-domains__status--pendingtransfer { background: rgba(250,204,21,.15); color: #facc15; }
.ch-domains__status--expired { background: rgba(239,68,68,.15); color: #ef4444; }
.ch-domains__status--cancelled,
.ch-domains__status--transferred-away { background: rgba(156,163,175,.12); color: #9ca3af; }
.ch-domains__status--grace,
.ch-domains__status--redemption { background: rgba(249,115,22,.15); color: #fb923c; }

.ch-domains__empty {
    padding: 60px 24px;
    text-align: center;
}

.ch-domains__empty i {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.ch-domains__empty p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9375rem;
    margin: 0;
}

/* ── Tickets table ── */
body:has(.ch-tickets) #main-body.ch-main {
    background: var(--white);
}

.ch-tickets {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ch-tickets__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-tickets__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-tickets__title i {
    color: var(--orange-500);
}

.ch-tickets__table-wrap {
    overflow-x: auto;
}

.ch-tickets__table {
    width: 100%;
    border-collapse: collapse;
}

.ch-tickets__table thead th {
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.5);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 24px;
    border: none;
    text-align: left;
}

.ch-tickets__table thead th:nth-child(3),
.ch-tickets__table thead th:nth-child(4) {
    text-align: center;
}

.ch-tickets__table tbody tr {
    cursor: pointer;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ch-tickets__table tbody tr:last-child {
    border-bottom: none;
}

.ch-tickets__table tbody tr:hover {
    background: rgba(255,255,255,0.04);
}

.ch-tickets__table tbody td {
    padding: 16px 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    vertical-align: middle;
}

.ch-tickets__table tbody td:nth-child(3),
.ch-tickets__table tbody td:nth-child(4) {
    text-align: center;
}

.ch-tickets__dept {
    font-weight: 600;
    color: var(--white) !important;
}

.ch-tickets__tid {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--orange-500);
    margin-right: 8px;
    font-size: 0.8125rem;
}

.ch-tickets__unread {
    font-weight: 700;
    color: var(--white);
}

.ch-tickets__date {
    font-size: 0.8125rem;
}

.ch-tickets__status {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ch-tickets__status--open { background: rgba(34,197,94,.15); color: #22c55e; }
.ch-tickets__status--answered { background: rgba(56,189,248,.15); color: #38bdf8; }
.ch-tickets__status--customer-reply,
.ch-tickets__status--customerreply { background: rgba(249,115,22,.15); color: #fb923c; }
.ch-tickets__status--closed { background: rgba(156,163,175,.12); color: #9ca3af; }
.ch-tickets__status--on-hold,
.ch-tickets__status--onhold { background: rgba(250,204,21,.15); color: #facc15; }
.ch-tickets__status--in-progress,
.ch-tickets__status--inprogress { background: rgba(167,139,250,.15); color: #a78bfa; }

.ch-tickets__empty {
    padding: 60px 24px;
    text-align: center;
}

.ch-tickets__empty i {
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.ch-tickets__empty p {
    color: rgba(255,255,255,0.4);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* ── Submit Ticket ── */
body:has(.ch-submit-ticket) #main-body.ch-main {
    background: var(--white);
}

.ch-submit-ticket {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.ch-submit-ticket__header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ch-submit-ticket__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-submit-ticket__title i {
    color: var(--orange-500);
}

.ch-submit-ticket__desc {
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    margin: 8px 0 0 0;
}

/* Step 1: Department list */
.ch-submit-ticket__depts {
    padding: 8px;
}

.ch-submit-ticket__dept {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all var(--transition);
}

.ch-submit-ticket__dept:hover {
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: var(--white);
}

.ch-submit-ticket__dept-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(249,115,22,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-500);
    font-size: 1rem;
    flex-shrink: 0;
}

.ch-submit-ticket__dept-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin: 0;
}

.ch-submit-ticket__dept-desc {
    color: rgba(255,255,255,0.4);
    font-size: 0.8125rem;
    margin: 4px 0 0 0;
}

.ch-submit-ticket__dept-arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.2);
    transition: all var(--transition);
}

.ch-submit-ticket__dept:hover .ch-submit-ticket__dept-arrow {
    color: var(--orange-500);
    transform: translateX(4px);
}

/* Step 2: Form body */
.ch-submit-ticket__body {
    padding: 0 28px 28px;
}

.ch-submit-ticket__body label {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-submit-ticket__body .form-control {
    background: var(--dark-900);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}

.ch-submit-ticket__body .form-control:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
    background: var(--dark-900);
    color: var(--white);
}

.ch-submit-ticket__body .form-control.disabled,
.ch-submit-ticket__body .form-control:disabled {
    opacity: 0.5;
}

.ch-submit-ticket__body select.form-control {
    appearance: auto;
}

.ch-submit-ticket__body textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

.ch-submit-ticket__body .text-muted {
    color: rgba(255,255,255,0.35) !important;
}

.ch-submit-ticket__body .alert {
    border-radius: var(--radius-md);
}

/* ── Sections ── */
.ch-submit-ticket__section {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ch-submit-ticket__section:first-child {
    border-top: none;
    padding-top: 8px;
}

.ch-submit-ticket__section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ch-submit-ticket__section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(249,115,22,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange-500);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.ch-submit-ticket__section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--white);
    margin: 0;
}

/* ── Field icons ── */
.ch-submit-ticket__field-icon {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    width: 14px;
    text-align: center;
}

/* ── Upload zone ── */
.ch-submit-ticket__upload-zone {
    margin-top: 20px;
    padding: 24px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.02);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ch-submit-ticket__upload-zone:hover {
    border-color: rgba(249,115,22,0.25);
    background: rgba(249,115,22,0.02);
}

.ch-submit-ticket__upload-zone > label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ch-submit-ticket__upload-zone .custom-file {
    flex: 1;
}

.ch-submit-ticket__upload-zone .custom-file-label {
    background: var(--dark-800);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 10px 14px;
    height: auto;
    line-height: 1.5;
    font-size: 0.8125rem;
    transition: border-color 0.2s ease;
}

.ch-submit-ticket__upload-zone .custom-file-label::after {
    display: none;
}

.ch-submit-ticket__upload-zone .input-group {
    border-radius: var(--radius-sm);
}

.ch-submit-ticket__upload-zone .input-group-append .btn {
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    color: var(--orange-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ch-submit-ticket__upload-zone .input-group-append .btn:hover {
    background: rgba(249,115,22,0.18);
    border-color: rgba(249,115,22,0.35);
    color: var(--orange-400);
}

.ch-submit-ticket__upload-zone .input-group-append .btn i {
    margin-right: 4px;
}

.ch-submit-ticket__upload-info {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ch-submit-ticket__upload-info i {
    color: rgba(255,255,255,0.18);
    font-size: 0.6875rem;
}

/* ── Markdown editor dark theme ── */
.ch-submit-ticket__body .md-editor {
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    background: var(--dark-900) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ch-submit-ticket__body div.md-editor.active {
    border-color: rgba(249,115,22,0.4) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2), 0 0 0 3px rgba(249,115,22,0.08) !important;
}

/* Toolbar */
.ch-submit-ticket__body .md-editor > .md-header {
    background: rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 8px 12px !important;
    margin: 0 !important;
}

.ch-submit-ticket__body .md-editor > .md-header .btn-group {
    margin-right: 4px;
}

.ch-submit-ticket__body .md-editor > .md-header .btn-group + .btn-group {
    padding-left: 4px;
    border-left: 1px solid rgba(255,255,255,0.06);
}

.ch-submit-ticket__body .md-editor > .md-header .btn {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.4) !important;
    border-radius: 6px !important;
    padding: 6px 9px !important;
    margin: 0 1px !important;
    font-size: 0.8125rem !important;
    transition: all 0.2s ease;
    line-height: 1 !important;
    box-shadow: none !important;
}

.ch-submit-ticket__body .md-editor > .md-header .btn:hover {
    background: rgba(255,255,255,0.08) !important;
    color: var(--white) !important;
}

.ch-submit-ticket__body .md-editor > .md-header .btn.active,
.ch-submit-ticket__body .md-editor > .md-header .btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    color: var(--white) !important;
    box-shadow: 0 2px 8px rgba(249,115,22,0.3) !important;
}

.ch-submit-ticket__body .md-editor > .md-header .btn-primary:hover {
    box-shadow: 0 4px 12px rgba(249,115,22,0.4) !important;
}

/* Fullscreen control */
.ch-submit-ticket__body .md-editor .md-controls {
    padding: 3px !important;
}

.ch-submit-ticket__body .md-editor .md-controls .md-control {
    color: rgba(255,255,255,0.25) !important;
    transition: color 0.2s ease;
}

.ch-submit-ticket__body .md-editor .md-controls .md-control:hover {
    color: rgba(255,255,255,0.6) !important;
}

/* Textarea */
.ch-submit-ticket__body .md-editor > textarea.markdown-editor,
.ch-submit-ticket__body .md-editor > textarea.md-input {
    background: var(--dark-900) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.85) !important;
    padding: 20px !important;
    font-size: 0.875rem !important;
    font-family: var(--font-body) !important;
    line-height: 1.7 !important;
    resize: vertical !important;
}

.ch-submit-ticket__body .md-editor > textarea:focus {
    background: var(--dark-900) !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

/* Preview */
.ch-submit-ticket__body .md-editor > .md-preview {
    background: var(--dark-900) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.8) !important;
    padding: 20px !important;
    font-size: 0.875rem !important;
    font-family: var(--font-body) !important;
    line-height: 1.7 !important;
}

/* Footer / Status bar */
.ch-submit-ticket__body .md-editor .md-footer {
    background: rgba(255,255,255,0.02) !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    padding: 0 !important;
}

.ch-submit-ticket__body .markdown-editor-status {
    background: transparent;
    color: rgba(255,255,255,0.25);
    padding: 6px 16px;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
}

/* ── Actions ── */
.ch-submit-ticket__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}

.ch-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ch-btn--ghost:hover {
    background: rgba(255,255,255,0.06);
    color: var(--white);
    text-decoration: none;
}

/* ── Submit Ticket Responsive ── */
@media (max-width: 768px) {
    .ch-submit-ticket {
        border-radius: var(--radius-lg);
        margin: 0 -8px;
    }

    .ch-submit-ticket__header {
        padding: 20px 20px;
    }

    .ch-submit-ticket__title {
        font-size: 1rem;
    }

    .ch-submit-ticket__desc {
        font-size: 0.8125rem;
    }

    .ch-submit-ticket__body {
        padding: 0 20px 20px;
    }

    .ch-submit-ticket__section {
        padding: 20px 0;
    }

    .ch-submit-ticket__section-header {
        margin-bottom: 16px;
    }

    .ch-submit-ticket__section-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .ch-submit-ticket__section-title {
        font-size: 0.875rem;
    }

    /* Stack department/priority selects */
    .ch-submit-ticket__body .row > [class*="col-md-4"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Editor */
    .ch-submit-ticket__body .md-editor > .md-header {
        padding: 6px 8px !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
    }

    .ch-submit-ticket__body .md-editor > .md-header .btn-group {
        flex-shrink: 0;
    }

    .ch-submit-ticket__body .md-editor > textarea.markdown-editor,
    .ch-submit-ticket__body .md-editor > textarea.md-input {
        padding: 14px !important;
        min-height: 180px !important;
        font-size: 16px !important;
    }

    /* Upload zone */
    .ch-submit-ticket__upload-zone {
        padding: 16px;
    }

    .ch-submit-ticket__upload-zone .input-group {
        flex-wrap: wrap;
    }

    .ch-submit-ticket__upload-zone .custom-file {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .ch-submit-ticket__upload-zone .custom-file-label {
        border-radius: var(--radius-sm) !important;
        margin-bottom: 8px;
    }

    .ch-submit-ticket__upload-zone .input-group-append {
        flex: 0 0 100%;
    }

    .ch-submit-ticket__upload-zone .input-group-append .btn {
        border-radius: var(--radius-sm) !important;
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Actions stack */
    .ch-submit-ticket__actions {
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
    }

    .ch-submit-ticket__actions .ch-btn,
    .ch-submit-ticket__actions .ch-btn--ghost {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Step 1: Departments */
    .ch-submit-ticket__dept {
        padding: 16px;
        gap: 12px;
    }

    .ch-submit-ticket__dept-icon {
        width: 38px;
        height: 38px;
    }

    .ch-submit-ticket__dept-name {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .ch-submit-ticket {
        border-radius: var(--radius-md);
        margin: 0 -12px;
        border-left: none;
        border-right: none;
    }

    .ch-submit-ticket__header {
        padding: 16px;
    }

    .ch-submit-ticket__body {
        padding: 0 16px 16px;
    }

    .ch-submit-ticket__section {
        padding: 16px 0;
    }

    .ch-submit-ticket__upload-zone {
        padding: 14px;
        margin-top: 14px;
    }

    .ch-submit-ticket__upload-info {
        flex-wrap: wrap;
        font-size: 0.6875rem;
    }

    /* Toolbar: hide text, keep icons */
    .ch-submit-ticket__body .md-editor > .md-header .btn {
        padding: 6px 7px !important;
        font-size: 0.75rem !important;
    }
}

/* Stat tile variant (some pages) */
.stat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    border-left: 4px solid var(--orange-500);
    transition: box-shadow var(--transition);
}

.stat-tile:hover {
    box-shadow: var(--shadow-md);
}

/* Legacy tile colours (used by other pages) */
.bg-color-blue { background: var(--blue); }
.bg-color-green { background: var(--green); }
.bg-color-red { background: var(--red); }
.bg-color-gold { background: var(--yellow); }

/* =============================================================================
   21. Login Page (Dark Fullscreen + White Card)
   ============================================================================= */

/* ── Force fullscreen: break out of WHMCS containers ── */
body:has(.ch-login) {
    background: var(--dark-950);
}

body:has(.ch-login) .ch-breadcrumb-wrap {
    display: none;
}

body:has(.ch-login) #main-body.ch-main {
    background: var(--dark-950);
    padding: 0;
    margin: 0;
    min-height: 0;
}

body:has(.ch-login) #main-body .container {
    max-width: 100%;
    padding: 0;
}

body:has(.ch-login) #main-body .row {
    margin: 0;
}

body:has(.ch-login) #main-body .primary-content {
    padding: 0;
    max-width: 100%;
    flex: 0 0 100%;
}

/* ── Full-viewport login wrapper ── */
.ch-login {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    overflow: hidden;
    background: var(--dark-950);
}

/* ── Background layers ── */
.ch-login__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Dot grid */
.ch-login__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* Glow orbs */
.ch-login__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.ch-login__glow--1 {
    width: 700px;
    height: 700px;
    background: var(--orange-500);
    opacity: 0.08;
    top: -300px;
    right: -200px;
    animation: loginGlow1 10s ease-in-out infinite alternate;
}

.ch-login__glow--2 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    opacity: 0.05;
    bottom: -200px;
    left: -150px;
    animation: loginGlow2 12s ease-in-out infinite alternate;
}

.ch-login__glow--3 {
    width: 350px;
    height: 350px;
    background: var(--orange-400);
    opacity: 0.04;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: loginGlow3 8s ease-in-out infinite alternate;
}

/* Decorative rings */
.ch-login__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(249, 115, 22, 0.08);
}

.ch-login__ring--1 {
    width: 400px;
    height: 400px;
    top: -80px;
    left: -120px;
    animation: loginRing 20s linear infinite;
}

.ch-login__ring--2 {
    width: 300px;
    height: 300px;
    bottom: -60px;
    right: -80px;
    border-color: rgba(99, 102, 241, 0.06);
    animation: loginRing 25s linear infinite reverse;
}

@keyframes loginGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 50px) scale(1.2); }
}

@keyframes loginGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -40px) scale(1.15); }
}

@keyframes loginGlow3 {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.02; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.05; }
}

@keyframes loginRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Container ── */
.ch-login__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
}

/* ── White Card with gradient effects ── */
.ch-login__card {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 44px 36px 36px;
    overflow: visible;
    animation: loginCardIn 0.7s var(--ease-out) both;
    animation-delay: 0.1s;
}

/* Top gradient accent bar */
.ch-login__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--orange-400),
        var(--orange-500),
        var(--orange-600),
        #e11d48
    );
    background-size: 200% 100%;
    animation: loginGradientSlide 4s ease-in-out infinite alternate;
    border-radius: 24px 24px 0 0;
}

/* Soft gradient overlay on card */
.ch-login__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg,
        rgba(249, 115, 22, 0.03) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    border-radius: 24px 24px 0 0;
}

@keyframes loginGradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ── */
.ch-login__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 32px;
}

.ch-login__title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: loginFadeUp 0.5s var(--ease-out) 0.35s both;
}

.ch-login__subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    opacity: 0;
    animation: loginFadeUp 0.5s var(--ease-out) 0.45s both;
}

@keyframes loginFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Flash messages ── */
.ch-login .alert {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
    font-size: 14px;
}

.ch-login .alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.ch-login .alert-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

/* ── Form ── */
.ch-login__form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.ch-login__field {
    margin-bottom: 20px;
}

.ch-login__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ch-login__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ch-login__label-row .ch-login__label {
    margin-bottom: 0;
}

.ch-login__forgot {
    font-size: 13px;
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.ch-login__forgot:hover {
    color: var(--orange-600);
    text-decoration: none;
}

/* ── Inputs ── */
.ch-login__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ch-login__input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
    z-index: 2;
    transition: color var(--transition);
    pointer-events: none;
    line-height: 1;
    width: 16px;
    text-align: center;
}

.ch-login__input {
    width: 100%;
    padding: 14px 16px 14px 44px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 12px !important;
    font-size: 14px;
    color: var(--text-dark) !important;
    background: var(--bg-secondary) !important;
    transition: all var(--transition);
    height: auto !important;
    font-family: var(--font-body);
    text-indent: 0;
}

/* Phone input (intl-tel-input) override */
.ch-login__input-wrap .intl-tel-input,
.ch-login__input-wrap .iti {
    width: 100%;
}

.ch-login__field:has(.ch-login__input--phone) {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}
.ch-login__input-wrap--phone {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

.ch-login__input--phone {
    padding-left: 16px !important;
}

.ch-login__input-wrap .intl-tel-input .ch-login__input,
.ch-login__input-wrap .iti .ch-login__input {
    padding-left: 90px !important;
}

/* Flag container inside our styled inputs */
.ch-login__input-wrap .intl-tel-input .flag-container,
.ch-login__input-wrap .iti .iti__flag-container {
    height: 100%;
}

.ch-login__input-wrap .intl-tel-input .selected-flag,
.ch-login__input-wrap .iti .iti__selected-flag {
    height: 100%;
    padding: 0 22px 0 14px;
    background: transparent;
    border-right: 1px solid var(--border-light);
    border-radius: 12px 0 0 12px;
    transition: background 0.15s ease;
}
.ch-login__input-wrap .intl-tel-input .selected-flag:hover,
.ch-login__input-wrap .iti .iti__selected-flag:hover {
    background: rgba(249, 115, 22, 0.04);
}
.ch-login__input-wrap .intl-tel-input .selected-flag .iti-arrow,
.ch-login__input-wrap .iti .iti__selected-flag .iti__arrow {
    border: none !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #94a3b8 !important;
    transform: rotate(45deg) !important;
    margin-top: -4px !important;
    top: 50% !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.ch-login__input-wrap .intl-tel-input .selected-flag .iti-arrow.up,
.ch-login__input-wrap .iti .iti__selected-flag .iti__arrow--up {
    transform: rotate(-135deg) !important;
    margin-top: 0 !important;
    border-color: var(--orange-500) !important;
}

.ch-login__input-wrap .intl-tel-input .selected-dial-code,
.ch-login__input-wrap .iti .iti__selected-dial-code {
    color: var(--text-body);
    font-size: 14px;
    font-family: var(--font-body);
    margin-left: 6px;
}

/* Phone input in checkout / cart forms (no .ch-login__input-wrap wrapper) */
.ch-login__field .intl-tel-input,
.ch-login__field .iti {
    width: 100%;
}

.ch-login__field .intl-tel-input .ch-login__input,
.ch-login__field .iti .ch-login__input {
    padding-left: 90px !important;
}

.ch-login__field .intl-tel-input .flag-container,
.ch-login__field .iti .iti__flag-container {
    height: 100%;
}

.ch-login__field .intl-tel-input .selected-flag,
.ch-login__field .iti .iti__selected-flag {
    height: 100%;
    padding: 0 22px 0 14px;
    background: transparent;
    border-right: 1px solid var(--border-light);
    border-radius: 12px 0 0 12px;
    transition: background 0.15s ease;
}

.ch-login__field .intl-tel-input .selected-flag:hover,
.ch-login__field .iti .iti__selected-flag:hover {
    background: rgba(249, 115, 22, 0.04);
}

.ch-login__field .intl-tel-input .selected-flag .iti-arrow,
.ch-login__field .iti .iti__selected-flag .iti__arrow {
    border: none !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #94a3b8 !important;
    transform: rotate(45deg) !important;
    margin-top: -4px !important;
    top: 50% !important;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ch-login__field .intl-tel-input .selected-flag .iti-arrow.up,
.ch-login__field .iti .iti__selected-flag .iti__arrow--up {
    transform: rotate(-135deg) !important;
    margin-top: 0 !important;
    border-color: var(--orange-500) !important;
}

.ch-login__field .intl-tel-input .selected-dial-code,
.ch-login__field .iti .iti__selected-dial-code {
    color: var(--text-body);
    font-size: 14px;
    font-family: var(--font-body);
    margin-left: 6px;
}

/* intl-tel-input country dropdown list */
.intl-tel-input .country-list {
    z-index: 9999 !important;
    background: var(--white) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06) !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    margin-top: 4px !important;
    padding: 6px 0 !important;
    width: 300px !important;
    -webkit-overflow-scrolling: touch;
}
.intl-tel-input .country-list::-webkit-scrollbar {
    width: 6px;
}
.intl-tel-input .country-list::-webkit-scrollbar-track {
    background: transparent;
}
.intl-tel-input .country-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.intl-tel-input .country-list .country {
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-body);
    transition: background 0.15s ease;
    cursor: pointer;
}
.intl-tel-input .country-list .country:hover,
.intl-tel-input .country-list .country.highlight {
    background: var(--orange-50, #fff7ed) !important;
}
.intl-tel-input .country-list .country .flag-box {
    flex-shrink: 0;
    width: 22px;
}
.intl-tel-input .country-list .country .country-name {
    flex: 1;
    color: var(--text-heading);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.intl-tel-input .country-list .country .dial-code {
    color: var(--orange-500);
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.intl-tel-input .country-list .divider {
    border-bottom: 1px solid var(--border-light) !important;
    margin: 4px 0 !important;
    padding: 0 !important;
}
/* Mobile fullscreen dropdown */
.iti-mobile .intl-tel-input.iti-container {
    z-index: 1100 !important;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.iti-mobile .intl-tel-input .country-list {
    border-radius: 16px !important;
    max-height: 100% !important;
    width: 100% !important;
}
.iti-mobile .intl-tel-input .country-list .country {
    padding: 12px 16px !important;
}

.ch-login__input::placeholder {
    color: var(--text-light);
}

.ch-login__input:hover {
    border-color: #cbd5e1 !important;
    background: var(--white) !important;
}

.ch-login__input:focus {
    outline: none;
    border-color: var(--orange-500) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1), 0 0 20px rgba(249, 115, 22, 0.04) !important;
    background: var(--white) !important;
}

.ch-login__input-wrap:focus-within .ch-login__input-icon {
    color: var(--orange-500);
}

/* ── Password reveal ── */
.ch-login__reveal {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: var(--text-light);
    padding: 8px 12px;
    cursor: pointer;
    z-index: 2;
    transition: color var(--transition);
}

.ch-login__reveal:hover {
    color: var(--text-body);
}

/* ── Captcha ── */
.ch-login__captcha {
    margin-bottom: 22px;
}

/* ── Actions row ── */
.ch-login__actions {
    margin-bottom: 24px;
}

.ch-login__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    cursor: pointer;
    margin: 0;
    user-select: none;
}

.ch-login__checkbox input[type="checkbox"] {
    display: none;
}

.ch-login__checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    background: var(--bg-secondary);
}

.ch-login__checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s var(--ease-out);
    margin-top: -1px;
}

.ch-login__checkbox input:checked + .ch-login__checkmark {
    background: var(--orange-500);
    border-color: var(--orange-500);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.ch-login__checkbox input:checked + .ch-login__checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* ── Submit button ── */
.ch-login__submit {
    width: 100%;
    padding: 15px 24px !important;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.ch-login__submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.ch-login__submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(249, 115, 22, 0.35),
        0 0 50px rgba(249, 115, 22, 0.1);
    color: var(--white);
}

.ch-login__submit:hover::before {
    opacity: 1;
}

.ch-login__submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

.ch-login__submit i {
    font-size: 13px;
    transition: transform var(--transition);
}

.ch-login__submit:hover i {
    transform: translateX(3px);
}

/* ── Footer (register link) ── */
.ch-login__footer {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-lighter);
}

.ch-login__footer p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.ch-login__register-link {
    color: var(--orange-500);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    margin-left: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ch-login__register-link:hover {
    color: var(--orange-600);
    text-decoration: none;
}

.ch-login__register-link i {
    font-size: 11px;
    transition: transform var(--transition);
}

.ch-login__register-link:hover i {
    transform: translateX(3px);
}

/* ── Secured text below card ── */
.ch-login__secured {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    animation: loginFadeUp 0.5s var(--ease-out) 0.8s both;
}

.ch-login__secured i {
    color: rgba(34, 197, 94, 0.5);
    font-size: 11px;
}

/* ── Override WHMCS form wrapper ── */
.ch-login .login-form {
    display: contents;
    padding: 0;
}

/* ── Icon circle in header ── */
.ch-login__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(249,115,22,0.05));
    border: 1px solid rgba(249, 115, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--orange-500);
    font-size: 20px;
    opacity: 0;
    animation: loginFadeUp 0.5s var(--ease-out) 0.25s both;
}

.ch-login__icon--success {
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
    border-color: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

/* ── Back link arrow flip ── */
.ch-login__register-link i.fa-arrow-left {
    transition: transform var(--transition);
}

.ch-login__register-link:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

/* ── Register page (wider card) ── */
.ch-login--register {
    padding: 40px 20px;
}

.ch-login__container--wide {
    max-width: 640px;
}

/* Section dividers */
.ch-register__section {
    position: relative;
    margin-bottom: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-lighter);
}

.ch-register__section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ch-register__section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-register__section-title i {
    color: var(--orange-500);
    font-size: 15px;
    width: 20px;
    text-align: center;
}

/* Select styling */
.ch-login__select {
    padding-left: 44px !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

/* Generate password btn */
.ch-register__gen-pw {
    border-radius: 8px !important;
    border: 1px solid var(--border-light) !important;
    background: var(--bg-secondary) !important;
    color: var(--text-body) !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ch-register__gen-pw:hover {
    border-color: var(--orange-500) !important;
    color: var(--orange-500) !important;
}

/* Field help text */
.ch-register__field-help {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* TOS */
.ch-register__tos {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.ch-register__tos-link {
    color: var(--orange-500);
    font-weight: 500;
    text-decoration: none;
}

.ch-register__tos-link:hover {
    color: var(--orange-600);
    text-decoration: underline;
}

/* Register alert at top */
.ch-register__alert .alert {
    border-radius: var(--radius-md);
}

/* Fix inputs inside register .row */
.ch-login--register .row {
    margin-left: -8px;
    margin-right: -8px;
}

.ch-login--register .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
}

/* Override custom fields inputs (only those NOT already styled with ch-login__input) */
.ch-register__section .form-control:not(.ch-login__input),
.ch-register__section select.form-control:not(.ch-login__input) {
    padding: 14px 16px !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 12px !important;
    font-size: 14px;
    color: var(--text-dark) !important;
    background: var(--bg-secondary) !important;
    transition: all var(--transition);
    height: auto !important;
    font-family: var(--font-body);
}

.ch-register__section .form-control:not(.ch-login__input):focus,
.ch-register__section select.form-control:not(.ch-login__input):focus {
    border-color: var(--orange-500) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
    background: var(--white) !important;
}

/* =============================================================================
   22. Dropdowns (Bootstrap)
   ============================================================================= */

.dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    margin-top: 8px;
    animation: dropdownFade 0.2s var(--ease-out);
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    transition: all var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-secondary);
    color: var(--orange-500);
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange-500);
}

.dropdown-divider {
    border-color: var(--border-lighter);
    margin: 4px 0;
}

/* =============================================================================
   23. Modals
   ============================================================================= */

.modal-content {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-lighter);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

.modal-header .close {
    color: var(--text-muted);
    opacity: 0.6;
    font-size: 1.25rem;
    transition: opacity var(--transition);
}

.modal-header .close:hover {
    opacity: 1;
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-lighter);
    padding: 16px 24px;
}

.modal-backdrop.show {
    opacity: 0.4;
}

/* Localisation modal */
.modal-localisation .modal-content {
    background: var(--dark-900);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-localisation .modal-body {
    color: var(--white);
}

.modal-localisation h5 {
    color: var(--white);
}

.modal-localisation .item-selector a {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    padding: 10px 16px;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    transition: all var(--transition);
}

.modal-localisation .item-selector a:hover,
.modal-localisation .item-selector a.active {
    border-color: var(--orange-500);
    color: var(--orange-500);
    background: rgba(249, 115, 22, 0.08);
}

.modal-localisation .modal-footer {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* =============================================================================
   24. Pagination
   ============================================================================= */

.pagination {
    gap: 4px;
}

.page-item .page-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-body);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    transition: all var(--transition);
    margin: 0;
}

.page-item .page-link:hover {
    color: var(--orange-500);
    background: rgba(249, 115, 22, 0.06);
    border-color: var(--orange-500);
}

.page-item.active .page-link {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--bg-secondary);
}

/* =============================================================================
   25. Nav Tabs & Pills
   ============================================================================= */

.nav-tabs {
    border-bottom: 2px solid var(--border-lighter);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    border: none;
    padding: 12px 20px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--orange-500);
    border-color: transparent;
    border-bottom-color: var(--orange-400);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--orange-500);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--orange-500);
}

.nav-pills .nav-link {
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    padding: 8px 16px;
    transition: all var(--transition);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--orange-500);
    color: var(--white);
}

/* =============================================================================
   26. Progress Bar
   ============================================================================= */

.progress {
    border-radius: var(--radius-full);
    background: var(--border-lighter);
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    border-radius: var(--radius-full);
    transition: width 0.6s var(--ease-out);
}

/* =============================================================================
   27. Tooltips & Popovers
   ============================================================================= */

.tooltip-inner {
    background: var(--dark-800);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.popover {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-body);
}

.popover-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-lighter);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.popover-body {
    padding: 12px 16px;
    font-size: 0.8125rem;
}

/* =============================================================================
   28. Domain Search & Cart
   ============================================================================= */

.domain-checker-container {
    padding: 40px 0;
}

.domain-checker-container .form-control {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-light);
}

.domain-checker-container .form-control:focus {
    border-color: var(--orange-500);
}

.domain-checker-container .btn-primary {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 14px 28px;
    font-size: 1rem;
}

/* Shopping cart */
#order-standard_cart .panel,
.order-summary .card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* =============================================================================
   29. Support Tickets
   ============================================================================= */

.ticket-reply {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.ticket-reply .ticket-reply-header {
    background: var(--bg-secondary);
    padding: 12px 20px;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border-lighter);
}

.ticket-reply .ticket-reply-body {
    padding: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.ticket-reply.staff .ticket-reply-header {
    background: rgba(249, 115, 22, 0.06);
    border-bottom-color: rgba(249, 115, 22, 0.1);
}

/* =============================================================================
   30. Knowledgebase
   ============================================================================= */

.kb-article-list .list-group-item {
    border-color: var(--border-lighter);
    padding: 16px 20px;
    transition: all var(--transition);
}

.kb-article-list .list-group-item:hover {
    background: var(--bg-secondary);
}

.kb-article-list .list-group-item a {
    font-weight: 600;
    color: var(--text-dark);
}

.kb-article-list .list-group-item a:hover {
    color: var(--orange-500);
}

/* =============================================================================
   31. Invoices
   ============================================================================= */

.invoice-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* =============================================================================
   32. Active Products & Services
   ============================================================================= */

.service-list .list-group-item,
.list-group-item[menuitemname] {
    border-color: var(--border-lighter);
    transition: all var(--transition);
}

.service-list .list-group-item:hover,
.list-group-item[menuitemname]:hover {
    background: var(--bg-secondary);
}

/* =============================================================================
   32b. Product Detail Page (.ch-pd)
   ============================================================================= */

/* Page background */
body:has(.ch-pd) #main-body.ch-main {
    background: var(--white);
}

/* ── Unpaid invoice alert ── */
.ch-pd__alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.ch-pd__alert--warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}
.ch-pd__alert--danger {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.ch-pd__alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ch-pd__alert-content i {
    font-size: 1.1rem;
}

/* ── Hero Card ── */
.ch-pd__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--dark-800), var(--dark-900));
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.ch-pd__hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ch-pd__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.ch-pd__icon--active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}
.ch-pd__icon--pending {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange-500);
}
.ch-pd__icon--suspended {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}
.ch-pd__icon--terminated,
.ch-pd__icon--cancelled {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-light);
}
.ch-pd__icon--fraud {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}
.ch-pd__group {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2px;
}
.ch-pd__name {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px;
}
.ch-pd__domain {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.ch-pd__domain i {
    margin-right: 4px;
    font-size: 0.75rem;
}
.ch-pd__hero-right {
    flex-shrink: 0;
}
.ch-pd__status {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ch-pd__status--active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.ch-pd__status--pending {
    background: rgba(249, 115, 22, 0.15);
    color: var(--orange-400);
}
.ch-pd__status--suspended {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.ch-pd__status--terminated,
.ch-pd__status--cancelled {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}
.ch-pd__status--fraud {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ── Info Grid (Billing + Actions) ── */
.ch-pd__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.ch-pd__card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ch-pd__card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}
.ch-pd__card-header i {
    color: var(--orange-500);
    font-size: 0.875rem;
}
.ch-pd__card-body {
    padding: 20px 24px;
}

/* Info rows */
.ch-pd__info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-lighter);
}
.ch-pd__info-row:last-child {
    border-bottom: none;
}
.ch-pd__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}
.ch-pd__value {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
}
.ch-pd__value--highlight {
    color: var(--orange-500);
    font-size: 1rem;
}
.ch-pd__value--danger {
    color: var(--red);
}

/* ── Action Buttons ── */
.ch-pd__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ch-pd__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.ch-pd__action-btn i {
    font-size: 0.8125rem;
}
.ch-pd__action-btn--upgrade {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
    color: var(--white);
    box-shadow: 0 4px 16px var(--orange-glow);
}
.ch-pd__action-btn--upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--orange-glow);
    color: var(--white);
    text-decoration: none;
}
.ch-pd__action-btn--renew {
    background: rgba(59, 130, 246, 0.08);
    color: var(--blue);
    border-color: rgba(59, 130, 246, 0.2);
}
.ch-pd__action-btn--renew:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    color: var(--blue);
    text-decoration: none;
}
.ch-pd__action-btn--cancel {
    background: rgba(239, 68, 68, 0.06);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.15);
}
.ch-pd__action-btn--cancel:hover {
    background: rgba(239, 68, 68, 0.12);
    transform: translateY(-2px);
    color: var(--red);
    text-decoration: none;
}
.ch-pd__action-btn--disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.ch-pd__no-actions {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}
.ch-pd__no-actions i {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 10px;
    display: block;
}
.ch-pd__no-actions p {
    margin: 0;
    font-size: 0.875rem;
}

/* ── Detail Tabs Card ── */
.ch-pd__tabs-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}
.ch-pd__tabs.nav-tabs {
    border-bottom: 1px solid var(--border-light);
    padding: 0 16px;
    background: var(--bg-secondary);
    flex-wrap: nowrap;
    overflow-x: auto;
}
.ch-pd__tab.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    white-space: nowrap;
    transition: all var(--transition);
}
.ch-pd__tab.nav-link:hover {
    color: var(--orange-500);
    background: transparent;
}
.ch-pd__tab.nav-link.active {
    color: var(--orange-500);
    background: transparent;
    border-bottom-color: var(--orange-500);
}
.ch-pd__tab.nav-link i {
    font-size: 0.75rem;
}
.ch-pd__tab-content {
    padding: 24px;
}

/* ── Detail Grid (domain info, config options, etc.) ── */
.ch-pd__detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ch-pd__detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-lighter);
}
.ch-pd__detail-row:last-child {
    border-bottom: none;
}
.ch-pd__detail-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}
.ch-pd__detail-label i {
    color: var(--orange-500);
    width: 16px;
    text-align: center;
    font-size: 0.75rem;
}
.ch-pd__detail-value {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
}
.ch-pd__detail-value code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--orange-600);
}
.ch-pd__ns-ip {
    font-size: 0.75rem;
    color: var(--text-light);
}
.ch-pd__detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-lighter);
}

/* Badges */
.ch-pd__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.ch-pd__badge--success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}
.ch-pd__badge--muted {
    background: var(--bg-secondary);
    color: var(--text-light);
}

/* SSL badge */
.ch-pd__ssl-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}
.ch-pd__ssl-badge--active {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16a34a;
}
.ch-pd__ssl-badge--inactive {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #a16207;
}

/* ── Resource Usage Meters ── */
.ch-pd__usage-meters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.ch-pd__meter {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-lighter);
}
.ch-pd__meter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 14px;
}
.ch-pd__meter-header i {
    color: var(--orange-500);
    font-size: 0.8125rem;
}
.ch-pd__meter-bar {
    height: 8px;
    background: var(--border-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
.ch-pd__meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
    border-radius: 4px;
    transition: width 0.6s var(--ease-out);
}
.ch-pd__meter-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.ch-pd__usage-updated {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 16px 0 0;
}
.ch-pd__usage-updated i {
    margin-right: 4px;
}

/* ── Sections (Downloads, Addons, Change Password) ── */
.ch-pd__section {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}
.ch-pd__section-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
}
.ch-pd__section-title i {
    color: var(--orange-500);
    margin-right: 8px;
}

/* Downloads */
.ch-pd__downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ch-pd__download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-lighter);
}
.ch-pd__download-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px;
}
.ch-pd__download-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Addons */
.ch-pd__addons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ch-pd__addon-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.ch-pd__addon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-lighter);
}
.ch-pd__addon-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}
.ch-pd__addon-body {
    padding: 16px 20px;
}
.ch-pd__addon-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-lighter);
    background: var(--bg-secondary);
}

/* ── Change Password Form ── */
.ch-pd__form {
    max-width: 600px;
}
.ch-pd__form-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ch-pd__form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 170px;
    padding-top: 10px;
}
.ch-pd__form-input-wrap {
    flex: 1;
}
.ch-pd__form-input {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: border-color var(--transition);
}
.ch-pd__form-input:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px var(--orange-glow);
}
.ch-pd__form-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    margin-left: 182px;
}

/* ── Hook output ── */
.ch-pd__hook-output {
    margin-bottom: 20px;
}

/* ── Module client area ── */
.ch-pd .module-client-area {
    padding: 15px 0 0;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .ch-pd__hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .ch-pd__hero-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ch-pd__icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }
    .ch-pd__name {
        font-size: 1.125rem;
    }
    .ch-pd__grid {
        grid-template-columns: 1fr;
    }
    .ch-pd__card-body {
        padding: 16px;
    }
    .ch-pd__usage-meters {
        grid-template-columns: 1fr;
    }
    .ch-pd__tabs.nav-tabs {
        padding: 0 8px;
    }
    .ch-pd__tab.nav-link {
        padding: 12px 12px;
        font-size: 0.75rem;
    }
    .ch-pd__detail-row {
        flex-direction: column;
        gap: 4px;
    }
    .ch-pd__detail-value {
        text-align: left;
    }
    .ch-pd__form-group {
        flex-direction: column;
        gap: 6px;
    }
    .ch-pd__form-label {
        min-width: auto;
        padding-top: 0;
    }
    .ch-pd__form-actions {
        margin-left: 0;
    }
    .ch-pd__section {
        padding: 20px;
    }
    .ch-pd__detail-actions {
        flex-direction: column;
    }
}

/* Hide original default card wrapper from WHMCS */
.ch-pd > .tab-content > .tab-pane > .card {
    border: none;
    background: transparent;
    box-shadow: none;
}
.ch-pd > .tab-content > .tab-pane > .card > .card-body {
    padding: 0;
}

/* Hide responsive-tabs connector */
.ch-pd .responsive-tabs-sm-connector {
    display: none;
}

/* =============================================================================
   33. Footer (.ch-footer)
   ============================================================================= */

.ch-footer {
    background: var(--dark-950);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.ch-footer__top {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-500), var(--orange-400), transparent);
    opacity: 0.4;
}

.ch-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 80px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ch-footer__brand {
    display: flex;
    flex-direction: column;
}

.ch-footer__logo {
    display: inline-block;
    margin-bottom: 16px;
    text-decoration: none;
}

.ch-footer__logo .ch-logo {
    font-size: 28px;
    color: var(--white);
}

.ch-footer__desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    max-width: 280px;
}

.ch-footer__social {
    display: flex;
    gap: 12px;
}

.ch-footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    transition: var(--transition);
}

.ch-footer__social a:hover {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
    transform: translateY(-3px);
}

.ch-footer__col h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ch-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ch-footer__col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s var(--ease-out);
    display: inline-block;
}

.ch-footer__col ul li a:hover {
    color: var(--orange-400);
    padding-left: 6px;
}

.ch-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-footer__contact i {
    color: var(--orange-500);
    font-size: 14px;
    width: 16px;
    flex-shrink: 0;
}

/* Footer locale selector */
.ch-footer__locale {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}

.ch-footer__locale-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ch-footer__locale-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.ch-footer__bottom {
    padding: 24px 0;
    text-align: center;
}

.ch-footer__bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* =============================================================================
   34. Return to Admin Button (Floating)
   ============================================================================= */

a.btn-return-to-admin {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    background: var(--orange-500);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    border: none;
    transition: all var(--transition);
}

a.btn-return-to-admin:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

/* =============================================================================
   35. Full-page Overlay Spinner
   ============================================================================= */

#fullpage-overlay {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#fullpage-overlay .msg {
    font-family: var(--font-body);
    color: var(--text-body);
    font-size: 0.9375rem;
}

/* =============================================================================
   36. Miscellaneous WHMCS Overrides
   ============================================================================= */

/* Primary colour overrides */
.text-primary {
    color: var(--orange-500) !important;
}

.bg-primary {
    background-color: var(--orange-500) !important;
}

.border-primary {
    border-color: var(--orange-500) !important;
}

/* WHMCS specific colour classes */
.primary-color,
a.primary-color {
    color: var(--orange-500);
}

.bg-color-primary {
    background-color: var(--orange-500);
}

/* Panel to card migration */
.panel {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--bg-card);
}

.panel-heading {
    background: var(--white);
    border-bottom: 1px solid var(--border-lighter);
    padding: 16px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.panel-heading .panel-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.panel-body {
    padding: 24px;
}

.panel-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-lighter);
    padding: 16px 24px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Well */
.well {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: none;
}

/* List groups */
.list-group-item {
    border-color: var(--border-lighter);
    padding: 12px 20px;
    font-size: 0.875rem;
    color: var(--text-body);
}

.list-group-item.active {
    background: var(--orange-500);
    border-color: var(--orange-500);
}

/* Close button */
.close {
    font-weight: 300;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.close:hover {
    opacity: 1;
}

/* Breadcrumb original override */
.breadcrumb {
    background: transparent;
    border-radius: 0;
    font-size: 0.8125rem;
}

/* Custom checkboxes */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--orange-500);
    border-color: var(--orange-500);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-check-input:checked {
    accent-color: var(--orange-500);
}

/* WHMCS twenty-one specific overrides */
.main-content > h2:first-child,
.primary-content > h2:first-child {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 24px;
}

/* Homepage specific */
#main-body.ch-main .tiles {
    margin-bottom: 28px;
}

/* Announcement styles */
.announcement-single .article-date {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Client area cards overrides */
.client-area-card,
.service-list-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Order form */
.order-form .form-control {
    border-radius: var(--radius-sm);
}

/* Security page */
.security-container .card {
    border-radius: var(--radius-lg);
}

/* Affiliates */
.affiliate-link-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

/* W-hidden WHMCS utility */
.w-hidden {
    display: none !important;
}

/* =============================================================================
   37. Scroll Reveal Animation (.ch-reveal)
   ============================================================================= */

.ch-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.ch-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.ch-reveal.ch-reveal--delay-1 { transition-delay: 0.1s; }
.ch-reveal.ch-reveal--delay-2 { transition-delay: 0.2s; }
.ch-reveal.ch-reveal--delay-3 { transition-delay: 0.3s; }
.ch-reveal.ch-reveal--delay-4 { transition-delay: 0.4s; }

/* =============================================================================
   38. Responsive Design - Tablet (1024px)
   ============================================================================= */

@media (max-width: 1024px) {
    .ch-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ch-nav__menu {
        gap: 0;
    }

    .ch-nav__link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .ch-dash-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ch-dash-hero__actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .ch-dash-hero__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* =============================================================================
   39. Responsive Design - Tablet Small / Mobile (768px)
   ============================================================================= */

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .ch-nav__menu {
        display: none;
    }

    .ch-nav__actions .ch-btn {
        display: none;
    }

    .ch-nav__toggle {
        display: flex;
    }

    /* Client area sub-nav pills */
    .ch-client-nav {
        padding: 10px 0;
    }

    .ch-client-nav__list {
        justify-content: flex-start;
        gap: 6px;
        padding: 4px 16px;
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 24px), transparent 100%);
    }

    .ch-client-nav__link {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .ch-client-nav__link i {
        font-size: 0.75rem;
    }

    .ch-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .ch-footer__social {
        justify-content: center;
    }

    .ch-footer__desc {
        max-width: 100%;
    }

    .ch-footer__contact li {
        justify-content: center;
    }

    /* Cards */
    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 14px 16px;
    }

    /* Login & Register */
    .ch-login {
        padding: 40px 20px;
    }

    .ch-login__card {
        padding: 36px 28px 32px;
    }

    .ch-login__title {
        font-size: 24px;
    }

    .ch-login__ring--1,
    .ch-login__ring--2 {
        display: none;
    }

    .ch-login__container--wide {
        max-width: 580px;
    }

    .ch-register__section-title {
        font-size: 15px;
    }

    /* Tables */
    .table thead th {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .table tbody td {
        padding: 10px 12px;
        font-size: 0.8125rem;
    }

    /* Dashboard */
    .ch-dash-hero__content {
        padding: 24px 20px;
    }

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

    .ch-dash-stat {
        padding: 16px;
    }

    .ch-dash-stat__number {
        font-size: 1.5rem;
    }

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

    .ch-dash-hero__actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ch-dash-hero__action-btn {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .ch-dash-card__header {
        padding: 14px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ch-dash-card__body {
        padding: 16px 18px;
    }

    /* Sidebar - hide on mobile */
    .ch-sidebar {
        display: none;
    }

    /* Breadcrumb spacing */
    .ch-breadcrumb-wrap {
        padding-top: calc(var(--nav-height) + 12px);
    }

    /* Main content */
    .ch-main {
        padding-bottom: 32px;
    }

    h1, .h1 { font-size: 1.625rem; }
    h2, .h2 { font-size: 1.375rem; }
    h3, .h3 { font-size: 1.125rem; }
}

/* =============================================================================
   40. Responsive Design - Small Mobile (480px)
   ============================================================================= */

@media (max-width: 480px) {
    .ch-container {
        padding: 0 16px;
    }

    .ch-nav__logo .ch-logo {
        font-size: 1.125rem;
    }

    .ch-btn--sm {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .ch-nav__cart {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    /* Client nav pills - small mobile */
    .ch-client-nav__list {
        gap: 5px;
        padding: 4px 12px;
    }

    .ch-client-nav__link {
        padding: 7px 12px;
        font-size: 0.6875rem;
    }

    /* Mobile menu small */
    .ch-nav__mobile.active {
        padding: 12px 16px 20px;
    }

    .ch-nav__mobile ul li a {
        padding: 12px 4px;
        font-size: 0.875rem;
    }

    /* Cards & content */
    .card {
        border-radius: var(--radius-md);
    }

    .card-body {
        padding: 14px;
    }

    /* Login */
    .ch-login {
        padding: 32px 16px;
        min-height: calc(100vh - var(--nav-height));
    }

    .ch-login__card {
        padding: 32px 22px 28px;
        border-radius: 20px;
    }

    .ch-login__accent {
        left: 22px;
        right: 22px;
    }

    .ch-login__title {
        font-size: 22px;
    }

    .ch-login__subtitle {
        font-size: 13px;
    }

    .ch-login__header {
        margin-bottom: 26px;
    }

    .ch-login__logo {
        margin-bottom: 20px;
    }

    .ch-login__logo img {
        height: 28px;
    }

    .ch-login__input {
        padding: 12px 14px 12px 42px !important;
        font-size: 14px;
    }

    .ch-login__submit {
        padding: 14px 20px !important;
        font-size: 14px;
    }

    .ch-login__glow--1 {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }

    .ch-login__glow--2 {
        width: 250px;
        height: 250px;
        filter: blur(80px);
    }

    .ch-login__glow--3 {
        display: none;
    }

    /* Register mobile */
    .ch-login--register {
        padding: 24px 12px;
    }

    .ch-login__container--wide {
        max-width: 100%;
    }

    .ch-login--register .ch-login__card {
        padding: 28px 18px 24px;
    }

    .ch-register__section {
        padding-bottom: 20px;
        margin-bottom: 4px;
    }

    .ch-register__section-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .ch-login--register .row > [class*="col-sm-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ch-login__grid {
        background-size: 24px 24px;
    }

    /* Footer */
    .ch-footer__grid {
        gap: 24px;
    }

    .ch-footer__bottom p {
        font-size: 0.75rem;
    }

    /* Dashboard */
    .ch-dash-hero__welcome {
        margin-bottom: 20px;
    }

    .ch-dash-hero__title {
        font-size: 1.25rem;
    }

    .ch-dash-hero__stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ch-dash-stat {
        padding: 14px;
    }

    .ch-dash-stat__number {
        font-size: 1.375rem;
    }

    .ch-dash-stat__label {
        font-size: 0.625rem;
        letter-spacing: 0.5px;
    }

    .ch-dash-stat__icon {
        font-size: 1rem;
        top: 12px;
        right: 12px;
    }

    .ch-dash-hero__actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .ch-dash-hero__action-btn {
        padding: 10px;
        font-size: 0.6875rem;
        gap: 6px;
    }

    .ch-dash-hero__edit {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    /* Alerts */
    .alert {
        padding: 12px 16px;
        font-size: 0.8125rem;
    }

    /* Table scroll hint */
    .table-responsive {
        border-radius: var(--radius-sm);
    }
}

/* =============================================================================
   41. Print Styles
   ============================================================================= */

@media print {
    .ch-nav,
    .ch-footer,
    .ch-breadcrumb-wrap,
    .ch-sidebar,
    .btn-return-to-admin,
    #fullpage-overlay {
        display: none !important;
    }

    .ch-main {
        padding-top: 0;
        min-height: auto;
    }

    body {
        background: var(--white);
        color: #000;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}


/* ===================================================================
   25. ORDER FORM - Cart, Pricing Cards, Checkout
   =================================================================== */

/* Cart wrapper */
.ch-cart {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ── Category Navigation ── */
.ch-categories {
    margin-bottom: 44px;
}

.ch-categories__bar {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ch-categories__item {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.ch-categories__item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(249, 115, 22, 0.03));
    transition: opacity 0.3s ease;
}

.ch-categories__item:hover {
    color: var(--text-dark);
    text-decoration: none;
}

.ch-categories__item:hover::before {
    opacity: 1;
}

.ch-categories__item--active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange-500), #e2620a);
    border-color: transparent;
    box-shadow:
        0 4px 18px rgba(249, 115, 22, 0.3),
        0 1px 3px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ch-categories__item--active::before {
    display: none;
}

.ch-categories__item--active:hover {
    color: #fff;
    box-shadow:
        0 6px 24px rgba(249, 115, 22, 0.4),
        0 2px 6px rgba(249, 115, 22, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ch-categories__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ch-categories__item:hover .ch-categories__icon {
    color: var(--orange-500);
    border-color: rgba(249, 115, 22, 0.25);
    background: rgba(249, 115, 22, 0.1);
}

.ch-categories__item--active .ch-categories__icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
}

.ch-categories__item--active:hover .ch-categories__icon {
    color: #fff;
}

.ch-categories__name {
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

.ch-categories__item--active .ch-categories__name {
    font-weight: 600;
}

@media (max-width: 700px) {
    .ch-categories__bar {
        flex-direction: column;
        gap: 4px;
    }
    .ch-categories__item {
        padding: 12px 16px;
        font-size: 13px;
    }
    .ch-categories__icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

.ch-cart__header {
    text-align: center;
    margin-bottom: 48px;
}

.ch-cart__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.ch-cart__subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* ── Pricing Cards Grid ── */
.ch-pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.ch-pricing--3col {
    grid-template-columns: repeat(3, 1fr);
}

.ch-pricing__card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--ease-out);
}

.ch-pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.ch-pricing__card--featured {
    border: 2px solid var(--orange-500);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.12);
}

.ch-pricing__card--featured:hover {
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.18);
    border-color: var(--orange-500);
}

.ch-pricing__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.ch-pricing__head {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-lighter);
}

.ch-pricing__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.ch-pricing__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ch-pricing__from {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.ch-pricing__price {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.ch-pricing__card--featured .ch-pricing__price {
    color: var(--orange-500);
}

.ch-pricing__cycle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.ch-pricing__setup {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.ch-pricing__tag {
    display: inline-block;
    background: var(--orange-500);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.ch-pricing__desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Features list */
.ch-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 28px;
}

.ch-pricing__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

.ch-pricing__features li i {
    color: var(--orange-500);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

.ch-pricing__features li strong {
    color: var(--text-dark);
}

/* CTA button */
.ch-pricing__footer {
    margin-top: auto;
    text-align: center;
}

.ch-pricing__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    border: 2px solid var(--orange-500);
    color: var(--orange-500);
    background: transparent;
}

.ch-pricing__cta:hover {
    background: var(--orange-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--orange-glow);
    text-decoration: none;
}

.ch-pricing__cta--featured {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 20px var(--orange-glow);
}

.ch-pricing__cta--featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--orange-glow);
    color: var(--white);
}

.ch-pricing__qty {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
}

/* Group features */
.ch-cart__group-features {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 16px;
}

.ch-cart__group-features-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-cart__group-features-title i {
    color: var(--orange-500);
}

.ch-cart__group-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ch-cart__group-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-body);
}

.ch-cart__group-feature i {
    color: var(--orange-500);
    font-size: 14px;
}

/* ── Configure Product ── */
.ch-cart__panel {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.ch-cart__panel-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-lighter);
}

.ch-cart__panel-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-cart__panel-title i {
    color: var(--orange-500);
    font-size: 15px;
}

.ch-cart__panel-body {
    padding: 24px;
}

/* ── Cart Summary Panel ── */
.ch-cart__summary {
    background: var(--white);
    border: 2px solid var(--orange-500);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 140px;
}

.ch-cart__summary-head {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    padding: 16px 24px;
    color: var(--white);
}

.ch-cart__summary-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-cart__summary-body {
    padding: 24px;
}

.ch-cart__summary-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-lighter);
}

/* ── View Cart Table ── */
.ch-cart__table {
    width: 100%;
    border-collapse: collapse;
}

.ch-cart__table thead th {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-light);
}

.ch-cart__table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-lighter);
    font-size: 14px;
    color: var(--text-body);
    vertical-align: top;
}

.ch-cart__table tbody tr:last-child td {
    border-bottom: none;
}

.ch-cart__table .item-title {
    font-weight: 600;
    color: var(--text-dark);
}

.ch-cart__table .item-group {
    font-size: 12px;
    color: var(--text-muted);
}

.ch-cart__table .item-domain {
    font-size: 13px;
    color: var(--orange-500);
}

.ch-cart__table .total td {
    font-weight: 700;
    color: var(--text-dark);
    border-top: 2px solid var(--border-light);
    font-size: 16px;
}

.ch-cart__table .recurring td {
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Promo Code ── */
.ch-cart__promo {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.ch-cart__promo-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.ch-cart__promo .input-group {
    display: flex;
    gap: 8px;
}

.ch-cart__promo .form-control {
    flex: 1;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--font-body);
}

.ch-cart__promo .btn {
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ── Checkout Sections ── */
.ch-checkout__section {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.ch-checkout__section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-lighter);
}

.ch-checkout__section-title i {
    color: var(--orange-500);
    font-size: 18px;
}

/* ── Complete Page ── */
.ch-complete {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.ch-complete__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.25);
}

.ch-complete__icon i {
    color: var(--white);
    font-size: 36px;
}

.ch-complete__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.ch-complete__text {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

.ch-complete__order-num {
    display: inline-block;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange-600);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 32px;
}

/* ── Error Page ── */
.ch-error {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.ch-error__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
}

.ch-error__icon i {
    color: var(--white);
    font-size: 36px;
}

/* ── Cart action buttons ── */
.ch-cart__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.ch-cart__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px var(--orange-glow);
    text-decoration: none;
}

.ch-cart__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--orange-glow);
    color: var(--white);
    text-decoration: none;
}

.ch-cart__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.ch-cart__btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-dark);
    text-decoration: none;
}

.ch-cart__btn-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 8px;
    text-decoration: none;
}

.ch-cart__btn-link:hover {
    color: var(--orange-500);
    text-decoration: none;
}

.ch-cart__btn-link--danger:hover {
    color: var(--red);
}

/* ── Domain search ── */
.ch-domain-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ch-domain-search__input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.ch-domain-search__input:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.ch-domain-search__btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.ch-domain-search__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--orange-glow);
}

/* ── Bootstrap 3 compatibility (WHMCS order form JS uses these) ── */
.hidden {
    display: none !important;
}

/* ── Domain selection (configureproductdomain.tpl) ── */
.domain-input-group {
    display: none;
    margin: 10px 0;
}

/* Domain option radio cards */
.ch-domain-option {
    display: block;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.ch-domain-option input[type="radio"] {
    display: none;
}

.ch-domain-option__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--white);
}

.ch-domain-option__card:hover {
    border-color: #cbd5e1;
    background: var(--gray-50);
}

.ch-domain-option__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange-500);
    font-size: 14px;
    flex-shrink: 0;
}

.ch-domain-option__text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Active state via JS class */
.domain-selection-options .option-selected .ch-domain-option__card {
    border-color: var(--orange-500);
    background: rgba(249, 115, 22, 0.03);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.domain-selection-options .option-selected .ch-domain-option__icon {
    background: var(--orange-500);
    color: var(--white);
}

/* Domain input addon text (www., http://, .) */
.ch-domain-addon-text {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--gray-50);
    border: 1.5px solid var(--border-light);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    color: var(--text-light);
    font-size: 14px;
    font-family: var(--font-body);
    white-space: nowrap;
}

/* TLD dropdown button */
.ch-domain-tld-btn {
    border-radius: 0 12px 12px 0 !important;
    border: 1.5px solid var(--border-light) !important;
    border-left: 0 !important;
    background: var(--gray-50) !important;
    color: var(--text-dark) !important;
    height: 48px;
    padding: 0 14px !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ch-domain-tld-btn:hover,
.ch-domain-tld-btn:focus {
    background: var(--border-lighter) !important;
    border-color: #cbd5e1 !important;
}

/* Domain result alerts */
.ch-domain-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.ch-domain-result i {
    font-size: 20px;
    flex-shrink: 0;
}

.ch-domain-result--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.ch-domain-result--success i {
    color: #22c55e;
}

.ch-domain-result--error {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.ch-domain-result--error i {
    color: #ef4444;
}

.ch-domain-result--warning {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #a16207;
}

.ch-domain-result--warning i {
    color: #eab308;
}

/* Override Bootstrap alert styles inside domain results */
.ch-domain-result.alert {
    border: none;
    margin-bottom: 12px;
}

/* Domain lookup visibility defaults */
.domain-checker-result-headline .domain-unavailable,
.domain-checker-result-headline .domain-available,
.domain-checker-result-headline .domain-contact-support.headline,
.domain-checker-result-headline .transfer-eligible,
.domain-checker-result-headline .transfer-not-eligible,
.domain-checker-result-headline .domain-invalid,
.domain-checker-result-headline .domain-error {
    display: none;
}

/* Spotlight TLD states */
.spotlight-tld .domain-lookup-result .unavailable,
.spotlight-tld .domain-lookup-result .invalid,
.spotlight-tld .domain-lookup-result .available,
.spotlight-tld .domain-lookup-result .btn-add-to-cart,
.spotlight-tld .domain-lookup-result .domain-contact-support {
    display: none;
}

/* Add-to-cart button states */
.btn-add-to-cart .added,
.btn-add-to-cart .unavailable {
    display: none;
}

/* Domain suggestion row template */
.domain-suggestion .promo {
    display: none;
}
.domain-suggestion .added,
.domain-suggestion .unavailable {
    display: none;
}

/* ── Radio cards (domain options, payment methods) ── */
.ch-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    margin-bottom: 8px;
}

.ch-radio-card:hover {
    border-color: #cbd5e1;
}

.ch-radio-card.active,
.ch-radio-card:has(input:checked) {
    border-color: var(--orange-500);
    background: rgba(249, 115, 22, 0.03);
}

.ch-radio-card input[type="radio"] {
    accent-color: var(--orange-500);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ch-radio-card__label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.ch-radio-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Configure Product Card ── */
.ch-conf-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

/* Header: icon + name | price right */
.ch-conf-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-lighter);
}

.ch-conf-card__product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ch-conf-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.ch-conf-card__name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.ch-conf-card__group {
    font-size: 13px;
    color: var(--orange-500);
    font-weight: 600;
}

.ch-conf-card__price-area {
    text-align: right;
    flex-shrink: 0;
}

.ch-conf-card__price-main {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.ch-conf-card__domain {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--orange-500);
    font-weight: 500;
    margin-top: 4px;
    background: rgba(249, 115, 22, 0.06);
    padding: 2px 10px;
    border-radius: 20px;
}

/* Body: plan info left + billing cycle right */
.ch-conf-card__body {
    display: flex;
    gap: 32px;
    padding: 24px 28px;
    align-items: flex-start;
}

.ch-conf-card__plan {
    flex: 1;
    min-width: 0;
}

.ch-conf-card__plan-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.ch-conf-card__plan-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.ch-conf-card__cycle {
    flex-shrink: 0;
    width: 220px;
}

.ch-conf-card__cycle-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.ch-conf-card__select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f97316' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-conf-card__select:focus {
    outline: none;
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.ch-conf-card__select:hover {
    border-color: var(--orange-300);
}

/* Free domain notice */
.ch-conf-card__freedomain {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(249, 115, 22, 0.04);
    border-top: 1px solid var(--border-lighter);
    font-size: 13px;
    color: var(--text-body);
}

.ch-conf-card__freedomain i {
    color: var(--orange-500);
    font-size: 15px;
    flex-shrink: 0;
}

.ch-conf-card__freedomain strong {
    color: var(--orange-600);
}

@media (max-width: 768px) {
    .ch-conf-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }
    .ch-conf-card__price-area {
        text-align: left;
    }
    .ch-conf-card__body {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .ch-conf-card__cycle {
        width: 100%;
    }
}

/* ── Order Stepper Timeline ── */
.ch-stepper {
    margin-bottom: 36px;
}

.ch-stepper__track {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.ch-stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.ch-stepper__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--text-muted);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ch-stepper__label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.ch-stepper__line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin-top: 20px;
    min-width: 40px;
    max-width: 120px;
    transition: background 0.3s ease;
}

/* Active step */
.ch-stepper__step--active .ch-stepper__icon {
    background: var(--orange-500);
    color: var(--white);
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.ch-stepper__step--active .ch-stepper__label {
    color: var(--orange-600);
    font-weight: 600;
}

/* Done step */
.ch-stepper__step--done .ch-stepper__icon {
    background: var(--orange-500);
    color: var(--white);
    border-color: var(--orange-500);
    font-size: 13px;
}

.ch-stepper__step--done .ch-stepper__label {
    color: var(--text-body);
}

.ch-stepper__line--done {
    background: var(--orange-500);
}

/* Stepper on dark backgrounds */
.ch-login .ch-stepper {
    margin-bottom: 28px;
}

.ch-login .ch-stepper__icon {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

.ch-login .ch-stepper__label {
    color: rgba(255, 255, 255, 0.5);
}

.ch-login .ch-stepper__line {
    background: rgba(255, 255, 255, 0.15);
}

.ch-login .ch-stepper__step--active .ch-stepper__icon {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

.ch-login .ch-stepper__step--active .ch-stepper__label {
    color: var(--white);
}

.ch-login .ch-stepper__step--done .ch-stepper__icon {
    background: var(--orange-500);
    border-color: var(--orange-500);
    color: var(--white);
}

.ch-login .ch-stepper__step--done .ch-stepper__label {
    color: rgba(255, 255, 255, 0.7);
}

.ch-login .ch-stepper__line--done {
    background: var(--orange-500);
}

@media (max-width: 576px) {
    .ch-stepper__icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .ch-stepper__label {
        font-size: 10px;
        max-width: 60px;
    }
    .ch-stepper__line {
        margin-top: 16px;
        min-width: 20px;
    }
}

/* ── Billing Cycle Pills ── */
.ch-billing-cycle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ch-billing-cycle__option {
    position: relative;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.ch-billing-cycle__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ch-billing-cycle__label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    background: var(--white);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.ch-billing-cycle__option:hover .ch-billing-cycle__label {
    border-color: var(--orange-300);
    background: rgba(249, 115, 22, 0.02);
}

.ch-billing-cycle__option--active .ch-billing-cycle__label {
    border-color: var(--orange-500);
    background: rgba(249, 115, 22, 0.05);
    color: var(--orange-600);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

@media (max-width: 576px) {
    .ch-billing-cycle {
        grid-template-columns: 1fr;
    }
}

/* ── Domain Options (vertical radio list) ── */
.ch-domain-options {
    display: flex;
    flex-direction: column;
    padding: 8px 28px;
}

.ch-domain-options__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ch-domain-options__item:hover .ch-domain-options__label {
    color: var(--text-dark);
}

.ch-domain-options__check {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.ch-domain-options__check input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ch-domain-options__box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-light);
    background: var(--white);
    transition: all 0.2s ease;
    position: relative;
}

.ch-domain-options__box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Selected state (via iCheck .option-selected class) */
.ch-domain-options__item.option-selected .ch-domain-options__box {
    background: var(--orange-500);
    border-color: var(--orange-500);
}

.ch-domain-options__item.option-selected .ch-domain-options__box::after {
    opacity: 1;
}

.ch-domain-options__item.option-selected .ch-domain-options__label {
    color: var(--text-dark);
    font-weight: 600;
}

.ch-domain-options__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.ch-domain-options__divider {
    height: 1px;
    background: var(--border-lighter);
}

/* ── Domain Form Panels ── */
.ch-domain-form {
    padding: 24px 28px;
}

.ch-domain-form__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.ch-domain-form__subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 18px;
    line-height: 1.5;
}

/* ── Domain Search Bar ── */
.ch-domain-search {
    display: flex;
    align-items: center;
    background: var(--gray-50);
    border: 1.5px solid var(--border-light);
    border-radius: 30px;
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding-right: 2px;
}

.ch-domain-search:focus-within {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.ch-domain-search__prefix {
    padding: 0 0 0 22px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
}

.ch-domain-search__input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 14px 10px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background: transparent;
}

.ch-domain-search__input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.ch-domain-search__dot {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 2px;
}

.ch-domain-search__tld-wrap {
    position: relative;
    flex-shrink: 0;
}

.ch-domain-search__tld-btn {
    border: none !important;
    border-left: 1px solid var(--border-lighter) !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 14px 14px !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    cursor: pointer;
    transition: background 0.2s ease;
    min-width: 75px;
    text-align: center;
}

.ch-domain-search__tld-btn:hover,
.ch-domain-search__tld-btn:focus {
    background: rgba(249, 115, 22, 0.04) !important;
}

.ch-domain-search__tld-btn .caret {
    color: var(--orange-500);
    margin-left: 4px;
}

.ch-domain-search__tld-wrap .dropdown-menu {
    border-radius: 10px;
    border: 1px solid var(--border-lighter);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    min-width: 80px;
}

.ch-domain-search__tld-wrap .dropdown-menu li a {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-body);
    transition: all 0.15s ease;
}

.ch-domain-search__tld-wrap .dropdown-menu li a:hover {
    background: rgba(249, 115, 22, 0.06);
    color: var(--orange-600);
}

.ch-domain-search__btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.ch-domain-search__btn:hover {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.ch-domain-search__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Domain Results ── */
.ch-domain-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    margin: 0;
}

.ch-domain-result i {
    font-size: 20px;
    flex-shrink: 0;
}

.ch-domain-result--success {
    background: rgba(34, 197, 94, 0.08);
    color: var(--text-dark);
}

.ch-domain-result--success i {
    color: #22c55e;
}

.ch-domain-result--error {
    background: rgba(239, 68, 68, 0.08);
    color: var(--text-dark);
}

.ch-domain-result--error i {
    color: #ef4444;
}

.ch-domain-result--warning {
    background: rgba(234, 179, 8, 0.08);
    color: var(--text-dark);
}

.ch-domain-result--warning i {
    color: #eab308;
}

/* ── Free domain tooltip banner ── */
.ch-domain-freedomain {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), rgba(249, 115, 22, 0.02));
    border-top: 1px solid var(--border-lighter);
}

.ch-domain-freedomain__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--orange-500);
    font-size: 14px;
}

.ch-domain-freedomain__text {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.ch-domain-freedomain__text strong {
    color: var(--orange-600);
}

/* ── Domain Options Responsive ── */
@media (max-width: 768px) {
    .ch-domain-options {
        padding: 4px 16px;
    }
    .ch-domain-options__item {
        padding: 14px 0;
    }
    .ch-domain-options__label {
        font-size: 13px;
    }
    .ch-domain-form {
        padding: 20px 16px;
    }
    .ch-domain-search {
        flex-wrap: wrap;
    }
    .ch-domain-search__prefix {
        padding: 12px 0 12px 14px;
    }
    .ch-domain-search__btn {
        width: 44px;
        height: 44px;
        margin: 6px auto;
    }
    .ch-domain-freedomain {
        padding: 14px 16px;
    }
}

/* ── Modals (override Bootstrap) ── */
.ch-cart .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.ch-cart .modal-header {
    border-bottom: 1px solid var(--border-lighter);
    padding: 20px 24px;
}

.ch-cart .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.ch-cart .modal-body {
    padding: 24px;
    font-size: 14px;
    color: var(--text-body);
}

.ch-cart .modal-footer {
    border-top: 1px solid var(--border-lighter);
    padding: 16px 24px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ch-pricing {
        grid-template-columns: repeat(2, 1fr);
    }
    .ch-cart__group-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ch-pricing {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .ch-cart__title {
        font-size: 28px;
    }
    .ch-pricing__price {
        font-size: 30px;
    }
    .ch-cart__group-features-grid {
        grid-template-columns: 1fr;
    }
    .ch-cart__actions {
        flex-direction: column;
    }
    .ch-cart__btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ch-cart {
        padding: 24px 16px 40px;
    }
    .ch-cart__header {
        margin-bottom: 32px;
    }
    .ch-cart__title {
        font-size: 24px;
    }
    .ch-pricing__card {
        padding: 24px 20px;
    }
    .ch-checkout__section {
        padding: 24px 20px;
    }
}
