/* ============================================
   ULTRA-MODERN CSS - jijiboo
   ============================================ */

/* CSS Custom Properties for consistent theming */
:root {
    /* Primary Colors */
    --color-primary: #6b97c4;
    --color-primary-light: #8eb3d6;
    --color-primary-dark: #4d7aab;
    --color-primary-darker: #3a6394;
    
    /* Accent Colors (expanded for emotional warmth) */
    --color-accent: #8eb3d6;
    --color-accent-orange: #fb923c;
    --color-accent-pink: #f472b6;
    --color-accent-yellow: #fbbf24;
    
    /* Semantic Feedback Colors */
    --color-success: #10b981;
    --color-success-light: #6ee7b7;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-error: #ef4444;
    --color-error-light: #f87171;
    
    /* Text Colors */
    --color-ink: #1e293b;
    --color-ink-light: #475569;
    --color-ink-muted: #64748b;
    
    /* Legacy aliases for compatibility */
    --color-orange: #6b97c4;
    --color-green: #6b97c4;
    --color-teal: #2f4a6b;
    
    /* Shadow System (5 levels) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Colored Shadows */
    --shadow-brand: 0 8px 24px rgba(107, 151, 196, 0.25);
    --shadow-brand-lg: 0 12px 32px rgba(107, 151, 196, 0.3);
    --shadow-success: 0 4px 16px rgba(16, 185, 129, 0.2);
    --shadow-error: 0 4px 16px rgba(239, 68, 68, 0.2);
    
    /* Legacy shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow-pink: 0 0 40px rgba(107, 151, 196, 0.3);
    --shadow-glow-orange: 0 0 40px rgba(107, 151, 196, 0.3);
    
    /* Transition Timings */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius (semantic scale) */
    --border-radius-input: 0.75rem;
    --border-radius-btn: 0.875rem;
    --border-radius-card: 1.5rem;
    --border-radius-modal: 1.75rem;
    --border-radius-soft: 20px;
    --border-radius-round: 9999px;
    
    /* Effects */
    --blur-glass: 16px;
    
    /* Touch Targets (accessibility) */
    --touch-target-min: 48px;
}

.swiper-navigation-icon {
    display: none !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   MOBILE STICKY HEADER + BACK-TO-TOP
   ============================================ */
.site-header {
    transition: box-shadow var(--transition-smooth), background-color var(--transition-smooth),
        backdrop-filter var(--transition-smooth);
    will-change: box-shadow, background-color;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.back-to-top {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(47, 74, 107, 0.95);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth),
        box-shadow var(--transition-smooth), filter var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-pagination-dots {
    gap: 0.5rem;
}

.hero-pagination-dots .pagination-dot {
    display: inline-block;
    width: 10px !important;
    height: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-pagination-dots .pagination-dot.active {
    width: 14px !important;
    height: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(107, 151, 196, 0.85) !important;
}

.back-to-top i {
    font-size: 1.05rem;
    line-height: 1;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    filter: brightness(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.back-to-top:active {
    transform: translateY(1px);
}

html.mobile-nav-is-open .back-to-top {
    opacity: 0 !important;
    transform: translateY(10px) !important;
    pointer-events: none !important;
}

.apps-carousel__nav-icon {
    display: inline-block;
    transform-origin: center;
}

html[dir='rtl'] .apps-carousel__nav--next .apps-carousel__nav-icon {
    transform: rotate(180deg);
}

html[dir='rtl'] .apps-carousel__nav--prev .apps-carousel__nav-icon {
    transform: rotate(0deg);
}

html[dir='ltr'] .apps-carousel__nav--prev .apps-carousel__nav-icon {
    transform: rotate(180deg);
}

html[dir='ltr'] .apps-carousel__nav--next .apps-carousel__nav-icon {
    transform: rotate(0deg);
}

/* Global safety nets for responsive layouts */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* RTL + Persian typography helpers */
html[dir='rtl'] body {
    direction: rtl;
    text-align: right;
    font-family: Vazirmatn, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Make numbers align nicer in Persian UI */
body {
    font-variant-numeric: proportional-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Details/Summary: remove default marker */
details > summary::-webkit-details-marker {
    display: none;
}

/* Header: cartoon submenu (click-to-open details) */
.nav-cartoon-dropdown:not([open]) .nav-cartoon-panel {
    display: none;
}

.nav-cartoon-dropdown[open] .nav-cartoon-summary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nav-cartoon-summary.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Global links — no underlines or bottom borders */
a,
a:hover,
a:focus,
a:active,
a.active,
.nav-link,
.nav-link.active,
.mobile-nav-link,
.mobile-nav-link.active,
.site-header a,
.mobile-navigation a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none;
}

.nav-link.active,
.mobile-nav-link.active,
.nav-cartoon-summary.active {
    border-bottom: none !important;
}

@media (min-width: 768px) {
    .nav-cartoon-dropdown .nav-cartoon-panel {
        animation: navCartoonFadeIn 0.18s ease-out;
    }
}

@keyframes navCartoonFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -4px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================================
   ACCORDION (details/summary) - animated + independent
   ============================================ */

.accordion {
    /* each accordion item manages its own open state */
    --accordion-panel-h: 0px;
}

.accordion > .accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}

.accordion > .accordion-trigger:active {
    transform: translateY(1px);
}

.accordion .accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 420ms cubic-bezier(0.33, 1, 0.68, 1), opacity 240ms ease,
        transform 240ms ease;
    will-change: max-height, opacity, transform;
}

.accordion[open] .accordion-panel {
    max-height: var(--accordion-panel-h, 999px);
    opacity: 1;
    transform: translateY(0);
}

/* Nice focus ring on the clickable summary */
.accordion > .accordion-trigger:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 6px;
    border-radius: 14px;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent flex/grid children from forcing horizontal overflow */
*,
*::before,
*::after {
    min-width: 0;
}

/* ============================================
   FLOATING ANIMATIONS
   ============================================ */

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) rotate(16deg);
    }
    50% {
        transform: translateY(-12px) rotate(18deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0) rotate(-14deg);
    }
    50% {
        transform: translateY(-10px) rotate(-12deg);
    }
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

@keyframes blob-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(10px, -10px) scale(1.05);
    }
    50% {
        transform: translate(-5px, 15px) scale(0.95);
    }
    75% {
        transform: translate(-15px, -5px) scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes bounce-in {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-gentle {
    animation: float-gentle 4s ease-in-out infinite;
}

.animate-blob {
    animation: blob-move 12s ease-in-out infinite;
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   MODERN BUTTON EFFECTS
   ============================================ */

.btn-modern {
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:active {
    transform: translateY(1px);
}

/* ============================================
   MODERN CARD STYLES
   ============================================ */

.card-modern {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card-modern:hover {
    box-shadow: var(--shadow-strong);
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

.hero-section {
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-promotional-card {
    background: linear-gradient(135deg, rgba(77, 122, 171, 0.95) 0%, rgba(58, 99, 148, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-feature-chips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

.hero-feature-chip i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.hero-cta-btn {
    background: #ffffff !important;
    color: #2f4a6b !important;
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hero-cta-btn:hover {
    background: #f8fbff !important;
    color: #2f4a6b !important;
}

.hero-cta-btn--soft {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: none;
}

.hero-cta-btn--soft:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .hero-main-image {
        margin-bottom: -0.5rem;
    }

    .hero-promotional-card-wrapper::before {
        content: '';
        position: absolute;
        top: -1.25rem;
        left: 12%;
        right: 12%;
        height: 1.25rem;
        background: linear-gradient(180deg, transparent 0%, rgba(58, 99, 148, 0.15) 100%);
        pointer-events: none;
        border-radius: 1rem 1rem 0 0;
    }
}

/* ============================================
   TIPS SECTION BLOB ANIMATIONS
   ============================================ */

.tips-blob {
    filter: blur(60px);
    animation: blob-move 15s ease-in-out infinite;
}

.tips-blob-1 {
    animation-delay: 0s;
}

.tips-blob-2 {
    animation-delay: -5s;
}

.anim-delay-neg-1s {
    animation-delay: -1s;
}

.anim-delay-neg-2s {
    animation-delay: -2s;
}

.anim-delay-neg-3s {
    animation-delay: -3s;
}

.anim-delay-neg-4s {
    animation-delay: -4s;
}

.anim-delay-neg-5s {
    animation-delay: -5s;
}

/* ============================================
   MODERN FOCUS STATES
   ============================================ */

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MODERN INTERACTIONS & MICRO-ANIMATIONS
   ============================================ */

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(25deg);
    transition: left 0.6s ease;
}

.btn-shine:hover::after {
    left: 120%;
}

/* Card Lift Effect */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}


/* Icon Bounce on Hover */
.icon-bounce {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-bounce:hover {
    transform: scale(1.15);
}

/* Link Underline Animation */
.link-animated {
    position: relative;
    text-decoration: none;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-animated:hover::after {
    width: 100%;
}

/* Pulse Animation for CTAs */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-cta {
    position: relative;
}

.pulse-cta::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

/* Gradient Border Animation */
@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    position: relative;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #6b97c4, #8eb3d6, #4d7aab, #6b97c4) border-box;
    background-size: 100% 100%, 400% 100%;
    border: 2px solid transparent;
    animation: gradient-rotate 8s linear infinite;
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Elastic Scale */
.elastic-scale {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.elastic-scale:active {
    transform: scale(0.95);
}

/* Text Gradient Animation */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, #6b97c4, #8eb3d6, #4d7aab, #6b97c4);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 5s ease infinite;
}

/* Magnetic Button Effect */
.magnetic-btn {
    transition: transform 0.2s ease;
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger-in 0.5s ease forwards;
}

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Glow Effect on Hover */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(107, 151, 196, 0.4);
}

/* Rotate on Hover */
.rotate-hover {
    transition: transform 0.4s ease;
}

.rotate-hover:hover {
    transform: rotate(5deg);
}

/* Scale Image on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.4s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* ============================================
   ACCESSIBLE INPUT FOCUS STYLES
   Fixed from problematic outline:none !important
   ============================================ */

/* Modern Input Focus - specific class override */
.input-modern:focus {
    outline: none;
}

/* Remove default outline only on mouse focus, show on keyboard focus */
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Clear focus indicator for keyboard navigation (WCAG compliant) */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(107, 151, 196, 0.15);
    border-color: var(--color-primary);
    transition: outline var(--transition-fast), box-shadow var(--transition-fast);
}

/* Floating Label Animation */
.float-label {
    position: relative;
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.85);
    color: var(--color-primary);
}

/* Progress Bar Animation */
@keyframes progress-fill {
    from {
        width: 0;
    }
}

.progress-animated {
    animation: progress-fill 1.5s ease-out forwards;
}

/* Skeleton Loading */
@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* Touch Feedback for Mobile */
@media (hover: none) {
    .touch-feedback:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
}

/* ============================================
   CARTOON CAROUSEL - Clean Slide System
   ============================================ */
.cartoon-slide {
    width: 320px;
    max-width: 85vw;
    height: auto;
    display: flex;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    opacity: 0.94;
}

.cartoon-slide.swiper-slide-active {
    opacity: 1;
    z-index: 4;
}

.cartoon-slide.swiper-slide-prev,
.cartoon-slide.swiper-slide-next {
    z-index: 1;
}

.cartoon-slide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 520px;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(220, 232, 244, 0.95);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 26px rgba(31, 51, 78, 0.1);
    transition: box-shadow 0.4s cubic-bezier(0.33, 1, 0.68, 1), border-color 0.4s ease;
}

.swiper-slide-active .cartoon-slide-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(107, 151, 196, 0.35);
    box-shadow: 0 20px 48px rgba(107, 151, 196, 0.24), 0 0 0 1px rgba(107, 151, 196, 0.12);
}

.cartoon-slide-card__icon {
    width: 140px;
    height: 140px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cartoon-slide-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(32, 48, 71, 0.12));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.swiper-slide-active .cartoon-slide-card__icon img {
    transform: scale(1.08);
    filter: drop-shadow(0 16px 28px rgba(32, 48, 71, 0.16));
}

.cartoon-slide-card__title {
    font-family: var(--font-display, inherit);
    font-size: 1.5rem;
    font-weight: 900;
    color: #2f4a6b;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.cartoon-slide-card__subtitle {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6a87a6;
    margin-bottom: 0.75rem;
}

.cartoon-slide-card__extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    opacity: 0.92;
    transform: translateY(2px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-slide-active .cartoon-slide-card__extra {
    opacity: 1;
    transform: translateY(0);
}

.cartoon-slide-card__desc {
    max-width: 300px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.75;
    color: #556f8e;
    margin: 0;
}

.cartoon-slide-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 260px;
    margin-top: 0.5rem;
}

/* Carousel nav buttons */
.apps-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    height: 48px;
    width: 48px;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(168deg, #8eb3d6 0%, #6b97c4 42%, #3a6394 100%);
    color: white;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(107, 151, 196, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.apps-carousel__nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.apps-carousel__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.apps-carousel__nav--prev {
    inset-inline-start: 0;
    inset-inline-end: auto;
}

.apps-carousel__nav--next {
    inset-inline-end: 0;
    inset-inline-start: auto;
}

.slider-section .apps-carousel {
    position: relative;
}

.slider-section .mySwiper {
    overflow: hidden;
    margin-inline: auto;
}

.slider-section .swiper-wrapper {
    align-items: center;
}

.apps-carousel__nav.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.apps-carousel__nav::after { display: none; }

.apps-carousel__nav-icon { font-size: 1rem; }

.cartoon-pagination {
    text-align: center;
}

.cartoon-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(107, 151, 196, 0.3);
    opacity: 1;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.cartoon-pagination .swiper-pagination-bullet-active {
    background: #6b97c4;
    width: 24px;
    border-radius: 6px;
}

@media (max-width: 575px) {
    .cartoon-slide {
        width: 100%;
        max-width: 100%;
        opacity: 1;
    }

    .cartoon-slide-card {
        min-height: auto;
    }

    .cartoon-slide-card__extra {
        opacity: 1;
        transform: none;
    }

    .cartoon-slide-card__icon {
        width: 110px;
        height: 110px;
    }

    .cartoon-slide-card__title {
        font-size: 1.3rem;
    }

    .apps-carousel__nav {
        display: none;
    }
}

@media (min-width: 576px) {
    .cartoon-slide {
        width: 320px;
    }

    .cartoon-slide-card__icon {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 768px) {
    .cartoon-slide-card {
        padding: 2.5rem 2rem;
    }

    .cartoon-slide-card__icon {
        width: 180px;
        height: 180px;
    }

    .cartoon-slide-card__title {
        font-size: 1.75rem;
    }
}

/* ============================================
   RESPONSIVE MOBILE STYLES
   ============================================ */

@media (max-width: 575px) {
    .site-header {
        background: rgba(107, 151, 196, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .back-to-top {
        height: 50px;
        width: 50px;
    }

    .hero-pagination-dots .pagination-dot {
        width: 8px !important;
        height: 8px !important;
    }

    .hero-pagination-dots .pagination-dot.active {
        width: 12px !important;
        height: 12px !important;
    }

    /* Mobile slider handled by .cartoon-slide rules above */

    /* Hero section mobile fixes */
    .hero-section {
        min-height: auto !important;
        padding-bottom: 2rem !important;
    }

    .hero-promotional-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }

    .promo-card-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .promo-text-content {
        text-align: center !important;
    }

    /* Sections already use px-4 on their inner containers */

    /* Touch targets — scoped (do not blow up hero dots / inline text links) */
    .site-header a,
    .mobile-navigation a,
    .hero-section a.inline-flex,
    .hero-promotional-card a,
    .slider-section .cartoon-slide-card__extra a,
    .category-pill,
    .footer-nav__link,
    button:not(.pagination-dot):not(.action-mini):not(.ce-like-trigger):not(.ce-book-btn) {
        min-height: 44px;
    }
}

/* Hero / promo links — no default underline */
.hero-section a.inline-flex,
.hero-promotional-card a.app-install-button {
    text-decoration: none;
    color: inherit;
}

/* Tablet-specific styles */
@media (min-width: 576px) and (max-width: 1023px) {
    .slider-section .mySwiper .cartoon-slide-card {
        min-height: 520px;
    }

    .slider-section .mySwiper .cartoon-slide-card__icon {
        height: 160px;
        width: 160px;
    }
}

/* Desktop enhancements */
@media (min-width: 1024px) {
    .slider-section .mySwiper .cartoon-slide-card {
        transition: box-shadow 0.4s ease, border-color 0.4s ease;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark mode preference (for future) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles */
}

/* Pricing cards use flex-col with mt-auto in template classes */

/* Homepage — short vs long cartoon cards */
.home-format-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    border-radius: 1.5rem;
    border: 2px solid #dde7f2;
    background: #fff;
    box-shadow: 0 12px 32px rgba(47, 74, 107, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    color: inherit;
    min-height: 100%;
}

.home-format-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(47, 74, 107, 0.14);
}

.home-format-card--short:hover {
    border-color: #8eb3d6;
}

.home-format-card--long {
    background: linear-gradient(145deg, #1e3350 0%, #2f4a6b 100%);
    border-color: #4d7aab;
    color: #fff;
}

.home-format-card--long .home-format-card__desc,
.home-format-card--long .home-format-card__cta {
    color: rgba(255, 255, 255, 0.88);
}

.home-format-card--long .home-format-card__title {
    color: #fff;
}

.home-format-card__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #eef5ff;
    color: #6b97c4;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.home-format-card--long .home-format-card__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.home-format-card__title {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 900;
    color: #2f4a6b;
    margin: 0 0 0.5rem;
}

.home-format-card__desc {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    color: #5e7a99;
    flex: 1;
    margin: 0 0 1rem;
}

.home-format-card__cta {
    font-size: 0.85rem;
    font-weight: 900;
    color: #6b97c4;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* فروشگاه توسط تنظیمات سایت غیرفعال: هدر و منوی موبایل */
body[data-store-enabled="0"] .site-header a[href^="/store/"],
body[data-store-enabled="0"] .site-header a[aria-label="سبد خرید"],
body[data-store-enabled="0"] .site-header [data-nav-link="store"],
body[data-store-enabled="0"] .mobile-navigation a[href^="/store/"],
body[data-store-enabled="0"] .mobile-navigation [data-nav-link="store"],
body[data-store-enabled="0"] .site-footer a[href^="/store/"] {
    display: none !important;
}