/**
 * WHMDC Public Theme - Design System
 * Version: 2.0
 * 
 * This CSS file provides the core design system for the public-facing pages.
 * All colors, typography, and spacing can be overridden via admin settings
 * using CSS custom properties injected in the layout.
 * 
 * CSS Variable Naming Convention:
 * --theme-[category]-[property]-[variant]
 * 
 * Categories: color, font, space, radius, shadow, transition
 */

/* ==========================================================================
   1. CSS RESET & BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--theme-font-body, 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-size: var(--theme-font-size-base, 1rem);
    line-height: var(--theme-line-height-base, 1.6);
    color: var(--theme-color-text-primary, #1a1a2e);
    background-color: var(--theme-color-bg-page, #f8fafc);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-font-heading, 'Outfit', 'DM Sans', sans-serif);
    font-weight: var(--theme-font-weight-heading, 700);
    line-height: var(--theme-line-height-heading, 1.2);
    color: var(--theme-color-text-heading, #0f172a);
    margin-top: 0;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--theme-font-size-h1, clamp(2.5rem, 5vw, 3.75rem)); font-weight: 800; }
h2 { font-size: var(--theme-font-size-h2, clamp(2rem, 4vw, 3rem)); font-weight: 700; }
h3 { font-size: var(--theme-font-size-h3, clamp(1.5rem, 3vw, 2rem)); }
h4 { font-size: var(--theme-font-size-h4, 1.5rem); }
h5 { font-size: var(--theme-font-size-h5, 1.25rem); }
h6 { font-size: var(--theme-font-size-h6, 1rem); }

p {
    margin-top: 0;
    margin-bottom: var(--theme-space-4, 1rem);
}

a {
    color: var(--theme-color-primary, #0ea5e9);
    text-decoration: none;
    transition: color var(--theme-transition-fast, 0.2s ease);
}

a:hover {
    color: var(--theme-color-primary-dark, #0284c7);
}

.text-gradient {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */

.theme-container {
    width: 100%;
    max-width: var(--theme-container-max-width, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--theme-space-4, 1rem);
    padding-right: var(--theme-space-4, 1rem);
}

@media (min-width: 640px) {
    .theme-container {
        padding-left: var(--theme-space-6, 1.5rem);
        padding-right: var(--theme-space-6, 1.5rem);
    }
}

.theme-section {
    padding-top: var(--theme-section-padding-y, 5rem);
    padding-bottom: var(--theme-section-padding-y, 5rem);
}

.theme-section-sm {
    padding-top: var(--theme-space-12, 3rem);
    padding-bottom: var(--theme-space-12, 3rem);
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

.theme-navbar {
    background: var(--theme-color-bg-navbar, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--theme-shadow-navbar, 0 1px 3px rgba(0, 0, 0, 0.05));
    padding: var(--theme-space-4, 1rem) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--theme-transition-normal, 0.3s ease);
}

.theme-navbar.scrolled {
    box-shadow: var(--theme-shadow-navbar-scrolled, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.theme-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--theme-space-6, 1.5rem);
}

.theme-navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--theme-space-3, 0.75rem);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--theme-color-text-heading, #0f172a);
    text-decoration: none;
}

.theme-navbar-brand img {
    max-height: var(--theme-logo-height, 40px);
    width: auto;
    object-fit: contain;
}

.theme-navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--theme-space-1, 0.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-2, 0.5rem);
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--theme-color-text-secondary, #475569);
    text-decoration: none;
    border-radius: var(--theme-radius-md, 8px);
    transition: all var(--theme-transition-fast, 0.2s ease);
    white-space: nowrap;
}

.theme-nav-link:hover,
.theme-nav-link.active {
    color: var(--theme-color-primary, #0ea5e9);
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.08));
}

.theme-navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--theme-space-3, 0.75rem);
}

/* Mobile Navigation */
.theme-navbar-toggle {
    display: none;
    background: none;
    border: 2px solid var(--theme-color-border, #e2e8f0);
    color: var(--theme-color-text-primary, #1a1a2e);
    font-size: 1.5rem;
    padding: var(--theme-space-2, 0.5rem);
    border-radius: var(--theme-radius-md, 8px);
    cursor: pointer;
    transition: all var(--theme-transition-fast, 0.2s ease);
}

.theme-navbar-toggle:hover {
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.08));
    border-color: var(--theme-color-primary, #0ea5e9);
    color: var(--theme-color-primary, #0ea5e9);
}

@media (max-width: 991px) {
    .theme-navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--theme-color-bg-card, #ffffff);
        box-shadow: var(--theme-shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.1));
        padding: var(--theme-space-4, 1rem);
        flex-direction: column;
        gap: var(--theme-space-2, 0.5rem);
        border-radius: 0 0 var(--theme-radius-lg, 12px) var(--theme-radius-lg, 12px);
    }
    
    .theme-navbar-collapse.show {
        display: flex;
    }
    
    .theme-navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .theme-nav-link {
        width: 100%;
        padding: var(--theme-space-3, 0.75rem) var(--theme-space-4, 1rem);
    }
    
    .theme-navbar-actions {
        width: 100%;
        flex-direction: column;
        margin-top: var(--theme-space-2, 0.5rem);
        padding-top: var(--theme-space-4, 1rem);
        border-top: 1px solid var(--theme-color-border, #e2e8f0);
    }
    
    .theme-navbar-actions .theme-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.theme-hero {
    position: relative;
    padding: var(--theme-hero-padding-top, 6rem) 0 var(--theme-hero-padding-bottom, 5rem);
    background: var(--theme-hero-bg, linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0f9ff 100%));
    overflow: hidden;
}

.theme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-hero-overlay, transparent);
    z-index: 1;
}

.theme-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: var(--theme-hero-accent-bg, radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%));
    border-radius: 50%;
    z-index: 0;
}

.theme-hero-content {
    position: relative;
    z-index: 2;
}

.theme-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-2, 0.5rem);
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.1));
    color: var(--theme-color-primary-dark, #0284c7);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: var(--theme-space-6, 1.5rem);
}

.theme-hero-title {
    font-size: var(--theme-hero-title-size, clamp(2.5rem, 6vw, 4.5rem));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--theme-space-6, 1.5rem);
    letter-spacing: -0.03em;
}

.theme-hero-title .highlight {
    color: var(--theme-color-primary, #0ea5e9);
}

.theme-hero-subtitle {
    font-size: var(--theme-hero-subtitle-size, clamp(1.125rem, 2vw, 1.5rem));
    color: var(--theme-color-text-secondary, #475569);
    line-height: 1.6;
    margin-bottom: var(--theme-space-8, 2rem);
    max-width: 640px;
}

.theme-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-space-4, 1rem);
    margin-bottom: var(--theme-space-10, 2.5rem);
}

.theme-hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--theme-space-6, 1.5rem);
    padding-top: var(--theme-space-8, 2rem);
    border-top: 1px solid var(--theme-color-border-light, rgba(0, 0, 0, 0.06));
}

.theme-hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--theme-space-2, 0.5rem);
}

.theme-hero-trust-icon {
    font-size: 1.25rem;
}

.theme-hero-trust-text {
    font-size: 0.9rem;
    color: var(--theme-color-text-secondary, #475569);
    font-weight: 500;
}

.theme-hero-visual {
    position: relative;
    z-index: 2;
}

/* Hero variants */
.theme-hero-centered {
    text-align: center;
}

.theme-hero-centered .theme-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.theme-hero-centered .theme-hero-cta {
    justify-content: center;
}

.theme-hero-centered .theme-hero-trust {
    justify-content: center;
}

/* Page hero (smaller) */
.theme-hero-page {
    padding: var(--theme-space-16, 4rem) 0 var(--theme-space-12, 3rem);
    text-align: center;
}

/* Add visual breathing room between page hero and first section */
.theme-hero-page + .theme-section,
.theme-hero-page + .theme-section-sm {
    margin-top: var(--theme-space-8, 2.5rem);
}

.theme-hero-page .theme-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-hero-page .theme-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--theme-space-2, 0.5rem);
    padding: var(--theme-space-3, 0.75rem) var(--theme-space-6, 1.5rem);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border-radius: var(--theme-radius-lg, 12px);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--theme-transition-normal, 0.3s ease);
    white-space: nowrap;
}

.theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.theme-btn-primary {
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    color: #ffffff;
    box-shadow: var(--theme-shadow-btn-primary, 0 4px 14px rgba(14, 165, 233, 0.35));
}

.theme-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-btn-primary-hover, 0 8px 25px rgba(14, 165, 233, 0.45));
    color: #ffffff;
}

.theme-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

/* Secondary Button */
.theme-btn-secondary {
    background: var(--theme-color-bg-card, #ffffff);
    color: var(--theme-color-text-primary, #1a1a2e);
    border-color: var(--theme-color-border, #e2e8f0);
    box-shadow: var(--theme-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.theme-btn-secondary:hover:not(:disabled) {
    border-color: var(--theme-color-primary, #0ea5e9);
    color: var(--theme-color-primary, #0ea5e9);
    transform: translateY(-2px);
}

/* Outline Button */
.theme-btn-outline {
    background: transparent;
    color: var(--theme-color-primary, #0ea5e9);
    border-color: var(--theme-color-primary, #0ea5e9);
}

.theme-btn-outline:hover:not(:disabled) {
    background: var(--theme-color-primary, #0ea5e9);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Ghost Button */
.theme-btn-ghost {
    background: transparent;
    color: var(--theme-color-text-secondary, #475569);
    border-color: transparent;
}

.theme-btn-ghost:hover:not(:disabled) {
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.08));
    color: var(--theme-color-primary, #0ea5e9);
}

/* Button Sizes */
.theme-btn-sm {
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    font-size: 0.875rem;
    border-radius: var(--theme-radius-md, 8px);
}

.theme-btn-lg {
    padding: var(--theme-space-4, 1rem) var(--theme-space-8, 2rem);
    font-size: 1.125rem;
    border-radius: var(--theme-radius-xl, 16px);
}

.theme-btn-xl {
    padding: var(--theme-space-5, 1.25rem) var(--theme-space-10, 2.5rem);
    font-size: 1.25rem;
    border-radius: var(--theme-radius-xl, 16px);
}

/* Button with Icon */
.theme-btn-icon-only {
    padding: var(--theme-space-3, 0.75rem);
    aspect-ratio: 1;
}

/* ==========================================================================
   7. CARDS
   ========================================================================== */

.theme-card {
    background: var(--theme-color-bg-card, #ffffff);
    border: 1px solid var(--theme-color-border-light, rgba(0, 0, 0, 0.04));
    border-radius: var(--theme-radius-xl, 16px);
    box-shadow: var(--theme-shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
    overflow: hidden;
    transition: all var(--theme-transition-normal, 0.3s ease);
}

.theme-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--theme-shadow-card-hover, 0 20px 40px rgba(0, 0, 0, 0.08));
    border-color: var(--theme-color-primary-light, rgba(14, 165, 233, 0.2));
}

.theme-card-header {
    padding: var(--theme-space-6, 1.5rem);
    border-bottom: 1px solid var(--theme-color-border-light, rgba(0, 0, 0, 0.04));
}

.theme-card-body {
    padding: var(--theme-space-6, 1.5rem);
}

.theme-card-footer {
    padding: var(--theme-space-4, 1rem) var(--theme-space-6, 1.5rem);
    border-top: 1px solid var(--theme-color-border-light, rgba(0, 0, 0, 0.04));
    background: var(--theme-color-bg-subtle, #f8fafc);
}

/* Feature Card */
.theme-feature-card {
    padding: var(--theme-space-8, 2rem);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.theme-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: var(--theme-radius-lg, 12px);
    margin-bottom: var(--theme-space-5, 1.25rem);
}

.theme-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--theme-space-3, 0.75rem);
}

.theme-feature-text {
    color: var(--theme-color-text-secondary, #475569);
    line-height: 1.7;
    flex-grow: 1;
}

/* Pricing Card */
.theme-pricing-card {
    padding: var(--theme-space-8, 2rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.theme-pricing-card.featured {
    border-color: var(--theme-color-primary, #0ea5e9);
    box-shadow: var(--theme-shadow-lg, 0 10px 40px rgba(0, 0, 0, 0.1)), 0 0 0 2px var(--theme-color-primary, #0ea5e9);
}

.theme-pricing-badge {
    position: absolute;
    top: 0;
    right: var(--theme-space-6, 1.5rem);
    transform: translateY(-50%);
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.theme-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--theme-space-2, 0.5rem);
}

.theme-pricing-description {
    color: var(--theme-color-text-secondary, #475569);
    font-size: 0.95rem;
    margin-bottom: var(--theme-space-6, 1.5rem);
}

.theme-pricing-price {
    margin-bottom: var(--theme-space-6, 1.5rem);
}

.theme-pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--theme-color-text-heading, #0f172a);
}

.theme-pricing-period {
    font-size: 1rem;
    color: var(--theme-color-text-muted, #94a3b8);
    font-weight: 500;
}

.theme-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--theme-space-8, 2rem) 0;
    flex-grow: 1;
}

.theme-pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--theme-space-3, 0.75rem);
    padding: var(--theme-space-3, 0.75rem) 0;
    color: var(--theme-color-text-secondary, #475569);
    font-size: 0.95rem;
}

.theme-pricing-feature i {
    color: var(--theme-color-success, #10b981);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Service Card */
.theme-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
}

.theme-service-card:hover {
    border-color: var(--theme-color-primary, #0ea5e9);
}

.theme-service-header {
    padding: var(--theme-space-6, 1.5rem);
    background: var(--theme-color-bg-subtle, #f8fafc);
}

.theme-service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    color: #ffffff;
    font-size: 1.75rem;
    border-radius: var(--theme-radius-lg, 12px);
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-service-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--theme-space-2, 0.5rem);
}

.theme-service-price {
    display: inline-flex;
    align-items: baseline;
    gap: var(--theme-space-1, 0.25rem);
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    background: var(--theme-color-bg-card, #ffffff);
    border-radius: 100px;
    box-shadow: var(--theme-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
}

.theme-service-price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-color-primary, #0ea5e9);
}

.theme-service-price-period {
    font-size: 0.9rem;
    color: var(--theme-color-text-muted, #94a3b8);
    font-weight: 500;
}

.theme-service-body {
    padding: var(--theme-space-6, 1.5rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.theme-service-description {
    color: var(--theme-color-text-secondary, #475569);
    margin-bottom: var(--theme-space-6, 1.5rem);
    flex-grow: 1;
}

/* ==========================================================================
   8. SECTIONS
   ========================================================================== */

.theme-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--theme-space-12, 3rem);
}

.theme-section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-2, 0.5rem);
    padding: var(--theme-space-2, 0.5rem) var(--theme-space-4, 1rem);
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.1));
    color: var(--theme-color-primary-dark, #0284c7);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-section-title {
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-section-subtitle {
    font-size: 1.125rem;
    color: var(--theme-color-text-secondary, #475569);
    line-height: 1.7;
}

/* Background Variants */
.theme-section-alt {
    background: var(--theme-color-bg-alt, #f1f5f9);
}

.theme-section-dark {
    background: var(--theme-gradient-dark, linear-gradient(135deg, #0f172a 0%, #1e293b 100%));
    color: #ffffff;
}

.theme-section-dark .theme-section-title {
    color: #ffffff;
}

.theme-section-dark .theme-section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.theme-section-gradient {
    background: var(--theme-gradient-section, linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%));
    color: #ffffff;
}

/* Stats Section */
.theme-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--theme-space-8, 2rem);
    text-align: center;
}

.theme-stat-item {
    padding: var(--theme-space-4, 1rem);
}

.theme-stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--theme-space-2, 0.5rem);
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-section-dark .theme-stat-number {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.theme-stat-label {
    font-size: 1rem;
    color: var(--theme-color-text-secondary, #475569);
    font-weight: 500;
}

.theme-section-dark .theme-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Trust Badges */
.theme-trust-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--theme-space-8, 2rem);
}

.theme-trust-item {
    text-align: center;
    padding: var(--theme-space-4, 1rem);
}

.theme-trust-icon {
    font-size: 3rem;
    color: var(--theme-color-primary, #0ea5e9);
    margin-bottom: var(--theme-space-3, 0.75rem);
}

.theme-trust-text {
    font-size: 0.9rem;
    color: var(--theme-color-text-secondary, #475569);
    font-weight: 500;
}

/* CTA Section */
.theme-cta {
    text-align: center;
    padding: var(--theme-space-16, 4rem) var(--theme-space-6, 1.5rem);
}

.theme-cta-title {
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-cta-text {
    font-size: 1.25rem;
    color: var(--theme-color-text-secondary, #475569);
    max-width: 600px;
    margin: 0 auto var(--theme-space-8, 2rem);
}

.theme-section-gradient .theme-cta-text,
.theme-section-dark .theme-cta-text {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

.theme-form-group {
    margin-bottom: var(--theme-space-5, 1.25rem);
}

.theme-form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--theme-color-text-primary, #1a1a2e);
    margin-bottom: var(--theme-space-2, 0.5rem);
}

.theme-form-label .required {
    color: var(--theme-color-danger, #ef4444);
}

.theme-form-input,
.theme-form-select,
.theme-form-textarea {
    width: 100%;
    padding: var(--theme-space-3, 0.75rem) var(--theme-space-4, 1rem);
    font-family: inherit;
    font-size: 1rem;
    color: var(--theme-color-text-primary, #1a1a2e);
    background: var(--theme-color-bg-card, #ffffff);
    border: 2px solid var(--theme-color-border, #e2e8f0);
    border-radius: var(--theme-radius-lg, 12px);
    transition: all var(--theme-transition-fast, 0.2s ease);
}

.theme-form-input:focus,
.theme-form-select:focus,
.theme-form-textarea:focus {
    outline: none;
    border-color: var(--theme-color-primary, #0ea5e9);
    box-shadow: 0 0 0 4px var(--theme-color-primary-soft, rgba(14, 165, 233, 0.15));
}

.theme-form-input::placeholder,
.theme-form-textarea::placeholder {
    color: var(--theme-color-text-muted, #94a3b8);
}

.theme-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.theme-form-hint {
    display: block;
    font-size: 0.875rem;
    color: var(--theme-color-text-muted, #94a3b8);
    margin-top: var(--theme-space-2, 0.5rem);
}

.theme-form-error {
    color: var(--theme-color-danger, #ef4444);
}

/* Search Input */
.theme-search {
    position: relative;
    display: flex;
    gap: var(--theme-space-2, 0.5rem);
}

.theme-search-input {
    flex: 1;
    padding-left: var(--theme-space-12, 3rem);
}

.theme-search-icon {
    position: absolute;
    left: var(--theme-space-4, 1rem);
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-color-text-muted, #94a3b8);
    pointer-events: none;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.theme-footer {
    background: var(--theme-color-bg-footer, #0f172a);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--theme-space-16, 4rem) 0 var(--theme-space-8, 2rem);
}

.theme-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--theme-space-10, 2.5rem);
    margin-bottom: var(--theme-space-12, 3rem);
}

.theme-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--theme-space-3, 0.75rem);
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-footer-brand img {
    max-height: 36px;
    width: auto;
}

.theme-footer-about {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.theme-footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--theme-space-5, 1.25rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.theme-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-footer-link {
    display: block;
    padding: var(--theme-space-2, 0.5rem) 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--theme-transition-fast, 0.2s ease);
}

.theme-footer-link:hover {
    color: #ffffff;
}

.theme-footer-social {
    display: flex;
    gap: var(--theme-space-3, 0.75rem);
    margin-top: var(--theme-space-4, 1rem);
}

.theme-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    border-radius: var(--theme-radius-md, 8px);
    transition: all var(--theme-transition-fast, 0.2s ease);
}

.theme-footer-social-link:hover {
    background: var(--theme-color-primary, #0ea5e9);
    transform: translateY(-3px);
}

.theme-footer-bottom {
    padding-top: var(--theme-space-8, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--theme-space-4, 1rem);
}

.theme-footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.theme-footer-legal {
    display: flex;
    gap: var(--theme-space-6, 1.5rem);
}

.theme-footer-legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.theme-footer-legal a:hover {
    color: #ffffff;
}

/* ==========================================================================
   11. CART SIDEBAR
   ========================================================================== */

.theme-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--theme-transition-normal, 0.3s ease);
}

.theme-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.theme-cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: var(--theme-color-bg-card, #ffffff);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 1999;
    transition: right var(--theme-transition-normal, 0.3s ease);
    display: flex;
    flex-direction: column;
}

.theme-cart-sidebar.open {
    right: 0;
}

.theme-cart-header {
    padding: var(--theme-space-6, 1.5rem);
    background: var(--theme-gradient-primary, linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.theme-cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius-md, 8px);
    cursor: pointer;
    transition: all var(--theme-transition-fast, 0.2s ease);
}

.theme-cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.theme-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--theme-space-6, 1.5rem);
}

.theme-cart-item {
    padding: var(--theme-space-4, 1rem);
    background: var(--theme-color-bg-subtle, #f8fafc);
    border-radius: var(--theme-radius-lg, 12px);
    margin-bottom: var(--theme-space-3, 0.75rem);
    border: 1px solid var(--theme-color-border-light, rgba(0, 0, 0, 0.04));
}

.theme-cart-empty {
    text-align: center;
    padding: var(--theme-space-12, 3rem) var(--theme-space-6, 1.5rem);
}

.theme-cart-empty-icon {
    font-size: 4rem;
    color: var(--theme-color-text-muted, #94a3b8);
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-cart-footer {
    padding: var(--theme-space-6, 1.5rem);
    border-top: 1px solid var(--theme-color-border, #e2e8f0);
    background: var(--theme-color-bg-card, #ffffff);
}

.theme-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--theme-space-4, 1rem);
    padding-bottom: var(--theme-space-4, 1rem);
    border-bottom: 2px solid var(--theme-color-border, #e2e8f0);
}

.theme-cart-total-label {
    font-weight: 700;
    font-size: 1.1rem;
}

.theme-cart-total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-color-primary, #0ea5e9);
}

/* ==========================================================================
   12. ALERTS & NOTIFICATIONS
   ========================================================================== */

.theme-alert {
    padding: var(--theme-space-4, 1rem) var(--theme-space-5, 1.25rem);
    border-radius: var(--theme-radius-lg, 12px);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: var(--theme-space-3, 0.75rem);
    margin-bottom: var(--theme-space-4, 1rem);
}

.theme-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.theme-alert-content {
    flex: 1;
}

.theme-alert-title {
    font-weight: 700;
    margin-bottom: var(--theme-space-1, 0.25rem);
}

.theme-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--theme-color-success, #10b981);
    color: #065f46;
}

.theme-alert-success .theme-alert-icon {
    color: var(--theme-color-success, #10b981);
}

.theme-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--theme-color-danger, #ef4444);
    color: #991b1b;
}

.theme-alert-danger .theme-alert-icon {
    color: var(--theme-color-danger, #ef4444);
}

.theme-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--theme-color-warning, #f59e0b);
    color: #92400e;
}

.theme-alert-warning .theme-alert-icon {
    color: var(--theme-color-warning, #f59e0b);
}

.theme-alert-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--theme-color-primary, #0ea5e9);
    color: #0c4a6e;
}

.theme-alert-info .theme-alert-icon {
    color: var(--theme-color-primary, #0ea5e9);
}

/* ==========================================================================
   13. BADGES & TAGS
   ========================================================================== */

.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-space-1, 0.25rem);
    padding: var(--theme-space-1, 0.25rem) var(--theme-space-3, 0.75rem);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.theme-badge-primary {
    background: var(--theme-color-primary-soft, rgba(14, 165, 233, 0.1));
    color: var(--theme-color-primary-dark, #0284c7);
}

.theme-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
}

.theme-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.theme-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

/* ==========================================================================
   14. UTILITIES
   ========================================================================== */

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--theme-color-primary, #0ea5e9); }
.text-secondary { color: var(--theme-color-text-secondary, #475569); }
.text-muted { color: var(--theme-color-text-muted, #94a3b8); }
.text-success { color: var(--theme-color-success, #10b981); }
.text-warning { color: var(--theme-color-warning, #f59e0b); }
.text-danger { color: var(--theme-color-danger, #ef4444); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: var(--theme-space-1, 0.25rem); }
.gap-2 { gap: var(--theme-space-2, 0.5rem); }
.gap-3 { gap: var(--theme-space-3, 0.75rem); }
.gap-4 { gap: var(--theme-space-4, 1rem); }
.gap-5 { gap: var(--theme-space-5, 1.25rem); }
.gap-6 { gap: var(--theme-space-6, 1.5rem); }

/* Spacing */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--theme-space-4, 1rem); }
.mb-4 { margin-bottom: var(--theme-space-4, 1rem); }
.mt-6 { margin-top: var(--theme-space-6, 1.5rem); }
.mb-6 { margin-bottom: var(--theme-space-6, 1.5rem); }
.mt-8 { margin-top: var(--theme-space-8, 2rem); }
.mb-8 { margin-bottom: var(--theme-space-8, 2rem); }
.my-auto { margin-top: auto; margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-4 { padding: var(--theme-space-4, 1rem); }
.p-6 { padding: var(--theme-space-6, 1.5rem); }
.p-8 { padding: var(--theme-space-8, 2rem); }
.py-4 { padding-top: var(--theme-space-4, 1rem); padding-bottom: var(--theme-space-4, 1rem); }
.px-4 { padding-left: var(--theme-space-4, 1rem); padding-right: var(--theme-space-4, 1rem); }

/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   15. ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out both; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out both; }
.animate-slide-in-left { animation: slideInLeft 0.5s ease-out both; }
.animate-slide-in-right { animation: slideInRight 0.5s ease-out both; }
.animate-scale-in { animation: scaleIn 0.5s ease-out both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   16. RESPONSIVE HELPERS
   ========================================================================== */

@media (max-width: 640px) {
    .sm\:hidden { display: none; }
    .sm\:text-center { text-align: center; }
    
    .theme-hero {
        padding: var(--theme-space-12, 3rem) 0;
    }
    
    .theme-hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .theme-hero-cta {
        flex-direction: column;
    }
    
    .theme-hero-cta .theme-btn {
        width: 100%;
    }
    
    .theme-hero-trust {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .theme-section {
        padding-top: var(--theme-space-12, 3rem);
        padding-bottom: var(--theme-space-12, 3rem);
    }
    
    .theme-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .md\:hidden { display: none; }
}

@media (min-width: 769px) {
    .md\:show { display: block; }
}

/* ==========================================================================
   17. PRINT STYLES
   ========================================================================== */

@media print {
    .theme-navbar,
    .theme-footer,
    .theme-cart-sidebar,
    .theme-cart-overlay {
        display: none !important;
    }
    
    .theme-hero {
        padding: 1rem 0;
        background: none !important;
    }
    
    body {
        background: #ffffff;
        color: #000000;
    }
}

