: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;
    width: 100%;
    max-width: 100%;
    min-width: 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);
    }
}

/* =========================
   Tables
========================= */

table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    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;
    box-shadow: 0 4px 16px rgba(11, 93, 222, 0.08);
}

.table-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

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;
}

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

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

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

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

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;
}

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

/* Article tables */
.article-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
}

.article-content table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-collapse: collapse;
}

.article-content th,
.article-content td {
    overflow-wrap: anywhere;
}

/* Mobile tables */
@media (max-width: 767px) {
    .article-content .table-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        table-layout: auto;
        font-size: 12px;
    }

    .article-content th,
    .article-content td {
        padding: 8px 6px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    /* فقط برای جدول‌هایی که واقعاً عریض هستند */
    .article-content table.table-wide {
        width: 600px;
        min-width: 600px;
        max-width: none;
    }

    .article-content .table-wrapper table.table-wide {
        width: 600px;
        min-width: 600px;
        max-width: none;
    }
}

/* اصلاح نمایش صفحات در موبایل */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
iframe {
    max-width: 100%;
}

main,
section,
article,
aside,
header,
footer {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 767px) {
    .max-w-7xl {
        width: 100%;
        max-width: 100%;
    }

    .grid {
        min-width: 0;
    }

    .card-saman {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    article,
    aside {
        grid-column: 1 / -1;
    }

    .article-sidebar {
        width: 100%;
    }
}

/* ===== Invitation Panel (کارت اصلی دعوت‌نامه) ===== */
.invite-panel {
    position: relative;
    z-index: 10;
    padding: 28px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #003366 0%, #002244 55%, #0a192f 100%);
    color: #fff;
    text-align: right;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* نوار برند بالای کارت */
.invite-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to left, var(--saman-red) 0 18%, var(--saman-blue) 18% 100%);
}

.invite-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.invite-panel__seal {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--saman-gold);
    font-size: 20px;
    flex-shrink: 0;
}

.invite-panel__label {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.invite-panel__sub {
    font-size: 11px;
    color: #BFDBFE;
    font-family: ui-monospace, monospace;
    direction: ltr;
    display: block;
    text-align: right;
}

.invite-panel__greeting {
    font-size: 12px;
    color: #BFDBFE;
    margin: 0 0 6px;
}

.invite-panel__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.6;
    color: #fff;
}

.invite-panel__title span {
    display: block;
    color: #FCD34D;
}

/* هم‌برندسازی */
.invite-panel__cobrand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-size: 13px;
}

.invite-panel__cobrand strong {
    font-weight: 900;
    color: #fff;
}

.invite-panel__cobrand em {
    font-style: normal;
    font-weight: 700;
    color: #BFDBFE;
}

.invite-panel__plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--saman-red);
    color: #fff;
    font-size: 11px;
}

/* لیست ارزش‌ها */
.invite-panel__values {
    list-style: none;
    margin: 0 0 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.invite-panel__values li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: #E2E8F0;
}

.invite-panel__values li i {
    margin-top: 5px;
    font-size: 11px;
    color: #6EE7B7;
}

.invite-panel__values strong {
    color: #fff;
    font-weight: 800;
}

/* فوتر */
.invite-panel__cta {
    justify-content: center;
    gap: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--saman-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.invite-panel__cta:hover {
    background: var(--saman-red-hover);
    box-shadow: var(--shadow-red-glow);
}

.invite-panel__cta i {
    transition: transform 0.2s ease;
}

.invite-panel__cta:hover i {
    transform: translateX(-3px);
}

.invite-panel__tagline {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #BFDBFE;
}

@media (prefers-reduced-motion: reduce) {

    .invite-panel__cta,
    .invite-panel__cta i {
        transition: none;
    }
}

/* Saman 103 Professional Hero */
.saman-hero {
    position: relative;
    isolation: isolate;
    background: linear-gradient(145deg, #FFFFFF 0%, #F5F9FD 52%, #EDF4FA 100%);
    border-bottom: 1px solid #E2EAF2;
}

.saman-hero__ambient {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(75px);
    z-index: -1;
}

.saman-hero__ambient--blue {
    width: 440px;
    height: 440px;
    top: -180px;
    right: 10%;
    background: rgba(0, 75, 147, 0.10);
}

.saman-hero__ambient--red {
    width: 280px;
    height: 280px;
    bottom: -130px;
    left: 12%;
    background: rgba(227, 27, 35, 0.055);
}

.saman-hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: .22;
    background-image: radial-gradient(#7A9AB8 0.7px, transparent 0.7px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to left, transparent 0%, black 65%, transparent 100%);
}

.saman-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border: 1px solid #DCE7F1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: #40566B;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 75, 147, .045);
    margin-bottom: 30px;
}

.saman-hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #E31B23;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(227, 27, 35, .09);
}

.saman-hero__eyebrow-divider {
    width: 1px;
    height: 15px;
    background: #D5DFE9;
}

.saman-hero__eyebrow strong {
    color: #004B93;
    font-size: 13px;
    font-weight: 900;
}

.saman-hero__heading-wrap {
    position: relative;
    margin-bottom: 23px;
}

.saman-hero__overline {
    display: block;
    direction: ltr;
    text-align: right;
    color: #7890A7;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.saman-hero__title {
    color: #152B40;
    font-size: clamp(30px, 4vw, 49px);
    font-weight: 900;
    line-height: 1.65 !important;
    letter-spacing: -1.5px;
    margin: 0;
}

.saman-hero__title-highlight {
    display: block;
    color: #004B93;
    position: relative;
}

.saman-hero__title-bottom {
    display: block;
    font-size: .69em;
    font-weight: 700;
    color: #40566B;
    letter-spacing: -1px;
}

.saman-hero__title-accent {
    width: 76px;
    height: 4px;
    background: linear-gradient(to left, #E31B23 0 25%, #004B93 25% 100%);
    border-radius: 5px;
    margin-top: 18px;
}

.saman-hero__description {
    max-width: 590px;
    color: #5A6E82;
    font-size: 14px;
    font-weight: 400;
    line-height: 2.2;
    margin: 0 0 25px;
}

.saman-hero__description strong {
    color: #173C60;
    font-weight: 800;
}

.saman-hero__features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin-bottom: 30px;
}

.saman-hero__feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344B61;
    font-size: 11px;
    font-weight: 700;
}

.saman-hero__feature-icon {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E8F1FA;
    border: 1px solid #DCE9F5;
    border-radius: 9px;
    color: #004B93;
    font-size: 12px;
}

.saman-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.saman-hero__btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 23px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s ease;
}

.saman-hero__btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, #00549F, #003366);
    box-shadow: 0 8px 20px rgba(0, 75, 147, .20);
}

.saman-hero__btn--primary:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 75, 147, .28);
}

.saman-hero__btn--primary i {
    color: #FFD58A;
    transition: transform .2s ease;
}

.saman-hero__btn--primary:hover i {
    transform: translateX(-4px);
}

.saman-hero__btn--secondary {
    color: #24445F;
    background: #fff;
    border: 1px solid #D7E2EC;
    box-shadow: 0 4px 12px rgba(0, 40, 80, .04);
}

.saman-hero__btn--secondary:hover {
    color: #004B93;
    border-color: #004B93;
    background: #F8FBFE;
}

.saman-hero__trust {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7A8EA1;
    font-size: 10px;
    font-weight: 600;
    margin-top: 24px;
}

.saman-hero__trust-line {
    width: 27px;
    height: 2px;
    background: #E31B23;
    border-radius: 3px;
}

.saman-hero__visual {
    position: relative;
    padding: 14px 0 24px;
}

.saman-hero__floating {
    position: absolute;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #E5EDF5;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 35, 71, .12);
}

.saman-hero__floating--top {
    top: 0px;
    left: -20px;
}

.saman-hero__floating--bottom {
    bottom: 0px;
    right: -20px;
}

.saman-hero__floating-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #E9F6EF;
    color: #059669;
    font-size: 16px;
}

.saman-hero__floating--bottom .saman-hero__floating-icon {
    background: #EAF2FA;
    color: #004B93;
}

.saman-hero__floating strong,
.saman-hero__floating small {
    display: block;
    white-space: nowrap;
}

.saman-hero__floating strong {
    color: #20384E;
    font-size: 11px;
    font-weight: 900;
}

.saman-hero__floating small {
    color: #8191A1;
    font-size: 9px;
    margin-top: 3px;
}

@media (max-width: 1023px) {
    .saman-hero__visual {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .saman-hero__eyebrow {
        font-size: 10px;
        padding: 8px 11px;
        gap: 7px;
        margin-bottom: 23px;
    }

    .saman-hero__title {
        font-size: clamp(29px, 8vw, 38px);
        letter-spacing: -1px;
        line-height: 1.7 !important;
    }

    .saman-hero__title-bottom {
        font-size: .68em;
    }

    .saman-hero__overline {
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .saman-hero__description {
        font-size: 12px;
        line-height: 2.1;
    }

    .saman-hero__features {
        gap: 12px;
    }

    .saman-hero__feature {
        font-size: 10px;
    }

    .saman-hero__actions {
        flex-direction: column;
    }

    .saman-hero__btn {
        width: 100%;
    }

    .saman-hero__floating--top {
        left: -5px;
    }

    .saman-hero__floating--bottom {
        right: -5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .saman-hero__btn,
    .saman-hero__btn i {
        transition: none;
    }
}

/* /////////////// */

/* ==============================
   Saman Hero Responsive
============================== */

@media (max-width: 1023px) {
    .saman-hero .grid {
        row-gap: 24px;
    }

    .saman-hero .grid>div:last-child {
        margin-top: 0 !important;
    }

    .saman-hero__content {
        min-width: 0;
        padding-top: 28px;
        padding-bottom: 10px;
    }

    .saman-hero__visual {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .invite-panel {
        padding: 24px;
    }
}

/* Tablet */
@media (max-width: 767px) {
    .saman-hero__content {
        padding-top: 20px;
    }

    .saman-hero__eyebrow {
        font-size: 11px;
        padding: 8px 12px;
        gap: 7px;
        margin-bottom: 23px;
    }

    .saman-hero__title {
        font-size: clamp(29px, 6vw, 38px);
        line-height: 1.7 !important;
        letter-spacing: -1px;
    }

    .saman-hero__title-bottom {
        font-size: .68em;
    }

    .saman-hero__overline {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .saman-hero__description {
        font-size: 12px;
        line-height: 2.1;
    }

    .saman-hero__features {
        gap: 12px 16px;
    }

    .saman-hero__feature {
        font-size: 10px;
    }

    .saman-hero__visual {
        max-width: 540px;
    }

    .invite-panel {
        padding: 22px;
    }

    .invite-panel__title {
        font-size: 19px;
    }

    .invite-panel__values {
        padding: 11px;
        gap: 9px;
    }

    .invite-panel__values li {
        font-size: 11px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .saman-hero .grid {
        row-gap: 12px;
    }

    .saman-hero__content {
        padding: 18px 0 8px;
    }

    .saman-hero__heading-wrap {
        margin-bottom: 18px;
    }

    .saman-hero__description {
        margin-bottom: 20px;
    }

    .saman-hero__features {
        margin-bottom: 22px;
    }

    .saman-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .saman-hero__btn {
        width: 100%;
        min-height: 48px;
        padding: 11px 16px;
    }

    .saman-hero__trust {
        margin-top: 18px;
    }

    /* Invitation Panel */
    .saman-hero__visual {
        position: relative;
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 20px 0;
        margin-bottom: 10px;
    }

    .invite-panel {
        width: 100%;
        padding: 20px;
        border-radius: 18px;
    }

    .invite-panel__head {
        gap: 9px;
        margin-bottom: 16px;
    }

    .invite-panel__seal {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .invite-panel__label {
        font-size: 13px;
    }

    .invite-panel__title {
        font-size: 17px;
        line-height: 1.8;
        margin-bottom: 16px;
    }

    .invite-panel__cobrand {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        font-size: 11px;
    }

    .invite-panel__values {
        padding: 11px;
        gap: 9px;
        margin-bottom: 16px;
    }

    .invite-panel__values li {
        align-items: flex-start;
        gap: 8px;
        font-size: 10px;
        line-height: 1.9;
    }

    .invite-panel__values li i {
        flex-shrink: 0;
        margin-top: 5px;
    }

    .invite-panel__values li span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .invite-panel__cta {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 12px;
    }

    .invite-panel__tagline {
        font-size: 10px;
        margin-top: 12px;
    }

    /* Floating Elements */
    .saman-hero__floating {
        position: absolute;
        z-index: 20;
        width: auto;
        max-width: 160px;
        padding: 8px 10px;
        gap: 7px;
        border-radius: 12px;
    }

    .saman-hero__floating--top {
        top: -2px;
        left: 5px;
        right: auto;
        bottom: auto;
        transform: translateY(-15%);
    }

    .saman-hero__floating--bottom {
        bottom: -2px;
        right: 5px;
        left: auto;
        top: auto;
        transform: translateY(15%);
    }

    .saman-hero__floating-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        font-size: 14px;
    }

    .saman-hero__floating strong {
        font-size: 10px;
    }

    .saman-hero__floating small {
        font-size: 9px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .saman-hero__title {
        font-size: 27px;
        letter-spacing: -.7px;
    }

    .saman-hero__eyebrow {
        flex-wrap: wrap;
        font-size: 9px;
        gap: 6px;
    }

    .saman-hero__overline {
        font-size: 7px;
        letter-spacing: .8px;
    }

    .invite-panel {
        padding: 16px;
    }

    .invite-panel__label {
        font-size: 12px;
    }

    .invite-panel__title {
        font-size: 16px;
    }

    .invite-panel__values {
        padding: 9px;
    }

    .invite-panel__values li {
        font-size: 9px;
    }

    .saman-hero__floating {
        padding: 7px 8px;
        max-width: 145px;
    }

    .saman-hero__floating-icon {
        width: 29px;
        height: 29px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .saman-hero__btn,
    .saman-hero__btn i,
    .invite-panel__cta,
    .invite-panel__cta i {
        transition: none !important;
        transform: none !important;
    }
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s ease;
}

.mobile-menu-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.mobile-menu-item:hover {
    background: #f1f5f9;
    color: #0B5DDE;
}

.mobile-submenu-toggle[aria-expanded="true"] {
    background: #f1f5f9;
    color: #0B5DDE;
}

.mobile-submenu-toggle[aria-expanded="true"]>i {
    transform: rotate(180deg);
}
