/* ============================================
   AI IMAGE GENERATOR - MODERN CSS STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-dark: #0f0f1a;
    --bg-darker: #080810;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-bg: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font-primary);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea {
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 48px;
    height: 48px;
    margin-top: -54px;
    animation-direction: reverse;
    border-top-color: var(--secondary);
}

.loader-ring:nth-child(3) {
    width: 36px;
    height: 36px;
    margin-top: -42px;
    border-top-color: var(--accent);
}

.loader-text {
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.loader-text span {
    display: inline-block;
    animation: bounce 0.6s ease infinite;
}

.loader-text span:nth-child(n) {
    animation-delay: calc(0.05s * var(--i, 1));
}

.loader-text span:nth-child(1) {
    --i: 1;
}

.loader-text span:nth-child(2) {
    --i: 2;
}

.loader-text span:nth-child(3) {
    --i: 3;
}

.loader-text span:nth-child(4) {
    --i: 4;
}

.loader-text span:nth-child(5) {
    --i: 5;
}

.loader-text span:nth-child(6) {
    --i: 6;
}

.loader-text span:nth-child(7) {
    --i: 7;
}

.loader-text span:nth-child(8) {
    --i: 8;
}

.loader-text span:nth-child(9) {
    --i: 9;
}

.loader-text span:nth-child(10) {
    --i: 10;
}

.loader-text span:nth-child(11) {
    --i: 11;
}

.loader-text span:nth-child(12) {
    --i: 12;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Install Banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
}

.install-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-icon {
    font-size: 2rem;
}

.install-text h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.install-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.install-actions {
    display: flex;
    gap: 10px;
}

.btn-install-later {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
}

.btn-install-now {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 26, 0.95);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--warning);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    min-width: 220px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.dropdown-header {
    padding: 12px;
    text-align: center;
}

.dropdown-header span {
    display: block;
}

#dropdown-name {
    font-weight: 600;
}

#dropdown-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
    color: var(--danger);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--bg-darker);
    padding: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.mobile-login-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 120px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-gradient-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.hero-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    font-weight: 500;
}

.hero-showcase {
    display: none;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Generator Section */
.generator-section {
    padding: 100px 0;
    background: var(--gradient-bg);
}

.generator-container {
    display: grid;
    gap: 40px;
}

.generator-main,
.generator-result {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.prompt-container {
    margin-bottom: 24px;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.language-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.char-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.prompt-input-wrapper {
    position: relative;
}

.prompt-input {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.prompt-input:focus {
    outline: none;
    border-color: var(--primary);
}

.prompt-input::placeholder {
    color: var(--text-muted);
}

.btn-clear-prompt {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.prompt-suggestions {
    margin-top: 16px;
}

.suggestions-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.suggestion-chip:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.generator-options {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.size-options,
.resolution-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-option,
.resolution-option {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.size-option.active,
.resolution-option.active {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.size-icon {
    font-weight: 700;
}

.size-text {
    font-size: 0.75rem;
}

.btn-generate {
    width: 100%;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-generate-content,
.btn-generate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.credits-info {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-placeholder,
.result-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

.placeholder-content {
    text-align: center;
    color: var(--text-muted);
}

.placeholder-content i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.result-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.result-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.result-actions {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.result-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.result-action:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.loading-animation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.loading-bar {
    width: 8px;
    height: 40px;
    background: var(--primary);
    border-radius: 4px;
    animation: loadingBars 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--secondary);
}

.loading-bar:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--accent);
}

@keyframes loadingBars {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-subtext {
    color: var(--text-muted);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
}

.gallery-prompt {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-load-more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-load-more:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--gradient-bg);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
}

#toggle-weekly {
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(28px);
}

.savings-badge {
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--success);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--gradient-card);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-container {
    text-align: center;
    margin-bottom: 24px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: top;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
}

.price-period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    width: 20px;
    text-align: center;
}

.pricing-features .fa-check {
    color: var(--success);
}

.pricing-features .fa-times {
    color: var(--text-muted);
}

.btn-pricing {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-pricing:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-pricing-featured {
    background: var(--gradient-primary);
    border: none;
}

.btn-pricing-featured:hover {
    box-shadow: var(--shadow-glow);
}

.payment-methods {
    text-align: center;
    margin-top: 48px;
    color: var(--text-muted);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 2rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question i {
    transition: var(--transition-fast);
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 80px 0 24px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 16px 0 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    animation: modalIn 0.3s ease;
}

.modal-container.modal-lg {
    max-width: 520px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-google {
    background: white;
    color: #333;
}

.btn-google:hover {
    background: #f5f5f5;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.checkbox-wrapper input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-light);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Payment Modal */
.payment-header {
    text-align: center;
    margin-bottom: 24px;
}

.payment-header h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.selected-plan {
    display: inline-flex;
    gap: 16px;
    padding: 12px 20px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.plan-name {
    font-weight: 600;
}

.plan-price {
    color: var(--primary-light);
}

.payment-methods-select {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method-btn {
    flex: 1;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    /* Világosabb háttér */
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    cursor: pointer;
    color: var(--text-primary);
    /* Fehér szöveg */
}

.payment-method-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.payment-method-btn span {
    font-size: 0.9rem;
    color: var(--text-primary);
    /* Fehér szöveg a címkénél is */
    font-weight: 500;
}

.payment-method-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    /* Világosabb aktív háttér */
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.payment-form {
    margin-bottom: 20px;
}

.paypal-info {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.paypal-info i {
    font-size: 3rem;
    color: #003087;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-pay {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-paypal {
    background: #0070ba;
    color: white;
}

.btn-paypal:hover {
    background: #005ea6;
}

.btn-stripe {
    background: var(--gradient-primary);
    color: white;
}

.btn-stripe:hover {
    box-shadow: var(--shadow-glow);
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Stripe Elements */
.stripe-element {
    padding: 14px 16px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.stripe-element.StripeElement--focus {
    border-color: var(--primary);
}

.stripe-element.StripeElement--invalid {
    border-color: var(--danger);
}

.card-errors {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

/* PayPal Button Container */
#paypal-button-container {
    min-height: 50px;
    margin-top: 16px;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-lg);
}

.lightbox-info {
    margin-top: 20px;
}

.lightbox-prompt {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.lightbox-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.lightbox-action {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (min-width: 1024px) {
    .generator-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .hero-content {
        text-align: left;
    }

    .hero-stats {
        justify-content: flex-start;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-showcase {
        display: block;
        position: relative;
        height: 500px;
    }

    .showcase-card {
        position: absolute;
        width: 280px;
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-lg);
        animation: float 6s ease-in-out infinite;
    }

    .showcase-1 {
        top: 0;
        left: 50px;
        animation-delay: 0s;
    }

    .showcase-2 {
        top: 100px;
        right: 0;
        animation-delay: 1s;
    }

    .showcase-3 {
        bottom: 0;
        left: 100px;
        animation-delay: 2s;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-20px);
        }
    }
}

@media (max-width: 1023px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 24px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .install-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .modal-container {
        padding: 24px;
    }

    .generator-main,
    .generator-result {
        padding: 20px;
    }
}