* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.login-container {
    width: 380px;
    max-width: 92%;
    padding: 40px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); /* برای سافاری */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    text-align: center;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 2.1rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 15px;
    transition: background 0.3s;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.25);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 114, 255, 0.55);
}

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

.footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.footer a {
    color: #00c6ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* پیام خطا */
.alert {
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.alert.error {
    background: rgba(255, 71, 87, 0.25);
    color: #ffcccc;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

/* انیمیشن shake */
.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Verify OTP */
.subtitle {
    text-align: center;
    margin: 8px 0 28px;
    opacity: 0.85;
    font-size: 0.96rem;
}

.mobile-number {
    font-weight: 600;
    color: #00c6ff;
    direction: ltr;
    display: inline-block;
}

.otp-container {
    direction: ltr;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 24px 0 20px;
}

.otp-input {
    width: 52px;
    height: 62px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    outline: none;
    transition: all 0.2s;
    direction: ltr !important;   /* مهم */
    text-align: center !important;

}

.otp-input:focus {
    background: rgba(255,255,255,0.28);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.4);
}

.timer {
    text-align: center;
    font-size: 0.95rem;
    margin: 16px 0 24px;
    opacity: 0.9;
}

.resend {
    text-align: center;
    font-size: 0.92rem;
    margin-top: 12px;
}

.resend a {
    color: #00c6ff;
    text-decoration: none;
}

.resend a:hover {
    text-decoration: underline;
}


    /* پیام موفقیت تمام‌صفحه */
    .success-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        backdrop-filter: blur(8px);
    }
    .success-card {
        background: rgba(40, 167, 69, 0.9);
        border-radius: 16px;
        padding: 40px 32px;
        text-align: center;
        color: white;
        max-width: 420px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes popIn {
        0%   { transform: scale(0.6); opacity: 0; }
        100% { transform: scale(1);   opacity: 1; }
    }
    .success-card h2 {
        margin: 0 0 16px;
        font-size: 2.1rem;
    }
    .success-card p {
        margin: 0 0 24px;
        opacity: 0.9;
        font-size: 1.1rem;
    }


.resend {
    text-align: center;
    font-size: 0.92rem;
    margin-top: 16px;
}

.resend-btn {
    background: none;
    border: none;
    color: #00c6ff;
    font-size: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.resend-btn:hover {
    color: #0099cc;
}

.resend-success {
    color: #4ade80;
    font-weight: 500;
}

/* Dashboard */
.upload-form { max-width: 480px; margin: 40px auto; }
        .radio-group { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
        .radio-group label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
        .success-box, .error-box {
            padding: 16px;
            border-radius: 12px;
            margin: 20px 0;
            text-align: center;
        }
        .success-box { background: rgba(34,197,94,0.2); color: #4ade80; }
        .success-box::before {
    content: "✅ ";
    font-size: 1.5em;
}
        .error-box   { background: rgba(239,68,68,0.2); color: #f87171; }

        .dashboard-header {
            background: rgba(255,255,255,0.08);
            backdrop-filter: blur(10px);
            padding: 16px 24px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .nav-menu {
            display: flex;
            gap: 32px;
            justify-content: center;
        }
        .nav-menu a {
            color: #ddd;
            text-decoration: none;
            font-weight: 500;
            padding: 8px 0;
            position: relative;
        }
        .nav-menu a:hover,
        .nav-menu a.active {
            color: #00c6ff;
        }
        .nav-menu a.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #00c6ff;
            border-radius: 3px;
        }

        /* موبایل */
        @media (max-width: 768px) {
            .nav-menu {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100%;
                right: 0;
                left: 0;
                background: rgba(15,32,39,0.95);
                padding: 20px;
                box-shadow: 0 10px 20px rgba(0,0,0,0.4);
            }
            .nav-menu.active {
                display: flex;
            }
            .hamburger {
                display: block;
                font-size: 1.8rem;
                cursor: pointer;
                color: white;
            }
        }
        .hamburger { display: none; }

        .dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-content {
    display: flex;
    justify-content: center;
}


/* ────────────────────────────────────────────────
   پایه و کلیات
───────────────────────────────────────────────── */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
}

/* صفحه داشبورد → بدون وسط‌چین عمودی */
body.dashboard-page {
    display: block;
}

/* صفحات معمولی (مثل لاگین) → وسط صفحه */
body:not(.dashboard-page) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* ────────────────────────────────────────────────
   هدر داشبورد
───────────────────────────────────────────────── */

.dashboard-header {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #eee;
    padding: 6px 10px;
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    color: #ddd;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 4px;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #00c6ff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 4px;
    width: calc(100% - 8px);
    height: 2.5px;
    background: #00c6ff;
    border-radius: 3px;
}

.nav-menu a.logout {
    color: #ff6b6b;
}

.nav-menu a.logout:hover {
    color: #ff4757;
}

/* ────────────────────────────────────────────────
   محتوا
───────────────────────────────────────────────── */

.dashboard-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 520px;
    padding: 40px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

/* بقیه استایل‌های قبلی شما (input-group, login-btn, success-box و ...) بدون تغییر باقی می‌مانند */

/* ────────────────────────────────────────────────
   موبایل
───────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(15, 32, 39, 0.96);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        backdrop-filter: blur(6px);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 14px 24px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Files */
        .files-container {
            max-width: 1100px;
            margin: 40px auto;
            padding: 0 20px;
        }

        .files-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: rgba(255,255,255,0.06);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        th, td {
            padding: 14px 16px;
            text-align: right;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

        th {
            background: rgba(255,255,255,0.1);
            font-weight: 600;
        }

        tr:hover {
            background: rgba(255,255,255,0.04);
        }

        .delete-btn {
            background: #ff4d4d;
            border: none;
            color: white;
            padding: 8px 14px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.2s;
        }

        .delete-btn:hover {
            background: #ff3333;
        }

        .message {
            padding: 14px;
            border-radius: 10px;
            margin-bottom: 24px;
            text-align: center;
        }

        .success-msg { background: rgba(34,197,94,0.2); color: #4ade80; }
        .error-msg   { background: rgba(239,68,68,0.2); color: #f87171; }

        @media (max-width: 768px) {
            table, thead, tbody, th, td, tr {
                display: block;
            }

            thead tr {
                display: none;
            }

            tr {
                margin-bottom: 20px;
                border: 1px solid rgba(255,255,255,0.1);
                border-radius: 10px;
            }

            td {
                border: none;
                position: relative;
                padding-left: 50%;
                text-align: right;
            }

            td::before {
                content: attr(data-label);
                position: absolute;
                left: 16px;
                width: 45%;
                font-weight: 600;
            }
        }