@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --glass-bg: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #9d50bb;
    --accent-glow: #6e48aa;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --success: #00f2fe;
    --danger: #ff4b2b;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

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

button, input, select, textarea {
    font-family: inherit;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #0f0c29; /* Fallback */
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Background Mesh Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(157, 80, 187, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 242, 254, 0.1), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.9);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to left, #00f2fe, #9d50bb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(157, 80, 187, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 80, 187, 0.6);
}

.glow-btn:active {
    transform: translateY(0);
}

.glow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Navbar */
.top-navbar {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.nav-btn.active {
    background: var(--accent);
    color: white;
    font-weight: 700;
}

/* Form Elements */
.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(157, 80, 187, 0.2);
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.version-tag {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}
