/* Base Styles and Tokens - Brighter Purple Luxe Theme */
:root {
    --bg-color: #1c122b; /* Slightly brighter, deep purple/violet background */
    --card-bg: rgba(30, 20, 45, 0.85); 
    --card-border: rgba(159, 122, 234, 0.2); /* Purple-tinted border */
    --text-primary: #ffffff; /* Pure white as requested */
    --text-secondary: #e2e8f0; 
    --accent-primary: #9f7aea; /* Vibrant Lavender */
    --accent-hover: #b794f4;
    --accent-glow: rgba(159, 122, 234, 0.35);
    
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(28, 18, 43, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --ad-bg: rgba(0, 0, 0, 0.3);

    --font-heading: 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
    opacity: 0.05; /* Slightly more visible for the texture feel */
    z-index: 10;
    pointer-events: none;
}

/* Background Atmosphere - Drifting Orbs with Purple Tones */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(at 0% 0%, #2e1a47 0%, transparent 50%),
                radial-gradient(at 100% 100%, #150b24 0%, transparent 50%),
                radial-gradient(at 50% 50%, #1e122e 0%, transparent 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.25; /* More visible for 'brighter' feel */
    animation: drift 60s infinite alternate ease-in-out;
}

.orb-1 { width: 900px; height: 900px; background: #6b46c1; top: -300px; left: -200px; animation-duration: 50s; }
.orb-2 { width: 700px; height: 700px; background: #3182ce; bottom: -200px; right: -100px; animation-duration: 70s; }
.orb-3 { width: 500px; height: 500px; background: #d53f8c; top: 30%; left: 50%; opacity: 0.15; animation-duration: 90s; }

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, -50px); }
}

/* Shimmer Layer */
.shimmer-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 2.5px;
    height: 2.5px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.2;
    animation: sparkle-anim 15s infinite linear;
}

@keyframes sparkle-anim {
    0% { transform: translateY(100vh); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh); opacity: 0; }
}

/* Container & Layout */
.container {
    width: 100%;
    max-width: 500px;
    padding: 2.5rem 1rem;
    z-index: 1;
}

/* Ad Banners - Same as yesterday's setup */
.ad-banner { width: 100%; max-width: 500px; margin: 2rem auto; padding: 1rem; background: var(--ad-bg); border: 1px dashed var(--input-border); border-radius: 12px; text-align: center; backdrop-filter: blur(5px); }
.ad-content { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.top-ad { margin-top: 3rem; }
.bottom-ad { margin-bottom: 5rem; }

/* App Footer */
.app-footer { margin-top: 5rem; padding: 2rem; border-top: 1px solid var(--input-border); text-align: center; }
.footer-content p { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: #fff; text-decoration: none; opacity: 0.7; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

/* Privacy Policy Modal (CSS Only) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.modal-overlay:target { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-deep); border: 1px solid var(--card-border); padding: 3rem; border-radius: 32px; max-width: 600px; width: 90%; position: relative; max-height: 80vh; overflow-y: auto; }
.close-modal { position: absolute; top: 1.5rem; right: 2rem; font-size: 2.5rem; color: #fff; text-decoration: none; line-height: 1; }
.policy-body { margin-top: 2rem; text-align: left; }
.policy-body h3 { font-size: 1.1rem; color: var(--accent-lavender); margin: 1.5rem 0 0.5rem; }
.policy-body p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

@media (max-width: 600px) {
    .container { padding: 1.25rem; }
    .app-header h1 { font-size: 2.2rem; }
    .app-header p { font-size: 0.95rem; }
    .card { padding: 1.5rem; border-radius: 24px; }
    .ad-banner { width: 100%; margin: 1.5rem auto; }
    .modal-content { padding: 2rem; }
    .samples-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 450px) {
    .settings-grid { grid-template-columns: 1fr; gap: 1rem; }
    .samples-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .primary-btn { padding: 1.2rem; font-size: 1.1rem; }
    .qr-preview-section { padding: 1.5rem; }
    .canvas-wrapper { padding: 0.8rem; }
}

.app-header { text-align: center; margin-bottom: 3.2rem; }
.app-header h1 { font-family: var(--font-heading); font-size: 3.2rem; font-weight: 900; margin-bottom: 0.6rem; letter-spacing: -2px; color: #fff; }
.accent-text { 
    color: var(--accent-primary);
    text-shadow: 0 0 40px var(--accent-glow);
}
.app-header p { color: #fff; font-size: 1.1rem; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 36px;
    padding: 2.4rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* Forms */
.input-section { margin-bottom: 2.2rem; }
label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 800; 
    color: var(--text-primary); /* White labels */
    margin-bottom: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
.input-modern-wrapper input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 22px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}
.input-modern-wrapper input:focus { border-color: var(--input-focus); background: rgba(0, 0, 0, 0.6); box-shadow: 0 0 30px rgba(159, 122, 234, 0.2); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.color-picker-wrapper { display: flex; align-items: center; background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 22px; padding: 0.75rem; }
.color-picker-wrapper input[type="color"] { 
    -webkit-appearance: none; 
    appearance: none;
    width: 40px; 
    height: 40px; 
    border-radius: 12px; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
}
.color-hex { font-family: var(--font-mono); font-size: 0.9rem; margin-left: 0.8rem; color: #fff; font-weight: 700; }

.file-input-wrapper { position: relative; width: 100%; height: 56px; margin-bottom: 0.6rem; }
.file-input-wrapper input { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.file-label { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: 22px; color: var(--text-secondary); font-size: 1rem; pointer-events: none; transition: all 0.3s ease; }
.file-input-wrapper:hover .file-label { border-color: var(--accent-hover); color: #fff; }

.text-link-btn { background: none; border: none; color: #ffffff; font-size: 0.85rem; text-decoration: underline; cursor: pointer; margin-top: 6px; font-weight: 600; opacity: 0.8; }
.text-link-btn:hover { opacity: 1; }

/* Samples */
.samples-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(159, 122, 234, 0.15); }
.samples-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.target-toggle { display: flex; background: rgba(0, 0, 0, 0.5); padding: 5px; border-radius: 18px; border: 1px solid rgba(159, 122, 234, 0.2); }
.toggle-btn { padding: 8px 18px; border: none; background: none; color: #cbd5e0; font-size: 0.85rem; font-weight: 800; cursor: pointer; border-radius: 14px; transition: all 0.3s ease; }
.toggle-btn.active { background: #ffffff; color: #1c122b; box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); }
.samples-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sample-item { aspect-ratio: 1; background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 8px; transition: all 0.2s ease; }
.sample-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.sample-item svg { width: 100%; height: 100%; fill: #ffffff; }

/* Slider */
.slider { -webkit-appearance: none; width: 100%; height: 10px; background: rgba(0,0,0,0.5); border-radius: 20px; outline: none; margin: 1.5rem 0; border: 1px solid rgba(159, 122, 234, 0.2); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; background: #ffffff; border-radius: 50%; cursor: pointer; border: 3px solid #6b46c1; box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); }

/* Preview */
.qr-preview-section { display: flex; flex-direction: column; align-items: center; margin: 2.5rem 0; padding: 2rem; background: rgba(0, 0, 0, 0.3); border-radius: 32px; border: 1px solid var(--card-border); box-shadow: inset 0 0 30px rgba(0,0,0,0.3); }
.canvas-wrapper { padding: 1.2rem; background: white; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.canvas-wrapper:hover { transform: scale(1.04); }
#qr-canvas { display: block; max-width: 100%; border-radius: 12px; }
.preview-hint { font-size: 0.85rem; color: #cbd5e0; margin-top: 1.2rem; font-weight: 700; }

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-primary);
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(159, 122, 234, 0.3);
    transition: all 0.4s ease;
    text-transform: uppercase;
}
.primary-btn:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(159, 122, 234, 0.4); }

.reset-btn-container { display: flex; justify-content: center; margin-top: 1.5rem; }
.reset-btn { background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.15); color: #fff; padding: 10px 24px; border-radius: 100px; font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: all 0.3s ease; }
.reset-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* Info Section */
.info-card h2 { font-size: 1.3rem; color: #ffffff; margin-bottom: 2rem; text-align: center; }
.feature-list { list-style: none; }
.feature-list li { margin-bottom: 2rem; display: flex; align-items: flex-start; }
.check-icon { color: #ffffff; margin-right: 15px; font-size: 1.2rem; flex-shrink: 0; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.feature-text strong { display: block; font-size: 1.25rem; color: #fff; margin-bottom: 8px; font-weight: 900; }
.feature-text span { display: block; font-size: 1rem; color: #e2e8f0; line-height: 1.7; font-weight: 500; }

/* Ad Placeholder */
.ad-placeholder-container { width: 100%; max-width: 728px; margin: 2.5rem auto; padding: 0 1rem; }
.ad-content { background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.15); border-radius: 20px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #cbd5e0; }
.ad-text { font-size: 0.8rem; letter-spacing: 3px; margin-bottom: 6px; font-weight: 800; text-transform: uppercase; color: var(--accent-primary); opacity: 0.7; }

/* --- New AdSense Approval Styles --- */
.top-nav {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    background: rgba(30, 20, 45, 0.5);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-hover);
}

.friendly-content {
    text-align: left;
}

.friendly-content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 800;
}

.friendly-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.friendly-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.margin-top-lg {
    margin-top: 3rem;
}

.ideas-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.idea-item {
    flex: 1;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.05);
}

.idea-item h4 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.1rem;
}

.idea-item p {
    font-size: 0.95rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--accent-hover);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.text-page-container {
    max-width: 800px;
    margin-top: 4rem;
    margin-bottom: 4rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 36px;
    padding: 3rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.text-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    font-weight: 900;
}

.text-content > p:first-of-type {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.text-content h2 {
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.5rem;
}

.text-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contact-box {
    margin-top: 3rem;
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    text-align: center;
}

.form-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
    .ideas-grid {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
    .text-page-container {
        padding: 1.5rem;
        border-radius: 24px;
    }
}
