:root {
    --primary-color: #6D28D9; /* بنفش */
    --secondary-color: #3B82F6; /* آبی */
    --accent-color: #EC4899; /* صورتی نئونی */
    --dark-bg: #0F172A;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    /* Vazirmatn renders visually larger than typical Latin fonts at the same rem size */
    font-size: 15px;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: #fff;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    font-size: 1rem;
}

.validation-summary-valid,
.field-validation-valid {
    display: none;
}

/* --- Animated Gradient Background --- */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* حباب‌های نورانی پشت زمینه */
.animated-background::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.4;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.animated-background::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Glassmorphism Components --- */
.glass-nav {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card:hover::before {
    left: 100%;
}

/* --- Typography & Buttons --- */
.gradient-text {
    background: linear-gradient(to right, #a78bfa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.main-container {
    margin-top: 100px;
}

.btn-glow {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(109, 40, 217, 0.8);
    transform: scale(1.05);
    color: white;
}

/* --- Global button polish: every Bootstrap button variant gets the same pill/glow treatment as .btn-glow --- */
.btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    transition: all 0.25s ease;
    border-width: 1px;
}

.btn:not(.btn-link):hover {
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.35rem 1rem;
}

.btn-primary, .btn-success, .btn-warning, .btn-danger, .btn-info {
    border: none;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.btn-primary { background: linear-gradient(45deg, #4f46e5, #3b82f6); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 26px rgba(59, 130, 246, 0.55); color: #fff; }

.btn-success { background: linear-gradient(45deg, #059669, #10b981); color: #fff; }
.btn-success:hover { box-shadow: 0 6px 26px rgba(16, 185, 129, 0.55); color: #fff; }

.btn-warning { background: linear-gradient(45deg, #d97706, #f59e0b); color: #1f2937; }
.btn-warning:hover { box-shadow: 0 6px 26px rgba(245, 158, 11, 0.55); color: #1f2937; }

.btn-danger { background: linear-gradient(45deg, #b91c1c, #ef4444); color: #fff; }
.btn-danger:hover { box-shadow: 0 6px 26px rgba(239, 68, 68, 0.55); color: #fff; }

.btn-info { background: linear-gradient(45deg, #0891b2, #06b6d4); color: #fff; }
.btn-info:hover { box-shadow: 0 6px 26px rgba(6, 182, 212, 0.55); color: #fff; }

.btn-outline-light, .btn-outline-warning, .btn-outline-danger, .btn-outline-info, .btn-outline-primary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover, .btn-outline-warning:hover, .btn-outline-danger:hover, .btn-outline-info:hover, .btn-outline-primary:hover {
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.12);
}

.bg-transparent::after{
    background-color: transparent !important;
}

.form-floating label::after{
    background-color: transparent !important;
}