/* RaviPlus Design System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #8b5cf6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --font-fa: 'Vazirmatn', system-ui, sans-serif;
    --font-en: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-fa);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}
body[dir="ltr"] { font-family: var(--font-en); }

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 26, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 1.4rem;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-card); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.lang-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}
.lang-switch button.active { background: var(--primary); color: white; }
.credit-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--primary-light); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding: 40px 0 80px; min-height: calc(100vh - 70px); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.card:hover { border-color: rgba(99, 102, 241, 0.3); }

.hero { text-align: center; padding: 80px 0 60px; }
.hero-badge {
    display: inline-block;
    background: var(--gradient-subtle);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.service-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.8; }

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--gradient-subtle); }
.upload-zone .upload-icon { font-size: 3rem; margin-bottom: 16px; }

.progress-wrap { margin: 24px 0; }
.progress-bar { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient); border-radius: 999px; transition: width 0.4s ease; width: 0%; }
.progress-text { text-align: center; margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; }

.stat-card { text-align: center; padding: 24px; }
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.auth-container { max-width: 440px; margin: 60px auto; }
.auth-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.auth-step { flex: 1; height: 4px; background: var(--border); border-radius: 999px; transition: background 0.3s; }
.auth-step.active { background: var(--gradient); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp-inputs input {
    width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-family: inherit;
}
.otp-inputs input:focus { outline: none; border-color: var(--primary); }

.live-indicator {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 999px; color: #fca5a5; font-size: 0.85rem;
}
.live-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.transcript-box {
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px; min-height: 300px; max-height: 500px;
    overflow-y: auto; line-height: 2; font-size: 1.05rem;
    white-space: pre-wrap; word-break: break-word;
}
.transcript-interim { color: var(--text-muted); font-style: italic; }
.speech-settings {
    margin-top: 16px; padding: 14px 16px; border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border);
}
.speech-settings summary {
    cursor: pointer; font-weight: 600; color: var(--text); user-select: none;
}
.speech-settings-grid { display: grid; gap: 12px; margin-top: 12px; }
.speech-setting-row label {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.speech-setting-row .hint {
    display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 4px;
}
.speech-word-count {
    text-align: left; font-size: 0.85rem; color: var(--text-muted); margin-top: 8px;
}
[dir="rtl"] .speech-word-count { text-align: right; }

.meeting-header { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.meeting-meta { display: flex; flex-wrap: wrap; gap: 16px; }
.meta-item { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; }
.minutes-editor {
    min-height: 400px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; line-height: 2; white-space: pre-wrap;
}

.package-card { text-align: center; position: relative; cursor: pointer; transition: all 0.3s; }
.package-card.selected { border-color: var(--primary); box-shadow: 0 0 30px rgba(99, 102, 241, 0.2); }
.package-amount { font-size: 1.8rem; font-weight: 800; margin: 12px 0; }
.package-bonus { color: var(--success); font-size: 0.85rem; }
.coupon-input-group { display: flex; gap: 10px; }
.transaction-list { list-style: none; }
.transaction-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.tx-amount.positive { color: var(--success); }
.tx-amount.negative { color: var(--danger); }

.toast-container {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 14px 24px; background: rgba(30, 30, 50, 0.95);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    backdrop-filter: blur(10px); animation: slideUp 0.3s ease; font-size: 0.9rem;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.footer {
    border-top: 1px solid var(--border); padding: 40px 0;
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
}
.section-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 40px; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px); z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #1a1a2e; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; max-width: 480px; width: 100%;
}

@media print {
    .navbar, .footer, .no-print, .btn { display: none !important; }
    body { background: white; color: black; }
    .minutes-editor { border: none; padding: 0; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 48px 0 40px; }
    .card { padding: 20px; }
}

.hidden { display: none !important; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-info { background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.3); color: #67e8f9; }
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.badge-completed { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.badge-recording { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.timer-display {
    font-size: 2.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 2px;
    background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
