@font-face {
  font-family: 'Parastoo';
  src: url('/public_html/shared/assets/fonts/Parastoo.eot');
  src: url('/public_html/shared/assets/fonts/Parastoo.eot?#iefix') format('embedded-opentype'),
       url('/public_html/shared/assets/fonts/Parastoo.woff2') format('woff2'),
       url('/public_html/shared/assets/fonts/Parastoo.woff') format('woff'),
       url('/public_html/shared/assets/fonts/Parastoo.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Parastoo';
  src: url('/public_html/shared/assets/fonts/Parastoo-Bold.eot');
  src: url('/public_html/shared/assets/fonts/Parastoo-Bold.eot?#iefix') format('embedded-opentype'),
       url('/public_html/shared/assets/fonts/Parastoo-Bold.woff2') format('woff2'),
       url('/public_html/shared/assets/fonts/Parastoo-Bold.woff') format('woff'),
       url('/public_html/shared/assets/fonts/Parastoo-Bold.ttf') format('truetype');
  font-weight: bold;
  font-display: swap;
}

body, input, textarea, button, a, p, h1, h2, h3, h4, h5, h6, span, div {
    font-family: 'Parastoo', Tahoma, sans-serif !important;
}

:root {
    --primary-color: #0d9488; /* سبزآبی پررنگ‌تر و حرفه‌ای‌تر */
    --primary-dark: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.15);
    --text-color: #0f172a;
    --bg-color: #f0fdfa;
    --white: #ffffff; /* اصلاح شده برای خوانایی متن دکمه‌ها */
    --error: #ef4444;
    
    /* متغیرهای شفق قطبی غلیظ‌تر */
    --aurora-teal: rgba(13, 148, 136, 0.75);
    --aurora-emerald: rgba(16, 185, 129, 0.65);
    --aurora-cyan: rgba(6, 182, 212, 0.7);
    
    /* متغیرهای شیشه‌ای (Glass) */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(13, 148, 136, 0.1);
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Parastoo', Tahoma, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* بک‌گراند جهانی ثابت */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 50%, #d1fae5 100%); /* گرادیان پایه زنده‌تر */
}

/* لکه‌های نوری شفق قطبی */
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px); /* بلور بیشتر برای ترکیب نرم‌تر */
    opacity: 0.9;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.aurora-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: var(--aurora-teal);
    animation-delay: 0s;
}
.aurora-2 {
    bottom: -20%;
    right: -10%;
    width: 65vw;
    height: 65vw;
    background: var(--aurora-cyan);
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}
.aurora-3 {
    top: 30%;
    left: 40%;
    width: 45vw;
    height: 45vw;
    background: var(--aurora-emerald);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, 12%) scale(1.15); }
    100% { transform: translate(-6%, -6%) scale(0.9); }
}

/* افکت بارش برف نرم چندلایه */
.snow {
    position: fixed; /* تغییر به Fixed برای پوشش کل صفحه به صورت ثابت */
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 200vh;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(circle at 10% 20%, white 1px, transparent 1.5px),
        radial-gradient(circle at 30% 80%, white 1.5px, transparent 2px),
        radial-gradient(circle at 50% 50%, white 1px, transparent 1.5px),
        radial-gradient(circle at 70% 30%, rgba(255,255,255,0.8) 2px, transparent 2.5px),
        radial-gradient(circle at 90% 70%, white 1px, transparent 1.5px),
        radial-gradient(circle at 20% 40%, rgba(255,255,255,0.6) 2px, transparent 3px),
        radial-gradient(circle at 80% 10%, white 1.5px, transparent 2px);
    background-size: 100vw 100vh;
    animation: snowfall linear infinite;
}
.snow-layer-1 { animation-duration: 25s; opacity: 0.9; }
.snow-layer-2 { background-size: 80vw 80vh; animation-duration: 35s; opacity: 0.6; filter: blur(1px); }
.snow-layer-3 { background-size: 60vw 60vh; animation-duration: 45s; opacity: 0.4; filter: blur(2px); }

@keyframes snowfall {
    0% { transform: translateY(0); }
    100% { transform: translateY(50vh); } /* حرکت نرم‌تر و بهینه‌تر */
}

/* استایل شیشه‌ای و نامتقارن کارت‌ها */
.container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); /* بلور شیشه‌ای قوی‌تر */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    border-radius: 40px 12px 40px 12px; /* نامتقارن استاندارد */
    box-shadow: var(--glass-shadow), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    margin: 20px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

h2, h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: bold;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px 6px 14px 6px; /* گوشه گرد ملایم و کمی نامتقارن */
    font-family: 'Parastoo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    text-align: right; /* راست‌چین برای زبان فارسی منطقی‌تر است */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
    background: rgba(255, 255, 255, 0.9);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 14px 6px 14px 6px;
    font-family: 'Parastoo', sans-serif;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), #0b5e58);
}

.btn-secondary {
    background: rgba(255,255,255,0.5);
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(13, 148, 136, 0.2);
    position: relative;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-family: 'Parastoo', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; /* برای همپوشانی خط پایین */
}
.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.form-content {
    display: none;
}
.form-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
}
.message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}
.message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ==================
   داشبورد
   ================== */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(13, 148, 136, 0.2);
}

.user-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 40px 12px 40px 12px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.balance-display {
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
    margin-top: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.menu-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 20px 15px;
    border-radius: 20px 8px 20px 8px; /* کمی ملایم‌تر برای آیتم‌های کوچک */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.menu-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
    color: var(--primary-dark);
}

.footer-menu {
    margin-top: 30px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(13, 148, 136, 0.2);
    padding-top: 20px;
}

.footer-link {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
}
.footer-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ─── نوع آدرس (select) ─── */
select.custom-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(15, 118, 110, 0.3);
    border-radius: 12px 6px;
    font-family: 'Parastoo', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

select.custom-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* ─── دکمه ثبت آدرس ─── */
.custom-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: 'Parastoo', 'Tahoma', sans-serif;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    border-radius: 14px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.25);
    margin-top: 20px;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.35);
}

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

/* ─── توضیح امنیتی ─── */
.security-note {
    background: rgba(15, 118, 110, 0.05);
    border: 1px dashed rgba(15, 118, 110, 0.3);
    border-radius: 12px 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.8;
}

/* ─── یکدست‌سازی همه inputها ─── */
.custom-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(15, 118, 110, 0.3);
    border-radius: 12px 6px;
    font-family: 'Parastoo', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    color: #374151;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.custom-input:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.custom-input::placeholder {
    color: #9ca3af;
}