/* ============================================
   SALES FUNNEL STYLESHEET - ARABIC RTL
   High-Converting Design with CRO Best Practices
   Language Portal Identity
   ============================================ */

/* Import Google Fonts - Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* Root Variables - Brand Identity Color Palette (Deep Navy Blue from Logo) */
:root {
    /* Background Colors - Dark Theme (Navy-based) */
    --bg-main: #020b16;                    /* Very dark navy-black (richer than pure black) */
    --bg-card: #0a1930;                    /* The primary Navy Color from the logo */
    --bg-card-alt: #0f172a;                /* Slightly lighter navy for alternating sections */
    --bg-gray: #1e293b;                    /* Dark navy-gray for borders/inputs */
    
    /* Text Colors - Light Theme */
    --text-main: #e0e6ed;                 /* Cool white/grey */
    --text-heading: #ffffff;               /* Pure White - Headers */
    --text-secondary: #94a3b8;            /* Blue-grey for secondary text */
    --text-muted: #64748b;                /* Muted blue-grey for less important text */
    --text-white: #ffffff;                /* Pure White */
    
    /* CTA Colors - Deep Navy Blue Gradient (From Logo) */
    --primary-cta: #0f3460;                /* Base Navy */
    --cta-navy-base: #0a1930;              /* Deep Navy from logo */
    --cta-navy-light: #164e87;            /* Slightly lighter Royal Blue */
    --cta-gradient: linear-gradient(to right, #1e40af, #3b82f6); /* Smooth Deep Blue to Royal Blue */
    --cta-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15); /* Professional soft shadow */
    --cta-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2); /* Elevated shadow on hover */
    
    /* Brand Accent - Logo Colors */
    --brand-blue: #3b82f6;                 /* Brighter blue for subtle borders/hover only */
    --brand-blue-dark: #0a1930;           /* Deep Navy from logo */
    --accent-blue: rgba(59, 130, 246, 0.15); /* Subtle blue glow */
    
    /* Checkout manual payment - ألوان الموقع (نيلي + سماوي) */
    --checkout-card: rgba(10, 25, 48, 0.7);
    --checkout-accent: #00f2fe;
    --checkout-accent-hover: #22d3ee;
    
    /* Legacy Support - Keep for compatibility */
    --primary-navy: #0a1930;
    --gradient-blue-start: #0a1930;
    --gradient-blue-end: #164e87;
    --gradient-blue: linear-gradient(135deg, #0a1930 0%, #164e87 100%);
    --accent-red: #ff4444;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Shadows - Dark Theme Optimized */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
    --shadow-navy: 0 0 8px rgba(10, 25, 48, 0.3); /* Subtle navy shadow */
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset & Base Styles - RTL Support */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: var(--font-primary);
    color: #e2e8f0 !important; /* Force light color for all body text */
    line-height: 1.8;
    background-color: var(--bg-main);
    font-size: 16px;
    direction: rtl;
    text-align: right;
    /* Prevent text selection site-wide */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Override any inline styles that might reduce contrast */
* {
    color: inherit;
}

/* Ensure all text in cards is visible */
.card, .offer-item, .bonus-card, .testimonial-card, .order-summary, .checkout-form {
    color: #e2e8f0 !important;
}

.card *, .offer-item *, .bonus-card *, .testimonial-card * {
    color: inherit;
}

/* Typography - High Contrast for Readability */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: #ffffff !important; /* Force pure white for maximum contrast */
}

/* Statistics & Numbers - High Contrast */
.stat-number, .feature-number, .counter-number {
    color: #00f2fe !important; /* Bright Cyan pop against Navy */
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4); /* Subtle cyan glow */
}

.stat-label, .stat-text, .counter-label {
    color: #e2e8f0 !important; /* Light grey for the text below numbers */
}

/* Force high contrast for any large numbers */
div[style*="font-size: 2.5rem"], div[style*="font-size: 3rem"], div[style*="font-size: 4rem"] {
    color: #00f2fe !important; /* Override any dark colors */
}

/* Ensure all large numbers in statistics sections are visible */
div[style*="font-size: 2.5rem"][style*="color: var(--gradient-blue-start)"],
div[style*="font-size: 2.5rem"][style*="color: var(--primary-navy)"],
div[style*="font-size: 2.5rem"][style*="color: var(--cta-navy"] {
    color: #00f2fe !important;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4) !important;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: #e2e8f0 !important; /* Force light color for readability */
}

/* Force all text elements to be light colored */
li, span, label, strong, em, small {
    color: #e2e8f0 !important;
}

/* Headings inside cards must be white */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.offer-item h1, .offer-item h2, .offer-item h3,
.bonus-card h1, .bonus-card h2, .bonus-card h3,
.testimonial-card h1, .testimonial-card h2, .testimonial-card h3 {
    color: #ffffff !important;
}

/* Ensure all h2 and h3 elements are white for maximum contrast */
h2, h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* Special handling for numbers in any context */
[class*="number"], [class*="stat"], [class*="counter"],
div:contains("+"), div:contains("%") {
    color: #00f2fe !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header - Glassmorphism Effect */
header {
    background: rgba(10, 25, 48, 0.7) !important; /* Semi-transparent Navy */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle border */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
}

/* Legacy .logo class - kept for backward compatibility */
.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff !important; /* Force pure white for logo */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle glow to pop */
    text-decoration: none;
    letter-spacing: -0.5px;
    -webkit-text-fill-color: #ffffff !important; /* Override any gradient fill */
}

/* Navbar Brand - New Structure with Logo Image, Title, and Tagline */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo and text */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* Logo Image Sizing */
.brand-img {
    height: 75px; /* Increased for better visibility */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Text Block Layout */
.brand-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    gap: 2px;
}

/* Typography */
.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff !important; /* White text */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 400;
    color: #00f2fe !important; /* Use the Cyan Brand Color for the tagline */
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--brand-blue);
}

/* Buttons - High Contrast CTAs */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--cta-gradient);
    color: var(--text-white);
    box-shadow: var(--cta-shadow); /* Professional soft shadow - no glow */
}

.btn-primary:hover {
    background: linear-gradient(to right, #1e3a8a, #2563eb); /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: var(--cta-shadow-hover); /* Elevated shadow on hover */
}

.btn-secondary {
    background: var(--cta-gradient);
    color: var(--text-white);
    box-shadow: var(--cta-shadow); /* Professional soft shadow - no glow */
}

.btn-secondary:hover {
    background: linear-gradient(to right, #1e3a8a, #2563eb); /* Slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: var(--cta-shadow-hover); /* Elevated shadow on hover */
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section - Premium Background Pattern */
.hero {
    background: 
        radial-gradient(circle at 50% 50%, rgba(22, 78, 135, 0.15) 0%, transparent 50%), /* Soft center glow */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    background-size: 100% 100%, 40px 40px, 40px 40px, 100% 100%; /* Creates a subtle tech grid */
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 25, 48, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    opacity: 1;
}

/* Hero Layout - 2 Column Split Screen */
.hero-layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

/* Hero Text Content (Right Side in RTL) */
.hero-text {
    width: 50%;
    text-align: right; /* RTL alignment */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-text h1 {
    color: var(--text-white);
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.hero-text .subheadline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 600;
    text-align: right;
    line-height: 1.6;
}

.hero-text .btn {
    margin-top: 0;
    align-self: flex-start; /* Align button to the right (RTL) */
}

.hero-text p {
    text-align: right;
}

/* Hero Image Container (Left Side in RTL) */
.hero-image {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 3D Book Image Effect */
.book-img-3d {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Floating Animation for Book */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

/* Fallback for browsers that don't support filter */
.book-img-3d {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: var(--spacing-lg) 0;
}

/* Large off-screen sections: skip rendering until near viewport (PageSpeed/CLS) */
#features,
#testimonials {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Scroll Reveal Animation - Premium Polish */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* Stagger animation delay for multiple elements */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--cta-gradient);
    border-radius: 2px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

.section-title p {
    font-size: 1.125rem;
    color: #e2e8f0 !important; /* Force light color */
    margin-top: var(--spacing-md);
}

/* Problem/Agitation Section */
.problem-section {
    background-color: var(--bg-card);
}

.problem-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.problem-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    padding-right: 2.5rem;
    position: relative;
    text-align: right;
    color: #e2e8f0 !important; /* Force light color */
}

.problem-list li strong {
    color: #ffffff !important; /* Force white for strong text */
}

.problem-list li::before {
    content: "✗";
    position: absolute;
    right: 0;
    color: #ff4444;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Solution/Mechanism Section */
.solution-section {
    background-color: var(--bg-card-alt);
}

.mechanism-box {
    background: linear-gradient(135deg, rgba(10, 25, 48, 0.2) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-right: 4px solid var(--brand-blue);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

.mechanism-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(10, 25, 48, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

/* Offer Stack Section */
.offer-stack {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    padding: var(--spacing-xl) 0;
}

.offer-item {
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.offer-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue);
}

.offer-item-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff !important; /* Force white */
}

.offer-item p {
    color: #e2e8f0 !important; /* Light grey for descriptions */
}

.offer-item-value {
    color: #94a3b8 !important; /* Muted grey for crossed out prices */
    text-decoration: line-through;
    font-size: 1rem;
}

.offer-total {
    background: var(--cta-gradient);
    color: #ffffff !important; /* Force white text */
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
    text-align: center;
    box-shadow: var(--cta-glow);
}

.offer-total * {
    color: inherit;
}

.offer-total .offer-price {
    color: #00f2fe !important; /* Bright cyan for price */
}

.offer-total-label {
    font-size: 1.125rem;
    opacity: 0.9;
    color: #e2e8f0 !important; /* Light color for labels */
}

.offer-total-value {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: line-through;
    opacity: 0.8;
    color: #94a3b8 !important; /* Muted grey for crossed out prices */
}

.offer-price {
    font-size: 3rem;
    font-weight: 900;
    margin-top: var(--spacing-xs);
    color: #00f2fe !important; /* Bright Cyan for high contrast */
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bonuses Section */
.bonuses-section {
    background-color: var(--bg-card);
}

.bonus-card {
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 3px solid var(--cta-navy-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bonus-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-navy);
    border-right-color: var(--brand-blue);
}

.bonus-card h3 {
    color: #ffffff !important; /* Force white */
    margin-bottom: var(--spacing-xs);
}

.bonus-card p {
    color: #e2e8f0 !important; /* Light grey */
}

.bonus-value {
    color: #94a3b8 !important; /* Muted grey */
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* Guarantee Section */
.guarantee-section {
    background: linear-gradient(135deg, rgba(10, 25, 48, 0.15) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 3px solid var(--brand-blue);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.guarantee-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 25, 48, 0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.guarantee-section > * {
    position: relative;
    z-index: 1;
}

.guarantee-section h2 {
    color: var(--brand-blue);
    margin-bottom: var(--spacing-md);
}

.guarantee-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

/* Social Proof */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: right;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-blue);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: #e2e8f0 !important; /* Force light color */
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: #ffffff !important; /* Force white */
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-card-alt);
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-align: right;
    border: 1px solid var(--bg-gray);
}

.faq-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: background-color 0.3s ease;
    color: var(--text-heading);
}

.faq-question:hover {
    background-color: var(--bg-card-alt);
}

.faq-question::before {
    content: "+";
    font-size: 1.5rem;
    color: var(--brand-blue);
    transition: transform 0.3s ease;
    margin-left: var(--spacing-sm);
}

.faq-item.active .faq-question::before {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: var(--spacing-md);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    color: var(--text-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 242, 254, 0.1);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 25, 48, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 1;
}

.final-cta > .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
}

.final-cta p {
    color: var(--text-white);
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

/* Floating CTA Button (Mobile) - Clean & Professional */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, rgba(30, 64, 175, 0.95), rgba(59, 130, 246, 0.95));
    padding: 0.75rem var(--spacing-sm);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.3), 0 -2px 4px -1px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

.floating-cta .btn {
    width: 100%;
    margin: 0;
    background: linear-gradient(to right, #1e40af, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 45px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect on hover only */
.floating-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.floating-cta .btn:hover::before {
    left: 100%;
}

.floating-cta .btn:hover {
    background: linear-gradient(to right, #1e3a8a, #2563eb) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-2px);
}

/* Floating Facebook Button */
.facebook-float {
    position: fixed;
    bottom: 100px; /* Positioned above WhatsApp button */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #0084ff; /* Facebook Messenger Blue */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below floating CTA but above other content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: facebook-pulse 2s infinite;
}

.facebook-float:hover {
    background-color: #0066cc;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.facebook-float i {
    color: #FFF;
}

/* Pulse Animation for Facebook Button */
@keyframes facebook-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(0, 132, 255, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(0, 132, 255, 0);
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below floating CTA but above other content */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebc57;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    color: #FFF;
}

/* Pulse Animation for WhatsApp Button */
@keyframes whatsapp-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Checkout Page Styles */
.checkout-page {
    min-height: 100vh;
    background-color: var(--bg-main);
    padding: var(--spacing-lg) 0;
}

.checkout-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Right: Order Summary, Left: Form */
    gap: var(--spacing-lg);
    align-items: start;
}

.order-summary {
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
}

.order-summary * {
    color: inherit;
}

.order-summary h2 {
    color: #ffffff !important;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
    padding-bottom: var(--spacing-sm);
    text-align: right;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bg-gray);
    text-align: right;
    color: var(--text-main);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--brand-blue);
    color: var(--text-heading);
}

/* Checkout Product Preview - Book Cover Image */
.checkout-product-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
}

/* The Book Cover Image Styling */
.checkout-book-img {
    max-width: 180px; /* Good size for summary */
    width: 100%;
    height: auto;
    border-radius: 8px; /* Soft corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Deep shadow for 3D effect */
    transition: transform 0.3s ease;
    display: block;
}

/* Optional: Slight hover effect */
.checkout-book-img:hover {
    transform: scale(1.02);
}

.checkout-form {
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
}

.checkout-form h2, .checkout-form h3 {
    color: #ffffff !important;
}

.form-group {
    margin-bottom: var(--spacing-md);
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    color: #ffffff !important; /* Force white for labels */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(59, 130, 246, 0.3) !important; /* Subtle blue border */
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    direction: rtl;
    text-align: right;
    background-color: #1e293b !important; /* Dark grey-blue background */
    color: #ffffff !important; /* Force white text */
    cursor: pointer;
}

.form-group select option {
    background-color: #1e293b;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8 !important; /* Light grey for placeholders */
    opacity: 0.7;
}

/* Allow text selection ONLY inside form inputs and textareas so customers can type */
input, textarea {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* Prevent dragging images */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none; /* Stops right-click save on images specifically */
}

/* Allow pointer events for clickable images (like logos and buttons) */
a img,
button img,
img[onclick],
img[style*="cursor: pointer"] {
    pointer-events: auto;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* Payment Method Selection Styles */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--brand-blue);
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: rgba(59, 130, 246, 0.8);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* ========== Checkout manual payment form (Vodafone Cash + Instapay + upload) ========== */
.checkout-form-manual .form-hint {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    display: block;
    margin-top: var(--spacing-xs);
}

.checkout-section-title {
    color: var(--text-heading) !important;
    font-size: 1.125rem;
    font-weight: 700;
    margin: var(--spacing-md) 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-section-icon {
    font-size: 1.25rem;
}

.payment-methods-manual {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.payment-box {
    flex: 1;
    background: var(--checkout-card);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.payment-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-heading) !important;
    font-weight: 700;
    font-size: 1rem;
}

.payment-box-icon {
    font-size: 1.5rem;
}

.payment-box-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.payment-box-icon-fallback {
    font-size: 1.5rem;
}

.payment-box-label {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    margin: 0;
}

.wallet-number {
    color: var(--checkout-accent) !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, #1e40af, #3b82f6);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-family: var(--font-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}

.btn-gold:hover {
    opacity: 0.95;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-gold-icon {
    font-size: 1.1rem;
}

.btn-gold-link {
    margin-top: auto;
}

/* Upload zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 160px;
    padding: var(--spacing-md);
    background: var(--checkout-card);
    border: 2px dashed rgba(0, 242, 254, 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-bottom: var(--spacing-md);
}

.upload-zone:hover,
.upload-zone:focus-within {
    border-style: solid;
    border-color: var(--checkout-accent-hover);
    background: rgba(10, 25, 48, 0.9);
}

.upload-zone.dragover {
    border-style: solid;
    border-color: var(--checkout-accent-hover);
    background: rgba(0, 242, 254, 0.08);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--checkout-accent);
}

.upload-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-text {
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: 1rem;
}

.upload-hint {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

.upload-filename {
    color: var(--checkout-accent) !important;
    font-size: 0.875rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-submit-checkout {
    margin-top: var(--spacing-md);
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
}

.checkout-form-footer {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-muted) !important;
    font-size: 0.75rem;
}

.checkout-form-footer a {
    color: var(--checkout-accent) !important;
}

@media (max-width: 768px) {
    .payment-methods-manual {
        flex-direction: column;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Thank You Page */
.thankyou-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    color: var(--text-white);
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.thankyou-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 25, 48, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    opacity: 1;
}

.thankyou-content {
    max-width: 700px;
    padding: var(--spacing-xl);
    background: rgba(10, 25, 48, 0.7) !important; /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Success Icon Wrapper */
.success-icon-wrapper {
    margin-bottom: var(--spacing-lg);
}

.success-icon {
    font-size: 5rem;
    color: #10b981; /* Green checkmark */
    animation: checkmark-pop 0.6s ease-out;
    display: inline-block;
}

@keyframes checkmark-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Thank You Title & Subtitle */
.thankyou-title {
    color: #ffffff !important;
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.thankyou-subtitle {
    color: #e2e8f0 !important;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    text-align: center;
    line-height: 1.6;
}

.thankyou-body {
    color: #e2e8f0 !important;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.thankyou-body strong {
    color: var(--checkout-accent) !important;
}

/* Subtle processing animation on icon */
.thankyou-icon-processing {
    color: #10b981 !important;
    animation: checkmark-pop 0.6s ease-out, thankyou-glow 2.5s ease-in-out infinite;
}

@keyframes thankyou-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4)); }
    50%   { filter: drop-shadow(0 0 16px rgba(16, 185, 129, 0.6)); }
}

/* Support outline button - gold border, transparent (luxury theme) */
.btn-support-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent !important;
    color: #c2a353 !important;
    border: 2px solid #c2a353;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-bottom: var(--spacing-lg);
}

.btn-support-outline:hover {
    background: rgba(194, 163, 83, 0.15) !important;
    color: #d4af37 !important;
    border-color: #d4af37;
    transform: translateY(-1px);
}

/* Download Section */
.download-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.download-context {
    color: #e2e8f0 !important;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.file-size-info {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    text-align: center;
    opacity: 0.8;
}

/* Google Drive Button */
.btn-drive {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%) !important; /* Google Drive Colors */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    animation: pulse-drive 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-drive:hover {
    background: linear-gradient(135deg, #357ae8 0%, #2d8f47 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
}

.btn-drive i {
    font-size: 1.5rem;
}

@keyframes pulse-drive {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(66, 133, 244, 0.6);
    }
}

/* Divider */
.divider {
    margin: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.3), transparent);
}

.divider::before {
    right: 0;
}

.divider::after {
    left: 0;
}

.divider span {
    color: #94a3b8 !important;
    font-size: 0.875rem;
    background: rgba(10, 25, 48, 0.7);
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

/* Retention Section */
.retention-section {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: rgba(30, 41, 59, 0.3);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.retention-text {
    color: #e2e8f0 !important;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    line-height: 1.6;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important; /* WhatsApp Green */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #0f7a6f 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp i {
    font-size: 1.5rem;
}

/* Support Section */
.support-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(30, 41, 59, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-text {
    color: #e2e8f0 !important;
    font-size: 0.9375rem;
    text-align: center;
    line-height: 1.6;
}

.support-text a {
    color: #00f2fe !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.support-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Return Home Link */
.return-home {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.return-link {
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.return-link:hover {
    color: #00f2fe !important;
    text-decoration: underline;
}

.next-steps {
    background-color: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    text-align: right;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.next-steps h3 {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.next-steps ol {
    margin-right: var(--spacing-md);
    color: var(--text-white);
    opacity: 0.9;
    text-align: right;
}

.next-steps li {
    margin-bottom: var(--spacing-xs);
}

/* Footer */
footer {
    background-color: var(--bg-card);
    color: var(--text-white);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(0, 242, 254, 0.1);
}

footer p {
    color: var(--text-secondary);
    opacity: 0.9;
    font-size: 0.875rem;
}

footer a {
    color: var(--text-secondary);
    opacity: 0.9;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: var(--brand-blue);
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    /* ============================================
       A. Typography & Spacing (Mobile Scaling)
       ============================================ */
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Typography - Mobile Optimized */
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: var(--spacing-sm);
    }
    
    h2 {
        font-size: 1.8rem !important;
        line-height: 1.4;
        margin-bottom: var(--spacing-sm);
    }
    
    h3 {
        font-size: 1.5rem !important;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Section Padding - Reduced for Mobile */
    section {
        padding: 2.5rem 0 !important; /* Reduced from 80px to 40px */
    }
    
    /* ============================================
       B. Layout Stacking (Flexbox Fixes)
       ============================================ */
    
    /* Hero Section - Mobile Layout */
    .hero {
        padding: var(--spacing-lg) 0 !important;
    }
    
    /* Change to Column Layout on Mobile */
    .hero-layout {
        flex-direction: column-reverse !important; /* Image on top, text below */
        gap: var(--spacing-md) !important;
    }
    
    /* Full Width on Mobile */
    .hero-text {
        width: 100% !important;
        text-align: center !important; /* Center align on mobile */
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: var(--spacing-sm) !important;
        padding: 0 var(--spacing-xs) !important;
        text-align: center !important;
    }
    
    .hero-text .subheadline {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
        margin-bottom: var(--spacing-md) !important;
        padding: 0 var(--spacing-xs) !important;
        text-align: center !important;
    }
    
    .hero-text .btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: var(--spacing-md) !important;
        align-self: center !important; /* Center button on mobile */
    }
    
    .hero-text p {
        text-align: center !important;
    }
    
    /* Image Container - Mobile */
    .hero-image {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto var(--spacing-md) auto !important;
        padding: 0 var(--spacing-sm) !important;
    }
    
    .book-img-3d {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        animation-duration: 4s !important; /* Faster animation on mobile */
    }
    
    /* Checkout Book Image - Mobile Adjustment */
    .checkout-book-img {
        max-width: 140px !important; /* Slightly smaller on mobile */
    }
    
    .checkout-product-preview {
        margin-bottom: var(--spacing-md) !important;
        padding: var(--spacing-xs) !important;
    }
    
    /* Ensure hero text spacing is correct */
    .hero-text {
        padding: 0 var(--spacing-xs) !important;
    }
    
    .hero-text h1 {
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .hero-text .subheadline {
        margin-bottom: var(--spacing-md) !important;
    }
    
    .hero-content {
        flex-direction: column-reverse !important;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    /* Pricing/Feature Cards - Stack Vertically */
    .offer-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--spacing-sm) !important;
        width: 100% !important;
        margin-bottom: 1.25rem !important; /* 20px spacing */
    }
    
    .bonus-card,
    .testimonial-card,
    .feature-card {
        width: 100% !important;
        margin-bottom: 1.25rem !important; /* 20px spacing */
    }
    
    .testimonials {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    .bonuses-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    /* ============================================
       C. Checkout Page Specifics
       ============================================ */
    .checkout-container {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    .checkout-container > .order-summary {
        order: 1 !important; /* Order Summary appears first on mobile */
        position: static !important;
        margin-bottom: var(--spacing-md);
    }
    
    .checkout-container > .checkout-form {
        order: 2 !important; /* Form appears second on mobile */
    }
    
    .order-summary {
        position: static !important;
        top: 0 !important;
    }
    
    /* Input Fields - Touch-Friendly Height */
    .form-group input,
    .form-group select,
    .form-group textarea {
        height: 50px !important; /* Easier to tap */
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .payment-option {
        flex-direction: row;
        align-items: center;
        padding: var(--spacing-md);
    }
    
    /* ============================================
       D. Sticky CTA Button (Mobile)
       ============================================ */
    .floating-cta {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0.75rem var(--spacing-sm) !important;
        width: 90% !important;
        left: 5% !important;
        right: 5% !important;
        background: rgba(10, 25, 48, 0.95) !important; /* Glassmorphism background */
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    }
    
    .floating-cta .btn {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        border-radius: 40px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Floating Facebook Button - Mobile Adjustment */
    .facebook-float {
        bottom: 150px !important; /* Positioned above WhatsApp button */
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }
    
    /* Floating WhatsApp Button - Mobile Adjustment */
    .whatsapp-float {
        bottom: 90px !important; /* Push it up so it doesn't cover the 'Buy Now' button */
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 25px !important;
    }
    
    /* ============================================
       Touch Targets (Minimum 44px Height)
       ============================================ */
    .btn,
    .btn-primary,
    .btn-secondary,
    button,
    a.btn {
        min-height: 44px !important; /* Finger-friendly */
        padding: 0.875rem 1.5rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .btn-large {
        padding: 1rem 2rem !important;
        font-size: 1.125rem !important;
        min-height: 50px !important;
    }
    
    /* Links - Touch-Friendly */
    a {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    /* Spacing between clickable elements */
    .btn + .btn,
    button + button,
    a + a {
        margin-top: var(--spacing-sm) !important;
    }
    
    /* Navigation */
    nav ul {
        display: none;
    }
    
    /* Header adjustments */
    header {
        padding: var(--spacing-xs) 0 !important;
    }
    
    .logo {
        font-size: 1.5rem !important;
    }
    
    .navbar-brand {
        gap: 10px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    .brand-img {
        height: 65px !important; /* Increased for better visibility on tablet */
        flex-shrink: 0 !important; /* Prevent logo from shrinking */
    }
    
    .brand-text-block {
        flex-shrink: 1 !important;
        min-width: 0 !important; /* Allow text to wrap if needed */
    }
    
    .brand-title {
        font-size: 1.25rem !important;
        white-space: nowrap !important; /* Prevent title from wrapping */
    }
    
    .brand-tagline {
        font-size: 0.8rem !important;
        white-space: nowrap !important; /* Prevent tagline from wrapping */
        display: block !important; /* Ensure tagline is visible */
    }
    
    /* Footer */
    footer {
        padding: var(--spacing-md) 0 !important;
    }
    
    /* Thank You Page */
    .thankyou-page {
        padding: var(--spacing-sm) !important;
        min-height: auto !important;
        align-items: flex-start !important;
        padding-top: var(--spacing-md) !important;
    }
    
    .thankyou-content {
        padding: var(--spacing-md) !important;
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .thankyou-title {
        font-size: 1.75rem !important;
        margin-bottom: var(--spacing-sm) !important;
        line-height: 1.3 !important;
        padding: 0 var(--spacing-xs) !important;
    }
    
    .thankyou-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 var(--spacing-xs) !important;
        margin-bottom: var(--spacing-md) !important;
    }
    
    .success-icon-wrapper {
        margin-bottom: var(--spacing-md) !important;
    }
    
    .success-icon {
        font-size: 3.5rem !important;
    }
    
    /* Download Section - Mobile */
    .download-section {
        margin: var(--spacing-md) 0 !important;
        padding: var(--spacing-sm) !important;
    }
    
    .download-context {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        margin-bottom: var(--spacing-sm) !important;
        padding: 0 !important;
    }
    
    .file-size-info {
        font-size: 0.8125rem !important;
        margin-top: var(--spacing-xs) !important;
    }
    
    /* Buttons - Mobile */
    .btn-drive,
    .btn-whatsapp {
        font-size: 0.9375rem !important;
        padding: 0.875rem 1.25rem !important;
        min-height: 50px !important;
        width: 100% !important;
        gap: 0.5rem !important;
    }
    
    .btn-drive i,
    .btn-whatsapp i {
        font-size: 1.25rem !important;
    }
    
    .btn-drive span,
    .btn-whatsapp span {
        flex: 1;
        text-align: center;
    }
    
    /* Retention Section - Mobile */
    .retention-section {
        margin: var(--spacing-md) 0 !important;
        padding: var(--spacing-sm) !important;
    }
    
    .retention-text {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        margin-bottom: var(--spacing-sm) !important;
        padding: 0 !important;
    }
    
    /* Divider - Mobile */
    .divider {
        margin: var(--spacing-md) 0 !important;
    }
    
    .divider span {
        font-size: 0.8125rem !important;
        padding: 0 var(--spacing-xs) !important;
    }
    
    .divider::before,
    .divider::after {
        width: 35% !important;
    }
    
    /* Support Section - Mobile */
    .support-section {
        margin-top: var(--spacing-md) !important;
        padding: var(--spacing-sm) !important;
    }
    
    .support-text {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
    }
    
    /* Return Home - Mobile */
    .return-home {
        margin-top: var(--spacing-md) !important;
    }
    
    .return-link {
        font-size: 0.875rem !important;
    }
    
    /* Summary Items - Mobile */
    .summary-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--spacing-xs) !important;
        padding: var(--spacing-sm) 0 !important;
    }
    
    .summary-item > div:last-child {
        align-self: flex-end !important;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens - Further Optimizations */
    h1 {
        font-size: 1.9rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    .container {
        padding: 0 1rem !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .btn {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
        min-height: 44px !important;
    }
    
    .btn-large {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .offer-price {
        font-size: 1.75rem !important;
    }
    
    /* Smaller floating CTA on very small screens */
    .floating-cta {
        padding: 0.625rem 1rem !important;
        width: 95% !important;
        left: 2.5% !important;
        right: 2.5% !important;
    }
    
    .floating-cta .btn {
        font-size: 0.9375rem !important; /* 15px - smaller font */
        padding: 0.75rem 1.25rem !important; /* Smaller padding */
        border-radius: 35px !important; /* Less rounded */
        min-height: 44px !important;
    }
    
    /* Floating Facebook Button - Very Small Screens */
    .facebook-float {
        bottom: 145px !important;
        right: 15px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
    }
    
    /* Floating WhatsApp Button - Very Small Screens */
    .whatsapp-float {
        bottom: 85px !important;
        right: 15px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
    }
    
    /* Form inputs on very small screens */
    .form-group input,
    .form-group select,
    .form-group textarea {
        height: 48px !important;
        font-size: 16px !important;
        padding: 0.75rem !important;
    }
    
    /* Cards spacing */
    .offer-item,
    .bonus-card,
    .testimonial-card,
    .feature-card,
    .mechanism-box {
        padding: var(--spacing-sm) !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    /* Offer Total - Mobile Optimization */
    .offer-total {
        padding: var(--spacing-md) !important;
        margin: var(--spacing-md) 0 !important;
    }
    
    .offer-total .offer-price {
        font-size: 2rem !important;
    }
    
    /* FAQ Section - Mobile */
    .faq-item {
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .faq-question {
        padding: var(--spacing-sm) !important;
        font-size: 1rem !important;
        min-height: 44px !important;
    }
    
    .faq-answer {
        padding: var(--spacing-sm) !important;
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
    }
    
    /* Hero section */
    .hero {
        padding: var(--spacing-md) 0 !important;
    }
    
    .hero-image {
        max-width: 220px !important;
        margin-bottom: var(--spacing-sm) !important;
    }
    
    .book-img-3d {
        max-width: 100% !important;
        width: 100% !important;
        animation-duration: 3s !important; /* Even faster on very small screens */
    }
    
    /* Checkout Book Image - Very Small Screens */
    .checkout-book-img {
        max-width: 120px !important; /* Even smaller on very small screens */
    }
    
    .hero-text h1 {
        font-size: 1.75rem !important;
        padding: 0 !important;
    }
    
    .hero-text .subheadline {
        font-size: 1rem !important;
        padding: 0 !important;
    }
    
    .hero-text .btn {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }
    
    /* Thank You Page - Very Small Screens */
    .thankyou-title {
        font-size: 1.5rem !important;
    }
    
    .thankyou-subtitle {
        font-size: 0.9375rem !important;
    }
    
    .success-icon {
        font-size: 3rem !important;
    }
    
    .btn-drive,
    .btn-whatsapp {
        font-size: 0.875rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .download-context,
    .retention-text {
        font-size: 0.875rem !important;
    }
    
    /* Logo */
    .logo {
        font-size: 1.25rem !important;
    }
    
    .navbar-brand {
        gap: 8px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    
    .brand-img {
        height: 55px !important; /* Increased for better visibility on mobile */
        flex-shrink: 0 !important; /* Prevent logo from shrinking */
        max-width: 55px !important; /* Limit logo width */
    }
    
    .brand-text-block {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important; /* Prevent overflow */
    }
    
    .brand-title {
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Add ellipsis if too long */
    }
    
    .brand-tagline {
        font-size: 0.7rem !important; /* Slightly smaller for mobile */
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important; /* Ensure tagline is visible */
    }
}

/* Adjust navbar brand on very small screens */
@media (max-width: 380px) {
    .navbar-brand {
        gap: 6px !important;
    }
    
    .brand-img {
        height: 50px !important;
        max-width: 50px !important;
    }
    
    .brand-title {
        font-size: 1rem !important;
    }
    
    .brand-tagline {
        font-size: 0.65rem !important;
        /* Keep tagline visible but smaller */
    }
}
