/**
 * MarginHub - Luxury ConTech Platform
 * Complete Styling - Premium, Modern, with Smooth Animations
 * Version 3.0.0 - Final
 */

/* ============================================ */
/* 1. CSS Variables - Design Tokens */
/* ============================================ */

:root {
    /* Base Colors - مطابق تصویر Google AI Studio */
    --bg-cream: #f7f6f2;
    --text-dark: #1c1917;
    --text-muted: #78716c;
    
    /* Gold Signature Palette */
    --gold-light: #fbbf24;
    --gold-primary: #d4b380;
    --gold-deep: #a87f54;
    --gold-dark: #78350f;
    --gold-glow: rgba(212, 179, 128, 0.15);
    --gold-border: rgba(212, 179, 128, 0.25);
    
    /* Dark Cosmic Palette */
    --dark-bg: #0c0a09;
    --dark-card: #1c1917;
    --dark-elevated: #292524;
    
    /* Stone Palette */
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --stone-950: #0c0a09;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-gold: 0 4px 14px rgba(212, 179, 128, 0.2);
    --shadow-glow: 0 0 20px rgba(212, 179, 128, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================ */
/* 2. Global Reset & Base Styles */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Tahoma', 'Vazirmatn', system-ui, -apple-system, sans-serif;
    direction: rtl;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--gold-primary);
    color: var(--dark-bg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--stone-200);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-deep);
}

/* ============================================ */
/* 3. Typography - Luxury */
/* ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; margin-bottom: 16px; }
h3 { font-size: 24px; margin-bottom: 12px; }
h4 { font-size: 20px; margin-bottom: 10px; }

.gradient-text {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.price-number {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* ============================================ */
/* 4. Animations & Keyframes */
/* ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--gold-glow);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 179, 128, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-fadeUp { animation: fadeInUp 0.6s ease-out; }
.animate-fadeDown { animation: fadeInDown 0.6s ease-out; }
.animate-fadeLeft { animation: fadeInLeft 0.6s ease-out; }
.animate-fadeRight { animation: fadeInRight 0.6s ease-out; }
.animate-scale { animation: scaleIn 0.5s ease-out; }
.animate-slideUp { animation: slideInUp 0.5s ease-out; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s infinite; }

/* Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Hover Animations */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.hover-glow {
    transition: all var(--transition-normal);
}
.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--gold-primary);
}

/* ============================================ */
/* 5. Container & Layout */
/* ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================ */
/* 6. Hero Section - Premium 2-Column */
/* ============================================ */

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--stone-900) 100%);
    border-radius: var(--radius-3xl);
    padding: 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 127, 84, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 179, 128, 0.12);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    color: var(--gold-primary);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 52px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    color: var(--stone-400);
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Right Card */
.hero-card {
    background: rgba(28, 25, 23, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-2xl);
    padding: 28px;
    transition: all var(--transition-normal);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-primary);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hero-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
}

.dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

.hero-card-icon {
    font-size: 28px;
}

.hero-card-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
}

.progress-item {
    margin-bottom: 20px;
}

.progress-label {
    font-size: 11px;
    color: var(--stone-400);
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: var(--stone-800);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-deep));
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-out;
}

.hero-card-footer {
    margin-top: 28px;
    background: var(--dark-bg);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card-footer .mono-text {
    font-family: monospace;
    font-size: 12px;
    color: var(--stone-400);
}

.hero-card-footer a {
    font-size: 11px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 800;
    transition: all var(--transition-fast);
}

.hero-card-footer a:hover {
    color: var(--gold-light);
    transform: translateX(-4px);
}

/* ============================================ */
/* 7. Buttons */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--dark-bg);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 179, 128, 0.4);
}

.btn-secondary {
    background: var(--stone-800);
    color: white;
    border: 1px solid var(--gold-border);
}

.btn-secondary:hover {
    background: var(--stone-700);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
}

/* ============================================ */
/* 8. Simulator Preview Card */
/* ============================================ */

.sim-preview-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 28px 32px;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
    transition: all var(--transition-normal);
}

.sim-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-primary);
}

.sim-preview-info h3 {
    margin-bottom: 4px;
}

.sim-preview-info p {
    color: var(--stone-500);
    font-size: 13px;
}

.sim-preview-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold-deep);
    font-family: monospace;
}

/* ============================================ */
/* 9. Stats Grid */
/* ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: white;
    border-radius: var(--radius-3xl);
    padding: 48px 32px;
    margin: 50px 0;
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--gold-deep);
    display: block;
    font-family: monospace;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--stone-800);
    display: block;
    margin-top: 8px;
}

.stat-desc {
    font-size: 10px;
    color: var(--stone-400);
    display: block;
    margin-top: 4px;
}

/* ============================================ */
/* 10. Section Headers */
/* ============================================ */

.section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.section-tag {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--stone-500);
    max-width: 700px;
    margin: 0 auto;
    font-size: 14px;
}

/* ============================================ */
/* 11. Services Grid */
/* ============================================ */

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.service-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 28px;
    transition: all var(--transition-normal);
    border: 1px solid var(--stone-200);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-deep));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-primary);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--stone-500);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-detail {
    font-size: 11px;
    color: var(--gold-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.service-card:hover .service-detail {
    gap: 10px;
    color: var(--gold-deep);
}

/* ============================================ */
/* 12. Brands Grid */
/* ============================================ */

.grid-brands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.brand-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--stone-200);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.brand-card strong {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.brand-country {
    font-size: 10px;
    color: var(--stone-400);
}

/* ============================================ */
/* 13. Projects Grid */
/* ============================================ */

.grid-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 40px 0;
}

.project-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--stone-200);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, var(--stone-200), var(--stone-300));
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '🏗️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.5;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--stone-500);
    font-size: 12px;
    margin-bottom: 12px;
}

.project-style {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-deep);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* ============================================ */
/* 14. AI Chat Section */
/* ============================================ */

.chat-section {
    background: white;
    border-radius: var(--radius-3xl);
    padding: 40px;
    margin: 60px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.chat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.chat-header h3 {
    margin-bottom: 4px;
}

.chat-header p {
    color: var(--stone-500);
    font-size: 13px;
}

.chat-container {
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--stone-100);
}

.chat-messages {
    height: 360px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-user {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--dark-bg);
    border-radius: 20px 20px 8px 20px;
    padding: 12px 20px;
    max-width: 75%;
    align-self: flex-end;
    font-size: 13px;
    font-weight: 500;
}

.chat-assistant {
    background: white;
    border: 1px solid var(--stone-200);
    border-radius: 20px 20px 20px 8px;
    padding: 12px 20px;
    max-width: 75%;
    align-self: flex-start;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}

.chat-time {
    font-size: 9px;
    opacity: 0.6;
    margin-top: 6px;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: white;
    border-top: 1px solid var(--stone-200);
}

.chat-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.chat-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.chat-submit {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    border: none;
    border-radius: var(--radius-full);
    padding: 0 32px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-submit:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-gold);
}

.quick-questions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.quick-questions span {
    font-size: 11px;
    font-weight: 700;
    color: var(--stone-500);
}

.quick-questions button {
    background: var(--stone-100);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-questions button:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
    color: var(--gold-deep);
    transform: translateY(-2px);
}

/* ============================================ */
/* 15. Showroom Section */
/* ============================================ */

.showroom-section {
    background: linear-gradient(135deg, var(--stone-900), var(--stone-800));
    border-radius: var(--radius-3xl);
    padding: 50px;
    margin: 60px 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.showroom-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    border-radius: 50%;
}

.showroom-info {
    position: relative;
    z-index: 2;
}

.showroom-tag {
    display: inline-block;
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.showroom-info h2 {
    color: white;
    margin-bottom: 20px;
}

.showroom-info p {
    color: var(--stone-400);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.showroom-card {
    background: linear-gradient(135deg, var(--gold-dark), var(--dark-bg));
    border-radius: var(--radius-2xl);
    padding: 32px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.showroom-card span {
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
}

.showroom-card h3 {
    color: white;
    margin: 12px 0 8px;
}

.showroom-card p {
    color: var(--stone-400);
    font-size: 12px;
}

/* ============================================ */
/* 16. Consult Form */
/* ============================================ */

.consult-form {
    background: white;
    border-radius: var(--radius-3xl);
    padding: 48px;
    margin: 50px auto;
    max-width: 650px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
}

.consult-form h3 {
    margin-bottom: 12px;
}

.consult-form p {
    color: var(--stone-500);
    font-size: 13px;
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    text-align: right;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--stone-600);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ============================================ */
/* 17. Simulator Layout - 2 Column */
/* ============================================ */

.simulator-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
}

.control-card,
.canvas-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
    transition: all var(--transition-normal);
}

.param-group {
    margin-bottom: 24px;
}

.param-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.param-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--stone-200);
    border-radius: 10px;
    -webkit-appearance: none;
}

.param-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.param-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--gold-deep);
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.counter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 8px;
}

.counter button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--stone-200);
    background: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.counter button:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
}

.counter span {
    font-size: 18px;
    font-weight: 700;
}

.mode-toggle {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.mode-toggle button {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--stone-200);
    background: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mode-toggle button.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--dark-bg);
    border-color: transparent;
}

/* Invoice Card */
.invoice-card {
    background: var(--stone-100);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin: 20px 0;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--stone-200);
    font-size: 13px;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid var(--gold-primary);
    font-weight: 800;
    font-size: 18px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.saved-list {
    margin-top: 20px;
}

.saved-list h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.saved-item {
    background: var(--stone-100);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-item button {
    background: var(--gold-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.saved-item button:hover {
    background: var(--gold-deep);
    transform: scale(1.02);
}

/* Canvas Stage */
.canvas-stage {
    height: 320px;
    background: var(--stone-800);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.wall-container {
    display: flex;
    height: 75%;
}

.wall-wood {
    width: 33%;
    position: relative;
    transition: background 0.3s ease;
}

.wall-wood::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 12px);
    pointer-events: none;
}

.wall-marble {
    width: 67%;
    position: relative;
    transition: background 0.3s ease;
}

.touch-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(12, 10, 9, 0.9);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    text-align: center;
    border: 1px solid var(--gold-border);
    min-width: 160px;
}

.touch-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 9px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.touch-led {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

.touch-title {
    font-size: 11px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
}

.touch-temp {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-primary);
}

.floor-area {
    height: 25%;
    transition: background 0.3s ease;
    position: relative;
}

.material-label {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(12, 10, 9, 0.7);
    backdrop-filter: blur(4px);
    color: var(--stone-300);
    font-size: 9px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    z-index: 10;
}

.marble-label {
    left: 12px;
    right: auto;
}

.floor-label {
    bottom: 4px;
    right: 12px;
}

/* Lighting Moods */
.lighting-day {
    filter: brightness(1.02) contrast(1.02);
}

.lighting-warm {
    filter: sepia(0.2) brightness(1.01);
}

.lighting-cyber {
    filter: hue-rotate(-8deg) brightness(0.98);
    box-shadow: inset 0 0 60px rgba(99, 102, 241, 0.15);
}

.lighting-controls {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.lighting-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--stone-200);
    background: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lighting-btn.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    border-color: transparent;
    color: var(--dark-bg);
}

.color-pickers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.color-pickers label {
    font-size: 11px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.color-pickers input {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stone-200);
    cursor: pointer;
}

/* ============================================ */
/* 18. Catalog Page */
/* ============================================ */

.catalog-page {
    animation: fadeInUp 0.6s ease-out;
}

.catalog-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--stone-900));
    border-radius: var(--radius-3xl);
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
}

.catalog-header h1 {
    color: white;
    margin-bottom: 16px;
}

.catalog-header p {
    color: var(--stone-400);
}

.catalog-controls {
    margin-bottom: 32px;
}

.catalog-controls input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.catalog-controls input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--stone-200);
    background: white;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    border-color: transparent;
    color: var(--dark-bg);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 24px;
    transition: all var(--transition-normal);
    border: 1px solid var(--stone-200);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold-primary);
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.product-colors span {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stone-200);
}

.product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-unit {
    font-size: 11px;
    color: var(--stone-400);
    margin-bottom: 12px;
}

.product-prices {
    margin: 16px 0;
}

.retail-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--stone-800);
}

.wholesale-price {
    font-size: 12px;
    color: var(--gold-deep);
    font-weight: 600;
}

/* ============================================ */
/* 19. Booking Page */
/* ============================================ */

.booking-page {
    animation: fadeInUp 0.6s ease-out;
}

.booking-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--stone-900));
    border-radius: var(--radius-3xl);
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    color: white;
    margin-bottom: 16px;
}

.booking-header p {
    color: var(--stone-400);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.booking-info {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 32px;
    border: 1px solid var(--stone-200);
}

.booking-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-primary);
}

.booking-info p {
    font-size: 13px;
    color: var(--stone-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.booking-info a {
    color: var(--gold-deep);
    text-decoration: none;
}

.booking-form-container {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 32px;
    border: 1px solid var(--stone-200);
}

.combo-attachment {
    background: var(--gold-glow);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--gold-border);
}

.combo-attachment h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.combo-attachment p {
    font-size: 12px;
    color: var(--stone-600);
}

.combo-details {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================ */
/* 20. Toast Notification */
/* ============================================ */

.toast-message {
    background: var(--dark-bg);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 14px 24px;
    margin-bottom: 12px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease-out;
    backdrop-filter: blur(8px);
}

/* ============================================ */
/* 21. Responsive Design */
/* ============================================ */

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 40px; }
    .hero h1 { font-size: 36px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .simulator-layout { grid-template-columns: 1fr; }
    .booking-container { grid-template-columns: 1fr; }
    .showroom-section { grid-template-columns: 1fr; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero { padding: 30px 24px; }
    .hero h1 { font-size: 28px; }
    .stats-grid { grid-template-columns: 1fr; gap: 24px; }
    .grid-services { grid-template-columns: 1fr; }
    .grid-brands { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .control-card, .canvas-card { padding: 20px; }
    .row-2 { grid-template-columns: 1fr; }
    .category-filters { justify-content: center; }
    .chat-user, .chat-assistant { max-width: 90%; }
    .quick-questions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .sim-preview-card { flex-direction: column; text-align: center; }
    .stats-grid { gap: 20px; }
    .brand-card { padding: 16px; }
}

/* ============================================ */
/* 22. Print Styles */
/* ============================================ */

@media print {
    header, footer, .nav, .hero-buttons, .btn, .chat-section,
    .quick-questions, .lighting-controls, .color-pickers,
    .action-buttons, .saved-list, .consult-form, .showroom-card {
        display: none !important;
    }
    
    body { background: white; }
    .container { padding: 0; margin: 0; }
    .invoice-card { box-shadow: none; border: 1px solid #ccc; }
    .canvas-stage { border: 1px solid #ccc; background: white; }
    
    @page {
        size: A4;
        margin: 2cm;
    }
}

/* ============================================ */
/* 23. Loading & Skeleton */
/* ============================================ */

.skeleton {
    background: linear-gradient(90deg, var(--stone-200) 25%, var(--stone-100) 50%, var(--stone-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

/* ============================================ */
/* 24. Utility Classes */
/* ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }

.hidden { display: none; }
.visible { display: block; }