*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #06060b; --bg2: #0c0c14; --bg3: #14141f;
    --surface: rgba(18,18,30,0.6); --border: rgba(255,255,255,0.06); --border-h: rgba(255,255,255,0.12);
    --text: #eeeef5; --text2: #8888a0;
    --accent: #f59e0b; --accent2: #fbbf24; --accent-glow: rgba(245,158,11,0.2);
    --green: #34d399; --orange: #fb923c; --red: #f87171;
    --radius: 16px; --radius-sm: 10px;
    --font: 'Satoshi', 'Outfit', sans-serif; --mono: 'JetBrains Mono', monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent2); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.nav-icon { width: 16px; height: 16px; margin-right: 4px; opacity: 0.8; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(6,6,11,0.8); backdrop-filter: blur(24px) saturate(1.2); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.3px; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 6px; }
.nav-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent; color: var(--text2); font-size: 0.82rem; font-weight: 500; transition: all .25s; font-family: var(--font); }
.nav-link-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border-h); }
.nav-active { background: rgba(245,158,11,0.1) !important; border-color: rgba(245,158,11,0.3) !important; color: var(--accent2) !important; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.user-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.user-tokens { background: linear-gradient(135deg, var(--accent), #fbbf24); padding: 5px 14px; border-radius: 20px; font-weight: 600; font-size: 0.8rem; color: #fff; }
.user-name { color: var(--text); font-weight: 500; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; cursor: pointer; border: none; transition: all .25s; font-family: var(--font); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; box-shadow: 0 4px 24px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-h); }
.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); background: rgba(245,158,11,0.05); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: 8px; }
.btn-ghost { background: none; border: 1px solid var(--border); color: var(--text2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text2); }
.btn-block { width: 100%; justify-content: center; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 24px 60px; overflow: hidden; background: var(--bg); }
#hero-gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.08; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 200px; mix-blend-mode: overlay; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 30%, rgba(6,6,11,0.5) 70%, rgba(6,6,11,0.95) 100%); }
.hero-content { position: relative; max-width: 720px; z-index: 2; }
.hero-badge { display: inline-block; padding: 7px 20px; border-radius: 30px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: var(--accent2); font-size: 0.82rem; font-weight: 600; margin-bottom: 28px; animation: fadeUp .6s ease both; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 4.5rem); font-weight: 800; line-height: 1.08; margin-bottom: 22px; animation: fadeUp .7s ease both .1s; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(135deg, #e2e8f0 0%, #c8956c 50%, #e8c496 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200% 200%; animation: gradientShift 6s ease infinite; }
.hero-sub { font-size: 1.1rem; color: var(--text2); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; animation: fadeUp .8s ease both .2s; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; animation: fadeUp .9s ease both .3s; }
.hero-stats { display: flex; justify-content: center; gap: 52px; animation: fadeUp 1s ease both .4s; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 1.8rem; font-weight: 700; color: var(--text); font-family: var(--mono); }
.stat-label { font-size: 0.78rem; color: var(--text2); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text2); font-size: 0.95rem; margin-bottom: 40px; }
.section-guides { background: var(--bg2); }

/* TABS */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tab { padding: 10px 24px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all .25s; font-family: var(--font); }
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; border-color: transparent; box-shadow: 0 2px 16px var(--accent-glow); }

/* MODEL CARDS */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: all .3s; backdrop-filter: blur(12px); }
.model-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(245,158,11,0.12); }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon svg { width: 16px; height: 16px; }
.card-icon-video { background: rgba(245,158,11,0.15); color: var(--accent2); }
.card-icon-image { background: rgba(52,211,153,0.15); color: var(--green); }
.card-icon-text { background: rgba(251,146,60,0.15); color: var(--orange); }
.card-name { font-weight: 600; font-size: 0.93rem; flex: 1; }
.card-tag { padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; background: rgba(245,158,11,0.12); color: var(--accent2); }
.card-desc { font-size: 0.83rem; color: var(--text2); margin-bottom: 14px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.card-tokens { font-family: var(--mono); font-weight: 600; font-size: 0.93rem; color: var(--accent2); }
.card-price { font-size: 0.83rem; color: var(--text2); }

/* BRAND SHOWCASE (главная — каталог по брендам) */
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.brand-showcase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .3s; backdrop-filter: blur(12px); }
.brand-showcase:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(245,158,11,0.12); }
a.brand-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.bs-compact { padding: 20px; }
.bs-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.bs-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bs-icon svg { width: 22px; height: 22px; }
.bs-icon-accent { background: rgba(245,158,11,0.15); color: var(--accent2); }
.bs-icon-green { background: rgba(52,211,153,0.15); color: var(--green); }
.bs-icon-orange { background: rgba(251,146,60,0.15); color: var(--orange); }
.bs-icon-muted { background: rgba(136,136,160,0.12); color: var(--text2); }
.bs-info { flex: 1; min-width: 0; }
.bs-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.bs-info p { font-size: 0.8rem; color: var(--text2); line-height: 1.4; }
.bs-features { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.bs-feat { padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; background: rgba(245,158,11,0.08); color: var(--accent2); border: 1px solid rgba(245,158,11,0.15); }
.bs-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.bs-price { display: flex; flex-direction: column; gap: 2px; }
.bs-price-range { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--accent2); }
.bs-price-rub { font-size: 0.78rem; color: var(--text2); }

/* BRAND SHOWCASE (главная — каталог по брендам) */
.brands-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.brand-showcase { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .3s; backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 16px; }
.brand-showcase:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(245,158,11,0.1); }
.bs-compact { gap: 12px; padding: 20px; }
.bs-header { display: flex; align-items: flex-start; gap: 12px; }
.bs-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bs-icon svg { width: 22px; height: 22px; }
.bs-icon-accent { background: rgba(245,158,11,0.15); color: var(--accent2); }
.bs-icon-green { background: rgba(52,211,153,0.15); color: var(--green); }
.bs-icon-orange { background: rgba(251,146,60,0.15); color: var(--orange); }
.bs-icon-muted { background: rgba(136,136,160,0.12); color: var(--text2); }
.bs-info { flex: 1; min-width: 0; }
.bs-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.bs-info p { font-size: 0.83rem; color: var(--text2); line-height: 1.4; }
.bs-features { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-feat { padding: 4px 10px; border-radius: 6px; font-size: 0.73rem; font-weight: 500; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text2); }
.bs-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.bs-price { display: flex; flex-direction: column; }
.bs-price-range { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--accent2); }
.bs-price-rub { font-size: 0.78rem; color: var(--text2); }

/* GUIDES */
.guides-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.guide-tab { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.83rem; font-weight: 500; cursor: pointer; transition: all .25s; font-family: var(--font); }
.guide-tab:hover { border-color: var(--accent); color: var(--text); }
.guide-tab.active { background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; border-color: transparent; }
.guide-content { max-width: 900px; margin: 0 auto; }
.guide-tips { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.guide-tips h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.guide-tips ul { list-style: none; }
.guide-tips li { padding: 8px 0 8px 24px; position: relative; font-size: 0.88rem; color: var(--text2); line-height: 1.5; }
.guide-tips li::before { content: '→'; position: absolute; left: 0; color: var(--accent2); font-weight: 600; }
.guide-examples h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.example-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 12px; }
.example-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.example-model { background: rgba(245,158,11,0.12); color: var(--accent2); padding: 3px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.example-desc { font-size: 0.83rem; color: var(--text2); }
.example-prompt { background: rgba(0,0,0,0.35); border-radius: 8px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; }
.example-prompt code { font-family: var(--mono); font-size: 0.8rem; color: var(--green); line-height: 1.6; flex: 1; word-break: break-word; }
.copy-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 0.83rem; transition: all .2s; flex-shrink: 0; color: var(--text2); }
.copy-btn:hover { border-color: var(--accent2); background: rgba(245,158,11,0.08); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; background: var(--surface); }
.faq-question { width: 100%; padding: 18px 20px; border: none; background: none; color: var(--text); font-size: 0.93rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; font-family: var(--font); transition: color .2s; }
.faq-question:hover { color: var(--accent2); }
.faq-arrow { font-size: 1.2rem; transition: transform .3s; color: var(--text2); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 18px; }
.faq-answer p { font-size: 0.88rem; color: var(--text2); line-height: 1.7; }

/* PACKS */
.packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pack-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; position: relative; transition: all .3s; }
.pack-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.pack-popular { border-color: var(--accent) !important; box-shadow: 0 0 48px rgba(245,158,11,0.12); }
.pack-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; padding: 4px 16px; border-radius: 20px; font-size: 0.73rem; font-weight: 600; white-space: nowrap; }
.pack-tokens { font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; }
.pack-tokens small { font-size: 0.9rem; font-weight: 500; color: var(--text2); }
.pack-bonus { color: var(--green); font-size: 0.83rem; font-weight: 600; margin-bottom: 8px; }
.pack-price { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.pack-rate { font-size: 0.78rem; color: var(--text2); margin-bottom: 18px; font-family: var(--mono); }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 32px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--text2); }

/* DASHBOARD */
.dashboard { padding: 100px 0 60px; }
.dash-title { font-size: 2rem; font-weight: 700; margin-bottom: 32px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 32px; }
.dash-stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; display: flex; align-items: center; gap: 14px; }
.dash-stat-balance { border-color: rgba(245,158,11,0.3) !important; background: rgba(245,158,11,0.06); }
.dash-stat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-icon svg { width: 18px; height: 18px; }
.dsi-balance { background: rgba(245,158,11,0.15); color: var(--accent2); }
.dsi-gen { background: rgba(52,211,153,0.15); color: var(--green); }
.dsi-video { background: rgba(245,158,11,0.15); color: var(--accent2); }
.dsi-image { background: rgba(52,211,153,0.15); color: var(--green); }
.dsi-text { background: rgba(251,146,60,0.15); color: var(--orange); }
.dsi-spent { background: rgba(248,113,113,0.15); color: var(--red); }
.dash-stat-info { display: flex; flex-direction: column; }
.dash-stat-num { font-size: 1.5rem; font-weight: 700; font-family: var(--mono); line-height: 1.2; }
.dash-stat-label { font-size: 0.76rem; color: var(--text2); }
.dash-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.dash-section { margin-bottom: 48px; }
.dash-section-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.history-cat { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.history-cat svg { width: 16px; height: 16px; }
.hc-video { background: rgba(245,158,11,0.15); color: var(--accent2); }
.hc-image { background: rgba(52,211,153,0.15); color: var(--green); }
.hc-text { background: rgba(251,146,60,0.15); color: var(--orange); }
.history-info { flex: 1; min-width: 0; }
.history-model { display: block; font-size: 0.83rem; font-weight: 600; color: var(--accent2); margin-bottom: 2px; }
.history-prompt { display: block; font-size: 0.8rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.history-tokens { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; color: var(--orange); }
.history-date { font-size: 0.73rem; color: var(--text2); }
.status-ok { color: var(--green); }
.status-err { color: var(--red); }
.history-empty { text-align: center; padding: 48px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.history-empty p { color: var(--text2); margin-bottom: 20px; }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 60px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 36px; max-width: 440px; width: 100%; backdrop-filter: blur(12px); }
.auth-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-sub { color: var(--text2); font-size: 0.88rem; margin-bottom: 24px; }
.auth-input { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 0.93rem; font-family: var(--font); margin-bottom: 12px; outline: none; transition: border-color .2s; }
.auth-input:focus { border-color: var(--accent); }
.auth-code { font-family: var(--mono); font-size: 1.5rem; text-align: center; letter-spacing: 8px; }
.auth-error { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--red); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.83rem; margin-bottom: 16px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { background: var(--bg); padding: 0 16px; position: relative; color: var(--text2); font-size: 0.83rem; }
.auth-alt { text-align: center; }
.auth-alt a { color: var(--accent2); font-size: 0.88rem; }
.auth-tg-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.auth-tg-alt p { color: var(--text2); font-size: 0.83rem; margin-bottom: 12px; }
.auth-hint { text-align: center; color: var(--text2); font-size: 0.78rem; margin-top: 16px; }

/* GENERATE */
.gen-page { padding: 100px 0 60px; }
.gen-title { font-size: 2rem; font-weight: 700; margin-bottom: 32px; }
.gen-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gen-section { margin-bottom: 16px; }
.gen-label { font-size: 0.83rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.gen-cats { display: flex; gap: 8px; }
.gen-cat { padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.83rem; font-weight: 500; cursor: pointer; transition: all .25s; font-family: var(--font); }
.gen-cat:hover { border-color: var(--accent); color: var(--text); }
.gen-cat.active { background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; border-color: transparent; }
.gen-select { width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 0.88rem; font-family: var(--font); outline: none; }
.gen-select:focus { border-color: var(--accent); }
.gen-select option { background: var(--bg2); color: var(--text); }
.hidden-opt { display: none; }
.gen-ratios { display: flex; gap: 8px; }
.gen-ratio { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.83rem; cursor: pointer; transition: all .2s; font-family: var(--font); }
.gen-ratio:hover { border-color: var(--accent); }
.gen-ratio.active { background: var(--accent); color: #fff; border-color: transparent; }
.gen-textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 0.88rem; font-family: var(--font); resize: vertical; outline: none; min-height: 100px; }
.gen-textarea:focus { border-color: var(--accent); }

/* BRAND CARDS */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; transition: all .25s; text-align: left; font-family: var(--font); color: var(--text); display: flex; flex-direction: column; gap: 4px; min-height: 80px; }
.brand-card:hover { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.04); }
.brand-card.active { border-color: var(--accent); background: rgba(245,158,11,0.1); box-shadow: 0 0 20px rgba(245,158,11,0.12); }
.brand-top { display: flex; align-items: center; gap: 6px; }
.brand-icon { width: 18px; height: 18px; flex-shrink: 0; }
.brand-name { font-weight: 600; font-size: 0.82rem; white-space: nowrap; }
.brand-tag { padding: 2px 7px; border-radius: 5px; font-size: 0.65rem; font-weight: 700; background: rgba(245,158,11,0.15); color: var(--accent2); line-height: 1.4; }
.brand-desc { font-size: 0.73rem; color: var(--text2); line-height: 1.3; }

/* CONFIG ROWS */
.cfg-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.cfg-label { font-size: 0.8rem; color: var(--text2); min-width: 90px; font-weight: 500; flex-shrink: 0; }
.cfg-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.8rem; cursor: pointer; transition: all .2s; font-family: var(--font); white-space: nowrap; }
.cfg-btn:hover { border-color: var(--accent); color: var(--text); }
.cfg-btn.active { background: var(--accent); color: #fff; border-color: transparent; }

/* I2V UPLOAD */
.i2v-upload { position: relative; }
.i2v-dropzone { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 28px 16px; text-align: center; cursor: pointer; transition: all .25s; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text2); font-size: 0.83rem; }
.i2v-dropzone:hover, .i2v-drag { border-color: var(--accent); background: rgba(245,158,11,0.04); }
.i2v-hint { font-size: 0.73rem; color: var(--text2); opacity: 0.7; margin-top: 4px; }
.i2v-preview { position: relative; border-radius: var(--radius-sm); overflow: hidden; max-height: 200px; }
.i2v-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.i2v-remove { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.i2v-remove:hover { background: var(--red); }

/* CAMERA CONTROL */
.camera-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.camera-btn { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.78rem; cursor: pointer; transition: all .2s; font-family: var(--font); }
.camera-btn:hover { border-color: var(--accent); color: var(--text); }
.camera-btn.active { background: var(--accent); color: #fff; border-color: transparent; }

/* GEN SPINNER */
.gen-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.gen-btn { font-size: 1rem; padding: 16px; }
.gen-hint { text-align: center; color: var(--text2); font-size: 0.8rem; margin-top: 8px; }
.gen-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gen-result-empty { text-align: center; padding: 40px; }
.gen-result-empty p { color: var(--text2); }
.gen-result-sub { font-size: 0.83rem !important; margin-top: 8px; }
.gen-result-content { width: 100%; padding: 16px; }
#result-img { width: 100%; border-radius: 12px; }
#result-text-content { font-size: 0.88rem; line-height: 1.7; white-space: pre-wrap; max-height: 500px; overflow-y: auto; padding: 16px; }
#result-vid { width: 100%; border-radius: 12px; }
.gen-result-error { padding: 32px; text-align: center; }
.gen-result-error p { color: var(--red); }
.gen-result-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 4px; border-top: 1px solid var(--border); margin-top: 12px; flex-wrap: wrap; }
.gen-result-meta { font-size: 0.78rem; color: var(--text2); font-family: var(--mono); }

/* GALLERY */
.gen-gallery { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.gen-gallery-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
.gen-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gen-gallery-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.gen-gallery-page { font-size: 0.83rem; color: var(--text2); font-family: var(--mono); }
.gg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all .25s; }
.gg-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(245,158,11,0.1); }
.gg-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg2); }
.gg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gg-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gg-thumb-video { position: relative; }
.gg-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gg-play svg { width: 18px; height: 18px; margin-left: 2px; }
.gg-thumb-text { padding: 14px; display: flex; align-items: flex-start; }
.gg-thumb-text p { font-size: 0.76rem; color: var(--text2); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.gg-info { padding: 10px 12px; }
.gg-model { display: block; font-size: 0.76rem; font-weight: 600; color: var(--accent2); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-date { font-size: 0.7rem; color: var(--text2); }

/* REFERRAL */
.ref-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.ref-hero h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.ref-hero p { color: var(--text2); font-size: 0.93rem; }
.ref-hero strong { color: var(--green); }
.ref-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 32px; }
.ref-link-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.ref-link-section h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; }
.ref-link-box { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,0.3); border-radius: var(--radius-sm); padding: 14px 16px; flex-wrap: wrap; }
.ref-link-box code { font-family: var(--mono); font-size: 0.83rem; color: var(--green); flex: 1; word-break: break-all; }
.ref-hint { color: var(--text2); font-size: 0.83rem; }
.ref-how h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; }

/* LEGAL */
.legal-page { padding: 100px 0 60px; }
.legal-title { font-size: 2rem; font-weight: 700; margin-bottom: 32px; }
.legal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; font-size: 0.9rem; color: var(--text2); line-height: 1.8; white-space: pre-wrap; font-family: var(--font); }

/* ADMIN TABLE */
.admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.admin-table th { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--border); color: var(--text2); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.admin-table tbody tr:hover { background: rgba(245,158,11,0.04); }
.admin-mono { font-family: var(--mono); font-size: 0.8rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-left p { color: var(--text2); font-size: 0.83rem; margin-top: 8px; }
.footer-center { display: flex; gap: 20px; }
.footer-center a { color: var(--text2); font-size: 0.83rem; }
.footer-center a:hover { color: var(--text); }
.footer-right { text-align: right; }
.footer-right a { color: var(--text2); font-size: 0.88rem; }
.footer-right a:hover { color: var(--text); }
.footer-legal { color: var(--text2); font-size: 0.73rem; margin-top: 8px; opacity: 0.5; }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* MODEL PAGE */
.model-page { padding: 100px 0 60px; }
.model-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 48px; }
.model-hero-info h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.model-hero-info .model-provider { font-size: 0.88rem; color: var(--text2); margin-bottom: 16px; }
.model-hero-info .model-desc-long { font-size: 0.93rem; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.model-hero-info .model-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.model-spec { padding: 6px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; background: rgba(245,158,11,0.08); color: var(--accent2); border: 1px solid rgba(245,158,11,0.15); }
.model-hero-info .model-price-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.model-price-label { font-size: 0.78rem; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.model-price-value { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; color: var(--accent2); }
.model-price-rub { font-size: 0.88rem; color: var(--text2); margin-left: 8px; }
.model-hero-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.model-hero-demo video, .model-hero-demo img { width: 100%; display: block; }
.model-hero-demo .demo-caption { padding: 12px 16px; font-size: 0.78rem; color: var(--text2); }
.model-section { margin-bottom: 48px; }
.model-section-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.model-examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.model-example-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: all .3s; }
.model-example-card:hover { border-color: rgba(245,158,11,0.4); transform: translateY(-3px); }
.model-example-card img, .model-example-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.model-example-card .ex-media { position: relative; overflow: hidden; }
.model-example-card .ex-media img, .model-example-card .ex-media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.model-example-card:hover .ex-media img, .model-example-card:hover .ex-media video { transform: scale(1.05); }
.model-example-card .ex-info { padding: 12px 14px; }
.model-example-card .ex-prompt { font-size: 0.78rem; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.model-use-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.model-use-case { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.model-use-case h4 { font-size: 0.93rem; font-weight: 600; margin-bottom: 6px; }
.model-use-case p { font-size: 0.8rem; color: var(--text2); }

/* MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { padding: 0 16px; }
    .hero { padding: 80px 16px 40px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-stats { gap: 20px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding: 10px 20px; font-size: 0.85rem; }
    .container { padding: 0 16px; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .models-grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: 1fr; }
    .packs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; gap: 16px; }
    .footer-center { flex-wrap: wrap; gap: 12px; }
    .footer-right { text-align: left; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .gen-layout { grid-template-columns: 1fr; }
    .gen-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 28px 20px; }
    .example-prompt { flex-direction: column; }
    .model-hero { grid-template-columns: 1fr; gap: 24px; }
    .model-examples-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .guides-tabs { gap: 4px; }
    .guide-tab { padding: 8px 12px; font-size: 0.78rem; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); }
    .cfg-label { min-width: auto; }
    .ref-link-box { flex-direction: column; }
    .admin-table { font-size: 0.76rem; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-stats { flex-wrap: wrap; }
    .packs-grid { grid-template-columns: 1fr; }
    .tabs { flex-wrap: wrap; }
    .dash-stats { grid-template-columns: 1fr; }
    .model-examples-grid { grid-template-columns: 1fr; }
    .gen-gallery-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: 1fr; }
    .gen-cats { flex-wrap: wrap; }
    .hero-actions { flex-direction: column; align-items: center; }
    .bs-header { flex-direction: column; gap: 8px; }
    .bs-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
    .showcase-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== SCROLL REVEAL ===== */
.reveal-up { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.revealed { opacity: 1; transform: translateY(0); }

/* ===== GLOW BUTTON ===== */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after { content: ''; position: absolute; inset: -2px; background: linear-gradient(135deg, rgba(245,158,11,0.6), rgba(52,211,153,0.6)); border-radius: inherit; z-index: -1; filter: blur(16px); opacity: 0; transition: opacity .35s; }
.btn-glow:hover::after { opacity: 1; }

/* ===== HERO BADGE DOT ===== */
.hero-badge-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: badgePulse 2s ease infinite; }
@keyframes badgePulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.5); } 50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52,211,153,0); } }

/* (floating cards removed) */

/* ===== SHOWCASE GALLERY ===== */
.section-showcase { background: var(--bg); overflow: hidden; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.showcase-wide { grid-column: span 1; }
.showcase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .4s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column; }
.showcase-card:hover { border-color: rgba(148,163,184,0.4); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.showcase-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg); flex-shrink: 0; }
.showcase-media img, .showcase-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.showcase-card:hover .showcase-media img, .showcase-card:hover .showcase-media video { transform: scale(1.05); }
.showcase-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); display: flex; align-items: center; justify-content: flex-end; }
.showcase-model-tag { padding: 4px 10px; border-radius: 6px; font-size: 0.68rem; font-weight: 700; background: rgba(245,158,11,0.25); color: var(--accent2); backdrop-filter: blur(8px); border: 1px solid rgba(245,158,11,0.2); }
.showcase-play-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0.7; transition: all .3s; pointer-events: none; }
.showcase-card:hover .showcase-play-hint { opacity: 1; transform: translate(-50%,-50%) scale(1.1); background: rgba(245,158,11,0.6); }
.showcase-play-hint svg { margin-left: 2px; }
.showcase-info { padding: 14px 16px; }
.showcase-prompt { font-size: 0.78rem; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.showcase-price { font-family: var(--mono); font-size: 0.73rem; font-weight: 600; color: var(--accent2); }
.showcase-cta { text-align: center; padding-top: 8px; }

/* ===== MULTI-SHOT UI ===== */
.ms-section { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; background: rgba(245,158,11,0.03); }
.ms-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ms-header h3 { font-size: 0.88rem; font-weight: 600; color: var(--accent2); }
.ms-shots-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ms-shot { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.ms-shot-num { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 0.73rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.ms-shot-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ms-shot-input { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 0.8rem; font-family: var(--font); outline: none; resize: none; }
.ms-shot-input:focus { border-color: var(--accent); }
.ms-shot-row { display: flex; gap: 6px; align-items: center; }
.ms-dur-btns { display: flex; gap: 4px; }
.ms-dur-btn { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text2); font-size: 0.73rem; cursor: pointer; font-family: var(--font); transition: all .2s; }
.ms-dur-btn.active { background: var(--accent); color: #fff; border-color: transparent; }
.ms-shot-remove { background: none; border: none; color: var(--red); font-size: 1rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background .2s; }
.ms-shot-remove:hover { background: rgba(248,113,113,0.1); }
.ms-add-btn { width: 100%; padding: 8px; border-radius: 8px; border: 1px dashed var(--border); background: transparent; color: var(--text2); font-size: 0.8rem; cursor: pointer; font-family: var(--font); transition: all .2s; }
.ms-add-btn:hover { border-color: var(--accent); color: var(--accent2); background: rgba(245,158,11,0.04); }
.ms-add-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.ms-summary { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--surface); border-radius: 8px; border: 1px solid var(--border); font-size: 0.8rem; margin-top: 8px; }
.ms-summary-left { color: var(--text2); }
.ms-summary-price { font-family: var(--mono); font-weight: 700; color: var(--accent2); }
.footer-right a { display: block; margin-bottom: 4px; }
