/* ================================
   SuperAds Canada - Styles
   Ultra-Modern Glassmorphism Design
   ================================ */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --bg-white: #ffffff;
    --bg-gradient: #edf7fc;
    --text-charcoal: #333333;
    --text-light: #666666;
    --blue-primary: #4a90e2;
    --blue-secondary: #5ba3f5;
    --blue-gradient-start: #4a90e2;
    --blue-gradient-end: #357abd;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --shadow-hover: rgba(74, 144, 226, 0.25);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
.skip-to-main {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10001;
    background: var(--blue-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

.skip-to-main:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-charcoal);
    background: #ffffff;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* ===== Animated Background ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    display: none;
    /* Hidden - no background particles */
}

.floating-particle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}


/* ===== Breadcrumbs ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.breadcrumbs a {
    color: var(--blue-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-muted);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.9);
    }

    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

/* ===== Trust System & Badges ===== */
.trust-overlay-badge {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(74, 144, 226, 0.4);
    border-radius: 50px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    vertical-align: middle;
}

.trust-overlay-absolute {
    position: absolute;
    top: 12px;
    left: 12px;
}

.trust-overlay-badge i, .verified-shield-icon {
    color: #4a90e2;
    font-size: 0.9rem;
}

.trust-overlay-badge span {
    font-weight: 700;
    font-size: 0.72rem;
    color: #2c2c2c;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Shimmer Animation */
@keyframes shimmer-gold {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-badge {
    background: linear-gradient(90deg, 
        rgba(245, 158, 11, 0.8) 0%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(245, 158, 11, 0.8) 100%);
    background-size: 200% 100%;
    animation: shimmer-gold 4s infinite linear;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

.shimmer-badge i, .shimmer-badge .verified-shield-icon { color: #f59e0b !important; }

/* Price Shield Overlay */
.price-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

/* Enhanced Seller Card */
.verified-seller-card {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(74, 144, 226, 0.02));
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.verified-seller-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 144, 226, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.premium-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Section Styles ===== */
.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family-serif);
    color: var(--text-charcoal);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-charcoal);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--text-charcoal);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(74, 144, 226, 0.2));
    animation: floatImage 6s infinite ease-in-out;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 12px var(--shadow-light);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-gradient-start) 0%, var(--blue-gradient-end) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.btn-secondary {
    background: white;
    color: var(--text-charcoal);
    border: 2px solid var(--blue-primary);
}

.btn-secondary:hover {
    background: var(--bg-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ===== Glass Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.35), 0 0 0 1px rgba(74, 144, 226, 0.2);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(74, 144, 226, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.glass-card:hover .card-icon {
    animation: bounce 0.6s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(-5px);
    }

    75% {
        transform: translateY(-8px);
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-charcoal);
    margin-bottom: var(--spacing-sm);
}

.card-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Featured Categories ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.category-tile {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(74, 144, 226, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.category-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-tile:hover::before {
    left: 100%;
}

.category-tile:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 48px rgba(74, 144, 226, 0.4), 0 0 0 2px var(--blue-primary);
    background: rgba(255, 255, 255, 1);
    border-color: var(--blue-primary);
}

.category-tile:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
    transition: transform 0.3s ease;
}

.category-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-charcoal);
}

/* ===== AI Safety Section ===== */
.ai-safety .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.safety-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.safety-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(74, 144, 226, 0.15));
}

.safety-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.safety-feature {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.safety-feature:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.3), 0 0 0 1px var(--blue-primary);
    border-color: var(--blue-primary);
}

.safety-feature:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-text h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-charcoal);
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== Local Listings ===== */
.listings-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.listing-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px var(--shadow-light);
    transition: all var(--transition-medium);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.listing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.35), 0 0 0 1px rgba(74, 144, 226, 0.2);
}

.listing-card:hover::after {
    opacity: 1;
}

.listing-card:hover .listing-badge {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.listing-image {
    width: 100%;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-charcoal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.listing-info {
    padding: var(--spacing-md);
}

.listing-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-charcoal);
    margin-bottom: 0.5rem;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--blue-primary);
    margin-bottom: 0.25rem;
}

.listing-location {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(237, 247, 252, 0.8) 100%);
}

.cta-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow-light);
}

.cta-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-charcoal);
    margin-bottom: var(--spacing-lg);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: #1a1a1a;
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: 0;
    border-top: 3px solid var(--blue-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--blue-primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-badge {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
}

/* ── Version Pill ──────────────────────────────────────────────────────────── */
.footer-version-bar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.footer-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 4px 12px 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
    cursor: default;
    user-select: none;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-version-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 179, 237, 0.4);
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(99, 179, 237, 0.15);
}

/* Pulsing live-status dot */
.footer-version-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: versionDotPulse 2.5s ease-in-out infinite;
}

@keyframes versionDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50%       { opacity: 0.75; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0); }
}

/* Date text — hidden on mobile to keep pill compact */
.footer-version-date {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

@media (max-width: 480px) {
    .footer-version-date { display: none; }
}

/* ===== Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}





/* Zoom In Animation for Safety Title */
.zoom-in-effect {
    opacity: 0;
}

.zoom-in-effect.animate {
    animation: zoomIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Zoom Out Animation for Listings Title */
.zoom-out-effect {
    opacity: 0;
}

.zoom-out-effect.animate {
    animation: zoomOut 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes zoomOut {
    0% {
        opacity: 0;
        transform: scale(3) translateY(-20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tumbling Animation for Category Title */
.slide-in-right-down {
    opacity: 0;
}

.slide-in-right-down.animate {
    animation: tumbleIn 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Mobile fallback - ensure title is visible even if animation doesn't trigger */
@media (max-width: 768px) {
    .slide-in-right-down {
        opacity: 1;
    }

    .slide-in-right-down.animate {
        animation: tumbleInMobile 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }
}



/* ===== Footer Extensions ===== */
.footer-newsletter {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    outline: none;
}

.newsletter-btn {
    background: var(--blue-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-btn:hover {
    background: var(--blue-secondary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--blue-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== Mini Trust Badges (Footer) ===== */
.mini-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--blue-primary);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .mini-trust-badges {
        gap: 1rem;
        flex-wrap: wrap;
    }
}
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0f172a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}
@keyframes tumbleIn {
    0% {
        opacity: 0;
        transform: translateX(200px) translateY(-100px) rotate(180deg) scale(0.3);
    }

    60% {
        opacity: 1;
        transform: translateX(-20px) translateY(10px) rotate(-10deg) scale(1.1);
    }

    80% {
        transform: translateX(10px) translateY(-5px) rotate(5deg) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
    }
}

/* Simpler mobile animation */
@keyframes tumbleInMobile {
    0% {
        opacity: 0;
        transform: translateX(50px) rotate(20deg) scale(0.8);
    }

    60% {
        opacity: 1;
        transform: translateX(-10px) rotate(-5deg) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}


/* Tighter section spacing for better flow */
.section+.section {
    padding-top: var(--spacing-md);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {

    .hero-content,
    .safety-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-visual,
    .safety-visual {
        order: -1;
    }

    .safety-features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cards-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .listings-carousel {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        padding: 0.75rem;
    }

    .safety-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xxl: 3rem;
        --spacing-xl: 2.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
        /* Ensure text wraps properly on small screens */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns for legal links */
    }

    /* Newsletter stays full width */
    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .category-tile {
        padding: var(--spacing-md);
    }
}

/* ===== Global Modal & Loading Styles ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    /* Higher than header */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-width: 90vw;
    width: 400px;
}

.loading-overlay.active .loading-spinner-container {
    transform: scale(1);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--blue-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}