/**
 * ARPHost WHMCS Template
 * Matches ARPHost StarterPro WordPress Theme
 * Version: 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties - Light Theme (Default)
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-primary: #0891b2;
    --brand-primary-dark: #0e7490;
    --brand-primary-light: #22d3ee;
    --brand-secondary: #f59e0b;
    --brand-secondary-dark: #d97706;
    --brand-accent: #8b5cf6;
    --brand-success: #10b981;
    --brand-warning: #f59e0b;
    --brand-danger: #ef4444;

    /* Light Theme Colors */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-footer: #0f172a;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #ffffff;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    --text-link: #0891b2;
    --text-link-hover: #0e7490;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --border-color-focus: #0891b2;

    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-theme: 400ms ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ==========================================================================
   Dark Theme
   ========================================================================== */
[data-theme="dark"],
body.dark-mode {
    --bg-body: #0a0f1a;
    --bg-surface: #111827;
    --bg-surface-elevated: #1f2937;
    --bg-surface-hover: #1f2937;
    --bg-header: rgba(17, 24, 39, 0.95);
    --bg-footer: #030712;
    --bg-card: #111827;
    --bg-card-hover: #1f2937;
    --bg-input: #1f2937;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --text-link: #22d3ee;
    --text-link-hover: #67e8f9;

    --border-color: #1f2937;
    --border-color-light: #374151;
    --border-color-focus: #22d3ee;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

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

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
    transition: background-color var(--transition-theme), color var(--transition-theme);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-link);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar,
header.navbar,
#header {
    background: var(--bg-header) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-theme);
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: opacity var(--transition-base);
}

/* Logo Switching */
.logo-dark { display: block; }
.logo-light { display: none; }

[data-theme="dark"] .logo-dark,
body.dark-mode .logo-dark { display: none; }
[data-theme="dark"] .logo-light,
body.dark-mode .logo-light { display: block; }

.navbar .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: color var(--transition-fast);
}

.navbar .nav-link:hover {
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--bg-surface-hover);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.05);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }

[data-theme="dark"] .theme-toggle .fa-sun,
body.dark-mode .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon,
body.dark-mode .theme-toggle .fa-moon { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-success {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    transition: all var(--transition-fast) !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(8, 145, 178, 0.3);
}

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

.btn-secondary:hover,
.btn-default:hover {
    background: var(--bg-surface-hover) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   Cards & Panels
   ========================================================================== */
.card,
.panel,
.well,
.content-padded {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-theme);
}

.card:hover,
.panel:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-primary) !important;
}

.card-header,
.panel-heading {
    background: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body,
.panel-body {
    color: var(--text-secondary);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
    transition: all var(--transition-fast);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-surface-hover) !important;
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.table td,
.table th {
    border-color: var(--border-color) !important;
    padding: 1rem !important;
    vertical-align: middle;
}

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

.table-hover tbody tr:hover {
    background-color: rgba(8, 145, 178, 0.05) !important;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar,
#sidebar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}

.list-group-item {
    background: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: all var(--transition-fast);
}

.list-group-item:hover,
.list-group-item.active {
    background: var(--bg-surface-hover) !important;
    color: var(--brand-primary) !important;
}

.list-group-item.active {
    border-left: 3px solid var(--brand-primary) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer,
#footer,
.footer {
    background: var(--bg-footer) !important;
    color: var(--text-inverse) !important;
    border-top: 1px solid var(--border-color);
}

footer a,
.footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color var(--transition-fast);
}

footer a:hover,
.footer a:hover {
    color: var(--brand-primary-light) !important;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
    border-radius: var(--radius-md) !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--brand-success) !important;
    border-left: 4px solid var(--brand-success) !important;
}

.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--brand-danger) !important;
    border-left: 4px solid var(--brand-danger) !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--brand-warning) !important;
    border-left: 4px solid var(--brand-warning) !important;
}

.alert-info {
    background: rgba(8, 145, 178, 0.1) !important;
    color: var(--brand-primary) !important;
    border-left: 4px solid var(--brand-primary) !important;
}

/* ==========================================================================
   Badges & Labels
   ========================================================================== */
.badge,
.label {
    border-radius: var(--radius-full) !important;
    font-weight: 500 !important;
    padding: 0.35rem 0.75rem !important;
}

.badge-success,
.label-success {
    background: var(--brand-success) !important;
}

.badge-primary,
.label-primary {
    background: var(--brand-primary) !important;
}

.badge-warning,
.label-warning {
    background: var(--brand-warning) !important;
}

.badge-danger,
.label-danger {
    background: var(--brand-danger) !important;
}

/* ==========================================================================
   Pricing Tables
   ========================================================================== */
.pricing-table,
.panel-pricing {
    text-align: center;
    transition: all var(--transition-fast);
}

.pricing-table:hover,
.panel-pricing:hover {
    transform: translateY(-5px);
}

.pricing-table .panel-heading,
.panel-pricing .panel-heading {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    color: white !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 1.5rem !important;
}

.pricing-table .price,
.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-table .price .term,
.price .term {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================================================
   Domain Search
   ========================================================================== */
.domain-checker-container,
.domain-search {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.domain-checker-container .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.domain-checker-container .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
    padding: 1rem 1.5rem !important;
}

.domain-checker-container .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0 !important;
    padding: 1rem 2rem !important;
}

/* ==========================================================================
   Client Area Specific
   ========================================================================== */
.main-content {
    background: var(--bg-body);
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-link);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Service Status Icons */
.label-active,
.status-active {
    background: var(--brand-success) !important;
}

.label-pending,
.status-pending {
    background: var(--brand-warning) !important;
}

.label-suspended,
.status-suspended,
.label-terminated,
.status-terminated {
    background: var(--brand-danger) !important;
}

/* ==========================================================================
   Modal Dialogs
   ========================================================================== */
.modal-content {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Dropdown Menus
   ========================================================================== */
.dropdown-menu {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-surface-hover) !important;
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination .page-link {
    background: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    margin: 0 0.25rem;
    transition: all var(--transition-fast);
}

.pagination .page-link:hover,
.pagination .page-item.active .page-link {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: white !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .btn {
        padding: 0.5rem 1rem !important;
    }

    .card,
    .panel {
        border-radius: var(--radius-md) !important;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-primary { color: var(--brand-primary) !important; }
.text-success { color: var(--brand-success) !important; }
.text-warning { color: var(--brand-warning) !important; }
.text-danger { color: var(--brand-danger) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .glass,
body.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   WHMCS STORE PAGES FIX - v1.1.0
   ========================================================================== */

/* Fix broken navbar on store pages */
.navbar-nav,
.main-menu,
#main-menu,
.nav-primary {
    display: flex !important;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none !important;
    align-items: center;
    gap: 0.25rem;
}

.navbar-nav > li,
.main-menu > li,
#main-menu > li {
    list-style: none !important;
    position: relative;
}

.navbar-nav > li::before,
.main-menu > li::before,
#main-menu > li::before,
.navbar-nav > li::marker,
.main-menu > li::marker {
    display: none !important;
    content: none !important;
}

/* Store Page Layout */
.store-wrapper,
.cart-body,
#order-standard_cart {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Store Sidebar */
.store-sidebar,
.sidebar,
#order-standard_cart .col-md-4,
.cart-sidebar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-md);
}

.store-sidebar h4,
.store-sidebar .panel-title,
.sidebar h4,
.sidebar .panel-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Category Links in Sidebar */
.store-sidebar a,
.sidebar .list-group-item,
.product-categories a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none !important;
}

.store-sidebar a:hover,
.sidebar .list-group-item:hover,
.product-categories a:hover,
.store-sidebar a.active,
.sidebar .list-group-item.active {
    background: var(--bg-surface-hover) !important;
    color: var(--brand-primary) !important;
}

/* Store Product Cards */
.product,
.product-card,
.store-product,
#order-standard_cart .panel,
.product-group .product {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product:hover,
.product-card:hover,
.store-product:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product h3,
.product h4,
.product-name,
.product-card .panel-title {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price,
.product .price,
.price-starting-from {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary) !important;
}

.product-price .term,
.price-cycle,
.price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted) !important;
}

/* Product Features List */
.product-features,
.product ul,
.product .features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
}

.product-features li,
.product ul li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-features li::before,
.product ul li .fa-check {
    content: "✓";
    color: var(--brand-success);
    font-weight: 600;
}

.product ul li .fa-check {
    color: var(--brand-success) !important;
}

.product ul li .fa-times {
    color: var(--brand-danger) !important;
}

/* Order Button in Product Cards */
.product .btn,
.product-card .btn,
.order-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    color: white !important;
    font-weight: 600;
    text-transform: none;
    transition: all var(--transition-fast);
}

.product .btn:hover,
.product-card .btn:hover,
.order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

/* Stock/Availability Labels */
.product .label,
.stock-level,
.availability {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.in-stock,
.label-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--brand-success) !important;
}

.out-of-stock,
.label-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: var(--brand-danger) !important;
}

/* Cart Page Styles */
.cart-body,
#main-body {
    background: var(--bg-body);
    min-height: 60vh;
    padding: 2rem 0;
}

.view-cart-items,
.cart-items,
#cartSummary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.view-cart-items-header,
.cart-header {
    background: var(--bg-surface-hover);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item,
.view-cart-items .item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total,
.order-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.cart-total .total-row,
.order-summary .total-due {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Domain Search Box */
.domain-checker,
.domain-search-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.domain-checker .input-group {
    max-width: 600px;
    margin: 0 auto;
}

.domain-checker input[type="text"] {
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
    border: 2px solid var(--border-color) !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem;
}

.domain-checker .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0 !important;
    padding: 1rem 2rem !important;
}

/* Domain Results */
.domain-results,
.domain-pricing {
    margin-top: 2rem;
}

.domain-result,
.domain-pricing-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.domain-result:hover {
    border-color: var(--brand-primary);
}

.domain-available {
    border-left: 4px solid var(--brand-success) !important;
}

.domain-unavailable {
    border-left: 4px solid var(--brand-danger) !important;
    opacity: 0.7;
}

/* Checkout Steps */
.checkout-steps,
.order-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.checkout-step,
.order-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.checkout-step.active,
.order-step.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.checkout-step.completed,
.order-step.completed {
    background: var(--brand-success);
    border-color: var(--brand-success);
    color: white;
}

/* Configure Product Page */
.product-config,
.configure-product {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.config-option,
.product-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.config-option label,
.product-option label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.config-option select,
.config-option input,
.product-option select,
.product-option input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.config-option select:focus,
.config-option input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

/* Panel/Section Styling for Store */
.panel-default,
.card-default {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.panel-default > .panel-heading,
.card-default > .card-header {
    background: var(--bg-surface-hover) !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 1rem 1.5rem !important;
}

.panel-heading .panel-title,
.card-header .card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.panel-body,
.card-body {
    padding: 1.5rem !important;
}

/* Page Header */
.page-header,
.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1,
.content-header h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-link);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Added to Cart Notification */
.added-to-cart,
.alert-cart {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid var(--brand-success) !important;
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    color: var(--brand-success);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Login Page Styling */
.login-container,
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2rem;
}

.login-box,
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-box h2,
.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* Support Ticket Styling */
.ticket-list,
.support-tickets {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ticket-item,
.support-ticket {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-fast);
}

.ticket-item:hover {
    background: var(--bg-surface-hover);
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status-open {
    background: rgba(8, 145, 178, 0.1);
    color: var(--brand-primary);
}

.ticket-status-answered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brand-success);
}

.ticket-status-closed {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

/* Invoice Styling */
.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.invoice-items {
    margin: 2rem 0;
}

.invoice-total {
    text-align: right;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.invoice-total .total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Knowledgebase Styling */
.kb-categories,
.knowledge-base {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kb-category,
.kb-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-fast);
}

.kb-category:hover,
.kb-article:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.kb-category h4,
.kb-article h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.kb-category p,
.kb-article p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Announcement Styling */
.announcement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.announcement-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.announcement-item .date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Empty State */
.empty-state,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Responsive Store */
@media (max-width: 991px) {
    .store-wrapper {
        padding: 1rem;
    }

    .store-sidebar {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-price {
        font-size: 1.5rem;
    }

    .checkout-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-step {
        justify-content: center;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Hide bullet points globally for nav */
nav ul,
.nav,
.navbar ul,
.menu,
header ul {
    list-style: none !important;
    padding-left: 0 !important;
}

nav ul li::before,
nav ul li::marker,
.nav li::before,
.nav li::marker,
.navbar ul li::before,
.navbar ul li::marker {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   LOGIN PAGE WITH DATA CENTER BACKGROUND
   ========================================================================== */
body.login-page,
body[class*="login"],
.login-container-wrapper {
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(8, 145, 178, 0.3) 100%),
                url('../img/login-bg.png') center center / cover no-repeat fixed !important;
    min-height: 100vh;
}

.login-container,
#main-body.login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.login-box,
.panel-login,
.card-login,
.main-content .panel:only-child,
form[action*="login"] {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem !important;
}

[data-theme="dark"] .login-box,
[data-theme="dark"] .panel-login,
[data-theme="dark"] .card-login {
    background: rgba(17, 24, 39, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.login-box .panel-heading,
.login-box h2,
.login-box .card-header {
    text-align: center;
    border: none !important;
    background: transparent !important;
    padding-bottom: 0 !important;
}

.login-box .panel-title,
.login-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-box .panel-body {
    padding: 1.5rem 0 0 !important;
}

.login-box .form-group {
    margin-bottom: 1.25rem;
}

.login-box label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-box .form-control {
    padding: 0.875rem 1rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 1rem;
}

.login-box .input-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.login-box .input-group-addon {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0 1rem;
}

.login-box .btn-login,
.login-box .btn-primary {
    width: 100%;
    padding: 1rem !important;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.login-box .forgot-password,
.login-box a[href*="password"] {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    color: var(--text-link);
    font-size: 0.875rem;
}

.login-box .register-link,
.login-box .new-customer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* CAPTCHA styling */
.login-box .captcha-container,
.login-box [id*="captcha"] {
    background: var(--bg-surface-hover);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

/* Remember me checkbox */
.login-box .checkbox,
.login-box .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.login-box .checkbox label {
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

/* Social Login */
.login-box .social-login,
.login-box .oauth-buttons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-box .social-login .btn,
.login-box .oauth-buttons .btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* Register Page */
.register-box,
.panel-register {
    max-width: 550px;
}

/* ==========================================================================
   AGGRESSIVE NAVIGATION FIX - v1.2.0
   Target Twenty-One template header structure
   ========================================================================== */

/* Kill ALL bullet points everywhere */
ul, ol {
    list-style: none;
    list-style-type: none;
}

ul li, ol li {
    list-style: none !important;
    list-style-type: none !important;
}

ul li::before,
ul li::marker,
ol li::before,
ol li::marker {
    content: none !important;
    display: none !important;
}

/* Specifically target WHMCS Twenty-One header navigation */
header ul,
header nav ul,
header .navbar ul,
.header-top ul,
.header-menu ul,
.top-bar ul,
#header ul,
.site-header ul,
nav.navbar ul,
.navbar-default ul,
.navbar-collapse ul {
    display: flex !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    gap: 0.5rem;
}

header ul li,
header nav ul li,
.header-top ul li,
.header-menu ul li,
.top-bar ul li,
#header ul li,
.site-header ul li,
nav.navbar ul li,
.navbar-default ul li,
.navbar-collapse ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header ul li::before,
header ul li::marker,
header nav ul li::before,
header nav ul li::marker,
.navbar ul li::before,
.navbar ul li::marker {
    content: none !important;
    display: none !important;
    list-style: none !important;
}

header ul li a,
header nav ul li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

header ul li a:hover {
    color: var(--brand-primary);
}

/* Fix top utility bar (Login, Register, Dark mode toggle) */
.header-top,
.top-bar,
.utility-nav,
header > ul:first-child {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

/* Main navigation bar */
.main-nav,
.primary-nav,
.navbar-nav,
header > nav,
.header-main .nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
}

/* Dropdown menus */
header .dropdown-menu,
.navbar .dropdown-menu {
    position: absolute !important;
    display: none !important;
    list-style: none !important;
    padding: 0.5rem !important;
    margin: 0 !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    min-width: 200px;
    z-index: 1000;
}

header .dropdown:hover .dropdown-menu,
.navbar .dropdown:hover .dropdown-menu,
header .dropdown.open .dropdown-menu,
.navbar .dropdown.open .dropdown-menu {
    display: block !important;
}

header .dropdown-menu li,
.navbar .dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
}

header .dropdown-menu li a,
.navbar .dropdown-menu li a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

header .dropdown-menu li a:hover,
.navbar .dropdown-menu li a:hover {
    background: var(--bg-surface-hover) !important;
    color: var(--brand-primary) !important;
}

/* Footer navigation fix */
footer ul,
.footer ul,
#footer ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer ul li,
.footer ul li,
#footer ul li {
    list-style: none !important;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
}

footer ul li::before,
footer ul li::marker,
.footer ul li::before,
.footer ul li::marker {
    content: none !important;
    display: none !important;
}

footer ul li a,
.footer ul li a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer ul li a:hover,
.footer ul li a:hover {
    color: var(--brand-primary-light) !important;
}

/* ==========================================================================
   STORE PAGE PRODUCT CARDS FIX
   ========================================================================== */

/* Product card grid layout */
.products,
.product-group,
.store-products,
#products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Individual product card */
.product,
.product-card,
.panel.product {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-fast);
}

.product:hover,
.product-card:hover {
    border-color: var(--brand-primary) !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-4px);
}

/* Product header/name section */
.product .panel-heading,
.product-header,
.product h3,
.product h4 {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    color: white !important;
    padding: 1.25rem 1.5rem !important;
    margin: 0 !important;
    font-size: 1.125rem;
    font-weight: 600;
    border: none !important;
}

/* Product body */
.product .panel-body,
.product-body,
.product-content {
    padding: 1.5rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product price styling */
.product .product-price,
.product .price,
.product .amt {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0.5rem 0 !important;
}

.product .price-term,
.product .price small,
.product .cycle,
.product .period {
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}

/* Product features list */
.product ul,
.product .feature-list,
.product-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
    flex: 1;
}

.product ul li,
.product .feature-list li,
.product-features li {
    list-style: none !important;
    padding: 0.625rem 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product ul li:last-child {
    border-bottom: none;
}

.product ul li::before {
    content: "✓" !important;
    color: var(--brand-success) !important;
    font-weight: 600;
    display: inline !important;
}

.product ul li .fa-check,
.product ul li i.fa-check {
    color: var(--brand-success) !important;
}

.product ul li .fa-times,
.product ul li i.fa-times {
    color: var(--brand-danger) !important;
}

/* Product order button */
.product .btn,
.product-card .btn,
.product .order-btn {
    width: 100%;
    margin-top: auto;
    padding: 1rem !important;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product .btn:hover,
.product-card .btn:hover {
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4) !important;
    transform: translateY(-2px);
}

/* Stock availability badge */
.product .stock,
.product .availability,
.product .label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==========================================================================
   SIDEBAR CATEGORIES FIX
   ========================================================================== */

.sidebar-categories,
.store-sidebar,
.cart-sidebar,
.panel-sidebar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0 !important;
    overflow: hidden;
}

.sidebar-categories .panel-heading,
.store-sidebar .panel-heading,
.sidebar-header {
    background: var(--bg-surface-hover) !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-categories .panel-body,
.store-sidebar .panel-body,
.sidebar-content {
    padding: 0.5rem !important;
}

.sidebar-categories ul,
.store-sidebar ul,
.category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-categories ul li,
.store-sidebar ul li,
.category-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-categories ul li::before,
.sidebar-categories ul li::marker,
.store-sidebar ul li::before,
.store-sidebar ul li::marker {
    content: none !important;
    display: none !important;
}

.sidebar-categories ul li a,
.store-sidebar ul li a,
.category-list li a {
    display: block !important;
    padding: 0.625rem 1rem !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-categories ul li a:hover,
.sidebar-categories ul li a.active,
.store-sidebar ul li a:hover,
.store-sidebar ul li a.active {
    background: var(--bg-surface-hover) !important;
    color: var(--brand-primary) !important;
}

/* ==========================================================================
   ADDITIONAL WHMCS SPECIFIC FIXES
   ========================================================================== */

/* Fix "Continue" button styling */
.btn-order-summary,
.btn-continue,
button[name="submit"],
input[type="submit"] {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.875rem 2rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-order-summary:hover,
.btn-continue:hover,
button[name="submit"]:hover,
input[type="submit"]:hover {
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4) !important;
    transform: translateY(-2px);
}

/* Fix "Added to Cart" alert */
.alert-added-to-cart,
.cart-added-notice,
.added-to-cart-alert {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid var(--brand-success) !important;
    border-left: 4px solid var(--brand-success) !important;
    border-radius: var(--radius-md) !important;
    padding: 1rem 1.5rem !important;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Fix mobile menu */
@media (max-width: 991px) {
    header ul,
    header nav ul,
    .navbar-collapse ul {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }

    header ul li a,
    header nav ul li a {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--border-color);
    }

    .products,
    .product-group {
        grid-template-columns: 1fr;
    }
}

/* Fix "Powered by" link at bottom */
.powered-by,
[href*="whmcs.com"],
.whmcs-credit {
    font-size: 0.75rem;
    color: var(--text-muted) !important;
    opacity: 0.6;
}
