:root {
    --bg-main: #fcfdfc;
    --bg-secondary: #f0f7f4;
    --card-bg: rgba(255, 255, 255, 0.85);
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #064e3b;
    --text-main: #1a2e29;
    --text-dim: #64748b;
    --border: rgba(16, 185, 129, 0.15);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #064e3b 100%);
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
    --nav-floating-top: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
}

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

.hidden {
    display: none !important;
}

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

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Modern Background System */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-main);
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    opacity: 0.15;
}

.bg-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 10px 10px;
    background-image:
        linear-gradient(to right, var(--border) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, var(--border) 0.5px, transparent 0.5px);
    opacity: 0.1;
}



.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 1;
}

.blob-1 {
    background: var(--primary);
    top: -10%;
    right: -10%;
    animation: blobMove 20s infinite alternate ease-in-out;
}

.blob-2 {
    background: var(--secondary);
    bottom: -10%;
    left: -10%;
    animation: blobMove 25s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    background: #2dd4bf;
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    animation: blobMove 18s infinite alternate ease-in-out -5s;
}

.bg-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    mix-blend-mode: overlay;
}

@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 100px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.shape {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 8px;
    opacity: 0.1;
    animation: shapeFloat 15s infinite ease-in-out;
}

.shape.s1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
}

.shape.s2 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 15%;
    border-radius: 50%;
    border-style: dashed;
}

.shape.s3 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 25%;
    border-width: 4px;
}

@keyframes shapeFloat {

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

    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

/* Main Logo Styles */
.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.central-brand {
    transform: scale(1.3);
    pointer-events: none;
}

.central-brand .logo-qr {
    font-size: 1.3rem;
}

.central-brand .logo-by {
    font-size: 0.55rem;
    opacity: 0.6;
}

.central-brand .logo-mayar {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.central-brand i {
    font-size: 1.5rem;
}

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

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 70px;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

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

.nav-container.centered {
    justify-content: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.nav-logo i {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s infinite;
}

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

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

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

.logo-qr {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-by {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.7;
}

.logo-mayar {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    background: rgba(16, 185, 129, 0.05);
    padding: 0.5rem;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
}

.btn-nav {
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

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

.btn-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px var(--primary-glow);
}







.mobile-toggle {
    display: none;
    background: var(--bg-secondary);
    border: none;
    color: var(--secondary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (max-width: 850px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        flex-direction: column;
        background: white;
        padding: 2rem;
        border-radius: 24px;
        box-shadow: var(--shadow-premium);
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 20px;
    }
}

/* Default Tabs (Desktop) */
.tabs-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.qr-tabs {
    flex: 1;
    max-width: 500px;
    display: flex;
    gap: 1rem;
    background: transparent;
    padding: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.qr-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    scroll-snap-align: center;
    opacity: 0.4;
    transform: scale(0.9);
}

.tab-btn.active {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-slide-btn {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: white;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow-soft);
}

.tab-slide-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Mobile Rotary Selector */
/* Mobile adjustments for the slider */
@media (max-width: 768px) {
    .qr-tabs {
        max-width: 160px;
    }

    .tab-btn {
        flex: 0 0 100%;
        padding: 0.8rem 0;
    }
}

/* App Layout */
.app-container {
    max-width: 950px;
    margin: 120px auto 100px;
    padding: 0 1.5rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary);
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 3rem;
    opacity: 0.8;
}

/* Steps Flow Premium Design */
.steps-flow {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto 4rem;
    position: relative;
}

.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.step-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: rotate(10deg);
}

.step-info h5 {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 2px;
    font-weight: 800;
}

.step-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.3;
}

@media (max-width: 850px) {
    .steps-flow {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        margin-bottom: 3rem;
    }

    .step-card {
        padding: 1.2rem;
    }
}

/* Generator Card */
.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: visible;
    margin-top: 2rem;
    animation: slideUpFade 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Generator Grid Layout */
.generator-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

.config-area {
    min-width: 0;
}

.preview-area {
    position: sticky;
    top: 120px;
    z-index: 10;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: var(--primary);
    background: var(--primary-glow);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.generator-card::before {
    content: '';
    position: absolute;
    top: -1px;
    /* Align perfectly with border */
    left: -1px;
    right: -1px;
    height: 8px;
    background: var(--accent-gradient);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    z-index: 1;
}

/* Smart QR Tabs */
.qr-tabs {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--text-dim);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.inputs-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.smart-input {
    width: 100%;
    background: white;
    border: 3px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.smart-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-glow);
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

input[type="text"] {
    flex: 1;
    background: white;
    border: 3px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 5px var(--primary-glow), 0 10px 20px rgba(16, 185, 129, 0.05);
    transform: translateY(-1px);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 20px;
}

.option-item.full-width {
    grid-column: 1 / -1;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    border: 3px solid var(--border);
    transition: all 0.3s ease;
}

.file-input-wrapper:hover {
    border-color: var(--primary);
}

#qrLogo {
    display: none;
}

.btn-file {
    background: var(--bg-secondary);
    border: none;
    color: var(--secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-file:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.file-name {
    font-size: 0.85rem;
    color: var(--text-dim);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.option-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

select {
    width: 100%;
    background: white;
    border: 3px solid var(--border);
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

select:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-glow);
}

/* Custom Range Slider */
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

input[type="range"]:focus {
    outline: none;
}

/* Track styles */
input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: var(--bg-main);
    border-radius: 10px;
    border: 1px solid var(--border);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 6px;
    background: var(--bg-main);
    border-radius: 10px;
    border: 1px solid var(--border);
}

/* Thumb styles */
input[type="range"]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    /* Centers thumb on track */
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px var(--primary-glow);
}

.color-picker-wrapper {
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--border);
    background: white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-picker-wrapper:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

input[type="color"] {
    width: 140%;
    height: 140%;
    padding: 0;
    margin: -20%;
    border: none;
    cursor: pointer;
}

/* QR Display */
.qr-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 2.5rem;
    border-radius: 28px;
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
}

/* QR Frame System */
.qr-frame-container {
    padding: 2.5rem;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
}

.qr-frame-container.frame-basic {
    border: 8px solid var(--secondary);
    border-radius: 24px;
}

.qr-frame-container.frame-rounded {
    border: 8px solid var(--primary);
    border-radius: 100px 100px 40px 40px;
    padding-top: 4rem;
}

.qr-frame-container.frame-modern {
    background: var(--accent-gradient);
    padding: 3rem;
    box-shadow: 0 30px 60px var(--primary-glow);
}

.qr-frame-container.frame-modern .qr-result-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-label {
    display: none;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.qr-frame-container.has-frame .cta-label {
    display: block;
}

.qr-frame-container.frame-modern .cta-label {
    color: white;
    font-size: 1.6rem;
    letter-spacing: 4px;
}

.qr-result-box {
    width: 240px;
    height: 240px;
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.qr-result-box:hover {
    transform: scale(1.05);
}

.qr-result-box img {
    max-width: 100%;
    height: auto;
}

.qr-placeholder {
    color: #cbd5e1;
    text-align: center;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.qr-placeholder p {
    font-size: 0.8rem;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 0 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    transition: opacity 0.3s ease;
}

.action-buttons.hidden {
    opacity: 0;
    pointer-events: none;
}

.btn-secondary {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--secondary);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-ghost:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

/* Footer */
.app-footer {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.footer-tag {
    color: var(--primary);
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.generator-card {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Obsolete step indicator removed */

.step-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-weight: 700;
    color: var(--text-dim);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 6px var(--primary-glow);
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.step-label {
    position: absolute;
    top: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0.6;
    left: 50%;
    transform: translateX(-50%);
}

.step-dot.active .step-label {
    color: var(--primary);
    opacity: 1;
}

/* Tab Navigation Enhancements on Mobile */
/* Responsive Overrides */
@media (max-width: 950px) {
    .generator-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .preview-area {
        position: static;
    }

    .options-grid,
    .inputs-grid,
    .inputs-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .generator-card {
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .qr-tabs {
        overflow-x: auto;
        padding: 5px;
        scrollbar-width: none;
    }

    .qr-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        min-width: 120px;
        padding: 12px 10px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Hide Navbar and Mobile Toggle on Mobile */
    .navbar,
    .mobile-toggle {
        display: none !important;
    }

    .floating-preview-trigger {
        display: flex;
    }

    .qr-display-container {
        padding: 1.5rem;
    }
}

/* Floating Preview Trigger */
.floating-preview-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .floating-preview-trigger {
        display: flex;
    }
}

@keyframes bounce {

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

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

    60% {
        transform: translateY(-5px);
    }
}

/* Premium Button States */
.btn-primary,
.btn-secondary,
.btn-ghost {
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.smart-input:focus {
    transform: scale(1.02);
}

/* Interactive Feedback */
.qr-result-box {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Conversational Steps Layout */
.step-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.step-title i {
    color: var(--primary);
    background: var(--primary-glow);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-navigation {
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-spacer {
    flex: 1;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    color: var(--primary);
}

.qr-display-container {
    animation: float 6s infinite ease-in-out;
}

@keyframes float {

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

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

/* Mobile Responsive */
@media (max-width: 850px) {
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(7, 9, 14, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        border-left: 1px solid var(--border);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 640px) {
    .app-container {
        margin: calc(var(--nav-height) + 2rem) auto 3rem;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .btn-primary {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 3rem 2rem 2.5rem;
    border-radius: 32px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.contact-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

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

.modal-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.modal-option-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.country-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-weight: 600;
    color: var(--text-main);
}

.modal-option-card i {
    color: var(--primary);
    font-size: 1.2rem;
}

.wa-icon-large {
    color: #25D366 !important;
    -webkit-text-fill-color: #25D366 !important;
}

/* Animations fixes */
.hidden {
    display: none !important;
}

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

/* --- Authentic Mayar Footer & Global Elements --- */
footer {
    position: relative;
    padding: 100px 0 0;
    margin-top: 80px;
    background: #080a0c;
    color: white;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

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

.footer-brand img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    transition: 0.5s;
}

.footer-brand img:hover {
    filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.4));
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    line-height: 1.7;
    margin: 25px 0 35px;
    max-width: 350px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-menu-icons {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-menu-icons li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-menu-icons li a small {
    font-size: 0.5em;
    opacity: 0.5;
    margin-left: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-menu-icons li a i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: 0.3s;
}

.footer-menu-icons li a:hover {
    color: white;
    transform: translateX(10px);
}

.footer-menu-icons li a:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 10px var(--primary);
}

.footer-contact .footer-menu-icons li a {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.footer-contact .footer-menu-icons li a .contact-country-label {
    margin-left: auto;
    margin-right: 0;
}

.footer-contact .footer-menu-icons li a:hover {
    border-color: var(--primary);
    transform: none;
}

.contact-country-label {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.contact-country-label.mex {
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.contact-country-label.usa {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.contact-info-item i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.legal-grid a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.legal-grid a:hover {
    color: var(--primary);
}



/* WA & QR Modal Styles */
.wa-modal,
.qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.wa-modal.active,
.qr-modal.active {
    opacity: 1;
    pointer-events: all;
}

.wa-modal-content,
.qr-modal-content {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-modal.active .wa-modal-content,
.qr-modal.active .qr-modal-content {
    transform: scale(1);
}

.wa-modal-close,
.qr-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4b5563;
    transition: 0.3s;
}

.wa-modal-close:hover,
.qr-modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.wa-header,
.qr-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.wa-icon-large,
.qr-modal-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.wa-title,
.qr-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.wa-desc,
.qr-modal-desc {
    color: #64748b;
    font-size: 0.95rem;
}

.wa-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-option-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wa-option-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 15px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    text-decoration: none;
}

.wa-option-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.wa-opt-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-opt-info {
    display: flex;
    flex-direction: column;
}

.wa-opt-title {
    font-weight: 700;
    color: #111827;
}

.wa-opt-desc {
    font-size: 0.8rem;
    color: #64748b;
}

.wa-qr-btn {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.wa-qr-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.qr-canvas-wrapper {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-contact-label {
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        text-align: left;
        align-items: flex-start;
    }

    .footer-bottom {
        text-align: left;
    }

    .legal-grid {
        justify-content: flex-start;
    }

    .wa-modal-content {
        padding: 30px 20px;
    }
}

/* Scroll To Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 30px;
        right: 20px;
    }
}