/* *****************************************************
   Yohost Modern Minimal Design System for WHMCS
   Matching https://yohost-web-sparkle.lovable.app/
***************************************************** */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Core Yohost Palette */
    --primary: #18181b;
    --primary-hover: #27272a;
    --primary-foreground: #ffffff;
    --brand: #18181b;
    --brand-foreground: #ffffff;
    
    --background: #ffffff;
    --foreground: #09090b;
    --surface: #f4f4f5;
    --surface-light: #fafafa;
    --card: #ffffff;
    --card-foreground: #09090b;
    
    --border: #e4e4e7;
    --border-light: #f4f4f5;
    --border-hover: #18181b;
    --input: #e4e4e7;
    --ring: #18181b;
    
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    
    --success: #16a34a;
    --success-foreground: #ffffff;
    --warning: #f59e0b;
    --destructive: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 25px -5px rgba(24, 24, 27, 0.12);
    --gradient-hero: linear-gradient(180deg, #f4f4f5 0%, #ffffff 100%);
}

/* ===================================================
   BASE TYPOGRAPHY & RESETS
   =================================================== */
html, body {
    font-family: var(--font-sans) !important;
    background-color: var(--background) !important;
    color: var(--foreground) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display) !important;
    color: var(--foreground) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

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

/* ===================================================
   HEADER & NAVBAR (YOHOST SLEEK DESIGN)
   =================================================== */
.header,
header#header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: none !important;
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Top bar if logged in */
.topbar {
    background: #fafafa !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.8125rem;
    padding: 6px 0;
}

.topbar .btn {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    padding: 4px 8px;
}

.topbar .btn:hover {
    color: var(--foreground);
}

.topbar .active-client .btn-active-client {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    color: var(--foreground) !important;
}

/* Main Brand / Navbar */
.navbar-light,
.main-navbar-wrapper {
    background: #ffffff !important;
    border: none !important;
    padding: 0.75rem 0 !important;
}

.yh-brand-container {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.yh-brand-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.navbar-brand {
    padding: 0 !important;
    margin-right: 2rem !important;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: var(--foreground) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius-sm) !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.show > .nav-link,
.navbar-nav .nav-item.active > .nav-link {
    background-color: var(--surface) !important;
    color: var(--foreground) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
    background: #ffffff !important;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--foreground) !important;
    border-radius: var(--radius-sm) !important;
    transition: background-color 0.15s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--surface) !important;
    color: var(--foreground) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border) !important;
    margin: 0.375rem 0 !important;
}

/* Yohost Header Action Buttons */
.yh-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground) !important;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
}

.yh-header-link:hover {
    color: var(--foreground) !important;
    background: var(--surface);
}

.yh-header-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border);
    margin: 0 0.5rem;
}

.yh-client-portal-btn,
.btn-client-portal {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    padding: 0.625rem 1.5rem !important;
    min-height: 44px !important;
    min-width: 120px !important;
    border-radius: var(--radius) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    box-shadow: var(--shadow-sm) !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
    text-decoration: none !important;
}

.yh-client-portal-btn:hover,
.btn-client-portal:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

/* Cart Button */
.cart-btn {
    position: relative;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 0.5rem 0.75rem !important;
    color: var(--foreground) !important;
}

.cart-btn .badge-pill,
#cartItemCount {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    padding: 0.25em 0.5em !important;
    border-radius: 9999px !important;
}

/* ===================================================
   HERO SECTION & DOMAIN SEARCH
   =================================================== */
.home-domain-search,
.bg-hero-glow {
    background: var(--gradient-hero) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 4.5rem 0 5rem 0 !important;
    position: relative;
    isolation: isolate;
}

.yh-hero-title {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    color: var(--foreground) !important;
    margin-bottom: 1.25rem !important;
}

@media (min-width: 768px) {
    .yh-hero-title {
        font-size: 3.75rem !important;
    }
}

.yh-hero-title .highlight {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(24, 24, 27, 0.2);
    text-underline-offset: 6px;
}

.yh-hero-subtitle {
    font-size: 1.125rem !important;
    color: var(--muted-foreground) !important;
    max-width: 580px !important;
    margin: 0 auto 2.5rem auto !important;
    line-height: 1.6 !important;
}

/* Search Bar Box */
.yh-search-box {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 6px !important;
    box-shadow: var(--shadow-lg) !important;
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yh-search-box:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.1), var(--shadow-lg) !important;
}

.yh-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
}

.yh-search-icon {
    color: var(--muted-foreground);
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.yh-search-input,
.home-domain-search .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: var(--foreground) !important;
    padding: 0.625rem 0 !important;
    height: 48px !important;
}

.yh-search-input:focus,
.home-domain-search .form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.yh-search-input::placeholder {
    color: var(--muted-foreground) !important;
}

.yh-search-btn,
.home-domain-search .btn-primary {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    padding: 0 2rem !important;
    height: 48px !important;
    min-width: 120px !important;
    border-radius: var(--radius) !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: var(--shadow-sm) !important;
    transition: background-color 0.15s ease !important;
}

.yh-search-btn:hover,
.home-domain-search .btn-primary:hover {
    background-color: var(--primary-hover) !important;
}

/* TLD Chips in Hero */
.yh-tld-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.yh-tld-chips strong {
    color: var(--foreground);
    font-weight: 700;
}

/* ===================================================
   TRUST & STATS BAR (4 COLUMNS)
   =================================================== */
.yh-stats-bar {
    background-color: #fafafa !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 2.5rem 0 !important;
}

.yh-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.yh-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.yh-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* ===================================================
   HOMEPAGE FEATURES (4 COLUMNS WITH LEFT BORDER)
   =================================================== */
.yh-features-section {
    padding: 5rem 0 !important;
}

.yh-feature-item {
    border-left: 2px solid var(--border);
    padding-left: 1.5rem;
    transition: border-color 0.2s ease;
    height: 100%;
}

.yh-feature-item:hover {
    border-left-color: var(--primary);
}

.yh-feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.yh-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.yh-feature-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* ===================================================
   SERVICES GRID (6 CARDS WITH BLACK BADGE)
   =================================================== */
.yh-services-section {
    background-color: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 5rem 0;
}

.yh-service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.yh-service-card:hover {
    border-color: rgba(24, 24, 27, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.yh-service-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.yh-service-icon-badge {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.yh-service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.yh-service-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.yh-service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.yh-service-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* ===================================================
   PRICING TABLES (BRONZE, SILVER, GOLD)
   =================================================== */
.yh-pricing-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.yh-pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.yh-pricing-card.recommended {
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: rgba(24, 24, 27, 0.25);
    position: relative;
}

.yh-pricing-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.yh-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.yh-pricing-tagline {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    min-height: 40px;
    margin-bottom: 1.25rem;
}

.yh-pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1;
}

.yh-pricing-period {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
}

.yh-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    border-top: 1px solid var(--border);
    text-align: left;
    flex: 1;
}

.yh-pricing-features li {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yh-pricing-btn {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    border-radius: var(--radius) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    border: none !important;
    box-shadow: var(--shadow-sm) !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease !important;
}

.yh-pricing-btn:hover {
    background-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.yh-pricing-btn .zap-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ===================================================
   WHY SOUTH AFRICANS CHOOSE YOHOST SECTION
   =================================================== */
.yh-why-section {
    background-color: #fafafa;
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.yh-why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.yh-why-icon-badge {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.yh-why-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.yh-why-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.55;
    margin: 0;
}

.yh-included-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.yh-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.yh-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.yh-checklist li i {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===================================================
   DOMAIN EXTENSION CARDS (.co.za, .com, etc.)
   =================================================== */
.yh-domains-section {
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.yh-tld-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yh-tld-card:hover {
    border-color: rgba(24, 24, 27, 0.4);
    box-shadow: var(--shadow-md);
}

.yh-tld-card .tld-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--foreground);
    margin: 0;
}

.yh-tld-card .tld-sub {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin: 0;
}

.yh-tld-card .tld-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    text-align: right;
    line-height: 1;
}

.yh-tld-card .tld-period {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: right;
}

/* ===================================================
   DARK SUPPORT CTA SECTION
   =================================================== */
.yh-support-cta-section {
    background-color: #09090b !important;
    color: #ffffff !important;
    border-top: 1px solid #27272a !important;
    padding: 5rem 0 !important;
}

.yh-support-cta-section h2 {
    color: #ffffff !important;
}

.yh-support-cta-section p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.yh-btn-dark-secondary {
    background-color: #27272a !important;
    color: #ffffff !important;
    border: 1px solid #3f3f46 !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    height: 48px !important;
    padding: 0 1.75rem !important;
    border-radius: var(--radius) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s ease !important;
    text-decoration: none !important;
}

.yh-btn-dark-secondary:hover {
    background-color: #3f3f46 !important;
    color: #ffffff !important;
}

.yh-dark-card {
    background-color: #18181b !important;
    border: 1px solid #27272a !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.75rem !important;
    text-align: center;
}

.yh-dark-card h3 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.yh-dark-card p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
}

.yh-dark-card .dark-icon {
    font-size: 2rem;
    color: #ffffff;
}

/* ===================================================
   FOOTER (SLEEK MULTI-COLUMN DESIGN)
   =================================================== */
footer#footer,
.footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border) !important;
    padding: 4.5rem 0 2.5rem 0 !important;
    color: var(--muted-foreground) !important;
    font-size: 0.875rem !important;
}

.yh-footer-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--foreground) !important;
    margin-bottom: 1.25rem !important;
}

.yh-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yh-footer-links li {
    margin-bottom: 0.625rem;
}

.yh-footer-links a {
    color: var(--muted-foreground) !important;
    font-size: 0.875rem !important;
    transition: color 0.15s ease !important;
}

.yh-footer-links a:hover {
    color: var(--foreground) !important;
}

/* Status Pill */
.yh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--foreground);
    margin-top: 1.25rem;
}

.yh-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.yh-footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 3.5rem;
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* ===================================================
   WHMCS CORE UI: BUTTONS, FORMS, CARDS, TABLES
   =================================================== */

/* Buttons */
.btn {
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.15s ease !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: #ffffff !important;
}

.btn-default,
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--border) !important;
    color: var(--secondary-foreground) !important;
}

.btn-default:hover,
.btn-secondary:hover {
    background-color: #e4e4e7 !important;
    color: var(--secondary-foreground) !important;
}

.btn-outline-primary {
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

.btn-success {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-info {
    background-color: var(--info) !important;
    border-color: var(--info) !important;
}

.btn-danger {
    background-color: var(--destructive) !important;
    border-color: var(--destructive) !important;
}

/* Form Controls */
.form-control,
.custom-select {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-size: 0.875rem !important;
    padding: 0.625rem 0.875rem !important;
    height: auto !important;
    color: var(--foreground) !important;
    background-color: #ffffff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 1px var(--primary) !important;
    outline: none !important;
}

.input-group-text {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    color: var(--muted-foreground) !important;
    font-size: 0.875rem !important;
}

/* Cards & Panels */
.card,
.panel {
    background-color: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
}

.card-header,
.panel-heading {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 1rem 1.25rem !important;
    color: var(--foreground) !important;
}

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

.card-footer,
.panel-footer {
    background-color: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
    padding: 0.875rem 1.25rem !important;
}

/* Tables */
.table {
    color: var(--foreground) !important;
    border-color: var(--border) !important;
}

.table thead th {
    background-color: var(--surface) !important;
    color: var(--foreground) !important;
    border-bottom: 1px solid var(--border) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    padding: 0.75rem 1rem !important;
}

.table tbody td {
    padding: 0.875rem 1rem !important;
    border-top: 1px solid var(--border) !important;
    vertical-align: middle !important;
    font-size: 0.875rem !important;
}

.table-hover tbody tr:hover {
    background-color: var(--surface-light) !important;
}

/* Badges */
.badge {
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 0.35em 0.65em !important;
}

.badge-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.badge-success {
    background-color: #dcfce7 !important;
    color: #166534 !important;
}

.badge-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.badge-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.badge-secondary,
.badge-default {
    background-color: var(--surface) !important;
    color: var(--foreground) !important;
    border: 1px solid var(--border) !important;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid transparent !important;
    font-size: 0.875rem !important;
    padding: 1rem 1.25rem !important;
}

.alert-info {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}

.alert-success {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.alert-warning {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

/* Sidebar List Group */
.sidebar .list-group-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 0.375rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--foreground) !important;
    transition: background-color 0.15s ease !important;
}

.sidebar .list-group-item:hover {
    background-color: var(--surface) !important;
    color: var(--foreground) !important;
}

.sidebar .list-group-item.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Breadcrumbs */
.master-breadcrumb,
.breadcrumb {
    background: transparent !important;
    padding: 1rem 0 !important;
    margin: 0 !important;
    font-size: 0.875rem !important;
}

.breadcrumb-item a {
    color: var(--muted-foreground) !important;
}

.breadcrumb-item a:hover {
    color: var(--foreground) !important;
}

.breadcrumb-item.active {
    color: var(--foreground) !important;
    font-weight: 600 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: var(--border) !important;
    padding: 0 0.5rem !important;
}

/* Modals */
.modal-content {
    border-radius: var(--radius-xl) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    padding: 1rem 1.5rem !important;
    background-color: var(--surface) !important;
}

/* Client Area Home Tiles */
.tiles {
    margin-bottom: 2rem;
}

.tile {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 1.5rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    display: block;
    text-decoration: none !important;
}

.tile:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.tile .stat {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    color: var(--foreground) !important;
    line-height: 1 !important;
}

.tile .title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--muted-foreground) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Cart & Ordering Pages */
.view-cart-items-header {
    background-color: var(--surface) !important;
    border-bottom: 1px solid var(--border) !important;
    font-weight: 700;
}

.order-summary {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-checkout {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: var(--radius) !important;
}
