@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}

@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F;
    /* Persian/Arabic */
}


@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}

@font-face {
    font-family: "Roboto";
    src: url("../fonts/Roboto-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF;
    /* Latin */
}




/* ========================================
   متغیرهای رنگ و استایل
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


:root {
    /* رنگ‌های اصلی */
    --primary-color: #011f44;
    --secondary-color: #022a5b;
    --accent-color: #3498db;
    --blu-color: #0058ff;
    --blu-durk-color: #0544bb;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12d9;
    --info-color: #16a085cc;

    /* رنگ‌های پس‌زمینه */
    --light-bg: #ecf0f1;
    --dark-bg: #1a252f;
    --body-bg: #fdfdff;
    --home-bg-1: #e7f0ff;
    --home-bg-2: #f0f5ff;
    --home-bg-3: #e7f0ff;

    --white-bg: #ffffff;

    /* رنگ‌های متن */
    --text-primary: #2c3e50;
    --text-secondary: #737879;
    --text-muted: #999;

    /* رنگ‌های مرز */
    --border-color: #bdc3c7;
    --border-light: #dee2e6;
    --border-dark: #ddd;



    --primary: #6c47ff;
    --primary-dark: #5535e0;
    --dark-hero: #22203a;
    --dark-marquee: #272459;
    --text: #e2e2f0;
    --muted: #8888aa;
    --muted-dark: #59596d;
    --card-bg: #16162a;
    --light-card-bg: #dee6f5;
    --light-serch-bg: #eef2fe;
    --border: #3a3a5e;
    --white: #ffffff;
    --black: #000000;
    --green: #22c55e;
    --radius: 12px;


    /* سایه‌ها */
    --card-shadow: 0px 0px 20px #9d9d9d26;
    --hover-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    --modal-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* شعاع گوشه‌ها */
    --border-radius-sm: 4px;
    --border-radius-sm-md: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 14px;
    --border-radius-50: 16px;
    --border-radius-25: 25px;
    --border-radius-999: 999px;

    /* فاصله‌ها */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* اندازه فونت */
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 22px;

    /* انتقال */
    --transition-base: all 0.3s ease;

}

/* ========================================
   تنظیمات پایه
   ======================================== */


strong {
    font-size: var(--font-size-base);
    font-weight: 600;
}

td {
    white-space: nowrap !important;
}

a {
    color: var(--blu-durk-color);
}






html,
body,
p,
span,
div,
h1,
td,
h2,
h3,
h4,
h5,
h6,
a,
li,
ul,
ol,
label,
small,
medium,
strong,
em,
b,
i,
blockquote,
q,
cite,
code,
pre,
button,
input,
textarea,
select,
option {
    font-family: "Vazirmatn", "Roboto", sans-serif;
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #10b981;
    --success-light: #d1fae5;
    --success-light-light: #e3f6ec;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-size-1: 13px;
    --font-size-2: 14px;
    --font-size-3: 15px;
    --font-size-4: 16px;
    --font-size-5: 17px;
}

/* index */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --white: #ffffff;
    --success: #10b981;
}



.grain-overlay {
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: unset;
    -webkit-font-smoothing: antialiased;
    padding: 32px 20px 8px 20px;
    min-height: 100vh;
    direction: rtl;
    margin: -32px -20px -8px -20px !important;
}


.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-logo img {
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--white);
}

/* Hero Section */
.hero-section {

    display: flex;
    align-items: center;
    padding: 2rem 2rem 1rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        var(--dark);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.btn-primary svg {
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(-3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visual-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    width: 400px;
    transition: all 0.3s;
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-1 {
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 140px;
    right: 60px;
    animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
    top: 280px;
    right: 0;
    animation: float 6s ease-in-out infinite 2s;
}

.card-4 {
    top: 420px;
    right: 80px;
    animation: float 6s ease-in-out infinite 3s;
}

.card-5 {
    top: 560px;
    right: -20px;
    animation: float 6s ease-in-out infinite 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 20px;
    color: var(--gray-light);
}

.card-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}


@keyframes progressAnimation {
    from {
        width: 0;
    }
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent);
    filter: blur(40px);
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -10%;
    animation: floatRandom 8s ease-in-out infinite;
}

.element-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: -5%;
    animation: floatRandom 10s ease-in-out infinite 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    animation: floatRandom 12s ease-in-out infinite 4s;
}

@keyframes floatRandom {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(20px, -20px);
    }

    66% {
        transform: translate(-20px, 20px);
    }
}

/* Features Grid */
.features-grid {
    padding: 6rem 2rem;
    background: var(--dark-light);
    position: relative;
}

.features-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray-light);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--gray-light);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        height: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .hero-visual {
        height: 400px;
    }

    .visual-card {
        width: 280px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .visual-card {
        width: 100%;
        position: relative;
        margin-bottom: 1rem;
    }

    .card-1,
    .card-2,
    .card-3,
    .card-4 {
        position: relative;
        top: auto;
        right: auto;
    }

    .hero-visual {
        height: auto;
    }
}




/* Loading Bar */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    transition: width 1s linear;
    z-index: 9999;
}

/* Container */
.container {
    max-width: 860px;
    margin: auto;
}


/* Progress Tracker */
.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.progress-step {
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.line-progress-step {
    width: 80px;
    height: 2px;
    background: var(--gray-400);
    margin-bottom: 24px;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    right: -60px;
    width: 60px;
    height: 2px;

    z-index: 0;
}

.progress-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.progress-step-label {
    font-size: var(--font-size-2);
    color: var(--gray-400);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.progress-step.done .progress-step-number {
    background: var(--success);
    color: white;
}

.progress-step.active .progress-step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.progress-step.active .progress-step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Step Card */
.step {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.active {
    max-height: 3000px;
    opacity: 1;
    transform: translateY(0);
}

/* Step Header */
.step-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-header-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-header-title {
    font-size: var(--font-size-5);
    font-weight: 600;
    color: white;
}


.step-logo img {
    width: 40px;
}

/* Step Content */
.content {
    padding: 28px 24px;
}

/* Section Title */
.section-title {
    font-size: var(--font-size-4);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.section-disc,
.section-disc-form {
    font-size: var(--font-size-2);
    color: var(--gray-500);
    line-height: 1.7;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
    margin-bottom: 8px;
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: var(--font-size-1);
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.01em;
}

.form-group label span.required-mark {
    color: var(--danger);
    margin-right: 2px;
}

/* Input Fields */
.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 13px;
    color: var(--gray-800);
    transition: all 0.2s ease;
    resize: none;
    height: 38px;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:disabled {
    background: var(--gray-50);
    color: var(--gray-400);
    cursor: not-allowed;
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Divider */
.section-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 24px 0;
}

/* Bylaw Search */
.bylaw-search-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.bylaw-search {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 13px;
    color: var(--gray-800);
    transition: all 0.2s ease;
    font-family: inherit;
}

.bylaw-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
}

/* Bylaw List */
.bylaw-list {
    margin-top: 8px;
    max-height: 180px;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    padding: 6px;
}

.bylaw-list::-webkit-scrollbar {
    width: 4px;
}

.bylaw-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.bylaw-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.bylaw-item {
    padding: 10px 14px;
    margin: 3px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
}

.bylaw-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.bylaw-item.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Bylaw Info Card */
.bylaw-info-card {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-2);
    color: var(--gray-700);
    display: none;
}

.bylaw-info-card a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
}

/* Sub-form title */
.sub-form-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 14px;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--primary);
}

/* Result Box */
.result-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.result-bylaw-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.result-bylaw-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.score-grid {
    display: flex;
    /*     display: grid;
    grid-template-columns: repeat(3, 1fr); */
    gap: 12px;
}

.score-card {
    width: 100%;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

#your-score-card {
    background-color: #f3f4f6;
}

#remain-score-card {
    display: block;
}

.score-card.highlight {
    background: var(--primary-light);
    /* border-color: var(--primary); */
}

.score-card-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.score-card-value {
    color: var(--gray-600);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.score-card.highlight {
    color: var(--primary);
}

.result-text-box {
    padding: 16px;
    background: var(--gray-50);
    border-right: 3px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* Operation box */
.operation-box {
    padding: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.8;
}

/* Proposals */
.proposals-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.proposal-box p {
    margin: 10px 0;
}

.proposals-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proposal-item-ul {
    /* display: flex; */
    /* align-items: center; */
    /* gap: 10px; */
    padding: 1px 16px;
    background: var(--success-light-light);
    /* border: 1px solid #6ee7b7; */
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #065f46;
}

.proposal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--success-light);
    border: 1px solid #6ee7b7;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #065f46;
    margin: 10px 0;

}

.proposal-item::before {
    content: '✦';
    color: var(--success);
    font-size: 10px;
    flex-shrink: 0;
}

#form-estedad-test {
    margin-top: 15px;
}

#form-estedad-test-show {
    transition: all 0.2s ease;
}

/* Video Cards */
.proposal-videos {
    overflow-x: auto;
    padding-bottom: 8px;
}

.proposal-videos::-webkit-scrollbar {
    height: 4px;
}

.proposal-videos::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.proposal-videos::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.proposal-videos-list {
    display: flex;
    gap: 14px;
    padding: 4px 2px;
    min-width: max-content;
}

.proposal-video {
    width: 200px;
    height: 130px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gray-700), var(--gray-800));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.proposal-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e530, #7c3aed30);
}

.proposal-video:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.proposal-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgb(255 255 255 / 56%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
}

.proposal-video-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    z-index: 1;
}


.score-section {
    transition: all 0.2s ease;
}


/* Next Button */
.button-next-step {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
}

button.btn-next {
    padding: 10px 28px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

button.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

button.btn-next:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


.next-back-btn {
    display: flex;
    margin-top: 15px;
}


#next-btn {
    margin-right: auto;
}

#back-btn {
    margin-left: auto;
}


.btn-clear-step {
    margin-left: auto;
    padding: 10px 28px;
    border: none;
    background: linear-gradient(135deg, #ca3d51 0%, #e56569 100%);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-clear-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px #ca3d5254;
}


.submit-btn {
    width: 125px;
    padding: 8px 20px;
    border: none;
    background: linear-gradient(135deg, #24acd4 0%, #3a7aed 100%);
    color: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px #2a9fdb6e;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* Step Locked */
.step.step-locked .step-header {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}


/* Custom Select */
.bylaw-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.bylaw-select-label {
    font-size: var(--font-size-2);
    font-weight: 600;
    color: var(--gray-600);
}

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    font-size: var(--font-size-2);
    color: var(--gray-400);
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: var(--primary);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--gray-800);
}

.select-arrow {
    font-size: 14px;
    color: var(--gray-400);
    transition: transform 0.25s ease;
    display: inline-block;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.custom-select-dropdown {
    position: relative;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 1.5px solid var(--primary);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    z-index: 100;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.custom-select.open .custom-select-dropdown {
    max-height: 300px;
    opacity: 1;
    pointer-events: all;
}

.custom-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--gray-100);
}

.custom-select-item:last-child {
    border-bottom: none;
}

.custom-select-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.custom-select-item.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.item-icon {
    font-size: 16px;
    flex-shrink: 0;
}





.progress-container {
    display: none;
    width: 100%;
    background: #eee;
    height: 15px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #007bff;
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-text {
    /* margin-top: 8px; */
    font-size: var(--font-size-2);
    text-align: center;
    background: #ffffff;
    padding: 6px;
}




/* #modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
} */

#modal-bylaw {
    background: #fff;
    /* border-radius: 12px; */
    padding: 24px;
    width: 100%;
    /* max-width: 90%; */
    max-height: 690px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    direction: rtl;
}

.modal-title {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

#btn-submit-bylaw {
    align-self: flex-end;
    padding: 8px 24px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.title-list-names {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 10px;
    max-height: 120px;
    overflow: auto;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
}

.file-item {
    font-size: 13px;
    color: #374151;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
}




/* Tooltip Container */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #6366f1;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 6px;
    user-select: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.tooltip-icon:hover {
    background: #4f46e5;
}

/* Tooltip Box */
.tooltip-box {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 63%;
    transform: translateX(50%) translateY(6px);
    background: #707070f0;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1.7;
    padding: 8px 10px;
    border-radius: 10px;
    width: 220px;
    text-align: right;
    direction: rtl;
    pointer-events: none;
    z-index: 999999;

    /* حالت پنهان */
    opacity: 0;
    visibility: hidden;
    transform: translateX(50%) translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

/* مثلث پایین tooltip */
.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 6px solid transparent;
    border-top-color: #707070f0;
}

/* حالت فعال */
.tooltip-wrapper.active .tooltip-box,
.tooltip-wrapper:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}




.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
    flex-wrap: wrap;
}

.add-btn {
    padding: 8px 20px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.add-btn:hover {
    background: #e2e8f0;
}

/* کارت هر مقاله */
.article-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    /* position: relative; */
    background: #f8fafc;
}

.article-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    direction: rtl;
}

.article-card-title {
    font-weight: bold;
    font-size: var(--font-size-2);
    color: #475569;
}

.btn-remove-card {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-remove-card:hover {
    background: #fee2e2;
}



.label-open-modal {
    font-size: 14px;
    color: var(--gray-500);
    /* line-height: 1.7; */
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    width: fit-content;
    cursor: pointer
}


.btn-test-estedad {
    background: linear-gradient(135deg, #2a942e 0%, #67b210 100%);
    color: white;
    padding: 10px 28px;
    font-size: 15px;
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    align-items: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}


.btn-test-estedad:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px #4caf4f4f;
}






/* ==========================================
   استایل صفحه جزئیات ویدیو
   ========================================== */

.proposal-videos-list {
    /*     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); */
    gap: 25px;
    padding: 20px 0;
    margin-top: 30px;
}

.proposal-video-card {
    width: 325px;

}

.proposal-video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proposal-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.proposal-video-card:active {
    transform: translateY(-4px);
}

/* تصویر شاخص ویدیو */
.proposal-video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.proposal-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.proposal-video-card:hover .proposal-video-thumbnail img {
    transform: scale(1.1);
}

/* اورلی تاریک روی تصویر */
.proposal-video-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* مدت زمان ویدیو */
.proposal-video-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #00000078;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* بج وضعیت (فعال/غیرفعال) */
.video-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.video-status-badge.active {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.video-status-badge.inactive {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* محتوای کارت */
.proposal-video-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* دسته‌بندی */
.proposal-video-category {
    display: inline-block;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

/* عنوان ویدیو */
.proposal-video-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    /*-webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 35px;
}

/* توضیحات کوتاه */
.proposal-video-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* متا اطلاعات (ستاره‌ها و مدرس) */
.proposal-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.proposal-video-stars {
    font-size: 16px;
    color: #fbbf24;
    letter-spacing: 2px;
}

.proposal-video-instructor {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.proposal-video-instructor::before {
    font-size: 16px;
}

/* حالت خالی بودن لیست */
.no-videos {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* افکت‌های اضافی */
.proposal-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.proposal-video-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .proposal-videos-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .proposal-videos-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 0;
    }

    .proposal-video-card {
        max-width: 100%;
    }

    .proposal-video-thumbnail {
        height: 180px;
    }

    .proposal-video-content {
        padding: 16px;
    }

    .proposal-video-title {
        font-size: 16px;
        min-height: auto;
    }

    .proposal-video-desc {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .proposal-video-thumbnail {
        height: 160px;
    }

    .proposal-video-duration {
        font-size: 11px;
        padding: 4px 10px;
        bottom: 8px;
        left: 8px;
    }

    .video-status-badge {
        font-size: 10px;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
    }
}

/* انیمیشن ورود کارت‌ها */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proposal-video-card {
    animation: cardFadeIn 0.5s ease forwards;
}

.proposal-video-card:nth-child(1) {
    animation-delay: 0.1s;
}

.proposal-video-card:nth-child(2) {
    animation-delay: 0.2s;
}

.proposal-video-card:nth-child(3) {
    animation-delay: 0.3s;
}

.proposal-video-card:nth-child(4) {
    animation-delay: 0.4s;
}

.proposal-video-card:nth-child(5) {
    animation-delay: 0.5s;
}

.proposal-video-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* حالت لودینگ برای تصاویر */
.proposal-video-thumbnail img[src=""],
.proposal-video-thumbnail img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* استایل اسکرول‌بار برای لیست ویدیوها */
.proposal-videos-list::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.proposal-videos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.proposal-videos-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.proposal-videos-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* افکت Hover برای دسته‌بندی */
.proposal-video-card:hover .proposal-video-category {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* افکت Pulse برای ستاره‌ها */
@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}



/* بج "جدید" برای ویدیوهای تازه */
.video-new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    animation: newBadgePulse 2s ease infinite;
}

@keyframes newBadgePulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
    }
}

/* حالت Skeleton Loading */
.proposal-video-card.loading {
    pointer-events: none;
}

.proposal-video-card.loading .proposal-video-thumbnail,
.proposal-video-card.loading .proposal-video-title,
.proposal-video-card.loading .proposal-video-desc,
.proposal-video-card.loading .proposal-video-category {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    color: transparent;
}






/* ==========================================
   استایل مودال ویدیو
   ========================================== */

.video-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.video-status-badge.active {
    background: #22c55e;
    color: white;
}

.video-status-badge.inactive {
    background: #ef4444;
    color: white;
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.video-modal-overlay.closing {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.video-modal-container {
    background: white;
    border-radius: 16px;
    width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-close {
    position: sticky;
    margin-right: auto;
    margin-left: 15px;
    top: 15px;
    /* right: 15px; */
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    padding: 0px 30px 30px 30px;
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.video-modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.video-modal-category {
    background: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.video-modal-stars {
    font-size: 18px;
}

.video-modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.video-modal-thumbnail {
    width: 85%;
    height: 300px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.video-modal-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-modal-thumbnail .proposal-video-play {
    top: 45% !important;
}

.video-modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.video-modal-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.video-modal-value {
    color: #1a1a1a;
    font-size: 15px;
}

.video-modal-description {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-right: 4px solid #3b82f6;
}

.video-modal-description h3 {
    margin: 0 0 5px 0;
    font-size: 17px;
    color: #1a1a1a;
}

.video-modal-description p {
    margin: 0;
    line-height: 1.8;
    color: #444;
    font-size: 15px;
}

.video-modal-actions {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.video-modal-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.video-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.video-modal-btn-primary:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 16px;
}

.video-modal-inactive {
    text-align: center;
    padding: 30px 20px;
    background: #fff3cd;
    border-radius: 12px;
    border: 2px dashed #ffc107;
}

.video-modal-inactive-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.video-modal-inactive-text {
    font-size: 18px;
    font-weight: bold;
    color: #856404;
    margin: 0 0 10px 0;
}

.video-modal-inactive-subtext {
    font-size: 15px;
    color: #856404;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .video-modal-container {
        max-width: 95%;
        margin: 10px;
    }

    .video-modal-content {
        padding: 0px 20px 20px 20px;
    }

    .video-modal-title {
        font-size: 20px;
    }

    .video-modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .video-modal-btn-primary {
        width: 100%;
        justify-content: center;
    }
}





/* قیمت در کارت ویدیو */
.proposal-video-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.proposal-video-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.proposal-video-price-discount {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.proposal-video-price-currency {
    font-size: 14px;
    color: #666;
}

/* باکس قیمت در مودال */
.video-modal-pricing-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 17px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.video-modal-pricing-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-modal-price-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.video-modal-prices {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
}

.video-modal-price-original {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.video-modal-price-final {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.video-modal-price-discount {
    font-size: 27px;
    font-weight: bold;
    color: #fff;
}

.video-modal-price-currency {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.proposal-video-price-free {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
}

.video-modal-price-free-large {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    display: block;
}










/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner-wrapper {
    background: white;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--gray-100);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Fade out animation */
.step-hide {
    animation: fadeOut 0.6s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 3000px;
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin: 0;
        overflow: hidden;
    }
}

/* Responsive */
@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

    .progress-tracker {
        display: none;
    }
}


/* thank-you */
.thank-you-container {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
    margin: 60px auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    color: white;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.thank-you-h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
}

.thank-you-p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.highlight {
    color: #667eea;
    font-weight: bold;
}

.back-button {
    margin-top: 40px;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}