/* ===== GLOBAL VARIABLES & BASE STYLES ===== */
:root {
    --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7; --emerald-400: #34d399; --emerald-500: #10b981;
    --emerald-600: #059669; --emerald-700: #047857; --emerald-800: #065f46;
    --emerald-900: #064e3b; --emerald-950: #022c22;
    --gold-300: #fcd34d; --gold-400: #fbbf24; --gold-500: #d97706; --gold-600: #b45309;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; -webkit-tap-highlight-color: transparent; }
button, a { -webkit-tap-highlight-color: transparent; outline: none; }
body { background-color: #022c22; color: #f8fafc; overflow-x: hidden; scroll-behavior: smooth; min-height: 100vh; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Scrollbar Styles */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #064e3b; }
::-webkit-scrollbar-thumb { background: #fbbf24; border-radius: 10px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(6,78,59,0.3); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(251,191,36,0.4); border-radius: 10px; }

/* Utility Classes */
.gold-gradient {
    background: linear-gradient(to left, #fcd34d, #d97706);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.text-shadow-lg { text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.glass-panel {
    background: rgba(2, 44, 34, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(251, 191, 36, 0.15); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.glass-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.4s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(251, 191, 36, 0.4); transform: translateY(-5px);
}
.section { 
    padding: 4rem 1rem;
    padding-top: 7rem;
    position: relative; 
    z-index: 10; 
    border-top: 1px solid rgba(217,119,6,0.2); 
}

@media (min-width: 768px) { 
    .section { 
        padding: 6rem 1rem;
        padding-top: 8rem;
    } 
}
.section-dark { background: rgba(2,44,34,0.5); }
.section-inner { max-width: 80rem; margin: 0 auto; }
.section-title-wrap { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-title-wrap { gap: 1.5rem; margin-bottom: 4rem; } }
.section-title-line { height: 4px; flex: 1; }
.section-title-line.right { background: linear-gradient(to left, transparent, rgba(217,119,6,0.5)); }
.section-title-line.left { background: linear-gradient(to right, transparent, rgba(217,119,6,0.5)); }
.section-title { font-size: 1.75rem; font-weight: 900; white-space: nowrap; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Shared Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes pulse-glow { 0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(251,191,36,0.5); } 50% { opacity: 0.5; box-shadow: 0 0 10px rgba(251,191,36,0.2); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalScaleIn { from { opacity: 0; transform: scale(0.85) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes modalScaleOut { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(0.85) translateY(30px); } }
@keyframes toastSlideIn { from { transform: translateX(150%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastSlideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(150%); opacity: 0; } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-spin-slow { animation: spin 20s linear infinite; }
.animate-pulse-glow { animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

::selection { background: var(--gold-500); color: var(--emerald-950); }
@supports not (backdrop-filter: blur(20px)) {
    .glass-panel { background: rgba(2, 44, 34, 0.95); }
    .glass-card { background: rgba(255, 255, 255, 0.08); }
}


.faq-container { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.faq-item { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(251, 191, 36, 0.15); border-radius: 16px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.faq-item:hover { border-color: rgba(251, 191, 36, 0.4); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.faq-item.active { border-color: rgba(251, 191, 36, 0.6); background: rgba(251, 191, 36, 0.05); box-shadow: 0 15px 40px rgba(251, 191, 36, 0.15); }
.faq-question { width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: right; cursor: pointer; background: transparent; color: #f8fafc; font-size: 1.05rem; font-weight: 700; font-family: 'Vazirmatn', sans-serif; transition: all 0.3s ease; border: none; }
@media (min-width: 768px) { .faq-question { padding: 1.5rem 2rem; font-size: 1.15rem; } }
.faq-question:hover { color: var(--gold-300); }
.faq-question .q-text { flex: 1; line-height: 1.7; }
.faq-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(217, 119, 6, 0.1)); border: 1px solid rgba(251, 191, 36, 0.3); display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); color: var(--gold-400); }
.faq-icon svg { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.active .faq-icon { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); border-color: var(--gold-400); color: var(--emerald-950); transform: rotate(180deg); box-shadow: 0 0 20px rgba(251, 191, 36, 0.5); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease; padding: 0 1.5rem; }
@media (min-width: 768px) { .faq-answer { padding: 0 2rem; } }
.faq-item.active .faq-answer { max-height: 2000px; padding: 0 1.5rem 1.5rem; }
@media (min-width: 768px) { .faq-item.active .faq-answer { padding: 0 2rem 2rem; } }
.faq-answer-content { padding-top: 0.5rem; border-top: 1px solid rgba(251, 191, 36, 0.15); color: #e2e8f0; line-height: 2.2; font-size: 0.98rem; }
@media (min-width: 768px) { .faq-answer-content { font-size: 1.02rem; } }
.faq-answer-content p { margin: 0 0 0.8rem 0; }
.faq-answer-content p:last-child { margin-bottom: 0; }
.faq-number { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--emerald-950); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.95rem; margin-left: 0.75rem; box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3); }
@media (min-width: 768px) { .faq-number { width: 38px; height: 38px; font-size: 1rem; } }
[dir="rtl"] .faq-number { margin-left: 0; margin-right: 0.75rem; }
.faq-question:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; border-radius: 12px; }
.faq-category-title { color: var(--gold-400); font-size: 1.4rem; margin: 2.5rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid rgba(251, 191, 36, 0.3); font-weight: 800; }
@media (min-width: 768px) { .faq-category-title { font-size: 1.6rem; } }
