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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #22d3ee;
    --dark: #0b1020;
    --dark-light: #111b33;
    --gray: #64748b;
    --light: #f8fafc;

    --text: #eaf0ff;
    --muted: #c9d1dc;
    --muted-2: #a3b0c4;
    --surface: rgba(17, 27, 51, 0.62);
    --surface-strong: rgba(17, 27, 51, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 16, 32, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    color: var(--light);
}

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

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--light);
    transition: all 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at 100% 50%, rgba(34, 211, 238, 0.12), transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    color: var(--secondary);
    animation: pulse-badge 2s ease-in-out infinite;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
}

.rating-stars-display {
    color: #fbbf24;
    letter-spacing: -2px;
    font-size: 14px;
}

.rating-value {
    color: #fbbf24;
    font-weight: 700;
}

.rating-count {
    color: var(--muted);
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.14;
    padding: 0.06em 0;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.hero-feature svg {
    flex-shrink: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
}

/* Donation Goal Widget */
.donation-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    text-decoration: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.donation-header .kofi-icon {
    color: #ff5e5b;
}

.donation-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.donation-progress-container {
    width: 100%;
}

.donation-progress-bar {
    position: relative;
    width: 100%;
    height: 36px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.donation-widget:hover .donation-progress-bar {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.donation-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px;
    transition: width 0.6s ease;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.donation-stats {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.donation-current {
    color: white;
}

.donation-goal-text {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Recent Supporters Row */
.supporters-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.supporters-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.supporters-avatars {
    display: flex;
    align-items: center;
}

.supporter-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border: 3px solid var(--dark);
    margin-left: -14px;
    cursor: default;
    transition: transform 0.2s, z-index 0.2s, box-shadow 0.2s;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.supporter-avatar:first-child {
    margin-left: 0;
}

.supporter-avatar:hover {
    transform: scale(1.2) translateY(-2px);
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.supporter-avatar.gradient-1 {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.supporter-avatar.gradient-2 {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.supporter-avatar.gradient-3 {
    background: linear-gradient(135deg, #f472b6, #ec4899);
}

.supporter-avatar.gradient-4 {
    background: linear-gradient(135deg, #fb923c, #f97316);
}

.supporter-avatar.gradient-5 {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.supporter-avatar.more {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: var(--muted);
}

/* Sections */
section {
    padding: 80px 24px;
}

section h2 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -1px;
    line-height: 1.16;
    padding: 0.10em 0;
    overflow: visible;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

section h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(34, 211, 238, 0.10) 38%, transparent 72%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.section-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.35);
}

.section-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Upload Section */
.upload-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
}

.upload-zone {
    background: var(--surface);
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.upload-zone:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 24px;
}

.upload-zone h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.upload-zone > p {
    color: var(--muted);
    margin: 16px 0;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 32px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin: 16px 0;
}

.upload-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.format-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}

.format-badges span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.upload-limit {
    color: #64748b;
    font-size: 14px;
}

/* Result Section */
.result-section {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    margin: 40px auto;
    max-width: 1200px;
}

.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.result-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--radius);
    padding: 32px;
}

.result-preview img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.url-box {
    margin-bottom: 16px;
}

.url-box label {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.url-group {
    display: flex;
    gap: 8px;
}

.url-group input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--light);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-family: monospace;
}

/* Result Action Buttons */
.result-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.action-btn.download-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.action-btn.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.action-btn.copy-action-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--light);
}

.action-btn.copy-action-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.result-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Features */
.features-section {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.25);
}

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

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* How It Works */
.how-section {
    background: rgba(99, 102, 241, 0.02);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.step p {
    color: #94a3b8;
    font-size: 14px;
}

.step-arrow {
    color: var(--primary);
    font-size: 32px;
    font-weight: bold;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.5);
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.overlay .download-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.overlay .download-link:hover {
    transform: scale(1.05);
}

.overlay .copy-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.overlay .copy-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.overlay .delete {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.overlay .delete:hover {
    background: #ef4444;
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}

.no-images-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.no-images p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.no-images span {
    font-size: 14px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

.faq-item summary:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-icon {
    color: var(--primary);
    font-size: 24px;
    transition: transform 0.3s;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: #94a3b8;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius);
    padding: 80px 24px;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: #94a3b8;
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.4);
}

/* Footer */
.footer {
    background: rgba(11, 16, 32, 0.88);
    border-top: 1px solid var(--border);
    padding: 24px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand p {
    color: var(--muted-2);
    font-size: 13px;
    margin: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    section h2::before {
        animation: none !important;
    }
}

.footer-bottom p {
    margin: 0;
    display: inline;
}

.footer-bottom p:first-child::after {
    content: " · ";
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: var(--dark-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    padding: 20px;
    z-index: 9999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-content p {
    color: #94a3b8;
    font-size: 14px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 12px;
}

.cookie-btns button {
    padding: 10px 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: transparent;
    color: var(--light);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.cookie-btns button:hover {
    background: rgba(99, 102, 241, 0.1);
}

.cookie-btns button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
}

.cookie-option strong {
    display: block;
    margin-bottom: 4px;
}

.cookie-option p {
    color: #94a3b8;
    font-size: 14px;
}

.always-on {
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Support Modal */
.support-modal {
    max-width: 550px;
    text-align: center;
}

.support-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.support-header h3 {
    margin: 0;
    font-size: 28px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-message {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.support-option:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.support-option svg {
    flex-shrink: 0;
}

.support-option div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.support-option strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.support-option span {
    font-size: 13px;
    color: var(--muted);
}

.support-footer {
    color: var(--muted-2);
    font-size: 14px;
    margin-top: 24px;
}

/* Floating Actions */.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fab-cookie {
    background: var(--dark-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #94a3b8;
}

.fab-cookie:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.fab-support {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: white;
}

.fab-support:hover {
    background: linear-gradient(135deg, #e11d48, #db2777);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 1000;
    }
    
    .nav-links a,
    .nav-links .nav-cta {
        width: 100%;
        padding: 16px 24px;
        text-align: left;
        border-radius: 0;
    }
    
    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .result-card {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 16px 60px;
    }
    
    section {
        padding: 60px 16px;
    }
    
    .upload-zone {
        padding: 40px 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .donation-widget {
        max-width: 100%;
    }
    
    .donation-progress-bar {
        height: 32px;
    }
    
    .donation-stats {
        font-size: 12px;
    }
    
    .support-modal {
        max-width: 90%;
        margin: 0 16px;
        padding: 28px 20px;
    }
    
    .support-header h2 {
        font-size: 22px;
    }
    
    .support-header p {
        font-size: 14px;
    }
    
    .star-btn {
        font-size: 36px;
        padding: 8px;
    }
    
    .rating-submit,
    .rating-skip {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Rating Modal */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 12px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 40px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
}

.star-btn:hover,
.star-btn.active {
    color: #fbbf24;
    transform: scale(1.2);
}

.star-btn.hovered {
    color: #fbbf24;
}

.rating-text {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.rating-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.rating-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rating-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.rating-skip {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-skip:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
}
