:root {
    --saman-blue: #004B93;
    --saman-blue-dark: #003366;
    --saman-blue-light: #F2F7FB;
    --saman-red: #E31B23;
    --saman-red-hover: #C5131A;
    --saman-cyan: #00A3C4;
    --saman-gold: #F59E0B;
    --saman-gold-light: #FEF3C7;

    /* Neutral & Surface Colors */
    --text-primary: #1A2B3C;
    --text-secondary: #5A6E82;
    --text-muted: #64748B;
    /* darkened from #8E9FAA (2.7:1) to meet WCAG AA 4.5:1 on white */
    --border-color: #E2E8F0;
    --border-subtle: #EDF2F7;
    --bg-page: #F7FAFC;
    --bg-surface: #FFFFFF;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-info: #0284C7;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 75, 147, 0.05);
    --shadow-card: 0 4px 16px rgba(0, 75, 147, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 75, 147, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 75, 147, 0.2);
    --shadow-red-glow: 0 0 20px rgba(227, 27, 35, 0.25);
}

/* ===== IRANSans — یک خانواده، وزنهای مختلف ===== */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 100;
    src: url("../webfonts/IRANSansWeb_UltraLight.eot?#iefix") format("embedded-opentype"),
         url("../webfonts/IRANSansWeb_UltraLight.woff2") format("woff2"),
         url("../webfonts/IRANSansWeb_UltraLight.woff") format("woff"),
         url("../webfonts/IRANSansWeb_UltraLight.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    src: url("../webfonts/IRANSansWeb_Light.eot?#iefix") format("embedded-opentype"),
         url("../webfonts/IRANSansWeb_Light.woff2") format("woff2"),
         url("../webfonts/IRANSansWeb_Light.woff") format("woff"),
         url("../webfonts/IRANSansWeb_Light.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    src: url("../webfonts/IRANSansWeb.eot?#iefix") format("embedded-opentype"),
         url("../webfonts/IRANSansWeb.woff2") format("woff2"),
         url("../webfonts/IRANSansWeb.woff") format("woff"),
         url("../webfonts/IRANSansWeb.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    src: url("../webfonts/IRANSansWeb_Medium.eot?#iefix") format("embedded-opentype"),
         url("../webfonts/IRANSansWeb_Medium.woff2") format("woff2"),
         url("../webfonts/IRANSansWeb_Medium.woff") format("woff"),
         url("../webfonts/IRANSansWeb_Medium.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    src: url("../webfonts/IRANSansWeb_Bold.eot?#iefix") format("embedded-opentype"),
         url("../webfonts/IRANSansWeb_Bold.woff2") format("woff2"),
         url("../webfonts/IRANSansWeb_Bold.woff") format("woff"),
         url("../webfonts/IRANSansWeb_Bold.ttf") format("truetype");
    font-display: swap;
}


* {
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', Vazirmatn, Tahoma, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow-x: hidden;
}


/* Keyboard Focus Visibility (WCAG 2.4.7) — mouse clicks stay clean, Tab navigation gets a clear ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2.5px solid var(--saman-blue);
    outline-offset: 2px;
    border-radius: 4px;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: 1.55 !important;
    letter-spacing: -0.02em; /* برای خوانایی بهتر در وزن‌های بولد */
}

h1, .text-3xl, .text-4xl, .text-5xl {
    line-height: 1.5 !important;
}


/* Custom Buttons */
.btn-primary {
    background: var(--saman-blue);
    color: #fff !important;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--saman-blue-dark);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-accent {
    background: var(--saman-red);
    color: #fff !important;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-accent:hover {
    background: var(--saman-red-hover);
    box-shadow: var(--shadow-red-glow);
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-outline {
    background: #fff;
    color: var(--saman-blue) !important;
    border: 1.5px solid var(--saman-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--saman-blue-light);
    border-color: var(--saman-blue-dark);
    color: var(--saman-blue-dark) !important;
}

.btn-gold {
    background: #D97706;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-gold:hover {
    background: #B45309;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Custom Cards */
.card-saman {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.card-saman:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 75, 147, 0.3);
    transform: translateY(-2px);
}

/* VIP Loyalty Club Card (Clean Solid) */
.vip-club-card {
    background: #003366;
    border: 1px solid #004B93;
    border-radius: var(--radius-2xl);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.25);
}

/* Status Badges */
.status-badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge-info {
    background: rgba(0, 163, 196, 0.1);
    color: #007791;
    border: 1px solid rgba(0, 163, 196, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Saman Points Badge */
.points-pill {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #92400E;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Clean Solid Backgrounds (Replaces Gradients) */
.saman-hero-gradient {
    background: #F4F7FA;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.saman-hero-pattern {
    background-color: #003366;
}

/* Header Dropdown Menu System */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-link-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-link-dropdown:hover,
.nav-item-dropdown:hover>.nav-link-dropdown {
    color: var(--saman-blue);
    background: #F1F5F9;
}

.nav-link-dropdown.active {
    color: var(--saman-blue);
    font-weight: 700;
}

.dropdown-chevron {
    font-size: 12px;
    color: #94A3B8;
    transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--saman-blue);
}

/* Dropdown Menu Container */
.dropdown-menu-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.15);
    padding: 12px;
    min-width: 320px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nav-item-dropdown:hover .dropdown-menu-box,
.nav-item-dropdown:focus-within .dropdown-menu-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Dropdown for Products */
.dropdown-menu-mega {
    min-width: 580px;
    padding: 16px;
}

.dropdown-header-title {
    font-size: 12px;
    font-weight: 800;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: #1E293B;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-item-link:hover {
    background: #F8FAFC;
    color: var(--saman-blue);
}

.dropdown-item-link:hover .dropdown-item-icon {
    background: var(--saman-blue);
    color: #FFFFFF;
}

.dropdown-item-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: #F1F5F9;
    color: var(--saman-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    shrink-0: 0;
    transition: all 0.2s ease;
}

.dropdown-item-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-item-desc {
    font-size: 12px;
    color: #64748B;
    margin-top: 2px;
    line-height: 1.4;
}

.dropdown-footer-bar {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Lucky Wheel Styles */
.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .wheel-container {
        width: 380px;
        height: 380px;
    }
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 8px #003366, 0 0 0 13px #E31B23, 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 4.5s cubic-bezier(0.15, 0.9, 0.25, 1);
}

.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 42px;
    background: #E31B23;
    clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
    z-index: 20;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #004B93;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 0 0 5px #fff, 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.wheel-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: #E31B23;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
}

.saman-toast {
    background: #FFFFFF;
    border-right: 4px solid var(--saman-blue);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: toastSlideIn 0.3s ease forwards;
}

.saman-toast.toast-success {
    border-right-color: var(--color-success);
}

.saman-toast.toast-danger {
    border-right-color: var(--color-danger);
}

.saman-toast.toast-warning {
    border-right-color: var(--color-warning);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Circles */
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.step-circle-active {
    background: var(--saman-blue);
    color: #fff;
    box-shadow: 0 0 0 4px var(--saman-blue-light);
}

.step-circle-done {
    background: var(--color-success);
    color: #fff;
}

.step-circle-idle {
    background: #E2E8F0;
    color: #64748B;
}

/* Quick Page Switcher Top Bar */
.page-switcher-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #002347;
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--saman-red);
}

.page-switcher-pill {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.page-switcher-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.page-switcher-pill.active {
    background: var(--saman-red);
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(227, 27, 35, 0.4);
}

/* Form Styles */
.form-input-saman {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    outline: none;
}

.form-input-saman:focus {
    border-color: var(--saman-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.12);
}

/* Specific Section Styles (Solid Corporate) */
.referral-banner {
    background: #003366;
    border-bottom: 2px solid var(--saman-red);
    color: #ffffff;
}

.partner-spotlight {
    background: #002B54;
    border: 1px solid #004B93;
    color: #ffffff;
    border-radius: var(--radius-2xl);
    position: relative;
    box-shadow: var(--shadow-card);
}

.values-section {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-banner {
    background: #003366;
    border: 1px solid #004B93;
    color: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}

/* News & Article Page Specific Styles */
.newsletter-strip {
    background: #003366;
    border: 1px solid #004B93;
    color: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
}

.featured-post {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    overflow: hidden;
}

.featured-post:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 75, 147, 0.3);
}

.news-filter-pill {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #EDF2F7;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.news-filter-pill:hover {
    background: var(--saman-blue-light);
    color: var(--saman-blue);
}

.news-filter-pill.active {
    background: var(--saman-blue);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 75, 147, 0.3);
}

/* Products & Product Detail Specific Classes */
.btn-urgent {
    background: var(--saman-red);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-urgent:hover {
    background: var(--saman-red-hover);
    transform: translateY(-1px);
    color: #fff !important;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.discount-tag {
    background: var(--saman-red);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--saman-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-card {
    background: #002B54;
    border: 1px solid #004B93;
    color: #ffffff;
    border-radius: var(--radius-2xl);
    position: relative;
    box-shadow: var(--shadow-card);
}

.partner-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #F59E0B;
    color: #FEF3C7;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.helper-card {
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: var(--radius-2xl);
}

.pricing-box {
    background: #ffffff;
    border: 2px solid var(--saman-blue);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 30px rgba(0, 75, 147, 0.12);
}

.sidebar-sticky {
    position: sticky;
    top: 96px;
}

.filter-tabs li {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #EDF2F7;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    list-style: none;
}

.filter-tabs li:hover {
    background: var(--saman-blue-light);
    color: var(--saman-blue);
}

.filter-tabs li.active {
    background: var(--saman-blue);
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 75, 147, 0.3);
}

.product-tabs button {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
}

.product-tabs button:hover {
    color: var(--saman-blue);
}

.product-tabs button.active {
    color: var(--saman-blue);
    border-bottom-color: var(--saman-blue);
    background: rgba(0, 75, 147, 0.04);
}

/* Modal Backdrop */
.saman-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 35, 71, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.saman-modal-backdrop.modal-open {
    display: flex;
}

.saman-modal-box {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 580px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
/* Base table */
table {
    width: 100%;
    direction: rtl;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'IRANSans', Vazirmatn, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    margin: 1.5em 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 93, 222, 0.08);
}

/* Ensure wrapper doesn't break rounded corners */
.table-wrapper {
    border-radius: 14px;
    overflow: hidden;
}

/* Header cells */
table thead th {
    background: linear-gradient(135deg, #0B5DDE 0%, #084DA6 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 18px;
    text-align: right;
    border: 0;
    white-space: nowrap;
    background-clip: padding-box;
}

/* Body cells */
table td {
    padding: 13px 18px;
    text-align: right;
    border-bottom: 1px solid #E5E7EB;
    color: #292524;
    vertical-align: middle;
    background: #fff;
}

/* Zebra rows */
table tbody tr:nth-child(even) td {
    background: #F6F9FF;
}

/* Hover */
table tbody tr:hover td {
    background: #EAF2FF;
    transition: background-color 0.2s ease;
}

/* Remove last border */
table tbody tr:last-child td {
    border-bottom: none;
}

/* Rounded corners for header */
table thead tr:first-child th:first-child {
    border-top-right-radius: 14px;
}

table thead tr:first-child th:last-child {
    border-top-left-radius: 14px;
}

/* Optional: if table has footer or total row */
table tr.total-row td {
    background: linear-gradient(90deg, #EAF1FB, #DFEBFA);
    font-weight: 700;
    color: #0B5DDE;
    border-top: 2px solid #0B5DDE;
    border-bottom: none;
}

/* Mobile scroll */
@media (max-width: 767px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 700px;
        font-size: 12.5px;
    }
}
