/* ==========================================
   Shape Reward - Clean Unified Premium Stylesheet
   ========================================== */

/* ==========================================
   Shape Reward - Custom Design System & Stylesheet
   ========================================== */

/* Design Tokens & Theme Variables */
:root {
    /* Mapped legacy variable names to new design tokens so portal/auth pages match automatically */
    --primary: var(--clr-primary);
    --primary-hover: var(--clr-primary-hover);
    --primary-light: hsla(142, 72%, 40%, 0.08);
    --primary-light-border: hsla(142, 72%, 40%, 0.15);
    --text-main: var(--clr-dark);
    --text-body: var(--clr-dark-light);
    --text-muted: hsl(215, 16%, 50%);
    --bg-main: var(--clr-light);
    --bg-body: var(--clr-body-bg);
    --input-bg: hsl(210, 40%, 98%);
    --border-color: rgba(226, 232, 240, 0.8);
    --border-focus: var(--clr-primary);
    --font-display: var(--font-heading);
    --font-sans: var(--font-body);

    /* Color Palette */
    --clr-primary: hsl(142, 72%, 40%);     /* Vibrant Green */
    --clr-primary-hover: hsl(142, 76%, 32%);
    --clr-primary-glow: hsla(142, 72%, 40%, 0.15);
    
    --clr-purple: hsl(263, 70%, 52%);      /* Purple theme */
    --clr-purple-glow: hsla(263, 70%, 52%, 0.15);
    
    --clr-blue: hsl(217, 89%, 56%);        /* Blue theme */
    --clr-blue-glow: hsla(217, 89%, 56%, 0.15);
    
    --clr-green-light: hsl(142, 60%, 46%); /* Soft survey green */
    --clr-green-light-glow: hsla(142, 60%, 46%, 0.15);

    --clr-orange: hsl(25, 95%, 50%);       /* Orange theme */
    --clr-orange-glow: hsla(25, 95%, 50%, 0.15);

    --clr-pink: hsl(328, 86%, 53%);        /* Pink theme */
    --clr-pink-glow: hsla(328, 86%, 53%, 0.15);

    --clr-yellow: hsl(42, 98%, 48%);       /* Yellow theme */
    --clr-yellow-glow: hsla(42, 98%, 48%, 0.15);

    --clr-dark: hsl(215, 28%, 13%);        /* Deep Slate Text */
    --clr-dark-light: hsl(215, 16%, 40%);  /* Subtitle Slate */
    --clr-light: hsl(0, 0%, 100%);
    --clr-body-bg: hsl(120, 20%, 99%);     /* Pure fresh light background */
    --clr-payment-bg: hsl(220, 30%, 8%);   /* Very dark premium slate for payment box */
    
    /* Layout & Shadows */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-green: 0 12px 30px -8px hsla(142, 72%, 40%, 0.35);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-body-bg);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.w-100 { width: 100%; }
.green-text { color: var(--clr-primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-login {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-login:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}

.btn-signup {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
    padding: 10px 26px; /* Offset the 2px border to align height perfectly with Login */
    box-shadow: none;
}

.btn-signup:hover {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.25);
}


.btn-primary {
    background-color: var(--clr-primary-hover);
    color: var(--clr-light);
    box-shadow: var(--shadow-green);
    font-size: 1.1rem;
    padding: 16px 36px;
}

.btn-primary:hover {
    background-color: hsl(142, 76%, 28%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px hsla(142, 72%, 40%, 0.45);
}

/* Navigation Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(190%);
    -webkit-backdrop-filter: blur(12px) saturate(190%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Design */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--clr-dark);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--clr-primary), hsl(142, 76%, 32%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.logo-q {
    color: var(--clr-light);
    font-size: 1.3rem;
    font-weight: 800;
}

.logo-earn {
    color: var(--clr-primary);
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Desktop Navbar */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-dark-light);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger Menu button */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--clr-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Drawer Nav */
.mobile-drawer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 99;
    overflow: hidden;
    transition: var(--transition-normal);
    border-bottom: 0px solid rgba(226, 232, 240, 0);
}

.mobile-drawer.open {
    height: calc(100vh - 80px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    gap: 24px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-dark-light);
}

.mobile-nav-link.active, .mobile-nav-link:hover {
    color: var(--clr-primary);
}

/* ==========================================
   Hero Section Styles
   ========================================== */
.hero-section {
    position: relative;
    padding-top: 120px;
    padding-bottom: 40px;
    background-color: var(--clr-body-bg);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    z-index: 5;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.badge-purple {
    background-color: hsla(263, 70%, 52%, 0.08);
    color: var(--clr-purple);
    border: 1px solid hsla(263, 70%, 52%, 0.15);
}

.badge-green {
    background-color: hsla(142, 72%, 40%, 0.08);
    color: var(--clr-primary);
    border: 1px solid hsla(142, 72%, 40%, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--clr-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--clr-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--clr-dark-light);
    margin-bottom: 36px;
    max-width: 520px;
}

/* Hero 3D Illustration Area */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.main-hero-img {
    width: 90%;
    max-width: 480px;
    filter: drop-shadow(0 15px 30px rgba(34, 197, 94, 0.15));
    animation: floatRobot 6s ease-in-out infinite;
}

/* Floating Elements (Bobbing badges matching the original) */
.floating-badge {
    position: absolute;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: 
        0 10px 25px -5px rgba(15, 23, 42, 0.12),
        0 8px 16px -6px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    animation: floatBadge 4.5s ease-in-out infinite;
    z-index: 10;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-badge:hover {
    transform: scale(1.08) translateY(-5px) !important;
    box-shadow: 
        0 20px 35px -8px rgba(15, 23, 42, 0.18),
        inset 0 1px 2px rgba(255, 255, 255, 1);
    border-color: var(--clr-primary);
    cursor: pointer;
}

.badge-correct {
    top: 15%;
    left: -10%;
    background: rgba(240, 253, 244, 0.82);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--clr-primary);
    border-radius: 24px 24px 24px 4px;
    font-size: 1.05rem;
    animation-delay: 0.2s;
    animation-duration: 4.5s;
    box-shadow: 
        0 10px 25px -5px rgba(34, 197, 94, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.badge-correct .badge-icon {
    color: var(--clr-primary);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(34, 197, 94, 0.2));
}

.badge-reward {
    top: 30%;
    right: -8%;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 24px;
    animation-delay: 1.2s;
    animation-duration: 5s;
    gap: 4px;
    box-shadow: 
        0 12px 30px -8px rgba(15, 23, 42, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.badge-reward .badge-icon-gold {
    color: #eab308;
    font-size: 1.5rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 4px rgba(234, 179, 8, 0.2)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.5)); }
}

.badge-reward .amount {
    color: var(--clr-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.badge-reward .label {
    color: var(--clr-dark-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* XP Badge Style */
.badge-xp {
    bottom: 20%;
    left: -6%;
    background: rgba(243, 244, 246, 0.82);
    border-color: rgba(168, 85, 247, 0.35);
    color: var(--clr-purple);
    border-radius: 20px;
    font-size: 1rem;
    animation-delay: 2.2s;
    animation-duration: 4.8s;
    box-shadow: 
        0 10px 25px -5px rgba(168, 85, 247, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.badge-xp .badge-icon-xp {
    color: var(--clr-purple);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.3));
}

.badge-xp .amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--clr-purple);
}

/* Streak Badge Style */
.badge-streak {
    bottom: 8%;
    right: -4%;
    background: rgba(254, 242, 242, 0.82);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
    border-radius: 20px;
    font-size: 0.95rem;
    animation-delay: 3.2s;
    animation-duration: 5.2s;
    box-shadow: 
        0 10px 25px -5px rgba(239, 68, 68, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.badge-streak .badge-icon-fire {
    color: #f97316;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.4));
    animation: flameFlicker 1.5s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(-5deg); }
}

/* Glow Background Effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
}

.glow-green {
    width: 350px;
    height: 350px;
    background-color: rgba(34, 197, 94, 0.12);
    top: 20%;
    right: 10%;
}

.glow-purple {
    width: 300px;
    height: 300px;
    background-color: rgba(168, 85, 247, 0.08);
    bottom: 10%;
    left: 5%;
}

/* Animations */
@keyframes floatRobot {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================
   Explore Task Categories Section
   ========================================== */
.categories-section {
    padding: 48px 0;
    background-color: var(--clr-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.categories-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 12px 0;
    /* Elegant masking gradient overlay to fade cards at the left and right edges */
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.categories-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    will-change: transform;
}


.category-card {
    background-color: var(--clr-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px; /* Tighter border-radius for smaller width */
    padding: 20px 12px;  /* Tighter padding for visual balance */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    flex: 0 0 150px; /* Reduced width to 150px! */
    width: 150px;    /* Reduced width to 150px! */
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Translates perfectly by exactly one group width (5 cards * 150px + 5 gaps * 20px = 850px) for 100% seamless infinite looping */
        transform: translate3d(-850px, 0, 0);
    }
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(226, 232, 240, 0.2);
}

.card-image {
    width: 70px; /* Adjusted image size for narrower 150px cards */
    height: 70px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.category-card:hover .card-image {
    transform: scale(1.1);
}

.card-image i {
    font-size: 2.3rem;
    transition: transform var(--transition-normal);
}

.card-purple .card-image i { color: var(--clr-purple); filter: drop-shadow(0 4px 10px hsla(263, 70%, 52%, 0.25)); }
.card-blue .card-image i { color: var(--clr-blue); filter: drop-shadow(0 4px 10px hsla(217, 89%, 56%, 0.25)); }
.card-green .card-image i { color: var(--clr-primary); filter: drop-shadow(0 4px 10px hsla(142, 72%, 40%, 0.25)); }
.card-orange .card-image i { color: var(--clr-orange); filter: drop-shadow(0 4px 10px hsla(25, 95%, 50%, 0.25)); }
.card-yellow .card-image i { color: var(--clr-yellow); filter: drop-shadow(0 4px 10px hsla(42, 98%, 48%, 0.3)); }

.category-card:hover .card-image i {
    transform: scale(1.15);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem; /* Adjusted title font size for narrower cards */
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 8px;
}

.card-underline {
    width: 25px;
    height: 3px;
    border-radius: 2px;
    margin-top: auto;
}

/* Card Themes */
.card-purple:hover { background: radial-gradient(100% 100% at top right, hsla(263, 70%, 52%, 0.03), #fff); }
.card-purple .card-underline { background-color: var(--clr-purple); }

.card-blue:hover { background: radial-gradient(100% 100% at top right, hsla(217, 89%, 56%, 0.03), #fff); }
.card-blue .card-underline { background-color: var(--clr-blue); }

.card-green:hover { background: radial-gradient(100% 100% at top right, hsla(142, 60%, 46%, 0.03), #fff); }
.card-green .card-underline { background-color: var(--clr-green-light); }

.card-orange:hover { background: radial-gradient(100% 100% at top right, hsla(25, 95%, 50%, 0.03), #fff); }
.card-orange .card-underline { background-color: var(--clr-orange); }

.card-pink:hover { background: radial-gradient(100% 100% at top right, hsla(328, 86%, 53%, 0.03), #fff); }
.card-pink .card-underline { background-color: var(--clr-pink); }

.card-yellow:hover { background: radial-gradient(100% 100% at top right, hsla(42, 98%, 48%, 0.03), #fff); }
.card-yellow .card-underline { background-color: var(--clr-yellow); }


/* ==========================================
   How It Works Section
   ========================================== */
.how-section {
    padding: 48px 0;
    background-color: var(--clr-body-bg);
}

.how-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.how-line {
    flex: 1;
    height: 1px;
    background: radial-gradient(circle, rgba(226, 232, 240, 1) 0%, rgba(226, 232, 240, 0) 100%);
    max-width: 150px;
}

.how-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.how-header-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--clr-dark);
}

.star-icon {
    color: var(--clr-primary);
    font-size: 0.65rem;
}

.star-icon.small {
    font-size: 0.5rem;
}

.how-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 390px;
    gap: 24px;
    flex: 1;
    text-align: center;
    transition: all var(--transition-normal);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.65);
    border-radius: 24px;
    padding: 44px 24px;
    box-shadow: 
        0 1px 2px rgba(15, 23, 42, 0.01),
        0 12px 30px -8px rgba(15, 23, 42, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.step-item:hover {
    transform: translateY(-10px);
    border-color: hsla(142, 72%, 40%, 0.32);
    box-shadow: 
        0 20px 40px -15px rgba(34, 197, 94, 0.16),
        0 0 25px -5px rgba(34, 197, 94, 0.06),
        0 10px 15px -10px rgba(15, 23, 42, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.step-image-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle, hsla(142, 72%, 40%, 0.06) 0%, transparent 75%);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.step-image-wrapper img {
    max-height: 95%;
    width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.06));
    transition: all var(--transition-normal);
}

.step-item:hover .step-image-wrapper img {
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 15px 25px rgba(34, 197, 94, 0.16));
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 
        0 2px 4px -1px rgba(15, 23, 42, 0.02),
        0 6px 12px -3px rgba(15, 23, 42, 0.03);
    transition: all var(--transition-normal);
}

.step-item:hover .step-indicator {
    border-color: var(--clr-primary);
    box-shadow: 
        0 6px 16px -3px rgba(34, 197, 94, 0.16),
        0 2px 5px -2px rgba(34, 197, 94, 0.06);
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, hsl(142, 76%, 32%) 100%);
    color: var(--clr-light);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}

.step-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clr-dark);
}

/* Curved dashed arrow divider with animation flow */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
}

.arrow-path {
    stroke-dasharray: 8;
    animation: dashOffset 1.5s linear infinite;
}

@keyframes dashOffset {
    to {
        stroke-dashoffset: -16;
    }
}


/* ==========================================
   Payment Methods Section Styles
   ========================================== */
.payments-section {
    padding: 48px 0;
    background-color: var(--clr-body-bg);
}

.payments-container {
    background: linear-gradient(135deg, hsl(145, 75%, 4%) 0%, hsl(145, 80%, 1%) 100%);
    border-radius: 32px;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
    border: 1px solid hsla(142, 80%, 45%, 0.22);
    box-shadow: 
        inset 0 20px 50px -20px hsla(142, 80%, 45%, 0.12),
        0 25px 60px -15px rgba(3, 8, 5, 0.75);
}

.payments-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, hsla(142, 80%, 45%, 0.12) 0%, rgba(0,0,0,0) 65%);
    pointer-events: none;
    z-index: 1;
}

.payments-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.payments-header h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--clr-light);
    margin: 0;
}

.header-line {
    flex: 1;
    height: 1px;
    max-width: 150px;
}

.line-left {
    background: linear-gradient(90deg, transparent, hsla(142, 80%, 45%, 0.55));
}

.line-right {
    background: linear-gradient(90deg, hsla(142, 80%, 45%, 0.55), transparent);
}

.sparkle-diamond {
    width: 14px;
    height: 14px;
    color: var(--clr-primary);
    filter: drop-shadow(0 0 6px hsla(142, 80%, 45%, 0.8));
    animation: sparklePulse 3s ease-in-out infinite;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.payments-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.payment-card {
    flex: 1;
    background: linear-gradient(135deg, hsla(145, 80%, 12%, 0.25) 0%, hsla(145, 80%, 6%, 0.1) 100%);
    border: 1px solid hsla(142, 80%, 45%, 0.16);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: 
        inset 0 10px 20px -10px hsla(142, 80%, 50%, 0.05),
        0 10px 25px -10px rgba(0, 0, 0, 0.45);
}

.payment-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 24px;
    background: radial-gradient(circle at 15% 15%, hsla(142, 80%, 45%, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.payment-card:hover {
    transform: translateY(-5px);
    border-color: hsla(142, 80%, 45%, 0.42);
    box-shadow: 
        inset 0 12px 30px -10px hsla(142, 80%, 50%, 0.15), 
        0 20px 45px -15px rgba(0, 0, 0, 0.65), 
        0 0 25px -5px hsla(142, 80%, 45%, 0.22);
}

.payment-card:hover::after {
    opacity: 1;
}

.card-icon-box {
    width: 100px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, hsl(142, 80%, 28%) 0%, hsl(142, 80%, 14%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 
        0 8px 20px -6px rgba(16, 185, 129, 0.35), 
        inset 0 2px 6px rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-normal);
}

.upi-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bank-icon-box {
    background: linear-gradient(135deg, hsla(145, 80%, 15%, 0.4) 0%, hsla(145, 80%, 8%, 0.2) 100%);
    border: 1px solid hsla(142, 80%, 45%, 0.22);
    box-shadow: inset 0 4px 10px -4px hsla(142, 80%, 50%, 0.22);
}

.payment-card:hover .card-icon-box {
    transform: scale(1.06);
}

.card-details h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-light);
    margin-bottom: 6px;
}

.card-details p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
}

.card-details .highlight-text {
    color: var(--clr-primary);
    font-weight: 700;
}

/* Central Divider elements */
.payment-card-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 110px;
    width: 40px;
}

.divider-line {
    width: 1px;
    height: 130px;
    background: linear-gradient(180deg, transparent, hsla(142, 80%, 45%, 0.3) 30%, hsla(142, 80%, 45%, 0.3) 70%, transparent 100%);
}

.divider-sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.divider-sparkle .sparkle-diamond.glow {
    width: 16px;
    height: 16px;
    color: var(--clr-primary);
    filter: drop-shadow(0 0 8px hsla(142, 80%, 45%, 1));
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.payments-content:hover .divider-sparkle .sparkle-diamond.glow {
    transform: rotate(180deg);
}

/* Glassmorphism security badges footer */
.payments-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsla(145, 80%, 3%, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(142, 80%, 45%, 0.15);
    border-radius: 100px;
    padding: 16px 48px;
    box-shadow: 
        inset 0 4px 24px -10px hsla(142, 80%, 50%, 0.1),
        0 15px 30px -10px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 2;
}

.footer-badge-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.badge-left-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-chevron {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--clr-primary);
    filter: drop-shadow(0 0 4px hsla(142, 80%, 45%, 0.4));
    transition: transform var(--transition-fast);
}

.footer-badge-item:hover {
    color: var(--clr-light);
}

.badge-icon {
    width: 20px;
    height: 20px;
    color: var(--clr-primary);
    filter: drop-shadow(0 0 4px hsla(142, 80%, 45%, 0.4));
    transition: transform var(--transition-normal);
}

.badge-icon.lightning {
    color: var(--clr-primary);
}

.footer-badge-item:hover .badge-icon {
    transform: scale(1.15) rotate(-5deg);
}

.badge-separator {
    width: 1px;
    height: 24px;
    background: hsla(142, 80%, 45%, 0.2);
}


/* ==========================================
   Footer Section
   ========================================== */
.footer {
    background-color: var(--clr-light);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding: 60px 0 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    max-width: 320px;
}

.footer-slogan {
    font-size: 0.95rem;
    color: var(--clr-dark-light);
    margin: 16px 0 24px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: hsla(142, 72%, 40%, 0.05);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--clr-primary);
    color: var(--clr-light);
    transform: translateY(-3px);
}

.footer-right {
    display: flex;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns grid (3 3 layout on two rows) */
    gap: 16px 40px; /* 16px vertical gap, 40px horizontal gap */
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-dark-light);
}

.footer-link:hover {
    color: var(--clr-primary);
}

.footer-icon {
    color: var(--clr-primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: 40px;
    padding-top: 24px;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--clr-dark-light);
    font-weight: 500;
}

.copyright-link {
    color: var(--clr-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.copyright-link:hover {
    color: var(--clr-primary-hover);
    text-decoration: underline;
}


/* ==========================================
   Interactive Quiz Modal Dialog
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 12, 24, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--clr-light);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-dark-light);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--clr-dark);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.quiz-timer {
    background-color: hsla(25, 95%, 50%, 0.08);
    border: 1px solid hsla(25, 95%, 50%, 0.15);
    color: var(--clr-orange);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-question-box {
    margin-bottom: 24px;
}

.question-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--clr-dark);
    line-height: 1.3;
    margin-top: 4px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background-color: var(--clr-light);
    border: 1.5px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px 20px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
    outline: none;
}

.option-btn:hover {
    border-color: var(--clr-primary);
    background-color: hsla(142, 72%, 40%, 0.02);
}

.option-letter {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: var(--clr-body-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--clr-dark-light);
    transition: var(--transition-fast);
}

.option-btn:hover .option-letter {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-light);
}

/* Option States */
.option-btn.correct {
    border-color: var(--clr-primary) !important;
    background-color: hsla(142, 72%, 40%, 0.06) !important;
}

.option-btn.correct .option-letter {
    background-color: var(--clr-primary) !important;
    border-color: var(--clr-primary) !important;
    color: var(--clr-light) !important;
}

.option-btn.wrong {
    border-color: var(--clr-pink) !important;
    background-color: hsla(328, 86%, 53%, 0.06) !important;
    animation: wobble 0.4s ease;
}

.option-btn.wrong .option-letter {
    background-color: var(--clr-pink) !important;
    border-color: var(--clr-pink) !important;
    color: var(--clr-light) !important;
}

/* Quiz Completion Screen Overlay */
.quiz-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-light);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.quiz-result.active {
    opacity: 1;
    pointer-events: all;
}

.result-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.result-icon-wrapper.success {
    background-color: hsla(142, 72%, 40%, 0.1);
    color: var(--clr-primary);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-icon-wrapper.failure {
    background-color: hsla(328, 86%, 53%, 0.1);
    color: var(--clr-pink);
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--clr-dark);
    margin-bottom: 8px;
}

.result-message {
    font-size: 0.95rem;
    color: var(--clr-dark-light);
    margin-bottom: 20px;
    max-width: 320px;
}

.result-reward-badge {
    background: linear-gradient(135deg, hsla(142, 72%, 40%, 0.08), hsla(142, 72%, 40%, 0.02));
    border: 2px dashed var(--clr-primary);
    padding: 16px 28px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.result-reward-badge .reward-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-primary);
}

.result-reward-badge .reward-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-dark-light);
}

/* Animations for Modal Actions */
@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

@keyframes scaleUp {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


/* ==========================================
   Responsive Media Queries
   ========================================== */

/* Desktop / Tablet Breakpoint (992px) */
@mixin lg {
    @media (max-width: 992px) { @content; }
}

@media (max-width: 992px) {
    #signUpBtn {
        display: none; /* Hide Sign Up button from mobile header */
    }

    .header .logo-text {
        display: none;
    }

    .header-container {
        height: 70px;
    }
    
    .mobile-drawer {
        top: 70px;
    }

    .nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    /* Hero section stacked */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1; /* Show robot illustration at the top of the screen on mobile */
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .main-hero-img {
        max-width: 360px;
    }

    /* Reposition and scale down floating elements on mobile to prevent viewport overflow */
    .floating-badge {
        transform: scale(0.74);
    }
    
    .floating-badge:hover, .floating-badge:active {
        transform: scale(0.85) translateY(-3px) !important;
    }

    .badge-correct {
        left: 2%;
        top: 8%;
    }

    .badge-reward {
        right: 2%;
        top: 24%;
    }

    .badge-xp {
        left: 4%;
        bottom: 18%;
    }

    .badge-streak {
        right: 4%;
        bottom: 4%;
    }

    /* Category list responsive wrap */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* How it works tablet row alignment */
    .steps-container {
        flex-direction: row;
        gap: 12px;
    }

    .step-item {
        padding: 32px 18px;
        min-height: 310px;
    }

    .step-image-wrapper {
        width: 150px;
        height: 150px;
    }

    /* Payment box responsive */
    .payments-container {
        padding: 40px 32px;
    }

    .payments-header h2 {
        text-align: center;
    }

    .payments-header h2 span {
        display: block;
        line-height: 1.1;
        margin-bottom: 4px;
    }

    .payments-content {
        flex-direction: column;
        gap: 0;
    }

    .payment-card {
        width: 100%;
        padding: 24px 28px;
        gap: 24px;
    }

    .payment-card-divider {
        flex-direction: column;
        height: 48px;
        width: 1px;
        margin: 16px auto;
    }

    .divider-line {
        width: 1px;
        height: 48px;
        background: linear-gradient(180deg, transparent, hsla(142, 80%, 45%, 0.3) 30%, hsla(142, 80%, 45%, 0.3) 70%, transparent 100%);
    }

    .payments-footer-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 24px;
        border-radius: 24px;
        width: 100%;
    }

    .footer-badge-item {
        width: 100%;
        padding: 14px 8px;
    }

    .badge-separator {
        width: 100%;
        height: 1px;
        background: hsla(142, 80%, 45%, 0.15);
    }
}

/* Mobile Breakpoint (640px) */
@media (max-width: 640px) {
    .floating-badge {
        transform: scale(0.72);
    }
    
    .floating-badge:hover, .floating-badge:active {
        transform: scale(0.82) translateY(-3px) !important;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-card {
        padding: 0;
    }

    .steps-container {
        flex-direction: column !important;
        gap: 16px;
        width: 100%;
        align-items: center;
    }

    .step-item {
        padding: 32px 24px;
        gap: 20px;
        border-radius: 20px;
        width: 100%;
        max-width: 320px;
        min-height: 280px;
        justify-content: center;
    }

    .step-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .step-indicator {
        padding: 6px 16px;
        gap: 8px;
        border-radius: 20px;
        width: auto;
        justify-content: center;
        border-color: rgba(226, 232, 240, 0.7);
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
        flex-shrink: 0;
    }

    .step-label {
        font-size: 0.85rem;
        line-height: 1.1;
        text-align: center;
    }

    .step-arrow {
        width: 32px;
        height: 16px;
        display: flex;
        flex-shrink: 0;
        transform: rotate(90deg);
        margin: 12px 0;
    }

    .step-arrow svg {
        width: 100%;
        height: 100%;
    }

    .payments-container {
        padding: 32px 20px;
    }

    .payment-card {
        padding: 20px 16px;
        gap: 16px;
        flex-direction: row;
        text-align: left;
    }

    .card-icon-box {
        width: 80px;
        height: 64px;
        padding: 10px;
        flex-shrink: 0;
    }

    .card-details h3 {
        font-size: 1.15rem;
    }

    .card-details p {
        font-size: 0.85rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
    }
    
    .footer-link {
        justify-content: center;
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .footer-icon {
        font-size: 0.95rem;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr); /* 2 columns (3 and 3 items layout) */
        gap: 16px 24px;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .floating-badge {
        transform: scale(0.62);
    }
    
    .floating-badge:hover, .floating-badge:active {
        transform: scale(0.72) translateY(-3px) !important;
    }
    
    .badge-correct {
        left: 1%;
        top: 6%;
    }

    .badge-reward {
        right: 1%;
        top: 22%;
    }

    .badge-xp {
        left: 2%;
        bottom: 16%;
    }

    .badge-streak {
        right: 2%;
        bottom: 2%;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on small mobile */
        gap: 14px 16px;
    }

    .footer-link {
        font-size: 0.82rem;
        gap: 6px;
    }

    .footer-icon {
        font-size: 0.88rem;
    }
}

/* ==========================================
   FAQ Section Styles
   ========================================== */
.faq-section {
    padding: 48px 0;
    background-color: var(--clr-light);
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.faq-line {
    flex: 1;
    height: 1px;
    background: radial-gradient(circle, rgba(226, 232, 240, 1) 0%, rgba(226, 232, 240, 0) 100%);
    max-width: 150px;
}

.faq-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-header-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--clr-dark);
    text-transform: uppercase;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: hsla(142, 72%, 40%, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: var(--clr-primary);
    box-shadow: 0 10px 30px -10px hsla(142, 72%, 40%, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: none;
    padding: 22px 28px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-dark);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-item:hover .faq-question {
    color: var(--clr-primary);
}

.faq-item.active .faq-question {
    color: var(--clr-primary);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--clr-body-bg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-dark-light);
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-item:hover .faq-icon {
    border-color: var(--clr-primary);
    background-color: var(--clr-primary-glow);
    color: var(--clr-primary);
}

.faq-item.active .faq-icon {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-light);
    transform: rotate(135deg); /* Rotates the + by 135deg to elegantly form a x close symbol */
}

/* Flawless height transition using CSS Grid fractional unit */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--transition-normal);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
}

.faq-answer-content p {
    padding: 0 28px 24px;
    font-size: 0.95rem;
    color: var(--clr-dark-light);
    line-height: 1.6;
}

.faq-list-bullets {
    padding: 0 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.faq-list-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--clr-dark-light);
    line-height: 1.4;
}

.faq-list-bullets li i {
    color: var(--clr-primary);
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Responsive FAQ media queries */
@media (max-width: 768px) {
    .faq-section {
        padding: 36px 0;
    }

    .faq-header {
        margin-bottom: 36px;
        gap: 10px;
    }

    .faq-line {
        display: none; /* Hide horizontal decorative lines on tablet/mobile to prevent squishing */
    }

    .faq-header-content {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Hide the second icon for a cleaner top-accented mobile header */
    .faq-header-content i:last-of-type {
        display: none;
    }
    
    .faq-header-content h2 {
        font-size: 1.45rem;
        text-align: center;
        line-height: 1.3;
        letter-spacing: 0.2px;
    }

    .faq-header-content h2 span {
        display: block; /* Stack "ASKED QUESTIONS" below "FREQUENTLY" */
        margin-top: 2px;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-answer-content p, 
    .faq-list-bullets {
        padding: 0 20px 20px;
        font-size: 0.9rem;
    }
    
    .faq-list-bullets li {
        font-size: 0.9rem;
    }
}



/* ==========================================
   Shape Reward - Authentication Portal Styles
   ========================================== */
/* PORTAL CENTERED CARDS (login, signup, forget) */
.portal-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px 24px; /* Offset the 80px fixed header with an elegant gap and bottom padding */
  position: relative;
  min-height: calc(100vh - 80px); /* Fill the viewport height minus header on desktop */
}

@media (max-width: 992px) {
  .portal-section {
    padding: 100px 24px 40px 24px; /* Offset the 70px mobile header with suitable gap and bottom padding */
    min-height: calc(100vh - 70px);
  }
}

.portal-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
  transition: transform var(--transition-normal);
}

.portal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1) 40%, rgba(0, 158, 73, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Card Badge Icon */
.portal-badge {
  width: 72px;
  height: 72px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  position: relative;
}

.portal-badge::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(0, 158, 73, 0.08);
  animation: pulseRipple 3s linear infinite;
}

.portal-badge svg {
  width: 28px;
  height: 28px;
}

/* Card Headers */
.portal-header {
  text-align: center;
  margin-bottom: 32px;
}

.portal-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.portal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
}

/* FORM STYLES */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.input-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.input-icon-left svg {
  width: 20px;
  height: 20px;
}

.form-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 16px 14px 48px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-normal);
}

.form-input:focus {
  border-color: var(--border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 158, 73, 0.08);
}

.form-input:focus + .input-icon-left {
  color: var(--primary);
}

/* Password Toggle Icon */
.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  transition: var(--transition-fast);
}

.password-toggle:hover {
  color: var(--primary);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Extra row actions (Remember me, forgot password) */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  background-color: var(--input-bg);
}

.custom-checkbox input:checked + .checkbox-box {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-box svg {
  width: 12px;
  height: 12px;
  color: #ffffff;
  stroke-width: 4px;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition-fast);
}

.custom-checkbox input:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.forgot-link {
  font-weight: 600;
  color: var(--primary);
}

.forgot-link:hover {
  text-decoration: underline;
}

/* Form Action Buttons */
.form-btn-margin {
  margin-top: 8px;
}

/* Form Divider OR */
.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid var(--border-color);
}

.form-divider:not(:empty)::before {
  margin-right: 16px;
}

.form-divider:not(:empty)::after {
  margin-left: 16px;
}

/* Portal Footer Call-to-actions */
.portal-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.portal-footer a {
  color: var(--primary);
  font-weight: 600;
  margin-left: 4px;
}

.portal-footer a:hover {
  text-decoration: underline;
}

/* STEPPER (forget.html) */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  padding: 0 10px;
}

.stepper-line {
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.stepper-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* active 2nd step */
  height: 100%;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

/* Active Step */
.step-item.active .step-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 158, 73, 0.12);
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 700;
}

/* Completed Step */
.step-item.completed .step-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.step-item.completed .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* VERIFICATION ALERT BANNER (forget.html) */
.alert-banner {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-light-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.5;
}

.alert-banner-icon {
  color: var(--primary);
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-banner-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

.alert-banner-content strong {
  color: var(--text-main);
}

.alert-change-link {
  color: var(--primary);
  font-weight: 700;
  margin-left: 6px;
  cursor: pointer;
}

.alert-change-link:hover {
  text-decoration: underline;
}

/* OTP CODES ROW (forget.html) */
.otp-container {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 24px 0;
}

.otp-input {
  flex: 1;
  width: 0;
  min-width: 0;
  max-width: 50px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background-color: var(--input-bg);
  text-align: center;
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  transition: var(--transition-normal);
}

@media (max-width: 480px) {
  .portal-card {
    padding: 24px 20px;
  }
  .otp-container {
    gap: 6px;
  }
}

.otp-input:focus {
  border-color: var(--border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 158, 73, 0.08);
}

/* OTP Resend timer text */
.timer-container {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.timer-link {
  color: var(--primary);
  font-weight: 700;
  pointer-events: none;
  opacity: 0.5;
  transition: var(--transition-fast);
}

.timer-link.active {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.timer-countdown {
  font-weight: 700;
  color: var(--text-main);
}

/* Centered form action buttons block */
.form-actions-center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}

/* ==========================================
   Minimalist Legal/Info Page Styles
   ========================================== */
.content-page-section {
    padding-top: 130px; /* Space for the sticky navigation header */
    padding-bottom: 80px;
    background-color: var(--clr-body-bg);
    min-height: calc(100vh - 80px - 220px); /* Adjust to push footer down */
}

.content-card {
    background-color: var(--clr-light);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.content-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--clr-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.content-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--clr-dark-light);
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(34, 197, 94, 0.15);
    padding-bottom: 20px;
}

.content-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-text p {
    font-size: 1rem;
    color: var(--clr-dark-light);
    margin-bottom: 18px;
    line-height: 1.7;
}

.content-text ul {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.content-text ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 0.98rem;
    color: var(--clr-dark-light);
}

.content-text ul li::before {
    content: "\f058"; /* check-circle icon from FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--clr-primary);
    font-size: 1.1rem;
}

/* Contact Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.contact-info-card {
    background-color: hsla(142, 72%, 40%, 0.02);
    border: 1px dashed hsla(142, 72%, 40%, 0.2);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 4px;
}

.contact-details p {
    font-size: 0.95rem;
    color: var(--clr-dark-light);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 768px) {
    .content-card {
        padding: 24px 16px;
    }
    .content-title {
        font-size: 2rem;
    }
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .contact-info-card {
        padding: 20px 16px;
    }
    .contact-method a {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px; /* Symmetric spacing from screen edges */
    }
    .content-card {
        padding: 24px 16px; /* Symmetrical internal card padding */
    }
    .input-wrapper, .form-input {
        width: 100%;
        max-width: 100%; /* Symmetrical and balanced width */
    }
}

/* Ultimate mobile reset to prevent any horizontal overflow on screen widths 320px - 400px */
@media (max-width: 400px) {
    .container {
        padding: 0 12px !important;
    }
    
    .content-card, .portal-card {
        padding: 20px 12px !important;
        border-radius: 16px;
    }
    
    /* Floating badges are now kept visible and scaled/repositioned in the media query above */
    
    .main-hero-img {
        max-width: 100% !important; /* Scales image down to fit perfectly within screen */
    }
    
    .step-item {
        max-width: 100% !important;
        padding: 24px 16px !important;
    }
    
    .payments-container {
        padding: 24px 12px !important;
    }
    
    .otp-container {
        gap: 4px !important; /* Give OTP inputs even more breathing room on tiny devices */
    }
}




