@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root, [data-theme="dark"] {
    --bg-primary: #0a0908;
    --bg-secondary: #131210;
    --card-bg: rgba(22, 20, 17, 0.65);
    --card-bg-hover: rgba(30, 27, 23, 0.85);
    --border-color: rgba(241, 184, 45, 0.08);
    --border-color-hover: rgba(241, 184, 45, 0.25);
    --text-primary: #f5f4f0;
    --text-secondary: #a8a49c;
    --text-muted: #6e6a62;
    --accent-gold: #f1b82d;
    --accent-gold-glow: rgba(241, 184, 45, 0.35);
    --accent-gold-gradient: linear-gradient(135deg, #ffe07d 0%, #f1b82d 50%, #a36a1a 100%);
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 25px rgba(241, 184, 45, 0.15);
    --glass-blur: blur(16px);
    --orb-gold-1: rgba(241, 184, 45, 0.04);
    --orb-gold-2: rgba(163, 106, 26, 0.04);
}

[data-theme="light"] {
    --bg-primary: #f7f6f2;
    --bg-secondary: #ededeb;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-bg-hover: rgba(255, 255, 255, 0.9);
    --border-color: rgba(163, 106, 26, 0.12);
    --border-color-hover: rgba(163, 106, 26, 0.35);
    --text-primary: #1c1b18;
    --text-secondary: #5e5a52;
    --text-muted: #918c82;
    --accent-gold: #c2921a;
    --accent-gold-glow: rgba(194, 146, 26, 0.2);
    --accent-gold-gradient: linear-gradient(135deg, #e7c369 0%, #c2921a 50%, #85610d 100%);
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 8px 30px rgba(194, 146, 26, 0.06);
    --glass-blur: blur(16px);
    --orb-gold-1: rgba(241, 184, 45, 0.05);
    --orb-gold-2: rgba(163, 106, 26, 0.03);
}

/* --- RESET & GLOBAL SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* For beautiful English text or specific numbers */
.num-font {
    font-family: inherit;
}

/* Force unified font inheritance on all form elements */
input, select, button, textarea, option {
    font-family: inherit !important;
}

/* High contrast dropdown options in both Light and Dark mode */
select option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

.mobile-only {
    display: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* --- BASE UTILITIES --- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gold {
    color: var(--accent-gold);
}

.gradient-text-gold {
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-color-hover);
    background: var(--card-bg-hover);
    box-shadow: var(--shadow-gold), var(--shadow-lg);
}

/* Floating Radial Glow Orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: screen;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--orb-gold-1);
    top: -10%;
    left: 10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--orb-gold-2);
    bottom: -15%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(241, 184, 45, 0.02);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(40px) translateX(-30px) scale(1.1); }
}

/* --- HEADER & FLOATING NAVIGATION --- */
header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 100;
}

header .container {
    max-width: 100% !important;
    padding: 0 2.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    flex-wrap: nowrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    height: 38px;
    width: auto;
}

.nav-brand span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: rgba(241, 184, 45, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Beautiful responsive adjustments for medium/large laptops to prevent wrapping or crowding */
@media (min-width: 1025px) and (max-width: 1300px) {
    header .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0.6rem 1.25rem;
    }
    
    .nav-brand span {
        font-size: 1.35rem;
    }
    
    .nav-links {
        gap: 0.45rem;
    }
    
    .nav-links a {
        font-size: 0.84rem;
        padding: 0.3rem 0.55rem;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .nav-actions .btn-primary {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* Theme Switcher Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 184, 45, 0.2);
}

.btn-primary {
    background: var(--accent-gold-gradient);
    color: #000000 !important;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(241, 184, 45, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 184, 45, 0.45);
}

/* Hamburger Menu Toggle Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
    flex-shrink: 0; /* Prevents squeezing in flex containers */
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(241, 184, 45, 0.06);
    border: 1px solid rgba(241, 184, 45, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-color-hover);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    background: rgba(241, 184, 45, 0.04);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(241, 184, 45, 0.12) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* Brand Logos Presentation */
.hero-logos-showcase {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo-card {
    position: relative;
    width: 200px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: floating-card 6s infinite alternate ease-in-out;
}

.logo-card.mini-card {
    animation-delay: -3s;
    margin-top: 50px;
}

.logo-card img {
    width: 100%;
    height: auto;
    max-width: 130px;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo-card:hover img {
    transform: translateY(-5px) scale(1.05);
}

.logo-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.logo-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
}

@keyframes floating-card {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* --- DYNAMIC RATE TICKER / DASHBOARD --- */
.rates-section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.rates-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rate-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rate-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 18px;
    background: var(--accent-gold);
    border-radius: 10px;
}

.rate-provider {
    font-size: 0.75rem;
    background: rgba(241, 184, 45, 0.08);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.rate-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.rate-price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.rate-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.rate-trend {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rate-trend.up { color: var(--accent-green); }
.rate-trend.down { color: var(--accent-red); }

.rates-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0 1rem;
}

.rates-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Custom rates updater indicator */
.flash-up {
    animation: flash-green 0.8s ease-out;
}
.flash-down {
    animation: flash-red 0.8s ease-out;
}

@keyframes flash-green {
    0% { background: rgba(16, 185, 129, 0.25); color: var(--accent-green); }
    100% { background: transparent; }
}

@keyframes flash-red {
    0% { background: rgba(239, 68, 68, 0.25); color: var(--accent-red); }
    100% { background: transparent; }
}

/* --- INTERACTIVE CALCULATORS --- */
.calc-section {
    padding: 80px 0;
    position: relative;
}

.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.calc-card {
    padding: 2.25rem;
}

.calc-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group label span.val-display {
    color: var(--accent-gold);
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input[type="number"], .input-wrapper select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input[type="number"]:focus, .input-wrapper select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 184, 45, 0.15);
}

.input-wrapper .input-unit {
    position: absolute;
    left: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Slider styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    margin-top: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-gold-gradient);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(241, 184, 45, 0.5);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Results Display Box */
.calc-results {
    background: rgba(0, 0, 0, 0.15);
    border: 1px dashed var(--border-color-hover);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(241, 184, 45, 0.05);
    font-size: 0.92rem;
}

.result-row:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
}

/* Barcode scan simulator */
.scanner-container {
    background: linear-gradient(135deg, rgba(20, 18, 15, 0.8) 0%, rgba(40, 35, 25, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: center;
}

.scan-viewfinder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--border-color-hover);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-laser {
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    top: 10%;
    left: 0;
    animation: laser-move 2.5s infinite alternate linear;
}

.scan-icon-sim {
    font-size: 3rem;
    color: var(--text-muted);
}

@keyframes laser-move {
    0% { top: 10%; }
    100% { top: 90%; }
}

.scan-item-select {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    outline: none;
    margin-bottom: 1rem;
    width: 100%;
}

.scan-info-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scan-info-box h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* --- DETAILED ENTERPRISE FEATURES SHOWCASE --- */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(241, 184, 45, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    border: 1px solid rgba(241, 184, 45, 0.15);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent-gold-gradient);
    color: #000000;
    transform: rotate(5deg) scale(1.05);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features interactive reports mockup */
.reports-mockup {
    margin-top: 3.5rem;
    padding: 2.5rem;
}

.reports-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-select-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.report-tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-tab-btn.active {
    background: var(--card-bg-hover);
    color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.report-canvas-sim {
    position: relative;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Simple graphic styling inside the simulator using pure elements */
.chart-sim-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 180px;
    padding-top: 20px;
    border-bottom: 2px solid var(--border-color-hover);
    position: relative;
}

.chart-sim-gridlines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.chart-gridline {
    width: 100%;
    border-top: 1px dashed rgba(241, 184, 45, 0.03);
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 14%;
    z-index: 1;
}

.chart-bar-glow-container {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 140px;
}

.chart-bar {
    width: 24px;
    border-radius: 6px 6px 0 0;
    background: var(--accent-gold-gradient);
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chart-bar:hover::after {
    content: attr(data-val);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.chart-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.ledger-table-sim {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 650px;
}

.ledger-table-sim th, .ledger-table-sim td {
    padding: 0.75rem 1rem;
    text-align: right;
}

.ledger-table-sim th {
    border-bottom: 2px solid var(--border-color-hover);
    color: var(--text-secondary);
    font-weight: 700;
}

.ledger-table-sim tr {
    border-bottom: 1px solid var(--border-color);
}

.ledger-table-sim tr:last-child {
    border-bottom: none;
    font-weight: 800;
    background: rgba(241, 184, 45, 0.03);
}

/* --- GOLDEX MINI & FAST RECEIPT SIMULATOR --- */
.mini-section {
    padding: 80px 0;
    position: relative;
}

.mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: start;
}

.mini-card-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(194, 146, 26, 0.08);
    border: 1px solid rgba(194, 146, 26, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.mini-card-intro h2 {
    font-size: 2.25rem;
    font-weight: 900;
}

.mini-card-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.mini-bullets {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    margin-top: 0.5rem;
}

.mini-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mini-bullets li svg {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Invoice Builder Workspace */
.invoice-workspace {
    padding: 2rem;
}

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

.invoice-builder-form {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.btn-add-item {
    background: rgba(241, 184, 45, 0.08);
    border: 1px solid var(--border-color-hover);
    color: var(--accent-gold);
    border-radius: 10px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-add-item:hover {
    background: var(--accent-gold-gradient);
    color: #000 !important;
}

/* Built Invoice Items List */
.invoice-items-list {
    max-height: 160px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.invoice-builder-form select {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

.invoice-builder-form select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 184, 45, 0.15);
}

.invoice-list-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 0.4fr;
    padding: 0.6rem 1rem;
    background: rgba(241, 184, 45, 0.04);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.invoice-item-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 0.4fr;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(241, 184, 45, 0.03);
    font-size: 0.88rem;
    align-items: center;
}

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

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    justify-content: center;
}

.btn-remove-item:hover {
    opacity: 1;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.invoice-total-glow {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
}

.btn-print {
    background: var(--accent-gold-gradient);
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(241, 184, 45, 0.25);
    transition: all 0.3s;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 184, 45, 0.45);
}

/* --- STYLISH A5 RECEIPT MODAL PREVIEW --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.receipt-modal {
    width: 90%;
    max-width: 840px;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .receipt-modal {
    transform: scale(1);
}

.modal-header-bar {
    background: #111111;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
}

/* Specific A5 Horizontal Layout Box */
.a5-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #dddddd;
    padding: 5px;
}

.a5-invoice-layout {
    width: 100%;
    min-width: 760px;
    padding: 25px;
    background: #ffffff;
    font-family: 'Vazirmatn', sans-serif;
    color: #000000;
    font-size: 11px;
    direction: rtl;
    line-height: 1.4;
}

.a5-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.a5-shop-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.a5-shop-logo {
    height: 42px;
    width: auto;
}

.a5-shop-title h2 {
    font-size: 16px;
    font-weight: 900;
}

.a5-shop-title p {
    font-size: 9px;
    color: #555555;
}

.a5-meta-info {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.a5-meta-info p {
    font-size: 10px;
    font-weight: 500;
}

.a5-meta-info p span {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
}

.a5-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.a5-table th, .a5-table td {
    border: 1px solid #1a1a1a;
    padding: 6px 8px;
    text-align: center;
}

.a5-table th {
    background: #f0f0f0;
    font-weight: 800;
    font-size: 11px;
}

.a5-totals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.a5-payment-info {
    font-size: 10px;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
}

.a5-payment-info h4 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 6px;
    font-weight: 800;
}

.a5-totals-summary {
    display: flex;
    flex-direction: column;
}

.a5-total-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #ccc;
    padding: 4px 0;
    font-size: 11px;
}

.a5-total-row.grand-total {
    border-bottom: none;
    font-size: 14px;
    font-weight: 900;
    color: #000;
    padding-top: 8px;
}

.a5-footer-note {
    text-align: center;
    font-size: 9px;
    margin-top: 15px;
    border-top: 1px solid #000;
    padding-top: 8px;
    color: #444;
}

/* Modal printing header button */
.modal-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f5f5f5;
    padding: 10px 25px;
    border-top: 1px solid #ddd;
}

.btn-print-real {
    background: #111111;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-print-real:hover {
    background: #333333;
}

/* --- COMPARISON MATRIX --- */
.compare-section {
    padding: 80px 0;
    position: relative;
}

.compare-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    min-width: 700px;
}

.compare-table th, .compare-table td {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.compare-table th {
    background: rgba(241, 184, 45, 0.03);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.compare-table th:first-child, .compare-table td:first-child {
    text-align: right;
    font-weight: 700;
    font-size: 1.05rem;
}

.compare-table th:nth-child(2), .compare-table td:nth-child(2) {
    background: rgba(241, 184, 45, 0.01);
}

.compare-table tr:hover td {
    background: rgba(241, 184, 45, 0.02);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.check-icon {
    color: var(--accent-green);
    font-weight: 900;
    font-size: 1.2rem;
}

.times-icon {
    color: var(--accent-red);
    font-weight: 900;
    font-size: 1.2rem;
}

/* --- TECH STACK VISUALIZATION --- */
.tech-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tech-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tech-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(241, 184, 45, 0.05);
    border: 1px dashed var(--border-color-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.8rem;
}

.tech-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.tech-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- FOOTER & CONTACT --- */
footer {
    background-color: #050403;
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 80px 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.pricing-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--accent-gold-glow);
    background: linear-gradient(135deg, rgba(22, 20, 17, 0.8) 0%, rgba(38, 30, 15, 0.7) 100%);
    box-shadow: var(--shadow-gold), var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(241, 184, 45, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card .price-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.price-box {
    margin-bottom: 2rem;
}

.strike-price {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.35rem;
    display: block;
}

.price-value {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pricing-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-features-list li svg {
    margin-top: 4px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

/* --- CUSTOM LANGUAGE SELECTOR & LTR OVERRIDES --- */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(241, 184, 45, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 150;
    min-width: 130px;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-align: right;
}

.lang-option:hover, .lang-option.active {
    background: rgba(241, 184, 45, 0.08);
    color: var(--text-primary);
}

/* LTR layout overrides */
[dir="ltr"] .compare-table th, 
[dir="ltr"] .compare-table td,
[dir="ltr"] .ledger-table-sim th, 
[dir="ltr"] .ledger-table-sim td,
[dir="ltr"] .faq-item,
[dir="ltr"] .mini-card-intro,
[dir="ltr"] .rate-price-row {
    text-align: left !important;
}

[dir="ltr"] .compare-table th:first-child, 
[dir="ltr"] .compare-table td:first-child {
    text-align: left !important;
}

[dir="ltr"] .price-notes {
    border-right: none !important;
    padding-right: 0 !important;
    border-left: 2px solid var(--accent-gold) !important;
    padding-left: 10px !important;
}

[dir="ltr"] .price-detail-card.featured .price-notes {
    border-left-color: var(--accent-blue) !important;
}

[dir="ltr"] .a5-meta-info {
    text-align: right !important;
}

[dir="ltr"] .a5-table th:nth-child(2), 
[dir="ltr"] .a5-table td:nth-child(2) {
    text-align: left !important;
}

[dir="ltr"] .a5-table th:nth-child(5), 
[dir="ltr"] .a5-table td:nth-child(5) {
    text-align: right !important;
}

[dir="ltr"] .a5-invoice-layout {
    direction: ltr !important;
    font-family: 'Outfit', sans-serif !important;
}

[dir="ltr"] .a5-meta-info p span {
    font-family: 'Outfit', sans-serif !important;
}

[dir="ltr"] .lang-dropdown {
    right: auto !important;
    left: 0 !important;
}

[dir="ltr"] .lang-option {
    text-align: left !important;
}

[dir="ltr"] .rates-meta {
    flex-direction: row-reverse !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }
    
    header {
        top: 0;
    }
    
    header .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .nav-container {
        border-radius: 0;
        padding: 0.75rem 1.25rem;
        border-left: none;
        border-right: none;
        border-top: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .nav-actions .btn-primary {
        display: none;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border: none;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-radius: 0;
        padding: 1.5rem;
        gap: 0.75rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 99;
        margin: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hamburger-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-btn.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .rates-dashboard {
        grid-template-columns: 1fr 1fr;
    }
    
    .calc-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }
    
    .mini-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .rates-dashboard {
        grid-template-columns: 1fr;
    }
    
    .hero-logos-showcase {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .logo-card.mini-card {
        margin-top: 0;
    }
    
    .scanner-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-builder-form {
        grid-template-columns: 1fr;
    }
    
    .invoice-list-header, .invoice-item-row {
        min-width: 450px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-card, .invoice-workspace {
        padding: 1.25rem !important;
    }
    
    .invoice-summary-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1.25rem !important;
        text-align: center !important;
    }
    
    .btn-print {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .modal-overlay {
        align-items: flex-start !important;
        overflow-y: auto !important;
        padding: 1.5rem 0.75rem !important;
    }
    
    .receipt-modal {
        margin: 20px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: scale(0.95) !important;
    }
}

@media (max-width: 480px) {
    .nav-brand span {
        display: none;
    }
}


/* --- AI ASSISTANT SIMULATOR SECTION --- */
.ai-section {
    padding: 100px 0;
    position: relative;
}

.ai-chat-sim-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid var(--accent-gold-glow);
    background: linear-gradient(135deg, rgba(22, 20, 17, 0.95) 0%, rgba(30, 26, 18, 0.9) 100%);
    box-shadow: var(--shadow-gold), var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .ai-chat-sim-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 238, 0.9) 100%);
    border-color: rgba(194, 146, 26, 0.3);
}

.ai-chat-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

[data-theme="light"] .ai-chat-header {
    background: rgba(0, 0, 0, 0.03);
}

.ai-bot-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.25rem;
    box-shadow: 0 0 15px rgba(241, 184, 45, 0.4);
}

.ai-bot-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-status-online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 600;
}

.ai-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    animation: pulseGlow 1.8s infinite ease-in-out;
}

.ai-model-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-chip {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(241, 184, 45, 0.12);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-prompts-bar {
    padding: 1rem 1.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ai-prompts-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.prompt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: inherit;
}

.prompt-btn:hover, .prompt-btn.active {
    background: var(--accent-gold-gradient);
    color: #000;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(241, 184, 45, 0.25);
    transform: translateY(-1px);
}

.ai-chat-body {
    padding: 1.75rem;
    min-height: 380px;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-msg {
    display: flex;
    gap: 12px;
    max-width: 88%;
    animation: fadeIn 0.3s ease-out;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row;
}

[dir="rtl"] .chat-msg.user {
    flex-direction: row-reverse;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-avatar-mini.bot-icon {
    background: var(--accent-gold-gradient);
    color: #000;
}

.chat-avatar-mini.user-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.msg-bubble {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.chat-msg.user .msg-bubble {
    background: var(--accent-gold);
    color: #000;
    font-weight: 600;
    border-bottom-left-radius: 4px;
}

[dir="rtl"] .chat-msg.user .msg-bubble {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
    width: 100%;
}

[dir="rtl"] .chat-msg.bot .msg-bubble {
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 4px;
}

[data-theme="light"] .chat-msg.bot .msg-bubble {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* AI Generated Invoice Preview Card in Chat */
.ai-invoice-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--accent-gold-glow);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.75rem;
}

[data-theme="light"] .ai-invoice-card {
    background: rgba(241, 184, 45, 0.06);
}

.ai-invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--border-color);
}

.ai-invoice-row:last-child {
    border-bottom: none;
}

.ai-invoice-total {
    font-weight: 800;
    color: var(--accent-gold);
    font-size: 1.05rem;
    padding-top: 0.5rem;
}

.ai-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 0.75rem;
}

.btn-ai-action {
    background: var(--accent-gold-gradient);
    color: #000;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-ai-action:hover {
    box-shadow: 0 4px 12px rgba(241, 184, 45, 0.3);
    transform: translateY(-1px);
}

.ai-chat-input-bar {
    padding: 1rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-input-wrapper {
    flex-grow: 1;
    position: relative;
}

.ai-chat-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s ease;
}

.ai-chat-input:focus {
    border-color: var(--accent-gold);
}

.btn-ai-send {
    background: var(--accent-gold-gradient);
    color: #000;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-ai-send:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(241, 184, 45, 0.4);
}

/* Typing Indicator Animation */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 6px 0;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- ONLINE VITRINE SHOWCASE SECTION --- */
.vitrine-section {
    padding: 100px 0;
    position: relative;
}

.vitrine-store-header {
    background: linear-gradient(135deg, rgba(22, 20, 17, 0.9) 0%, rgba(35, 30, 20, 0.85) 100%);
    border: 1px solid var(--accent-gold-glow);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}

[data-theme="light"] .vitrine-store-header {
    background: linear-gradient(135deg, #ffffff 0%, #faf8f2 100%);
    border-color: rgba(194, 146, 26, 0.3);
}

.vitrine-url-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 184, 45, 0.12);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 25px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.vitrine-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.vitrine-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    font-family: inherit;
}

.vitrine-filter-btn:hover, .vitrine-filter-btn.active {
    background: var(--accent-gold-gradient);
    color: #000;
    border-color: transparent;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(241, 184, 45, 0.25);
}

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.vitrine-card {
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.vitrine-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold), var(--shadow-lg);
}

.vitrine-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.vitrine-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(241, 184, 45, 0.15);
    color: var(--accent-gold);
}

.vitrine-img-mock {
    height: 160px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(40, 35, 20, 0.3) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-gold);
    gap: 8px;
    font-size: 2.5rem;
}

[data-theme="light"] .vitrine-img-mock {
    background: linear-gradient(135deg, #f5f2e9 0%, #eae5d6 100%);
}

.vitrine-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.vitrine-specs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.vitrine-live-price-box {
    margin-bottom: 1.25rem;
}

.vitrine-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.vitrine-price-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.vitrine-order-btns {
    display: flex;
    gap: 8px;
}

.btn-vitrine-inquire {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff !important;
}

.btn-bale {
    background: #0077b6;
    color: #fff !important;
}

.btn-vitrine-inquire:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* --- EXECUTIVE DASHBOARD SHOWCASE SECTION --- */
.dashboard-section {
    padding: 100px 0;
    position: relative;
}

.dashboard-hub-card {
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(22, 20, 17, 0.9) 0%, rgba(28, 25, 18, 0.85) 100%);
    box-shadow: var(--shadow-lg);
}

[data-theme="light"] .dashboard-hub-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f8f4 100%);
}

.dashboard-currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.currency-pill {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.currency-pill:hover {
    border-color: var(--accent-gold);
    background: rgba(241, 184, 45, 0.04);
}

.currency-pill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

.currency-pill-amount {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--accent-gold);
}

.balance-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.balance-tag.debtor {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.balance-tag.creditor {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.balance-tag.settled {
    background: rgba(241, 184, 45, 0.15);
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .ai-prompts-bar {
        padding: 0.75rem 1rem;
    }
    .ai-chat-body {
        padding: 1rem;
    }
    .chat-msg {
        max-width: 95%;
    }
    .vitrine-store-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-hub-card {
        padding: 1.25rem;
    }
}


/* --- BROWSER PRINT LAYOUT FOR A5 RECEIPT --- */
@media print {
    body > :not(#receipt-modal-container) {
        display: none !important;
    }
    
    body > #receipt-modal-container {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        opacity: 1 !important;
        z-index: 9999999 !important;
    }
    
    .receipt-modal {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .modal-header-bar, .modal-actions-bar {
        display: none !important;
    }
    
    .a5-wrapper {
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .a5-invoice-layout {
        width: 100% !important;
        min-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        border: none !important;
        background: #ffffff !important;
    }
    
    @page {
        size: A5 landscape;
        margin: 0.5cm;
    }
}


/* --- LIGHT MODE SPECIFIC FIXES --- */
[data-theme="light"] .pricing-card.featured,
[data-theme="light"] .price-detail-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 249, 235, 0.95) 100%) !important;
    border-color: rgba(194, 146, 26, 0.4) !important;
    box-shadow: 0 10px 30px rgba(194, 146, 26, 0.12), var(--shadow-md) !important;
}

[data-theme="light"] .pricing-card.featured h3,
[data-theme="light"] .pricing-card.featured p,
[data-theme="light"] .pricing-card.featured span,
[data-theme="light"] .pricing-card.featured li,
[data-theme="light"] .price-detail-card.featured h3,
[data-theme="light"] .price-detail-card.featured p,
[data-theme="light"] .price-detail-card.featured span,
[data-theme="light"] .price-detail-card.featured li {
    color: var(--text-primary);
}

[data-theme="light"] .pricing-card.featured .price-subtitle,
[data-theme="light"] .price-detail-card.featured .price-notes {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .scanner-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 245, 238, 0.9) 100%) !important;
    border-color: rgba(163, 106, 26, 0.25) !important;
}

[data-theme="light"] .scan-item-select {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
    border-color: rgba(163, 106, 26, 0.2) !important;
}

[data-theme="light"] .scan-info-box h4 {
    color: var(--accent-gold) !important;
}

[data-theme="light"] .scan-info-box p {
    color: var(--text-secondary) !important;
}

/* Nav links compact & clean layout */
.nav-links {
    gap: 1.1rem !important;
}

.nav-links a {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    padding: 0.4rem 0.6rem !important;
}

/* Hero CTA buttons wrap prevention & sleek style */
.hero-ctas {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    margin-top: 1.75rem !important;
}

.hero-ctas a {
    white-space: nowrap !important;
    padding: 0.75rem 1.35rem !important;
    font-size: 0.92rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* AI Prompts bar wrap naturally without horizontal scroll */
.ai-prompts-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0.85rem 1.25rem !important;
    overflow-x: visible !important;
}

.ai-prompts-title {
    margin-left: 6px !important;
}

.prompt-btn {
    font-size: 0.82rem !important;
    padding: 5px 12px !important;
    border-radius: 16px !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .hero-ctas a {
        width: 100% !important;
        justify-content: center !important;
    }
    .ai-prompts-bar {
        padding: 0.75rem 1rem !important;
    }
    .prompt-btn {
        font-size: 0.78rem !important;
        padding: 5px 10px !important;
    }
}


/* --- MULTILINGUAL FONT FAMILY ENFORCEMENT --- */
html[lang="en"],
html[lang="tr"],
html[lang="en"] body,
html[lang="tr"] body,
html[lang="en"] .num-font,
html[lang="tr"] .num-font,
html[lang="en"] input,
html[lang="tr"] input,
html[lang="en"] select,
html[lang="tr"] select,
html[lang="en"] button,
html[lang="tr"] button,
html[lang="en"] textarea,
html[lang="tr"] textarea,
body.ltr-layout,
body.ltr-layout .num-font {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

html[lang="fa"],
html[lang="fa"] body,
html[lang="fa"] .num-font,
html[lang="fa"] input,
html[lang="fa"] select,
html[lang="fa"] button,
html[lang="fa"] textarea {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}


/* --- MODERN RESPONSIVE COMPARE TABLE SYSTEM --- */
.compare-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    scrollbar-width: thin;
}

.compare-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.compare-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color-hover);
    border-radius: 4px;
}

.table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    color: var(--accent-gold);
    background: rgba(241, 184, 45, 0.06);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: right;
    min-width: 680px;
}

.compare-table th, .compare-table td {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.compare-table th {
    background: rgba(241, 184, 45, 0.04);
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.02rem;
}

.compare-group-title {
    background: rgba(241, 184, 45, 0.05) !important;
    font-weight: 800;
    color: var(--accent-gold) !important;
    font-size: 0.98rem;
    padding: 0.85rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

[dir="ltr"] .compare-group-title {
    text-align: left;
}

/* Sticky first column on mobile for effortless reading */
@media (max-width: 768px) {
    .table-scroll-hint {
        display: flex !important;
    }
    
    .compare-table {
        min-width: 580px;
    }
    
    .compare-table th, .compare-table td {
        padding: 0.75rem 0.65rem !important;
        font-size: 0.8rem !important;
        line-height: 1.4;
    }
    
    .compare-table th {
        font-size: 0.85rem !important;
    }
    
    .compare-table th:first-child,
    .compare-table td:first-child {
        position: sticky;
        right: 0;
        z-index: 2;
        background: var(--bg-primary);
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
        min-width: 140px;
        max-width: 170px;
        font-size: 0.8rem !important;
    }
    
    [data-theme="light"] .compare-table th:first-child,
    [data-theme="light"] .compare-table td:first-child {
        background: #f7f6f2 !important;
        box-shadow: -3px 0 8px rgba(0, 0, 0, 0.05);
    }
    
    [dir="ltr"] .compare-table th:first-child,
    [dir="ltr"] .compare-table td:first-child {
        right: auto;
        left: 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    [dir="ltr"][data-theme="light"] .compare-table th:first-child,
    [dir="ltr"][data-theme="light"] .compare-table td:first-child {
        box-shadow: 3px 0 8px rgba(0, 0, 0, 0.05);
    }
    
    .compare-table th:first-child {
        background: rgba(24, 22, 18, 0.95);
    }
    
    [data-theme="light"] .compare-table th:first-child {
        background: #edece6 !important;
    }
    
    .compare-group-title {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.85rem !important;
    }
    
    .check-icon, .times-icon {
        font-size: 0.95rem !important;
    }
}
