@import url('css/fonts.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: clip;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Arial', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Homepage header and footer span the full viewport width like big platforms:
   the logo / login buttons and the footer link columns reach the real screen
   edges instead of stopping at the 1200px content column. */
.header > .container,
.footer > .container {
    max-width: none;
    padding-inline: clamp(18px, 3.5vw, 56px);
}

/* ==================== */
/* Header */
/* ==================== */
/* Header — white bar with proper visibility */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Homepage header: a 1fr auto 1fr grid pins the logo to one edge and the
   login/register actions to the opposite edge while the nav links stay truly
   centered in the middle, regardless of how wide the side items are. */
.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.header-content > .subpage-logo {
    justify-self: start; /* RTL: far right edge */
}

.header-content > .subpage-header-actions {
    justify-self: end; /* RTL: far left edge */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 52px;
    width: auto;
    transition: height 0.2s ease;
}

.header:hover .logo-img {
    height: 56px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    display: none;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

/* ===== Subpage-style header (same as legal/marketing pages) ===== */
.subpage-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.subpage-logo:hover {
    transform: scale(1.02);
}

.subpage-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.subpage-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.subpage-nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 8px;
}

.subpage-nav-links a:hover,
.subpage-nav-links a.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

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

.subpage-lang-toggle {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.subpage-lang-toggle:hover {
    border-color: #2563eb;
    background: #f3f4f6;
}

.subpage-lang-toggle {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.subpage-lang-toggle:hover {
    border-color: #2563eb;
    background: #f3f4f6;
}

.btn-secondary-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary-nav:hover {
    background: #f1f5f9;
    color: #2563eb;
    border-color: #94a3b8;
}

/* Login button — merchant-provided design: purple pill with an arrow that
   extends on hover (arrow mirrored for RTL so it points "forward"). */
.btn-login {
    --login-primary: #645bff;
    --login-secondary: #fff;
    --login-hover: #111;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    color: var(--login-secondary);
    padding: 0.8em 1.6em;
    background: var(--login-primary);
    display: inline-flex;
    transition: 0.2s background;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
}

.btn-login .arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-login .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    background: var(--login-primary);
    height: var(--arrow-stroke);
    position: relative;
    transition: 0.2s;
    /* the source design points right (LTR); the site is RTL so mirror it */
    transform: scaleX(-1);
}

.btn-login .arrow::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    border: solid var(--login-secondary);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    display: inline-block;
    top: -3px;
    right: 3px;
    transition: 0.2s;
    padding: 3px;
    transform: rotate(-45deg);
}

.btn-login:hover {
    background-color: var(--login-hover);
}

.btn-login:hover .arrow {
    background: var(--login-secondary);
}

.btn-login:hover .arrow::before {
    right: 0;
}

.language-toggle {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

/* Modern Animated Mobile Burger Menu */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    padding: 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.menu-toggle:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

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

.menu-toggle span {
    display: block;
    position: absolute;
    width: 20px;
    height: 2.2px;
    background: #374151;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
    transform: translateY(0);
    width: 15px;
    margin-right: 5px;
    transition: all 0.25s ease;
}

.menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.menu-toggle:hover span:nth-child(2) {
    width: 20px;
    margin-right: 0;
}

/* Open / Active State (Animated Morph to X) */
.menu-toggle.open,
.menu-toggle.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.3);
}

.menu-toggle.open span:nth-child(1),
.menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
    background: #2563eb;
}

.menu-toggle.open span:nth-child(2),
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(12px);
}

.menu-toggle.open span:nth-child(3),
.menu-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
    background: #2563eb;
}

.mobile-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 10px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.985);
    transform-origin: top center;
    transition: opacity .28s ease, transform .32s cubic-bezier(.2,.8,.2,1), visibility .28s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#mobileMenu > * { opacity: 0; transform: translateY(-8px); transition: opacity .24s ease, transform .28s ease; }
#mobileMenu.active > * { opacity: 1; transform: translateY(0); }
#mobileMenu.active > *:nth-child(1) { transition-delay: .035s; }
#mobileMenu.active > *:nth-child(2) { transition-delay: .075s; }
#mobileMenu.active > *:nth-child(3) { transition-delay: .115s; }
#mobileMenu.active > *:nth-child(4) { transition-delay: .155s; }
#mobileMenu.active > *:nth-child(5) { transition-delay: .195s; }
#mobileMenu.active > *:nth-child(6) { transition-delay: .235s; }
#mobileMenu.active > *:nth-child(7) { transition-delay: .275s; }
#mobileMenu.active > *:nth-child(8) { transition-delay: .315s; }
#mobileMenu.active > *:nth-child(9) { transition-delay: .355s; }
#mobileMenu.active > *:nth-child(10) { transition-delay: .395s; }

@media (prefers-reduced-motion: reduce) {
    .mobile-menu, #mobileMenu > * { transition: none !important; transform: none !important; }
}

/* Mobile menu links: keep strong contrast on the white dropdown.
   A previous duplicate rule set a light text color on a white background. */
#mobileMenu .mobile-menu-link,
#mobileMenu .mobile-menu-link:visited {
    display: block;
    color: #1f2937 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

#mobileMenu .mobile-menu-link:hover,
#mobileMenu .mobile-menu-link:focus-visible,
#mobileMenu .mobile-menu-link:active {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.09);
    outline: none;
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e8eaef;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #050510 0%, #0a1128 100%);
    position: relative;
    overflow: hidden;
}

/* Animated starfield video background (DaVinci render) */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    cursor: pointer;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    pointer-events: none; /* empty background clicks fall through to the video */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    pointer-events: auto; /* cards, text and form keep normal interaction */
}

.hero-text-card {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    position: relative;
}

.hero-slides {
    display: grid;
    position: relative;
    min-height: 190px;
}

.hero-slide {
    position: relative;
    grid-area: 1 / 1;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hero-slide.active {
    position: relative;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.85;
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* Brief pause/play icon flashed when the starfield is clicked */
.hero-video-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-video-hint.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
    background: #60a5fa;
    transform: scale(1.3);
}

.hero-media {
    flex: 1.25;
    min-width: 0;
    width: 100%;
    max-width: 560px;
    min-height: 490px;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8faff 0%, #f3f0ff 50%, #eff6ff 100%);
    border: 1px solid rgba(224, 231, 255, 0.95);
    box-shadow: 0 25px 60px -15px rgba(79, 70, 229, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    contain: layout paint;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-media-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.hero-media-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Hidden scenes must not animate or create paint layers behind the visible slide. */
.hero-media-slide:not(.active) {
    visibility: hidden;
}
.hero-media-slide:not(.active) *,
.hero-media-slide:not(.active) *::before,
.hero-media-slide:not(.active) *::after {
    animation: none !important;
}

/* ========================================= */
/* SHARED SCENE COMPONENTS & AMBIENT GLOWS   */
/* ========================================= */
.scene-container {
    position: relative;
    width: 100%;
    max-width: 490px;
    height: 100%;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Ambient Glow Blobs */
.scene-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(65px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.glow-indigo {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(79, 70, 229, 0) 70%);
    top: 10%;
    right: 5%;
}

.glow-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(124, 58, 237, 0) 70%);
    bottom: 5%;
    left: 5%;
    animation-delay: 3s;
}

.glow-gold {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(217, 119, 6, 0) 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.45; }
    50% { transform: scale(1.15) translate(-10px, 8px); opacity: 0.7; }
    100% { transform: scale(1) translate(8px, -10px); opacity: 0.55; }
}

/* Live Status Dot */
.live-dot {
    display: inline-block;
    width: 7.5px;
    height: 7.5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    vertical-align: middle;
    margin-inline-end: 4px;
}

.live-dot.pulse {
    animation: beaconPulse 1.8s ease-in-out infinite;
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

/* Sparkle Stars */
.anim-sparkle-star {
    position: absolute;
    font-size: 15px;
    color: #818cf8;
    pointer-events: none;
    z-index: 10;
    animation: sparkleTwinkle 3s ease-in-out infinite;
}

.anim-sparkle-star.sp-1 { top: 12px; left: 24px; animation-delay: 0s; font-size: 17px; color: #a855f7; }
.anim-sparkle-star.sp-2 { top: 32px; right: 18px; animation-delay: 1.2s; font-size: 13px; color: #fbbf24; }
.anim-sparkle-star.sp-3 { bottom: 20px; right: 28px; animation-delay: 2.1s; font-size: 16px; color: #6366f1; }

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.25) rotate(45deg); }
}

/* ========================================= */
/* SCENE 0: MODERN STOREFRONT & PRODUCT GRID */
/* ========================================= */
.scene-storefront {
    z-index: 1;
}

/* Floating Sale Toast */
.scene-toast {
    position: absolute;
    top: 0px;
    right: 8px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 231, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 12px 28px -6px rgba(79, 70, 229, 0.16), 0 0 1px 1px rgba(79, 70, 229, 0.05);
    animation: floatGentle 3.5s ease-in-out infinite;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
    flex-shrink: 0;
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.2;
}

.toast-desc {
    font-size: 10.5px;
    color: #6b7280;
    margin-top: 2px;
}

.toast-price {
    color: #10b981;
    font-weight: 800;
}

/* Browser Window Frame */
.storefront-window {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 231, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 24px 48px -15px rgba(79, 70, 229, 0.16), 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: 24px;
    animation: floatSlow 4s ease-in-out infinite;
}

.window-header {
    height: 38px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 8px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.w-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.w-dot.red { background: #ef4444; }
.w-dot.yellow { background: #f59e0b; }
.w-dot.green { background: #10b981; }

.window-omnibar {
    flex: 1;
    max-width: 220px;
    height: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.omni-lock {
    color: #10b981;
    flex-shrink: 0;
}

.omni-url {
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.omni-badge {
    font-size: 9px;
    background: #e0e7ff;
    color: #4f46e5;
    padding: 1.5px 5px;
    border-radius: 4px;
    font-weight: 700;
    margin-inline-start: auto;
}

.window-cart-btn {
    position: relative;
    color: #4f46e5;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
}

.storefront-body {
    padding: 14px;
}

/* Store Banner */
.store-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 12px;
    padding: 12px 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.store-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.store-tag {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.store-name {
    font-size: 14px;
    font-weight: 800;
    margin-top: 3px;
}

.store-live-pill {
    font-size: 10px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    padding: 4px 9px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Products Shelf Grid */
.store-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.store-prod-card {
    background: #ffffff;
    border: 1px solid #eef2ff;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.1);
}

.store-prod-img-wrap {
    height: 70px;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.prod-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.15));
}

.prod-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.prod-badge.discount {
    background: #ef4444;
}

.store-prod-details {
    padding-top: 6px;
}

.store-prod-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-prod-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 2px 0 4px;
}

.stars {
    color: #f59e0b;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.rating-num {
    font-size: 9px;
    color: #64748b;
}

.store-prod-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.store-prod-price {
    font-size: 12px;
    font-weight: 800;
    color: #4f46e5;
}

.store-prod-price small {
    font-size: 8.5px;
    font-weight: 600;
    color: #6b7280;
}

.store-prod-add {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #eef2ff;
    color: #4f46e5;
    border: none;
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.store-prod-add:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Coupon Pill */
.scene-coupon-pill {
    position: absolute;
    bottom: -6px;
    left: 10px;
    z-index: 12;
    background: #ffffff;
    border: 1px dashed #818cf8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10.5px;
    color: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    animation: floatReverse 3.8s ease-in-out infinite;
}

/* ========================================= */
/* SCENE 1: PRODUCT CARDS & 3D SHOWCASE      */
/* ========================================= */
.scene-products {
    z-index: 1;
}

/* Floating Inventory Mini Card (Top Left) */
.floating-mini-card {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 12;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 231, 255, 0.9);
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.14);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 175px;
    animation: floatGentle 4s ease-in-out infinite;
}

.mini-card-icon {
    display: flex;
    align-items: center;
}

.mini-card-text {
    display: flex;
    flex-direction: column;
}

.mini-label {
    font-size: 9.5px;
    color: #64748b;
}

.mini-val {
    font-size: 11px;
    font-weight: 700;
    color: #1e1b4b;
}

.stock-indicator-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.stock-fill {
    display: block;
    width: 78%;
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 2px;
    animation: stockPulse 2s ease-in-out infinite alternate;
}

@keyframes stockPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Central Hero Product Card */
.hero-product-main-card {
    width: 100%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 231, 255, 0.95);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 26px 52px -12px rgba(79, 70, 229, 0.18), 0 0 1px 1px rgba(79, 70, 229, 0.04);
    position: relative;
    z-index: 2;
    margin-top: 18px;
    animation: floatSlow 4.5s ease-in-out infinite;
}

.main-card-top-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.hot-badge {
    background: linear-gradient(135deg, #fee2e2 0%, #fecdd3 100%);
    color: #e11d48;
    font-size: 10px;
    font-weight: 700;
    padding: 3.5px 9px;
    border-radius: 12px;
}

.fast-ship {
    font-size: 9.5px;
    color: #4f46e5;
    font-weight: 700;
}

.main-card-visual {
    height: 125px;
    background: radial-gradient(circle at 50% 60%, #eef2ff 0%, #f8faff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.headphones-svg {
    width: 90%;
    height: 90%;
    filter: drop-shadow(0 8px 16px rgba(79, 70, 229, 0.18));
}

.main-card-info {
    padding-top: 14px;
}

.main-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.main-prod-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #1e1b4b;
}

.main-prod-sub {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
}

.color-swatches {
    display: flex;
    gap: 6px;
    padding-top: 2px;
}

.swatch {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--c);
    cursor: pointer;
    position: relative;
}

.swatch.active::after {
    content: '';
    position: absolute;
    inset: -2.5px;
    border-radius: 50%;
    border: 1.5px solid var(--c);
}

.main-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.main-price-box {
    display: flex;
    flex-direction: column;
}

.main-price {
    font-size: 17px;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
}

.main-price small {
    font-size: 10.5px;
    font-weight: 600;
    color: #6b7280;
}

.old-price {
    font-size: 10.5px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 2px;
}

.main-buy-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

/* Floating Review Bubble (Bottom Right) */
.floating-review-bubble {
    position: absolute;
    bottom: -4px;
    right: 4px;
    z-index: 12;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(224, 231, 255, 0.9);
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.15);
    display: flex;
    align-items: center;
    gap: 9px;
    animation: floatReverse 3.8s ease-in-out infinite;
}

.reviewer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stars-gold {
    color: #f59e0b;
    font-size: 10px;
    font-weight: 700;
}

.review-score {
    color: #1e293b;
    font-size: 9.5px;
    font-weight: 800;
    margin-inline-start: 2px;
}

.review-comment {
    font-size: 10px;
    color: #475569;
    font-weight: 500;
}

/* ========================================= */
/* SCENE 2: EXPRESS SHIPPING & PAYMENT CARDS */
/* ========================================= */
.scene-shipping {
    z-index: 1;
}

/* Delivery Route Card (Top) */
.delivery-route-card {
    width: 100%;
    max-width: 410px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 231, 255, 0.9);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 18px 40px -10px rgba(79, 70, 229, 0.14);
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    animation: floatSlow 4s ease-in-out infinite;
}

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

.route-title-badge {
    font-size: 11px;
    font-weight: 700;
    color: #1e1b4b;
    display: flex;
    align-items: center;
}

.route-est {
    font-size: 9.5px;
    color: #4f46e5;
    font-weight: 700;
    background: #eef2ff;
    padding: 2.5px 7px;
    border-radius: 6px;
}

.route-track-wrap {
    position: relative;
    padding: 8px 4px 4px;
}

.route-waypoints {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.waypoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.wp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4f46e5;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #c7d2fe;
}

.wp-label {
    font-size: 9.5px;
    font-weight: 700;
    color: #475569;
}

.express-truck-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 4px 0 -4px;
    animation: truckRumble 2s ease-in-out infinite;
}

.truck-svg {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(79, 70, 229, 0.22));
}

.wheel-spin {
    transform-origin: center;
    animation: spinRims 1.2s linear infinite;
}

@keyframes spinRims {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes truckRumble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.route-road-line {
    width: 100%;
    height: 3.5px;
    background: repeating-linear-gradient(90deg, #4f46e5 0, #4f46e5 8px, transparent 8px, transparent 14px);
    border-radius: 2px;
    margin-top: 5px;
    opacity: 0.55;
    animation: roadMove 2s linear infinite;
}

@keyframes roadMove {
    from { background-position: 0 0; }
    to { background-position: -28px 0; }
}

/* Dual Payment Cards Cluster */
.payment-cards-cluster {
    position: relative;
    width: 100%;
    max-width: 390px;
    height: 175px;
    z-index: 2;
}

.pay-card-modern {
    position: absolute;
    width: 255px;
    height: 142px;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Background Purple Card */
.card-purple-back {
    left: 20px;
    top: 0;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
    color: #ffffff;
    transform: rotate(-6deg);
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: floatGentle 4.2s ease-in-out infinite;
}

/* Foreground Edahabia Gold Card */
.card-edahabia {
    right: 20px;
    top: 18px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 40%, #b45309 80%, #78350f 100%);
    color: #ffffff;
    transform: rotate(4deg);
    z-index: 2;
    border: 1px solid rgba(254, 243, 199, 0.4);
    box-shadow: 0 22px 45px -10px rgba(180, 83, 9, 0.38);
    animation: floatSlow 4s ease-in-out infinite;
}

.card-sheen {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
    transform: skewX(-25deg) translateX(-166.67%);
    animation: cardShimmer 4s ease-in-out infinite;
}

@keyframes cardShimmer {
    0%, 70% { transform: skewX(-25deg) translateX(-166.67%); }
    100% { transform: skewX(-25deg) translateX(333.33%); }
}

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

.edahabia-brand {
    display: flex;
    flex-direction: column;
}

.edahabia-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.edahabia-sub {
    font-size: 7.5px;
    letter-spacing: 1px;
    opacity: 0.85;
    font-family: system-ui, sans-serif;
}

.card-brand-logo {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
}

.card-nfc {
    opacity: 0.85;
}

.card-mid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.card-chip-gold {
    width: 30px;
    height: 22px;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    border-radius: 4px;
    border: 1px solid #b45309;
    position: relative;
    overflow: hidden;
}

.card-chip-gold.mini {
    width: 24px;
    height: 18px;
}

.chip-lines {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #b45309 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.6;
}

.card-holder-name {
    font-size: 8.5px;
    letter-spacing: 1px;
    font-weight: 700;
    opacity: 0.9;
    font-family: system-ui, sans-serif;
}

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

.card-num-text, .card-num-masked {
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cib-badge {
    font-size: 9.5px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.payment-verified-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 10.5px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18);
    white-space: nowrap;
    animation: floatReverse 3.6s ease-in-out infinite;
}

/* ========================================= */
/* SCENE 3: REAL-TIME DASHBOARD & METRICS    */
/* ========================================= */
.scene-dashboard {
    z-index: 1;
}

.dash-window {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(224, 231, 255, 0.9);
    border-radius: 18px;
    box-shadow: 0 26px 52px -12px rgba(79, 70, 229, 0.16), 0 0 1px 1px rgba(79, 70, 229, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
    animation: floatSlow 4s ease-in-out infinite;
}

.dash-top-bar {
    height: 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.dash-status-indicator {
    font-size: 12px;
    font-weight: 700;
    color: #1e1b4b;
    display: flex;
    align-items: center;
}

.dash-date-pill {
    font-size: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 2.5px 9px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

/* 3 KPI Grid */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 14px 8px;
}

.dash-kpi-card {
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
}

.dash-kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-primary { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); border: 1px solid #c7d2fe; }
.kpi-success { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border: 1px solid #a7f3d0; }
.kpi-warning { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border: 1px solid #fde68a; }

.kpi-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
}

.kpi-badge-up {
    font-size: 8.5px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    padding: 1.5px 5px;
    border-radius: 4px;
}

.kpi-val {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.1;
}

.kpi-val small {
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
}

/* Dynamic Area Chart Area */
.dash-chart-wrapper {
    padding: 8px 14px 14px;
}

.chart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chart-title {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.chart-peak-tag {
    font-size: 9.5px;
    color: #4f46e5;
    font-weight: 700;
}

.svg-chart-container {
    position: relative;
    width: 100%;
    height: 105px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    overflow: visible;
}

.live-area-chart {
    width: 100%;
    height: 100%;
}

.anim-chart-path {
    stroke-dasharray: 450;
    stroke-dashoffset: 450;
    animation: drawPath 3.5s ease-in-out infinite alternate;
}

@keyframes drawPath {
    0% { stroke-dashoffset: 450; }
    50%, 100% { stroke-dashoffset: 0; }
}

.radar-circle {
    animation: radarPulse 2s ease-out infinite;
    transform-origin: 285px 18px;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Floating Chart Tooltip */
.chart-tooltip-box {
    position: absolute;
    top: 6px;
    right: 32px;
    background: #1e1b4b;
    color: #ffffff;
    padding: 5px 9px;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 10;
    animation: floatGentle 3s ease-in-out infinite;
}

.chart-tooltip-box::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 18px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #1e1b4b;
}

.tt-val {
    font-size: 10.5px;
    font-weight: 800;
    color: #34d399;
}

.tt-sub {
    font-size: 8px;
    color: #cbd5e1;
}

/* Floating Goal Toast (Bottom) */
.dash-goal-toast {
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    z-index: 12;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 10.5px;
    font-weight: 700;
    color: #4338ca;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 10px 24px -6px rgba(79, 70, 229, 0.18);
    white-space: nowrap;
    animation: floatReverse 3.8s ease-in-out infinite;
}

/* ========================================= */
/* GENERAL ANIMATIONS                        */
/* ========================================= */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes floatGentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-form input[type="email"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
    background: rgba(15, 23, 42, 0.75);
}

.newsletter-form .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* Features Section */
/* ==================== */
.features {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: #4b5563;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ==================== */
/* Why Choose Us Section */
/* ==================== */
.why {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.why .section-header h2 {
    color: #ffffff;
}

.why .section-header p {
    color: #94a3b8;
}

.why .feature-card {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.why .feature-card:hover {
    border-color: var(--primary-color);
}

/* Collapsible "Why Choose Us" grid + show more/less button */
#why .features-grid:not(.why-expanded) > .feature-card:nth-child(n+5) {
    display: none;
}

#why .features-grid.why-expanded > .feature-card:nth-child(n+5) {
    display: block;
    animation: whyFadeIn 0.5s ease backwards;
}

@keyframes whyFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.why-more-btn {
    position: relative;
    display: block;
    margin: 40px auto 0;
    padding: 10px 20px;
    border-radius: 7px;
    border: 1px solid rgb(61, 106, 255);
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    transition: all 0.2s ease-in;
    cursor: pointer;
}

.why-more-btn:hover {
    background: rgb(61, 106, 255);
    box-shadow: 0 0 30px 5px rgba(0, 142, 236, 0.815);
    transition: all 0.2s ease-out;
}

.why-more-btn:hover::before {
    animation: sh02 0.5s 0s linear;
}

.why-more-btn::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from { opacity: 0; left: 0%; }
    50% { opacity: 1; }
    to { opacity: 0; left: 100%; }
}

.why-more-btn:active {
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease-in;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.feature-badge.pro {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.feature-badge.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* ==================== */
/* Templates Section */
/* ==================== */
.templates {
    padding: 80px 0;
    background: var(--secondary-color);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    text-align: right;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.template-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    padding: 16px;
    display: flex;
    align-items: stretch;
}

.template-image.modern {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.template-image.classic,
.template-image.customizer {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    position: relative;
}

.template-image.customizer::after {
    content: '</> Theme Studio & Customizer';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    z-index: 2;
}

.template-image.minimal {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
}

/* Lightweight CSS-only theme previews (fast, no images/iframes) */
.tpl-mock {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.3);
    display: flex;
    flex-direction: column;
}

.tpl-bar { display: flex; align-items: center; gap: 6px; padding: 9px 10px; background: #0f172a; }
.tpl-bar .tpl-dot { width: 16px; height: 6px; border-radius: 3px; background: #fff; opacity: .9; }
.tpl-bar .tpl-bar-line { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.tpl-bar .tpl-chip { width: 26px; height: 10px; border-radius: 5px; background: #2563eb; }

.tpl-hero { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 10px; background: linear-gradient(135deg, #eff6ff, #e0e7ff); }
.tpl-h-line { display: block; height: 7px; border-radius: 4px; background: #1e293b; opacity: .85; }
.tpl-h-line.lg { width: 70%; }
.tpl-h-line.sm { width: 45%; background: #64748b; opacity: .55; }
.tpl-h-btn { width: 52px; height: 14px; border-radius: 7px; background: #2563eb; margin-top: 2px; }

.tpl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 10px 12px; flex: 1; }
.tpl-cards span { border-radius: 6px; background: linear-gradient(160deg, #f1f5f9, #e2e8f0); border: 1px solid #e2e8f0; }

.tpl-builder { flex-direction: row; }
.tpl-sidebar { width: 34%; background: #1e1b4b; padding: 10px 8px; display: flex; flex-direction: column; gap: 7px; }
.tpl-sidebar span { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.tpl-sidebar span:nth-child(2) { width: 70%; }
.tpl-sidebar span:nth-child(3) { width: 85%; background: #a78bfa; }
.tpl-canvas { flex: 1; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; background: #f8fafc; }
.tpl-canvas .blk { height: 34px; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(2, 6, 23, .04); }
.tpl-canvas .blk.wide { grid-column: 1 / -1; background: linear-gradient(135deg, #ede9fe, #dbeafe); height: 40px; }
.tpl-canvas .blk.tall { height: 52px; }

.tpl-nav { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; }
.tpl-logo { width: 34px; height: 8px; border-radius: 4px; background: #0f172a; }
.tpl-nav-links { display: flex; gap: 6px; }
.tpl-nav-links i { width: 18px; height: 6px; border-radius: 3px; background: #cbd5e1; }
.tpl-lp { flex: 1; display: flex; gap: 10px; align-items: center; padding: 4px 12px 12px; }
.tpl-lp-text { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.tpl-lp-img { width: 42%; height: 88px; border-radius: 8px; background: linear-gradient(135deg, #fed7aa, #fdba74); }

.template-card h3 {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 700;
}

.template-card p {
    padding: 0 20px 15px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.template-card .btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

/* ==================== */
/* Email Templates Section */
/* ==================== */
.email-templates {
    background: white;
}

.email-mockup {
    width: 100%;
    height: 200px;
    padding: 22px;
    box-sizing: border-box;
    overflow: hidden;
}

.email-mockup .mock-head {
    height: 34px;
    border-radius: 8px 8px 0 0;
}

.email-mockup .mock-body {
    background: white;
    padding: 16px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mock-line {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-bottom: 10px;
}

.mock-line.short {
    width: 65%;
}

.mock-btn {
    height: 26px;
    width: 45%;
    border-radius: 6px;
    margin-top: 12px;
}

.email-mockup.classic {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.email-mockup.classic .mock-head {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

.email-mockup.classic .mock-btn {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

.email-mockup.gradient {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.email-mockup.gradient .mock-head {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.email-mockup.gradient .mock-btn {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

.email-mockup.minimal {
    background: #f1f5f9;
}

.email-mockup.minimal .mock-head {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.email-mockup.minimal .mock-btn {
    background: #0f172a;
}

.email-mockup.code {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.email-mockup.code .mock-head {
    background: #334155;
}

.code-line {
    background: #0b1220;
    height: auto;
    padding: 3px 8px;
}

.code-line span {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #22d3ee;
}

.email-mockup.code .mock-btn {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.premium-badge {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.email-templates-cta {
    text-align: center;
    margin-top: 35px;
}

/* ==================== */
/* Pricing Section */
/* ==================== */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 240px;
    min-width: min(240px, 100%);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.badge {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.amount {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: #ef4444;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.discount-badge--promo {
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
}

.discount-badge--heartbeat {
    animation: badgeHeartbeat 1.3s ease-in-out infinite;
    will-change: transform;
}

@keyframes badgeHeartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

.month-note {
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.offer-note {
    margin: 10px 0 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #be185d;
    background: #fdf2f8;
    border: 1px dashed #f9a8d4;
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.trial-note {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 7px 12px;
    border-radius: 10px;
}

/* Glowing Pro price */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .pricing-card.featured .amount,
    .pricing-card.popular .glow-price {
        background: linear-gradient(120deg, #06b6d4, #3b82f6, #8b5cf6);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.55));
        animation: amountGlow 2s ease-in-out infinite;
    }
}

@keyframes amountGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.45));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.95));
    }
}

/* Offer countdown */
.offer-countdown {
    margin-top: 12px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
}

.oc-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #93c5fd;
    margin-bottom: 10px;
}

.oc-units {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.oc-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
}

.oc-num {
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fbbf24;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .oc-num {
        background: linear-gradient(180deg, #fbbf24, #f97316);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.oc-txt {
    font-size: 10px;
    color: #cbd5e1;
    margin-top: 2px;
}

.oc-sep {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
}

@media (max-width: 575px) {
    .oc-unit {
        min-width: 40px;
        padding: 5px 4px;
    }
    .oc-num {
        font-size: 18px;
    }
    .oc-sep {
        font-size: 14px;
    }
}

.currency {
    font-size: 16px;
    color: var(--text-light);
}

.pricing-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 14px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn-block {
    margin-top: auto;
}

.pricing-more-btn {
    display: none;
}

/* ==================== */
/* Comparison Table */
/* ==================== */
.comparison {
    padding: 60px 0;
    background: var(--secondary-color);
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: right;
    font-weight: 600;
}

.comparison-price {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 700;
}

.comparison-old {
    font-weight: 400;
    color: #111827;
    text-decoration: line-through;
}

.comparison-discount {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.comparison-table td {
    padding: 20px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tr:hover {
    background: #f9fafb;
}

.comparison-table td:first-child {
    font-weight: 600;
    background: var(--secondary-color);
}



/* ==================== */
/* Testimonials */
/* ==================== */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f9fafb;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.author-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.author-role {
    font-size: 12px;
    color: var(--text-light);
}

/* ==================== */
/* FAQ Section */
/* ==================== */
.faq {
    padding: 80px 0;
    background: var(--secondary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-icon {
    font-size: 20px;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background: var(--secondary-color);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ==================== */
/* CTA Section */
/* ==================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta .btn {
    background: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background: var(--secondary-color);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: var(--text-dark);
    color: white;
    /* Extra bottom space so the fixed sticky conversion bar never covers the
       copyright / privacy policy line. */
    padding: 60px 0 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    transform: translateX(-5px);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== */
/* Verification Modal */
/* ==================== */
.verify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verify-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 2px solid #2563eb;
    text-align: center;
}

.verify-close {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #e5e7eb;
    color: #6b7280;
    height: 30px;
    width: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.2s ease;
    line-height: 1;
}

.verify-close:hover {
    background: #ef4444;
    color: #ffffff;
}

.verify-info {
    margin-bottom: 24px;
}

.verify-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    display: block;
}

.verify-desc {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

.verify-email-display {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #2563eb;
    font-weight: 600;
    direction: ltr;
}

.verify-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.verify-digit {
    height: 3.2em;
    width: 3.2em;
    outline: none;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    border-radius: 8px;
    border: 2.5px solid #e5e7eb;
    background-color: #f3f4f6;
    transition: 0.3s ease;
}

.verify-digit:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
    background-color: #fff;
}

.verify-error {
    color: #ef4444;
    font-size: 13px;
    margin: 8px 0 0;
    min-height: 20px;
}

.verify-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.verify-btn-primary {
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #1f293b;
    border: 1px solid #374151;
    cursor: pointer;
    transition: 0.2s ease;
}

.verify-btn-primary:hover {
    background: #374151;
}

.verify-btn-secondary {
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: 0.2s ease;
}

.verify-btn-secondary:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.verify-resend {
    margin-top: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.verify-resend a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.verify-resend a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form .btn {
        width: 100%;
    }
    .verify-modal {
        padding: 24px 20px;
    }
    .verify-digit {
        height: 2.8em;
        width: 2.8em;
        font-size: 1.3rem;
    }
}

/* ==================== */
/* Responsive */
/* ==================== */
/* Wide-but-not-huge screens: tighten the centered nav so the pinned edges keep
   their room without pushing the login/register buttons off-screen. */
@media (max-width: 1680px) {
    .subpage-nav-links {
        gap: 14px;
    }

    .subpage-nav-links a {
        font-size: 13px;
        padding: 5px 8px;
    }
}

/* Mid-size desktops: also compact the edge actions so the centered nav stays
   visually centered between the pinned logo and buttons. */
@media (max-width: 1500px) {
    .subpage-lang-toggle {
        padding: 6px 8px;
        font-size: 12px;
    }

    .btn-login {
        padding: 8px 13px;
        font-size: 13.5px;
    }

    .subpage-header-actions .btn-animated {
        min-height: 42px;
        padding: 0 16px;
        font-size: 13.5px;
    }
}

/* Below this width the 8 nav links can no longer fit between the pinned logo
   and actions without squeezing the centered nav aside, so they move into the
   burger menu (works at any width — it is an absolute dropdown under the
   header). Big platforms do the same on mid-size screens. */
@media (max-width: 1300px) {
    .subpage-nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Back to simple flex here: logo — actions — burger in one row. */
    .header-content {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: inline;
    }

    .logo-img {
        height: 44px;
    }

    .nav {
        display: none;
    }

    /* Reduce button sizes on mobile to prevent overlap with burger menu */
    .subpage-header-actions {
        gap: 6px;
    }

    .btn-login {
        padding: 8px 14px;
        font-size: 14px;
    }

    .btn-animated {
        min-height: 42px;
        padding: 0 18px;
        font-size: 14px;
    }

    .btn-animated .ba-label {
        font-size: 14px;
    }

    .btn-animated .ba-reveal {
        font-size: 12px;
    }

    .language-toggle {
        display: none;
    }

    .subpage-lang-toggle {
        display: none;
    }

    @media (max-width: 420px) {
        .btn-secondary-nav {
            display: none;
        }

        /* Further reduce button sizes on very small screens */
        .btn-login {
            padding: 5px 10px;
            font-size: 12px;
        }

        .btn-animated {
            min-height: 34px;
            padding: 0 10px;
            font-size: 12px;
        }

        .btn-animated .ba-label {
            font-size: 12px;
        }

        .btn-animated .ba-reveal {
            display: none;
        }
    }

    .hero-content {
        flex-direction: column;
        gap: 32px;
    }

    .hero-text-card {
        max-width: 100%;
    }

    .hero-media {
        width: 100%;
        max-width: 480px;
        min-height: 440px;
    }

    .hero-slides {
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .section-header h2 {
        font-size: 32px;
    }

    .comparison-table {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* ==== Mobile-only compaction (<=768px) ==== */
    .features,
    .why,
    .templates,
    .pricing,
    .faq,
    .cta,
    .comparison {
        padding: 44px 0;
    }

    section[id="security"],
    section[id="mobile-app"] {
        padding: 40px 0 !important;
    }

    .section-header {
        margin-bottom: 26px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .feature-card {
        padding: 22px 18px;
    }

    .why-more-btn {
        margin-top: 26px;
    }

    /* Features, Templates & Security: horizontal swipe rows */
    #features .features-grid,
    .templates-grid,
    .security-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 14px !important;
        padding-bottom: 14px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    #features .features-grid .feature-card {
        flex: 0 0 250px;
        width: 250px;
        scroll-snap-align: start;
        margin-bottom: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .templates-grid .template-card {
        flex: 0 0 235px;
        width: 235px;
        scroll-snap-align: start;
    }

    .security-grid > div {
        flex: 0 0 240px;
        width: 240px;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .email-templates-cta {
        margin-top: 24px;
    }

    .template-image {
        height: 150px;
        padding: 12px;
    }

    .pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 12px;
        margin-bottom: 30px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
    }

    .pricing-card {
        flex: 0 0 85%;
        min-width: 0;
        padding: 24px 18px;
        scroll-snap-align: center;
    }

    /* Collapse long pricing feature lists behind a toggle */
    .pricing-card .pricing-features:not(.features-open) > li:nth-child(n+5) {
        display: none;
    }

    .pricing-more-btn {
        display: block;
        margin: 0 auto 16px;
        padding: 6px 16px;
        border: 1px solid var(--primary-color);
        border-radius: 20px;
        background: transparent;
        color: var(--primary-color);
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }

    .pricing-card .pricing-features {
        margin-bottom: 8px;
    }

    /* Compact sticky bottom conversion bar */
    .sticky-conversion-bar {
        padding: 5px 0;
    }

    .sticky-cta-content {
        gap: 10px;
    }

    .sticky-icon {
        font-size: 17px;
    }

    .sticky-icon svg {
        width: 17px;
        height: 17px;
    }

    .sticky-info-wrap strong {
        font-size: 12.5px;
    }

    .sticky-cta-actions .btn-sm {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    .header:hover .logo-img {
        height: 44px;
    }
    .header-actions {
        gap: 5px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .pricing-card {
        flex-basis: 88%;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .template-card .btn {
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 16px;
        margin-bottom: 28px;
    }

    .footer-column h4 {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .footer-column a {
        padding: 5px 0;
        font-size: 14px;
    }

    table {
        font-size: 11px;
    }
}

/* ======================================================= */
/* SHOPIFY-LEVEL MODERN COMPONENTS & ANIMATIONS             */
/* ======================================================= */

/* 1. Hero Badge Pill */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4338ca;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
    cursor: default;
}

.hero-badge-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.14);
}

.badge-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-arrow {
    font-size: 13px;
    transition: transform 0.2s;
}

.hero-badge-pill:hover .badge-arrow {
    transform: translateX(-3px);
}

/* 2. Partners Marquee Infinite Ticker */
.partners-marquee-section {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    overflow: hidden;
    position: relative;
}

.partners-marquee-section::before,
.partners-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 48px;
    padding-inline-start: 48px;
    animation: marqueeSlide 30s linear infinite;
}

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

.partner-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}

.partner-item:hover {
    color: #4f46e5;
    transform: translateY(-1px);
}

.partner-icon {
    font-size: 17px;
}

@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

[dir="rtl"] .marquee-content {
    animation: marqueeSlideRtl 30s linear infinite;
}

@keyframes marqueeSlideRtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* 3. Stats Counter Strip */
.stats-counter-strip {
    padding: 50px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -8px rgba(79, 70, 229, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-num {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 500;
}

/* 4. Interactive Live Theme Studio */
.live-studio-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.studio-badge-pill {
    display: inline-block;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.studio-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 40px;
}

.studio-controls {
    flex: 0 0 320px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.control-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.color-palette-picker {
    display: flex;
    gap: 12px;
}

.palette-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 100%);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.palette-btn:hover {
    transform: scale(1.08);
}

.palette-btn.active {
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
    transform: scale(1.05);
}

.palette-btn.active::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-toggle-group, .font-toggle-group {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.device-btn, .font-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.device-btn.active, .font-btn.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.studio-cta-card {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    border: 1px dashed #818cf8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.studio-cta-text {
    font-size: 12px;
    color: #4338ca;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.studio-viewport-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-preview-viewport {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 24px 60px -15px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-preview-viewport.desktop {
    max-width: 100%;
}

.studio-preview-viewport.mobile {
    max-width: 380px;
    border: 8px solid #1e293b;
    border-radius: 36px;
}

.viewport-browser-bar {
    height: 38px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.viewport-dots {
    display: flex;
    gap: 5px;
}

.v-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.v-dot.red { background: #ef4444; }
.v-dot.yellow { background: #f59e0b; }
.v-dot.green { background: #10b981; }

.viewport-url {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    height: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
    font-size: 10px;
    color: #64748b;
    font-family: monospace;
}

/* Viewport Theme Styles (Dynamic variables) */
.studio-preview-viewport.theme-indigo {
    --vp-primary: #4f46e5;
    --vp-primary-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --vp-accent-bg: #eef2ff;
    --vp-badge-color: #4338ca;
}

.studio-preview-viewport.theme-emerald {
    --vp-primary: #059669;
    --vp-primary-grad: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --vp-accent-bg: #ecfdf5;
    --vp-badge-color: #065f46;
}

.studio-preview-viewport.theme-sunset {
    --vp-primary: #ea580c;
    --vp-primary-grad: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    --vp-accent-bg: #fff7ed;
    --vp-badge-color: #9a3412;
}

.studio-preview-viewport.theme-dark {
    --vp-primary: #0f172a;
    --vp-primary-grad: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --vp-accent-bg: #f1f5f9;
    --vp-badge-color: #0f172a;
}

.studio-preview-viewport.font-cairo {
    font-family: 'Cairo', system-ui, sans-serif;
}

.studio-preview-viewport.font-tajawal {
    font-family: 'Tajawal', system-ui, sans-serif;
}

.viewport-store-content {
    padding: 16px;
    background: #ffffff;
    min-height: 420px;
}

.demo-store-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.demo-logo {
    font-size: 15px;
    font-weight: 800;
    color: var(--vp-primary);
}

.demo-nav-links {
    display: flex;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.demo-nav-links .active {
    color: var(--vp-primary);
}

.demo-cart-pill {
    background: var(--vp-accent-bg);
    color: var(--vp-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-badge-num {
    background: var(--vp-primary);
    color: #ffffff;
    font-size: 9px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-store-hero {
    background: var(--vp-primary-grad);
    border-radius: 14px;
    padding: 24px;
    color: #ffffff;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.demo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.demo-hero-heading {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}

.demo-hero-desc {
    font-size: 11.5px;
    opacity: 0.9;
    margin-bottom: 14px;
}

.demo-cta-btn {
    background: #ffffff;
    color: var(--vp-primary);
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.demo-cta-btn:hover {
    transform: translateY(-1px);
}

.demo-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.studio-preview-viewport.mobile .demo-products-grid {
    grid-template-columns: 1fr;
}

.studio-preview-viewport.mobile .demo-nav-links {
    display: none;
}

.demo-product-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.demo-product-img {
    font-size: 36px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vp-accent-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.demo-product-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.demo-product-rating {
    font-size: 10px;
    color: #b45309;
    margin-bottom: 6px;
}

.demo-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.demo-product-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--vp-primary);
}

.demo-buy-btn {
    background: var(--vp-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.demo-buy-btn:hover {
    opacity: 0.9;
}

/* 5. Sticky Bottom Conversion Bar */
.sticky-conversion-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    z-index: 999;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-conversion-bar.visible {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-cta-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-icon {
    font-size: 26px;
}

.sticky-info-wrap {
    display: flex;
    flex-direction: column;
}

.sticky-info-wrap strong {
    font-size: 14.5px;
    color: #1e293b;
    font-weight: 800;
}

.sticky-sub {
    font-size: 12px;
    color: #64748b;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .studio-container {
        flex-direction: column;
    }
    .studio-controls {
        flex: 1;
        width: 100%;
        box-sizing: border-box;
    }
    .sticky-sub {
        display: none;
    }
}

/* Existing Account In-App Modal */
.existing-account-card {
    text-align: center;
    max-width: 440px;
    padding: 36px 28px 28px;
    border-radius: 24px;
    box-shadow: 0 25px 60px -12px rgba(79, 70, 229, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.existing-account-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.15);
}

.existing-email-pill {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin: 10px auto 12px;
    direction: ltr;
    word-break: break-all;
}

.existing-subtext {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 22px;
}

.existing-account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.existing-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
}

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

/* ==================== */
/* Modern 3D Interactive CTA Button (Promo Reveal) */
/* ==================== */
.btn-animated {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    letter-spacing: 0.3px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #6366f1 100%);
    color: #ffffff !important;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.08),
        0 8px 20px -4px rgba(37, 99, 235, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    transform: perspective(600px) translateZ(0);
    transition: 
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        border-color 0.3s ease;
    isolation: isolate;
}

.btn-block.btn-animated {
    display: flex;
    width: 100%;
}

/* 3D hover lift & vibrant shadow */
.btn-animated:hover {
    transform: perspective(600px) translateY(-3px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.12),
        0 14px 28px -4px rgba(59, 130, 246, 0.6),
        0 0 20px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-animated:active {
    transform: perspective(600px) translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.15),
        0 6px 14px -2px rgba(37, 99, 235, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Shimmer beam effect across the button */
.btn-animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-animated:hover::before {
    left: 140%;
}

/* Original label */
.btn-animated .ba-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.3s ease;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Reveal label (3 أيام مجانا ثم 600DA / 3 Days Free then 600DA) */
.btn-animated .ba-reveal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #14b8a6 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(100%) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1), opacity 0.3s ease;
    border-radius: 11px;
}

/* On hover: slide out label and slide in reveal text */
.btn-animated:hover .ba-label {
    transform: translateY(-130%) scale(0.9);
    opacity: 0;
}

/* If no ba-reveal is present, keep label visible and elevated on hover */
.btn-animated.no-reveal:hover .ba-label,
.btn-animated:not(:has(.ba-reveal)):hover .ba-label {
    transform: none !important;
    opacity: 1 !important;
}

.btn-animated:hover .ba-reveal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Frame overlay */
.btn-animated .ba-frame {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
    z-index: 3;
}

/* White theme variation (e.g., in dark or gradient CTA banner) */
.cta .btn-animated {
    background: #ffffff;
    color: #1d4ed8 !important;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.15),
        0 10px 25px -4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cta .btn-animated .ba-label {
    color: #1d4ed8;
    text-shadow: none;
}

.cta .btn-animated .ba-reveal {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff;
}

.cta .btn-animated:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(255, 255, 255, 0.5);
}

/* ==================== */
/* 3D Modern enhancements for Hero & Cards */
/* ==================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 40%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(14, 165, 233, 0.06) 50%, transparent 75%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
    animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.1); }
    100% { transform: translate(-25px, 20px) scale(0.95); }
}

/* 3D Card Hover Depth */
.tilt-card-3d {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease !important;
    transform-style: preserve-3d;
}

.feature-card, .pricing-card, .template-card, .storefront-window, .hero-text-card {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.feature-card:hover, .template-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 45px -12px rgba(37, 99, 235, 0.22), 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.storefront-window {
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(226, 232, 240, 0.8),
        0 10px 25px -5px rgba(37, 99, 235, 0.12);
}

/* 3D floating effect for badges and mini-cards */
.scene-toast, .scene-coupon-pill, .floating-mini-card {
    animation: float3d 4.5s ease-in-out infinite alternate;
}

.scene-coupon-pill {
    animation-delay: -2s;
}

@keyframes float3d {
    0% { transform: translateY(0px) translateZ(10px); }
    100% { transform: translateY(-8px) translateZ(25px); }
}

/* Keep the landing hero light: remove animated background layers everywhere. */
.hero::before,
.hero::after {
    content: none !important;
    display: none !important;
    animation: none !important;
}

@media (max-width: 768px) {
    /* The hero is the first thing visitors see, so avoid continuous mobile paints. */
    .hero-bg-video { display: none !important; }
    .hero .hero-media {
        min-height: 340px;
        animation: none !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    }
    .hero .hero-media-slide {
        transform: none !important;
        transition: none !important;
    }
    .hero .scene-glow,
    .hero .anim-sparkle-star { display: none !important; }
    .hero .scene-toast,
    .hero .storefront-window,
    .hero .scene-coupon-pill,
    .hero .floating-mini-card,
    .hero .hero-product-main-card,
    .hero .dash-goal-toast,
    .hero .stock-fill,
    .hero .live-dot.pulse {
        animation: none !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .hero .storefront-window,
    .hero .hero-product-main-card,
    .hero .scene-toast,
    .hero .floating-mini-card {
        box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
    }
}


/* Animated FAQ Glow Button */
.faq-animated-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.75rem 2rem;
  background-color: #262626;
  color: #f9fafb;
  border: 1px solid #3f3f46;
  border-radius: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.5s ease;
  font-family: inherit;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.faq-animated-btn::before {
  content: "";
  position: absolute;
  width: 3rem;
  height: 3rem;
  right: 0.25rem;
  top: 0.25rem;
  z-index: 10;
  background: #8b5cf6;
  border-radius: 9999px;
  filter: blur(16px);
  transition: all 0.5s ease;
}

.faq-animated-btn::after {
  content: "";
  position: absolute;
  width: 5rem;
  height: 5rem;
  right: 2rem;
  top: 0.75rem;
  z-index: 10;
  background: #fda4af;
  border-radius: 9999px;
  filter: blur(16px);
  transition: all 0.5s ease;
}

.faq-animated-btn:hover {
  border-color: #fda4af;
  color: #fda4af;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(162, 28, 175, 0.35);
}

.faq-animated-btn:hover::before {
  right: 3rem;
  bottom: -2rem;
  top: auto;
  box-shadow: 20px 20px 20px 30px #a21caf;
  filter: blur(8px);
}

.faq-animated-btn:hover::after {
  right: -2rem;
}


/* Homepage template badges and full email campaign previews */
.template-plan-badge,.email-plan-badge{display:inline-flex;align-items:center;justify-content:center;width:fit-content;margin:8px auto 0;padding:5px 11px;border-radius:999px;font-size:11px;font-weight:800;line-height:1.5}
.template-plan-badge.premium{color:#7c2d12;background:linear-gradient(135deg,#ffedd5,#fed7aa);border:1px solid #fdba74}
.email-plan-badge{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe}
.email-html-premium-note{margin:18px auto 0;text-align:center;color:#64748b;font-size:13px;font-weight:600}
.tpl-editor-swatches{display:flex;gap:5px;margin-top:8px}.tpl-editor-swatches i,.canva-palette i{display:block;width:13px;height:13px;border-radius:50%;background:#2563eb}
.tpl-editor-swatches i:nth-child(2),.canva-palette i:nth-child(2){background:#f59e0b}.tpl-editor-swatches i:nth-child(3),.canva-palette i:nth-child(3){background:#0f172a}.tpl-editor-swatches i:nth-child(4),.canva-palette i:nth-child(4){background:#10b981}
.template-image.canva-baha{min-height:230px;padding:16px;background:linear-gradient(135deg,#e0e7ff,#f5d0fe 55%,#fef3c7);overflow:hidden}
.canva-baha-mock{height:198px;overflow:hidden;border:1px solid rgba(255,255,255,.8);border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(30,41,59,.18);direction:ltr}
.canva-toolbar{height:28px;display:flex;align-items:center;gap:5px;padding:0 9px;background:#172554}.canva-toolbar span{width:6px;height:6px;border-radius:50%;background:#c7d2fe}.canva-toolbar b{margin-left:auto;color:#fff;font-size:9px;letter-spacing:1px}
.canva-workspace{display:flex;height:170px;padding:9px;gap:9px;background:#f8fafc}.canva-tools{width:18px;display:flex;flex-direction:column;gap:8px;padding-top:5px}.canva-tools i{width:13px;height:13px;border-radius:4px;background:#c7d2fe}
.canva-artboard{position:relative;flex:1;overflow:hidden;padding:10px;background:#fef3c7}.canva-art-top{display:flex;justify-content:space-between;color:#1e293b;font-size:7px;letter-spacing:1px}.canva-art-top b{font-size:10px}.canva-art-photo{position:absolute;right:9px;top:42px;width:43%;height:92px;border-radius:50% 50% 8px 8px;background:linear-gradient(145deg,#f9a8d4,#7c3aed 60%,#312e81)}
.canva-art-copy{position:absolute;left:10px;bottom:17px;color:#172554}.canva-art-copy strong{font-size:12px;line-height:1.15}.canva-art-copy i{display:block;width:55px;height:12px;margin-top:7px;border-radius:3px;background:#2563eb}.canva-palette{width:12px;display:flex;flex-direction:column;gap:6px;padding-top:4px}.canva-palette i{width:10px;height:10px}
.email-real-preview{height:265px;padding:0;overflow:hidden;background:#e9eef7;border:1px solid #dbe3ef;border-radius:12px;text-align:left}.mail-browser{height:23px;display:flex;align-items:center;gap:4px;padding:0 9px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.mail-browser>span{width:6px;height:6px;border-radius:50%;background:#cbd5e1}.mail-browser small{margin-left:auto;color:#94a3b8;font-size:7px;letter-spacing:.8px}
.mail-paper{width:84%;min-height:230px;margin:8px auto;padding:12px 11px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.08);color:#1e293b;font-family:Arial,sans-serif}.mail-brand{padding-bottom:8px;border-bottom:1px solid #edf0f5;color:#1e3a8a;font-size:10px;font-weight:800;letter-spacing:1px}.mail-brand b{color:#2563eb}
.mail-welcome-hero,.mail-product-hero,.mail-sale-hero{padding:13px 8px;text-align:center}.mail-welcome-hero{margin-top:8px;background:linear-gradient(135deg,#eff6ff,#f5f3ff)}.mail-welcome-hero small,.mail-product-hero small,.mail-sale-hero small{display:block;margin-bottom:5px;color:#64748b;font-size:7px;letter-spacing:1px}.mail-welcome-hero strong,.mail-product-hero strong,.mail-sale-hero strong{display:block;font-size:14px;color:#172554}.mail-welcome-hero p,.mail-product-hero p,.mail-sale-hero p{margin:5px auto 8px;color:#64748b;font-size:8px;line-height:1.6}.mail-welcome-hero i,.mail-product-hero i,.mail-sale-hero i{display:inline-block;padding:6px 12px;border-radius:4px;background:#2563eb;color:#fff;font-size:8px;font-style:normal;font-weight:700}
.mail-section-title{margin:10px 0 6px;text-align:center;font-size:9px;font-weight:800}.mail-product-row{display:flex;justify-content:center;gap:8px}.mail-product-art{width:46px;height:35px;border-radius:5px;background:linear-gradient(135deg,#dbeafe,#818cf8)}.mail-product-art.art-watch{background:linear-gradient(135deg,#fef3c7,#f59e0b)}
.mail-product-hero{padding-top:8px}.mail-product-photo{width:100%;height:55px;margin-bottom:8px;border-radius:6px;background:radial-gradient(circle at 50% 40%,#f8fafc 0 18%,transparent 19%),linear-gradient(135deg,#dbeafe,#c4b5fd)}.mail-price{margin:5px 0 8px;color:#2563eb;font-size:10px;font-weight:800}.mail-price del{margin-left:5px;color:#94a3b8;font-size:8px;font-weight:400}
.mail-sale-hero{margin-top:8px;background:linear-gradient(135deg,#312e81,#7c3aed 60%,#db2777)}.mail-sale-hero small,.mail-sale-hero strong,.mail-sale-hero p{color:#fff}.mail-sale-discount{display:block;margin:5px 0;font-size:23px;color:#fde68a}.mail-sale-hero i{color:#312e81;background:#fff}.mail-sale-strip{display:flex;justify-content:space-around;margin-top:8px;padding:7px 2px;background:#f8fafc;color:#64748b;font-size:7px}.mail-footer{margin-top:9px;padding-top:7px;border-top:1px solid #edf0f5;color:#94a3b8;text-align:center;font-size:7px}
@media(max-width:600px){.email-real-preview{height:250px}.template-image.canva-baha{min-height:210px}.canva-baha-mock{height:180px}}
