@font-face {
    font-family: "Vazir";
    src: url("font/font.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "BrandFont";
    src: url("font/font2.ttf") format("truetype");
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazir", "Tahoma", sans-serif;
}

:root {
    --bg-primary: #c8d4f0;

    /* شیشه — باید کمتر از 0.5 باشه تا blur دیده بشه */
    --glass-bg:        rgba(255, 255, 255, 0.30);
    --glass-bg-hover:  rgba(255, 255, 255, 0.45);
    --glass-bg-deep:   rgba(255, 255, 255, 0.18);
    --glass-inset:     rgba(255, 255, 255, 0.20);

    /* حاشیه‌ها — چندگانه برای عمق */
    --glass-border:     rgba(255, 255, 255, 0.50);
    --glass-border-mid: rgba(255, 255, 255, 0.70);
    --glass-border-hi:  rgba(255, 255, 255, 0.90);
    --glass-top-shine:  rgba(255, 255, 255, 0.88);

    /* سایه‌ها */
    --shadow-sm:   0 2px 8px rgba(100, 80, 180, 0.08), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:   0 8px 24px rgba(100, 80, 180, 0.12), 0 3px 8px rgba(0,0,0,0.07);
    --shadow-lg:   0 20px 48px rgba(100, 80, 180, 0.16), 0 8px 16px rgba(0,0,0,0.08);
    --shadow-xl:   0 32px 64px rgba(100, 80, 180, 0.18), 0 12px 24px rgba(0,0,0,0.09);

    --accent:      #7c3aed;
    --accent-2:    #a855f7;
    --accent-3:    #c084fc;
    --emerald:     #10b981;
    --rose:        #ef4444;

    --glow-accent: rgba(124, 58, 237, 0.22);
    --glow-strong: rgba(124, 58, 237, 0.38);

    --text-1: #1e1b4b;
    --text-2: #4c4a7a;
    --text-3: #7c7aaa;

    --r-sm:   10px;
    --r-md:   16px;
    --r-lg:   22px;
    --r-xl:   30px;
    --r-pill: 9999px;

    --blur:    blur(28px) saturate(200%) brightness(1.05);
    --blur-lg: blur(44px) saturate(220%) brightness(1.05);
    --blur-sm: blur(14px) saturate(180%);

    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t:           all 0.28s var(--ease);
    --t-smooth:    all 0.38s var(--ease-smooth);
}

/* ===== پس‌زمینه — ضروری‌ترین بخش ===== */
body {
    /* گرادیان رنگی قوی = blur بهتر */
    background:
        linear-gradient(135deg, #c5d5f5 0%, #d8c8f8 35%, #f0c8f8 65%, #c8e8f5 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-1);
    position: relative;
    overflow-x: hidden;
}

/* لکه‌های رنگی متحرک برای پس‌زمینه زنده */
body::before {
    content: '';
    position: fixed;
    top: -25%;
    left: -15%;
    width: 65%;
    height: 65%;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: blobDrift1 18s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(168,85,247,0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: blobDrift2 22s ease-in-out infinite alternate;
}

html::after {
    content: '';
    position: fixed;
    top: 35%;
    left: 50%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(16,185,129,0.09) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: blobDrift3 26s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 35px) scale(1.1); }
}
@keyframes blobDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-35px, -45px) scale(1.07); }
}
@keyframes blobDrift3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -35px) scale(0.93); }
}

/* ===== کلاس کمکی شیشه ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow:
        inset 0 1px 0 var(--glass-top-shine),
        inset 1px 0 0 rgba(255,255,255,0.35),
        var(--shadow-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* ===== صفحه لاگین ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border-mid);
    border-radius: var(--r-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1.5px 0 var(--glass-top-shine),
        inset 1.5px 0 0 rgba(255,255,255,0.45),
        inset 0 -1px 0 rgba(255,255,255,0.15),
        var(--shadow-xl);
}

/* هایلایت بالا */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-top-shine) 30%,
        rgba(192,132,252,0.7) 50%,
        var(--glass-top-shine) 70%,
        transparent);
    filter: blur(0.5px);
}

/* نور گوشه بالا-چپ */
.login-card::after {
    content: '';
    position: absolute;
    top: -60px; left: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,132,252,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 22px;
    border: 2px solid var(--glass-border-hi);
    box-shadow:
        0 0 0 5px rgba(124,58,237,0.12),
        0 0 32px var(--glow-strong),
        inset 0 1px 0 rgba(255,255,255,0.3);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 0 5px rgba(124,58,237,0.12), 0 0 32px var(--glow-accent), inset 0 1px 0 rgba(255,255,255,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(124,58,237,0.20), 0 0 48px var(--glow-strong), inset 0 1px 0 rgba(255,255,255,0.4); }
}

.login-title {
    font-family: "BrandFont", "Vazir", sans-serif;
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(124,58,237,0.3));
}

.login-subtitle {
    color: var(--text-2);
    font-size: 14px;
    margin-bottom: 36px;
}

.login-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--glass-inset);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    color: var(--text-1);
    font-size: 14px;
    margin-bottom: 14px;
    transition: var(--t);
    box-shadow:
        inset 0 2px 6px rgba(100,80,180,0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.login-input::placeholder { color: var(--text-3); }

.login-input:focus {
    outline: none;
    border-color: rgba(124,58,237,0.5);
    background: rgba(255,255,255,0.50);
    box-shadow:
        0 0 0 4px var(--glow-accent),
        inset 0 2px 6px rgba(100,80,180,0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid rgba(192,132,252,0.4);
    border-radius: var(--r-pill);
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        0 8px 28px var(--glow-accent);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-btn:hover::before { left: 150%; }
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 14px 40px var(--glow-strong);
}

/* ===== هدر ===== */
.admin-header {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-mid);
    border-radius: var(--r-xl);
    padding: 14px 28px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1.5px 0 var(--glass-top-shine),
        inset 1px 0 0 rgba(255,255,255,0.4),
        var(--shadow-md);
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0; left: 6%; right: 6%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-top-shine) 35%,
        var(--glass-top-shine) 65%,
        transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-inset);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    padding: 8px 22px 8px 10px;
    border-radius: var(--r-pill);
    border: 1px solid var(--glass-border);
    transition: var(--t-smooth);
    box-shadow:
        inset 0 1px 0 var(--glass-top-shine),
        var(--shadow-sm);
}

.brand:hover {
    transform: translateY(-2px);
    border-color: var(--glass-border-mid);
    background: var(--glass-bg-hover);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-md);
}

.brand-logo {
    width: 42px; height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border-hi);
    box-shadow: 0 0 14px var(--glow-accent);
}

.brand-name {
    font-family: "BrandFont", "Vazir", sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-welcome {
    color: var(--text-2);
    font-size: 13px;
    padding: 0 12px;
}
.admin-welcome strong { color: var(--text-1); }

.icon-btn {
    background: var(--glass-inset);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t-smooth);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-sm);
    color: var(--text-2);
}

.icon-btn:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.06) translateY(-1px);
    border-color: var(--glass-border-mid);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-md);
}

.logout-btn {
    background: var(--glass-inset);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    padding: 0 20px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-1);
    font-size: 13px;
    transition: var(--t);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-sm);
}

.logout-btn:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    border-color: var(--glass-border-mid);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-md);
}

/* ===== کارت‌های آمار ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-mid);
    border-radius: var(--r-lg);
    padding: 22px 24px;
    transition: var(--t-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow:
        inset 0 1.5px 0 var(--glass-top-shine),
        inset 1px 0 0 rgba(255,255,255,0.35),
        var(--shadow-sm);
}

/* هایلایت بالای کارت */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-top-shine) 40%, var(--glass-top-shine) 60%, transparent);
}

/* نور گوشه */
.stat-card::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 110px; height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hi);
    background: var(--glass-bg-hover);
    box-shadow:
        inset 0 1.5px 0 var(--glass-top-shine),
        inset 1px 0 0 rgba(255,255,255,0.45),
        var(--shadow-lg);
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-1);
    margin-top: 14px;
    letter-spacing: -1px;
    font-family: "BrandFont", sans-serif;
}

.stat-label {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== تب‌ها ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--glass-bg-deep);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    padding: 10px 22px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-sm);
}

.tab-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-1);
    border-color: var(--glass-border-mid);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-md);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border-color: transparent;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        0 6px 20px var(--glow-accent);
}

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

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

/* ===== کارت محتوا ===== */
.content-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-mid);
    border-radius: var(--r-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1.5px 0 var(--glass-top-shine),
        inset 1px 0 0 rgba(255,255,255,0.35),
        var(--shadow-md);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-top-shine) 25%,
        rgba(192,132,252,0.5) 50%,
        var(--glass-top-shine) 75%,
        transparent);
}

.content-card::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,132,252,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "BrandFont", sans-serif;
}

.add-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid rgba(192,132,252,0.38);
    border-radius: var(--r-pill);
    padding: 12px 28px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--t-smooth);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.26),
        0 6px 22px var(--glow-accent);
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.add-btn:hover::before { left: 150%; }
.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 12px 36px var(--glow-strong);
}

/* ===== جدول ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--glass-border-mid);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 14px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: var(--text-2);
    font-size: 13px;
}

th {
    color: var(--text-3);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.22);
    backdrop-filter: var(--blur-sm);
}

tr:last-child td { border-bottom: none; }
tr:hover td {
    background: rgba(255,255,255,0.35);
    color: var(--text-1);
}

/* ===== بج ===== */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.badge-active {
    background: rgba(16,185,129,0.15);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.35);
}

.badge-inactive {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
    border: 1px solid rgba(239,68,68,0.3);
}

/* ===== دکمه‌های عملیاتی ===== */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.edit-btn, .delete-btn {
    background: rgba(255,255,255,0.30);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    padding: 7px 14px;
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--t);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-sm);
}

.edit-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-1);
    border-color: var(--glass-border-mid);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 var(--glass-top-shine), var(--shadow-md);
}

.delete-btn:hover {
    background: rgba(239,68,68,0.15);
    color: #dc2626;
    border-color: rgba(239,68,68,0.35);
    transform: translateY(-2px);
}

/* ===== مودال ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(100,80,180,0.25);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: rgba(255,255,255,0.60);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border-hi);
    border-radius: var(--r-xl);
    width: 580px;
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    overflow-x: hidden;
    box-shadow:
        inset 0 2px 0 var(--glass-top-shine),
        inset 1.5px 0 0 rgba(255,255,255,0.5),
        var(--shadow-xl);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1.5px;
    background: linear-gradient(90deg,
        transparent,
        var(--glass-top-shine) 30%,
        rgba(192,132,252,0.6) 50%,
        var(--glass-top-shine) 70%,
        transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.45);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    font-family: "BrandFont", sans-serif;
}

.close-modal {
    background: rgba(255,255,255,0.30);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 38px; height: 38px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-2);
    transition: var(--t-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 var(--glass-top-shine);
}

.close-modal:hover {
    background: rgba(239,68,68,0.18);
    color: #dc2626;
    border-color: rgba(239,68,68,0.35);
    transform: scale(1.1);
}

/* ===== فرم ===== */
.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    color: var(--text-1);
    font-size: 13px;
    transition: var(--t);
    box-shadow:
        inset 0 2px 6px rgba(100,80,180,0.06),
        inset 0 1px 0 rgba(255,255,255,0.55);
}

.form-group input::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(124,58,237,0.45);
    background: rgba(255,255,255,0.60);
    box-shadow:
        0 0 0 4px var(--glow-accent),
        inset 0 2px 6px rgba(100,80,180,0.04),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: 1px solid rgba(192,132,252,0.38);
    border-radius: var(--r-pill);
    padding: 13px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--t-smooth);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 6px 22px var(--glow-accent);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 12px 36px var(--glow-strong);
}

.btn-cancel {
    flex: 1;
    background: rgba(255,255,255,0.30);
    backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-pill);
    padding: 13px;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--t);
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-cancel:hover {
    background: var(--glass-bg-hover);
    color: var(--text-1);
    transform: translateY(-2px);
}

/* ===== هشدارها ===== */
.alert {
    padding: 16px 22px;
    border-radius: var(--r-md);
    margin-bottom: 20px;
    font-size: 13px;
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

.alert-success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.30);
    color: #059669;
}

.alert-error {
    background: rgba(239,68,68,0.10);
    border: 1px solid rgba(239,68,68,0.28);
    color: #dc2626;
}

code {
    font-family: monospace;
    font-size: 11px;
    background: rgba(255,255,255,0.40);
    backdrop-filter: var(--blur-sm);
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--text-2);
}

/* ===== رسپانسیو ===== */
@media (max-width: 768px) {
    .container { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-value { font-size: 26px; }
    .login-card { padding: 36px 28px; }
    th, td { padding: 10px 8px; font-size: 12px; }
    .modal-content { padding: 24px; }
    .admin-header { flex-direction: column; text-align: center; }
    .brand { align-self: center; }
    .admin-info { justify-content: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .section-header { flex-direction: column; align-items: stretch; }
    .add-btn { justify-content: center; width: 100%; }
    .action-buttons { flex-direction: column; align-items: center; }
    .form-actions { flex-direction: column; }
    .login-title { font-size: 32px; }
    .modal-content { width: 95%; padding: 20px; }
}ظ