/* ===================================
   PROFESSIONAL QR CODE GENERATOR
   Modern Design System
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --premium-gradient: linear-gradient(135deg, #fcebad 0%, #f7d559 50%, #f0c328 100%);
    --premium-shadow: rgba(240, 195, 40, 0.4);

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-900);
    overflow-x: hidden;
    background: var(--gray-50);
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0.05;
    pointer-events: none;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo i {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

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

.nav-links a:hover {
    color: #667eea;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 160px 20px 100px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-flex-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-ad-wrapper {
    flex: 0 0 160px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.hero-ad-wrapper .banner-ad-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.banner-ad-container.hero-skyscraper {
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 600px;
    margin: 0 0 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FLOATING SCAN BUTTON ===== */
#scan-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50% !important;
    padding: 0 !important;
    color: white;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-base);
}

#scan-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

#scan-button::after {
    content: "Scan";
    position: absolute;
    right: 70px;
    background-color: var(--gray-900);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

#scan-button:hover::after {
    opacity: 1;
}

/* ===== SMART LINK PEEK BUTTONS ===== */
.smart-link-peek {
    position: fixed;
    top: 50%;
    width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    transform: translateY(-50%);
    opacity: 0.9;
}

.smart-link-peek.left {
    left: -35px;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 4px 12px rgba(240, 147, 251, 0.3);
    padding-right: 5px;
    animation: peek-out-left 4s ease-in-out infinite;
}

.smart-link-peek.right {
    right: -35px;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 4px 12px rgba(240, 147, 251, 0.3);
    padding-left: 5px;
    animation: peek-out-right 4s ease-in-out infinite;
}

.smart-link-peek.left:hover {
    left: 0;
    opacity: 1;
    animation: none;
    box-shadow: 6px 6px 20px rgba(240, 147, 251, 0.5);
}

.smart-link-peek.right:hover {
    right: 0;
    opacity: 1;
    animation: none;
    box-shadow: -6px 6px 20px rgba(240, 147, 251, 0.5);
}

@keyframes peek-out-left {

    0%,
    100%,
    20%,
    80% {
        left: -35px;
    }

    40%,
    60% {
        left: -5px;
    }
}

@keyframes peek-out-right {

    0%,
    100%,
    20%,
    80% {
        right: -35px;
    }

    40%,
    60% {
        right: -5px;
    }
}

/* ===== FLOATING REWARD BADGE ===== */
#floating-reward-badge {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.3);
    border: 1px solid rgba(79, 172, 254, 0.2);
    z-index: 1000;
    transition: var(--transition-base);
    animation: badge-wiggle 5s ease-in-out infinite;
    cursor: pointer;
}

#floating-reward-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
    background: white;
}

#floating-reward-badge .badge-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    animation: icon-pulse 2s ease-in-out infinite, shadow-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 172, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0);
    }
}

#floating-reward-badge .badge-text {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

@keyframes badge-wiggle {

    0%,
    90%,
    100% {
        transform: rotate(0deg);
    }

    92% {
        transform: rotate(-5deg);
    }

    94% {
        transform: rotate(5deg);
    }

    96% {
        transform: rotate(-5deg);
    }

    98% {
        transform: rotate(5deg);
    }
}

/* ===== FLOATING PREMIUM BADGE ===== */
#floating-premium-badge {
    position: fixed;
    bottom: 110px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 25px var(--premium-shadow);
    border: 1px solid rgba(240, 195, 40, 0.2);
    z-index: 1000;
    transition: var(--transition-base);
    animation: premium-float 3s ease-in-out infinite;
    cursor: pointer;
}

#floating-premium-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px var(--premium-shadow);
    background: white;
}

#floating-premium-badge .badge-icon {
    width: 32px;
    height: 32px;
    background: var(--premium-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    animation: icon-pulse 2s ease-in-out infinite, premium-glow 2s ease-in-out infinite;
}

#floating-premium-badge .badge-text {
    color: var(--gray-800);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}



@keyframes premium-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes premium-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 195, 40, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(240, 195, 40, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(240, 195, 40, 0);
    }
}

/* ===== SECTION STYLES ===== */
.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===== FEATURES SECTION ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-flex-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

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

.feature-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== QR GENERATOR SECTION ===== */
.qr-generator {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
}

/* Full-page layout: Controls LEFT, Preview RIGHT */
.generator-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: center;
    min-height: 70vh;
}

/* RIGHT Panel: Preview (Same size as controls) */
.generator-preview {
    flex: 1;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
}

.generator-preview .qr-output {
    background: transparent;
    padding: 1rem;
    text-align: center;
}

/* LEFT Panel: Controls (Compact) */
.generator-controls {
    flex: 1;
    max-width: 450px;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    max-height: 70vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Custom scrollbar for controls */
.generator-controls::-webkit-scrollbar {
    width: 6px;
}

.generator-controls::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.generator-controls::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* Two Ad Boxes Row */
.generator-ads-row {
    max-width: 1600px;
    width: 95%;
    margin: 3rem auto 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.generator-ad-box {
    flex: 1 1 740px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    transition: var(--transition-base);
}


.generator-ad-box .banner-ad-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive: Stack on mobile */
@media (max-width: 900px) {
    .generator-layout {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }

    .generator-controls,
    .generator-preview {
        max-width: 100%;
        width: 100%;
    }

    .generator-controls {
        max-height: none;
        overflow-y: visible;
        order: 1;
    }

    .generator-preview {
        order: 0;
        min-height: 300px;
    }

    .generator-ads-row {
        flex-direction: column;
        align-items: center;
    }

    .generator-ad-box {
        max-width: 100%;
    }
}

/* ===== QR HISTORY SECTION ===== */
.qr-history-container {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: var(--shadow-xl);
    animation: slideUpFade 0.8s ease-out;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.history-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-header h3 i {
    color: #667eea;
}

.clear-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.history-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.history-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #667eea;
}

.history-qr-preview {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: pointer;
}

.history-qr-preview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.history-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.history-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.hist-action-btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.hist-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.hist-download:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.hist-delete {
    background: var(--gray-50);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.hist-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

@media (max-width: 768px) {
    .qr-history-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }

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

/* Old container style for compatibility */
.generator-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid var(--gray-100);
}

.input-container {
    margin-bottom: 0.5rem;
}

input[type="text"],
select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.75rem;
    transition: var(--transition-fast);
    background: var(--gray-50);
}

input[type="text"]:focus,
select:focus {
    border-color: #667eea;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}


button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-md);
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.color-pickers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.color-pickers label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.color-pickers input[type="color"] {
    width: 100%;
    height: 50px;
    border: 3px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    background: white;
    padding: 4px;
}

.color-pickers input[type="color"]:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

/* Remove default color picker styling */
.color-pickers input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-pickers input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* Dot Style Selector */
.dot-style-selector {
    margin-bottom: 1.5rem;
}

.dot-style-selector label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    width: 100%;
}

.style-btn:hover {
    background: var(--gray-100);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.style-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    color: #667eea;
}

.style-btn i {
    font-size: 1.5rem;
}


.qr-output {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: fit-content;
    margin: 3rem auto;
    /* Increased margin for floating buttons */
    padding: 10px;
    /* Protective padding for offset buttons */
}

.qr-code-container {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: scale(0.9);
    transition: var(--transition-slow);
    border: 1px dashed var(--gray-200);
    /* Modern dashed border for preview area */
}

.qr-code-container.show {
    opacity: 1;
    transform: scale(1);
}

/* Fullscreen Button Styles */
.fullscreen-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fullscreen-btn:hover {
    background: var(--gray-50);
    color: #667eea;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.fullscreen-btn i {
    font-size: 1.15rem;
}

/* Fullscreen API Styles */
.qr-output:fullscreen {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
    width: 100vw;
    height: 100vh;
    padding: 0 !important;
    margin: 0;
    border: none;
    border-radius: 0;
}

.qr-output:fullscreen .qr-code-container {
    background: white;
    padding: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border-radius: 32px;
    opacity: 1;
    transform: scale(1);
}

.qr-output:fullscreen canvas {
    max-width: 80vmin !important;
    max-height: 80vmin !important;
    width: auto !important;
    height: auto !important;
}

/* Vendor Prefixes for Fullscreen */
.qr-output:-webkit-full-screen {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
}

.qr-output:-moz-full-screen {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
}

.qr-output:fullscreen .fullscreen-btn,
.qr-output:-webkit-full-screen .fullscreen-btn,
.qr-output:-moz-full-screen .fullscreen-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-output:fullscreen .fullscreen-btn:hover,
.qr-output:-webkit-full-screen .fullscreen-btn:hover,
.qr-output:-moz-full-screen .fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.format-selector select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    margin-bottom: 0;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-buttons button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
}

.embed-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    text-align: center;
}

.embed-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--gray-800);
}

.embed-code-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#embed-code {
    flex: 1;
    min-width: 300px;
    height: 100px;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    background: white;
    resize: vertical;
}

.copy-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #11998e;
    font-weight: 500;
}

/* ===== QR SCANNER SECTION ===== */
.qr-scanner {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.scanner-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.scanner-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scanner-container>p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.scanner-buttons {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#scanner-area {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 350px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    width: 250px;
    height: 250px;
    border: 3px solid #667eea;
    border-radius: var(--radius-xl);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    position: relative;
}

.scanner-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {

    0%,
    100% {
        top: 0;
    }

    50% {
        top: 100%;
    }
}

/* ===== SCAN RESULT & SAFETY PREVIEW ===== */
.result-header {
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 0.75rem;
}

.result-header h3 {
    font-size: 1.25rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.safety-preview {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: fadeIn 0.4s ease-out;
}

.safety-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.1);
}

.safety-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.safety-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.safety-domain {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4338ca;
    word-break: break-all;
}

.result-content {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    word-break: break-all;
    text-align: left;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.result-content a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.result-content a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.qr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
    width: 100%;
}

.action-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: var(--shadow-sm);
    font-family: 'Inter', sans-serif;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.05);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.help-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid var(--gray-100);
}

.help-container h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tutorial-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: var(--gray-100);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    background: var(--gray-200);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.tutorial-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 600;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    line-height: 1.7;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list strong {
    color: var(--gray-900);
}

.format-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.format-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: var(--transition-fast);
}

.format-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.format-card h4 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 600;
}

.format-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gray-900);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

footer p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: #667eea;
    transform: translateY(-3px);
}

/* ===== MODAL ===== */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    animation: slideDown 0.3s ease-out;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--gray-700);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #f5576c;
    font-weight: 700;
}

.modal-content p {
    color: var(--gray-700);
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero {
        padding: 120px 20px 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        gap: 2rem;
    }

    .generator-container,
    .scanner-container,
    .help-container {
        padding: 2rem 1.5rem;
    }

    .color-pickers {
        grid-template-columns: 1fr;
    }

    #scan-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }

    .tutorial-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .tutorial-step {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .format-info {
        grid-template-columns: 1fr;
    }
}

/* ===== NATIVE AD CONTAINER ===== */
.native-ad-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.native-ad-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
}

/* ===== FOOTER AD WRAPPER ===== */
.footer-ad-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.footer-ad-container {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

/* ===== CUSTOM ALERT ===== */
#custom-alert {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== LOADING ANIMATION ===== */
.qr-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SCANNING INDICATOR ===== */
/* ===== SCANNING INDICATOR ===== */
.scanning-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ===== ENHANCED BUTTON ANIMATIONS ===== */

/* QR Actions Group */
.qr-actions-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    animation: slideUpFade 0.6s ease-out;
}

.action-button,
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

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

.action-button:hover::before,
.share-button:hover::before {
    width: 300px;
    height: 300px;
}

.action-button:hover,
.share-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.action-button:active,
.share-button:active {
    transform: translateY(-1px) scale(0.98);
}

.action-button i,
.share-button i {
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.action-button:hover i,
.share-button:hover i {
    transform: scale(1.15);
}

.share-button {
    background: var(--primary-gradient);
}

/* Slide Up Fade Animation */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FEATURE CARD SCROLL ANIMATIONS ===== */
/* Scroll animations will be handled by JavaScript IntersectionObserver */

.feature-card:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-card .icon {
    transition: var(--transition-base);
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== INPUT FIELD ANIMATIONS ===== */
input[type="text"]:focus,
select:focus {
    animation: inputGlow 0.5s ease-out;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
}

/* ===== COLOR PICKER ANIMATIONS ===== */
.color-pickers input[type="color"] {
    transition: var(--transition-base);
    position: relative;
}

.color-pickers input[type="color"]:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-pickers input[type="color"]:active {
    transform: scale(0.95);
}

/* ===== QR CODE CONTAINER ENHANCED ANIMATION ===== */
.qr-code-container {
    animation: qrReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes qrReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.qr-code-container.show {
    animation: qrPulse 0.6s ease-out;
}

@keyframes qrPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== SECTION HEADER ANIMATIONS ===== */
.section-header {
    animation: fadeInDown 0.8s ease-out;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: underlineExpand 1s ease-out 0.5s forwards;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

/* ===== NAVIGATION LINK ANIMATIONS ===== */
.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: var(--transition-base);
}

.nav-links a:hover::before {
    left: 100%;
}

/* ===== FLOATING SCAN BUTTON ENHANCED ===== */
#scan-button {
    animation: floatButton 3s ease-in-out infinite;
}

@keyframes floatButton {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#scan-button:hover {
    animation: none;
}

/* ===== HERO STATS ANIMATION ===== */
.stat-item {
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.1);
}

.stat-item:hover .stat-number {
    animation: numberPulse 0.6s ease-out;
}

@keyframes numberPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== HERO BUTTONS ENHANCED ===== */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::after,
.btn-secondary:hover::after {
    width: 300px;
    height: 300px;
}

/* ===== TAB BUTTON ANIMATIONS ===== */
.tab-btn {
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-base);
}

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

.tab-btn.active {
    animation: tabActivate 0.3s ease-out;
}

@keyframes tabActivate {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== TUTORIAL STEP ANIMATIONS ===== */
.tutorial-step {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.tutorial-step:nth-child(1) {
    animation-delay: 0.1s;
}

.tutorial-step:nth-child(2) {
    animation-delay: 0.2s;
}

.tutorial-step:nth-child(3) {
    animation-delay: 0.3s;
}

.tutorial-step:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    animation: stepBounce 2s ease-in-out infinite;
}

@keyframes stepBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ===== FORMAT CARD ANIMATIONS ===== */
.format-card {
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.format-card:nth-child(1) {
    animation-delay: 0.1s;
}

.format-card:nth-child(2) {
    animation-delay: 0.2s;
}

.format-card:nth-child(3) {
    animation-delay: 0.3s;
}

.format-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCANNER FRAME ENHANCED ===== */
.scanner-frame {
    animation: scannerPulse 2s ease-in-out infinite;
}

@keyframes scannerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    }
}

/* ===== EMBED SECTION ANIMATION ===== */
.embed-section {
    animation: slideDown 0.4s ease-out;
}

#embed-code {
    transition: var(--transition-base);
}

#embed-code:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ===== COPY MESSAGE ANIMATION ===== */
.copy-message {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODAL ENHANCED ANIMATION ===== */
.modal-content {
    animation: modalBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== FOOTER SOCIAL LINKS ANIMATION ===== */
.social-links a {
    transition: var(--transition-base);
    display: inline-block;
}

.social-links a:hover {
    animation: socialBounce 0.6s ease-out;
}

@keyframes socialBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px) rotate(-10deg);
    }

    75% {
        transform: translateY(-10px) rotate(10deg);
    }
}

/* ===== SHIMMER EFFECT FOR HEADINGS ===== */
.hero h1,
.section-header h2 {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

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

    100% {
        background-position: 200% center;
    }
}

/* ===== LOADING SPINNER ENHANCED ===== */
.qr-loading::after {
    animation: spinGlow 1s linear infinite;
}

@keyframes spinGlow {
    0% {
        transform: rotate(0deg);
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }

    100% {
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

/* ===== GENERATE BUTTON SPECIAL EFFECTS ===== */
#generate-btn {
    position: relative;
    overflow: hidden;
}

#generate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* ===== HOVER GLOW EFFECTS ===== */
.generator-container:hover,
.scanner-container:hover,
.help-container:hover {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    transition: var(--transition-base);
}

/* ===== RESPONSIVE ANIMATION ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .feature-card {
        animation: none;
    }

    .qr-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .action-button,
    .share-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===== ADVERTISEMENT SECTIONS ===== */
/* Native Ad Container */
.native-ad-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.native-ad-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Banner Ad Container */
.banner-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.banner-ad-container.skyscraper-600 {
    min-height: 600px;
}

.banner-ad-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Footer Ad Wrapper */
.footer-ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.footer-ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Ad Section Wrapper */
.ad-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    z-index: 1;
}

.ad-section p {
    text-align: center;
    margin-bottom: 1rem;
}

/* Responsive Ad Styling */
@media (max-width: 768px) {

    .native-ad-container,
    .banner-ad-container,
    .ad-section {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .footer-ad-wrapper {
        padding: 1.5rem 1rem;
    }

    .footer-ad-container {
        min-height: 250px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-slide-down {
    animation: fadeInDown 1s ease-out forwards;
}

/* ===== ACCESSIBILITY: REDUCE MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 992px) {
    .hero-flex-container {
        flex-direction: column;
        text-align: center;
    }

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

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-ad-wrapper {
        margin-top: 2rem;
    }
}

/* ===== LOGO UPLOAD SECTION ===== */
.logo-upload-section {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.logo-upload-section>label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.logo-upload-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.logo-upload-btn,
.logo-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.logo-upload-btn {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.logo-upload-btn:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logo-upload-btn i {
    font-size: 1rem;
    color: #667eea;
}

.logo-remove-btn {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-color: #fca5a5;
}

.logo-remove-btn:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.logo-remove-btn i {
    font-size: 0.875rem;
}

.logo-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

/* ===== SIZE CONTROL ===== */
.size-control {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.size-control>label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.size-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.size-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

/* ===== FORMAT CONTROL ===== */
.format-control {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.format-control>label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.format-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.format-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.format-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.format-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

/* ===== SHARE CONTROL ===== */
.share-control {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.share-control>label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.share-options {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
}

.share-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#share-whatsapp:hover:not(:disabled) {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

#share-twitter:hover:not(:disabled) {
    border-color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
    color: #1DA1F2;
}

#share-email:hover:not(:disabled) {
    border-color: #EA4335;
    background: rgba(234, 67, 53, 0.1);
    color: #EA4335;
}

#share-native:hover:not(:disabled) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* ===== EMBED ACTION BUTTON ===== */
.embed-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    font-family: 'Inter', sans-serif;
}

.embed-action-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.embed-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== MARGIN CONTROL ===== */
.margin-control {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.margin-control label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.margin-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.margin-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.margin-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#margin-value {
    color: #667eea;
    font-weight: 600;
}

/* ===== SHADOW CONTROL ===== */
.shadow-control {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.shadow-control>label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.shadow-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shadow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    font-family: 'Inter', sans-serif;
    flex: 1;
}

.shadow-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shadow-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}

/* ===== URL VALIDATION FEEDBACK (MODERN) ===== */
.url-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-feedback i {
    font-size: 0.85rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.url-feedback.valid {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.url-feedback.valid i {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.url-feedback.invalid {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.url-feedback.invalid i {
    color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-3px);
    }

    40%,
    80% {
        transform: translateX(3px);
    }
}

/* ===== ULTRA-MODERN CONTENT INTELLIGENCE CARD ===== */
.content-intel-card {
    margin: 1rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 0.95) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    animation: intelSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes intelSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-intel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.intel-icon {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.intel-info {
    flex: 1;
}

.intel-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.intel-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.intel-actions-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.intel-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-700);
}

.intel-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.intel-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 4px;
}

/* Intelligence Type variations */
.intel-type-social .intel-icon {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
}


.intel-type-contact .intel-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.intel-type-media .intel-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.url-feedback.text {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.url-feedback.text i {
    color: #8b5cf6;
}

/* ===== LIVE PREVIEW INDICATOR (MATCHING STYLE) ===== */
.live-preview-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    margin-top: 0.4rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.live-preview-indicator i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.live-preview-indicator span {
    opacity: 0.9;
}

/* ===== INPUT CONTAINER LAYOUT ===== */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-container .url-feedback,
.input-container .live-preview-indicator {
    align-self: flex-start;
}

@media print {

    /* Hide all elements by default */
    body * {
        display: none !important;
    }

    /* Show only the QR code container and its children */
    .qr-output,
    .qr-output *,
    #qr-code,
    #qr-code * {
        display: block !important;
    }

    /* Reset styles for printing */
    body {
        background: white !important;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }

    .qr-output {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: white !important;
    }

    #qr-code {
        margin: 0 auto;
        padding: 0;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
    }

    #qr-code canvas {
        width: 400px !important;
        height: 400px !important;
        max-width: 90vw;
        max-height: 90vh;
        object-fit: contain;
    }

    html,
    body {
        overflow: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== QR EMPTY STATE ===== */
.qr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    gap: 0.75rem;
}

.qr-empty-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.qr-empty-icon i {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
}

.qr-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    margin: 0;
}

.qr-empty-sub {
    font-size: 0.85rem;
    color: var(--gray-400);
    max-width: 200px;
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   ADVERTISE WITH US SECTION
   ======================================== */

.advertise-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin: 2rem 1rem;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}


/* Header */
.adv-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.adv-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.adv-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.adv-header>p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.adv-trust-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
}

.adv-trust-pills li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

/* How It Works */
.adv-how-it-works {
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

.adv-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.adv-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    max-width: 220px;
    text-align: left;
    flex: 1;
    min-width: 160px;
}

.adv-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-step-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.adv-step-text strong {
    font-size: 0.9rem;
    color: var(--gray-900);
}

.adv-step-text span {
    font-size: 0.78rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.adv-step-arrow {
    color: #667eea;
    font-size: 1.2rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.adv-note-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.adv-note-text i {
    color: #667eea;
}

/* Ad Preview */
.adv-preview-area {
    max-width: 860px;
    margin: 0 auto 3.5rem;
}

.adv-preview-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.adv-banners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adv-banner {
    background: linear-gradient(110deg, #e8eeff 0%, #f3e8ff 100%);
    border: 2px dashed rgba(102, 126, 234, 0.35);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #8b9cd4;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.adv-banner:hover {
    border-color: #667eea;
    color: #667eea;
    background: linear-gradient(110deg, #dde4ff 0%, #ead8ff 100%);
}

.adv-banner i {
    font-size: 1.8rem;
    opacity: 0.5;
}

.banner-leaderboard {
    width: 100%;
    min-height: 90px;
    padding: 1.2rem;
}

.adv-banner-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.banner-box {
    min-height: 120px;
    padding: 1.5rem;
}

/* Pricing Cards */
.adv-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.adv-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.adv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.15);
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px 20px 0 0;
}

.adv-card--popular {
    border-color: rgba(102, 126, 234, 0.4);
}

.adv-card--premium::before {
    background: linear-gradient(135deg, #f7d559, #f0c328);
}

.adv-card--premium {
    border-color: rgba(240, 195, 40, 0.4);
    background: linear-gradient(160deg, #fffdf0 0%, #fff 80%);
}

.adv-popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.adv-plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #667eea22, #764ba222);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.adv-plan-icon i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adv-card--premium .adv-plan-icon {
    background: linear-gradient(135deg, #f7d55944, #f0c32844);
}

.adv-card--premium .adv-plan-icon i {
    background: linear-gradient(135deg, #d4a800, #b88a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.adv-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.adv-price {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.adv-card--premium .adv-price {
    background: linear-gradient(135deg, #c8900a, #a87000);
    -webkit-background-clip: text;
    background-clip: text;
}

.adv-price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}

.adv-features {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.adv-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.adv-features li i {
    color: #667eea;
    font-size: 0.75rem;
    width: 14px;
    flex-shrink: 0;
}

.adv-card--premium .adv-features li i {
    color: #c8900a;
}

.adv-choose-btn {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.adv-choose-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.adv-card--premium .adv-choose-btn {
    background: linear-gradient(135deg, #f7d559 0%, #e8ac00 100%);
    color: #5a3e00;
}

.adv-card--premium .adv-choose-btn:hover {
    box-shadow: 0 8px 20px rgba(240, 195, 40, 0.5);
}

/* CTA Strip */
.adv-cta-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 60%, #9b5de5 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    color: white;
    max-width: 860px;
    margin: 0 auto 2.5rem;
    box-shadow: 0 16px 50px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.adv-cta-strip::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.adv-cta-strip h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.adv-cta-strip p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Payment Section */
.adv-payment-section {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    animation: fadeIn 0.5s ease;
}

.adv-payment-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 16px 60px rgba(102, 126, 234, 0.12);
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.adv-payment-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.5rem 2rem;
    color: white;
}

.adv-payment-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.adv-selected-plan-label {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.adv-payment-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.adv-qr-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.adv-qr-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
    border: 3px dashed rgba(102, 126, 234, 0.4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #667eea;
    opacity: 0.7;
}

.adv-scan-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

.adv-upi-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

.adv-upi-id i {
    color: #667eea;
}

.adv-copy-upi {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.adv-copy-upi:hover {
    opacity: 0.85;
}

.adv-form-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.adv-form-side label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.adv-form-side input[type="text"],
.adv-form-side input[type="url"] {
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    transition: border-color 0.2s;
    outline: none;
}

.adv-form-side input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.adv-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 2px dashed rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

.adv-upload-zone:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #dde4ff, #ead8ff);
}

.adv-upload-zone i {
    font-size: 1.8rem;
    opacity: 0.7;
}

.adv-paid-btn {
    margin-top: auto;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.adv-paid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 239, 125, 0.35);
}

.adv-success {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease;
}

.adv-success-icon {
    font-size: 4rem;
    color: #11998e;
    margin-bottom: 1rem;
}

.adv-success h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.adv-success p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Policy Note */
.adv-policy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 100, 100, 0.06);
    border: 1px solid rgba(220, 60, 60, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
    color: #9b2c2c;
    font-weight: 500;
    text-align: center;
}

.adv-policy-note i {
    font-size: 1rem;
    flex-shrink: 0;
    color: #c53030;
}

/* Responsive */
@media (max-width: 700px) {
    .adv-payment-body {
        grid-template-columns: 1fr;
    }

    .adv-banner-row {
        grid-template-columns: 1fr;
    }

    .adv-pricing-grid {
        grid-template-columns: 1fr;
    }

    .adv-cta-strip {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   SISTER PROJECTS SECTION (MORE TOOLS)
   ======================================== */
.sister-projects {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(243, 244, 246, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin: 4rem auto;
    padding: 60px 40px;
    max-width: 1200px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.imgcraft-promo .project-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.radhe-promo .project-icon {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

.soundshift-promo .project-icon {
    background: linear-gradient(135deg, #ec008c 0%, #fc6767 100%);
}

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 50px;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.project-card p {
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.project-status {
    font-size: 0.8rem;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.project-btn {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
}

.project-btn:hover {
    opacity: 0.9;
    transform: translateX(2px);
}

/* ========================================
   PREMIUM MORE TOOLS MODAL STYLING
   ======================================== */
.tools-modal-content {
    max-width: 760px !important;
    width: 92% !important;
    padding: 1.75rem 2rem !important;
    border-radius: var(--radius-xl) !important;
}

.close-tools-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-tools-modal:hover {
    color: var(--gray-800);
}

.modal-tools-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-tools-header i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.35rem;
}

.modal-tools-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.modal-tools-header p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.tool-modal-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 0.85rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-modal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-md);
    background: white;
}

.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.75rem;
}

.imgcraft-card .tool-icon-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
}

.radhe-card .tool-icon-wrapper {
    background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
    box-shadow: 0 4px 10px rgba(255, 153, 102, 0.2);
}

.soundshift-card .tool-icon-wrapper {
    background: linear-gradient(135deg, #ec008c 0%, #fc6767 100%);
    box-shadow: 0 4px 10px rgba(236, 0, 140, 0.2);
}

.tool-modal-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.tool-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    margin-bottom: 0.75rem;
}

.tool-modal-card p {
    font-size: 0.76rem;
    color: var(--gray-500);
    line-height: 1.45;
    margin-bottom: 1rem;
    flex: 1;
}

.tool-visit-btn {
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-base);
}

.tool-visit-btn:hover {
    opacity: 0.9;
}

.continue-site-btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-site-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.45);
}

/* ========================================
   FLOATING AD BADGE STYLING (SMART LINK)
   ======================================== */
.floating-ad-badge {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: linear-gradient(135deg, #ff9900 0%, #ff5500 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
    z-index: 999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    animation: bounceSlow 3s infinite;
}

.floating-ad-badge:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.6);
    color: white !important;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .floating-ad-badge {
        bottom: 20px;
        left: 20px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
}

/* ========================================
   NATIVE AD BANNER WRAPPER
   ======================================== */
.native-ad-section {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}


/* Version Page Specific Styles */
.version-hero {
    padding: 120px 2rem 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 93, 150, 0.1) 100%);
    position: relative;
}

.version-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.2;
}

.version-hero p {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.version-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 2rem;
}

.version-timeline {
    position: relative;
    padding: 2rem 0;
}

.version-card {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-gradient);
    transition: all 0.3s ease;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.version-card.current {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 93, 150, 0.05) 100%);
    border-left: 4px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

.version-card.current .version-badge {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 0 20px rgba(17, 153, 142, 0.4);
}

.version-info h2 {
    font-size: 1.8rem;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
}

.version-info p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.95rem;
}

.version-card.current .version-info h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-badge {
    display: inline-block;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.version-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.version-features h3 {
    color: var(--gray-800);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.4;
}

.version-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Timeline vertical line */
.version-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2, transparent);
    opacity: 0.3;
}





/* ================================================================================================
=================== */
/* ============================================================
   QrFlux — Ultra-Responsive Media Queries
   Breakpoints: 1200 | 1024 | 900 | 768 | 600 | 480 | 375 | 320
   ============================================================ */

/* ============================================================
   4 — TABLET PORTRAIT  (≤ 768px)
   Generator becomes single column (controls top, preview below)
   ============================================================ */
@media (max-width: 768px) {

    /* NAV - hamburger toggle drawer */
    .nav-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1.5rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        align-items: stretch;
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 0.95rem !important;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle.active .hamburger-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* FEATURES — 1 col */
    .features {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    /* GENERATOR — stack vertically */
    .generator-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Preview goes below controls, centred */
    .generator-preview {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .qr-output {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    /* SCANNER video */
    #scanner-video {
        width: 100%;
        border-radius: 12px;
    }

    /* PROJECTS — single column */
    .projects-container {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* HISTORY GRID */
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    /* TOOLS MODAL */
    .tools-modal-content {
        margin: 1rem;
        padding: 1.5rem 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    /* FOOTER SNAKE */
    #footer-snake {
        width: 200px !important;
        height: 100px !important;
    }

    /* VERSION CARDS */
    .version-card {
        padding: 1.5rem 1rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   5 — LARGE PHONE  (≤ 600px)
   Further compression, larger tap targets
   ============================================================ */
@media (max-width: 600px) {

    /* NAV */
    .nav-container {
        padding: 0.5rem 1rem !important;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    /* HERO */
    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-badge span {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    /* SECTION HEADERS */
    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    /* FEATURES — remain 1 col, full width */
    .features {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    .feature-card {
        padding: 1.2rem 1rem;
    }

    /* GENERATOR CONTROLS */
    .generator-controls {
        padding: 10px;
    }

    .input-container {
        gap: 0.7rem;
    }

    #qr-text {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }

    /* SIZE BUTTONS */
    .size-options {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .size-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    /* DOT STYLE / FORMAT / SHADOW BUTTONS */
    .style-options,
    .format-options,
    .shadow-options {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .style-btn,
    .format-btn,
    .shadow-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
    }

    /* SHARE BUTTONS */
    .share-options {
        gap: 0.5rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* ACTION BUTTONS */
    .qr-actions-group {
        flex-direction: column;
        gap: 0.6rem;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    /* GENERATE BUTTON */
    #generate-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* HISTORY */
    .history-grid {
        grid-template-columns: 1fr;
    }

    /* TUTORIAL TABS */
    .tutorial-tabs {
        gap: 0.3rem;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.7rem;
    }

    /* FORMAT INFO GRID */
    .format-info {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    /* SCANNER */
    .scanner-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .scanner-buttons button {
        width: 100%;
    }

    /* SISTER PROJECTS */
    .sister-projects {
        padding: 1.5rem 0.8rem;
    }

    .project-card {
        padding: 1.2rem 1rem;
    }

    /* VERSION PAGE */
    .version-hero {
        padding: 3rem 1rem 2rem;
    }

    .version-hero h1 {
        font-size: 1.8rem;
    }

    .version-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* FLOATING AD BADGE */
    .floating-ad-badge {
        bottom: 1rem;
        right: 0.8rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
}


/* ============================================================
   6 — STANDARD PHONE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {

    /* HERO */
    .hero {
        padding: 2rem 0.8rem 1.8rem;
    }

    .hero-content h1 {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }

    /* QR OUTPUT BOX */
    .qr-output {
        max-width: 300px;
        padding: 1rem;
        border-radius: 12px;
    }

    /* CONTENT INTEL CARD */
    .content-intel-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.7rem 0.8rem;
    }

    .intel-badge {
        align-self: flex-end;
        font-size: 0.65rem;
        margin-top: -1rem;
    }

    /* LOGO UPLOAD */
    .logo-upload-container {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .logo-upload-btn,
    .logo-remove-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }

    /* EMBED SECTION */
    .embed-code-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    #embed-code {
        width: 100%;
        font-size: 0.75rem;
    }

    /* HELP */
    .tutorial-step {
        gap: 0.7rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .step-number {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .tips-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .format-info {
        grid-template-columns: 1fr;
    }

    .format-card {
        padding: 0.8rem;
    }

    /* FOOTER SNAKE */
    #footer-snake {
        width: 180px !important;
        height: 90px !important;
    }

    /* TOOLS MODAL */
    .modal-content {
        margin: 0.5rem;
        border-radius: 12px;
        padding: 1.2rem 0.8rem;
    }

    .modal-tools-header i {
        font-size: 1.6rem;
    }

    .modal-tools-header h3 {
        font-size: 1.2rem;
    }

    .modal-tools-header p {
        font-size: 0.8rem;
    }

    /* SCAN BUTTON FAB */
    #scan-button {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        bottom: 1.2rem;
        right: 1rem;
    }
}


/* ============================================================
   7 — SMALL PHONE  (≤ 375px)
   ★ FLOATING LIVE PREVIEW in QR Generator
   ============================================================ */
@media (max-width: 375px) {

    /* ── NAV ── */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .nav-container {
        padding: 0.4rem 0.6rem !important;
    }

    .nav-logo span {
        font-size: 1rem;
    }

    /* ── HERO ── */
    .hero {
        padding: 1.8rem 0.6rem 1.5rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: clamp(1.25rem, 9vw, 1.8rem);
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 0.82rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.88rem;
        padding: 0.65rem 0.8rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* ── FEATURES ── */
    .features {
        padding: 1.2rem 0.6rem;
        gap: 0.8rem;
    }

    .feature-card {
        padding: 1rem 0.8rem;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.8rem;
    }

    /* ═══════════════════════════════════════════════════════════
     ★ GENERATOR — FLOATING LIVE PREVIEW  (≤ 375px)
     The preview panel leaves normal flow and floats as a
     sticky pill at the top-right so users can see the live
     QR while scrolling through all the settings below.
     ═══════════════════════════════════════════════════════════ */

    .generator-layout {
        display: block;
        /* remove grid/flex stacking */
        position: relative;
    }

    /* FLOATING PREVIEW PANEL */
    .generator-preview {
        position: fixed;
        /* stick to viewport */
        top: auto;
        bottom: 80px;
        /* above the FAB scan button */
        right: 0.6rem;
        width: 108px;
        height: 108px;
        z-index: 900;
        background: #fff;
        border-radius: 16px;
        box-shadow:
            0 8px 32px rgba(102, 126, 234, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.12);
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        /* Smooth transition instead of automatic entrance */
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px) scale(0.85);
        visibility: hidden;
        transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.35s;
        border: 2px solid rgba(102, 126, 234, 0.25);
        /* Drag handle hint */
        cursor: pointer;
    }

    .generator-preview.visible-floating {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        visibility: visible;
    }

    /* Tiny label badge on the floating preview */
    .generator-preview::before {
        content: "LIVE";
        position: absolute;
        top: -9px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        font-size: 0.52rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        padding: 2px 7px;
        border-radius: 99px;
        white-space: nowrap;
        z-index: 1;
        box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    }

    @keyframes floatIn {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.85);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Ensure the QR output fills the floating container */
    .generator-preview .qr-output {
        width: 96px;
        height: 96px;
        max-width: 96px;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Scale down QR canvas to fit the tiny container */
    .generator-preview .qr-output #qr-code canvas,
    .generator-preview .qr-output #qr-code img {
        width: 88px !important;
        height: 88px !important;
        border-radius: 8px;
    }

    /* Empty state inside floating preview — minimal */
    .generator-preview .qr-empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2px;
    }

    .generator-preview .qr-empty-icon i {
        font-size: 1.8rem;
        color: #c7d2fe;
    }

    .generator-preview .qr-empty-title {
        font-size: 0.55rem;
        color: #a0aec0;
        font-weight: 600;
        line-height: 1;
    }

    .generator-preview .qr-empty-sub {
        display: none;
        /* hide long text in tiny box */
    }

    /* Hide fullscreen button inside the float — too small */
    .generator-preview .fullscreen-btn {
        display: none !important;
    }

    /* Controls take full width (normal flow) */
    .generator-controls {
        width: 100%;
        padding: 10px;
        /* Add right padding so content doesn't go under the float */
    }

    /* Right-side padding on input area so nothing hides behind float */
    .input-container {
        padding-right: 0;
        gap: 0.6rem;
    }

    /* ── CONTROLS at 375px ── */
    #qr-text {
        font-size: 0.85rem;
        padding: 0.6rem 0.7rem;
    }

    .live-preview-indicator {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
    }

    .live-preview-indicator i {
        font-size: 0.7rem;
    }

    /* Size buttons row */
    .size-control label,
    .margin-control label,
    .shadow-control label,
    .dot-style-selector label,
    .logo-upload-section label,
    .format-control label,
    .share-control label,
    .color-pickers label {
        font-size: 0.78rem;
    }

    .size-options,
    .shadow-options,
    .style-options,
    .format-options {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .size-btn,
    .shadow-btn,
    .style-btn,
    .format-btn {
        font-size: 0.74rem;
        padding: 0.38rem 0.6rem;
        border-radius: 6px;
    }

    /* Sliders full-width */
    #qr-margin,
    #qr-radius {
        width: 100%;
    }

    /* Color picker row */
    .color-pickers {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    /* Action buttons */
    .qr-actions-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .action-button {
        width: 100%;
        font-size: 0.82rem;
        padding: 0.6rem 0.8rem;
    }

    /* Share buttons */
    .share-options {
        gap: 0.4rem;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    /* Generate & embed buttons */
    #generate-btn {
        font-size: 0.92rem;
        padding: 0.72rem 0.8rem;
        border-radius: 10px;
    }

    .embed-action-btn {
        font-size: 0.82rem;
        padding: 0.6rem;
    }

    /* Embed code block */
    .embed-section {
        padding: 0.8rem;
        border-radius: 10px;
    }

    .embed-code-container {
        flex-direction: column;
        gap: 0.4rem;
    }

    #embed-code {
        font-size: 0.72rem;
        min-height: 60px;
    }

    #copy-embed {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Logo upload */
    .logo-upload-container {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .logo-upload-btn,
    .logo-remove-btn {
        font-size: 0.76rem;
        padding: 0.38rem 0.6rem;
    }

    .logo-preview img {
        max-width: 56px;
        height: 56px;
        object-fit: contain;
    }

    /* Content intel card */
    .content-intel-card {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.6rem 0.7rem;
        border-radius: 10px;
    }

    .intel-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .intel-info h4 {
        font-size: 0.8rem;
    }

    .intel-info p {
        font-size: 0.7rem;
    }

    .intel-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }

    .intel-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
    }

    /* History */
    .qr-history-container {
        padding: 1rem 0.3rem;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .history-item {
        padding: 0.7rem;
        border-radius: 10px;
    }

    .history-qr-preview img {
        width: 52px;
        height: 52px;
    }

    .history-text {
        font-size: 0.75rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .history-date {
        font-size: 0.65rem;
    }

    .hist-action-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    /* ── SCANNER ── */
    .scanner-container {
        padding: 1.2rem 0.6rem;
        border-radius: 12px;
    }

    .scanner-container h2 {
        font-size: 1.2rem;
    }

    .scanner-container p {
        font-size: 0.8rem;
    }

    #start-scan,
    #stop-scan {
        width: 100%;
        font-size: 0.88rem;
        padding: 0.65rem;
    }

    .scanner-overlay {
        border-radius: 12px;
    }

    .result-header h3 {
        font-size: 1rem;
    }

    .safety-preview {
        padding: 0.5rem 0.7rem;
        border-radius: 8px;
        gap: 0.4rem;
    }

    .safety-label {
        font-size: 0.72rem;
    }

    .safety-domain {
        font-size: 0.82rem;
    }

    #result-content {
        font-size: 0.82rem;
        word-break: break-all;
    }

    .qr-actions {
        flex-direction: column;
        gap: 0.4rem;
    }

    .action-btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.55rem;
    }

    /* ── HELP ── */
    .help-section {
        padding: 1.5rem 0.6rem;
    }

    .help-container h2 {
        font-size: 1.2rem;
    }

    .tutorial-tabs {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.6rem;
        border-radius: 6px;
    }

    .tutorial-content {
        padding: 1rem 0.5rem;
    }

    .tutorial-content h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .tutorial-step {
        gap: 0.6rem;
        padding: 0.5rem 0;
    }

    .step-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-content h4 {
        font-size: 0.85rem;
    }

    .step-content p {
        font-size: 0.78rem;
    }

    .tips-list li {
        font-size: 0.78rem;
    }

    .format-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .format-card h4 {
        font-size: 0.88rem;
    }

    .format-card p {
        font-size: 0.75rem;
    }

    /* ── SISTER / TOOLS SECTION ── */
    .sister-projects {
        padding: 1.2rem 0.6rem;
    }

    .project-card {
        padding: 1rem 0.8rem;
        border-radius: 12px;
    }

    .project-card h3 {
        font-size: 1rem;
    }

    .project-card p {
        font-size: 0.78rem;
    }

    .project-btn {
        font-size: 0.78rem;
        padding: 0.45rem 0.8rem;
    }

    /* ── FOOTER ── */
    footer {
        padding: 1.5rem 0.6rem 2.5rem;
        text-align: center;
    }

    footer p {
        font-size: 0.78rem;
    }

    #footer-snake {
        width: 160px !important;
        height: 80px !important;
    }

    .footer-game p {
        font-size: 0.7rem;
    }

    /* ── MODALS ── */
    .modal-content {
        margin: 0.4rem;
        padding: 1rem 0.7rem;
        border-radius: 12px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .tools-modal-content {
        padding: 1.2rem 0.7rem;
    }

    .modal-tools-header h3 {
        font-size: 1.1rem;
    }

    .modal-tools-header p {
        font-size: 0.75rem;
    }

    .tool-modal-card {
        padding: 1rem 0.8rem;
        border-radius: 12px;
    }

    .tool-modal-card h4 {
        font-size: 0.92rem;
    }

    .tool-modal-card p {
        font-size: 0.76rem;
    }

    .tool-visit-btn {
        font-size: 0.78rem;
        padding: 0.45rem 0.8rem;
    }

    .continue-site-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    /* Error modal */
    #errorModal .modal-content h3 {
        font-size: 1rem;
    }

    #errorModal .modal-content p {
        font-size: 0.82rem;
    }

    .close-modal {
        font-size: 1.2rem;
    }

    /* Floating ad badge */
    .floating-ad-badge {
        bottom: 0.8rem;
        right: 0.5rem;
        font-size: 0.7rem;
        padding: 0.35rem 0.55rem;
    }

    /* Scan FAB */
    #scan-button {
        width: 44px;
        height: 44px;
        bottom: 1rem;
        right: 0.6rem;
        left: auto;
        font-size: 1rem;
    }

    /* VERSION PAGE */
    .version-hero {
        padding: 2rem 0.6rem 1.5rem;
    }

    .version-hero h1 {
        font-size: 1.5rem;
    }

    .version-hero p {
        font-size: 0.82rem;
    }

    .version-card {
        padding: 1rem 0.7rem;
        border-radius: 12px;
    }

    .version-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .version-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .version-info h2 {
        font-size: 1.1rem;
    }

    .version-info p {
        font-size: 0.78rem;
    }

    .current-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .feature-item {
        font-size: 0.78rem;
        padding: 0.3rem 0;
        gap: 0.4rem;
    }

    .feature-item i {
        font-size: 0.8rem;
        width: 16px;
    }

    .version-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }

    .stat-box {
        padding: 0.5rem 0.8rem;
        min-width: 60px;
    }

    .stat-box .stat-value {
        font-size: 1.2rem;
    }

    .stat-box .stat-label {
        font-size: 0.65rem;
    }

    /* Native ad section */
    .native-ad-section {
        padding: 0.5rem;
        overflow: hidden;
    }
}


/* ============================================================
   8 — EXTRA SMALL PHONE  (≤ 320px)
   Absolute minimum — nothing should overflow
   ============================================================ */
@media (max-width: 320px) {

    /* Floating preview gets even smaller */
    .generator-preview {
        width: 88px;
        height: 88px;
        bottom: 70px;
        right: 0.4rem;
        border-radius: 12px;
    }

    .generator-preview .qr-output {
        width: 76px;
        height: 76px;
        max-width: 76px;
    }

    .generator-preview .qr-output #qr-code canvas,
    .generator-preview .qr-output #qr-code img {
        width: 68px !important;
        height: 68px !important;
    }

    .generator-preview .qr-empty-icon i {
        font-size: 1.4rem;
    }

    .hero-content h1 {
        font-size: 1.25rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .nav-links a {
        font-size: 0.65rem;
    }

    .size-btn,
    .shadow-btn,
    .style-btn,
    .format-btn {
        font-size: 0.68rem;
        padding: 0.3rem 0.45rem;
    }

    .action-button,
    #generate-btn {
        font-size: 0.8rem;
        padding: 0.55rem 0.5rem;
    }

    #scan-button {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .floating-ad-badge {
        display: none;
        /* avoid extra clutter on tiny screens */
    }
}


/* ============================================================
   PRINT STYLES — clean QR for printing
   ============================================================ */
@media print {

    .navbar,
    .hero,
    .features,
    .qr-scanner,
    .help-section,
    .sister-projects,
    .native-ad-section,
    footer,
    #scan-button,
    .floating-ad-badge,
    .generator-controls .share-control,
    .generator-controls .embed-action-btn,
    .generator-controls #embed-btn,
    .qr-history-container,
    #particles-js {
        display: none !important;
    }

    body {
        background: white;
    }

    .qr-generator {
        padding: 1rem;
    }

    .generator-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .generator-preview {
        position: static !important;
        width: auto !important;
        height: auto !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
        padding: 1rem;
        border-radius: 8px;
    }

    .generator-preview .qr-output #qr-code canvas {
        width: auto !important;
        height: auto !important;
    }
}