/* تنظیمات پایه و متغیرهای نئونی */
:root {
    --bg-dark: #0f172a;
    --primary-glow: #8b5cf6; /* بنفش نئونی */
    --secondary-glow: #06b6d4; /* فیروزه‌ای نئونی */
    --accent-pink: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ایمپورت فونت ایران‌سنس */
@font-face {
    font-family: 'IranSansX';
    src: url('IranSansX-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'IranSansX';
    src: url('IranSansX-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

* {
    font-family: IranSansX, var(--font-main);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: IranSansX, var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* پس‌زمینه متحرک و گرادینت */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #1e1b4b, #000000);
    z-index: -2;
    animation: bgPulse 10s infinite alternate;
}

/* نورپردازی متحرک پس‌زمینه */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: floatOrb 15s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    top: 10%;
    right: 10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    bottom: 20%;
    left: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

/* انیمیشن‌ها */
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -50px); }
}

@keyframes bgPulse {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تایپوگرافی */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* دکمه‌های نئونی و سه بعدی */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-glow), var(--accent-pink));
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-glow:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-neon {
    background: transparent;
    border: 2px solid var(--secondary-glow);
    color: var(--secondary-glow);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.btn-outline-neon:hover {
    background: var(--secondary-glow);
    color: #000;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.8);
}

/* کارت‌های شیشه‌ای (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(139, 92, 246, 0.2);
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-glow);
}

/* فرم‌های مدرن */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* جدول سایبرپانک */
.cyber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.cyber-table th {
    text-align: right;
    padding: 15px;
    color: var(--secondary-glow);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.cyber-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.cyber-table tr td:first-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 12px 12px 0;
}

.cyber-table tr td:last-child {
    border-left: 1px solid var(--glass-border);
    border-radius: 12px 0 0 12px;
}

.cyber-table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* هشدارها */
.alert-box {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-right: 5px solid;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s ease;
}

.click{
    cursor: pointer;
}

.alert-info {
    border-color: var(--secondary-glow);
    color: #cffafe;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.alert-danger {
    border-color: var(--accent-pink);
    color: #fce7f3;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.1);
}

/* گرید */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col { flex: 1; min-width: 300px; }

/* افکت‌های متنی */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 7px #fff,
        0 0 10px #fff,
        0 0 21px #fff,
        0 0 42px var(--primary-glow),
        0 0 82px var(--primary-glow);
}

.color-cyan {
    color: var(--secondary-glow);
}

.color-red {
    color: var(--accent-pink);
}

.color-purple {
    color: var(--primary-glow);
}