/* ===== فونت سفارشی و متغیرهای مدرن ===== */
@font-face {
    font-family: 'IranSans';
    src: url('fonts/iran.woff') format('woff'),
         url('fonts/iran.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #c4b5fd;
    --success: #10b981;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'IranSans', Tahoma, sans-serif;
    background: var(--bg);
}

/* کانتینر اصلی پرسشنامه */
.q-main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
}

/* کارت خوش‌آمدگویی */
.q-welcome-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(2px);
    transition: all 0.3s;
}
.q-welcome-icon {
    font-size: 70px;
    margin-bottom: 20px;
}
.q-welcome-card h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.q-welcome-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* گروه‌های فرم */
.q-form-group {
    margin-bottom: 25px;
    text-align: right;
}
.q-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.q-form-group input, 
.q-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
}
.q-form-group input:focus, 
.q-form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* دکمه اصلی */
.q-btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 14px 32px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
}
.q-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px var(--primary);
}
.q-btn-outline {
    background: transparent;
    border: 2px solid #cbd5e1;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.q-btn-outline:hover {
    border-color: var(--primary);
    background: #f5f3ff;
}

/* پروگرس بار */
.q-progress-container {
    background: #e2e8f0;
    border-radius: 40px;
    height: 12px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}
.q-progress-bar {
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    width: 0%;
    height: 100%;
    border-radius: 40px;
    transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.q-progress-text {
    position: absolute;
    left: 10px;
    top: -28px;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: bold;
}

/* عنوان سوال */
.q-question-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.45;
}

/* گزینه‌ها (شیک و خفن) */
.q-options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 35px;
}
.q-option-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 28px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.q-option-item:hover {
    background: #f1f5f9;
    transform: translateX(-5px);
    border-color: var(--primary-light);
}
.q-option-item.selected {
    background: #ede9fe;
    border-color: var(--primary);
    box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.3);
}
.q-option-dot {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: white;
    transition: all 0.15s;
}
.q-option-item.selected .q-option-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 4px white;
}
.q-option-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-dark);
}

/* دکمه‌های پایین */
.q-action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.q-action-buttons .q-btn-submit {
    flex: 2;
}
.q-action-buttons .q-btn-outline {
    flex: 1;
}

/* کارت موفقیت */
.q-success-card {
    text-align: center;
    background: white;
    border-radius: 40px;
    padding: 50px 30px;
    box-shadow: var(--shadow-lg);
}
.q-success-card i {
    font-size: 80px;
    color: var(--success);
}
.q-success-card h2 {
    font-size: 28px;
    margin: 20px 0;
}
.q-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--success);
    color: white;
    padding: 16px 40px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.2s;
}
.q-download-btn:hover {
    background: #0d9488;
    transform: scale(1.02);
}

/* جدول گزارشات (بخش مدیریت) */
.q-pub-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}
.q-pub-table th {
    background: #454748;
    padding: 16px;
    text-align: center;
}
.q-pub-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}
.q-dl-icon, .q-del-icon {
    font-size: 20px;
    margin: 0 8px;
    cursor: pointer;
    transition: 0.1s;
}
.q-dl-icon { color: var(--success); }
.q-del-icon { color: #ef4444; }/* استایل مخصوص چک‌باکس */
.q-option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    background: white;
    transition: all 0.15s;
    position: relative;
}
.q-option-item.selected .q-option-check {
    background: var(--primary);
    border-color: var(--primary);
}
.q-option-item.selected .q-option-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}/* دکمه دانلود در جداول گزارشات */
.q-dl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ecfdf5;
    border-radius: 14px;
    color: #059669;
    font-size: 18px;
    transition: 0.2s;
    text-decoration: none;
}
.q-dl-icon:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}
.q-del-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fef2f2;
    border-radius: 14px;
    color: #dc2626;
    font-size: 16px;
    transition: 0.2s;
    cursor: pointer;
}
.q-del-icon:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}/* استایل مخصوص چک‌باکس */
.q-option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    background: white;
    transition: all 0.15s;
    position: relative;
}
.q-option-item.selected .q-option-check {
    background: var(--primary);
    border-color: var(--primary);
}
.q-option-item.selected .q-option-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== صفحه پایانی (پس از تکمیل پرسشنامه) ===== */
.q-success-wrapper {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
}
#q-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.q-success-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    margin: 30px;
    padding: 40px 30px;
    border-radius: 48px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    border: 1px solid rgba(79,70,229,0.2);
}
.q-success-icon i {
    font-size: 80px;
    color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(16,185,129,0.3);
    margin-bottom: 15px;
}
.q-success-title {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    margin: 15px 0 10px;
}
.q-success-message {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}
.q-success-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 20px;
    border-radius: 28px;
    margin-bottom: 35px;
}
.q-stat-item {
    text-align: right;
}
.q-stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}
.q-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.q-download-btn-final {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -8px #4f46e5;
    border: none;
    cursor: pointer;
}
.q-download-btn-final:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px -12px #4f46e5;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.q-download-btn-final i {
    font-size: 22px;
}
.q-success-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
@media (max-width: 640px) {
    .q-success-card { margin: 15px; padding: 25px 20px; }
    .q-success-title { font-size: 24px; }
    .q-download-btn-final { font-size: 14px; padding: 12px 20px; }
    .q-success-stats { flex-direction: column; gap: 15px; }
}

/* دکمه دانلود در جداول گزارشات */
.q-dl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ecfdf5;
    border-radius: 14px;
    color: #059669;
    font-size: 18px;
    transition: 0.2s;
    text-decoration: none;
}
.q-dl-icon:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}
.q-del-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fef2f2;
    border-radius: 14px;
    color: #dc2626;
    font-size: 16px;
    transition: 0.2s;
    cursor: pointer;
}
.q-del-icon:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}/* استایل مخصوص چک‌باکس */
.q-option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    background: white;
    transition: all 0.15s;
    position: relative;
}
.q-option-item.selected .q-option-check {
    background: var(--primary);
    border-color: var(--primary);
}
.q-option-item.selected .q-option-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== صفحه پایانی (پس از تکمیل پرسشنامه) ===== */
.q-success-wrapper {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
}
#q-confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.q-success-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px);
    margin: 30px;
    padding: 40px 30px;
    border-radius: 48px;
    text-align: center;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
    border: 1px solid rgba(79,70,229,0.2);
}
.q-success-icon i {
    font-size: 80px;
    color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(16,185,129,0.3);
    margin-bottom: 15px;
}
.q-success-title {
    font-size: 32px;
    font-weight: 900;
    color: #1e293b;
    margin: 15px 0 10px;
}
.q-success-message {
    font-size: 16px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}
.q-success-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 20px;
    border-radius: 28px;
    margin-bottom: 35px;
}
.q-stat-item {
    text-align: right;
}
.q-stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}
.q-stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #0f172a;
    background: white;
    padding: 6px 16px;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.q-download-btn-final {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -8px #4f46e5;
    border: none;
    cursor: pointer;
}
.q-download-btn-final:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px -12px #4f46e5;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.q-download-btn-final i {
    font-size: 22px;
}
.q-success-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}
@media (max-width: 640px) {
    .q-success-card { margin: 15px; padding: 25px 20px; }
    .q-success-title { font-size: 24px; }
    .q-download-btn-final { font-size: 14px; padding: 12px 20px; }
    .q-success-stats { flex-direction: column; gap: 15px; }
}

/* دکمه دانلود در جداول گزارشات */
.q-dl-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ecfdf5;
    border-radius: 14px;
    color: #059669;
    font-size: 18px;
    transition: 0.2s;
    text-decoration: none;
}
.q-dl-icon:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}
.q-del-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #fef2f2;
    border-radius: 14px;
    color: #dc2626;
    font-size: 16px;
    transition: 0.2s;
    cursor: pointer;
}
.q-del-icon:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}/* ===== فونت سفارشی و متغیرهای مدرن ===== */
@font-face {
    font-family: 'IranSans';
    src: url('fonts/iran.woff') format('woff'),
         url('fonts/iran.ttf') format('truetype');
    font-weight: normal;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #c4b5fd;
    --success: #10b981;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'IranSans', Tahoma, sans-serif;
    background: var(--bg);
}

.q-main-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    direction: rtl;
}

.q-welcome-card {
    background: var(--card-bg);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(2px);
    transition: all 0.3s;
}

.q-welcome-icon { font-size: 70px; margin-bottom: 20px; }
.q-welcome-card h1 { font-size: 32px; color: var(--text-dark); margin-bottom: 12px; }
.q-welcome-card p { color: var(--text-light); margin-bottom: 30px; }

.q-form-group { margin-bottom: 25px; text-align: right; }
.q-form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.q-form-group input, .q-form-group textarea {
    width: 100%; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 24px;
    font-size: 16px; font-family: inherit; transition: all 0.2s; background: #f8fafc;
}
.q-form-group input:focus, .q-form-group textarea:focus {
    border-color: var(--primary); outline: none; background: white;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.q-btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none; color: white; padding: 14px 32px; border-radius: 40px;
    font-size: 18px; font-weight: bold; font-family: inherit; cursor: pointer;
    transition: all 0.3s ease; box-shadow: var(--shadow-sm); width: 100%;
}
.q-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 25px -10px var(--primary); }

.q-btn-outline {
    background: transparent; border: 2px solid #cbd5e1; padding: 12px 28px;
    border-radius: 40px; font-weight: bold; cursor: pointer; transition: 0.2s;
}
.q-btn-outline:hover { border-color: var(--primary); background: #f5f3ff; }

.q-progress-container {
    background: #e2e8f0; border-radius: 40px; height: 12px;
    margin-bottom: 35px; position: relative; overflow: hidden;
}
.q-progress-bar {
    background: linear-gradient(90deg, var(--primary), #a78bfa); width: 0%;
    height: 100%; border-radius: 40px; transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.q-progress-text {
    position: absolute; left: 10px; top: -28px; font-size: 13px;
    color: var(--primary-dark); font-weight: bold;
}

.q-question-title { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 30px; line-height: 1.45; }

.q-options-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 35px; }
.q-option-item {
    display: flex; align-items: center; gap: 14px; background: #f8fafc;
    border: 2px solid #e2e8f0; border-radius: 28px; padding: 14px 20px;
    cursor: pointer; transition: all 0.2s;
}
.q-option-item:hover { background: #f1f5f9; transform: translateX(-5px); border-color: var(--primary-light); }
.q-option-item.selected {
    background: #ede9fe; border-color: var(--primary);
    box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.3);
}
.q-option-dot {
    width: 22px; height: 22px; border: 2px solid #94a3b8; border-radius: 50%;
    background: white; transition: all 0.15s;
}
.q-option-item.selected .q-option-dot {
    background: var(--primary); border-color: var(--primary);
    box-shadow: inset 0 0 0 4px white;
}
.q-option-text { font-size: 17px; font-weight: 500; color: var(--text-dark); }

.q-action-buttons { display: flex; gap: 16px; margin-top: 25px; flex-wrap: wrap; }
.q-action-buttons .q-btn-submit { flex: 2; }
.q-action-buttons .q-btn-outline { flex: 1; }

.q-success-card { text-align: center; background: white; border-radius: 40px; padding: 50px 30px; box-shadow: var(--shadow-lg); }
.q-success-card i { font-size: 80px; color: var(--success); }
.q-success-card h2 { font-size: 28px; margin: 20px 0; }

.q-download-btn {
    display: inline-flex; align-items: center; gap: 12px; background: var(--success);
    color: white; padding: 16px 40px; border-radius: 60px; text-decoration: none;
    font-weight: bold; margin-top: 25px; transition: 0.2s;
}
.q-download-btn:hover { background: #0d9488; transform: scale(1.02); }

.q-pub-table { width: 100%; border-collapse: collapse; background: white; border-radius: 20px; overflow: hidden; }
.q-pub-table th { background: #f1f5f9; padding: 16px; text-align: center; }
.q-pub-table td { padding: 14px; border-bottom: 1px solid #e2e8f0; text-align: center; }

.q-option-check {
    width: 22px; height: 22px; border: 2px solid #94a3b8; border-radius: 6px;
    background: white; transition: all 0.15s; position: relative;
}
.q-option-item.selected .q-option-check { background: var(--primary); border-color: var(--primary); }
.q-option-item.selected .q-option-check::after {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 12px; color: white; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.q-dl-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    background: #ecfdf5; border-radius: 14px; color: #059669; font-size: 18px;
    transition: 0.2s; text-decoration: none;
}
.q-dl-icon:hover { background: #10b981; color: white; transform: scale(1.05); }

.q-del-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    background: #fef2f2; border-radius: 14px; color: #dc2626; font-size: 16px;
    transition: 0.2s; cursor: pointer;
}
.q-del-icon:hover { background: #ef4444; color: white; transform: scale(1.05); }

.q-success-wrapper {
    position: relative; min-height: 500px; overflow: hidden; border-radius: 32px;
    background: linear-gradient(145deg, #f9fafb 0%, #ffffff 100%);
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
}
#q-confetti-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.q-success-card {
    position: relative; z-index: 2; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(4px); margin: 30px; padding: 40px 30px; border-radius: 48px;
    text-align: center; box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1); border: 1px solid rgba(79,70,229,0.2);
}
.q-success-icon i {
    font-size: 80px; color: #10b981; background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 5px 15px rgba(16,185,129,0.3); margin-bottom: 15px;
}
.q-success-title { font-size: 32px; font-weight: 900; color: #1e293b; margin: 15px 0 10px; }
.q-success-message { font-size: 16px; color: #475569; margin-bottom: 30px; line-height: 1.6; }
.q-success-stats {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
    background: #f8fafc; padding: 20px; border-radius: 28px; margin-bottom: 35px;
}
.q-stat-item { text-align: right; }
.q-stat-label { display: block; font-size: 13px; color: #64748b; margin-bottom: 6px; }
.q-stat-value {
    font-size: 18px; font-weight: bold; color: #0f172a; background: white;
    padding: 6px 16px; border-radius: 40px; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.q-download-btn-final {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed); color: white;
    padding: 16px 32px; border-radius: 60px; font-size: 18px; font-weight: bold;
    text-decoration: none; transition: all 0.3s ease; box-shadow: 0 10px 20px -8px #4f46e5; border: none; cursor: pointer;
}
.q-download-btn-final:hover {
    transform: translateY(-4px); box-shadow: 0 18px 28px -12px #4f46e5;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.q-download-btn-final i { font-size: 22px; }
.q-success-footer { margin-top: 30px; font-size: 13px; color: #94a3b8; border-top: 1px solid #e2e8f0; padding-top: 20px; }

@media (max-width: 640px) {
    .q-success-card { margin: 15px; padding: 25px 20px; }
    .q-success-title { font-size: 24px; }
    .q-download-btn-final { font-size: 14px; padding: 12px 20px; }
    .q-success-stats { flex-direction: column; gap: 15px; }
}/* ===== پیغام‌های toast برای حذف ===== */
.q-toast-message {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    direction: rtl;
    text-align: right;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    animation: slideInUp 0.3s ease-out;
    font-family: 'IranSans', Tahoma, sans-serif;
}
.q-toast-success {
    background: #10b981;
    color: white;
    border-right: 5px solid #047857;
}
.q-toast-error {
    background: #ef4444;
    color: white;
    border-right: 5px solid #b91c1c;
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}