@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-darker: #060913;
    --bg-dark: #0d1224;
    --bg-card: rgba(22, 30, 56, 0.5);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-card-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.3);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #4b5563;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-glow) var(--bg-darker);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-glow);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(6, 9, 19, 0.7);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo i {
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #ffffff;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.hero-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Hero Preview (Mock Canvas Frame) */
.hero-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 440px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.preview-visual {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    background: #070a13;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid overlay for preview visual */
.preview-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.preview-circle {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1px dashed var(--accent);
    position: relative;
    animation: rotate 60s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-string {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(transparent 50%, var(--primary-glow) 100%);
    border-radius: 50%;
}

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

/* App Dashboard (Generator Section) */
.generator-section {
    padding: 60px 0 100px 0;
}

.dashboard-title {
    text-align: center;
    margin-bottom: 50px;
}

.dashboard-title h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.dashboard-title p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 340px 1fr 340px;
    gap: 25px;
    align-items: start;
}

/* Dashboard Panel (Shared styling) */
.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px;
    height: 650px;
    display: flex;
    flex-direction: column;
}

.dash-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-card);
}

.dash-panel-title i {
    color: var(--accent);
}

/* Left Panel: Controls scroll container */
.controls-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.control-group {
    margin-bottom: 20px;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.control-label span.value {
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* File Upload CSS */
.upload-zone {
    border: 2px dashed var(--border-card);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(6, 9, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
}

.upload-zone i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.upload-zone:hover i {
    color: var(--primary);
    transform: translateY(-3px);
}

.upload-zone p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-zone strong {
    color: #ffffff;
}

.upload-zone input[type="file"] {
    display: none;
}

.upload-preview-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    align-items: center;
    justify-content: center;
}

.upload-preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    z-index: 2;
    transition: var(--transition-smooth);
}

.btn-remove-image:hover {
    background: rgb(239, 68, 68);
    transform: scale(1.1);
}

/* Range Input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.1);
}

/* Select inputs */
.select-input {
    width: 100%;
    background: rgba(6, 9, 19, 0.5);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.select-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Middle Panel: Visuals & Simulation */
.middle-panel {
    display: flex;
    flex-direction: column;
    height: 650px;
    gap: 20px;
}

.canvas-tabs {
    display: flex;
    background: rgba(6, 9, 19, 0.5);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 4px;
}

.canvas-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.canvas-tab.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.canvas-viewport {
    flex: 1;
    background: #05070e;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canvas-viewport canvas {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Background overlay when canvas is empty */
.canvas-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

.canvas-placeholder i {
    font-size: 3rem;
    color: var(--primary-glow);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.5; }
}

.simulation-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.sim-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sim-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-1px);
}

.sim-btn.play-btn {
    background: var(--accent);
    border: none;
    width: 46px;
    height: 46px;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.sim-btn.play-btn:hover {
    background: #0ea5e9;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.5);
}

.sim-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.1s ease;
}

/* Right Panel: Thread sequence list */
.sequence-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(6, 9, 19, 0.4);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.stat-box-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}

.stat-box-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sequence-list-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border-card);
    border-radius: 10px;
    background: rgba(6, 9, 19, 0.4);
    padding: 10px;
    margin-bottom: 20px;
}

.sequence-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sequence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.sequence-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.sequence-item.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
}

.sequence-item .step-num {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sequence-item .nail-trans {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--accent);
}

.sequence-item.active .nail-trans {
    color: #ffffff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Pricing Page Styles */
.pricing-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-card);
    position: relative;
}

.pricing-title {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pricing-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(22, 30, 56, 0.8) 0%, rgba(9, 13, 30, 0.8) 100%);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 25px;
    right: -35px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 0.05em;
}

.price-tier {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.pricing-card.popular .price-tier {
    color: var(--accent);
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 25px;
}

.price-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    min-height: 50px;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
    flex: 1;
}

.pricing-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.pricing-feature-item i {
    color: var(--success);
    font-size: 1rem;
}

.pricing-feature-item.disabled {
    color: var(--text-dark);
}

.pricing-feature-item.disabled i {
    color: var(--text-dark);
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-card);
    background: #060913;
    padding: 50px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-brand .logo {
    justify-content: flex-start;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link:hover {
    color: #ffffff;
}

/* Toast Notification styling */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(13, 18, 36, 0.9);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 16px 20px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-info {
    border-left: 4px solid var(--accent);
}

.toast.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast i {
    font-size: 1.2rem;
}

.toast.toast-success i { color: var(--success); }
.toast.toast-info i { color: var(--accent); }
.toast.toast-warning i { color: var(--warning); }
.toast.toast-error i { color: var(--danger); }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .middle-panel {
        grid-column: span 2;
        order: -1;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero {
        padding: 60px 0 30px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-preview {
        order: -1;
    }
    
    .preview-card {
        padding: 16px;
        max-width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dash-panel {
        height: auto;
        max-height: none;
        padding: 20px 16px;
    }
    
    .controls-scroll {
        overflow-y: visible;
    }
    
    .middle-panel {
        grid-column: span 1;
        height: auto;
        order: -1; /* Render canvas viewport first on mobile screens for easy view */
    }
    
    .canvas-viewport {
        height: 380px;
        min-height: 380px;
    }
    
    .simulation-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 16px;
    }
    
    .sim-controls {
        justify-content: center;
    }
    
    .sim-speed-control {
        width: 100% !important;
    }
    
    .sequence-list-container {
        max-height: 250px;
        overflow-y: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-container {
        height: 70px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-link {
        display: none; /* Hide general navigation links to keep layout tight */
    }
    .nav-link[href="#generator"] {
        display: inline-block;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .canvas-viewport {
        height: 320px;
        min-height: 320px;
    }
}

/* Google AdSense placeholders styling */
.adsense-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 30px auto;
    max-width: 1200px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    overflow: hidden;
}

.adsense-horizontal {
    width: 100%;
}

.adsense-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    font-weight: 700;
}

/* Privacy Modal styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #0d1224;
    border: 1px solid var(--border-card-hover);
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 35px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-body li {
    margin-bottom: 5px;
}
