@font-face {
    font-family: 'Vazirmatn';
    src: url('Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-main: #1e293b;
    --bg-card: rgba(51, 65, 85, 0.7);
    --bg-input: rgba(15, 23, 42, 0.5);
    --neon-blue: #38bdf8;
    --neon-purple: #a855f7;
    --text-light: #f1f5f9;
    --text-gray: #cbd5e1;
    --border-color: rgba(255,255,255,0.15);
    --danger: #ef4444;
    --success: #10b981;
}

html.light-theme { --bg-main: #f1f5f9; --bg-card: rgba(255, 255, 255, 0.9); --bg-input: rgba(248, 250, 252, 0.9); --text-light: #0f172a; --text-gray: #475569; --border-color: rgba(0,0,0,0.1); }
html.light-theme body::before, html.light-theme body::after { opacity: 0.1; }
html.light-theme .glass-card { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }
body { background: var(--bg-main); color: var(--text-light); min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow-x: hidden; transition: background 0.3s, color 0.3s; }
body::before, body::after { content: ''; position: fixed; width: 400px; height: 400px; border-radius: 50%; filter: blur(120px); z-index: -1; }
body::before { background: var(--neon-blue); top: -100px; right: -100px; opacity: 0.2; }
body::after { background: var(--neon-purple); bottom: -100px; left: -100px; opacity: 0.2; }

header { background: var(--bg-card); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-color); padding: 1rem 2rem; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-img { width: 40px; height: 40px; border-radius: 8px; }
.logo-text { font-size: 1.5rem; font-weight: bold; background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; transition: color 0.3s; cursor: pointer; font-size: 0.95rem; }
.nav-links a:hover { color: var(--neon-blue); }
.btn-auth { background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); border: none; padding: 0.5rem 1.5rem; border-radius: 8px; color: #fff; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-ghost { background: transparent; border: 1px solid var(--text-gray); color: var(--text-light); padding: 0.5rem 1.5rem; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
.lang-select, .theme-toggle { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-light); padding: 0.4rem; border-radius: 8px; cursor: pointer; outline: none; }

main { flex: 1; max-width: 1000px; margin: 2rem auto; width: 100%; padding: 0 1rem; }

.hero { padding: 3rem 0; text-align: center; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1.5rem; line-height: 1.3; background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto 2rem; line-height: 1.8; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 3rem 0; }
.feature-card { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-color); text-align: center; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); }
.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.live-counter { background: var(--bg-card); border: 1px solid var(--neon-blue); padding: 1rem 2rem; border-radius: 50px; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: bold; margin-top: 2rem; box-shadow: 0 0 20px rgba(56, 189, 248, 0.1); }
.counter-num { color: var(--neon-blue); font-size: 1.3rem; }

.glass-card { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.mode-toggle { display: flex; background: var(--bg-input); border-radius: 10px; padding: 5px; margin-bottom: 1.5rem; border: 1px solid var(--border-color); }
.mode-btn { flex: 1; padding: 0.8rem; border-radius: 8px; cursor: pointer; font-weight: bold; color: var(--text-gray); background: transparent; border: none; color: var(--text-light); transition: all 0.3s; }
.mode-btn.active { background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); color: #fff; box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }

.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; color: var(--text-gray); font-size: 0.9rem; }
.form-input { width: 100%; background: var(--bg-input); border: 1px solid var(--border-color); padding: 0.8rem 1rem; border-radius: 8px; color: var(--text-light); transition: border-color 0.3s; outline: none; }
textarea.form-input { min-height: 120px; resize: vertical; }
.btn-action { background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue)); border: none; padding: 0.8rem 2rem; border-radius: 8px; color: #fff; font-weight: bold; cursor: pointer; width: 100%; margin-top: 1rem; }
.btn-action:hover { opacity: 0.9; }

.section-display { display: none; }
.section-display.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.textarea-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.btn-sm-action { padding: 0.5rem 1rem; font-size: 0.85rem; border-radius: 6px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.btn-sm-action:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.btn-sm-action.copied { background: var(--success); color: #fff; border-color: var(--success); }
.disabled-feature { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.char-counter { text-align: left; font-size: 0.85rem; color: var(--text-gray); margin-top: 0.3rem; }
.char-counter.limit { color: var(--danger); font-weight: bold; }

.auth-container { max-width: 450px; margin: 2rem auto; }
.auth-card { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.auth-title { font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; color: var(--neon-blue); }
.auth-link { text-align: center; margin-top: 1rem; color: var(--text-gray); font-size: 0.9rem; }
.auth-link a { color: var(--neon-purple); text-decoration: none; cursor: pointer; }

.alert-box { padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; display: none; font-size: 0.9rem; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); color: var(--success); }

footer { text-align: center; padding: 2rem; color: var(--text-gray); font-size: 0.9rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }

/* Timeline & Accordion & Plans */
.timeline { position: relative; padding: 1rem 0; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; right: 20px; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-right: 50px; margin-bottom: 2rem; }
.timeline-icon { position: absolute; right: 10px; top: 0; width: 24px; height: 24px; background: var(--neon-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; }
.timeline-content h3 { color: var(--text-light); margin-bottom: 0.3rem; }
.timeline-content p { color: var(--text-gray); font-size: 0.9rem; }
.accordion { background: var(--bg-input); border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--border-color); overflow: hidden; }
.accordion-header { padding: 1rem; cursor: pointer; font-weight: bold; display: flex; justify-content: space-between; color: var(--neon-blue); user-select: none; }
.accordion-body { display: none; padding: 1rem; border-top: 1px solid var(--border-color); }
.accordion-body.active { display: block; }
.billing-toggle { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; background: var(--bg-input); padding: 0.5rem; border-radius: 50px; width: fit-content; margin-left: auto; margin-right: auto; }
.billing-btn { padding: 0.5rem 1.5rem; border-radius: 50px; cursor: pointer; border: none; background: transparent; color: var(--text-gray); font-weight: bold; }
.billing-btn.active { background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple)); color: #fff; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.plan-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 2rem; border-radius: 16px; text-align: center; transition: transform 0.3s; display: flex; flex-direction: column; }
.plan-card:hover { transform: translateY(-5px); }
.plan-price { font-size: 1.8rem; font-weight: bold; margin: 1rem 0; color: var(--neon-blue); }
.plan-features { text-align: right; color: var(--text-gray); list-style: none; margin-bottom: 2rem; flex-grow: 1; padding: 0; }
.plan-features li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.badge-popular { background: var(--neon-purple); color: #fff; padding: 0.2rem 1rem; border-radius: 20px; font-size: 0.8rem; margin-bottom: 1rem; display: inline-block; }

/* Modal & Admin */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:1000; }
.modal-content { background: var(--bg-main); margin: 10% auto; padding: 2rem; border-radius: 12px; width: 50%; border: 1px solid var(--border-color); }
.stat-card { background: var(--bg-card); padding: 1.5rem; border-radius: 12px; text-align: center; border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 1rem; text-align: center; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }