/* Весь ваш CSS из предыдущего файла — оставьте без изменений */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C3AED;
  --primary-light: #8B5CF6;
  --primary-dark: #5B21B6;
  --primary-50: #EDE9FE;
  --primary-100: #DDD6FE;
  --accent: #F59E0B;
  --accent-light: #FCD34D;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --success: #10B981;
  --error: #EF4444;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.page { display: none; opacity: 0; transition: opacity 0.4s ease; }
.page.active { display: block; opacity: 1; }

/* ===== HEADER ===== */
/* ===== ДЕСКТОПНАЯ ВЕРСИЯ (по умолчанию) ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Десктопный логотип (слева от названия) */
.desktop-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.desktop-logo .logo-icon {
    font-size: 28px;
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--primary);
}

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

/* Скрываем мобильные элементы на десктопе */
.mobile-site-name,
.mobile-center-logo {
    display: none;
}

.logo-img {
    width: 48px;
    height: 48px;
    display: block;
    margin-top: 6px;
}

.naming {
    cursor: pointer;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap;}
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition); text-decoration: none;
  border: none; background: none;
}
.nav-link:hover { background: var(--primary-50); color: var(--primary); }
.nav-link.active { background: var(--primary-50); color: var(--primary); } 
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    line-height: 1;
}
.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
    }

    .header-inner {
        padding: 12px 16px;
        height: 56px;
        position: relative;
    }

    /* Скрываем десктопный логотип */
    .desktop-logo {
        display: none;
    }

    .logo-img-mobile {
        width: 56px;
        height: 56px;
        display: block;
        margin-top: 26px;
    }

    /* Показываем мобильные элементы */
    .mobile-site-name {
        display: block;
        font-size: 26px;
        font-weight: 700;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        cursor: pointer;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .mobile-center-logo {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
        z-index: 10;
    }

    .mobile-center-logo .logo-icon {
        font-size: 28px;
        background: none;
        -webkit-text-fill-color: initial;
        color: var(--primary);
    }

    /* Кнопка меню справа */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--text);
        padding: 8px;
        line-height: 1;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    /* Контейнер навигации */
    .nav-links {
        position: static;
    }

    /* Выпадающее меню */
    .nav-links-wrapper {
        display: none;
        position: absolute;
        top: 68px;
        right: 10px;
        left: auto;
        width: 280px;
        background: var(--surface);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 16px;
        flex-direction: column;
        gap: 12px;
        z-index: 100;
        border: 1px solid var(--border);
        animation: slideDown 0.3s ease;
    }

    .nav-links-wrapper.open {
        display: flex !important;
    }

    .nav-links-wrapper .nav-link,
    .nav-links-wrapper .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
        border-radius: var(--radius);
    }

    #auth-buttons,
    #user-menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Затемнение фона */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }
}

.btn {
  padding: 10px 24px; border-radius: 10px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: none; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; box-shadow: 0 4px 14px rgba(108,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,58,237,0.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary-100);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); }
.btn-ghost {
  background: transparent; color: var(--text-secondary); padding: 8px 16px;
}
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { filter: brightness(1.1); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #F97316); color: white; box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== MAIN CONTENT ===== */
main { padding-top: 36px; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== LANDING PAGE ===== */
.hero {
  padding: 80px 0 60px; text-align: center;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(139,92,246,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(245,158,11,0.06) 0%, transparent 60%);
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900;
  line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-upload {
  max-width: 520px; margin: 0 auto 24px; position: relative;
}
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 48px 32px; cursor: pointer; transition: var(--transition);
  background: var(--surface); position: relative; overflow: hidden;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary); background: var(--primary-50);
}
.upload-zone.dragover { transform: scale(1.01); }
.upload-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: var(--primary-50); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.upload-zone p { font-size: 15px; color: var(--text-secondary); }
.upload-zone p strong { color: var(--primary); }
.upload-zone .hint { font-size: 13px; color: var(--text-light); margin-top: 8px; }
.upload-preview {
  display: none; position: relative;
}
.upload-preview img {
  width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px;
}
.upload-preview .remove-btn {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white; border: none;
  cursor: pointer; font-size: 16px; display: flex;
  align-items: center; justify-content: center;
}

/* HOW IT WORKS */
.how-it-works { padding: 60px 0; }
.section-title {
  font-size: 28px; font-weight: 800; text-align: center;
  margin-bottom: 12px; letter-spacing: -0.5px;
}
.section-subtitle {
  text-align: center; color: var(--text-secondary); margin-bottom: 48px;
  font-size: 16px;
}
.steps-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.step-card {
  text-align: center; padding: 32px 20px; background: var(--surface);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  transition: var(--transition); position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.step-arrow {
  position: absolute; right: -18px; top: 50px;
  color: var(--text-light); font-size: 18px; z-index: 1;
}
.step-card:last-child .step-arrow { display: none; }

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 60px 0;
    background: var(--bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 4 / 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-overlay span::before {
    content: "📸";
    font-size: 14px;
}

/* Скелетон загрузки */
.gallery-skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 20px;
    aspect-ratio: 4 / 5;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* PRICING SECTION (on landing) */
.pricing-section { padding: 60px 0; background: var(--primary-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; }
.price-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 32px 24px; border: 2px solid var(--border);
  transition: var(--transition); text-align: center; position: relative;
}
.price-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(108,58,237,0.2);
  transform: scale(1.03);
}
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; padding: 4px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.price-amount small { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.price-features { list-style: none; margin: 20px 0; text-align: left; }
.price-features li {
  padding: 6px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.price-features li::before { 
    content: '✔'; 
    color: var(--success); 
    font-weight: 700;
    margin-right: 8px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 60px 0;
    background: var(--surface);
}

.stats-section .section-title {
    margin-bottom: 12px;
}

.stats-section .section-subtitle {
    margin-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
}

.stat-cta .stat-number {
    color: white;
}

.stat-cta .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-cta .btn-primary {
    background: white;
    color: var(--primary);
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-icon {
        font-size: 32px;
    }
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 40px 0; margin-top: 60px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 14px; }
.footer a:hover { color: white; }
.footer-links { display: flex; gap: 24px; }

/* ===== CREATE PAGE (WIZARD) ===== */
.create-page { padding: 20px 0 60px; }
.wizard-header {
  text-align: center; margin-bottom: 20px;
}
.wizard-header h2 {
  font-size: 24px; font-weight: 800; margin-bottom: 12px;
}
.stepper {
  display: flex; align-items: center; justify-content: center; gap: 0;
  max-width: 600px; margin: 0 auto;
}
.step-item {
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.step-dot {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-light);
  transition: var(--transition); flex-shrink: 0;
  background: var(--surface);
}
.step-dot.active {
  border-color: var(--primary); color: white;
  background: var(--primary); box-shadow: 0 0 0 4px var(--primary-100);
}
.step-dot.completed {
  border-color: var(--success); background: var(--success); color: white;
}
.step-label {
  font-size: 13px; font-weight: 600; color: var(--text-light);
  transition: var(--transition); white-space: nowrap;
}
.step-label.active { color: var(--primary); }
.step-label.completed { color: var(--success); }
.step-connector {
  width: 60px; height: 2px; background: var(--border);
  margin: 0 8px; flex-shrink: 0; transition: var(--transition);
}
.step-connector.completed { background: var(--success); }

.wizard-content {
  max-width: 650px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 35px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.wizard-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; text-align: center;}
.wizard-step .desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.wizard-actions {
  display: flex; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.requirements { margin-top: 20px; padding: 16px; background: var(--primary-50); border-radius: var(--radius); }
.requirements h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.requirements ul { list-style: none; }
.requirements li { font-size: 13px; color: var(--text-secondary); padding: 3px 0; }
.requirements li::before { content: '•'; color: var(--primary); margin-right: 6px; font-weight: 700; }

textarea {
  width: 100%; min-height: 120px; padding: 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-family: inherit; font-size: 14px;
  resize: vertical; transition: var(--transition); background: var(--bg);
}
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
textarea::placeholder { color: var(--text-light); }

.examples-hint {
  margin-bottom: 16px; padding: 14px; background: var(--bg);
  border-radius: var(--radius); font-size: 13px; color: var(--text-secondary);
}
.examples-hint strong { color: var(--text); }

/* ===== ВЫБОР ФОРМАТА ФОТО ===== */
.format-selector {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    margin: 20px 0;
}

.format-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: var(--text-secondary);
}

.format-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.format-btn .format-preview {
    display: block;
    margin-bottom: 8px;
}

.format-btn .format-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.format-btn .format-ratio {
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 12px;
}

.format-btn:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.format-btn.active {
    border-color: var(--primary);
    background: var(--primary-50);
}

.format-btn.active .format-name {
    color: var(--primary);
}

.format-btn.active .format-ratio {
    background: var(--primary-100);
    color: var(--primary-dark);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .format-buttons {
        gap: 8px;
    }
    
    .format-btn {
        min-width: 65px;
        padding: 8px;
    }
    
    .format-btn .format-name {
        font-size: 10px;
    }
    
    .format-btn .format-ratio {
        font-size: 9px;
    }
}

/* SCENE CARDS */
.scene-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.scene-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: var(--transition);
  position: relative;
}
.scene-card:hover { border-color: var(--primary-light); background: var(--primary-50); }
.scene-card.selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-100); }
.scene-card .check {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 12px; transition: var(--transition);
}
.scene-card.selected .check {
  background: var(--primary); border-color: var(--primary); color: white;
}
.scene-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; padding-right: 30px; }
.scene-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* GENERATION SPINNER */
.generating-view { text-align: center; padding: 0px 0px 20px 0px; }
.spinner {
  width: 48px; height: 48px; margin: 0 auto 12px; position: relative;
}
.spinner-ring {
  position: absolute; inset: 0;
  border: 3px solid var(--primary-100);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generating-text { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.generating-sub { font-size: 14px; color: var(--text-secondary); }
.progress-bar-container {
  max-width: 300px; margin: 24px auto 0; height: 6px;
  background: var(--primary-100); border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px; transition: width 0.3s ease; width: 0%;
}

/* RESULT */
.result-view { text-align: center; }
.result-image {
  width: 100%; max-width: 480px; margin: 0 auto 24px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.result-image .watermark {
  position: absolute;
  bottom: 5%;
  right: 5%;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Inter', monospace;
  z-index: 1;
}
.result-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-card .subtitle { text-align: center; color: var(--text-secondary); font-size: 14px; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-input {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  transition: var(--transition); background: var(--bg);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.form-input::placeholder { color: var(--text-light); }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--text-light); font-size: 13px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer {
  text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary);
}
.auth-footer a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.password-toggle {
  position: relative;
}
.password-toggle .toggle-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-light);
  font-size: 14px; padding: 4px;
}

/* ===== PROFILE PAGE ===== */
.profile-page { 
    padding: 50px 0 30px; 
}

/* Верхняя линия: аватар + информация + тариф */
.profile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-info h2 { 
    font-size: 22px; 
    font-weight: 800; 
}

.profile-info p { 
    font-size: 14px; 
    color: var(--text-secondary); 
}

/* Компактная карточка тарифа */
.plan-card-compact {
    background: linear-gradient(135deg, var(--primary-50), var(--bg));
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
}

/* Шапка: информация + кнопка в правом углу */
.plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.plan-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.plan-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Сетка 4 колонки для статистики */
.plan-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.plan-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--surface);
    padding: 12px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.plan-stat span:first-child {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.plan-stat strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

/* Адаптация для планшетов */
@media (max-width: 860px) {
    .profile-header {
        justify-content: center;
    }

    .plan-card-compact {
        width: 100%
    }
    .plan-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .plan-header {
        flex-direction: row;
        text-align: center;
    }
    
    .plan-info {
        text-align: start;
    }
}

/* Адаптация для телефонов */
@media (max-width: 610px) {
    .plan-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plan-stat {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 16px;
    }
    
    .plan-stat span:first-child {
        margin-bottom: 0;
    }
    
    .plan-stat strong {
        font-size: 18px;
    }
}

/* Карточка реферальной программы */
.referral-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.referral-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.referral-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.referral-badge {
    background: linear-gradient(135deg, var(--accent), #F97316);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Двухколоночная сетка */
.referral-two-columns {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.referral-stats-column {
    flex: 1;
    min-width: 200px;
}

.referral-rules-column {
    flex: 1;
    min-width: 280px;
}

/* Левая колонка: статистика */
.referral-stats-grid {
    display: flex;
    gap: 16px;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.referral-stat-item {
    flex: 1;
    text-align: center;
    background: var(--bg);
    padding: 12px 8px;
    border-radius: var(--radius);
}

.referral-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.referral-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.referral-code-section {
    margin: 24px 0;
    text-align: center;
}

.referral-code-section label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.referral-code-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary-50), var(--bg));
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(108, 58, 237, 0.15);
}

.referral-code-highlight code {
    background: var(--surface);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-dark);
    border: 1px solid var(--primary-100);
    font-family: 'Courier New', monospace;
}

.referral-code-highlight .btn-copy {
    padding: 12px 24px;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.referral-code-highlight .btn-copy:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(108, 58, 237, 0.3);
}

.referral-code-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 8px;
}

.referral-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.referral-code-row code {
    background: var(--primary-50);
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-dark);
}

.referral-expiry-title {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    border-top: 1px dashed var(--border);
}

.referral-expiry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 100px;
    overflow-y: auto;
}

.referral-expiry-list li {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 4px 0;
}

/* Правая колонка: правила */
.referral-rules {
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 16px;
}

.referral-rule-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-rule-item:last-child {
    margin-bottom: 0;
}

.referral-rule-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.referral-rule-text {
    flex: 1;
}

.referral-rule-text strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text);
}

.referral-rule-text > span {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
}

.referral-bonus-table {
    margin-top: 8px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 8px 12px;
    border: 1px solid var(--border);
}

.referral-bonus-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.referral-bonus-row span:first-child {
    font-weight: 500;
}

.referral-bonus-row span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.referral-warning {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

/* История генераций */
/* Блок истории генераций */
.history-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.history-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.history-hint {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 20px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.history-item {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: var(--bg);
}

.history-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.history-item .date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    font-size: 11px;
    text-align: center;
}

/* Настройки */
.settings-section {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.settings-section h3 { 
    font-size: 20px; 
    font-weight: 700; 
    text-align: center; 
}

.settings-list { 
    list-style: none; 
}

.settings-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.settings-list li:last-child { 
    border-bottom: none; 
}

.settings-list a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.settings-list a:hover { 
    color: var(--primary); 
}

.settings-list .arrow { 
    color: var(--text-light); 
}
/* Реферальные правила */
.referral-rules {
    margin: 16px 0;
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 16px;
}

.referral-rule-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-rule-item:last-child {
    margin-bottom: 0;
}

.referral-rule-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.referral-rule-text {
    flex: 1;
}

.referral-rule-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text);
}

.referral-rule-text > span {
    font-size: 13px;
    color: var(--text-secondary);
}

.referral-bonus-table {
    margin-top: 8px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 8px 12px;
    border: 1px solid var(--border);
}

.referral-bonus-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.referral-bonus-row span:first-child {
    font-weight: 500;
}

.referral-bonus-row span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.referral-warning {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .referral-two-columns {
        flex-direction: column;
        gap: 20px;
    }
    
    .referral-stats-column,
    .referral-rules-column {
        min-width: auto;
    }
    
    .referral-stats-grid {
        gap: 12px;
    }
    
    .referral-stat-value {
        font-size: 20px;
    }
    
    .referral-rule-item {
        gap: 8px;
    }
    
    .referral-rule-icon {
        font-size: 18px;
    }

    .referral-code-highlight {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .referral-code-highlight code {
        font-size: 20px;
        padding: 8px 16px;
    }
    
    .referral-code-highlight .btn-copy {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PRICING PAGE ===== */
.pricing-page { padding: 60px 0; }
.pricing-page .pricing-grid { max-width: 1200px; }
.pricing-page .price-card { padding: 40px 28px; }
.pricing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 40px;
}
.pricing-toggle label { font-size: 14px; font-weight: 600; cursor: pointer; }
.pricing-toggle .active-toggle { color: var(--primary); }
.toggle-switch {
  width: 48px; height: 26px; background: var(--border);
  border-radius: 13px; position: relative; cursor: pointer;
  transition: var(--transition);
}
.toggle-switch.active { background: var(--primary); }
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: white;
  border-radius: 50%; transition: var(--transition);
}
.toggle-switch.active::after { left: 25px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; max-height: 90vh;
  overflow-y: auto; padding: 32px;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  float: right; background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-light); padding: 4px;
  border-radius: 8px; transition: var(--transition);
}
.modal-close:hover { background: var(--primary-50); color: var(--text); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--text); color: white;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px); } }

/* ===== LIMIT BANNER ===== */
.limit-banner {
  background: linear-gradient(135deg, var(--accent), #F97316);
  color: white; padding: 12px 24px; text-align: center;
  font-size: 14px; font-weight: 600;
}
.limit-banner a { color: white; text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .price-card.popular { transform: none; }
  .scene-grid { grid-template-columns: 1fr; }
  .wizard-content { padding: 24px; }
  .auth-card { padding: 28px 20px; }
  .profile-header { flex-direction: column; text-align: center; }
  .plan-card { flex-direction: column; gap: 16px; text-align: center; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .step-label { display: none; }
  .nav-links .nav-link span { display: none; }
  .hero { padding: 48px 0 40px; }
}

@media (max-width: 480px) {
  .steps-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .history-grid { grid-template-columns: repeat(2, 1fr); }
  .stepper { gap: 0; }
  .step-connector { width: 32px; }
}

/* Image placeholders using gradients */
.img-placeholder {
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder.style1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.img-placeholder.style2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.img-placeholder.style3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.img-placeholder.style4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.img-placeholder.style5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.img-placeholder.style6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.img-placeholder.style7 { background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%); }
.img-placeholder.style8 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.img-placeholder.style9 { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.img-placeholder.style10 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.img-placeholder.result-img { 
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%); 
    min-height: 300px;
}
.img-placeholder.result-img .img-overlay-text {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-overlay-text {
  display: flex; 
  align-items: center; 
  justify-content: center;
  width: 100%; 
  color: white;
  font-weight: 700; 
  font-size: 14px; 
  text-align: center;
  padding: 12px;
}

/* Плавное скрытие формы при генерации */
#wstep-2 {
    transition: opacity 0.3s ease;
}

#step2-form {
    transition: opacity 0.3s ease;
}

#generating-message {
    animation: fadeIn 0.3s ease;
    padding: 20px;
    background: var(--primary-50);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin: 20px 0;
}

/* Upload preview styling */
.upload-preview-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;  /* центрирование по горизонтали */
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--bg);
}
#create-preview {
    display: block;
    width: auto;
    text-align: center;
}
.upload-preview-container {
  position: relative;
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;     /* вертикальное центрирование */
  justify-content: center; /* горизонтальное центрирование */
}
.remove-upload-btn {
  position: absolute; 
  top: 8px; 
  right: 8px;
  width: 32px; 
  height: 32px; 
  border-radius: 50%;
  background: rgba(0,0,0,0.6); 
  color: white; 
  border: none;
  cursor: pointer; 
  font-size: 16px; 
  display: flex;
  align-items: center; 
  justify-content: center;
  backdrop-filter: blur(4px);
}


/* ===== OAuth ICONS ===== */
.oauth-section {
    margin: 24px 0;
    text-align: center;
}

.oauth-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
    display: block;
}

.oauth-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.oauth-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oauth-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


.oauth-icon.telegram { color: #27A6E5; }
.oauth-icon.vk { color: #4C75A3; }
.oauth-icon.yandex { color: #FC3F1D; }

.oauth-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.oauth-icon.telegram:hover { background: #27A6E5; color: white; }
.oauth-icon.vk:hover { background: #4C75A3; color: white; }
.oauth-icon.yandex:hover { background: #FC3F1D; color: white; }


/* ===== REFERALS OFFERS ===== */

#referral-offer {
    animation: fadeIn 0.5s ease;
}

#referral-offer .btn-accent {
    background: linear-gradient(135deg, var(--accent), #F97316);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#referral-offer .btn-accent:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(245,158,11,0.4);
}

/* Активация аккаунта */
.btn-email-link {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    margin-top: 10px;
}

.btn-email-link:hover {
    background: var(--primary-dark);
}

#activation-modal .btn-outline {
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius);
}

/* ===== МОДАЛЬНОЕ ОКНО ВОЗВРАТА ===== */
.refund-modal {
    max-width: 500px;
    width: 90%;
}

.refund-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.refund-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.refund-modal .modal-header .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.refund-modal .modal-header .modal-close:hover {
    color: var(--error);
}

.refund-payments-list {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.refund-payment-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.refund-payment-item:hover {
    border-color: var(--primary);
    background: var(--primary-50);
    transform: translateX(4px);
}

.refund-payment-item.selected {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.refund-payment-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.refund-payment-details {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.refund-payment-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.refund-info-box {
    background: var(--primary-50);
    border-radius: var(--radius);
    padding: 16px;
    margin: 20px 0;
}

.refund-info-box .refund-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.refund-info-box .refund-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.refund-reason-field {
    margin: 20px 0;
}

.refund-reason-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.refund-reason-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: var(--transition);
    background: var(--surface);
}

.refund-reason-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.refund-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.refund-actions button {
    flex: 1;
}

.refund-warning {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .refund-modal {
        width: 95%;
        margin: 20px;
    }
    
    .refund-payment-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .refund-actions {
        flex-direction: column;
    }
}