/* ============================================
   انتارس - سلطان طلا و الماس ایران
   نسخه نهایی کامل - Dark Default + Pure White Light
   سه عکس重叠 در هیرو + تصویر بازار طلا
   ============================================ */

@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Peyda'; src: url('../fonts/Peyda-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
    /* Gold Palette */
    --gold: #B8860B;
    --gold-light: #D4AF37;
    --gold-lighter: #F0D78C;
    --gold-dark: #8B6914;
    --gold-glow: rgba(212, 175, 55, 0.35);
    --gold-gradient: linear-gradient(135deg, #8B6914 0%, #B8860B 30%, #D4AF37 50%, #C9A94E 70%, #8B6914 100%);
    --gold-gradient-light: linear-gradient(135deg, #D4AF37 0%, #F0D78C 50%, #D4AF37 100%);
    --gold-gradient-btn: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #F0D78C 100%);
    --gold-gradient-text: linear-gradient(135deg, #F0D78C 0%, #D4AF37 40%, #F0D78C 100%);
    
    /* ========== DARK THEME (DEFAULT) ========== */
    --black: #06080D;
    --gray: #0A0F18;
    --light-gray: #0F1622;
    --bg-card: rgba(15, 22, 34, 0.75);
    --bg-card-hover: rgba(20, 28, 42, 0.9);
    --bg-glass: rgba(10, 15, 24, 0.65);
    --bg-glass-strong: rgba(10, 15, 24, 0.88);
    --bg-input: rgba(20, 28, 44, 0.6);
    --bg-input-focus: rgba(25, 34, 52, 0.8);
    --bg-hero-overlay: rgba(6, 8, 13, 0.85);
    --text-primary: #EDE8DC;
    --text-secondary: #A09888;
    --text-muted: #706858;
    --text-gold: #D4AF37;
    --border-subtle: rgba(212, 175, 55, 0.06);
    --border-default: rgba(212, 175, 55, 0.12);
    --border-gold-subtle: rgba(212, 175, 55, 0.18);
    --border-gold-default: rgba(212, 175, 55, 0.35);
    --border-gold-strong: rgba(212, 175, 55, 0.55);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-gold-sm: 0 4px 20px rgba(212, 175, 55, 0.2);
    --shadow-gold-md: 0 8px 40px rgba(212, 175, 55, 0.3);
    --shadow-gold-lg: 0 16px 60px rgba(212, 175, 55, 0.4);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.1);
    --glass-blur: blur(28px);
    --container-max: 1200px;
    --header-height: 80px;
    --topbar-height: 44px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --slant-1: 4px 20px 4px 20px;
    --slant-2: 6px 24px 6px 24px;
    --slant-3: 3px 16px 3px 16px;
    --slant-4: 16px 50% 50% 16px;
    --slant-5: 4px 20px 4px 20px;
    --slant-6: 2px 14px 2px 14px;
    --slant-7: 4px 50% 50% 50%;
    --slant-8: 3px 14px 3px 14px;
    --slant-9: 4px 50% 50% 50%;
    --slant-card: 8px 32px 8px 32px;
    --slant-btn: 6px 24px 6px 24px;
}

/* ========== LIGHT MODE (PURE WHITE) ========== */
body.light-mode {
    --black: #FFFFFF;
    --gray: #FAFAFA;
    --light-gray: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-glass: #FFFFFF;
    --bg-glass-strong: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-input-focus: #FFFFFF;
    --bg-hero-overlay: rgba(255, 255, 255, 0.7);
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-gold: #8B6914;
    --border-subtle: rgba(139, 105, 20, 0.1);
    --border-default: rgba(139, 105, 20, 0.2);
    --border-gold-subtle: rgba(139, 105, 20, 0.25);
    --border-gold-default: rgba(139, 105, 20, 0.45);
    --border-gold-strong: rgba(139, 105, 20, 0.65);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-gold-sm: 0 4px 20px rgba(139, 105, 20, 0.12);
    --shadow-gold-md: 0 8px 40px rgba(139, 105, 20, 0.2);
    --shadow-gold-lg: 0 16px 60px rgba(139, 105, 20, 0.28);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(139, 105, 20, 0.12);
}

/* تنظیم رنگ فونت در تم تاریک */
body:not(.light-mode) {
    --text-primary: #FFFFFF;
    --text-secondary: #E8E4D9;
    --text-muted: #B8B4A8;
}

body:not(.light-mode) .card-title,
body:not(.light-mode) .product-card h3,
body:not(.light-mode) .filter-category,
body:not(.light-mode) .filter-sort label,
body:not(.light-mode) .result-count,
body:not(.light-mode) .page-btn,
body:not(.light-mode) .card-detail-btn {
    color: var(--text-secondary);
}

body:not(.light-mode) .card-specs span {
    color: var(--text-muted);
}

body:not(.light-mode) .card-price.contact {
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: 'Peyda', sans-serif;
    background: var(--black);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    padding-top: calc(var(--topbar-height) + var(--header-height));
    position: relative;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(184, 134, 11, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
    pointer-events: none; z-index: 0;
}
body.light-mode::before {
    background: 
        radial-gradient(ellipse at 15% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(184, 134, 11, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.02) 0%, transparent 40%);
}

::selection { background: rgba(212, 175, 55, 0.3); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-gradient); border-radius: 9999px; }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; color: var(--text-primary); }
h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { color: var(--text-secondary); line-height: 2; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.container-fluid { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 16px; position: relative; z-index: 2; }

.gold-text { 
    background: var(--gold-gradient-text);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
}
body.light-mode .gold-text {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section { padding: 100px 0; position: relative; z-index: 2; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin-bottom: 16px; }
.section-title h2::after {
    content: ''; display: block; width: 80px; height: 3px;
    background: var(--gold-gradient-light);
    margin: 16px auto 0; border-radius: 9999px; box-shadow: var(--shadow-gold-sm);
}
.section-title p { max-width: 700px; margin: 20px auto 0; font-size: 1.05rem; color: var(--text-secondary); }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-glass); border: 1px solid var(--border-gold-default);
    color: var(--gold-light); padding: 10px 24px; border-radius: var(--slant-5);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
    backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}
body.light-mode .section-badge { background: #FFFFFF; border: 1px solid var(--border-gold-default); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.section-badge:hover { box-shadow: var(--shadow-gold-sm); border-color: var(--border-gold-strong); transform: translateY(-2px); }
.section-badge svg { color: var(--gold-light); }
.section-more { text-align: center; margin-top: 48px; }

/* ========== TOP BAR ========== */
.top-bar {
    position: fixed; top: 0; left: 0; right: 0; width: 100%;
    background: var(--bg-glass-strong); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-gold-default);
    padding: 10px 0; font-size: 0.78rem; color: var(--text-secondary);
    z-index: 1002; box-shadow: var(--shadow-md);
}
body.light-mode .top-bar { background: #FFFFFF; border-bottom: 1px solid rgba(139, 105, 20, 0.3); box-shadow: 0 2px 16px rgba(0,0,0,0.05); }
.top-bar-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.top-bar-info { display: flex; gap: 28px; flex-wrap: wrap; }
.top-bar-info span { display: inline-flex; align-items: center; gap: 8px; transition: var(--transition-fast); padding: 4px 8px; border-radius: var(--slant-5); }
.top-bar-info span:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.08); }
body.light-mode .top-bar-info span:hover { background: rgba(184, 134, 11, 0.06); color: #8B6914; }
.top-bar-social { display: flex; gap: 12px; }
.top-bar-social a {
    opacity: 0.7; transition: var(--transition-spring);
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--slant-7);
    background: var(--border-subtle); color: var(--text-secondary);
}
body.light-mode .top-bar-social a { background: #F8F5ED; color: #555; }
.top-bar-social a:hover { opacity: 1; color: var(--gold-light); background: rgba(212, 175, 55, 0.15); transform: translateY(-3px); box-shadow: var(--shadow-gold-sm); }
@media (max-width: 992px) { .top-bar-info { display: none; } .top-bar { padding: 8px 0; } .top-bar-social { margin: 0 auto; } }
@media (max-width: 768px) { .top-bar-container { justify-content: center; } }

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    font-family: 'Peyda', sans-serif; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition-spring); border: none;
    position: relative; overflow: hidden; letter-spacing: 0.02em;
    text-decoration: none; white-space: nowrap;
    background: var(--gold-gradient-btn); color: #0A0A0A;
    box-shadow: var(--shadow-gold-sm);
    background-size: 200% 200%; animation: goldShine 3s ease-in-out infinite;
    border-radius: var(--slant-btn);
}
body.light-mode .btn-primary { color: #FFFFFF; }
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { box-shadow: var(--shadow-gold-lg); transform: translateY(-4px); }
@keyframes goldShine { 0%,100%{background-position:0% 50%;} 50%{background-position:100% 50%;} }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    font-family: 'Peyda', sans-serif; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition-spring);
    border: 1.5px solid var(--border-gold-default);
    position: relative; overflow: hidden; letter-spacing: 0.02em;
    text-decoration: none; white-space: nowrap;
    background: var(--bg-glass); color: var(--gold-light);
    backdrop-filter: var(--glass-blur); border-radius: var(--slant-1);
}
body.light-mode .btn-outline { background: #FFFFFF; color: #8B6914; border-color: rgba(139, 105, 20, 0.5); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--border-gold-strong); box-shadow: var(--shadow-gold-md); color: var(--gold-lighter); transform: translateY(-4px); }
body.light-mode .btn-outline:hover { background: rgba(184, 134, 11, 0.05); color: #6B4E0A; }

.card-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    font-family: 'Peyda', sans-serif; font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: var(--transition-spring);
    border: 1px solid var(--border-gold-subtle);
    color: var(--gold-light); background: rgba(212, 175, 55, 0.08);
    border-radius: var(--slant-6); text-decoration: none;
}
body.light-mode .card-btn { background: #FFFBF0; border-color: rgba(139, 105, 20, 0.3); color: #8B6914; }
.card-btn:hover { background: rgba(212, 175, 55, 0.2); border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-sm); transform: translateY(-3px); }
body.light-mode .card-btn:hover { background: #FFF3D6; }
.card-btn-contact { background: rgba(212, 175, 55, 0.15); border-color: var(--border-gold-default); animation: contactPulse 2s ease-in-out infinite; }
body.light-mode .card-btn-contact { background: #FFF3D6; border-color: rgba(139, 105, 20, 0.5); }
@keyframes contactPulse { 0%,100%{box-shadow:0 0 10px rgba(212,175,55,0.3);} 50%{box-shadow:0 0 25px rgba(212,175,55,0.6);} }

.event-btn {
    display: flex; justify-content: center; padding: 16px;
    font-weight: 700; font-size: 0.9rem; color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05); transition: var(--transition-spring);
    border: none; cursor: pointer; font-family: 'Peyda', sans-serif; border-radius: 0;
}
body.light-mode .event-btn { background: #FFFBF0; color: #8B6914; }
.event-btn:hover { background: rgba(212, 175, 55, 0.15); transform: translateY(-3px); }

.load-more-gallery, .load-more-products {
    display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px;
    font-family: 'Peyda', sans-serif; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition-spring);
    border: 1.5px solid var(--border-gold-default);
    background: var(--bg-glass); color: var(--gold-light);
    backdrop-filter: blur(20px); border-radius: var(--slant-3); text-decoration: none;
}
body.light-mode .load-more-gallery, body.light-mode .load-more-products { background: #FFFFFF; color: #8B6914; }
.load-more-gallery:hover, .load-more-products:hover { background: rgba(212, 175, 55, 0.15); box-shadow: var(--shadow-gold-md); color: var(--gold-lighter); transform: translateY(-3px); }

.scroll-top-btn {
    position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px;
    border-radius: var(--slant-4);
    background: var(--gold-gradient-btn); color: #0A0A0A;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition-spring);
    z-index: 999; box-shadow: var(--shadow-gold-md);
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { transform: translateY(-5px); box-shadow: var(--shadow-gold-lg); }

/* ========== HEADER ========== */
.header {
    position: fixed; top: var(--topbar-height); right: 0; left: 0; z-index: 1000;
    height: var(--header-height);
    background: var(--bg-glass-strong); backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base); box-shadow: var(--shadow-md);
}
body.light-mode .header { background: #FFFFFF; border-bottom: 1px solid rgba(139, 105, 20, 0.15); box-shadow: 0 2px 20px rgba(0,0,0,0.05); }
.header.scrolled { background: var(--bg-glass-strong); box-shadow: var(--shadow-lg); border-bottom-color: var(--border-gold-subtle); }
body.light-mode .header.scrolled { background: #FFFFFF; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo svg { color: var(--gold-light); filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4)); transition: var(--transition-spring); }
.logo:hover svg { filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.7)); transform: rotate(-12deg) scale(1.15); }
.logo-text h1 { font-size: 1.6rem; font-weight: 900; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
body.light-mode .logo-text h1 { background: linear-gradient(135deg, #8B6914, #D4AF37, #8B6914); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text span { font-size: 0.65rem; color: var(--text-secondary); display: block; text-align: center; letter-spacing: 0.05em; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list > .menu-item-hover { position: relative; }
.nav-list > .menu-item-hover > a {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px;
    font-weight: 600; font-size: 0.9rem; color: var(--text-secondary);
    border-radius: var(--slant-1); transition: var(--transition-base); white-space: nowrap;
}
.nav-list > .menu-item-hover > a:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.08); transform: translateY(-2px); }
body.light-mode .nav-list > .menu-item-hover > a:hover { background: rgba(184, 134, 11, 0.06); color: #8B6914; }
.nav-list > .menu-item-hover > .submenu {
    position: absolute; top: calc(100% + 10px); right: 50%;
    transform: translateX(50%) translateY(12px);
    background: var(--bg-glass-strong); backdrop-filter: blur(30px);
    border: 1px solid var(--border-gold-default);
    border-radius: var(--slant-1); padding: 14px 8px; min-width: 250px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: var(--transition-spring); box-shadow: var(--shadow-gold-lg); z-index: 100;
}
body.light-mode .nav-list > .menu-item-hover > .submenu { background: #FFFFFF; }
.nav-list > .menu-item-hover:hover > .submenu { opacity: 1; visibility: visible; pointer-events: all; transform: translateX(50%) translateY(0); }
.submenu li a { display: block; padding: 11px 20px; font-size: 0.85rem; color: var(--text-secondary); border-radius: var(--slant-1); transition: var(--transition-fast); }
.submenu li a:hover { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); padding-right: 26px; }
body.light-mode .submenu li a:hover { background: #FFFBF0; color: #8B6914; }
.more-menu > a { color: var(--gold-light) !important; font-weight: 700 !important; }
.header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-icon {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--slant-1);
    background: var(--border-subtle); border: 1px solid var(--border-default);
    color: var(--text-secondary); cursor: pointer; transition: var(--transition-spring); position: relative;
}
body.light-mode .header-icon { background: #F8F5ED; border-color: rgba(139, 105, 20, 0.2); color: #555; }
.header-icon:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--border-gold-default); color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold-sm); }
.mobile-menu-btn { display: none; }
@media (max-width: 992px) { .mobile-menu-btn { display: flex; } .main-nav { display: none; } }

/* ========== PROGRESS BAR ========== */
.progress-bar-container { position: fixed; top: calc(var(--topbar-height) + var(--header-height)); left: 0; width: 100%; height: 3px; background: rgba(212, 175, 55, 0.15); z-index: 1001; }
.progress-bar { height: 100%; width: 0%; background: var(--gold-gradient-light); transition: width 0.1s ease; box-shadow: var(--shadow-gold-sm); }

/* ========== MODALS ========== */
.account-modal, .contact-modal {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
    z-index: 2000; align-items: center; justify-content: center;
}
body.light-mode .account-modal, body.light-mode .contact-modal { background: rgba(0,0,0,0.4); }
.contact-modal { z-index: 2001; }
.account-modal-content, .contact-modal-content {
    background: var(--bg-glass-strong); backdrop-filter: blur(30px);
    border: 1px solid var(--border-gold-default);
    border-radius: var(--slant-1); padding: 32px;
    width: 90%; max-width: 450px;
    animation: fadeInUp 0.3s ease; box-shadow: var(--shadow-gold-lg);
}
body.light-mode .account-modal-content, body.light-mode .contact-modal-content { background: #FFFFFF; border: 1px solid rgba(139, 105, 20, 0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.contact-modal-content { text-align: center; }
.account-modal-header, .contact-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.contact-modal-header { margin-bottom: 20px; }
.account-modal-header h3, .contact-modal-header h3 { color: var(--gold-light); font-size: 1.5rem; }
.close-modal, .close-contact-modal { background: none; border: none; color: var(--text-secondary); font-size: 1.8rem; cursor: pointer; transition: var(--transition-fast); }
.close-modal:hover, .close-contact-modal:hover { color: var(--gold-light); transform: scale(1.1); }
.account-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; border-bottom: 1px solid var(--border-gold-subtle); padding-bottom: 12px; }
.tab-btn { background: none; border: none; padding: 8px 20px; font-family: 'Peyda', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); border-radius: var(--slant-5); }
.tab-btn.active { background: var(--gold-gradient-btn); color: #0A0A0A; box-shadow: var(--shadow-gold-sm); }
body.light-mode .tab-btn.active { color: #FFFFFF; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.account-modal input {
    width: 100%; padding: 14px 18px; margin-bottom: 16px;
    background: var(--bg-input); border: 1px solid var(--border-gold-subtle);
    border-radius: var(--slant-8); color: var(--text-primary);
    font-family: 'Peyda', sans-serif; transition: var(--transition-fast);
}
body.light-mode .account-modal input { background: #FFFFFF; border: 1px solid rgba(139, 105, 20, 0.3); color: #1A1A1A; }
.account-modal input:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.form-note { text-align: center; margin-top: 16px; font-size: 0.8rem; }
.form-note a { color: var(--gold-light); }
.contact-modal-options { display: flex; flex-direction: column; gap: 15px; margin: 25px 0; }
.contact-option {
    display: block; padding: 14px; background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold-default); border-radius: var(--slant-1);
    color: var(--gold-light); font-weight: 600; transition: var(--transition-fast);
}
body.light-mode .contact-option { background: #FFFBF0; border-color: rgba(139, 105, 20, 0.3); color: #8B6914; }
.contact-option:hover { background: rgba(212, 175, 55, 0.2); transform: translateY(-3px); box-shadow: var(--shadow-gold-sm); }
.contact-modal-note { font-size: 0.8rem; color: var(--text-secondary); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }

/* ========== HERO ========== */
.hero {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
    padding-top: 0; 
    overflow: hidden; 
    background: var(--black); 
    margin-top: 0;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../image/market/bazaar.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    filter: brightness(0.5) saturate(0.7) contrast(1.2);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
body.light-mode .hero::before {
    opacity: 0.35;
    filter: brightness(1.1) saturate(0.6) contrast(1);
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.hero-overlay {
    position: absolute; 
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(6, 11, 20, 0.85) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.9) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6, 8, 13, 0.8) 0%, rgba(6, 8, 13, 0.4) 50%, rgba(6, 8, 13, 0.9) 100%);
    z-index: 2;
}
body.light-mode .hero-overlay {
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.7) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.7) 100%);
}
.hero-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 60px; 
    align-items: center;
    position: relative; 
    z-index: 3; 
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding: 0 24px;
}
.hero-text { text-align: right; }

/* ========== سه عکس افتاده روی هم ========== */
.hero-images-stack {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    animation: floatStack 7s ease-in-out infinite;
}
@keyframes floatStack {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
.hero-img {
    position: absolute;
    border-radius: var(--slant-1);
    overflow: hidden;
    border: 2px solid var(--border-gold-default);
    box-shadow: var(--shadow-gold-lg);
    transition: var(--transition-spring);
    cursor: pointer;
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}
.hero-img:hover {
    z-index: 10 !important;
    transform: scale(1.08) !important;
    box-shadow: var(--shadow-gold-lg), 0 0 80px rgba(212, 175, 55, 0.5);
}
.hero-img:hover img { transform: scale(1.1); }
.hero-img-1 {
    width: 65%;
    height: 55%;
    top: 0;
    right: 0;
    z-index: 3;
    transform: rotate(-3deg);
    border-radius: 12px 40px 12px 40px;
}
.hero-img-2 {
    width: 55%;
    height: 48%;
    top: 28%;
    left: 0;
    z-index: 2;
    transform: rotate(5deg);
    border-radius: 40px 12px 40px 12px;
}
.hero-img-3 {
    width: 60%;
    height: 50%;
    bottom: 0;
    right: 15%;
    z-index: 1;
    transform: rotate(-2deg);
    border-radius: 30px 8px 30px 8px;
}

/* ========== متن‌های هیرو ========== */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-glass); border: 1px solid var(--border-gold-default);
    color: var(--gold-light); padding: 10px 26px; border-radius: var(--slant-5);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 32px;
    backdrop-filter: blur(30px); animation: fadeInUp 0.8s ease forwards;
}
body.light-mode .hero-badge { background: rgba(255,255,255,0.9); border-color: rgba(139,105,20,0.5); color: #8B6914; }
.hero h1 { 
    font-size: 3.5rem; font-weight: 900; margin-bottom: 24px; 
    line-height: 1.25; animation: fadeInUp 0.8s ease 0.2s forwards; 
    opacity: 0; text-shadow: 0 0 50px rgba(212, 175, 55, 0.3); 
}
body.light-mode .hero h1 { text-shadow: none; color: #1A1A1A; }
.hero-description { 
    font-size: 1.15rem; color: var(--text-secondary); 
    max-width: 750px; margin: 0 0 40px 0; 
    animation: fadeInUp 0.8s ease 0.4s forwards; opacity: 0; 
}
.hero-buttons { 
    display: flex; justify-content: flex-start; gap: 20px; 
    flex-wrap: wrap; margin-bottom: 64px; 
    animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; 
}
.hero-stats { 
    display: flex; justify-content: flex-start; gap: 30px; 
    flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.8s forwards; opacity: 0; 
}
.stat-item {
    text-align: center; background: var(--bg-glass);
    border: 1px solid var(--border-default);
    padding: 20px 28px; border-radius: var(--slant-1);
    backdrop-filter: blur(24px); transition: var(--transition-spring);
}
body.light-mode .stat-item { background: rgba(255,255,255,0.9); border-color: rgba(139,105,20,0.2); }
.stat-item:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-8px); }
.stat-number { display: block; font-size: 2.2rem; font-weight: 900; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .stat-number { background: linear-gradient(135deg, #8B6914, #D4AF37, #8B6914); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }
.hero-scroll { position: absolute; bottom: 36px; right: 50%; transform: translateX(50%); z-index: 3; animation: bounce 2.5s ease-in-out infinite; cursor: pointer; color: var(--gold-light); opacity: 0.7; }
body.light-mode .hero-scroll { color: #8B6914; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateX(50%) translateY(0);} 40%{transform:translateX(50%) translateY(-24px);} 60%{transform:translateX(50%) translateY(-12px);} }

/* ========== RESPONSIVE HERO ========== */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-text { text-align: center; order: 2; }
    .hero-images-stack { order: 1; max-width: 400px; height: 400px; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { gap: 16px; }
    .stat-item { padding: 16px 20px; }
    .stat-number { font-size: 1.8rem; }
    .hero-images-stack { max-width: 320px; height: 350px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-images-stack { max-width: 280px; height: 300px; }
}

/* ========== CALCULATOR ========== */
.calculator-section { padding: 80px 0; background: linear-gradient(180deg, var(--black) 0%, rgba(212, 175, 55, 0.03) 100%); }
body.light-mode .calculator-section { background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF5 100%); }
.calculator-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.calculator-form {
    background: var(--bg-glass); border: 1px solid var(--border-gold-subtle);
    border-radius: var(--slant-1); padding: 32px;
    backdrop-filter: blur(20px); transition: all 0.35s ease;
    display: flex; flex-direction: column;
}
body.light-mode .calculator-form { background: #FFFFFF; border-color: rgba(139,105,20,0.2); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.calculator-form:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-5px); }
.calc-group { margin-bottom: 22px; }
.calc-group label { display: block; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; font-size: 0.9rem; }
.calc-input, .calc-select {
    width: 100%; padding: 14px 18px; background: var(--bg-input);
    border: 1px solid var(--border-default); border-radius: var(--slant-8);
    color: var(--text-primary); font-family: 'Peyda', sans-serif; font-size: 1rem;
    transition: all 0.2s ease;
}
body.light-mode .calc-input, body.light-mode .calc-select { background: #FFFFFF; border: 1px solid rgba(139, 105, 20, 0.25); color: #1A1A1A; }
.calc-input:focus, .calc-select:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.calc-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 18px center; padding-left: 45px; }
.calc-result { background: var(--bg-input); border: 1px solid var(--border-gold-subtle); border-radius: var(--slant-1); padding: 22px; margin: 20px 0 16px; }
body.light-mode .calc-result { background: #FFFDF5; border-color: rgba(139,105,20,0.2); }
.result-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; color: var(--text-secondary); }
.result-line strong { font-size: 1rem; color: var(--gold-light); font-weight: 700; }
body.light-mode .result-line strong { color: #8B6914; }
.result-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 6px; margin-top: 6px; border-top: 2px solid var(--border-gold-default); font-size: 1rem; font-weight: 700; }
.result-total strong { font-size: 1.4rem; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .result-total strong { background: linear-gradient(135deg, #8B6914, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.calc-note { text-align: center; font-size: 0.7rem; color: var(--text-muted); line-height: 1.5; }
.calculator-info {
    background: var(--bg-glass); border: 1px solid var(--border-gold-subtle);
    border-radius: var(--slant-1); padding: 32px;
    backdrop-filter: blur(20px); transition: all 0.35s ease;
    display: flex; flex-direction: column;
}
body.light-mode .calculator-info { background: #FFFFFF; border-color: rgba(139,105,20,0.2); box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.calculator-info:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-5px); }
.live-price h3 { text-align: center; margin-bottom: 24px; color: var(--gold-light); font-size: 1.3rem; font-weight: 800; }
.price-section { margin-bottom: 24px; }
.price-section-title { font-size: 0.85rem; font-weight: 700; color: var(--gold-light); margin-bottom: 12px; padding-right: 8px; border-right: 3px solid var(--gold-light); }
body.light-mode .price-section-title { color: #8B6914; border-right-color: #D4AF37; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.price-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
.price-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: var(--border-subtle);
    border-radius: var(--slant-8); transition: all 0.2s ease;
}
body.light-mode .price-card { background: #FFFDF5; }
.price-card:hover { background: rgba(212, 175, 55, 0.06); transform: translateX(-4px); }
.price-card.highlight { background: rgba(212, 175, 55, 0.1); border: 1px solid var(--border-gold-subtle); }
body.light-mode .price-card.highlight { background: #FFFBF0; border-color: rgba(139,105,20,0.3); }
.price-label { font-size: 0.8rem; color: var(--text-secondary); }
.price-value { font-size: 0.9rem; font-weight: 700; color: var(--gold-lighter); }
body.light-mode .price-value { color: #8B6914; }
.price-unit { font-size: 0.7rem; color: var(--text-muted); }
.price-chart { margin: 10px 0 20px; background: var(--bg-input); border-radius: var(--slant-1); padding: 16px; }
body.light-mode .price-chart { background: #FFFDF5; }
.chart-title { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; text-align: center; }
#goldPriceChart { background: var(--bg-input); border-radius: var(--slant-8); }
body.light-mode #goldPriceChart { background: #FFFFFF; }
.chart-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.chart-stat { text-align: center; padding: 8px; background: var(--border-subtle); border-radius: var(--slant-8); }
body.light-mode .chart-stat { background: #FFFDF5; }
.chart-stat span { display: block; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; }
.chart-stat strong { display: block; font-size: 0.85rem; color: var(--gold-light); }
.chart-stat .positive { color: #4ade80; }
.forecast-box { background: rgba(212, 175, 55, 0.05); border-radius: var(--slant-1); padding: 16px; margin: 10px 0; border: 1px solid var(--border-gold-subtle); }
body.light-mode .forecast-box { background: #FFFBF0; border-color: rgba(139,105,20,0.2); }
.forecast-title { font-size: 0.85rem; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; }
.forecast-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.forecast-text strong { color: var(--gold-lighter); }
body.light-mode .forecast-text strong { color: #8B6914; }
.forecast-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.65rem; padding: 4px 10px; background: rgba(212, 175, 55, 0.1); border-radius: var(--slant-5); color: var(--gold-light); }
body.light-mode .tag { background: rgba(184, 134, 11, 0.08); color: #8B6914; }
.investment-tips { background: var(--bg-input); border-radius: var(--slant-1); padding: 16px; margin: 10px 0; }
body.light-mode .investment-tips { background: #FFFDF5; }
.tips-title { font-size: 0.85rem; font-weight: 700; color: var(--gold-light); margin-bottom: 12px; }
.tips-list li { font-size: 0.75rem; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px solid var(--border-subtle); }
.tips-list li:last-child { border-bottom: none; }
.live-price-update { text-align: center; margin-top: 16px; font-size: 0.65rem; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border-subtle); }

/* ========== COLLECTION CARDS ========== */
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.collection-card {
    background: var(--bg-glass); border-radius: var(--slant-1); overflow: hidden;
    border: 1px solid var(--border-default); transition: var(--transition-spring);
    backdrop-filter: blur(20px); display: flex; flex-direction: column; position: relative;
}
body.light-mode .collection-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.collection-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-lg); transform: translateY(-12px); }
.collection-card img { width: 100%; height: 260px; object-fit: contain; object-position: center; background: #0d0d0d; transition: 0.5s ease; }
.collection-card:hover img { transform: scale(1.03); }
.card-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--gold-gradient-btn); color: #0A0A0A;
    padding: 7px 18px; border-radius: var(--slant-5); font-size: 0.75rem;
    font-weight: 700; z-index: 2; box-shadow: var(--shadow-gold-sm);
}
body.light-mode .card-badge { color: #FFFFFF; }
.card-overlay { padding: 22px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.card-overlay h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; min-height: 48px; color: var(--text-primary); }
.card-overlay p { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px; min-height: 40px; }
.card-overlay .price { font-size: 1.2rem; font-weight: 800; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 16px; }
body.light-mode .card-overlay .price { background: linear-gradient(135deg, #8B6914, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-price { background: none !important; -webkit-text-fill-color: var(--gold-light) !important; font-size: 1rem !important; }
body.light-mode .contact-price { -webkit-text-fill-color: #8B6914 !important; }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-item {
    position: relative; border-radius: var(--slant-1); overflow: hidden;
    aspect-ratio: 1; cursor: pointer; transition: var(--transition-spring);
    border: 1px solid var(--border-subtle);
}
body.light-mode .gallery-item { border-color: rgba(139,105,20,0.1); }
.gallery-item:hover { z-index: 2; box-shadow: var(--shadow-gold-lg); transform: scale(1.06); border-color: var(--border-gold-default); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.gallery-item:hover img { transform: scale(1.15); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 20px; opacity: 0; transition: 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--gold-light); font-weight: 600; font-size: 0.85rem; }
.gallery-more { text-align: center; margin-top: 40px; }

/* ========== LUXURY VIP ========== */
.luxury-section { background: var(--black); position: relative; overflow: hidden; }
.luxury-grid-mixed { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.luxury-images-mixed { display: flex; flex-direction: column; gap: 20px; }
.luxury-image-large { border-radius: var(--slant-1); overflow: hidden; border: 2px solid var(--border-gold-default); box-shadow: var(--shadow-gold-lg); position: relative; }
.luxury-image-large img { width: 100%; height: auto; transition: 0.5s ease; }
.luxury-image-large:hover img { transform: scale(1.06); }
.luxury-image-small { border-radius: var(--slant-1); overflow: hidden; border: 1px solid var(--border-gold-default); }
.luxury-image-small img { width: 100%; height: auto; transition: 0.5s ease; }
.luxury-image-small:hover img { transform: scale(1.06); }
.luxury-price-tag {
    position: absolute; bottom: 24px; right: 24px;
    background: var(--bg-glass-strong); backdrop-filter: blur(24px);
    color: var(--gold-light); padding: 12px 24px; border-radius: var(--slant-1);
    font-weight: 700; font-size: 0.9rem; border: 1px solid var(--border-gold-default);
}
body.light-mode .luxury-price-tag { background: rgba(255,255,255,0.9); color: #8B6914; }
.luxury-badge {
    display: inline-block; background: var(--bg-glass);
    border: 1px solid var(--border-gold-default); color: var(--gold-light);
    padding: 9px 22px; border-radius: var(--slant-5); font-size: 0.8rem;
    font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(20px);
}
body.light-mode .luxury-badge { background: #FFFFFF; color: #8B6914; }
.luxury-content h2 { font-size: 2.5rem; margin-bottom: 22px; }
.luxury-content p { margin-bottom: 30px; }
.luxury-features { margin-bottom: 34px; }
.luxury-features li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 500; color: var(--text-secondary); transition: var(--transition-fast); }
.luxury-features li:hover { color: var(--gold-light); transform: translateX(-5px); }
.luxury-features li svg { color: var(--gold-light); flex-shrink: 0; }
.luxury-contact-box {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: var(--bg-glass); border: 1px solid var(--border-gold-subtle);
    border-radius: var(--slant-1); margin-bottom: 24px; backdrop-filter: blur(20px);
}
body.light-mode .luxury-contact-box { background: #FFFFFF; border-color: rgba(139,105,20,0.2); }

/* ========== TESTIMONIALS ========== */
/* testimonials layout fix */
.testimonials-slider-wrapper { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; max-width: 100%; }
#testimonials .container { width: 100%; }
.testimonial-nav { flex-shrink: 0; z-index: 2; border: 1px solid var(--border-gold-default); background: var(--bg-glass); }

.testimonials-slider { display: flex; overflow-x: auto; scroll-behavior: smooth; gap: 24px; padding: 10px 4px; scrollbar-width: none; flex: 1; min-width: 0; width: 100%; }
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card {
    min-width: 320px; background: var(--bg-glass);
    border: 1px solid var(--border-default); border-radius: var(--slant-1);
    padding: 32px; transition: var(--transition-spring);
    backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: space-between;
}
body.light-mode .testimonial-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.testimonial-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-10px); }
.testimonial-stars { color: var(--gold-light); font-size: 1.2rem; margin-bottom: 16px; }
.testimonial-card p { font-size: 0.9rem; margin-bottom: 20px; flex: 1; color: var(--text-secondary); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: var(--slant-9); border: 2px solid var(--border-gold-default); object-fit: cover; }
.testimonial-author h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-nav {
    background: var(--bg-glass); border: 1px solid var(--border-gold-default);
    color: var(--gold-light); width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
body.light-mode .testimonial-nav { background: #FFFFFF; color: #8B6914; }
.testimonial-nav:hover { background: rgba(212, 175, 55, 0.2); transform: scale(1.1); box-shadow: var(--shadow-gold-sm); }

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text p { margin-bottom: 16px; color: var(--text-secondary); }
.about-text strong { color: var(--gold-light); }
body.light-mode .about-text strong { color: #8B6914; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.about-stats div {
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); padding: 20px 24px; text-align: center;
    font-weight: 600; font-size: 0.85rem; color: var(--text-secondary);
    backdrop-filter: blur(20px); transition: var(--transition-spring);
}
body.light-mode .about-stats div { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.about-stats div:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-6px); }
.about-stats div span { display: block; font-size: 1.8rem; font-weight: 900; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .about-stats div span { background: linear-gradient(135deg, #8B6914, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-images-grid { display: flex; justify-content: center; align-items: center; flex-direction: column-reverse; gap: 16px; }
.about-images-grid img { border-radius: var(--slant-1); border: 1px solid var(--border-default); transition: var(--transition-spring); width: 100%; height: auto; }
.about-images-grid img:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-sm); transform: scale(1.02); }

/* ========== TIMELINE ========== */
.timeline-luxury { position: relative; padding: 40px 0; }
.timeline-luxury::before {
    content: ''; position: absolute; top: 0; bottom: 0; right: 50%;
    width: 3px; background: var(--gold-gradient);
    transform: translateX(50%); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.timeline-item-luxury {
    position: relative; width: 45%; padding: 28px;
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); margin-bottom: 40px;
    backdrop-filter: blur(20px); transition: var(--transition-spring); overflow: hidden;
}
body.light-mode .timeline-item-luxury { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.timeline-item-luxury:nth-child(odd) { margin-right: 55%; }
.timeline-item-luxury:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-8px); }
.timeline-year-luxury { font-size: 1.8rem; font-weight: 900; background: var(--gold-gradient-light); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
body.light-mode .timeline-year-luxury { background: linear-gradient(135deg, #8B6914, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.timeline-item-luxury p { font-size: 0.9rem; color: var(--text-secondary); }
.timeline-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.timeline-item-luxury:hover .timeline-glow { opacity: 1; }

/* ========== DESIGNERS ========== */
.designer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.designer-card {
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); overflow: hidden; text-align: center;
    backdrop-filter: blur(20px); transition: var(--transition-spring);
    display: flex; flex-direction: column;
}
body.light-mode .designer-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.designer-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-12px); }
.designer-card img { width: 100%; height: 320px; object-fit: cover; transition: 0.5s ease; }
.designer-card:hover img { transform: scale(1.06); }
.designer-card h3 { margin-top: 20px; color: var(--text-primary); }
.designer-card p { color: var(--gold-light); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
body.light-mode .designer-card p { color: #8B6914; }
.designer-card span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; }

/* ========== CERTIFICATES ========== */
.certificates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); padding: 36px 24px; text-align: center;
    backdrop-filter: blur(20px); transition: var(--transition-spring);
}
body.light-mode .cert-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.cert-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-10px); }
.cert-card svg { color: var(--gold-light); margin-bottom: 16px; }
body.light-mode .cert-card svg { color: #D4AF37; }
.cert-card h3 { font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.cert-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ========== CONSULTING ========== */
.consulting-wrapper-enhanced {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    background: var(--bg-glass); border: 1px solid var(--border-gold-default);
    border-radius: var(--slant-1); padding: 48px;
    backdrop-filter: blur(30px); box-shadow: var(--shadow-gold-md);
}
body.light-mode .consulting-wrapper-enhanced { background: #FFFFFF; border-color: rgba(139,105,20,0.3); }
.consulting-badge {
    display: inline-block; background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold-default); color: var(--gold-light);
    padding: 8px 18px; border-radius: var(--slant-5); font-size: 0.8rem;
    font-weight: 700; margin-bottom: 16px;
}
body.light-mode .consulting-badge { background: #FFFBF0; color: #8B6914; }
.consulting-text-enhanced ul { margin-bottom: 24px; }
.consulting-text-enhanced li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; color: var(--text-secondary); }
.consulting-text-enhanced li svg { color: var(--gold-light); flex-shrink: 0; }
.consulting-contact-enhanced div { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); }
.consulting-contact-enhanced svg { color: var(--gold-light); }
.consult-form-enhanced {
    background: var(--bg-input); padding: 32px;
    border-radius: var(--slant-1); border: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
}
body.light-mode .consult-form-enhanced { background: #FFFDF5; border-color: rgba(139,105,20,0.2); }
.consult-form-enhanced h3 { margin-bottom: 24px; text-align: center; color: var(--text-primary); }
.consult-form-enhanced input, .consult-form-enhanced select, .consult-form-enhanced textarea {
    width: 100%; padding: 14px 18px; margin-bottom: 14px;
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-8); color: var(--text-primary);
    font-family: 'Peyda', sans-serif; font-size: 0.9rem; transition: var(--transition-fast);
}
body.light-mode .consult-form-enhanced input,
body.light-mode .consult-form-enhanced select,
body.light-mode .consult-form-enhanced textarea {
    background: #FFFFFF; border: 1px solid rgba(139, 105, 20, 0.3); color: #1A1A1A;
}
.consult-form-enhanced input:focus, .consult-form-enhanced select:focus, .consult-form-enhanced textarea:focus { outline: none; border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1); }
.consult-form-enhanced textarea { resize: vertical; min-height: 80px; }
.consult-time { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; align-items: center; font-size: 0.85rem; color: var(--text-secondary); }
.consult-time label { display: flex; align-items: center; gap: 4px; cursor: pointer; }

/* ========== EVENTS ========== */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); overflow: hidden;
    backdrop-filter: blur(20px); transition: var(--transition-spring);
    display: flex; flex-direction: column;
}
body.light-mode .event-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.event-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-12px); }
.event-card img { width: 100%; height: 200px; object-fit: cover; transition: 0.5s ease; }
.event-card:hover img { transform: scale(1.06); }
.event-date {
    display: inline-block; background: var(--gold-gradient-btn); color: #0A0A0A;
    padding: 6px 16px; border-radius: var(--slant-5);
    font-weight: 700; font-size: 0.8rem; margin: 16px; box-shadow: var(--shadow-gold-sm);
}
body.light-mode .event-date { color: #FFFFFF; }
.event-card h3 { padding: 0 16px; margin-bottom: 8px; color: var(--text-primary); }
.event-card p { padding: 0 16px; font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; flex: 1; }
.event-features {
    padding: 12px 16px; font-size: 0.8rem; color: var(--text-secondary);
    background: var(--bg-input); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle);
}
body.light-mode .event-features { background: #FFFDF5; }

/* ========== BLOG ========== */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.blog-card {
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); overflow: hidden;
    backdrop-filter: blur(20px); transition: var(--transition-spring);
    display: flex; flex-direction: column;
}
body.light-mode .blog-card { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.blog-card:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-10px); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; transition: 0.5s ease; }
.blog-card:hover img { transform: scale(1.06); }
.blog-category {
    display: inline-block; background: rgba(212, 175, 55, 0.1); color: var(--gold-light);
    padding: 4px 14px; border-radius: var(--slant-5); font-size: 0.7rem;
    font-weight: 700; margin: 16px 16px 8px;
}
body.light-mode .blog-category { background: #FFFBF0; color: #8B6914; }
.blog-card h3 { padding: 0 16px; font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.blog-card p { padding: 0 16px; font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 12px; flex: 1; }
.blog-card a { display: flex; align-items: center; gap: 6px; padding: 0 16px 16px; color: var(--gold-light); font-weight: 600; font-size: 0.85rem; }
body.light-mode .blog-card a { color: #8B6914; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex; gap: 16px; padding: 24px;
    background: var(--bg-glass); border: 1px solid var(--border-default);
    border-radius: var(--slant-1); backdrop-filter: blur(20px); transition: var(--transition-spring);
}
body.light-mode .contact-item { background: #FFFFFF; border-color: rgba(139,105,20,0.15); }
.contact-item:hover { border-color: var(--border-gold-default); box-shadow: var(--shadow-gold-md); transform: translateY(-5px); }
.contact-item svg { color: var(--gold-light); flex-shrink: 0; margin-top: 4px; }
body.light-mode .contact-item svg { color: #D4AF37; }
.contact-item h4 { color: var(--gold-light); margin-bottom: 6px; }
body.light-mode .contact-item h4 { color: #8B6914; }
.contact-item p { font-size: 0.88rem; color: var(--text-secondary); }
.contact-map { border-radius: var(--slant-1); overflow: hidden; border: 1px solid var(--border-gold-default); }

/* ========== FOOTER ========== */
.footer { background: var(--gray); border-top: 1px solid var(--border-gold-subtle); padding: 80px 0 30px; }
body.light-mode .footer { background: #FAFAFA; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h3 { margin-bottom: 18px; font-weight: 800; color: var(--gold-light); }
body.light-mode .footer-col h3 { color: #8B6914; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.88rem; color: var(--text-secondary); transition: var(--transition-fast); }
.footer-col a:hover { color: var(--gold-light); padding-right: 8px; transform: translateX(-4px); }
.footer-col p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 12px; }
.newsletter { display: flex; gap: 8px; margin: 16px 0 8px; }
.newsletter input {
    flex: 1; padding: 12px 16px; background: var(--bg-input);
    border: 1px solid var(--border-default); border-radius: var(--slant-8);
    color: var(--text-primary); font-family: 'Peyda', sans-serif;
}
body.light-mode .newsletter input { background: #FFFFFF; border: 1px solid rgba(139, 105, 20, 0.3); color: #1A1A1A; }
.newsletter input:focus { outline: none; border-color: var(--gold-light); }
.newsletter button {
    padding: 12px 18px; background: var(--gold-gradient-btn);
    border: none; border-radius: var(--slant-8); color: #0A0A0A;
    cursor: pointer; transition: var(--transition-spring);
}
body.light-mode .newsletter button { color: #FFFFFF; }
.newsletter button:hover { box-shadow: var(--shadow-gold-sm); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-secondary); }
.footer-cert { display: flex; justify-content: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.footer-cert span {
    font-size: 0.75rem; color: var(--gold-light); font-weight: 600;
    border: 1px solid var(--border-gold-subtle); padding: 6px 16px;
    border-radius: var(--slant-5); background: var(--bg-glass); transition: var(--transition-fast);
}
body.light-mode .footer-cert span { background: #FFFFFF; color: #8B6914; }
.footer-cert span:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold-sm); border-color: var(--border-gold-default); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) { 
    .collection-grid { grid-template-columns: repeat(3, 1fr); } 
    .blog-grid { grid-template-columns: repeat(3, 1fr); } 
    .gallery-grid { grid-template-columns: repeat(4, 1fr); } 
}
@media (max-width: 992px) {
    body { padding-top: calc(var(--topbar-height) + var(--header-height)); }
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .luxury-grid-mixed { grid-template-columns: 1fr; }
    .calculator-wrapper { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .designer-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .consulting-wrapper-enhanced { grid-template-columns: 1fr; padding: 32px; }
    .certificates-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-luxury::before { right: 20px; }
    .timeline-item-luxury { width: calc(100% - 50px); margin-right: 50px !important; }
}
@media (max-width: 768px) {
    .collection-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .designer-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .certificates-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
@media (max-width: 576px) {
    .calculator-form, .calculator-info { padding: 20px; }
    .price-grid { grid-template-columns: 1fr !important; }
    .chart-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .collection-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar-social { gap: 8px; }
}
.img-icon { height: 30vh; display: flex; justify-content: center; align-items: center; }

/* در صورت نیاز */

/* ========== سبد خرید سایدبار ========== */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 380px;
    height: 100vh;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-gold-default);
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}
body.light-mode .cart-sidebar {
    background: #FFFFFF;
}
.cart-sidebar.active {
    left: 0;
}
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s ease;
}
.cart-overlay.active {
    visibility: visible;
    opacity: 1;
}
.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gold-default);
}
.cart-sidebar-header h3 {
    color: var(--gold-light);
    font-size: 1.3rem;
}
.close-cart {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: 0.2s;
}
.close-cart:hover {
    color: var(--gold-light);
}
.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}
.cart-item-price {
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold-subtle);
    color: var(--gold-light);
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}
.qty-btn:hover {
    background: rgba(212, 175, 55, 0.3);
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: 0.2s;
}
.cart-item-remove:hover {
    color: #ff4444;
}
.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-gold-default);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}
.cart-total strong {
    color: var(--gold-light);
    font-size: 1.3rem;
}
.cart-checkout-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none;
}
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-gradient-btn);
    color: #0A0A0A;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.light-mode .cart-count {
    color: #FFFFFF;
}
.header-icon {
    position: relative;
}
.add-to-cart-btn {
    cursor: pointer;
}
/* Opal display-only pricing */
.cart-icon,#cartBtn,#cartCount,.cart-sidebar,.quantity-selector,.quantity-control,.add-to-cart,[data-action="add-to-cart"]{display:none!important}
.price-breakdown{margin:16px 0;padding:14px;border:1px solid rgba(160,120,40,.25);border-radius:12px}.price-line{display:flex;justify-content:space-between;gap:16px;padding:6px 0}.price-final{margin-top:8px;padding-top:12px;border-top:1px solid currentColor;font-size:1.1em}.api-error{padding:20px;color:#b42318}.product-detail-gallery img{max-width:100%;height:auto}.product-card img{max-width:100%;height:auto}

/* ===== v1.6 Data-ready placeholders ===== */
html:not(.opal-store-ready) [data-store-name],
html:not(.opal-store-ready) [data-store-tagline],
html:not(.opal-store-ready) [data-store-phone],
html:not(.opal-store-ready) [data-store-email],
html:not(.opal-store-ready) [data-store-address-short],
html:not(.opal-store-ready) [data-store-address],
html:not(.opal-store-ready) [data-store-links],
html:not(.opal-store-ready) [data-store-logo]{
  visibility:hidden !important;
}

/* Loader مخصوص جدول قیمت؛ مستقل از نوار پیشرفت عمومی سایت */
.live-price{position:relative}
.live-price-loader{
  display:none;
  margin:18px 0 8px;
  padding:18px;
  border:1px solid rgba(212,175,55,.20);
  border-radius:16px;
  background:rgba(212,175,55,.055);
  text-align:center;
}
.live-price.is-price-loading .live-price-loader{display:block}
.live-price.is-price-loading .price-section,
.live-price.is-price-loading .price-chart,
.live-price.is-price-loading .forecast-box,
.live-price.is-price-loading .live-price-update{display:none!important}
.live-price-loader-text{
  display:block;
  margin-bottom:10px;
  color:var(--text-secondary);
  font-size:.88rem;
}
.live-price-loader-track{
  position:relative;
  height:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.18);
}
.live-price-loader-track span{
  position:absolute;
  top:0;
  bottom:0;
  width:34%;
  border-radius:inherit;
  background:linear-gradient(90deg,transparent,#d4af37,#f4d03f,transparent);
  animation:opalPriceLoading 1.15s ease-in-out infinite;
}
.live-price-loader.is-error .live-price-loader-text{color:#d55c5c}
.live-price-loader.is-error .live-price-loader-track span{animation-duration:1.8s;opacity:.65}
@keyframes opalPriceLoading{
  from{right:-36%}
  to{right:102%}
}

/* ===== v21: Database connection loader (independent from live-price loader) ===== */
.store-db-loader{
  position:fixed;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  z-index:5000;
  width:min(430px,calc(100vw - 28px));
  pointer-events:none;
  opacity:1;
  transition:opacity .24s ease,transform .24s ease;
}
.store-db-loader.is-hidden{opacity:0;transform:translate(-50%,-8px)}
.store-db-loader-inner{
  padding:9px 12px 10px;
  border:1px solid rgba(212,175,55,.24);
  border-radius:14px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 30px rgba(15,23,42,.12);
  backdrop-filter:blur(10px);
}
body:not(.light-mode) .store-db-loader-inner{
  background:rgba(10,14,22,.94);
  border-color:rgba(212,175,55,.26);
}
.store-db-loader-text{
  display:block;
  margin-bottom:7px;
  color:var(--text-secondary);
  font-size:.76rem;
  font-weight:700;
  text-align:center;
}
.store-db-loader-track{
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(148,163,184,.18);
}
.store-db-loader-track span{
  display:block;
  height:100%;
  width:34%;
  border-radius:inherit;
  background:linear-gradient(90deg,transparent,#d4af37,#f4d03f,transparent);
  animation:opalDbLoading 1.05s ease-in-out infinite;
}
.store-db-loader.is-error .store-db-loader-text{color:#c86767}
.store-db-loader.is-error .store-db-loader-track span{opacity:.7;animation-duration:1.65s}
.store-db-loader.is-done .store-db-loader-text{color:#178a5b}
.store-db-loader.is-done .store-db-loader-track span{width:100%;animation:none;background:linear-gradient(90deg,#34d399,#10b981)}
@keyframes opalDbLoading{from{transform:translateX(210%)}to{transform:translateX(-310%)}}

/* Loader قیمت فقط داخل جدول قیمت لحظه‌ای */
.live-price-table{position:relative}
.live-price-table .live-price-loader{display:none}
.live-price-table.is-price-loading .live-price-loader{display:block}
.live-price-table.is-price-loading .price-section{display:none!important}
