/*
====================================================
 Glasser BNQ
 Public UI
 Version : 2.0
====================================================
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text: #1f2937;
    --text-light: #6b7280;

    --white: #ffffff;
    --border: #e5e7eb;
    --background: #f5f7fb;

    --radius: 24px;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    background: linear-gradient(135deg, #edf4ff 0%, #f7f9fc 50%, #ffffff 100%);
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: var(--text);
}

/* =======================================
            Card
======================================= */
.glasser-card {
    max-width: 760px;
    margin: 40px auto;
    background: #fff;
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--shadow);
    border: 1px solid #eef2f7;
}

@media (max-width: 768px) {
    .glasser-card {
        margin: 15px;
        padding: 25px;
    }
}

/* =======================================
            Header
======================================= */
.glasser-header {
    text-align: center;
    margin-bottom: 35px;
}

.glasser-icon {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-size: 34px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.glasser-header h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 30px;
    font-weight: 800;
}

.glasser-subtitle {
    margin-top: 12px;
    color: var(--text-light);
    line-height: 2;
}

/* =======================================
            User Badge
======================================= */
.glasser-user-badge {
    background: rgba(79, 70, 229, 0.08);
    border-radius: 40px;
    padding: 6px 18px;
    display: inline-block;
    font-weight: 500;
    color: #4f46e5;
    font-size: 0.95rem;
}

/* =======================================
            Progress
======================================= */
.glasser-progress-wrapper {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glasser-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glasser-progress-text {
    font-weight: 600;
    color: #1e293b;
}

.glasser-progress-percent {
    color: #7c3aed;
    font-weight: 700;
}

.glasser-progress-bar {
    height: 12px;
    border-radius: 40px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 6px;
}

.glasser-progress-fill {
    border-radius: 40px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #4f46e5, #a855f7);
    height: 100%;
}

.glasser-progress-count {
    text-align: left;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =======================================
            Question
======================================= */
.glasser-question-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 28px 24px;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.glasser-question-card:hover {
    transform: translateY(-2px);
}

.glasser-question-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.glasser-question-badge {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    border-radius: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 10px;
}

/* =======================================
            Options
======================================= */
.glasser-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glasser-option-item {
    position: relative;
}

.glasser-option-item input[type="radio"] {
    display: none;
}

.glasser-option-label {
    display: flex;
    align-items: center;
    padding: 16px 22px;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 18px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.glasser-option-label:hover {
    background: rgba(238, 242, 255, 0.9);
    border-color: #c7d2fe;
    transform: scale(1.01);
}

.glasser-option-item input[type="radio"]:checked + .glasser-option-label {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
    transform: scale(1.02);
}

.glasser-option-item input[type="radio"]:checked + .glasser-option-label::before {
    content: "✓ ";
    font-weight: 900;
}

/* =======================================
            Navigation Buttons
======================================= */
.glasser-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.glasser-nav-buttons .btn {
    border-radius: 60px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.glasser-nav-buttons .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.glasser-nav-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.glasser-nav-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}

.glasser-nav-buttons .btn-outline-primary:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.glasser-nav-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =======================================
            Submit Button
======================================= */
.glasser-btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 60px;
    padding: 14px 32px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.glasser-btn-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.glasser-btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =======================================
            Modal (overlay)
======================================= */
.glasser-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.glasser-modal.active {
    display: flex;
}

.glasser-modal-content {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
    animation: popup 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glasser-modal-header {
    padding: 24px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.glasser-modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.glasser-modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    line-height: 1;
}

.glasser-modal-close:hover {
    color: var(--danger);
}

.glasser-modal-body {
    padding: 20px 30px 10px;
    text-align: center;
}

.glasser-modal-body .modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.glasser-modal-body .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.glasser-modal-body .modal-sub {
    color: var(--text-light);
    font-size: 0.95rem;
}

.glasser-modal-footer {
    padding: 10px 30px 30px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: none;
}

.glasser-btn-soft-secondary {
    border-radius: 60px;
    padding: 10px 30px;
    border: 2px solid #cbd5e1;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}

.glasser-btn-soft-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* =======================================
            Utility / Responsive
======================================= */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 1rem;
}
.mt-4 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}
.justify-content-between {
    justify-content: space-between;
}
.align-items-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

@media (max-width: 640px) {
    .glasser-header h2 {
        font-size: 24px;
    }
    .glasser-card {
        border-radius: 18px;
        padding: 20px;
    }
    .glasser-question-card {
        padding: 18px 14px;
    }
    .glasser-option-label {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    .glasser-nav-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .glasser-btn-success {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .glasser-modal-content {
        max-width: 95%;
    }
}

/*
====================================================
 Glasser BNQ
 Public UI
 Version : 2.1
====================================================
*/

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text: #1f2937;
    --text-light: #6b7280;

    --white: #ffffff;
    --border: #e5e7eb;
    --background: #f5f7fb;

    --radius: 24px;
    --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

body {
    direction: rtl;
    background: linear-gradient(135deg, #edf4ff 0%, #f7f9fc 50%, #ffffff 100%);
    font-family: Vazirmatn, Tahoma, sans-serif;
    color: var(--text);
}

/* =======================================
            Card
======================================= */
.glasser-card {
    max-width: 760px;
    margin: 40px auto;
    background: #fff;
    border-radius: 30px;
    padding: 45px;
    box-shadow: var(--shadow);
    border: 1px solid #eef2f7;
}

@media (max-width: 768px) {
    .glasser-card {
        margin: 15px;
        padding: 25px;
    }
}

/* =======================================
            Header
======================================= */
.glasser-header {
    text-align: center;
    margin-bottom: 35px;
}

.glasser-icon {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    color: #fff;
    font-size: 34px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
}

.glasser-header h2 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 30px;
    font-weight: 800;
}

.glasser-subtitle {
    margin-top: 12px;
    color: var(--text-light);
    line-height: 2;
}

/* =======================================
            User Badge
======================================= */
.glasser-user-badge {
    background: rgba(79, 70, 229, 0.08);
    border-radius: 40px;
    padding: 6px 18px;
    display: inline-block;
    font-weight: 500;
    color: #4f46e5;
    font-size: 0.95rem;
}

/* =======================================
            Progress
======================================= */
.glasser-progress-wrapper {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 60px;
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glasser-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glasser-progress-text {
    font-weight: 600;
    color: #1e293b;
}

.glasser-progress-percent {
    color: #7c3aed;
    font-weight: 700;
}

.glasser-progress-bar {
    height: 12px;
    border-radius: 40px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 6px;
}

.glasser-progress-fill {
    border-radius: 40px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #4f46e5, #a855f7);
    height: 100%;
}

.glasser-progress-count {
    text-align: left;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =======================================
            Question
======================================= */
.glasser-question-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    padding: 28px 24px;
    margin: 24px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.glasser-question-card:hover {
    transform: translateY(-2px);
}

.glasser-question-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.glasser-question-badge {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    border-radius: 40px;
    padding: 0 14px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 10px;
}

/* =======================================
            Options
======================================= */
.glasser-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glasser-option-item {
    position: relative;
}

.glasser-option-item input[type="radio"] {
    display: none;
}

.glasser-option-label {
    display: flex;
    align-items: center;
    padding: 16px 22px;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(2px);
    border-radius: 18px;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.glasser-option-label:hover {
    background: rgba(238, 242, 255, 0.9);
    border-color: #c7d2fe;
    transform: scale(1.01);
}

.glasser-option-item input[type="radio"]:checked + .glasser-option-label {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: #4f46e5;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.25);
    transform: scale(1.02);
}

.glasser-option-item input[type="radio"]:checked + .glasser-option-label::before {
    content: "✓ ";
    font-weight: 900;
}

/* =======================================
            Navigation Buttons
======================================= */
.glasser-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.glasser-nav-buttons .btn {
    border-radius: 60px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.glasser-nav-buttons .btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.glasser-nav-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.glasser-nav-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}

.glasser-nav-buttons .btn-outline-primary:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.glasser-nav-buttons .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =======================================
            Submit Button
======================================= */
.glasser-btn-success {
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 60px;
    padding: 14px 32px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.glasser-btn-success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.glasser-btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* =======================================
            Modal (overlay)
======================================= */
.glasser-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.glasser-modal.active {
    display: flex;
}

.glasser-modal-content {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
    animation: popup 0.3s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

@keyframes popup {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glasser-modal-header {
    padding: 24px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.glasser-modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.glasser-modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    line-height: 1;
}

.glasser-modal-close:hover {
    color: var(--danger);
}

.glasser-modal-body {
    padding: 20px 30px 10px;
    text-align: center;
}

.glasser-modal-body .modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.glasser-modal-body .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.glasser-modal-body .modal-sub {
    color: var(--text-light);
    font-size: 0.95rem;
}

.glasser-modal-footer {
    padding: 10px 30px 30px;
    display: flex;
    justify-content: center;
    gap: 16px;
    border-top: none;
}

.glasser-btn-soft-secondary {
    border-radius: 60px;
    padding: 10px 30px;
    border: 2px solid #cbd5e1;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}

.glasser-btn-soft-secondary:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* =======================================
            Result Dashboard
======================================= */
.result-dashboard {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

.result-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}

.result-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.result-card .score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.result-card .text-muted {
    color: var(--text-light);
    font-size: 14px;
}

/* Celebrity */
.celebrity-card {
    background: linear-gradient(135deg, #e6f0fa, #ffffff);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text);
}

.celebrity-card h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.celebrity-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 15px;
}

.celebrity-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.celebrity-card p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 20px;
}

.btn-story {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-story:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Needs Grid */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.need-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: var(--transition);
}

.need-item:hover {
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.need-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.need-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.need-percent {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

.need-circle-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 10px auto;
}

.need-circle-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.need-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.need-score {
    font-size: 14px;
    color: var(--text-light);
    margin: 8px 0 12px;
}

.need-points {
    list-style: none;
    padding: 0;
    text-align: right;
    margin: 10px 0 15px;
}

.need-points li {
    font-size: 14px;
    color: #475569;
    padding: 4px 0;
    border-bottom: 1px dashed #e9ecef;
}

.need-points li::before {
    content: "• ";
    color: var(--primary);
    font-weight: bold;
}

.btn-study {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-study:hover {
    background: var(--primary);
    color: #fff;
}

/* Banner Course */
.banner-course {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 25px;
}

.banner-course h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.banner-course p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.banner-course .btn-course {
    background: #fff;
    color: var(--primary);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.banner-course .btn-course:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Result Actions */
.result-actions {
    text-align: center;
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.result-actions .btn-primary,
.result-actions .btn-secondary {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.result-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.result-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.result-actions .btn-secondary {
    background: #e9ecef;
    color: var(--text);
    border: 1px solid #ced4da;
}

.result-actions .btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

/* Dashboard specific */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dashboard-grid .full-width {
    grid-column: 1 / -1;
}

.dashboard-stat {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.dashboard-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.dashboard-stat .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--text);
}

.dashboard-table tr:hover {
    background: #f8fafc;
}

/* =======================================
            Utility / Responsive
======================================= */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 1rem;
}
.mt-4 {
    margin-top: 1.5rem;
}

.d-flex {
    display: flex;
}
.justify-content-between {
    justify-content: space-between;
}
.align-items-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    .needs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .glasser-header h2 {
        font-size: 24px;
    }
    .glasser-card {
        border-radius: 18px;
        padding: 20px;
    }
    .glasser-question-card {
        padding: 18px 14px;
    }
    .glasser-option-label {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    .glasser-nav-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .glasser-btn-success {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .glasser-modal-content {
        max-width: 95%;
    }
    .needs-grid {
        grid-template-columns: 1fr;
    }
    .result-card {
        padding: 20px;
    }
    .glasser-card {
        padding: 20px;
    }
}

/* ===== دکمه مطالعه متن کامل توافق‌نامه ===== */
.glassers-rules-btn {
    background-color: #4A90D9 !important; /* آبی حرفه‌ای */
    color: #FFFFFF !important; /* سفید */
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    margin: 15px 0 !important;
    font-size: 15px !important;
}

.glassers-rules-btn:hover {
    background-color: #357ABD !important; /* آبی تیره‌تر در هاور */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3) !important;
}

/* وقتی کاربر تیک مطالعه زد - رنگ متن به سبز */
.glassers-rules-btn.agreed {
    color: #27AE60 !important; /* سبز */
    background-color: #4A90D9 !important; /* پس‌زمینه ثابت */
}

/* ===== دکمه شروع آزمون ===== */
.glassers-btn {
    background-color: #E0E7FF !important; /* آبی کمرنگ (غیرفعال) */
    color: #6B7280 !important; /* خاکستری */
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 60px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: 10px !important;
}

/* حالت فعال (وقتی تیک خورده) */
.glassers-btn:not(:disabled) {
    background-color: #10B981 !important; /* سبز زمردی */
    color: #FFFFFF !important; /* سفید */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.glassers-btn:not(:disabled):hover {
    background-color: #059669 !important; /* سبز تیره‌تر */
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.glassers-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}