/* ═══════════════════════════════════════════════
   جلوگیری از Layout Shift موقع لود
   ═══════════════════════════════════════════════ */
html {
    /* جلوگیری از پرش صفحه موقع ظاهر شدن اسکرول‌بار */
    scrollbar-gutter: stable;
}

body {
    /* رزرو کردن فضای هدر از اول */
    padding-top: 0;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport - برای موبایل واقعی */
}

/* ✅ هدر با ارتفاع دقیق و ثابت */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--surface-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .05);
    /* ✅ ارتفاع حداقل تضمینی */
    min-height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   پشتیبانی از موبایل واقعی + iPhone X+
   ═══════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-top)) {
    .site-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .stories-section {
        padding-top: calc(
            var(--header-height) + 
            var(--stories-gap) + 
            env(safe-area-inset-top)
        ) !important;
    }
}

/* استفاده از dvh به جای vh در موبایل */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
    }
}

body,
html {
    overflow-x: hidden;
    width: 100%
}

.magazine-grid {
    grid-template-columns: repeat(2, 1fr)
}

.container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 2
}

.text-center {
    text-align: center
}

.text-right {
    text-align: right
}

a {
    text-decoration: none;
    color: inherit;
    transition: .3s
}

.btn-modern,
button {
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    cursor: pointer;
    border-radius: 50px;
    transition: all .3s;
    font-weight: 700
}

.btn-modern.outline {
    background: 0 0;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 13px 30px
}

.btn-modern.outline:hover {
    border-color: var(--brand-red);
    color: var(--brand-red)
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-red) 0, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.bg-dark {
    background: #1a1a1a
}

.global-3d-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .3;
    animation: floatOrb 15s infinite alternate ease-in-out
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--brand-red);
    top: 10%;
    left: -10%
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #f99;
    bottom: 20%;
    right: -10%;
    animation-delay: -5s
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(230, 0, 0, .5);
    top: 50%;
    left: 50%;
    animation-delay: -10s
}

@keyframes floatOrb {
    0% {
        transform: translateY(0) scale(1)
    }

    100% {
        transform: translateY(-100px) scale(1.1)
    }
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--surface-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, .05)
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo h2 {
    font-size: 24px;
    font-weight: 900;
    margin: 0
}

.site-logo-img {
    max-height: 65px;
    width: auto;
    display: block;
    transition: transform .3s ease
}

.site-logo-img:hover {
    transform: scale(1.05)
}

.main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 700
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: 0 0;
    padding: 0
}

.theme-label {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-secondary)
}

.switch-track {
    width: 54px;
    height: 28px;
    background: var(--border-color);
    border-radius: 30px;
    position: relative
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .4s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
}

.switch-thumb svg {
    width: 14px;
    height: 14px;
    position: absolute;
    transition: all .3s
}

.icon-moon {
    opacity: 0;
    transform: rotate(-90deg)
}

[data-theme=dark] .switch-track {
    background: #2c3e50
}

[data-theme=dark] .switch-thumb {
    transform: translateX(26px);
    background: #1a1c23
}

[data-theme=dark] .icon-sun {
    opacity: 0;
    transform: rotate(90deg)
}

[data-theme=dark] .icon-moon {
    opacity: 1;
    transform: rotate(0)
}

.btn-login {
    background: var(--brand-red);
    color: #fff;
    padding: 10px 20px
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 0, 0, .3)
}

.site-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    margin-top: 50px;
    position: relative;
    z-index: 2
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px
}

.footer-col h2,
.footer-col h3 {
    margin-bottom: 20px
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.footer-col li {
    margin-bottom: 12px
}

.footer-col p {
    margin-bottom: 10px;
    color: var(--text-secondary)
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-secondary)
}

.footer-menu {
    transition: all .5s ease
}

.footer-menu:hover {
    color: red;
    border-bottom: red 2px solid
}

.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 50px;
    overflow: hidden
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px
}

.hero-text-side {
    flex: 1.2;
    text-align: right
}

.mega-title {
    font-size: 4.8rem;
    margin: 20px 0;
    line-height: 1.15;
    font-weight: 900
}

.glow-badge {
    background: rgba(230, 0, 0, .05);
    border: 1px solid rgba(230, 0, 0, .1);
    color: var(--brand-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-block
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px
}

.btn-modern.shadow-red {
    background: var(--brand-red);
    color: #fff;
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(230, 0, 0, .2)
}

.btn-modern.shadow-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 0, 0, .3)
}

.hero-cards-side {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    touch-action: pan-y
}

.card-stack {
    position: relative;
    width: 320px;
    height: 420px
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    background: var(--surface-color);
    border: 5px solid #fff;
    will-change: transform;
    user-select: none
}

[data-theme=dark] .swipe-card {
    border-color: #2a2d35
}

.swipe-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none
}

@media (max-width:992px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 40px
    }

    .hero-text-side {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%
    }

    .hero-buttons a {
        width: 100%
    }

    .mega-title {
        font-size: 3rem
    }

    .hero-cards-side {
        height: 400px;
        width: 100%
    }

    .card-stack {
        width: 280px;
        height: 380px
    }

    .main-nav {
        display: none
    }

    .hamburger-btn {
        display: block
    }

    .desktop-login-btn {
        display: none !important
    }
}

.marquee-wrapper {
    background: var(--brand-red);
    color: #fff;
    padding: 10px 0 !important;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
    z-index: 10;
    height: 80px;
    display: flex;
    align-items: center
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee-scroll-rtl 35s linear infinite
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused
}

.marquee-content {
    display: flex;
    align-items: center;
    justify-content: space-around
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 35px;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap
}

.logo-box {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    overflow: hidden
}

.logo-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important
}

@keyframes marquee-scroll-rtl {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(50%)
    }
}

@media (max-width:768px) {
    .marquee-wrapper {
        height: 60px;
        margin: 40px 0 80px 0
    }

    .brand-item {
        margin: 0 20px;
        font-size: .9rem;
        gap: 8px
    }

    .logo-box {
        width: 35px !important;
        height: 35px !important;
        padding: 3px
    }
}

.glass-bio-card {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto
}

[data-theme=light] .glass-bio-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color)
}

.glass-bio-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 20px
}

.bento-puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 25px
}

.bento-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .5s ease;
    display: flex
}

.bento-card:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(230, 0, 0, .12)
}

.bento-wide {
    grid-column: span 2;
    justify-content: space-between;
    align-items: center
}

.bento-square {
    grid-column: span 1;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.huge-text {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--brand-red);
    line-height: 1;
    z-index: 2
}

.bento-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    z-index: 2;
    position: relative
}

.bento-content p {
    color: var(--text-secondary);
    font-size: .95rem;
    z-index: 2;
    position: relative
}

.counter {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1
}

.bento-area {
    background: linear-gradient(135deg, var(--surface-color) 60%, rgba(230, 0, 0, .03) 100%)
}

.bento-bg-icon {
    position: absolute;
    left: -20px;
    bottom: -20px;
    font-size: 12rem;
    color: var(--brand-red);
    opacity: .05;
    z-index: 1;
    transform: rotate(-15deg);
    transition: .5s
}

.bento-card:hover .bento-bg-icon {
    transform: rotate(0) scale(1.1);
    opacity: .1
}

.bento-hours {
    background: #121212;
    border-color: #2a2a2a;
    position: relative
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 51, 51, .4)
}

.pulse-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #f33;
    border-radius: 50%;
    box-shadow: 0 0 10px #f33;
    animation: pulse 1.5s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, .7)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 51, 51, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0)
    }
}

.bento-parking {
    background: linear-gradient(45deg, rgba(230, 0, 0, .05), var(--surface-color))
}

.outline-text {
    -webkit-text-stroke: 2px var(--brand-red);
    color: transparent;
    font-size: 5.5rem;
    opacity: .6
}

.glass-video-player {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    background: linear-gradient(135deg, #2a2a2a, #111);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color)
}

.video-overlay {
    text-align: center;
    color: #fff;
    z-index: 2
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(230, 0, 0, .8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    cursor: pointer;
    transition: .3s
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--brand-red)
}

.play-button svg {
    width: 30px;
    height: 30px;
    margin-left: 5px
}

.cyber-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    perspective: 1000px
}

.cyber-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all .5s ease;
    text-align: center
}

.cyber-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    border-color: var(--brand-red);
    box-shadow: -10px 20px 30px rgba(230, 0, 0, .05)
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-red);
    box-shadow: 0 0 15px var(--brand-red);
    opacity: 0;
    transition: .5s
}

.cyber-card:hover .scan-line {
    opacity: 1;
    transform: translateY(280px)
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(230, 0, 0, .05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(230, 0, 0, .1)
}

.interactive-lottery-wrapper {
    position: relative;
    padding: 20px
}

.glass-lottery-box {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all .4s ease;
    box-shadow: var(--shadow)
}

.glass-lottery-box:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(230, 0, 0, .15);
    border-color: var(--brand-red)
}

.lottery-info h2 {
    color: var(--brand-red);
    margin-bottom: 10px
}

.glass-timer {
    display: flex;
    gap: 15px
}

.time-unit {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 20px;
    text-align: center;
    min-width: 90px
}

.time-unit span {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    line-height: 1
}

.time-unit small {
    color: var(--text-secondary);
    font-weight: 700
}

.float-item {
    position: absolute;
    font-size: 3rem;
    z-index: 1;
    animation: bobbing 3s infinite alternate ease-in-out;
    opacity: .8;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .1))
}

.decor-1 {
    top: -20px;
    left: 5%;
    animation-delay: 0s
}

.decor-2 {
    bottom: -38px;
    left: 40%;
    animation-delay: 1s;
    font-size: 2rem
}

.decor-3 {
    top: -10px;
    right: 5%;
    animation-delay: 2s
}

@keyframes bobbing {
    0% {
        transform: translateY(0) rotate(0)
    }

    100% {
        transform: translateY(-20px) rotate(10deg)
    }
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px
}

.minimal-social-card {
    background: var(--surface-color);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow)
}

.social-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 15px;
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center
}

.ig-ring {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888)
}

.rubika-ring {
    background: linear-gradient(45deg, #2c3e50, #00d2ff)
}

.social-stats {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: center;
    text-align: center
}

.social-stats strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary)
}

.social-stats span {
    font-size: .8rem;
    color: var(--text-secondary)
}

.social-bio p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.6
}

.social-buttons {
    margin-top: 20px;
    display: flex
}

.btn-ig {
    background: #0095f6;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 12px
}

.btn-rubika {
    background: #00d2ff;
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 12px
}

.header-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px
}

.ultimate-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.ultimate-card {
    background: var(--surface-color);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .4s ease;
    display: flex;
    flex-direction: column
}

.ultimate-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-red);
    box-shadow: 0 25px 50px rgba(230, 0, 0, .1)
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease
}

.ultimate-card:hover .blog-thumb {
    transform: scale(1.1)
}

.no-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ced4da
}

[data-theme=dark] .no-thumb-placeholder {
    background: linear-gradient(135deg, #2a2d35, #1a1c23);
    color: #3a3d45
}

.glass-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    padding: 8px 15px;
    text-align: center;
    color: #e64f4f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    z-index: 2
}

.glass-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3)
}

.glass-date-badge .month {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .3)
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.5
}

.card-content h3 a:hover {
    color: var(--brand-red)
}

.card-content p {
    color: var(--text-secondary);
    font-size: .95rem;
    margin-bottom: 20px;
    line-height: 1.7
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px
}

.read-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--brand-red);
    transition: all .3s
}

.read-action:hover {
    color: #c00
}

.read-action:hover i {
    transform: translateX(-5px)
}

.careers-box {
    background: var(--surface-color);
    padding: 60px;
    border-radius: 30px;
    border: 1px dashed var(--brand-red);
    box-shadow: var(--shadow)
}


@media (max-width:992px) {
    .container {
        width: 95%
    }

    .bento-puzzle-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto
    }

    .bento-wide {
        grid-column: span 2
    }

    .cyber-grid,
    .footer-grid,
    .social-grid {
        grid-template-columns: 1fr 1fr
    }

    .glass-lottery-box {
        flex-direction: column;
        text-align: center;
        gap: 30px
    }

    .main-nav {
        display: none
    }

    .ultimate-blog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 30px;
        scrollbar-width: none;
        padding-top: 10px
    }

    .ultimate-blog-grid::-webkit-scrollbar {
        display: none
    }

    .ultimate-card {
        flex: 0 0 calc(50% - 10px);
        scroll-snap-align: center
    }
    
   
}


@media (max-width:768px) {

    .site-logo-img {
        max-height: 60px
    }

    .btn-login {
        padding: 8px 15px;
        font-size: .9rem
    }

    .theme-label {
        display: none
    }

    .mega-title {
        font-size: 2.5rem;
        line-height: 1.3
    }

    .hero-subtitle {
        font-size: 1rem
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%
    }

    .hero-buttons a {
        width: 100%;
        margin-bottom: 10px
    }

    .hero-section {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 40px
    }

    .bento-puzzle-grid {
        grid-template-columns: 1fr
    }

    .bento-square,
    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px
    }

    .bento-wide .huge-text,
    .bento-wide .outline-text {
        order: -1;
        font-size: 3.5rem
    }

    .cyber-grid,
    .footer-grid,
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .ultimate-card {
        flex: 0 0 85%
    }

    .glass-video-player {
        height: 250px
    }

    .glass-lottery-box {
        padding: 30px 20px
    }

    .glass-timer {
        flex-wrap: wrap;
        justify-content: center
    }

    .time-unit {
        min-width: 80px;
        padding: 10px 15px
    }

    .time-unit span {
        font-size: 2rem
    }

    .glass-bio-card {
        padding: 30px 20px
    }

    .careers-box {
        padding: 40px 20px
    }

    .header-between {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center
    }
}

.hamburger-btn {
    display: none;
    background: 0 0;
    color: var(--text-primary);
    padding: 5px;
    cursor: pointer;
    transition: .3s
}

.hamburger-btn svg {
    width: 30px;
    height: 30px
}

.hamburger-btn:hover {
    color: var(--brand-red)
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* انتقال منو به بیرون از کادر سمت چپ */
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--surface-color);
    z-index: 2000;
    /* 🔴 سایه اصلاح شد تا بیفته سمت راست منو */
    box-shadow: 5px 0 30px rgba(0, 0, 0, .15); 
    /* 🔴 کلمه right به left تغییر کرد تا انیمیشن درست کار کنه */
    transition: left 0.4s cubic-bezier(.77, 0, .175, 1); 
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0; /* منو با انیمیشن نرم میاد داخل کادر */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color)
}

.close-sidebar {
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.close-sidebar svg {
    width: 20px;
    height: 20px
}

.sidebar-content {
    padding: 25px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.mobile-nav-list a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color)
}

.mobile-nav-list a:hover {
    color: var(--brand-red);
    padding-right: 5px
}

.mobile-login-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    justify-content: center;
    margin-top: auto
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: .4s ease
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible
}

@media (max-width:480px) {
    .huge-text {
        font-size: 3rem
    }

    .outline-text {
        font-size: 3.5rem
    }

    .counter {
        font-size: 2.5rem
    }

    .social-stats {
        flex-wrap: wrap;
        gap: 10px
    }

    .ultimate-card {
        flex: 0 0 90%
    }
}

.footer-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
    display: block
}

.enamad-header {
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

.enamad-img {
    max-height: 100%;
    width: auto
}

.mobile-logo-img {
    max-height: 40px;
    width: auto
}

.hamburger-btn {
    display: none;
    background: 0 0;
    color: var(--text-primary);
    padding: 5px;
    cursor: pointer
}

.hamburger-btn svg {
    width: 32px;
    height: 32px
}

/* ═══════════════════════════════════════════════
   بخش استوری‌ها - ریسپانسیو کامل
   ═══════════════════════════════════════════════ */

.stories-section {
    /* ✅ فاصله دقیق از هدر با CSS Variable */
    padding-top: calc(var(--header-height) + var(--stories-gap)) !important;
    padding-bottom: 0px !important;
    /* جلوگیری از Layout Shift */
    min-height: 180px;
    position: relative;
    z-index: 5;
}

.stories-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 15px 12px 0 12px;
    scrollbar-width: none;
    justify-content: flex-start;
    scroll-behavior: smooth;
    /* برای موبایل: چسبیدن استوری اول به راست */
    scroll-snap-type: x proximity;
}

.stories-wrapper::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
    min-width: 80px;
    scroll-snap-align: start;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-ring {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 3px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 2rem;
}

.story-ring.active {
    background: linear-gradient(45deg, var(--brand-red), #f99);
}

.story-ring span {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
}

.story-text {
    font-size: 0.85rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   📱 موبایل - سایز کوچک‌تر استوری‌ها
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .stories-wrapper {
        gap: 15px;
        padding: 15px 12px 20px 12px;
    }
    
    .story-item {
        min-width: 70px;
    }
    
    .story-ring {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
    
    .story-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stories-wrapper {
        gap: 15px;
    }
    
    .story-ring {
        width: 62px;
        height: 62px;
        font-size: 1.5rem;
    }
    
    .story-item {
        min-width: 65px;
    }
}

.glass-breadcrumb {
    background: rgba(255, 255, 255, .4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
    margin-bottom: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05)
}

[data-theme=dark] .glass-breadcrumb {
    background: rgba(26, 28, 35, .5);
    border-color: rgba(255, 255, 255, .05)
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: .85rem;
    font-weight: 700
}

.breadcrumb-list a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: .3s
}

.breadcrumb-list a:hover {
    color: var(--brand-red)
}

.separator {
    color: var(--border-color);
    display: flex;
    align-items: center
}

.breadcrumb-list .current {
    color: var(--text-primary)
}

.search-trigger-btn {
    background: 0 0;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: .3s
}

.search-trigger-btn:hover {
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red)
}

.fullscreen-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .4s cubic-bezier(.165, .84, .44, 1);
    transform: translateY(-20px)
}

[data-theme=dark] .fullscreen-search-overlay {
    background: rgba(15, 16, 20, .95)
}

.fullscreen-search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.close-search-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: .3s
}

.close-search-btn:hover {
    background: var(--brand-red);
    color: #fff;
    transform: rotate(90deg)
}

.search-popup-content {
    width: 90%;
    max-width: 800px;
    text-align: center
}

.search-popup-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary)
}

.mega-search-form {
    display: flex;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

.mega-search-form:focus-within {
    border-color: var(--brand-red)
}

.mega-search-form input {
    flex: 1;
    border: none;
    background: 0 0;
    padding: 15px 25px;
    font-size: 1.2rem;
    outline: 0;
    color: var(--text-primary);
    font-family: inherit
}

.mega-search-submit {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 0 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .3s
}

.mega-search-submit:hover {
    background: #c00;
    box-shadow: 0 5px 15px rgba(230, 0, 0, .3)
}

@media(max-width:768px) {
    .close-search-btn {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px
    }

    .mega-search-form {
        flex-direction: column;
        border-radius: 20px;
        border: none;
        background: 0 0;
        box-shadow: none
    }

    .mega-search-form input {
        border: 2px solid var(--border-color);
        border-radius: 15px;
        margin-bottom: 15px;
        background: var(--bg-color)
    }

    .mega-search-submit {
        padding: 15px;
        border-radius: 15px
    }
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.dept-card {
    position: relative;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.dept-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s
}

.dept-card:hover img {
    transform: scale(1.1)
}

.dept-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    color: #fff
}

.dept-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px
}

.dept-overlay p {
    font-size: .95rem;
    color: #ddd
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
}

.vip-card {
    display: flex;
    gap: 20px;
    background: var(--surface-color);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: .4s
}

.vip-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red)
}

.vip-icon {
    background: rgba(230, 0, 0, .05);
    color: var(--brand-red);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.vip-icon svg {
    width: 40px;
    height: 40px
}

.vip-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem
}

.vip-content p {
    color: var(--text-secondary);
    line-height: 1.7
}

.glass-cat-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.glass-cat-list li {
    margin-bottom: 10px
}

.glass-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: .3s;
    font-weight: 700;
    margin-left: 10px
}

.glass-cat-list a:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    transform: translateX(-5px)
}

.glass-cat-list li {
    position: relative
}

.glass-cat-list li span.count {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .8rem;
    pointer-events: none
}

.auth-bg {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: -1;
    overflow: hidden;
    transition: .5s
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .4;
    animation: floatOrb 10s infinite alternate
}

.orb-red {
    width: 400px;
    height: 400px;
    background: var(--brand-red);
    top: -100px;
    right: -100px
}

.orb-purple {
    width: 300px;
    height: 300px;
    background: #9771ff;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s
}

.auth-section {
    position: relative;
    z-index: 10;
    padding: 0 !important
}

.auth-glass-card {
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, .1);
    transition: .5s
}

[data-theme=dark] .auth-glass-card {
    background: rgba(26, 28, 35, .6);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .5)
}

.auth-back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .9rem;
    font-weight: 700
}

.auth-back-link:hover {
    color: var(--brand-red)
}

.auth-logo {
    max-height: 55px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, .05))
}

.auth-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 5px
}

.auth-header p {
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 30px
}

.auth-toggle-box {
    background: var(--surface-color);
    border-radius: 50px;
    display: flex;
    position: relative;
    padding: 5px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .05)
}

.auth-toggle-btn {
    flex: 1;
    padding: 12px 0;
    background: 0 0;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    transition: .3s
}

.auth-toggle-btn.active {
    color: #fff !important
}

.auth-toggle-slider {
    position: absolute;
    top: 5px;
    right: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: var(--brand-red);
    border-radius: 50px;
    z-index: 1;
    transition: transform .4s cubic-bezier(.25, 1, .5, 1);
    box-shadow: 0 5px 15px rgba(230, 0, 0, .3)
}

#premium_loginform p {
    margin-bottom: 20px
}

#premium_loginform label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: .9rem;
    font-weight: 700
}

#premium_loginform input[type=password],
#premium_loginform input[type=text] {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: .3s
}

#premium_loginform input:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, .1);
    outline: 0
}

#premium_loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary)
}

#premium_loginform input[type=submit] {
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 0, 0, .2);
    transition: .3s;
    margin-top: 10px
}

#premium_loginform input[type=submit]:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 0, 0, .3)
}

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

.input-group input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: .3s
}

.input-group label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: .3s;
    pointer-events: none
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: var(--brand-red);
    outline: 0
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -10px;
    right: 15px;
    font-size: .8rem;
    background: var(--surface-color);
    padding: 0 10px;
    color: var(--brand-red);
    border-radius: 5px
}

@media(max-width:480px) {
    .auth-glass-card {
        padding: 30px 20px;
        border-radius: 20px;
        border: none;
        background: 0 0 !important;
        box-shadow: none !important;
        backdrop-filter: none
    }

    .auth-bg {
        background: var(--bg-color)
    }

    .auth-back-link {
        top: 0;
        left: 0;
        position: relative;
        margin-bottom: 20px
    }
}

.dash-app-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start
}

.dash-app-sidebar {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px 20px;
    box-shadow: var(--shadow)
}

.dash-avatar img {
    border-radius: 50%;
    border: 4px solid var(--brand-red);
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(230, 0, 0, .2)
}

.user-role {
    display: inline-block;
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 30px
}

.dash-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    font-weight: 700;
    transition: .3s
}

.dash-nav a.active,
.dash-nav a:hover {
    background: var(--bg-color);
    color: var(--brand-red)
}

.text-red {
    color: #f33 !important
}

.dash-welcome-banner {
    background: linear-gradient(135deg, var(--brand-red), #ff4d4d);
    border-radius: 30px;
    padding: 40px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(230, 0, 0, .2)
}

.dash-welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 25px;
    box-shadow: var(--shadow)
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center
}

.stat-title {
    display: block;
    color: var(--text-secondary);
    font-size: .9rem;
    margin-bottom: 5px
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.value-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: .4s ease
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(230, 0, 0, .1)
}

.value-icon {
    width: 80px;
    height: 80px;
    background: rgba(230, 0, 0, .05);
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: .95rem
}

.quote-style {
    position: relative;
    padding: 60px 40px !important;
    border-top: 3px solid var(--brand-red) !important
}

.quote-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    padding: 10px;
    border-radius: 30%
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--border-color);
    border-radius: 10px
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 10px;
    width: 16px;
    height: 16px;
    background: var(--brand-red);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, .1)
}

.pulse-dot-red {
    animation: pulseRed 2s infinite
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, .4)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(230, 0, 0, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 0, 0)
    }
}

.timeline-content.glass-effect {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: .3s
}

.timeline-content.glass-effect:hover {
    transform: translateX(10px);
    border-color: var(--brand-red)
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem
}

.timeline-content p {
    color: var(--text-secondary);
    margin: 0
}

.glass-cta-box {
    background: linear-gradient(135deg, var(--surface-color), rgba(230, 0, 0, .05));
    border: 1px dashed var(--brand-red);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 15px 30px rgba(230, 0, 0, .1)
}

@media(max-width:768px) {
    .glass-breadcrumb {
        padding: 8px 15px
    }

    .breadcrumb-list {
        font-size: .75rem
    }
}

@media (max-width:992px) {
    .hamburger-btn {
        display: block !important
    }

    .enamad-header {
        display: none
    }

    .dept-grid {
        grid-template-columns: 1fr
    }

    .vip-grid {
        grid-template-columns: 1fr
    }

    .split-login-section {
        flex-direction: column;
        height: auto;
        display: block
    }

    .login-image-side {
        height: 300px
    }

    .login-image-overlay h2 {
        font-size: 2rem
    }

    .dash-app-layout {
        grid-template-columns: 1fr
    }

    .values-grid {
        grid-template-columns: 1fr
    }

    .quote-style {
        padding: 40px 20px !important
    }

    .glass-cta-box h2 {
        font-size: 1.8rem
    }
}

/* ═══════════════════════════════════════════════
   هدر موبایل - چیدمان جدید
   راست: لوگو | چپ: دکمه‌ها + همبرگری
   ═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    
    /* کانتینر هدر */
    .site-header .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px;
        position: static !important;
    }
    
    /* لوگو - سمت راست (در RTL یعنی order کم) */
    .site-header .logo {
        position: static !important;
        left: auto !important;
        transform: none !important;
        order: 1 !important;
        margin: 0 !important;
        flex-shrink: 0;
    }
    
    .site-header .site-logo-img {
        max-height: 50px;
    }
    
    /* دکمه‌های کاربردی - وسط چپ */
    .site-header .header-actions {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-right: auto;
        margin-left: 0;
    }
    
    /* دکمه همبرگری - آخرین آیتم سمت چپ */
    .site-header .hamburger-btn {
        order: 3 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: transparent;
        margin: 0 !important;
        padding: 0;
        flex-shrink: 0;
    }
    
    .site-header .hamburger-btn:hover {
        background: rgba(230, 0, 0, 0.1);
    }
    
    .site-header .hamburger-btn svg {
        width: 26px;
        height: 26px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .site-header .header-actions {
        gap: 2px !important;
    }
    
    .site-header .search-trigger-btn,
    .site-header .header-cart-icon,
    .site-header .hamburger-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    .site-header .search-trigger-btn svg,
    .site-header .header-cart-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .site-header .hamburger-btn svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .site-header .site-logo-img {
        max-height: 42px;
    }
    
    /* کوچک‌تر کردن دکمه دارک‌مود در موبایل خیلی کوچک */
    .site-header .switch-track {
        width: 42px !important;
        height: 22px !important;
    }
    
    .site-header .switch-thumb {
        width: 18px !important;
        height: 18px !important;
    }
    
    [data-theme=dark] .site-header .switch-thumb {
        transform: translateX(20px) !important;
    }
}


/* ═══════════════════════════════════════════════
   🛒 سبد خرید در سایدبار موبایل - v2.0 حرفه‌ای
   ═══════════════════════════════════════════════ */

.sidebar-content .mobile-cart-link {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.06), rgba(255, 107, 157, 0.03)) !important;
    border: 1.5px solid rgba(230, 0, 0, 0.15) !important;
    border-radius: 18px !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.06);
    overflow: hidden;
}

/* خط جداکننده بالای سبد خرید */
.sidebar-content .mobile-cart-link::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    pointer-events: none;
}

/* ❌ حذف ::after قبلی (متن "حساب کاربری") */
.sidebar-content .mobile-cart-link::after {
    display: none !important;
    content: none !important;
}

/* 🎨 آیکون داخل دایره قرمز */
.mobile-cart-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: linear-gradient(135deg, var(--brand-red), #ff4d6d) !important;
    border-radius: 13px !important;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-cart-icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
    color: #fff !important;
    stroke: #fff !important;
    margin: 0 !important;
}

/* 📝 متن سبد خرید */
.mobile-cart-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    flex: 1 !important;
    line-height: 1.3 !important;
}

.mobile-cart-label {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
}

.mobile-cart-subtitle {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

/* 🏷️ بج تعداد */
.sidebar-content .mobile-cart-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, var(--brand-red), #ff4d4d) !important;
    color: #fff !important;
    border-radius: 15px !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(230, 0, 0, 0.4) !important;
    border: 2px solid var(--surface-color) !important;
    flex-shrink: 0 !important;
    animation: cartBadgePulse 2s ease-in-out infinite;
}

@keyframes cartBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ➡️ فلش (وقتی سبد خالیه) */
.mobile-cart-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--brand-red) !important;
    opacity: 0.5;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-cart-arrow svg {
    width: 18px;
    height: 18px;
}

/* ✨ Hover Effect */
.sidebar-content .mobile-cart-link:hover {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.1), rgba(255, 107, 157, 0.05)) !important;
    border-color: var(--brand-red) !important;
    transform: translateX(-4px) !important;
    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.15);
}

.sidebar-content .mobile-cart-link:hover .mobile-cart-icon-wrap {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 6px 18px rgba(230, 0, 0, 0.5);
}

.sidebar-content .mobile-cart-link:hover .mobile-cart-arrow {
    opacity: 1;
    transform: translateX(-3px);
}

/* 🌙 دارک مود */
[data-theme="dark"] .sidebar-content .mobile-cart-link {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.12), rgba(255, 107, 157, 0.05)) !important;
    border-color: rgba(230, 0, 0, 0.25) !important;
}

[data-theme="dark"] .sidebar-content .mobile-cart-link:hover {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.18), rgba(255, 107, 157, 0.08)) !important;
}

[data-theme="dark"] .mobile-cart-subtitle {
    color: var(--text-secondary) !important;
}


    .dash-app-layout {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .split-login-section {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto
    }

    .login-image-side {
        flex: none;
        height: 250px;
        width: 100%
    }

    .login-image-overlay h2 {
        font-size: 2rem;
        margin-bottom: 10px
    }

    .login-image-overlay p {
        font-size: 1rem
    }

    .login-form-side {
        flex: 1;
        align-items: flex-start;
        padding-top: 30px;
        padding-bottom: 50px
    }
}

@media (max-width:768px) {
    .dash-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .dash-welcome-banner {
        padding: 25px 20px;
        text-align: center
    }

    .dash-welcome-banner h2 {
        font-size: 1.5rem
    }

    .back-to-home {
        top: 15px;
        left: 15px;
        font-size: .85rem;
        background: rgba(0, 0, 0, .05);
        padding: 5px 10px;
        border-radius: 10px
    }

    .login-form-wrapper {
        padding: 20px;
        width: 100%
    }

    #ultra_loginform input[type=password],
    #ultra_loginform input[type=text] {
        padding: 12px;
        margin-bottom: 15px
    }

    #ultra_loginform input[type=submit] {
        padding: 12px
    }
}

.contact-premium-section {
    padding-top: 140px;
    padding-bottom: 80px
}

.contact-bento-wrapper {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    transition: var(--transition)
}

.contact-info-side {
    background: linear-gradient(135deg, rgba(230, 0, 0, .03), transparent);
    padding: 50px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px 0
}

.method-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
    background: 0 0;
    border: 1px solid transparent;
    transition: var(--transition)
}

.method-card:hover {
    background: var(--bg-color);
    border-color: var(--border-color);
    transform: translateX(-5px)
}

.method-icon {
    width: 55px;
    height: 55px;
    background: rgba(230, 0, 0, .05);
    color: var(--brand-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: var(--transition)
}

.method-card:hover .method-icon {
    background: var(--brand-red);
    color: #fff
}

.method-text {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.method-text span {
    font-size: .85rem;
    color: var(--text-secondary)
}

.method-text strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    direction: ltr;
    text-align: right
}

.contact-social-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color)
}

.social-mini-links {
    display: flex;
    gap: 10px
}

.social-mini-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem
}

.social-mini-links a:hover {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red)
}

.contact-form-side {
    padding: 50px;
    background: var(--surface-color)
}

.premium-form .form-group {
    position: relative;
    margin-bottom: 20px
}

.premium-form .form-group i {
    position: absolute;
    right: 18px;
    top: 16px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition)
}

.premium-form input,
.premium-form textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 45px 15px 20px;
    border-radius: 15px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: 0
}

.premium-form textarea {
    resize: vertical;
    min-height: 120px
}

.premium-form input:focus,
.premium-form textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 0, .1)
}

.premium-form input:focus~i,
.premium-form textarea:focus~i {
    color: var(--brand-red)
}

@media (max-width:992px) {
    .contact-bento-wrapper {
        grid-template-columns: 1fr
    }

    .contact-info-side {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px 30px
    }

    .contact-form-side {
        padding: 40px 30px
    }
}

@media (max-width:768px) {
    .contact-premium-section {
        padding-top: 110px;
        padding-bottom: 40px
    }

    .contact-methods {
        margin: 25px 0
    }

    .contact-social-footer {
        flex-direction: column;
        gap: 15px
    }

    .contact-social-footer .btn-modern {
        width: 100%
    }
}

.magazine-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: 100%
}

.magazine-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px
}

.sidebar-widget {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03)
}

.widget-title {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 10px;
    display: inline-block
}

.transparent-widget {
    background: 0 0;
    border: none;
    padding: 0;
    box-shadow: none
}

.modern-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%
}

.modern-search-form input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 20px 15px 60px;
    border-radius: 30px;
    outline: 0;
    font-family: inherit;
    font-size: .95rem
}

.modern-search-form input:focus {
    border-color: var(--brand-red)
}

.modern-search-form button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-red);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s
}

.modern-search-form button:hover {
    background: #c00;
    transform: translateY(-50%) scale(1.05)
}

.glass-cat-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.glass-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    padding: 12px 20px;
    border-radius: 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: .3s;
    font-size: .95rem
}

.glass-cat-list li:hover {
    border-color: var(--brand-red);
    transform: translateX(-5px)
}

.glass-cat-list li a {
    flex-grow: 1;
    font-weight: 700
}

.career-bento-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    transition: all .3s ease;
    text-decoration: none;
    color: inherit
}

.career-bento-card:hover {
    border-color: var(--brand-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, .1)
}

.career-icon-wrap {
    color: var(--brand-red);
    background: rgba(230, 0, 0, .05);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: .3s
}

.career-bento-card:hover .career-icon-wrap {
    background: var(--brand-red);
    color: #fff;
    transform: scale(1.1)
}

.career-bento-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px
}

.career-bento-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px
}

.fake-btn {
    padding: 8px 25px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: .9rem;
    font-weight: 700;
    transition: .3s
}

.career-bento-card:hover .fake-btn {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff
}

.popular-posts-wrapper {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden
}

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

.slider-controls {
    display: flex;
    gap: 8px
}

.slider-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center
}

.popular-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none
}

.popular-slider::-webkit-scrollbar {
    display: none
}

.popular-card {
    flex: 0 0 260px;
    width: 260px;
    height: 170px;
    border-radius: 15px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden
}

.popular-card-link {
    display: block;
    width: 100%;
    height: 100%
}

.popular-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.popular-card:hover .popular-img {
    transform: scale(1.1)
}

.popular-img-placeholder {
    width: 100%;
    height: 100%;
    background: #333
}

.popular-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px
}

.popular-overlay h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.popular-cat {
    background: var(--brand-red);
    color: #fff;
    font-size: .65rem;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    margin-bottom: 8px;
    font-weight: 700
}

.section-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    border-right: 4px solid var(--brand-red);
    padding-right: 15px
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%
}

.modern-blog-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .03);
    transition: .3s
}

.modern-blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
    box-shadow: 0 10px 25px rgba(230, 0, 0, .1)
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.modern-blog-card:hover .card-img {
    transform: scale(1.08)
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-color), var(--border-color))
}

.card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, .95);
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    color: var(--brand-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    line-height: 1.1
}

[data-theme=dark] .card-date {
    background: rgba(26, 28, 35, .95)
}

.card-date .day {
    font-size: 1.3rem;
    font-weight: 900
}

.card-date .month {
    font-size: .75rem;
    font-weight: 700;
    margin-top: 2px
}

.card-content-wrap {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-title a:hover {
    color: var(--brand-red)
}

.card-excerpt {
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
    margin-top: auto
}

.card-read-more {
    font-weight: 700;
    color: var(--brand-red);
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.modern-blog-card:hover .card-read-more span {
    transform: translateX(-5px)
}

.card-read-more span {
    transition: transform .3s;
    display: inline-block
}

.card-author {
    font-size: .8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px
}

.single-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color)
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
    text-align: justify
}

.article-body h2,
.article-body h3 {
    color: var(--brand-red);
    margin: 30px 0 15px
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 20px 0
}

.pagination-glass {
    margin-top: 40px;
    text-align: center
}

.pagination-glass .nav-links {
    display: inline-flex;
    gap: 10px;
    background: var(--surface-color);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color)
}

.pagination-glass .page-numbers {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    transition: .3s
}

.pagination-glass .page-numbers.current,
.pagination-glass .page-numbers:hover {
    background: var(--brand-red);
    color: #fff
}

@media (max-width:992px) {
    .magazine-layout {
        display: flex;
        flex-direction: column;
        gap: 40px
    }

    .magazine-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        order: 1
    }

    .magazine-content {
        order: 2;
        width: 100%;
        overflow: hidden
    }

    .single-article-content {
        order: 0
    }
}

@media (max-width:768px) {
    .magazine-grid {
        grid-template-columns: 1fr !important;
        width: 100%
    }

    .popular-posts-wrapper {
        max-width: 100vw
    }

    .popular-card {
        flex: 0 0 230px;
        width: 230px;
        height: 150px
    }

    .card-image-wrapper {
        height: 200px
    }

    .archive-header,
    .single-hero {
        padding-top: 110px !important;
        padding-bottom: 20px !important
    }

    .mega-title {
        font-size: 2.2rem !important;
        line-height: 1.3
    }

    .single-meta {
        font-size: .85rem;
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center
    }

    .single-featured-image {
        height: 250px;
        margin-bottom: 30px;
        border-radius: 20px
    }

    .article-body {
        font-size: 1.05rem;
        line-height: 1.8;
        text-align: right
    }
}

.magazine-section {
    padding-left: 2rem;
    padding-right: 2rem
}

.story-ring.seen {
    border-color: #ddd !important;
    background: 0 0 !important
}

.story-ring.seen::before {
    display: none !important
}

.ig-story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease
}

.ig-story-modal.active {
    opacity: 1;
    visibility: visible
}

.ig-story-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 850px;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

#ig-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.ig-story-progress-container {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    padding: 0 10px;
    display: flex;
    gap: 4px;
    z-index: 10;
    direction: rtl
}

.ig-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .3);
    border-radius: 3px;
    overflow: hidden
}

.ig-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transform-origin: right
}

.ig-story-header {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    color: #fff;
    direction: rtl
}

.ig-story-user {
    display: flex;
    align-items: center;
    gap: 10px
}

.ig-story-user img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover
}

.ig-story-title {
    font-weight: 700;
    font-size: 14px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .8)
}

.ig-story-close {
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .8);
    padding: 0;
    line-height: 1
}

.ig-click-zone {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 5;
    cursor: pointer
}

.zone-right {
    right: 0;
    width: 40%
}

.zone-left {
    left: 0;
    width: 60%
}

/* ═══════════════════════════════════════════════
   آیکون سبد خرید در هدر - دقیقاً مثل آیکون جستجو
   ═══════════════════════════════════════════════ */
.header-cart-icon {
    background: 0 0;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: .3s;
    position: relative;
    text-decoration: none;
    flex-shrink: 0;
    padding: 0;
}

.header-cart-icon:hover {
    background: rgba(230, 0, 0, .1);
    color: var(--brand-red);
}

.header-cart-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    stroke: currentColor;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid var(--surface-color);
    box-sizing: content-box;
    pointer-events: none;
    animation: cartBadgePop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartBadgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* در موبایل */
@media (max-width: 768px) {
    .header-cart-icon {
        width: 38px;
        height: 38px;
    }
    
    .header-cart-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .cart-count-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 18px;
        top: -3px;
        right: -3px;
    }
}

/* ═══════════════════════════════════════════════
   سبد خرید شناور (موبایل)
   ═══════════════════════════════════════════════ */
.floating-cart-btn {
    position: fixed;
    bottom: 25px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(230, 0, 0, .5);
    z-index: 998;
    text-decoration: none;
    opacity: 0;
    transform: translateY(80px) scale(0.5);
    transition: all .4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.floating-cart-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-cart-btn.hidden {
    transform: translateY(100px) scale(0.8);
    opacity: 0.5;
}

.floating-cart-btn:hover {
    background: #c00;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(230, 0, 0, .6);
}

.floating-cart-btn svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
    pointer-events: none;
}

/* نمایش فقط در موبایل و تبلت */
@media (max-width: 992px) {
    .floating-cart-btn {
        display: flex;
    }
}

/* در دسکتاپ همیشه مخفی */
@media (min-width: 993px) {
    .floating-cart-btn {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════
   لینک سبد خرید در سایدبار موبایل
   ═══════════════════════════════════════════════ */
.mobile-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(230, 0, 0, .08);
    border: 1.5px solid rgba(230, 0, 0, .2);
    border-radius: 12px;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: .3s;
    position: relative;
}

.mobile-cart-link:hover {
    background: rgba(230, 0, 0, .15);
    border-color: var(--brand-red);
}

.mobile-cart-link svg {
    stroke: currentColor;
}

.mobile-cart-count {
    margin-right: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--brand-red);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

/* ═══════════════════════════════════════════════
   داشبورد - بخش‌های جدید ووکامرس
   ═══════════════════════════════════════════════ */

/* بج کنار آیتم منو */
.dash-nav-badge {
    margin-right: auto;
    background: var(--brand-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
    line-height: 22px;
    text-align: center;
}

.dash-nav a.active .dash-nav-badge,
.dash-nav a:hover .dash-nav-badge {
    background: var(--brand-red);
    color: #fff;
}

/* گرید آمار 4 ستونه */
.dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1200px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════
   لیست سفارش‌های اخیر
   ═══════════════════════════════════════════════ */
.dash-recent-orders {
    margin-top: 30px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.dash-section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.dash-section-header h3 svg {
    color: var(--brand-red);
}

.dash-section-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-red);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dash-section-link:hover {
    transform: translateX(-3px);
}

.dash-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-order-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.dash-order-item:hover {
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.08);
}

.dash-order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-order-id {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
}

.dash-order-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.dash-order-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.status-processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-on-hold {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-cancelled,
.status-refunded,
.status-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dash-order-total {
    font-weight: 800;
    color: var(--brand-red);
    font-size: 1rem;
}

.dash-order-view-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dash-order-view-btn:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   حالت خالی (هیچ سفارشی نداره)
   ═══════════════════════════════════════════════ */
.dash-empty-state {
    margin-top: 30px;
    text-align: center;
    padding: 60px 30px;
    background: var(--surface-color);
    border: 2px dashed var(--border-color);
    border-radius: 25px;
}

.dash-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(230, 0, 0, 0.05);
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dash-empty-state p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

/* ═══════════════════════════════════════════════
   محتوای ووکامرس (سفارشات، آدرس، حساب)
   ═══════════════════════════════════════════════ */
.dash-woo-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

/* استایل دادن به جداول سفارشات ووکامرس */
.dash-woo-content .woocommerce-MyAccount-content {
    padding: 0;
}

.dash-woo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.dash-woo-content table thead {
    background: var(--bg-color);
}

.dash-woo-content table th {
    padding: 15px;
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border-color);
}

.dash-woo-content table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.dash-woo-content table tbody tr {
    transition: all 0.3s ease;
}

.dash-woo-content table tbody tr:hover {
    background: var(--bg-color);
}

/* دکمه‌های ووکامرس داخل داشبورد */
.dash-woo-content .button,
.dash-woo-content .woocommerce-button,
.dash-woo-content button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dash-woo-content .button:hover,
.dash-woo-content .woocommerce-button:hover,
.dash-woo-content button[type="submit"]:hover {
    background: #c00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.2);
}

.dash-woo-content .button.view {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.dash-woo-content .button.view:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* فرم‌های ووکامرس */
.dash-woo-content form .form-row {
    margin-bottom: 20px;
}

.dash-woo-content form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dash-woo-content form input[type="text"],
.dash-woo-content form input[type="email"],
.dash-woo-content form input[type="tel"],
.dash-woo-content form input[type="password"],
.dash-woo-content form input[type="number"],
.dash-woo-content form select,
.dash-woo-content form textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.dash-woo-content form input:focus,
.dash-woo-content form select:focus,
.dash-woo-content form textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

/* پیام‌های ووکامرس */
.dash-woo-content .woocommerce-message,
.dash-woo-content .woocommerce-info,
.dash-woo-content .woocommerce-error {
    background: var(--bg-color);
    border-right: 4px solid var(--brand-red);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
}

.dash-woo-content .woocommerce-message {
    border-right-color: #10b981;
}

.dash-woo-content .woocommerce-error {
    border-right-color: #ef4444;
}

.dash-woo-content .woocommerce-info {
    border-right-color: #3b82f6;
}

/* عناوین داخل ووکامرس */
.dash-woo-content h2,
.dash-woo-content h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-red);
    display: inline-block;
}

/* آدرس‌های ووکامرس */
.dash-woo-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.dash-woo-content .woocommerce-Address {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

.dash-woo-content .woocommerce-Address:hover {
    border-color: var(--brand-red);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.08);
}

.dash-woo-content .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dash-woo-content .woocommerce-Address-title h3 {
    margin: 0;
    border: none;
    padding: 0;
    font-size: 1.1rem;
}

.dash-woo-content .woocommerce-Address-title a {
    font-size: 0.85rem;
    color: var(--brand-red);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--brand-red);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dash-woo-content .woocommerce-Address-title a:hover {
    background: var(--brand-red);
    color: #fff;
}

.dash-woo-content address {
    font-style: normal;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* صفحه‌بندی ووکامرس */
.dash-woo-content .woocommerce-pagination {
    margin-top: 30px;
}

.dash-woo-content .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.dash-woo-content .woocommerce-pagination li a,
.dash-woo-content .woocommerce-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.dash-woo-content .woocommerce-pagination li a:hover,
.dash-woo-content .woocommerce-pagination li span.current {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}

/* ═══════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════ */
@media (max-width: 992px) {
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dash-woo-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dash-order-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: right;
    }
    
    .dash-order-status,
    .dash-order-view-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dash-section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .dash-woo-content {
        padding: 20px 15px;
    }
    
    .dash-woo-content table thead {
        display: none;
    }
    
    .dash-woo-content table,
    .dash-woo-content table tbody,
    .dash-woo-content table tr,
    .dash-woo-content table td {
        display: block;
        width: 100%;
    }
    
    .dash-woo-content table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 15px;
        background: var(--bg-color);
    }
    
    .dash-woo-content table td {
        padding: 8px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .dash-woo-content table td::before {
        content: attr(data-title) ":";
        font-weight: 700;
        color: var(--text-primary);
    }
}

/* ═══════════════════════════════════════════════
   رفع مشکل دکمه شناور سبد خرید در دسکتاپ
   ═══════════════════════════════════════════════ */

/* مخفی کردن قطعی در دسکتاپ */
@media (min-width: 993px) {
    .floating-cart-btn,
    #floatingCartBtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        left: -9999px !important;
    }
}

/* در موبایل و تبلت دیده بشه */
@media (max-width: 992px) {
    .floating-cart-btn {
        display: flex !important;
    }
}
/* ═══════════════════════════════════════════════
   حذف قطعی دکمه شناور سبد خرید در دسکتاپ
   ═══════════════════════════════════════════════ */
@media (min-width: 993px) {
    .floating-cart-btn,
    #floatingCartBtn,
    a.floating-cart-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        left: -9999px !important;
        bottom: -9999px !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* استایل برای آیکون‌های وکتوری (SVG) جدید */
.icon-circle svg {
    color: var(--brand-red, #e60000); /* رنگ آیکون */
    transition: all 0.4s ease;
}

/* افکت موقع هاور شدن روی کارت */
.cyber-card:hover .icon-circle svg {
    transform: scale(1.15); /* کمی بزرگ میشه */
    color: #c00; /* رنگش پررنگ‌تر میشه */
    filter: drop-shadow(0 4px 6px rgba(230,0,0,0.3)); /* یه سایه قرمز ملایم میگیره */
}