/*---------------- فونت وزیر ----------------*/
@font-face {
    font-family: 'Vazir';
    src: url('Vazir-Medium.woff2') format('woff2'),
        url('Vazir-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif;
    background: linear-gradient(145deg, #0d0d2b 0%, #1a1a3e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f0f0ff;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    margin: 20px;
}

/* منوی اصلی */
.main-menu {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* سربرگ منو (خوش آمدگویی) */
.menu-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h1 {
    font-size: 2rem;
    font-weight: 500;
    color: #f5e9ff;
}

.menu-header h1 span {
    color: #b388ff;
    font-weight: 700;
}

.welcome-text {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #cfc9e6;
}

.welcome-text .username-highlight {
    color: #ffd54f;
    font-weight: 700;
    background: rgba(255, 213, 79, 0.15);
    padding: 2px 12px;
    border-radius: 30px;
}

/* آیتم‌های منو */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 30px 0;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 28px;
    border-radius: 60px;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 1.3rem;
    color: #e8e0f0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(179, 136, 255, 0.4);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(179, 136, 255, 0.15);
}

.menu-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.menu-btn .badge {
    background: #7c4dff;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: white;
    letter-spacing: 0.5px;
}

.menu-btn .soon-badge {
    background: #ff6d00;
    font-size: 0.7rem;
    padding: 4px 12px;
}

/* فوتر */
footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer p {
    font-size: 0.95rem;
    color: #a6a1c0;
}

footer .brand {
    color: #b388ff;
    font-weight: 700;
}

footer .made-by span {
    color: #82b1ff;
}

/* مودال عمومی */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1c1c3a;
    border-radius: 40px;
    padding: 35;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
    color: #e8defa;
}

.modal-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: #f0f0ff;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.2s;
    margin: 10px 0 15px;
}

.modal-input:focus {
    border-color: #b388ff;
    box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.2);
}

.modal-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.modal-btn {
    background: #7c4dff;
    border: none;
    padding: 12px 35px;
    border-radius: 60px;
    font-family: 'Vazir', Tahoma, sans-serif;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    min-width: 100px;
}

.modal-btn:hover {
    background: #651fff;
    transform: scale(1.03);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-btn.danger {
    background: #d32f2f;
}

.modal-btn.danger:hover {
    background: #b71c1c;
}

.error-msg {
    color: #ff8a80;
    font-size: 0.9rem;
    text-align: center;
    margin: 5px 0;
    min-height: 24px;
}