/* ============================================
   ENTERPRISE IPTV HOMEPAGE - Dark Theme
   For hostx-child template (Bootstrap 5)
   v2.0 - Enhanced with better visuals
   ============================================ */

:root {
    --iptv-primary: #6c5ce7;
    --iptv-primary-light: #a29bfe;
    --iptv-accent: #00cec9;
    --iptv-accent-2: #fd79a8;
    --iptv-dark: #0a0a1a;
    --iptv-dark-2: #0f0f28;
    --iptv-dark-3: #161640;
    --iptv-dark-card: rgba(255,255,255,0.04);
    --iptv-border: rgba(255,255,255,0.08);
    --iptv-text: #e0e0e0;
    --iptv-text-muted: #8a8a9a;
    --iptv-gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
    --iptv-gradient-2: linear-gradient(135deg, #fd79a8 0%, #6c5ce7 100%);
    --iptv-glass: rgba(255,255,255,0.05);
    --iptv-glass-border: rgba(255,255,255,0.1);
    --iptv-radius: 16px;
    --iptv-radius-sm: 10px;
    --iptv-shadow: 0 20px 60px rgba(0,0,0,0.3);
    --iptv-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --iptv-red: #FF1136;
    --iptv-green: #00b894;
}

/* --- GLOBAL DARK OVERRIDES --- */
body.whmcs-templatefile-homepage {
    background: var(--iptv-dark) !important;
    color: var(--iptv-text) !important;
    overflow-x: hidden;
}

body.whmcs-templatefile-homepage .hostx-pages-sections,
body.whmcs-templatefile-homepage .container,
body.whmcs-templatefile-homepage .section,
body.whmcs-templatefile-homepage .row {
    background-color: transparent !important;
}

body.whmcs-templatefile-homepage h1,
body.whmcs-templatefile-homepage h2,
body.whmcs-templatefile-homepage h3,
body.whmcs-templatefile-homepage h4,
body.whmcs-templatefile-homepage h5,
body.whmcs-templatefile-homepage h6 {
    color: #fff !important;
}

body.whmcs-templatefile-homepage p {
    color: var(--iptv-text-muted);
}

/* --- ANNOUNCEMENT BAR --- */
.iptv-announcement-bar {
    background: linear-gradient(90deg, var(--iptv-primary), #4834d4, var(--iptv-accent)) !important;
    padding: 10px 0 !important;
    position: relative;
    z-index: 1001;
    transition: all 0.35s ease;
    overflow: hidden;
    float: left;
    width: 100%;
}

.iptv-announcement-bar.iptv-announce-hidden {
    max-height: 0;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.iptv-announce-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iptv-announce-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.iptv-announce-left a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    transition: var(--iptv-transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.iptv-announce-left a:hover {
    color: #fff !important;
}

.iptv-announce-center {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-family: "DM Sans", sans-serif;
    margin: 0 auto;
}

.iptv-announce-center i {
    color: #ffd32a;
    font-size: 14px;
}

.iptv-announce-cta {
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 50px;
    transition: var(--iptv-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.iptv-announce-cta:hover {
    background: rgba(255,255,255,0.35);
    color: #fff !important;
}

/* --- NAVBAR --- */
.iptv-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(10, 10, 26, 0.97) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 !important;
    width: 100%;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.iptv-navbar.iptv-navbar-sticky {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* Always show spacer to offset fixed navbar */
.iptv-navbar-spacer {
    height: 68px;
    display: block;
}

body.iptv-menu-open {
    overflow: hidden;
}

.iptv-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.iptv-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    flex-shrink: 0;
    margin-right: 36px;
}

.iptv-logo img {
    height: 36px;
    width: auto;
}

/* Nav Menu */
.iptv-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.iptv-nav-link {
    color: var(--iptv-text) !important;
    font-size: 14px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: var(--iptv-radius-sm);
    transition: var(--iptv-transition);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    position: relative;
}

.iptv-nav-link:hover,
.iptv-nav-link:focus {
    color: #fff !important;
    background: var(--iptv-glass);
}

.iptv-nav-link .bi-chevron-down {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Nav Dropdown Container */
.iptv-nav-dropdown {
    position: relative;
}

.iptv-nav-dropdown:hover > .iptv-mega-dropdown,
.iptv-nav-dropdown:hover > .iptv-dropdown-simple {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.iptv-nav-dropdown:hover > .iptv-nav-link .bi-chevron-down {
    transform: rotate(180deg);
}

/* Simple Dropdown */
.iptv-dropdown-simple {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--iptv-dark-2) !important;
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    padding: 8px;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 100;
    margin-top: 0;
}

/* Hover bridge - invisible area that keeps hover active across the gap */
.iptv-dropdown-simple::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.iptv-dropdown-simple.iptv-dropdown-right {
    left: auto;
    right: 0;
}

.iptv-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--iptv-text) !important;
    font-size: 13px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    text-decoration: none !important;
    border-radius: 8px;
    transition: var(--iptv-transition);
}

.iptv-drop-item:hover {
    background: var(--iptv-glass) !important;
    color: var(--iptv-accent) !important;
}

.iptv-drop-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.6;
}

.iptv-drop-item:hover i {
    opacity: 1;
    color: var(--iptv-accent);
}

.iptv-drop-divider {
    height: 1px;
    background: var(--iptv-border);
    margin: 6px 10px;
}

/* Wide dropdown for Resources */
.iptv-dropdown-simple.iptv-dropdown-wide {
    min-width: 320px;
}

.iptv-dropdown-simple.iptv-dropdown-wide .iptv-drop-item {
    gap: 14px;
    padding: 12px 14px;
}

.iptv-drop-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--iptv-primary-light);
    flex-shrink: 0;
    transition: var(--iptv-transition);
}

.iptv-drop-item:hover .iptv-drop-icon {
    background: var(--iptv-gradient);
    border-color: transparent;
    color: #fff;
}

.iptv-drop-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    line-height: 1.3;
}

.iptv-drop-desc {
    display: block;
    color: var(--iptv-text-muted);
    font-size: 11px;
    font-family: "Inter", sans-serif;
    line-height: 1.3;
    margin-top: 1px;
}

.iptv-drop-item:hover .iptv-drop-title {
    color: var(--iptv-accent);
}

/* Enterprise Account Dropdown */
.iptv-account-dropdown {
    min-width: 300px;
    padding: 0 !important;
    overflow: hidden;
}

.iptv-account-dropdown .iptv-account-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.05));
}

.iptv-account-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--iptv-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.iptv-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.iptv-account-avatar i {
    font-size: 20px;
    color: #fff;
}

.iptv-account-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.iptv-account-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iptv-account-email {
    color: var(--iptv-text-muted);
    font-size: 12px;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iptv-account-dropdown .iptv-drop-item {
    gap: 14px;
    padding: 10px 18px;
    border-radius: 0;
}

.iptv-account-dropdown .iptv-drop-item:hover {
    background: rgba(255,255,255,0.04) !important;
}

.iptv-account-dropdown .iptv-drop-divider {
    margin: 4px 0;
}

.iptv-drop-icon-danger {
    background: rgba(239,68,68,0.12) !important;
    border-color: rgba(239,68,68,0.2) !important;
    color: #ef4444 !important;
}

.iptv-drop-item-logout:hover .iptv-drop-icon-danger {
    background: #ef4444 !important;
    border-color: transparent !important;
    color: #fff !important;
}

.iptv-drop-item-logout:hover .iptv-drop-title {
    color: #ef4444 !important;
}

/* Mega Dropdown */
.iptv-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 720px;
    background: var(--iptv-dark-2) !important;
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    padding: 24px;
    padding-top: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 100;
    margin-top: 0;
}

/* Hover bridge for mega dropdown */
.iptv-mega-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.iptv-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 200px;
    gap: 20px;
}
.iptv-mega-grid.iptv-mega-grid-3col {
    grid-template-columns: 1fr 1fr 220px;
}

.iptv-mega-heading {
    color: var(--iptv-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--iptv-border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "DM Sans", sans-serif;
}

.iptv-mega-heading i {
    font-size: 12px;
}

.iptv-mega-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: var(--iptv-transition);
    margin-bottom: 2px;
}

.iptv-mega-item:hover {
    background: var(--iptv-glass);
}

.iptv-mega-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(108,92,231,0.12);
    border: 1px solid rgba(108,92,231,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--iptv-primary-light);
    flex-shrink: 0;
    transition: var(--iptv-transition);
}

.iptv-mega-item:hover .iptv-mega-item-icon {
    background: var(--iptv-gradient);
    border-color: transparent;
    color: #fff;
}

.iptv-mega-title {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 2px;
}

.iptv-mega-item:hover .iptv-mega-title {
    color: var(--iptv-accent);
}

.iptv-mega-desc {
    display: block;
    color: var(--iptv-text-muted);
    font-size: 11px;
    font-family: "Inter", sans-serif;
}

/* Mega Dropdown Highlight / Promo */
.iptv-mega-highlight {
    border-left: 1px solid var(--iptv-border);
    padding-left: 20px;
    display: flex;
    align-items: stretch;
}

.iptv-mega-promo {
    background: var(--iptv-dark-3);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--iptv-radius-sm);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.iptv-mega-promo::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
    pointer-events: none;
}

.iptv-mega-badge {
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    color: #60a5fa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
    font-family: "DM Sans", sans-serif;
}

.iptv-mega-promo h5 {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: "DM Sans", sans-serif;
}

.iptv-mega-promo p {
    color: var(--iptv-text-muted) !important;
    font-size: 12px;
    margin-bottom: 16px;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
}

.iptv-mega-promo .btn-iptv-primary.btn-sm {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: none;
    border-radius: 6px;
    color: #fff !important;
    width: fit-content;
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 5px;
    text-decoration: none !important;
    font-family: "DM Sans", sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(29,78,216,0.25);
    line-height: 1.4;
}

.iptv-mega-promo .btn-iptv-primary.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}

/* Light mode promo card */
[data-bs-theme="light"] .iptv-mega-promo {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe) !important;
    border-color: rgba(59,130,246,0.25) !important;
}

[data-bs-theme="light"] .iptv-mega-promo::before {
    background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 70%);
}

[data-bs-theme="light"] .iptv-mega-badge {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

[data-bs-theme="light"] .iptv-mega-promo h5 {
    color: #0f172a !important;
}

[data-bs-theme="light"] .iptv-mega-promo p {
    color: #475569 !important;
}

[data-bs-theme="light"] .iptv-mega-highlight {
    border-left-color: #e2e8f0;
}

/* Nav Actions (right side) */
.iptv-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.iptv-nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--iptv-border);
    background: transparent;
    color: var(--iptv-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--iptv-transition);
    position: relative;
    text-decoration: none !important;
}

.iptv-nav-icon-btn:hover {
    background: var(--iptv-glass);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}

.iptv-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--iptv-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", sans-serif;
}

/* Account Button */
.iptv-nav-account-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--iptv-radius-sm);
    border: 1px solid var(--iptv-border);
    background: transparent;
    color: var(--iptv-text) !important;
    font-size: 13px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    transition: var(--iptv-transition);
    text-decoration: none !important;
}

.iptv-nav-account-btn:hover {
    background: var(--iptv-glass);
    color: #fff !important;
    border-color: rgba(255,255,255,0.15);
}

.iptv-nav-account-btn .bi-chevron-down {
    font-size: 10px;
}

/* CTA Button in Nav */
.iptv-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--iptv-gradient) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    border-radius: 50px;
    text-decoration: none !important;
    transition: var(--iptv-transition);
    margin-left: 6px;
    white-space: nowrap;
}

.iptv-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(108,92,231,0.4);
    color: #fff !important;
}

/* Hamburger */
.iptv-mobile-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--iptv-border);
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.iptv-hamburger {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.iptv-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--iptv-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.iptv-mobile-toggle.active .iptv-hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.iptv-mobile-toggle.active .iptv-hamburger span:nth-child(2) {
    opacity: 0;
}
.iptv-mobile-toggle.active .iptv-hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Prevent mobile menu from causing horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
}

/* Mobile Menu */
.iptv-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--iptv-dark-2);
    z-index: 9999;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
    border-left: 1px solid var(--iptv-border);
    transform: translateX(100%);
    visibility: hidden;
}

.iptv-mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

.iptv-mobile-menu-inner {
    padding: 80px 24px 30px;
}

.iptv-mobile-nav-group {
    margin-bottom: 28px;
}

.iptv-mobile-group-title {
    color: var(--iptv-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--iptv-border);
    font-family: "DM Sans", sans-serif;
}

.iptv-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--iptv-text) !important;
    font-size: 14px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    text-decoration: none !important;
    border-radius: 10px;
    transition: var(--iptv-transition);
}

.iptv-mobile-link:hover {
    background: var(--iptv-glass);
    color: #fff !important;
}

.iptv-mobile-link i {
    font-size: 16px;
    opacity: 0.5;
    width: 22px;
    text-align: center;
}

.iptv-mobile-nav-footer {
    padding-top: 20px;
    border-top: 1px solid var(--iptv-border);
    margin-top: 10px;
}

/* --- HERO SECTION --- */
.iptv-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--iptv-dark) !important;
    overflow: hidden;
    padding: 80px 0 100px !important;
}

.iptv-hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(108,92,231,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,92,231,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.iptv-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -15%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(108,92,231,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.iptv-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 55%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(0,206,201,0.08) 0%, transparent 65%);
    pointer-events: none;
}

.iptv-hero .container {
    position: relative;
    z-index: 2;
}

.iptv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--iptv-glass);
    border: 1px solid var(--iptv-glass-border);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 14px;
    color: var(--iptv-accent);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    font-family: "Inter", sans-serif;
}

.iptv-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--iptv-accent);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,206,201,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(0,206,201,0); }
}

.iptv-hero h1 {
    font-size: 3.6rem !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    margin-bottom: 24px !important;
    font-family: "DM Sans", sans-serif !important;
    letter-spacing: -0.02em;
}

.iptv-hero h1 span {
    background: var(--iptv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iptv-hero-sub {
    font-size: 1.15rem !important;
    color: var(--iptv-text-muted) !important;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75 !important;
    margin-bottom: 36px !important;
}

.iptv-hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn-iptv-primary {
    background: var(--iptv-gradient) !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--iptv-transition);
    border: none !important;
    box-shadow: 0 4px 20px rgba(108,92,231,0.3);
    font-family: "DM Sans", sans-serif;
}

.btn-iptv-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,92,231,0.5);
    color: #fff !important;
}

.btn-iptv-outline {
    background: transparent !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--iptv-glass-border) !important;
    transition: var(--iptv-transition);
    font-family: "DM Sans", sans-serif;
}

.btn-iptv-outline:hover {
    background: var(--iptv-glass) !important;
    border-color: var(--iptv-accent) !important;
    color: var(--iptv-accent) !important;
}

/* Hero trust badges */
.iptv-hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.iptv-hero-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--iptv-text-muted);
    font-size: 13px;
    font-family: "Inter", sans-serif;
}

.iptv-hero-guarantee i {
    color: var(--iptv-accent);
    font-size: 15px;
}

/* Hero visual */
.iptv-hero-visual {
    position: relative;
}

.iptv-hero-visual img {
    width: 100%;
    border-radius: var(--iptv-radius);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.iptv-floating-card {
    position: absolute;
    background: rgba(15, 15, 40, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--iptv-glass-border);
    border-radius: var(--iptv-radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.iptv-floating-card.card-top-right {
    top: 12%;
    right: -8%;
    animation: float 6s ease-in-out infinite;
}

.iptv-floating-card.card-bottom-left {
    bottom: 18%;
    left: -5%;
    animation: float 6s ease-in-out infinite -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.iptv-floating-card .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.iptv-floating-card .card-icon.purple { background: rgba(108,92,231,0.3); color: var(--iptv-primary-light); }
.iptv-floating-card .card-icon.teal { background: rgba(0,206,201,0.3); color: var(--iptv-accent); }

.iptv-floating-card .card-text strong {
    display: block;
    font-size: 15px;
    color: #fff;
    font-family: "DM Sans", sans-serif;
}

.iptv-floating-card .card-text span {
    font-size: 12px;
    color: var(--iptv-text-muted);
    font-family: "Inter", sans-serif;
}

/* --- STATS BAR --- */
.iptv-stats-bar {
    background: linear-gradient(135deg, var(--iptv-dark-3) 0%, #2d1b69 100%) !important;
    padding: 50px 0 !important;
}

.iptv-stat-item {
    text-align: center;
    padding: 10px;
}

.iptv-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: var(--iptv-accent);
}

.iptv-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--iptv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: "DM Sans", sans-serif;
    line-height: 1.2;
}

.iptv-stat-label {
    color: var(--iptv-text-muted);
    font-size: 14px;
    margin-top: 4px;
    font-family: "Inter", sans-serif;
}

/* --- SECTION HEADERS --- */
.iptv-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.iptv-section-tag {
    display: inline-block;
    background: var(--iptv-glass);
    border: 1px solid var(--iptv-glass-border);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 13px;
    color: var(--iptv-accent);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.iptv-section-header h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    font-family: "DM Sans", sans-serif !important;
    letter-spacing: -0.01em;
}

.iptv-section-header p {
    font-size: 1.1rem;
    color: var(--iptv-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- PROMO CARDS --- */
.iptv-promo-section {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-card {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius) !important;
    padding: 40px 30px !important;
    text-align: center;
    transition: var(--iptv-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.iptv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iptv-gradient);
    opacity: 0;
    transition: var(--iptv-transition);
}

.iptv-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108,92,231,0.3) !important;
    box-shadow: 0 20px 50px rgba(108,92,231,0.1);
}

.iptv-card:hover::before {
    opacity: 1;
}

.iptv-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.iptv-card-icon.purple { background: rgba(108,92,231,0.15); color: var(--iptv-primary-light); }
.iptv-card-icon.teal { background: rgba(0,206,201,0.15); color: var(--iptv-accent); }
.iptv-card-icon.pink { background: rgba(253,121,168,0.15); color: var(--iptv-accent-2); }
.iptv-card-icon.red { background: rgba(255,17,54,0.15); color: var(--iptv-red); }

.iptv-card h4 {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    font-family: "DM Sans", sans-serif !important;
}

.iptv-card p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.iptv-card-link {
    color: var(--iptv-accent) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--iptv-transition);
}

.iptv-card-link:hover {
    gap: 10px;
    color: var(--iptv-primary-light) !important;
}

/* --- SPLIT SECTIONS (Content + Image) --- */
.iptv-split-section {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-split-alt {
    background: var(--iptv-dark-2) !important;
}

.iptv-split-content h2 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    font-family: "DM Sans", sans-serif !important;
}

.iptv-split-content p {
    font-size: 1rem;
    color: var(--iptv-text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.iptv-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.iptv-check-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--iptv-text);
    font-size: 15px;
}

.iptv-check-list li i {
    color: var(--iptv-accent);
    font-size: 18px;
    flex-shrink: 0;
}

.iptv-split-image img {
    width: 100%;
    border-radius: var(--iptv-radius);
    box-shadow: var(--iptv-shadow);
}

/* --- SPORTS VIDEO SHOWCASE (EXPLOSIVE) --- */
@property --sports-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
.sports-showcase {
    position: relative;
    padding: 30px;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1);
}
.sports-showcase.sports-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Rotating neon border */
.sports-neon-border {
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    padding: 3px;
    background: conic-gradient(from var(--sports-angle), #3b82f6, #00e676, #ff6d00, #ff1744, #3b82f6);
    animation: neonSpin 4s linear infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease 0.3s;
    filter: blur(1px);
}
.sports-visible .sports-neon-border { opacity: 0.7; }
@keyframes neonSpin { to { --sports-angle: 360deg; } }

/* Particles */
.sports-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 11;
    overflow: hidden;
}
.sports-particle {
    position: absolute;
    border-radius: 50%;
    background: #3b82f6;
    opacity: 0;
    animation: particleRise 5s ease-in-out infinite;
}
@keyframes particleRise {
    0% { opacity: 0; transform: translateY(20px) scale(0); }
    20% { opacity: 0.8; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-80px) scale(1.5); }
}

/* TV Frame */
.sports-tv-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 3px solid #3b82f6;
    z-index: 1;
    box-shadow: 0 0 40px rgba(59,130,246,0.2), 0 0 80px rgba(59,130,246,0.1), 0 20px 60px rgba(0,0,0,0.5);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
.sports-tv-screen {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* Videos */
.sports-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 5s ease;
    z-index: 1;
}
.sports-video.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}

/* Poster */
.sports-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    transition: opacity 0.5s ease;
}

/* Flash transition burst */
.sports-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 8;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.sports-flash.flash-active {
    animation: flashBurst 0.4s ease-out;
}
@keyframes flashBurst {
    0% { opacity: 0.9; }
    30% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Scan lines */
.sports-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
    pointer-events: none;
    z-index: 5;
    animation: scanlineFlicker 0.1s steps(2) infinite;
}
@keyframes scanlineFlicker {
    0% { opacity: 0.5; }
    100% { opacity: 0.7; }
}

/* LIVE badge */
.sports-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 9;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(220,38,38,0.5), 0 0 40px rgba(220,38,38,0.2);
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease 0.8s, transform 0.5s cubic-bezier(0.16,1,0.3,1) 0.8s;
}
.sports-visible .sports-live-badge { opacity: 1; transform: translateX(0); }
.sports-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.8); }
    50% { opacity: 0.3; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Big sport title overlay */
.sports-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 7;
    pointer-events: none;
    opacity: 0;
}
.sports-title-overlay.title-show {
    animation: titleBlastIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.sports-title-overlay.title-hide {
    animation: titleBlastOut 0.3s ease-in forwards;
}
.sports-title-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(0,0,0,0.8), 0 0 60px rgba(59,130,246,0.4), 0 4px 20px rgba(0,0,0,0.6);
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
@keyframes titleBlastIn {
    0% { opacity: 0; transform: scale(2.5) rotate(-2deg); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}
@keyframes titleBlastOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8) translateY(-20px); filter: blur(5px); }
}

/* Bottom bar with ticker */
.sports-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 6;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}
.sports-visible .sports-bottom-bar { opacity: 1; transform: translateY(0); }
.sports-ticker {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}
.sports-ticker-tag {
    background: #dc2626;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.sports-ticker-text {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress dots */
.sports-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}
.sports-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}
.sports-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}
.sports-dot:hover { background: rgba(255,255,255,0.5); }

/* Corner accent lines */
.sports-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 6;
    border-color: #3b82f6;
    border-style: solid;
    border-width: 0;
    opacity: 0;
    transition: opacity 0.4s ease 1.2s, border-color 0.8s ease;
}
.sports-visible .sports-corner { opacity: 0.8; }
.sc-tl { top: 8px;    left: 8px;    border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.sc-tr { top: 8px;    right: 8px;   border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.sc-bl { bottom: 8px; left: 8px;    border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.sc-br { bottom: 8px; right: 8px;   border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }

/* Dynamic glow beneath */
.sports-tv-glow {
    position: absolute;
    bottom: -15px;
    left: 5%;
    right: 5%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.35) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
    animation: tvGlow 3s ease-in-out infinite;
    transition: background 0.8s ease;
}
@keyframes tvGlow {
    0%, 100% { opacity: 0.5; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

/* Floating Sport Badges */
.sports-badges {
    position: absolute;
    inset: -10px;
    pointer-events: none;
    z-index: 10;
}
.sports-badge {
    position: absolute;
    background: rgba(10,10,26,0.9);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(59,130,246,0.4);
    backdrop-filter: blur(12px);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.sports-badge i { color: #3b82f6; font-size: 11px; }
.sports-visible .sports-badge { opacity: 1; transform: scale(1) translateY(0); }
.sports-visible .sb-1 { transition-delay: 0.5s; }
.sports-visible .sb-2 { transition-delay: 0.65s; }
.sports-visible .sb-3 { transition-delay: 0.8s; }
.sports-visible .sb-4 { transition-delay: 0.95s; }
.sports-visible .sb-5 { transition-delay: 1.1s; }
.sports-visible .sb-6 { transition-delay: 1.25s; }
.sports-visible .sb-7 { transition-delay: 1.4s; }
.sports-visible .sb-8 { transition-delay: 1.55s; }

/* Badge positions + orbit animations */
.sb-1 { top: -12px;  left: 5%;    animation: badgeOrbit1 8s ease-in-out infinite; }
.sb-2 { top: -12px;  right: 2%;   animation: badgeOrbit2 9s ease-in-out infinite; }
.sb-3 { top: 20%;    left: -20px; animation: badgeOrbit3 7s ease-in-out infinite; }
.sb-4 { top: 20%;    right: -20px; animation: badgeOrbit2 8s ease-in-out infinite; }
.sb-5 { top: 48%;    left: -15px; animation: badgeOrbit1 6.5s ease-in-out infinite; }
.sb-6 { top: 48%;    right: -25px; animation: badgeOrbit3 7.5s ease-in-out infinite; }
.sb-7 { bottom: 12%; left: 0;     animation: badgeOrbit2 6s ease-in-out infinite; }
.sb-8 { bottom: 12%; right: 3%;   animation: badgeOrbit1 8.5s ease-in-out infinite; }

@keyframes badgeOrbit1 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.05) translate(4px, -8px); }
    50% { transform: scale(1) translate(0, -12px); }
    75% { transform: scale(1.05) translate(-4px, -6px); }
}
@keyframes badgeOrbit2 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    25% { transform: scale(1.05) translate(-3px, 6px); }
    50% { transform: scale(1) translate(0, 10px); }
    75% { transform: scale(1.05) translate(3px, 4px); }
}
@keyframes badgeOrbit3 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.08) translate(5px, -5px); }
    66% { transform: scale(1) translate(-3px, 5px); }
}

/* Mobile */
@media (max-width: 767px) {
    .sports-showcase { padding: 15px 5px; }
    .sports-neon-border { inset: 8px; }
    .sb-3, .sb-5, .sb-6, .sb-7 { display: none; }
    .sports-badge { font-size: 10px; padding: 4px 10px; }
    .sb-1 { left: 0; }
    .sb-2 { right: 0; }
    .sb-4 { right: -5px; }
    .sb-8 { right: 0; }
    .sports-title-text { letter-spacing: 3px; }
    .sports-ticker-text { font-size: 10px; }
    .sports-particles { display: none; }
}

/* Light mode */
[data-bs-theme="light"] .sports-tv-frame {
    background: #f1f5f9;
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 0 30px rgba(59,130,246,0.1), 0 20px 60px rgba(0,0,0,0.12);
}
[data-bs-theme="light"] .sports-badge {
    background: rgba(255,255,255,0.95);
    color: #1e293b;
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
[data-bs-theme="light"] .sports-neon-border { opacity: 0.4; }
[data-bs-theme="light"] .sports-tv-glow {
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 70%);
}

/* --- DEAL BANNER --- */
.iptv-deal-banner {
    background: linear-gradient(135deg, var(--iptv-dark-3), var(--iptv-dark-2)) !important;
    padding: 50px 0 !important;
    text-align: center;
}

.iptv-deal-link {
    display: flex;
    justify-content: center;
}

.iptv-deal-banner img,
.iptv-deal-banner video {
    max-width: 100%;
    border-radius: var(--iptv-radius);
    box-shadow: var(--iptv-shadow);
    transition: var(--iptv-transition);
    cursor: pointer;
}

.iptv-deal-banner img:hover,
.iptv-deal-banner video:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(29,78,216,0.3);
}

/* --- PACKAGES / PRICING --- */
.iptv-packages {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-pricing-card {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius) !important;
    padding: 40px 30px !important;
    text-align: center;
    transition: var(--iptv-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.iptv-pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(108,92,231,0.3) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.iptv-pricing-card.featured {
    background: linear-gradient(180deg, rgba(108,92,231,0.08) 0%, var(--iptv-dark-card) 100%) !important;
    border-color: var(--iptv-primary) !important;
    box-shadow: 0 0 40px rgba(108,92,231,0.15);
    transform: scale(1.02);
}

.iptv-pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 60px rgba(108,92,231,0.25);
}

.iptv-pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--iptv-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: "Inter", sans-serif;
}

.iptv-pricing-header {
    margin-bottom: 20px;
}

.iptv-pricing-card.featured .iptv-pricing-header {
    padding-top: 16px;
}

.iptv-pricing-icon {
    width: 56px;
    height: 56px;
    background: var(--iptv-glass);
    border: 1px solid var(--iptv-glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    color: var(--iptv-accent);
}

.iptv-pricing-card.featured .iptv-pricing-icon {
    background: rgba(108,92,231,0.2);
    border-color: rgba(108,92,231,0.3);
    color: var(--iptv-primary-light);
}

.iptv-pricing-header h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    font-family: "DM Sans", sans-serif !important;
}

.iptv-pricing-header p {
    font-size: 13px;
    color: var(--iptv-text-muted);
    margin-bottom: 0;
}

.iptv-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--iptv-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    font-family: "DM Sans", sans-serif;
    line-height: 1.2;
}

.iptv-pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.iptv-pricing-price .period {
    font-size: 1rem;
    -webkit-text-fill-color: var(--iptv-text-muted);
    font-weight: 500;
}

.iptv-pricing-price .starting-from {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--iptv-text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.iptv-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.iptv-pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--iptv-text);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.iptv-pricing-features li:last-child {
    border-bottom: none;
}

.iptv-pricing-features li i {
    color: var(--iptv-accent);
    font-size: 16px;
    flex-shrink: 0;
}

.iptv-pricing-btn {
    width: 100%;
    justify-content: center;
}

/* --- APP SECTION --- */
.iptv-app-section {
    background: var(--iptv-dark-2) !important;
    padding: 80px 0 !important;
}

.iptv-app-content {
    padding-right: 20px;
}

.iptv-app-content h2 {
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    font-family: "DM Sans", sans-serif !important;
}

.iptv-app-content p {
    color: var(--iptv-text-muted);
    line-height: 1.75;
    margin-bottom: 20px;
}

.iptv-app-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.iptv-app-video {
    position: relative;
    border-radius: var(--iptv-radius);
    overflow: hidden;
    box-shadow: var(--iptv-shadow);
    border: 1px solid var(--iptv-border);
}

.iptv-app-video iframe {
    display: block;
    border-radius: var(--iptv-radius);
}

/* --- WHY IPTV SECTION --- */
.iptv-why-section {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-why-card {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius) !important;
    padding: 35px 25px !important;
    text-align: center;
    transition: var(--iptv-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.iptv-why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--iptv-gradient);
    opacity: 0;
    transition: var(--iptv-transition);
}

.iptv-why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0,206,201,0.3) !important;
}

.iptv-why-card:hover::after {
    opacity: 1;
}

.iptv-why-card h4 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
}

.iptv-why-card p {
    font-size: 14px;
    color: var(--iptv-text-muted);
    line-height: 1.7;
}

/* --- MOVIE GALLERY --- */
.iptv-movie-gallery {
    background: var(--iptv-dark-2) !important;
    padding: 80px 0 !important;
}

.iptv-movie-gallery .movie-poster-gallery {
    border-radius: var(--iptv-radius-sm);
    overflow: hidden;
    position: relative;
}

.iptv-movie-gallery .movie-poster-gallery img {
    border-radius: var(--iptv-radius-sm);
    transition: var(--iptv-transition);
}

.iptv-movie-gallery .movie-poster-gallery:hover img {
    transform: scale(1.05);
}

.iptv-movie-gallery .poster-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 10px;
}

.iptv-movie-gallery .poster-content p {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

/* Movie gallery mobile: flat scrollable cards */
.iptv-gallery-mobile {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
}

.iptv-gallery-mobile::-webkit-scrollbar {
    height: 4px;
}

.iptv-gallery-mobile::-webkit-scrollbar-track {
    background: var(--iptv-dark-3);
    border-radius: 10px;
}

.iptv-gallery-mobile::-webkit-scrollbar-thumb {
    background: var(--iptv-primary);
    border-radius: 10px;
}

.iptv-gallery-card {
    flex: 0 0 200px;
    min-width: 200px;
    height: 300px;
    border-radius: var(--iptv-radius) !important;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.iptv-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--iptv-radius) !important;
    transition: var(--iptv-transition);
}

.iptv-gallery-card:hover img {
    transform: scale(1.05);
}

.iptv-gallery-card .poster-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px 14px 12px;
    border-radius: 0 0 var(--iptv-radius) var(--iptv-radius);
}

.iptv-gallery-card .poster-content p {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    font-family: "DM Sans", sans-serif;
}

/* --- REVIEWS / TESTIMONIALS --- */
.iptv-reviews {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-reviews .slider-card {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius) !important;
    padding: 30px !important;
    height: 100%;
    transition: var(--iptv-transition);
}

.iptv-reviews .slider-card:hover {
    border-color: rgba(108,92,231,0.2) !important;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: "DM Sans", sans-serif;
}

.review-avatar.purple { background: rgba(108,92,231,0.3); color: var(--iptv-primary-light); }
.review-avatar.teal { background: rgba(0,206,201,0.3); color: var(--iptv-accent); }
.review-avatar.pink { background: rgba(253,121,168,0.3); color: var(--iptv-accent-2); }
.review-avatar.red { background: rgba(255,17,54,0.3); color: #ff6b81; }

.review-meta h5 {
    font-size: 15px !important;
    margin-bottom: 2px !important;
    font-family: "DM Sans", sans-serif !important;
}

.review-meta .rating-icon i {
    color: #fca326 !important;
    font-size: 13px;
}

.iptv-reviews .user-content p {
    color: var(--iptv-text-muted) !important;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    font-style: italic;
}

.review-tag {
    display: inline-block;
    background: var(--iptv-glass);
    border: 1px solid var(--iptv-glass-border);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 11px;
    color: var(--iptv-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iptv-reviews .swiper-pagination-bullet {
    background: var(--iptv-text-muted) !important;
    opacity: 0.5;
}

.iptv-reviews .swiper-pagination-bullet-active {
    background: var(--iptv-accent) !important;
    opacity: 1;
}

/* --- DEVICES SECTION --- */
.iptv-devices {
    background: var(--iptv-dark-2) !important;
    padding: 80px 0 !important;
}

.iptv-device-card {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius) !important;
    padding: 35px 25px !important;
    text-align: center;
    transition: var(--iptv-transition);
    height: 100%;
}

.iptv-device-card:hover {
    border-color: rgba(108,92,231,0.3) !important;
    transform: translateY(-3px);
}

.iptv-device-card h4 {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
}

.iptv-device-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.iptv-device-list li {
    font-size: 13px;
    color: var(--iptv-text-muted);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    line-height: 1.6;
}

.iptv-device-list li:last-child {
    border-bottom: none;
}

/* --- FAQ SECTION --- */
.iptv-faq {
    background: var(--iptv-dark) !important;
    padding: 80px 0 !important;
}

.iptv-faq .accordion-item {
    background: var(--iptv-dark-card) !important;
    border: 1px solid var(--iptv-border) !important;
    border-radius: var(--iptv-radius-sm) !important;
    margin-bottom: 12px !important;
    overflow: hidden;
}

.iptv-faq .accordion-button {
    background: var(--iptv-dark-card) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    box-shadow: none !important;
    padding: 20px 24px !important;
    font-family: "DM Sans", sans-serif;
}

.iptv-faq .accordion-button::after {
    filter: invert(1);
}

.iptv-faq .accordion-button:not(.collapsed) {
    background: var(--iptv-glass) !important;
    color: var(--iptv-accent) !important;
}

.iptv-faq .accordion-body {
    background: var(--iptv-dark-card) !important;
    color: var(--iptv-text-muted) !important;
    padding: 0 24px 20px !important;
    line-height: 1.75;
    font-size: 14px;
}

.iptv-faq .accordion-body a {
    color: var(--iptv-accent) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.iptv-faq .accordion-body a:hover {
    text-decoration: underline !important;
}

/* --- BLOG / ARTICLES SECTION --- */
.iptv-blog {
    background: var(--iptv-dark-2);
    padding: 80px 0;
}
.iptv-blog-card {
    display: flex;
    flex-direction: column;
    background: var(--iptv-dark-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    transition: var(--iptv-transition);
    height: 100%;
}
.iptv-blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--iptv-primary-light);
    box-shadow: 0 16px 48px rgba(108, 92, 231, 0.15);
    text-decoration: none !important;
    color: inherit;
}
.iptv-blog-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--iptv-dark-3);
}
.iptv-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.iptv-blog-card:hover .iptv-blog-card-img img {
    transform: scale(1.05);
}
.iptv-blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: var(--iptv-text-muted);
}
.iptv-blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.iptv-blog-card-cat {
    display: inline-block;
    background: rgba(108, 92, 231, 0.15);
    color: var(--iptv-primary-light);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    width: fit-content;
}
.iptv-blog-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.iptv-blog-card-body p {
    font-size: 13px;
    color: var(--iptv-text-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.iptv-blog-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--iptv-border);
    font-size: 12px;
    color: var(--iptv-text-muted);
}
.iptv-blog-card-footer i {
    margin-right: 4px;
}
@media (max-width: 767px) {
    .iptv-blog {
        padding: 50px 0;
    }
    .iptv-blog-card-img {
        height: 170px;
    }
}

/* --- AFFILIATE / CTA BANNER --- */
.iptv-cta-section {
    background: linear-gradient(135deg, var(--iptv-primary), var(--iptv-accent)) !important;
    padding: 80px 0 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.iptv-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.iptv-cta-section h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    position: relative;
}

.iptv-cta-section p {
    color: rgba(255,255,255,0.85) !important;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.iptv-cta-section .btn-iptv-white {
    background: #fff !important;
    color: var(--iptv-primary) !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--iptv-transition);
    border: none !important;
    position: relative;
}

.iptv-cta-section .btn-iptv-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* --- FOOTER OVERRIDES --- */
body.whmcs-templatefile-homepage #footer {
    background: #06060f !important;
    border-top: 1px solid var(--iptv-border);
}

body.whmcs-templatefile-homepage #footer h4 {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.whmcs-templatefile-homepage #footer li a {
    color: var(--iptv-text-muted) !important;
    transition: var(--iptv-transition);
}

body.whmcs-templatefile-homepage #footer li a:hover {
    color: var(--iptv-accent) !important;
    padding-left: 3px;
}

body.whmcs-templatefile-homepage #footer p {
    color: var(--iptv-text-muted) !important;
}

body.whmcs-templatefile-homepage .copyright {
    background: #040410 !important;
    border-top: 1px solid var(--iptv-border);
}

body.whmcs-templatefile-homepage .copyright p {
    color: var(--iptv-text-muted) !important;
}

body.whmcs-templatefile-homepage .footer-about .logo img {
    max-height: 40px;
    width: auto;
}

/* --- GREENCOLOR UTILITY --- */
.greencolor {
    color: var(--iptv-accent) !important;
}

/* --- HERO LIVE INDICATOR --- */
.live-indicator {
    background: var(--iptv-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: live-blink 2s infinite;
    font-family: "Inter", sans-serif;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* --- CHANNEL NETWORK TICKER --- */
.iptv-channels-bar {
    background: var(--iptv-dark-2) !important;
    padding: 30px 0 !important;
    overflow: hidden;
    width: 100%;
    float: left;
    border-top: 1px solid var(--iptv-border);
    border-bottom: 1px solid var(--iptv-border);
}

.iptv-channels-label {
    text-align: center;
    color: var(--iptv-text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 18px;
}

.iptv-channels-ticker {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.iptv-channels-ticker::before,
.iptv-channels-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.iptv-channels-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--iptv-dark-2), transparent);
}

.iptv-channels-ticker::after {
    right: 0;
    background: linear-gradient(90deg, transparent, var(--iptv-dark-2));
}

.iptv-ticker-track {
    display: flex;
    gap: 14px;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

.iptv-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.iptv-channel-pill {
    background: var(--iptv-glass);
    border: 1px solid var(--iptv-glass-border);
    border-radius: 50px;
    padding: 8px 22px;
    color: var(--iptv-text);
    font-size: 13px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    white-space: nowrap;
    transition: var(--iptv-transition);
    cursor: default;
    flex-shrink: 0;
}

.iptv-channel-pill:hover {
    border-color: var(--iptv-accent);
    color: var(--iptv-accent);
    background: rgba(0,206,201,0.08);
}

/* --- PRICING CENTS --- */
.iptv-pricing-price .cents {
    font-size: 1.5rem;
    vertical-align: super;
    -webkit-text-fill-color: inherit;
}

/* --- PAYMENT TRUST BADGES --- */
.iptv-payment-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--iptv-border);
}

.iptv-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--iptv-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.iptv-trust-item i {
    color: var(--iptv-accent);
    font-size: 16px;
}

/* --- CABLE vs IPTV COMPARISON TABLE --- */
.iptv-comparison {
    background: var(--iptv-dark-2) !important;
    padding: 80px 0 !important;
}

.iptv-compare-table {
    background: var(--iptv-dark-card);
    border: 1px solid var(--iptv-border);
    border-radius: var(--iptv-radius);
    overflow: hidden;
}

.iptv-compare-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--iptv-dark-3);
    border-bottom: 1px solid var(--iptv-border);
}

.iptv-compare-header > div {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 14px;
    font-family: "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iptv-compare-header .iptv-compare-feature {
    color: var(--iptv-text-muted);
}

.iptv-compare-header .iptv-compare-cable {
    color: var(--iptv-text-muted);
    text-align: center;
    border-left: 1px solid var(--iptv-border);
}

.iptv-compare-header .iptv-compare-iptv {
    color: var(--iptv-accent);
    text-align: center;
    border-left: 1px solid var(--iptv-border);
    background: rgba(0,206,201,0.05);
}

.iptv-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--iptv-border);
    transition: var(--iptv-transition);
}

.iptv-compare-row:last-child {
    border-bottom: none;
}

.iptv-compare-row:hover {
    background: var(--iptv-glass);
}

.iptv-compare-row > div {
    padding: 16px 24px;
    font-size: 14px;
}

.iptv-compare-row .iptv-compare-feature {
    color: var(--iptv-text);
    font-weight: 500;
}

.iptv-compare-row .iptv-compare-cable {
    color: var(--iptv-text-muted);
    text-align: center;
    border-left: 1px solid var(--iptv-border);
}

.iptv-compare-row .iptv-compare-iptv {
    color: #fff;
    text-align: center;
    border-left: 1px solid var(--iptv-border);
    background: rgba(0,206,201,0.03);
}

.compare-yes {
    color: var(--iptv-green) !important;
    font-weight: 700;
    margin-right: 4px;
}

.compare-no {
    color: var(--iptv-red) !important;
    font-weight: 700;
    margin-right: 4px;
    opacity: 0.7;
}

/* ============================================
   CHANNEL LIST MODAL - Modern Two-Panel
   ============================================ */
.hcl-dialog {
    max-width: 1000px;
    margin: 20px auto;
}
.hcl-content {
    display: flex;
    flex-direction: row;
    background: #0d0d24;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(108,92,231,0.08);
    height: 75vh;
    max-height: 680px;
    animation: hclSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hclSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hcl-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #8a8a9a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    flex-shrink: 0;
}
.hcl-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
[data-bs-theme="light"] .hcl-close { background: rgba(0,0,0,0.05); color: #64748b; }
[data-bs-theme="light"] .hcl-close:hover { background: rgba(0,0,0,0.1); color: #333; }

/* --- Sidebar --- */
.hcl-sidebar {
    width: 280px;
    min-width: 280px;
    background: #0a0a1e;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hcl-sidebar-head {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.hcl-sidebar-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hcl-sidebar-head h4 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.hcl-sidebar-head p {
    margin: 0;
    font-size: 12px;
    color: #6a6a8a;
}
.hcl-logo-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(108,92,231,0.3);
}
.hcl-search-box {
    position: relative;
    padding: 14px 16px;
}
.hcl-search-box i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a4a6a;
    font-size: 14px;
    pointer-events: none;
}
.hcl-search-box input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: #e0e0e0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.25s;
}
.hcl-search-box input::placeholder { color: #4a4a6a; }
.hcl-search-box input:focus {
    border-color: rgba(108,92,231,0.4);
    background: rgba(108,92,231,0.06);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
.hcl-cat-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.hcl-cat-list::-webkit-scrollbar { width: 4px; }
.hcl-cat-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
.hcl-cat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 0;
    color: #6a6a8a;
    font-size: 13px;
}
.hcl-spin {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(255,255,255,0.06);
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: hclSpin 0.7s linear infinite;
}
@keyframes hclSpin { to { transform: rotate(360deg); } }
.hcl-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #9a9ab0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    margin-bottom: 2px;
}
.hcl-cat-item i { font-size: 14px; opacity: 0.5; }
.hcl-cat-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcl-cat-item:hover {
    background: rgba(255,255,255,0.04);
    color: #d0d0e0;
}
.hcl-cat-item.active {
    background: linear-gradient(135deg, rgba(108,92,231,0.18), rgba(0,206,201,0.10));
    color: #fff;
    font-weight: 600;
}
.hcl-cat-item.active i { opacity: 1; color: #6c5ce7; }
.hcl-cat-empty { color: #6a6a8a; font-size: 13px; text-align: center; padding: 30px 10px; }

/* --- Main panel --- */
.hcl-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.hcl-main-head {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.hcl-main-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hcl-main-title h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.hcl-badge {
    background: linear-gradient(135deg, #6c5ce7, #00cec9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
}
/* Channel search in main header */
.hcl-ch-search {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
.hcl-ch-search i {
    position: absolute;
    left: 12px;
    color: #4a4a6a;
    font-size: 13px;
    pointer-events: none;
}
.hcl-ch-search input {
    padding: 8px 14px 8px 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: #e0e0e0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 200px;
    transition: all 0.25s;
}
.hcl-ch-search input::placeholder { color: #4a4a6a; }
.hcl-ch-search input:focus {
    border-color: rgba(108,92,231,0.4);
    background: rgba(108,92,231,0.06);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
[data-bs-theme="light"] .hcl-ch-search i { color: #94a3b8; }
[data-bs-theme="light"] .hcl-ch-search input {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #333;
}
[data-bs-theme="light"] .hcl-ch-search input::placeholder { color: #94a3b8; }
[data-bs-theme="light"] .hcl-ch-search input:focus {
    border-color: #6c5ce7;
    background: #fff;
}
/* All Channels button */
.hcl-cat-all {
    font-weight: 600 !important;
    color: #a78bfa !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 4px;
    padding-bottom: 12px !important;
    border-radius: 10px 10px 0 0 !important;
}
.hcl-cat-all i { opacity: 0.8 !important; color: #6c5ce7 !important; }
[data-bs-theme="light"] .hcl-cat-all { color: #6c5ce7 !important; border-bottom-color: #e2e8f0; }

.hcl-channels-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.hcl-channels-wrap::-webkit-scrollbar { width: 5px; }
.hcl-channels-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

/* Placeholder */
.hcl-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    height: 100%;
}
.hcl-placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(108,92,231,0.08);
    border: 1px solid rgba(108,92,231,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #6c5ce7;
    margin-bottom: 20px;
}
.hcl-placeholder h5 { color: #c0c0d8; margin: 0 0 8px; font-size: 16px; }
.hcl-placeholder p { color: #6a6a8a; margin: 0; font-size: 14px; max-width: 280px; }

/* Channel loading */
.hcl-channel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: #6a6a8a;
    font-size: 13px;
}

/* Channel grid */
.hcl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.hcl-ch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}
.hcl-ch-card:hover {
    background: rgba(108,92,231,0.06);
    border-color: rgba(108,92,231,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hcl-ch-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    color: #4a4a6a;
    font-size: 16px;
}
.hcl-ch-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.hcl-ch-icon i { position: absolute; }
.hcl-ch-icon img + i { display: none; }
.no-img img { display: none !important; }
.no-img i { display: flex !important; }
.hcl-ch-name {
    font-size: 13px;
    font-weight: 500;
    color: #d0d0e0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* --- Light mode --- */
[data-bs-theme="light"] .hcl-content {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}
[data-bs-theme="light"] .hcl-sidebar { background: #f8fafc; border-right-color: #e2e8f0; }
[data-bs-theme="light"] .hcl-sidebar-head { border-bottom-color: #e2e8f0; }
[data-bs-theme="light"] .hcl-sidebar-head h4 { color: #1a1a2e; }
[data-bs-theme="light"] .hcl-sidebar-head p { color: #94a3b8; }
[data-bs-theme="light"] .hcl-search-box i { color: #94a3b8; }
[data-bs-theme="light"] .hcl-search-box input {
    background: #fff;
    border-color: #e2e8f0;
    color: #333;
}
[data-bs-theme="light"] .hcl-search-box input::placeholder { color: #94a3b8; }
[data-bs-theme="light"] .hcl-search-box input:focus {
    border-color: #6c5ce7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.08);
}
[data-bs-theme="light"] .hcl-cat-list { scrollbar-color: #d0d5dd transparent; }
[data-bs-theme="light"] .hcl-cat-list::-webkit-scrollbar-thumb { background: #d0d5dd; }
[data-bs-theme="light"] .hcl-cat-loading { color: #94a3b8; }
[data-bs-theme="light"] .hcl-spin { border-color: #e2e8f0; border-top-color: #6c5ce7; }
[data-bs-theme="light"] .hcl-cat-item { color: #64748b; }
[data-bs-theme="light"] .hcl-cat-item:hover { background: #f1f5f9; color: #333; }
[data-bs-theme="light"] .hcl-cat-item.active {
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.06));
    color: #6c5ce7;
}
[data-bs-theme="light"] .hcl-cat-item.active i { color: #6c5ce7; }
[data-bs-theme="light"] .hcl-main-head { border-bottom-color: #e2e8f0; }
[data-bs-theme="light"] .hcl-main-title h5 { color: #1a1a2e; }
[data-bs-theme="light"] .hcl-channels-wrap { scrollbar-color: #d0d5dd transparent; }
[data-bs-theme="light"] .hcl-channels-wrap::-webkit-scrollbar-thumb { background: #d0d5dd; }
[data-bs-theme="light"] .hcl-placeholder-icon {
    background: rgba(108,92,231,0.06);
    border-color: rgba(108,92,231,0.1);
}
[data-bs-theme="light"] .hcl-placeholder h5 { color: #333; }
[data-bs-theme="light"] .hcl-placeholder p { color: #94a3b8; }
[data-bs-theme="light"] .hcl-channel-loading { color: #94a3b8; }
[data-bs-theme="light"] .hcl-ch-card {
    background: #fff;
    border-color: #eef0f4;
}
[data-bs-theme="light"] .hcl-ch-card:hover {
    background: #f8f7ff;
    border-color: #c4b5fd;
    box-shadow: 0 4px 12px rgba(108,92,231,0.06);
}
[data-bs-theme="light"] .hcl-ch-icon { background: #f3f4f6; color: #94a3b8; }
[data-bs-theme="light"] .hcl-ch-name { color: #1e293b; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .iptv-hero h1 {
        font-size: 2.5rem !important;
    }
    .iptv-hero {
        min-height: auto !important;
        padding: 60px 0 !important;
    }
    .iptv-section-header h2 {
        font-size: 2rem !important;
    }
    .iptv-floating-card {
        display: none;
    }
    .iptv-stat-number {
        font-size: 2rem;
    }
    .iptv-pricing-card.featured {
        transform: scale(1);
    }
    .iptv-pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    .iptv-app-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    .iptv-cta-section h2 {
        font-size: 2rem !important;
    }
}

@media (max-width: 767px) {
    .iptv-hero h1 {
        font-size: 2rem !important;
    }
    .iptv-hero-sub {
        font-size: 1rem !important;
    }
    .iptv-hero-btns {
        flex-direction: column;
    }
    .btn-iptv-primary,
    .btn-iptv-outline {
        justify-content: center;
        width: 100%;
    }
    .iptv-section-header h2 {
        font-size: 1.75rem !important;
    }
    .iptv-stat-number {
        font-size: 1.75rem;
    }
    .iptv-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .iptv-split-content {
        margin-bottom: 30px;
    }
    .iptv-hero-trust {
        flex-direction: column;
        gap: 8px;
    }
    .hcl-dialog { margin: 10px; }
    .hcl-content {
        flex-direction: column;
        height: 85vh;
        max-height: none;
    }
    .hcl-sidebar {
        width: 100%;
        min-width: unset;
        max-height: 240px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .hcl-sidebar-head { padding: 12px 14px; }
    .hcl-sidebar-head h4 { font-size: 15px; }
    .hcl-sidebar-head p { display: none; }
    .hcl-logo-icon { width: 30px; height: 30px; min-width: 30px; font-size: 14px; border-radius: 8px; }
    .hcl-sidebar-head-left { gap: 10px; }
    .hcl-search-box { padding: 6px 12px; }
    .hcl-cat-list { padding: 4px 8px 8px; display: flex; flex-wrap: wrap; gap: 4px; overflow-y: auto; }
    .hcl-cat-item { padding: 6px 12px; font-size: 12px; border-radius: 50px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); white-space: nowrap; margin-bottom: 0; }
    .hcl-cat-item i { display: none; }
    #hclCategories { display: flex !important; flex-wrap: wrap; gap: 6px; }
    .hcl-main-head { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .hcl-ch-search { width: 100%; }
    .hcl-ch-search input { width: 100%; }
    .hcl-channels-wrap { padding: 14px 16px; }
    .hcl-grid { grid-template-columns: 1fr; gap: 8px; }
    .hcl-ch-card { padding: 10px 12px; gap: 10px; }
    .hcl-ch-icon { width: 32px; height: 32px; border-radius: 6px; }
    .hcl-ch-name { font-size: 12px; }
    .iptv-announce-center span {
        font-size: 11px;
    }
    .iptv-announce-cta {
        font-size: 10px;
        padding: 3px 10px;
    }
    .iptv-navbar.iptv-navbar-sticky {
        position: fixed;
    }
    .iptv-nav-inner {
        height: 56px;
    }
    .iptv-nav-actions {
        gap: 4px;
    }
    .iptv-nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }
    .iptv-mobile-toggle {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .iptv-logo img {
        height: 30px;
    }
    .iptv-app-btns {
        flex-direction: column;
    }
    .iptv-app-btns .btn-iptv-primary,
    .iptv-app-btns .btn-iptv-outline {
        justify-content: center;
    }
    .iptv-app-video iframe {
        height: 250px;
    }
    .iptv-pricing-price {
        font-size: 2.5rem;
    }
    .iptv-cta-section h2 {
        font-size: 1.75rem !important;
    }
    .iptv-compare-header > div,
    .iptv-compare-row > div {
        padding: 12px 12px;
        font-size: 12px;
    }
    .iptv-payment-trust {
        gap: 12px;
    }
    .iptv-trust-item {
        font-size: 11px;
    }
    .iptv-channel-pill {
        padding: 6px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hcl-grid { grid-template-columns: 1fr; }
    .hcl-sidebar { max-height: 200px; }
    .iptv-hero {
        padding: 40px 0 60px !important;
    }
    .iptv-hero h1 {
        font-size: 1.75rem !important;
    }
    .iptv-pricing-price {
        font-size: 2rem;
    }
    .iptv-stat-number {
        font-size: 1.5rem;
    }
    .iptv-announce-center {
        font-size: 11px;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .iptv-announce-cta {
        font-size: 10px;
        padding: 3px 8px;
    }
    .iptv-nav-actions {
        gap: 3px;
    }
    .iptv-nav-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .iptv-mobile-toggle {
        width: 34px;
        height: 34px;
    }
    .iptv-logo img {
        height: 26px;
    }
}

/* ============================================
   LIGHT THEME OVERRIDES
   Triggered by html[data-bs-theme="light"]
   ============================================ */

[data-bs-theme="light"] {
    --iptv-dark: #f8fafc;
    --iptv-dark-2: #f1f5f9;
    --iptv-dark-3: #e2e8f0;
    --iptv-dark-card: #ffffff;
    --iptv-border: rgba(0,0,0,0.1);
    --iptv-text: #1e293b;
    --iptv-text-muted: #64748b;
    --iptv-glass: rgba(0,0,0,0.04);
    --iptv-glass-border: rgba(0,0,0,0.1);
    --iptv-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

/* Body & global text */
[data-bs-theme="light"] body.whmcs-templatefile-homepage {
    background: #f8fafc !important;
    color: #1e293b !important;
}

[data-bs-theme="light"] body.whmcs-templatefile-homepage h1,
[data-bs-theme="light"] body.whmcs-templatefile-homepage h2,
[data-bs-theme="light"] body.whmcs-templatefile-homepage h3,
[data-bs-theme="light"] body.whmcs-templatefile-homepage h4,
[data-bs-theme="light"] body.whmcs-templatefile-homepage h5,
[data-bs-theme="light"] body.whmcs-templatefile-homepage h6 {
    color: #0f172a !important;
}

[data-bs-theme="light"] body.whmcs-templatefile-homepage p {
    color: #475569;
}

/* Navbar */
[data-bs-theme="light"] .iptv-navbar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .iptv-navbar.iptv-navbar-sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .iptv-nav-link {
    color: #334155 !important;
}

[data-bs-theme="light"] .iptv-nav-link:hover,
[data-bs-theme="light"] .iptv-nav-link:focus {
    color: #0f172a !important;
    background: rgba(0,0,0,0.04);
}

[data-bs-theme="light"] .iptv-nav-icon-btn {
    color: #475569;
    border-color: rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-nav-icon-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
    border-color: rgba(0,0,0,0.15);
}

[data-bs-theme="light"] .iptv-nav-account-btn {
    color: #334155 !important;
    border-color: rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-nav-account-btn:hover {
    background: rgba(0,0,0,0.04);
    color: #0f172a !important;
    border-color: rgba(0,0,0,0.15);
}

/* Dropdowns */
[data-bs-theme="light"] .iptv-dropdown-simple {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

[data-bs-theme="light"] .iptv-mega-dropdown {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

[data-bs-theme="light"] .iptv-drop-item {
    color: #334155 !important;
}

[data-bs-theme="light"] .iptv-drop-item:hover {
    background: #f1f5f9 !important;
}

[data-bs-theme="light"] .iptv-drop-title {
    color: #1e293b !important;
}

[data-bs-theme="light"] .iptv-drop-desc {
    color: #64748b !important;
}

[data-bs-theme="light"] .iptv-account-name {
    color: #0f172a !important;
}

[data-bs-theme="light"] .iptv-account-email {
    color: #64748b !important;
}

[data-bs-theme="light"] .iptv-account-dropdown .iptv-drop-item:hover {
    background: #f1f5f9 !important;
}

[data-bs-theme="light"] .iptv-mega-title {
    color: #0f172a;
}

/* Mobile menu */
[data-bs-theme="light"] .iptv-mobile-menu {
    background: #ffffff;
    border-left-color: rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-mobile-link {
    color: #334155 !important;
}

[data-bs-theme="light"] .iptv-mobile-link:hover {
    background: #f1f5f9;
    color: #0f172a !important;
}

[data-bs-theme="light"] .iptv-hamburger span {
    background: #334155;
}

[data-bs-theme="light"] .iptv-mobile-toggle {
    border-color: rgba(0,0,0,0.1);
}

/* Hero */
[data-bs-theme="light"] .iptv-hero {
    background: #f8fafc !important;
}

[data-bs-theme="light"] .iptv-hero-bg-grid {
    background-image:
        linear-gradient(rgba(108,92,231,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108,92,231,0.06) 1px, transparent 1px);
}

[data-bs-theme="light"] .iptv-hero::before {
    background: radial-gradient(ellipse, rgba(108,92,231,0.06) 0%, transparent 65%);
}

[data-bs-theme="light"] .iptv-hero::after {
    background: radial-gradient(ellipse, rgba(0,206,201,0.05) 0%, transparent 65%);
}

[data-bs-theme="light"] .iptv-hero h1 {
    color: #0f172a !important;
}

[data-bs-theme="light"] .iptv-hero-sub {
    color: #64748b !important;
}

[data-bs-theme="light"] .btn-iptv-outline {
    color: #334155 !important;
    border-color: rgba(0,0,0,0.15) !important;
}

[data-bs-theme="light"] .btn-iptv-outline:hover {
    background: rgba(0,0,0,0.04) !important;
    border-color: var(--iptv-accent) !important;
    color: var(--iptv-accent) !important;
}

/* Floating cards */
[data-bs-theme="light"] .iptv-floating-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-floating-card .card-text strong {
    color: #0f172a;
}

/* Stats bar */
[data-bs-theme="light"] .iptv-stats-bar {
    background: linear-gradient(135deg, #e2e8f0 0%, #ddd6fe 100%) !important;
}

/* Section backgrounds */
[data-bs-theme="light"] .iptv-promo-section,
[data-bs-theme="light"] .iptv-why-section,
[data-bs-theme="light"] .iptv-packages,
[data-bs-theme="light"] .iptv-reviews,
[data-bs-theme="light"] .iptv-faq {
    background: #f8fafc !important;
}

[data-bs-theme="light"] .iptv-split-section {
    background: #f8fafc !important;
}

[data-bs-theme="light"] .iptv-split-alt,
[data-bs-theme="light"] .iptv-movie-gallery,
[data-bs-theme="light"] .iptv-devices,
[data-bs-theme="light"] .iptv-app-section,
[data-bs-theme="light"] .iptv-comparison,
[data-bs-theme="light"] .iptv-channels-bar,
[data-bs-theme="light"] .iptv-blog {
    background: #f1f5f9 !important;
}

/* Cards */
[data-bs-theme="light"] .iptv-card,
[data-bs-theme="light"] .iptv-why-card,
[data-bs-theme="light"] .iptv-device-card,
[data-bs-theme="light"] .iptv-pricing-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-bs-theme="light"] .iptv-card:hover,
[data-bs-theme="light"] .iptv-why-card:hover,
[data-bs-theme="light"] .iptv-device-card:hover,
[data-bs-theme="light"] .iptv-pricing-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-pricing-card.featured {
    background: linear-gradient(180deg, rgba(108,92,231,0.05) 0%, #ffffff 100%) !important;
}

[data-bs-theme="light"] .iptv-card h4,
[data-bs-theme="light"] .iptv-why-card h4,
[data-bs-theme="light"] .iptv-device-card h4 {
    color: #0f172a !important;
}

/* Pricing features list */
[data-bs-theme="light"] .iptv-pricing-features li {
    color: #334155;
    border-bottom-color: rgba(0,0,0,0.05);
}

/* Reviews */
[data-bs-theme="light"] .iptv-reviews .slider-card {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
}

[data-bs-theme="light"] .iptv-reviews .slider-card:hover {
    border-color: rgba(108,92,231,0.2) !important;
}

[data-bs-theme="light"] .review-meta h5 {
    color: #0f172a !important;
}

/* FAQ */
[data-bs-theme="light"] .iptv-faq .accordion-item {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.08) !important;
}

[data-bs-theme="light"] .iptv-faq .accordion-button {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-bs-theme="light"] .iptv-faq .accordion-button::after {
    filter: none;
}

[data-bs-theme="light"] .iptv-faq .accordion-button:not(.collapsed) {
    background: #f1f5f9 !important;
    color: var(--iptv-primary) !important;
}

[data-bs-theme="light"] .iptv-faq .accordion-body {
    background: #ffffff !important;
    color: #475569 !important;
}

/* Blog cards on homepage */
[data-bs-theme="light"] .iptv-blog-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}

[data-bs-theme="light"] .iptv-blog-card:hover {
    border-color: var(--iptv-primary-light);
    box-shadow: 0 16px 48px rgba(108, 92, 231, 0.08);
}

[data-bs-theme="light"] .iptv-blog-card-img {
    background: #e2e8f0;
}

[data-bs-theme="light"] .iptv-blog-card-body h3 {
    color: #0f172a;
}

/* Comparison table */
[data-bs-theme="light"] .iptv-compare-table {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
}

[data-bs-theme="light"] .iptv-compare-header {
    background: #f1f5f9;
}

[data-bs-theme="light"] .iptv-compare-header .iptv-compare-iptv {
    background: rgba(0,206,201,0.08);
}

[data-bs-theme="light"] .iptv-compare-row .iptv-compare-feature {
    color: #334155;
}

[data-bs-theme="light"] .iptv-compare-row .iptv-compare-iptv {
    color: #0f172a;
    background: rgba(0,206,201,0.04);
}

[data-bs-theme="light"] .iptv-compare-row:hover {
    background: #f8fafc;
}

/* Channel ticker */
[data-bs-theme="light"] .iptv-channels-ticker::before {
    background: linear-gradient(90deg, #f1f5f9, transparent);
}

[data-bs-theme="light"] .iptv-channels-ticker::after {
    background: linear-gradient(90deg, transparent, #f1f5f9);
}

[data-bs-theme="light"] .iptv-channel-pill {
    color: #334155;
}

/* Deal banner */
[data-bs-theme="light"] .iptv-deal-banner {
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9) !important;
}

/* Footer */
[data-bs-theme="light"] body.whmcs-templatefile-homepage #footer {
    background: #1e293b !important;
}

[data-bs-theme="light"] body.whmcs-templatefile-homepage .copyright {
    background: #0f172a !important;
}

/* Gallery mobile scrollbar */
[data-bs-theme="light"] .iptv-gallery-mobile::-webkit-scrollbar-track {
    background: #e2e8f0;
}

/* --- CLIENT DASHBOARD: Panel & Button Overrides --- */
.support_tickets .home-panel-summary .panel-body .btn-default,
.support_tickets .home-panel-summary .panel-body .btn-outline-primary,
.support_tickets .home-panel-summary .panel-body a.btn,
.support_tickets .home-panel-summary .list-group-item .btn,
.support_tickets .list-group-item .btn,
.client-dashboard-area .btn-default,
.home-panel-summary .btn-default,
.home-panel-summary .btn,
.home-panel-summary .list-group-item .btn {
    background: transparent !important;
    border: 1px solid rgba(59,130,246,0.5) !important;
    color: #3b82f6 !important;
    border-radius: 8px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}
.support_tickets .home-panel-summary .panel-body .btn-default:hover,
.support_tickets .home-panel-summary .panel-body .btn-outline-primary:hover,
.support_tickets .home-panel-summary .panel-body a.btn:hover,
.client-dashboard-area .btn-default:hover,
.home-panel-summary .btn-default:hover,
.home-panel-summary .btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3) !important;
}
/* "View More..." link */
.support_tickets .home-panel-summary .wgs-a-btn a,
.home-panel-summary .pull-right a,
.home-panel-summary .wgs-a-btn a {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 22px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}
.support_tickets .home-panel-summary .wgs-a-btn a:hover,
.home-panel-summary .pull-right a:hover,
.home-panel-summary .wgs-a-btn a:hover {
    box-shadow: 0 4px 20px rgba(37,99,235,0.4) !important;
    transform: translateY(-1px);
}
/* View Details buttons in service list items */
[data-bs-theme="dark"] .support_tickets .list-group-item .btn,
[data-bs-theme="dark"] .support_tickets a.btn,
[data-bs-theme="dark"] .home-panel-summary .list-group-item .btn {
    background: transparent !important;
    border: 1px solid rgba(59,130,246,0.5) !important;
    color: #3b82f6 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    padding: 6px 16px !important;
}
[data-bs-theme="dark"] .support_tickets .list-group-item .btn:hover,
[data-bs-theme="dark"] .support_tickets a.btn:hover,
[data-bs-theme="dark"] .home-panel-summary .list-group-item .btn:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
}
/* Fix View Details button white outline in dark mode */
[data-bs-theme="dark"] .btn-view-details,
[data-bs-theme="dark"] button.btn.btn-default.btn-sm.btn-view-details {
    background: transparent !important;
    border: none !important;
    color: #3b82f6 !important;
}
[data-bs-theme="dark"] .btn-view-details span {
    border: 1px solid rgba(59,130,246,0.5) !important;
    color: #3b82f6 !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
}
[data-bs-theme="dark"] .btn-view-details:hover span {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
}
/* Active badge */
.home-panel-summary .label-success,
.home-panel-summary .badge-success,
.home-panel-summary .badge.bg-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-weight: 500 !important;
    font-size: 12px !important;
}
/* Panel heading */
.home-panel-summary .panel-title {
    color: #3b82f6 !important;
    font-weight: 700 !important;
}
/* List group items in panels */
.home-panel-summary .list-group-item {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: inherit !important;
    transition: background 0.2s ease;
}
.home-panel-summary .list-group-item:hover {
    background: rgba(59,130,246,0.08) !important;
}

/* ===== Client Area Left Sidebar Overrides ===== */

/* Hide Store (product groups) from left sidebar — not relevant in client area nav */
.hostx-child-side-bar-custom li[menuitemname="Store"],
.hostx-child-side-bar-custom li[menuItemName="Store"] {
    display: none !important;
}

/* Desktop: Force sidebar visible — overrides hostx-client-area-responsive.css
   which hides it with transform: translateX(-100%) at max-width: 1440px */
@media (min-width: 993px) {
    .in-whmcs-default-pages .hostx-child-side-bar-custom {
        transform: translateX(0%) !important;
        position: fixed !important;
        top: 68px !important;
        left: 0 !important;
        width: 250px !important;
        padding-top: 15px !important;
        min-height: calc(100vh - 68px) !important;
        z-index: 1020 !important;
        overflow-y: auto !important;
    }
    .in-whmcs-default-pages.left-side-bar-present #main-body {
        max-width: calc(100% - 250px) !important;
        margin-left: auto !important;
    }
}

/* Dark mode left sidebar */
[data-bs-theme="dark"] .hostx-child-side-bar-custom {
    background: #0f0f23 !important;
    border-right: 1px solid rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .header-side-bar {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .client-name-data {
    color: #e0e0e0 !important;
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a {
    color: #c0c0d0 !important;
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a:hover,
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a.active {
    color: #fff !important;
    background: rgba(59,130,246,0.12) !important;
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a i {
    color: #8888aa !important;
}
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a:hover i,
[data-bs-theme="dark"] .hostx-child-side-bar-custom .hostx-side-nav-list a.active i {
    color: #3b82f6 !important;
}

/* ==========================================
   DARK MODE - Global page backgrounds
   Kill ALL white space on every page
   ========================================== */

/* Body - the root of all white */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] body.primary-bg-color,
[data-bs-theme="dark"] body.primary-bg-color.whmcs-user-loggedin,
[data-bs-theme="dark"] body.primary-bg-color.whmcs-user-loggedout {
    background-color: #0a0a1a !important;
}

/* Main body section */
[data-bs-theme="dark"] section#main-body,
[data-bs-theme="dark"] .hostx-pages-sections {
    background-color: #0a0a1a !important;
}

/* Client area pages wrapper */
[data-bs-theme="dark"] .whmcs-client-area-pages-section,
[data-bs-theme="dark"] .whmcs-client-area-pages-section.container {
    background: #0a0a1a !important;
}

/* All containers and rows */
[data-bs-theme="dark"] .in-whmcs-default-pages .container,
[data-bs-theme="dark"] .in-whmcs-default-pages .row {
    background-color: transparent !important;
}

/* Primary content column */
[data-bs-theme="dark"] .primary-content {
    background: transparent !important;
}

/* Breadcrumb bar */
[data-bs-theme="dark"] .master-breadcrumb.hostx-bread-crumb-data {
    background: rgba(255,255,255,0.02) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Right sidebar */
[data-bs-theme="dark"] .hostx-child-right-side-bar,
[data-bs-theme="dark"] .sidebar.right-sidebar-whmcs-default {
    background: transparent !important;
}

/* Override the CSS variable so all elements using it go dark */
[data-bs-theme="dark"] {
    --bg-white: #0a0a1a;
}

/* Generic white panels / cards / tables that might leak */
[data-bs-theme="dark"] .in-whmcs-default-pages .panel,
[data-bs-theme="dark"] .in-whmcs-default-pages .panel-body,
[data-bs-theme="dark"] .in-whmcs-default-pages .panel-heading,
[data-bs-theme="dark"] .in-whmcs-default-pages .panel-footer {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .panel-heading {
    background: rgba(255,255,255,0.05) !important;
}

/* Tables */
[data-bs-theme="dark"] .in-whmcs-default-pages .table,
[data-bs-theme="dark"] .in-whmcs-default-pages .table th,
[data-bs-theme="dark"] .in-whmcs-default-pages .table td {
    background-color: transparent !important;
    color: #e0e0e0 !important;
    border-color: rgba(255,255,255,0.06) !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .table thead th {
    background: rgba(255,255,255,0.03) !important;
    color: #8a8a9a !important;
}

/* Form controls */
[data-bs-theme="dark"] .in-whmcs-default-pages .form-control,
[data-bs-theme="dark"] .in-whmcs-default-pages select.form-control,
[data-bs-theme="dark"] .in-whmcs-default-pages textarea.form-control {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .form-control::placeholder {
    color: #6a6a7a !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages label {
    color: #c0c0d0 !important;
}

/* Alert boxes */
[data-bs-theme="dark"] .in-whmcs-default-pages .alert {
    border-color: rgba(255,255,255,0.1) !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .alert-info {
    background: rgba(59,130,246,0.1) !important;
    color: #93c5fd !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .alert-success {
    background: rgba(16,185,129,0.1) !important;
    color: #6ee7b7 !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .alert-warning {
    background: rgba(245,158,11,0.1) !important;
    color: #fcd34d !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages .alert-danger {
    background: rgba(239,68,68,0.1) !important;
    color: #fca5a5 !important;
}

/* Well / jumbotron */
[data-bs-theme="dark"] .in-whmcs-default-pages .well {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e0e0e0 !important;
}

/* List groups */
[data-bs-theme="dark"] .in-whmcs-default-pages .list-group-item {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e0e0e0 !important;
}

/* Generic text */
[data-bs-theme="dark"] .in-whmcs-default-pages h1,
[data-bs-theme="dark"] .in-whmcs-default-pages h2,
[data-bs-theme="dark"] .in-whmcs-default-pages h3,
[data-bs-theme="dark"] .in-whmcs-default-pages h4,
[data-bs-theme="dark"] .in-whmcs-default-pages h5 {
    color: #fff !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages p,
[data-bs-theme="dark"] .in-whmcs-default-pages span,
[data-bs-theme="dark"] .in-whmcs-default-pages .text-muted {
    color: #8a8a9a !important;
}

[data-bs-theme="dark"] .in-whmcs-default-pages a:not(.btn):not(.iptv-nav-link):not(.iptv-drop-item):not(.iptv-nav-cta):not(.iptv-nav-account-btn):not(.iptv-logo) {
    color: #3b82f6;
}

/* Footer area */
[data-bs-theme="dark"] footer,
[data-bs-theme="dark"] .footer-area,
[data-bs-theme="dark"] .hostx-footer {
    background: #070714 !important;
}

/* Dark mode WHMCS default dashboard panels */
[data-bs-theme="dark"] .client-home-cards .card {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
}
[data-bs-theme="dark"] .client-home-cards .card-header {
    background: rgba(255,255,255,0.02) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
[data-bs-theme="dark"] .client-home-cards .card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

/* Light mode sidebar adjustments */
[data-bs-theme="light"] .hostx-child-side-bar-custom {
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0;
}
[data-bs-theme="light"] .whmcs-client-area-pages-section.container {
    background: #f1f5f9 !important;
}

/* ==========================================
   KNOWLEDGE BASE - Dark Mode Fixes
   ========================================== */

/* KB category cards */
[data-bs-theme="dark"] .kb-category.card {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .kb-category.card:hover {
    background: rgba(255,255,255,0.07) !important;
    border-color: rgba(108,92,231,0.3) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

[data-bs-theme="dark"] .kb-category .card-body {
    color: #e0e0e0 !important;
    text-decoration: none !important;
}

[data-bs-theme="dark"] .kb-category .card-body .h5,
[data-bs-theme="dark"] .kb-category .card-body span.h5 {
    color: #fff !important;
}

[data-bs-theme="dark"] .kb-category .card-body .text-muted {
    color: #8a8a9a !important;
}

/* KB article badges ("X Articles" buttons) */
[data-bs-theme="dark"] .hx-small-btn.hx-primary-btn.badge,
[data-bs-theme="dark"] .kb-category .badge-info {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 5px 12px !important;
    font-family: "DM Sans", sans-serif;
}

/* KB search button */
[data-bs-theme="dark"] .button-style.hx-secondary,
[data-bs-theme="dark"] #btnKnowledgebaseSearch {
    background: rgba(108,92,231,0.15) !important;
    border: 1px solid rgba(108,92,231,0.4) !important;
    color: #a29bfe !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-family: "DM Sans", sans-serif;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .button-style.hx-secondary:hover,
[data-bs-theme="dark"] #btnKnowledgebaseSearch:hover {
    background: linear-gradient(135deg, #6c5ce7, #4834d4) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* KB search input */
[data-bs-theme="dark"] #inputKnowledgebaseSearch {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
    border-radius: 10px !important;
}

[data-bs-theme="dark"] #inputKnowledgebaseSearch::placeholder {
    color: #8a8a9a !important;
}

/* KB breadcrumb & page heading */
[data-bs-theme="dark"] .knowledgebase-title,
[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .panel-heading,
[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase h3 {
    color: #fff !important;
}

/* KB article list items */
[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .list-group-item {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .list-group-item:hover {
    background: rgba(255,255,255,0.06) !important;
}

[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .list-group-item a {
    color: #3b82f6 !important;
}

/* KB panel/card backgrounds */
[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .card,
[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .panel {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

[data-bs-theme="dark"] .whmcs-templatefile-knowledgebase .card-body {
    color: #e0e0e0 !important;
}

/* ==========================================
   GLOBAL DARK MODE - Buttons (hx-primary / hx-secondary)
   ========================================== */

/* Primary buttons (Save Changes, Submit, etc.) */
[data-bs-theme="dark"] .button-style.hx-primary-btn,
[data-bs-theme="dark"] input.button-style.hx-primary-btn,
[data-bs-theme="dark"] .hx-primary-btn {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-family: "DM Sans", sans-serif;
    padding: 10px 28px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29,78,216,0.35);
}

[data-bs-theme="dark"] .button-style.hx-primary-btn:hover,
[data-bs-theme="dark"] input.button-style.hx-primary-btn:hover,
[data-bs-theme="dark"] .hx-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.5) !important;
}

/* Secondary buttons (Cancel, Reset, etc.) */
[data-bs-theme="dark"] input.button-style.hx-secondary,
[data-bs-theme="dark"] .button-style.hx-secondary:not(#btnKnowledgebaseSearch) {
    background: rgba(108,92,231,0.15) !important;
    border: 1px solid rgba(108,92,231,0.4) !important;
    color: #a29bfe !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-family: "DM Sans", sans-serif;
    padding: 10px 28px !important;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] input.button-style.hx-secondary:hover,
[data-bs-theme="dark"] .button-style.hx-secondary:not(#btnKnowledgebaseSearch):hover {
    background: linear-gradient(135deg, #6c5ce7, #4834d4) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* Generic btn-default and btn-primary dark mode */
[data-bs-theme="dark"] .whmcs-client-area-pages-section .btn-primary,
[data-bs-theme="dark"] .in-whmcs-default-pages .btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 10px !important;
}

[data-bs-theme="dark"] .whmcs-client-area-pages-section .btn-default,
[data-bs-theme="dark"] .in-whmcs-default-pages .btn-default {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #e0e0e0 !important;
    border-radius: 10px !important;
}

[data-bs-theme="dark"] .whmcs-client-area-pages-section .btn-default:hover,
[data-bs-theme="dark"] .in-whmcs-default-pages .btn-default:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* ==========================================
   LOGIN PAGE - Dark Mode Fixes
   ========================================== */

/* Remember Me checkbox - works in both dark and light mode */
input#remb-me,
.rember-me-login .form-check-input,
.login-form-hostx-default input#remb-me {
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    cursor: pointer !important;
    opacity: 1 !important;
    position: relative !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
    accent-color: #3b82f6 !important;
}

/* Dark mode label color */
[data-bs-theme="dark"] .rember-me-login,
[data-bs-theme="dark"] .latest-hostx-login-register-pg .rember-me-login,
[data-bs-theme="dark"] .latest-hostx-login-register-pg .rember-forgot-area .rember-me-login {
    color: #c0c0d0 !important;
}

/* Light mode label color */
[data-bs-theme="light"] .rember-me-login,
[data-bs-theme="light"] .latest-hostx-login-register-pg .rember-forgot-area .rember-me-login {
    color: #374151 !important;
}

/* Forgot password link */
[data-bs-theme="dark"] .rember-forgot-area a {
    color: #8a8a9a !important;
}

[data-bs-theme="dark"] .rember-forgot-area a:hover {
    color: #3b82f6 !important;
}

/* Login form card */
[data-bs-theme="dark"] .login-latest-panel .card {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* Login form inputs */
[data-bs-theme="dark"] .login-form-hostx-default .form-control {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
}

[data-bs-theme="dark"] .login-form-hostx-default .form-control::placeholder {
    color: #6a6a7a !important;
}

/* Password reveal button */
[data-bs-theme="dark"] .btn-reveal-pw {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #8a8a9a !important;
}

/* Login heading */
[data-bs-theme="dark"] .login-panel-heading .heading-mn {
    color: #fff !important;
}

[data-bs-theme="dark"] .head-descrp-mn {
    color: #8a8a9a !important;
}

/* Login page background */
[data-bs-theme="dark"] .latest-hostx-login-register-pg {
    background: #0a0a1a !important;
}

/* Create account link */
[data-bs-theme="dark"] .create-acc-section {
    color: #8a8a9a !important;
}

[data-bs-theme="dark"] .create-acc-section a {
    color: #3b82f6 !important;
}

/* ===== Dashboard buttons: Active, View Details, View More ===== */
[data-bs-theme="dark"] .btnsst a.btn.bggreen {
    background: rgba(39,175,52,0.25) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(39,175,52,0.4) !important;
}
[data-bs-theme="dark"] .btnsst a.btn.brborder {
    border: 1px solid rgba(255,255,255,0.15) !important;
    color: #c0c0d0 !important;
}
[data-bs-theme="dark"] .btnsst a.btn.brborder:hover {
    border-color: rgba(59,130,246,0.5) !important;
    color: #3b82f6 !important;
}
[data-bs-theme="dark"] .btnsst a.btn.bgblue {
    background: rgba(108,92,231,0.25) !important;
    color: #a29bfe !important;
    border: 1px solid rgba(108,92,231,0.4) !important;
}
[data-bs-theme="dark"] .btnsst a.btn {
    font-weight: 500 !important;
}

/* View Details button: remove light border in light mode */
[data-bs-theme="light"] .btnsst a.btn.brborder {
    border: 1px solid #d1d5db !important;
    color: #6b7280 !important;
}
[data-bs-theme="light"] .btn-view-details span {
    border-color: #d1d5db !important;
    color: #4b5563 !important;
}
[data-bs-theme="light"] .btn-view-details:hover span {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ===== Invoice & Service status badges: Paid/Active in dark mode ===== */
[data-bs-theme="dark"] .label.status {
    color: #fff !important;
    font-weight: 600 !important;
}
[data-bs-theme="dark"] .label.status-paid,
[data-bs-theme="dark"] .label.status.status-paid,
[data-bs-theme="dark"] span.label.status-paid {
    background: rgba(39,175,52,0.3) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(39,175,52,0.4) !important;
}
[data-bs-theme="dark"] .label.status-active,
[data-bs-theme="dark"] .label.status.status-active,
[data-bs-theme="dark"] span.label.status-active {
    background: rgba(39,175,52,0.3) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(39,175,52,0.4) !important;
}
[data-bs-theme="dark"] .label.status-unpaid,
[data-bs-theme="dark"] .label.status.status-unpaid,
[data-bs-theme="dark"] span.label.status-unpaid {
    background: rgba(239,68,68,0.3) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
}
[data-bs-theme="dark"] .label.status-pending,
[data-bs-theme="dark"] .label.status.status-pending,
[data-bs-theme="dark"] span.label.status-pending {
    background: rgba(245,158,11,0.3) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245,158,11,0.4) !important;
}
[data-bs-theme="dark"] .label.status-cancelled,
[data-bs-theme="dark"] .label.status.status-cancelled,
[data-bs-theme="dark"] span.label.status-cancelled {
    background: rgba(107,114,128,0.3) !important;
    color: #d1d5db !important;
    border: 1px solid rgba(107,114,128,0.4) !important;
}
[data-bs-theme="dark"] .label.status-overdue,
[data-bs-theme="dark"] .label.status.status-overdue,
[data-bs-theme="dark"] span.label.status-overdue {
    background: rgba(239,68,68,0.3) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239,68,68,0.4) !important;
}
[data-bs-theme="dark"] .label.status-refunded,
[data-bs-theme="dark"] .label.status.status-refunded,
[data-bs-theme="dark"] span.label.status-refunded {
    background: rgba(59,130,246,0.3) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59,130,246,0.4) !important;
}
[data-bs-theme="dark"] .label.status-collections,
[data-bs-theme="dark"] .label.status.status-collections,
[data-bs-theme="dark"] span.label.status-collections {
    background: rgba(168,85,247,0.3) !important;
    color: #c4b5fd !important;
    border: 1px solid rgba(168,85,247,0.4) !important;
}

/* ===== Bouquet / Channel Modal: dark mode ===== */
[data-bs-theme="dark"] .cp-enhanced .cp-modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-header {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(0,206,201,0.08)) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-title {
    color: #fff !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-close {
    background: rgba(255,255,255,0.08) !important;
    color: #8a8a9a !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-close:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-bouquet-tabs {
    background: #12122a !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-bouquet-tabs .nav-link {
    color: #8a8a9a !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-bouquet-tabs .nav-link.active {
    color: #a29bfe !important;
    border-bottom-color: #6c5ce7 !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-body-bouquet {
    background: #1a1a2e !important;
    scrollbar-color: rgba(255,255,255,0.15) transparent !important;
}
[data-bs-theme="dark"] .cp-enhanced .checkbox-grid label {
    color: #e0e0e0 !important;
}
[data-bs-theme="dark"] .cp-enhanced .checkbox-grid label:hover {
    background: rgba(108,92,231,0.1) !important;
}
[data-bs-theme="dark"] .cp-enhanced .checkbox-grid input[type="checkbox"] {
    accent-color: #6c5ce7 !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-footer {
    background: #12122a !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-btn-secondary {
    background: rgba(255,255,255,0.06) !important;
    color: #c0c0d0 !important;
    border-color: rgba(255,255,255,0.12) !important;
}
[data-bs-theme="dark"] .cp-enhanced .cp-modal-btn-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

/* Also fix modal-content for non cp-enhanced context */
[data-bs-theme="dark"] #channelModal .modal-content {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ================================================================
   SUPPORT TICKETS - Enterprise Redesign
   ================================================================ */

/* --- Support Header --- */
.ent-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.ent-support-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ent-support-title i {
    font-size: 28px;
    color: #6c5ce7;
}
.ent-support-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.6;
}
.ent-support-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.ent-support-new-btn:hover,
.ent-support-new-btn:focus,
.ent-support-new-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
    text-decoration: none !important;
}
[data-bs-theme="dark"] .ent-support-new-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
}
[data-bs-theme="dark"] .ent-support-new-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
}
[data-bs-theme="light"] .ent-support-new-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff !important;
}
[data-bs-theme="light"] .ent-support-new-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff !important;
}

/* --- Toolbar: Filters + Search --- */
.ent-support-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.ent-support-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ent-support-filter-tab {
    padding: 7px 16px;
    border: 1px solid rgba(108,92,231,0.15);
    background: transparent;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
[data-bs-theme="dark"] .ent-support-filter-tab {
    color: #a0a0b0;
    border-color: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .ent-support-filter-tab:hover {
    color: #fff;
    border-color: rgba(108,92,231,0.5);
    background: rgba(108,92,231,0.1);
}
[data-bs-theme="light"] .ent-support-filter-tab {
    color: #6b7280;
    border-color: #d1d5db;
}
[data-bs-theme="light"] .ent-support-filter-tab:hover {
    color: #374151;
    border-color: rgba(108,92,231,0.4);
    background: rgba(108,92,231,0.04);
}
.ent-support-filter-tab.active {
    background: linear-gradient(135deg, #6c5ce7, #4f46e5) !important;
    color: #fff !important;
    border-color: transparent !important;
}
.ent-support-search {
    position: relative;
    min-width: 220px;
}
.ent-support-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.4;
}
.ent-support-search input {
    width: 100%;
    padding: 8px 14px 8px 38px;
    border: 1px solid rgba(108,92,231,0.15);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: transparent;
    color: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}
.ent-support-search input:focus {
    border-color: #6c5ce7;
}
[data-bs-theme="dark"] .ent-support-search input {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}
[data-bs-theme="dark"] .ent-support-search input:focus {
    border-color: #6c5ce7;
}

/* --- Table Wrap --- */
.ent-support-table-wrap {
    border-radius: 12px;
    overflow: hidden;
}
[data-bs-theme="dark"] .ent-support-table-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
[data-bs-theme="light"] .ent-support-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* --- Ticket Row --- */
.ent-ticket-row {
    cursor: pointer;
    transition: background 0.15s ease;
}
[data-bs-theme="dark"] .ent-ticket-row td {
    color: #c0c0d0 !important;
}
[data-bs-theme="dark"] .ent-ticket-row:hover td {
    background: rgba(108,92,231,0.08) !important;
    color: #fff !important;
}
[data-bs-theme="light"] .ent-ticket-row td {
    color: #374151 !important;
}
[data-bs-theme="light"] .ent-ticket-row:hover td {
    background: rgba(108,92,231,0.04) !important;
    color: #1f2937 !important;
}
.ent-ticket-dept {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
[data-bs-theme="dark"] .ent-ticket-dept {
    color: #8a8a9a;
}
[data-bs-theme="dark"] .ent-ticket-row:hover .ent-ticket-dept {
    color: #c0c0d0;
}
[data-bs-theme="light"] .ent-ticket-dept {
    color: #6b7280;
}
.ent-ticket-id {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}
[data-bs-theme="dark"] .ent-ticket-id {
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-ticket-id {
    color: #6c5ce7;
}
.ent-ticket-subject {
    font-weight: 500;
}
.ent-ticket-subject.unread {
    font-weight: 700;
}
[data-bs-theme="dark"] .ent-ticket-subject {
    color: #e0e0e0;
}
[data-bs-theme="dark"] .ent-ticket-subject.unread {
    color: #fff;
}
[data-bs-theme="light"] .ent-ticket-subject {
    color: #1f2937;
}
[data-bs-theme="light"] .ent-ticket-subject.unread {
    color: #111827;
}
.ent-ticket-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}
[data-bs-theme="dark"] .ent-ticket-date {
    color: #8a8a9a;
}
[data-bs-theme="light"] .ent-ticket-date {
    color: #6b7280;
}

/* --- Empty State --- */
.ent-support-empty {
    text-align: center;
    padding: 60px 20px;
}
.ent-support-empty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}
[data-bs-theme="dark"] .ent-support-empty-icon {
    background: rgba(108,92,231,0.15);
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-support-empty-icon {
    background: rgba(108,92,231,0.08);
    color: #6c5ce7;
}
.ent-support-empty h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}
.ent-support-empty p {
    opacity: 0.6;
    margin-bottom: 24px;
}

/* ================================================================
   SUBMIT TICKET - Department Selection & Form
   ================================================================ */

.ent-submit-ticket-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.ent-submit-ticket-header {
    text-align: center;
    margin-bottom: 32px;
}
.ent-submit-ticket-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}
[data-bs-theme="dark"] .ent-submit-ticket-header-icon {
    background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,201,0.1));
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-submit-ticket-header-icon {
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.06));
    color: #6c5ce7;
}
.ent-submit-ticket-header h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px;
}
.ent-submit-ticket-header p {
    font-size: 14px;
    opacity: 0.6;
    margin: 0;
}

/* --- Department Grid --- */
.ent-dept-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ent-dept-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
}
[data-bs-theme="dark"] .ent-dept-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e0e0e0;
}
[data-bs-theme="dark"] .ent-dept-card:hover {
    background: rgba(108,92,231,0.1);
    border-color: rgba(108,92,231,0.3);
    transform: translateX(4px);
    color: #fff;
}
[data-bs-theme="dark"] .ent-dept-card:hover .ent-dept-info h5 {
    color: #fff !important;
}
[data-bs-theme="dark"] .ent-dept-card:hover .ent-dept-info p {
    color: #c0c0d0 !important;
    opacity: 0.8;
}
[data-bs-theme="light"] .ent-dept-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-bs-theme="light"] .ent-dept-card:hover {
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 4px 12px rgba(108,92,231,0.1);
    transform: translateX(4px);
    color: #1f2937;
}
[data-bs-theme="light"] .ent-dept-card:hover .ent-dept-info h5 {
    color: #111827 !important;
}
[data-bs-theme="light"] .ent-dept-card:hover .ent-dept-info p {
    color: #4b5563 !important;
    opacity: 0.9;
}
[data-bs-theme="light"] .ent-dept-info h5 {
    color: #1f2937;
}
[data-bs-theme="light"] .ent-dept-info p {
    color: #6b7280;
}
.ent-dept-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .ent-dept-icon {
    background: rgba(108,92,231,0.15);
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-dept-icon {
    background: rgba(108,92,231,0.08);
    color: #6c5ce7;
}
.ent-dept-info {
    flex: 1;
}
.ent-dept-info h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 2px;
}
[data-bs-theme="dark"] .ent-dept-info h5 {
    color: #fff;
}
.ent-dept-info p {
    font-size: 13px;
    opacity: 0.6;
    margin: 0;
}
.ent-dept-arrow {
    font-size: 18px;
    opacity: 0.3;
    transition: all 0.2s ease;
}
.ent-dept-card:hover .ent-dept-arrow {
    opacity: 0.8;
    color: #6c5ce7;
    transform: translateX(4px);
}

/* --- Submit Ticket Footer --- */
.ent-submit-ticket-footer {
    text-align: center;
    margin-top: 32px;
}
.ent-submit-ticket-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.ent-submit-ticket-footer a:hover {
    opacity: 1;
}

/* --- Ticket Form (Step 2) --- */
.ent-ticket-form {
    padding: 0;
}
.ent-form-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}
[data-bs-theme="dark"] .ent-form-label {
    color: #c0c0d0;
}
.ent-form-input,
.ent-form-select,
.ent-form-textarea {
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s ease !important;
}
[data-bs-theme="dark"] .ent-form-input,
[data-bs-theme="dark"] .ent-form-select,
[data-bs-theme="dark"] .ent-form-textarea {
    background: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
}
[data-bs-theme="dark"] .ent-form-input:focus,
[data-bs-theme="dark"] .ent-form-select:focus,
[data-bs-theme="dark"] .ent-form-textarea:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15) !important;
}
[data-bs-theme="light"] .ent-form-input:focus,
[data-bs-theme="light"] .ent-form-select:focus,
[data-bs-theme="light"] .ent-form-textarea:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1) !important;
}
.ent-form-textarea {
    min-height: 180px;
    resize: vertical;
}

/* File upload area */
.ent-file-upload-area {
    padding: 16px;
    border-radius: 10px;
}
[data-bs-theme="dark"] .ent-file-upload-area {
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
}
[data-bs-theme="light"] .ent-file-upload-area {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
}
.ent-add-file-btn {
    border-radius: 8px !important;
}

/* Form actions */
.ent-ticket-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(108,92,231,0.1);
}
.ent-ticket-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
[data-bs-theme="dark"] .ent-ticket-cancel-btn {
    background: rgba(255,255,255,0.06);
    color: #c0c0d0 !important;
    border: 1px solid rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .ent-ticket-cancel-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}
[data-bs-theme="light"] .ent-ticket-cancel-btn {
    background: #fff;
    color: #6b7280 !important;
    border: 1px solid #d1d5db;
}
[data-bs-theme="light"] .ent-ticket-cancel-btn:hover {
    border-color: #9ca3af;
    color: #374151 !important;
}

/* --- Light mode: form inputs & file upload --- */
[data-bs-theme="light"] .ent-form-input,
[data-bs-theme="light"] .ent-form-select,
[data-bs-theme="light"] .ent-form-textarea {
    background: #fff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}
[data-bs-theme="light"] .ent-form-label {
    color: #374151;
}
[data-bs-theme="light"] .ent-add-file-btn {
    background: #fff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}
[data-bs-theme="dark"] .ent-add-file-btn {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #c0c0d0 !important;
}

/* --- Light mode: empty state, header text --- */
[data-bs-theme="light"] .ent-support-title {
    color: #111827;
}
[data-bs-theme="light"] .ent-support-subtitle {
    color: #6b7280;
}
[data-bs-theme="dark"] .ent-support-title {
    color: #fff;
}
[data-bs-theme="dark"] .ent-support-subtitle {
    color: #8a8a9a;
}
[data-bs-theme="light"] .ent-support-empty h4 {
    color: #111827;
}
[data-bs-theme="light"] .ent-support-empty p {
    color: #6b7280;
}
[data-bs-theme="dark"] .ent-support-empty h4 {
    color: #fff;
}
[data-bs-theme="dark"] .ent-support-empty p {
    color: #8a8a9a;
}
[data-bs-theme="light"] .ent-submit-ticket-header h3 {
    color: #111827;
}
[data-bs-theme="light"] .ent-submit-ticket-header p {
    color: #6b7280;
}
[data-bs-theme="dark"] .ent-submit-ticket-header h3 {
    color: #fff;
}
[data-bs-theme="dark"] .ent-submit-ticket-header p {
    color: #8a8a9a;
}

/* --- Light mode: submit ticket footer link --- */
[data-bs-theme="light"] .ent-submit-ticket-footer a {
    color: #6b7280;
}
[data-bs-theme="light"] .ent-submit-ticket-footer a:hover {
    color: #6c5ce7;
}
[data-bs-theme="dark"] .ent-submit-ticket-footer a {
    color: #8a8a9a;
}
[data-bs-theme="dark"] .ent-submit-ticket-footer a:hover {
    color: #a29bfe;
}

/* --- Light mode: ticket card (mobile) --- */
[data-bs-theme="light"] .ent-ticket-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-bs-theme="light"] .ent-ticket-card:hover {
    border-color: rgba(108,92,231,0.3) !important;
    box-shadow: 0 4px 12px rgba(108,92,231,0.08);
}
[data-bs-theme="light"] .ent-ticket-card-id {
    color: #6c5ce7 !important;
}
[data-bs-theme="light"] .ent-ticket-card-subject {
    color: #1f2937 !important;
}
[data-bs-theme="light"] .ent-ticket-card-dept,
[data-bs-theme="light"] .ent-ticket-card-date {
    color: #6b7280 !important;
}

/* --- Responsive: Tablets --- */
@media (max-width: 991px) {
    .ent-support-header {
        gap: 12px;
    }
    .ent-support-title {
        font-size: 22px;
    }
    .ent-submit-ticket-wrap {
        max-width: 100%;
        padding: 0 4px;
    }
    .ent-dept-card {
        padding: 14px 16px;
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .ent-support-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ent-support-header-right {
        width: 100%;
    }
    .ent-support-new-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }
    .ent-support-title {
        font-size: 20px;
    }
    .ent-support-title i {
        font-size: 22px;
    }
    .ent-support-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .ent-support-search {
        min-width: unset;
        width: 100%;
    }
    .ent-support-search input {
        width: 100%;
        padding: 10px 14px 10px 38px;
    }
    .ent-support-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ent-support-filters::-webkit-scrollbar {
        display: none;
    }
    .ent-support-filter-tab {
        padding: 8px 14px;
        font-size: 12px;
        flex-shrink: 0;
    }

    /* Hide desktop table, show mobile cards */
    .ent-tickets-desktop {
        display: none !important;
    }
    .ent-tickets-mobile {
        display: block !important;
    }

    /* Mobile ticket cards */
    .ent-ticket-card {
        display: block;
        padding: 14px 16px;
        margin-bottom: 10px;
        border-radius: 12px;
        text-decoration: none !important;
    }
    .ent-ticket-card-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 10px;
    }
    .ent-ticket-card-info {
        flex: 1;
        min-width: 0;
    }
    .ent-ticket-card-id {
        font-size: 12px;
        font-weight: 600;
        display: block;
        margin-bottom: 2px;
    }
    .ent-ticket-card-subject {
        font-size: 14px;
        font-weight: 500;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .ent-ticket-card-status {
        flex-shrink: 0;
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 12px;
        font-weight: 600;
    }
    .ent-ticket-card-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(128,128,128,0.1);
    }

    /* Department cards mobile */
    .ent-dept-card {
        padding: 14px 14px;
        gap: 12px;
    }
    .ent-dept-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .ent-dept-info h5 {
        font-size: 14px;
    }
    .ent-dept-info p {
        font-size: 12px;
    }

    /* Submit ticket header mobile */
    .ent-submit-ticket-header {
        margin-bottom: 24px;
    }
    .ent-submit-ticket-header-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .ent-submit-ticket-header h3 {
        font-size: 20px;
    }

    /* Form mobile */
    .ent-ticket-form .row {
        margin-left: 0;
        margin-right: 0;
    }
    .ent-ticket-form .form-group {
        margin-bottom: 16px;
    }
    .ent-ticket-form .col-md-4,
    .ent-ticket-form .col-md-6 {
        padding-left: 0;
        padding-right: 0;
    }
    .ent-form-textarea {
        min-height: 140px;
    }
    .ent-ticket-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .ent-support-new-btn,
    .ent-ticket-cancel-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Empty state mobile */
    .ent-support-empty {
        padding: 40px 16px;
    }
    .ent-support-empty-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
}

/* --- Responsive: Small phones --- */
@media (max-width: 480px) {
    .ent-support-title {
        font-size: 18px;
    }
    .ent-support-title i {
        font-size: 20px;
    }
    .ent-support-subtitle {
        font-size: 13px;
    }
    .ent-support-filter-tab {
        padding: 6px 12px;
        font-size: 11px;
    }
    .ent-ticket-card {
        padding: 12px 14px;
    }
    .ent-ticket-card-subject {
        font-size: 13px;
    }
    .ent-dept-card {
        padding: 12px 12px;
        gap: 10px;
    }
    .ent-dept-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }
    .ent-dept-info h5 {
        font-size: 13px;
    }
    .ent-dept-info p {
        font-size: 11px;
    }
    .ent-submit-ticket-header h3 {
        font-size: 18px;
    }
}

/* ================================================================
   MODERN LOGIN PAGE
   ================================================================ */

/* Override parent template layout for login page */
.whmcs-templatefile-login .hostx-pages-sections,
.whmcs-templatefile-login #main-body,
.whmcs-templatefile-login .whmcs-client-area-pages-section,
.whmcs-templatefile-login .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}
.whmcs-templatefile-login .row,
.whmcs-templatefile-login .primary-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
.whmcs-templatefile-login .master-breadcrumb {
    display: none !important;
}

/* --- Login Wrapper: Split layout --- */
.ent-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --- Left Panel: Branding --- */
.ent-login-left {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}
[data-bs-theme="dark"] .ent-login-left {
    background: linear-gradient(145deg, #0f0c29, #1a1a3e 50%, #0a0a2e);
}
[data-bs-theme="light"] .ent-login-left {
    background: linear-gradient(145deg, #4338ca, #6c5ce7 50%, #7c3aed);
}
.ent-login-left::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0.06;
}
[data-bs-theme="dark"] .ent-login-left::before {
    background: radial-gradient(circle, #6c5ce7, transparent);
}
[data-bs-theme="light"] .ent-login-left::before {
    background: radial-gradient(circle, #fff, transparent);
}
.ent-login-left::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.05;
}
[data-bs-theme="dark"] .ent-login-left::after {
    background: radial-gradient(circle, #00cec9, transparent);
}
[data-bs-theme="light"] .ent-login-left::after {
    background: radial-gradient(circle, #fff, transparent);
}
.ent-login-left-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}
.ent-login-logo img {
    height: 40px;
    margin-bottom: 48px;
    display: block;
}
.ent-login-hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 16px;
}
.ent-login-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 40px;
}
[data-bs-theme="dark"] .ent-login-hero p {
    color: rgba(255,255,255,0.55);
}
[data-bs-theme="light"] .ent-login-hero p {
    color: rgba(255,255,255,0.75);
}

/* Features list */
.ent-login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ent-login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ent-login-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
[data-bs-theme="dark"] .ent-login-feature-icon {
    background: rgba(255,255,255,0.08);
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-login-feature-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.ent-login-feature strong {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.ent-login-feature span {
    font-size: 13px;
}
[data-bs-theme="dark"] .ent-login-feature span {
    color: rgba(255,255,255,0.45);
}
[data-bs-theme="light"] .ent-login-feature span {
    color: rgba(255,255,255,0.7);
}

/* --- Right Panel: Form --- */
.ent-login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}
[data-bs-theme="dark"] .ent-login-right {
    background: #0a0a1a;
}
[data-bs-theme="light"] .ent-login-right {
    background: #f8fafc;
}
.ent-login-form-wrap {
    width: 100%;
    max-width: 420px;
}

/* Mobile logo (hidden on desktop) */
.ent-login-mobile-logo {
    display: none;
    margin-bottom: 32px;
}
.ent-login-mobile-logo img {
    height: 36px;
}
[data-bs-theme="dark"] .ent-login-mobile-logo .logo-light {
    display: none;
}
[data-bs-theme="dark"] .ent-login-mobile-logo .logo-dark {
    display: inline;
}
[data-bs-theme="light"] .ent-login-mobile-logo .logo-dark {
    display: none;
}
[data-bs-theme="light"] .ent-login-mobile-logo .logo-light {
    display: inline;
}

/* Form header */
.ent-login-form-header h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
}
[data-bs-theme="dark"] .ent-login-form-header h2 {
    color: #fff;
}
[data-bs-theme="light"] .ent-login-form-header h2 {
    color: #111827;
}
.ent-login-form-header p {
    font-size: 14px;
    margin: 0 0 32px;
}
[data-bs-theme="dark"] .ent-login-form-header p {
    color: #8a8a9a;
}
[data-bs-theme="light"] .ent-login-form-header p {
    color: #6b7280;
}

/* Form fields */
.ent-login-field {
    margin-bottom: 20px;
}
.ent-login-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}
[data-bs-theme="dark"] .ent-login-field label {
    color: #c0c0d0;
}
[data-bs-theme="light"] .ent-login-field label {
    color: #374151;
}
.ent-login-field label i {
    font-size: 14px;
    opacity: 0.6;
}
.ent-login-field input[type="email"],
.ent-login-field input[type="password"],
.ent-login-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}
[data-bs-theme="dark"] .ent-login-field input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #e0e0e0 !important;
}
[data-bs-theme="dark"] .ent-login-field input:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.15) !important;
}
[data-bs-theme="dark"] .ent-login-field input::placeholder {
    color: #555 !important;
}
[data-bs-theme="light"] .ent-login-field input {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}
[data-bs-theme="light"] .ent-login-field input:focus {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1) !important;
}
[data-bs-theme="light"] .ent-login-field input::placeholder {
    color: #9ca3af !important;
}

/* Password field with toggle */
.ent-login-password-wrap {
    position: relative;
}
.ent-login-password-wrap input {
    padding-right: 48px !important;
}
.ent-login-pw-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
}
[data-bs-theme="dark"] .ent-login-pw-toggle {
    color: #666;
}
[data-bs-theme="dark"] .ent-login-pw-toggle:hover {
    color: #a29bfe;
}
[data-bs-theme="light"] .ent-login-pw-toggle {
    color: #9ca3af;
}
[data-bs-theme="light"] .ent-login-pw-toggle:hover {
    color: #6c5ce7;
}

/* Remember + Forgot */
.ent-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.ent-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}
[data-bs-theme="dark"] .ent-login-remember span {
    color: #a0a0b0;
}
[data-bs-theme="light"] .ent-login-remember span {
    color: #6b7280;
}
.ent-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6c5ce7;
    cursor: pointer;
}
.ent-login-forgot {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
}
[data-bs-theme="dark"] .ent-login-forgot {
    color: #a29bfe !important;
}
[data-bs-theme="dark"] .ent-login-forgot:hover {
    color: #c4b5fd !important;
}
[data-bs-theme="light"] .ent-login-forgot {
    color: #6c5ce7 !important;
}
[data-bs-theme="light"] .ent-login-forgot:hover {
    color: #4f46e5 !important;
}

/* Captcha */
.ent-login-captcha {
    margin-bottom: 20px;
    text-align: center;
}

/* Submit button */
.ent-login-submit {
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #6c5ce7, #4f46e5) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}
.ent-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,92,231,0.4);
    background: linear-gradient(135deg, #5b4bd5, #4338ca) !important;
    color: #fff !important;
}
.ent-login-submit:active {
    transform: translateY(0);
}

/* Footer */
.ent-login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
}
[data-bs-theme="dark"] .ent-login-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
}
[data-bs-theme="light"] .ent-login-footer {
    border-top: 1px solid #e5e7eb;
}
.ent-login-footer span {
    font-size: 14px;
}
[data-bs-theme="dark"] .ent-login-footer span {
    color: #8a8a9a;
}
[data-bs-theme="light"] .ent-login-footer span {
    color: #6b7280;
}
.ent-login-footer a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
[data-bs-theme="dark"] .ent-login-footer a {
    color: #a29bfe !important;
}
[data-bs-theme="dark"] .ent-login-footer a:hover {
    color: #c4b5fd !important;
}
[data-bs-theme="light"] .ent-login-footer a {
    color: #6c5ce7 !important;
}
[data-bs-theme="light"] .ent-login-footer a:hover {
    color: #4f46e5 !important;
}

/* Flash messages inside login form */
.ent-login-form .alert {
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
}

/* --- Login Page Responsive --- */
@media (max-width: 991px) {
    .ent-login-left {
        flex: 0 0 40%;
        padding: 40px 32px;
    }
    .ent-login-hero h1 {
        font-size: 30px;
    }
    .ent-login-hero p {
        font-size: 14px;
    }
    .ent-login-logo img {
        margin-bottom: 36px;
    }
}

@media (max-width: 768px) {
    .ent-login-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    .ent-login-left {
        display: none;
    }
    .ent-login-right {
        min-height: 100vh;
        padding: 40px 24px;
        align-items: flex-start;
        padding-top: 60px;
    }
    .ent-login-mobile-logo {
        display: block;
        text-align: center;
    }
    .ent-login-form-header {
        text-align: center;
    }
    .ent-login-form-header h2 {
        font-size: 24px;
    }
    .ent-login-form-wrap {
        max-width: 100%;
    }
    .ent-login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .ent-login-forgot {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .ent-login-right {
        padding: 32px 18px;
        padding-top: 48px;
    }
    .ent-login-form-header h2 {
        font-size: 22px;
    }
    .ent-login-submit {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ====================================================
   MODERN CART VIEW PAGE
   ==================================================== */
.ent-viewcart-wrap .category-heading-section-cart,
.ent-viewcart-wrap .product-category-list-hostx {
    display: none !important;
}
.ent-viewcart-wrap {
    margin: 0 auto;
}
/* Remove oval card shape from cart wrapper */
[data-bs-theme="dark"] #order-standard_cart,
[data-bs-theme="light"] #order-standard_cart {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ent-viewcart-wrap .view-cart-page {
    padding: 0;
}
.ent-viewcart-wrap .cart-body > .row {
    display: flex !important;
    float: none !important;
}
.ent-viewcart-wrap .secondary-cart-body,
.ent-viewcart-wrap .secondary-cart-sidebar {
    float: none !important;
}
.ent-viewcart-wrap .secondary-cart-body:before {
    display: none !important;
}

/* --- Cart Header --- */
.ent-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 24px;
}
.ent-cart-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ent-cart-header-left svg {
    color: #6c5ce7;
}
.ent-cart-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    color: #1a202c;
}
.ent-cart-count {
    font-size: 13px;
    color: #718096;
    margin: 2px 0 0;
}
.ent-cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6c5ce7 !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.ent-cart-continue-link:hover {
    opacity: 0.8;
    color: #6c5ce7 !important;
}

/* --- Cart Items --- */
.ent-viewcart-wrap .view-cart-items {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ent-viewcart-wrap .view-cart-items-header {
    display: none !important;
}
.ent-cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}
.ent-cart-item:hover {
    border-color: rgba(108,92,231,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.ent-cart-addon-item {
    margin-left: 40px;
    border-left: 3px solid #6c5ce7;
}
.ent-cart-item-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(0,206,201,0.08));
    border-radius: 12px;
    color: #6c5ce7;
}
.ent-cart-item-icon.addon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(108,92,231,0.06), rgba(108,92,231,0.03));
    border-radius: 10px;
    color: #a29bfe;
}
.ent-cart-item-icon.domain {
    background: linear-gradient(135deg, rgba(0,206,201,0.1), rgba(0,206,201,0.05));
    color: #00cec9;
}
.ent-cart-item-icon.upgrade {
    background: linear-gradient(135deg, rgba(253,203,110,0.15), rgba(253,203,110,0.08));
    color: #f39c12;
}
.ent-cart-item-info {
    flex: 1;
    min-width: 0;
}
.ent-cart-item-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    font-family: 'DM Sans', sans-serif;
}
.ent-cart-item-group {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}
.ent-cart-item-domain {
    display: block;
    font-size: 12px;
    color: #a29bfe;
    margin-top: 2px;
    font-weight: 500;
}
.ent-cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ent-cart-option-tag {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(108,92,231,0.08);
    color: #6c5ce7;
    border-radius: 6px;
    font-weight: 500;
}
.ent-cart-item-price {
    flex-shrink: 0;
    text-align: right;
    min-width: 120px;
}
.ent-cart-price-amount {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    font-family: 'DM Sans', sans-serif;
}
.ent-cart-price-cycle {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}
.ent-cart-price-setup {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
}
.ent-cart-price-prorata {
    display: block;
    font-size: 11px;
    color: #a0aec0;
    margin-top: 2px;
    font-style: italic;
}
.ent-cart-price-credit {
    display: block;
    font-size: 12px;
    color: #48bb78;
    font-weight: 600;
    margin-top: 4px;
}
.ent-cart-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ent-cart-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    background: transparent;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}
.ent-cart-action-btn.ent-cart-edit:hover {
    background: rgba(108,92,231,0.08);
    border-color: rgba(108,92,231,0.2);
    color: #6c5ce7;
}
.ent-cart-action-btn.ent-cart-remove:hover {
    background: rgba(229,62,62,0.08);
    border-color: rgba(229,62,62,0.2);
    color: #e53e3e;
}
.ent-cart-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ent-cart-qty input {
    width: 60px;
    height: 34px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
}
.ent-cart-qty-btn {
    font-size: 12px;
    padding: 6px 12px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.ent-cart-qty-btn:hover {
    background: #5a4bd1;
}

/* --- Empty Cart --- */
.ent-cart-empty {
    text-align: center;
    padding: 60px 20px;
}
.ent-cart-empty svg {
    color: #cbd5e0;
    margin-bottom: 16px;
}
.ent-cart-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
    font-family: 'DM Sans', sans-serif;
}
.ent-cart-empty p {
    font-size: 14px;
    color: #718096;
    margin: 0 0 20px;
}
.ent-cart-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #6c5ce7, #4f46e5);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ent-cart-shop-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108,92,231,0.3);
    color: #fff !important;
}

/* --- Cart Actions Bar --- */
.ent-cart-actions-bar {
    display: flex;
    justify-content: flex-start;
    padding: 12px 0 0;
}
.ent-cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #e53e3e;
    background: transparent;
    border: 1px solid rgba(229,62,62,0.2);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.ent-cart-empty-btn:hover {
    background: rgba(229,62,62,0.06);
    border-color: rgba(229,62,62,0.4);
}

/* --- Order Summary --- */
.ent-order-summary {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    padding: 24px !important;
    background: #fff !important;
}
.ent-summary-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    font-family: 'DM Sans', sans-serif !important;
    color: #1a202c !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    border: none !important;
}
.ent-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #4a5568;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.ent-summary-value {
    font-weight: 600;
    color: #1a202c;
}
.ent-summary-discount .ent-summary-value {
    color: #48bb78;
}
.ent-summary-recurring {
    padding: 10px 0;
    font-size: 13px;
    color: #718096;
}
.ent-summary-recurring .cost {
    font-weight: 600;
    color: #1a202c;
}
.ent-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 2px solid rgba(108,92,231,0.15);
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}
.ent-summary-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #6c5ce7;
    font-family: 'DM Sans', sans-serif;
}

/* --- Promo Code --- */
.ent-promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(72,187,120,0.08);
    border: 1px solid rgba(72,187,120,0.2);
    border-radius: 10px;
    margin: 14px 0;
}
.ent-promo-code-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #48bb78;
}
.ent-promo-remove {
    font-size: 12px;
    color: #e53e3e !important;
    font-weight: 500;
    text-decoration: none !important;
}
.ent-promo-remove:hover {
    text-decoration: underline !important;
    color: #e53e3e !important;
}
.ent-promo-form {
    margin: 14px 0;
}
.ent-promo-input-wrap {
    display: flex;
    gap: 8px;
}
.ent-promo-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 13px;
    background: transparent;
    color: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.ent-promo-input:focus {
    border-color: #6c5ce7;
}
.ent-promo-apply-btn {
    padding: 10px 18px;
    background: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.ent-promo-apply-btn:hover {
    background: #5a4bd1;
}
.ent-tax-calc {
    margin: 14px 0;
}
.ent-tax-row {
    display: flex;
    gap: 8px;
}

/* --- Checkout Button --- */
.ent-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6c5ce7, #4f46e5);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 16px;
    font-family: 'DM Sans', sans-serif;
}
.ent-checkout-btn:hover,
[data-bs-theme="dark"] .ent-checkout-btn:hover,
[data-bs-theme="light"] .ent-checkout-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(108,92,231,0.35);
    color: #fff !important;
}
.ent-checkout-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.ent-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 12px;
}

/* --- Hide old elements in viewcart --- */
.ent-viewcart-wrap .view-cart-items .item,
.ent-viewcart-wrap .view-cart-items-header,
.ent-viewcart-wrap .empty-continue-button,
.ent-viewcart-wrap .empty-cart-sec,
.ent-viewcart-wrap .subtotal,
.ent-viewcart-wrap .bordered-totals,
.ent-viewcart-wrap .recurring-totals,
.ent-viewcart-wrap .promo-code-view,
.ent-viewcart-wrap .promo-code-form,
.ent-viewcart-wrap .total-due-today.total-due-today-padded,
.ent-viewcart-wrap .order-summary > h2.font-size-30,
.ent-viewcart-wrap .tax-calculator {
    display: none !important;
}

/* ==== DARK MODE CART ==== */
[data-bs-theme="dark"] .ent-cart-header {
    border-bottom-color: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .ent-cart-title {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-cart-count {
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-cart-item {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}
[data-bs-theme="dark"] .ent-cart-item:hover {
    border-color: rgba(108,92,231,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
[data-bs-theme="dark"] .ent-cart-item-name {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-cart-item-group {
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-cart-option-tag {
    background: rgba(108,92,231,0.12);
    color: #a29bfe;
}
[data-bs-theme="dark"] .ent-cart-price-amount {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-cart-price-cycle,
[data-bs-theme="dark"] .ent-cart-price-setup,
[data-bs-theme="dark"] .ent-cart-price-prorata {
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-cart-action-btn {
    border-color: rgba(255,255,255,0.08);
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-cart-action-btn.ent-cart-edit:hover {
    background: rgba(108,92,231,0.12);
    border-color: rgba(108,92,231,0.3);
    color: #a29bfe;
}
[data-bs-theme="dark"] .ent-cart-action-btn.ent-cart-remove:hover {
    background: rgba(229,62,62,0.12);
    border-color: rgba(229,62,62,0.3);
    color: #fc8181;
}
[data-bs-theme="dark"] .ent-cart-qty input {
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-cart-empty h3 {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-cart-empty p {
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-cart-empty svg {
    color: #4a4a5a;
}
[data-bs-theme="dark"] .ent-cart-empty-btn {
    color: #fc8181;
    border-color: rgba(229,62,62,0.2);
}
[data-bs-theme="dark"] .ent-cart-empty-btn:hover {
    background: rgba(229,62,62,0.1);
    border-color: rgba(229,62,62,0.4);
}
[data-bs-theme="dark"] .ent-order-summary {
    background: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.06) !important;
}
[data-bs-theme="dark"] .ent-summary-title {
    color: #f0f0f0 !important;
}
[data-bs-theme="dark"] .ent-summary-row {
    color: #a0a0b4;
    border-bottom-color: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .ent-summary-value {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-summary-recurring {
    color: #8a8aa0;
}
[data-bs-theme="dark"] .ent-summary-recurring .cost {
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-summary-total {
    border-top-color: rgba(108,92,231,0.2);
    color: #a0a0b4;
}
[data-bs-theme="dark"] .ent-summary-total-amount {
    color: #a29bfe;
}
[data-bs-theme="dark"] .ent-promo-applied {
    background: rgba(72,187,120,0.1);
    border-color: rgba(72,187,120,0.2);
}
[data-bs-theme="dark"] .ent-promo-input {
    border-color: rgba(255,255,255,0.1);
    color: #f0f0f0;
}
[data-bs-theme="dark"] .ent-promo-input::placeholder {
    color: #6a6a7a;
}
[data-bs-theme="dark"] .ent-secure-note {
    color: #6a6a7a;
}

/* --- Viewcart responsive --- */
@media (max-width: 768px) {
    .ent-cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ent-cart-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }
    .ent-cart-item-info {
        flex: 1 1 calc(100% - 70px);
    }
    .ent-cart-item-price {
        flex: 1 1 auto;
        text-align: left;
        min-width: auto;
    }
    .ent-cart-item-actions {
        flex: 0 0 auto;
    }
    .ent-cart-addon-item {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .ent-cart-item-icon {
        display: none;
    }
    .ent-cart-item-info {
        flex: 1 1 100%;
    }
    .ent-cart-item-price {
        flex: 1;
    }
    .ent-cart-item-actions {
        flex: 0 0 auto;
    }
}

/* ============================================
   CART VIEW - Mobile Responsive Layout
   ============================================ */
@media (max-width: 991px) {
    .ent-viewcart-wrap .cart-body > .row {
        flex-direction: column !important;
    }
    .ent-viewcart-wrap .secondary-cart-body,
    #order-standard_cart .secondary-cart-body {
        width: 100% !important;
        padding: 20px !important;
    }
    .ent-viewcart-wrap .secondary-cart-sidebar,
    .secondary-cart-sidebar,
    .secondary-cart-sidebar#scrollingPanelContainer {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        margin-top: 16px;
    }
    .ent-order-summary {
        border-radius: 14px !important;
    }
}
@media (max-width: 768px) {
    .ent-viewcart-wrap .secondary-cart-body {
        padding: 14px !important;
    }
    .ent-cart-title {
        font-size: 20px !important;
    }
    .ent-cart-header-left svg {
        width: 22px;
        height: 22px;
    }
    .ent-cart-continue-link {
        font-size: 12px;
    }
    .ent-cart-item {
        padding: 12px 14px;
        border-radius: 12px;
        gap: 10px;
    }
    .ent-cart-item-name {
        font-size: 13px;
    }
    .ent-cart-price-amount {
        font-size: 14px;
    }
    .ent-cart-price-cycle,
    .ent-cart-item-group {
        font-size: 11px;
    }
    .ent-cart-action-btn {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }
    .ent-cart-action-btn svg {
        width: 13px;
        height: 13px;
    }
    .ent-order-summary {
        padding: 18px !important;
    }
    .ent-summary-title {
        font-size: 16px !important;
    }
    .ent-summary-total-amount {
        font-size: 20px;
    }
    .ent-checkout-btn {
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 10px;
    }
}
@media (max-width: 480px) {
    .ent-cart-header {
        padding: 16px 0 14px;
        margin-bottom: 16px;
    }
    .ent-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .ent-cart-item-info {
        flex: 1 1 100%;
        width: 100%;
    }
    .ent-cart-item-price {
        text-align: left;
        min-width: auto;
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .ent-cart-price-cycle {
        display: inline;
        margin-top: 0;
    }
    .ent-cart-item-actions {
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .ent-cart-addon-item {
        margin-left: 0;
        border-left-width: 2px;
    }
    .ent-promo-input-wrap {
        flex-direction: column;
    }
    .ent-promo-apply-btn {
        width: 100%;
        text-align: center;
    }
    .ent-tax-row {
        flex-direction: column;
    }
}

/* ============================================
   CART PAGES - Hide breadcrumb & background
   ============================================ */
.whmcs-in-cart-pages .master-breadcrumb,
.whmcs-in-cart-pages .shoping-cart-background {
    display: none !important;
}

/* ============================================
   CHECKOUT PAGE - Full Styling Overhaul
   ============================================ */

/* -- Center the checkout form + sidebar row -- */
.checkout-cart-page .cart-body.checkout-page-body > .row {
    display: flex !important;
    justify-content: center !important;
    float: none !important;
}
.checkout-cart-page .cart-body.checkout-page-body > .row > .secondary-cart-body {
    float: none !important;
}
.checkout-cart-page .cart-body.checkout-page-body > .row > .secondary-cart-sidebar {
    float: none !important;
}
#order-standard_cart.hostx-cart-body-section {
    max-width: 1200px;
    margin: 0 auto;
}

/* -- Checkout heading -- */
.checkout-cart-page .header-lined h1 {
    font-family: "DM Sans", sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #e0e0e0 !important;
    border: none !important;
    margin-bottom: 8px !important;
}
[data-bs-theme="light"] .checkout-cart-page .header-lined h1 {
    color: #1a1a2e !important;
}

/* -- "Already Registered?" / "Create Account" buttons -- */
.checkout-cart-page .already-registered {
    margin-bottom: 20px;
}
.checkout-cart-page .already-registered .btn-info,
.checkout-cart-page .already-registered .btn-warning {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    transition: opacity 0.2s;
}
.checkout-cart-page .already-registered .btn-info:hover,
.checkout-cart-page .already-registered .btn-warning:hover {
    opacity: 0.9;
}
.checkout-cart-page .already-registered p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
    line-height: 38px;
}
[data-bs-theme="light"] .checkout-cart-page .already-registered p {
    color: #6b7280;
}

/* -- Sub-heading spans (Existing Customer Login, Personal Information, etc.) -- */
.checkout-cart-page .sub-heading {
    margin-bottom: 16px;
    margin-top: 8px;
    border: none !important;
}
.checkout-cart-page .sub-heading span,
.checkout-cart-page .sub-heading span.primary-bg-color {
    font-family: "DM Sans", sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: transparent !important;
    color: #e0e0e0 !important;
    padding: 0 !important;
}
[data-bs-theme="light"] .checkout-cart-page .sub-heading span,
[data-bs-theme="light"] .checkout-cart-page .sub-heading span.primary-bg-color {
    color: #1a1a2e !important;
}

/* -- Existing Customer Login container -- */
#containerExistingUserSignin,
.provider-link-sec {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}
[data-bs-theme="light"] #containerExistingUserSignin,
[data-bs-theme="light"] .provider-link-sec {
    background: #f8fafc !important;
    border-color: rgba(0,0,0,0.08) !important;
}

/* -- Login form row - make it flex-friendly -- */
#containerExistingUserSignin .row {
    align-items: flex-end;
}

/* -- All form fields on checkout -- */
.checkout-cart-page .form-control,
.checkout-cart-page .field {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px !important;
    color: #e0e0e0 !important;
    padding: 10px 14px;
    font-size: 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-cart-page .form-control:focus,
.checkout-cart-page .field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15) !important;
    outline: none !important;
}
[data-bs-theme="light"] .checkout-cart-page .form-control,
[data-bs-theme="light"] .checkout-cart-page .field {
    background: #fff !important;
    border-color: #d1d5db !important;
    color: #1a1a2e !important;
}
[data-bs-theme="light"] .checkout-cart-page .form-control:focus,
[data-bs-theme="light"] .checkout-cart-page .field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1) !important;
}

/* -- Field labels -- */
.checkout-cart-page .field-label,
.checkout-cart-page label.field-label {
    color: #9ca3af !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    display: block;
}
[data-bs-theme="light"] .checkout-cart-page .field-label,
[data-bs-theme="light"] .checkout-cart-page label.field-label {
    color: #6b7280 !important;
}

/* -- Login button fix -- */
#containerExistingUserSignin #btnExistingLogin {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    color: #fff !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    white-space: nowrap;
    transition: opacity 0.2s;
    width: 100%;
    height: auto;
}
#containerExistingUserSignin #btnExistingLogin:hover {
    opacity: 0.9;
}
#containerExistingUserSignin .row {
    align-items: flex-end !important;
}
#containerExistingUserSignin .form-group {
    margin-bottom: 0;
}

/* -- Select dropdowns -- */
.checkout-cart-page select.form-control,
.checkout-cart-page .custom-select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

/* -- Checkout field containers / separators -- */
.checkout-cart-page .field-container {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    padding: 12px 0 !important;
}
[data-bs-theme="light"] .checkout-cart-page .field-container {
    border-bottom-color: rgba(0,0,0,0.06) !important;
}

/* -- Sub-heading borderless (used for "or" dividers) -- */
.checkout-cart-page .sub-heading-borderless span {
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 14px !important;
}

/* -- Phone number field (intl-tel-input) fixes -- */
.checkout-cart-page .intl-tel-input,
.checkout-cart-page .iti {
    display: block !important;
    width: 100% !important;
}
.checkout-cart-page .intl-tel-input .selected-flag,
.checkout-cart-page .iti__flag-container {
    background: transparent !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px 0 0 8px !important;
}
.checkout-cart-page .intl-tel-input .selected-dial-code,
.checkout-cart-page .iti__selected-dial-code {
    color: #e0e0e0 !important;
}
.checkout-cart-page .intl-tel-input .country-list,
.checkout-cart-page .iti__country-list {
    background: #1a1a2e !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px !important;
    color: #e0e0e0 !important;
    z-index: 9999 !important;
}
.checkout-cart-page .intl-tel-input .country-list .country:hover,
.checkout-cart-page .intl-tel-input .country-list .country.highlight,
.checkout-cart-page .iti__country-list .iti__country:hover,
.checkout-cart-page .iti__country-list .iti__country--highlight {
    background: rgba(59,130,246,0.15) !important;
}
.checkout-cart-page .intl-tel-input .country-list .country-name,
.checkout-cart-page .iti__country-name {
    color: #e0e0e0 !important;
}
.checkout-cart-page .intl-tel-input .country-list .dial-code,
.checkout-cart-page .iti__dial-code {
    color: #9ca3af !important;
}
[data-bs-theme="light"] .checkout-cart-page .intl-tel-input .selected-flag,
[data-bs-theme="light"] .checkout-cart-page .iti__flag-container {
    border-right-color: #d1d5db !important;
}
[data-bs-theme="light"] .checkout-cart-page .intl-tel-input .selected-dial-code,
[data-bs-theme="light"] .checkout-cart-page .iti__selected-dial-code {
    color: #1a1a2e !important;
}
[data-bs-theme="light"] .checkout-cart-page .intl-tel-input .country-list,
[data-bs-theme="light"] .checkout-cart-page .iti__country-list {
    background: #fff !important;
    border-color: #d1d5db !important;
}
[data-bs-theme="light"] .checkout-cart-page .intl-tel-input .country-list .country-name,
[data-bs-theme="light"] .checkout-cart-page .iti__country-name {
    color: #1a1a2e !important;
}
[data-bs-theme="light"] .checkout-cart-page .intl-tel-input .country-list .dial-code,
[data-bs-theme="light"] .checkout-cart-page .iti__dial-code {
    color: #6b7280 !important;
}
