/* =========================================================
   Restore Photo — publication layer (landing + cabinet).
   Dark, vibrant, gradient-heavy, glassy. No Tailwind.
   ========================================================= */

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

:root {
  --bg-0: #07070e;
  --bg-1: #0f0e1a;
  --bg-2: #1a1730;
  --ink-0: #ffffff;
  --ink-1: #e9e7f3;
  --ink-2: #a7a3c2;
  --ink-3: #6b6687;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.15);

  --brand: #a855f7;
  --brand-2: #ec4899;
  --brand-3: #06b6d4;
  --brand-glow: 0 0 60px rgba(168,85,247,.45);

  --grad-primary: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
  --grad-cool:    linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #ec4899 100%);
  --grad-text:    linear-gradient(90deg, #ec4899, #a855f7, #06b6d4);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
  --radius-xl: 36px;

  --shadow-card: 0 20px 60px -20px rgba(168,85,247,.25), 0 2px 8px rgba(0,0,0,.4);

  --container: 1200px;
}

html, body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  scroll-behavior: smooth;
  line-height: 1.55;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* =========== Декоративный фон =========== */
.bg-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; mix-blend-mode: screen; }
.bg-blob.b1 { top: -20%;  left: -10%; width: 640px; height: 640px; background: #a855f7; animation: float1 22s ease-in-out infinite; }
.bg-blob.b2 { top:  35%;  right: -15%; width: 720px; height: 720px; background: #ec4899; animation: float2 28s ease-in-out infinite; }
.bg-blob.b3 { bottom: -20%; left: 20%; width: 560px; height: 560px; background: #06b6d4; animation: float3 30s ease-in-out infinite; opacity: .35; }
.bg-grid  { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%); }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(80px, 60px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px, 40px) scale(1.12); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px, -70px) scale(1.05); } }

/* =========== Контейнер и слой =========== */
.layer { position: relative; z-index: 1; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =========== Навигация =========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7,7,14,.65);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand-lock { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.5px; }
.brand-lock .brand-orb { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-primary); box-shadow: var(--brand-glow); display: grid; place-items: center; font-size: 18px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink-0); }
.nav-cta { background: var(--grad-primary); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; box-shadow: var(--brand-glow); transition: transform .2s; }
.nav-cta:hover { transform: translateY(-1px); }
.nav-balance { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink-1); padding: 8px 14px; background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.3); border-radius: 999px; }
.nav-balance b { color: #fff; }

/* Burger + drawer (лендинг, мобила) */
.nav-burger { display: none; background: rgba(168,85,247,.2); border: 1px solid rgba(168,85,247,.5); color: #fff; font-size: 22px; line-height: 1; padding: 6px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.site-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 82vw;
    background: linear-gradient(180deg, #0f0e1a, #1a1730);
    box-shadow: -10px 0 40px rgba(0,0,0,.5);
    z-index: 60; padding: 64px 16px 24px;
    display: flex; flex-direction: column; gap: 4px;
    transform: translateX(100%); transition: transform .22s ease;
}
body.site-drawer-open .site-drawer { transform: translateX(0); }
.site-drawer-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 4px 10px; }
.site-drawer-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 16px; color: var(--ink-1); text-decoration: none; border-radius: 10px; background: transparent; border: 0; text-align: left; cursor: pointer; font-family: inherit; }
.site-drawer-item:hover, .site-drawer-item:active { background: rgba(255,255,255,.06); }
.site-drawer-item.primary { background: var(--grad-primary); color: #fff; font-weight: 600; margin-top: 12px; justify-content: center; }
.site-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 55; }
body.site-drawer-open .site-drawer-backdrop { display: block; }

/* =========== Hero =========== */
.hero { padding: 80px 0 120px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--ink-2); margin-bottom: 24px; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
.hero h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1; font-weight: 700; letter-spacing: -2px; color: var(--ink-0); margin-bottom: 24px; }
.hero h1 .accent { background: var(--grad-text); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; background: var(--grad-primary); color: #fff; font-weight: 600; font-size: 15px; border-radius: 14px; border: 0; cursor: pointer; box-shadow: var(--brand-glow); transition: transform .2s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; background: rgba(255,255,255,.05); color: var(--ink-1); font-weight: 500; font-size: 15px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; transition: background .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* Hero сlайдер before/after */
.hero-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-1); box-shadow: 0 40px 120px -30px rgba(168,85,247,.5), 0 0 0 1px var(--line-strong); transform: rotate(-2deg); }
.hero-card:hover { transform: rotate(0deg) scale(1.02); transition: transform .4s; }

/* =========== Before/After Slider =========== */
.ba-slider { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-l); overflow: hidden; user-select: none; cursor: ew-resize; background: #222; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: linear-gradient(to bottom, transparent, #fff 20%, #fff 80%, transparent); box-shadow: 0 0 20px rgba(255,255,255,.5); transform: translateX(-50%); pointer-events: none; }
.ba-handle::before, .ba-handle::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; top: calc(50% - 22px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.ba-handle::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 6 9 12 15 18'%3E%3C/polyline%3E%3C/svg%3E") center / 24px no-repeat #fff, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") center / 24px no-repeat #fff; background-blend-mode: normal; width: 48px; height: 48px; top: calc(50% - 24px); border: 2px solid #fff; }
.ba-label { position: absolute; top: 14px; padding: 4px 10px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase; }
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; background: rgba(168,85,247,.85); }

/* =========== Общие секции =========== */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-tag { display: inline-block; padding: 4px 12px; background: rgba(168,85,247,.15); color: #d8b4fe; font-size: 12px; font-weight: 600; border-radius: 999px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -1px; color: var(--ink-0); margin-bottom: 14px; }
.section h2 .accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section p.lead { font-size: 17px; color: var(--ink-2); }

/* =========== Features =========== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card {
  padding: 30px; border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid var(--line);
  transition: all .3s;
  position: relative; overflow: hidden;
}
.feat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-primary); opacity: 0; transition: opacity .3s; }
.feat-card:hover { transform: translateY(-6px); border-color: rgba(168,85,247,.4); box-shadow: 0 20px 60px -20px rgba(168,85,247,.3); }
.feat-card:hover::before { opacity: 1; }
.feat-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; margin-bottom: 20px; background: var(--grad-primary); box-shadow: 0 8px 30px rgba(168,85,247,.3); }
.feat-icon.cool { background: var(--grad-cool); box-shadow: 0 8px 30px rgba(6,182,212,.3); }
.feat-icon.warm { background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%); box-shadow: 0 8px 30px rgba(245,158,11,.3); }
.feat-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; color: var(--ink-0); }
.feat-card p { color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* =========== Галерея примеров =========== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { aspect-ratio: 3/4; border-radius: var(--radius-m); overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: transform .3s; }
.gallery-item:hover { transform: translateY(-4px) scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 12px; font-weight: 500; }

/* =========== Pricing =========== */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card { padding: 32px; border-radius: var(--radius-l); background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%); border: 1px solid var(--line-strong); position: relative; overflow: hidden; }
.price-card.featured { border-color: rgba(168,85,247,.5); box-shadow: var(--shadow-card); }
.price-card.featured::before { content: 'Рекомендуем'; position: absolute; top: 16px; right: 16px; padding: 4px 10px; background: var(--grad-primary); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; }
.price-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.price-card .price-sub { color: var(--ink-2); font-size: 13px; margin-bottom: 18px; }
.price-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-1); }
.price-list li:last-child { border-bottom: 0; }
.price-list li b { font-family: ui-monospace, Menlo, monospace; color: #d8b4fe; }

/* =========== How it works =========== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-card { position: relative; padding: 30px 24px; border-radius: var(--radius-l); background: rgba(255,255,255,.03); border: 1px solid var(--line); counter-increment: step; }
.step-card::before { content: counter(step, decimal-leading-zero); position: absolute; top: -20px; left: 24px; font-size: 52px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .6; line-height: 1; }
.step-card h4 { margin: 30px 0 8px; font-size: 18px; font-weight: 600; }
.step-card p { color: var(--ink-2); font-size: 14px; }

/* =========== Activate form =========== */
.activate-card {
  max-width: 520px; margin: 0 auto; padding: 44px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(168,85,247,.08) 0%, rgba(236,72,153,.03) 100%);
  border: 1px solid rgba(168,85,247,.3);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.activate-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.activate-card p { color: var(--ink-2); margin-bottom: 24px; }
.coupon-input-wrap { position: relative; display: flex; flex-direction: column; gap: 10px; }
.coupon-input {
  width: 100%; padding: 18px 22px; font-size: 22px; font-weight: 600;
  font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; text-align: center;
  background: rgba(0,0,0,.4); color: #fff; border: 2px solid rgba(168,85,247,.4); border-radius: var(--radius-m);
  transition: all .2s;
  -webkit-user-select: text !important; user-select: text !important;
  -webkit-touch-callout: default !important;
  touch-action: manipulation;
}
.coupon-input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 6px rgba(168,85,247,.18); }
.coupon-input::placeholder { color: rgba(255,255,255,.25); }
.btn-paste {
  padding: 12px 20px; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(168,85,247,.5); border-radius: 12px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
}
.btn-paste:hover, .btn-paste:active { background: rgba(168,85,247,.25); }
.activate-card .btn-primary { width: 100%; justify-content: center; margin-top: 16px; }
.activate-error { margin-top: 14px; color: #f87171; font-size: 14px; }
.activate-success { margin-top: 14px; color: #34d399; font-size: 14px; }
.activate-help { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.activate-help a { color: var(--brand); text-decoration: underline; }

/* =========== Footer =========== */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 80px; color: var(--ink-3); font-size: 13px; text-align: center; }

/* =========== Modal =========== */
/* backdrop-filter тут НЕТ специально — в iOS Safari ломает long-press контекстное меню в input'ах */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(7,7,14,.92); align-items: center; justify-content: center; padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-root.open { display: flex; }
@media (max-width: 620px) {
    .modal-root { padding: 12px; align-items: flex-start; padding-top: 5vh; }
    .modal-root .modal-card { max-height: none; }
    .coupon-input { font-size: 18px !important; letter-spacing: 1px !important; padding: 14px 16px !important; }
    #activate-modal .activate-card h3 { font-size: 20px; }
    #activate-modal .activate-card { padding: 10px !important; }
}
.modal-card {
    max-width: 720px; width: 100%;
    background: linear-gradient(180deg, #1a1730 0%, #0f0e1a 100%);
    border: 1px solid rgba(168,85,247,.3);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 30px 120px -20px rgba(168,85,247,.45), 0 10px 40px rgba(0,0,0,.6);
}
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.15); }

/* =========== Responsive =========== */
@media (max-width: 960px) {
  .container { padding: 0 16px; }
  /* hero: картинка СВЕРХУ, под ней текст и CTA */
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-inner > .hero-card { order: -1; }
  .hero-card { transform: none; max-width: 360px; margin: 0 auto; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; }
}
@media (max-width: 620px) {
  html { font-size: 15px; }
  .container { padding: 0 14px; }
  .nav-inner { padding: 12px 0; }
  .brand-lock { font-size: 15px; }
  .brand-lock .brand-orb { width: 28px; height: 28px; font-size: 15px; }
  .features, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .section { padding: 50px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 30px 0 50px; }
  .hero h1 { letter-spacing: -1px; line-height: 1.05; margin-bottom: 18px; }
  .hero p.lead { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 18px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-ghost { justify-content: center; padding: 14px 22px; font-size: 14px; }
  .section h2 { letter-spacing: -.5px; }
  .feat-card { padding: 22px; }
  .feat-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 22px; margin-bottom: 14px; }
  .step-card { padding: 24px 18px; }
  .step-card::before { font-size: 42px; }
  .price-card { padding: 22px; }
  .price-list li { font-size: 13px; }
  .activate-card { padding: 28px 22px; }
  .activate-card h3 { font-size: 22px; }
  .coupon-input { padding: 14px 16px; font-size: 18px; letter-spacing: 1.5px; }
  .gallery-item .caption { padding: 14px 10px 8px; font-size: 11px; }
  .footer { padding: 40px 0 30px; font-size: 12px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 36px; }
  .section h2 { font-size: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   КАБИНЕТ
   ========================================================= */
.cab-app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.cab-side { padding: 24px 20px; border-right: 1px solid var(--line); background: rgba(15,14,26,.8); backdrop-filter: blur(20px); display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; z-index: 50; }
.cab-side .brand-lock { margin-bottom: 30px; gap: 10px; align-items: center; display: flex; }
.cab-side .brand-lock .brand-text { line-height: 1.2; }
.cab-side .brand-lock .brand-sub { font-size: 12px; color: var(--ink-2); font-family: ui-monospace, Menlo, monospace; font-weight: 500; }
.cab-side .brand-lock .brand-sub small { font-size: 10px; font-family: inherit; }
.cab-nav { display: flex; flex-direction: column; gap: 4px; }
.cab-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--ink-2); background: transparent; border: 0; border-radius: 10px; font-size: 14px; cursor: pointer; font-weight: 500; text-align: left; width: 100%; transition: all .15s; text-decoration: none; }
.cab-nav-item:hover { background: rgba(255,255,255,.04); color: var(--ink-0); }
.cab-nav-item.active { background: rgba(168,85,247,.15); color: #fff; }
.cab-nav-item .icon { font-size: 18px; width: 22px; text-align: center; }
.cab-spacer { flex: 1; }

.cab-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 45; }
body.side-open .cab-backdrop { display: block; }

.cab-mobile-top { display: none; }

.cab-main { padding: 22px 28px 60px; min-width: 0; }
.cab-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.cab-topbar h1 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
.cab-topbar .cab-actions { display: flex; gap: 8px; }

.card-v { padding: 18px 20px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; }
.card-v h3 { font-size: 15px; margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

.btn-v-primary { padding: 12px 22px; background: var(--grad-primary); color: #fff; border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-v-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(168,85,247,.4); }
.btn-v-ghost { padding: 12px 22px; background: rgba(255,255,255,.05); color: var(--ink-1); border: 1.5px solid var(--line-strong); border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.btn-v-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(168,85,247,.4); }
.btn-v-ghost.active { background: linear-gradient(135deg, #a855f7, #ec4899); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(168,85,247,.45), 0 0 0 3px rgba(168,85,247,.2); transform: translateY(-1px); }
.btn-v-danger { padding: 12px 22px; background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn-v-danger:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(239,68,68,.5); }

/* Карточки моделей/пресетов (cabinet) */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pick-card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1.5px solid var(--line); cursor: pointer; transition: all .15s; position: relative; }
.pick-card:hover { border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.06); }
.pick-card.active { border-color: var(--brand); background: rgba(168,85,247,.18); box-shadow: 0 0 0 3px rgba(168,85,247,.18), 0 8px 24px rgba(168,85,247,.22); }
.pick-card.recommended::after { content: none; }
.pick-card .pm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pick-card .pm-icon { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(236,72,153,.25)); border: 1px solid rgba(168,85,247,.45); border-radius: 8px; color: #fff; box-shadow: 0 2px 8px rgba(168,85,247,.25); }
.pick-card .pm-icon svg { width: 18px; height: 18px; stroke-width: 2; }
.pick-card.active .pm-icon { background: linear-gradient(135deg, #a855f7, #ec4899); border-color: #fff; box-shadow: 0 4px 14px rgba(168,85,247,.5); }
.ws-chip .ws-icon-inline { display: inline-flex; width: 16px; height: 16px; }
.ws-chip .ws-icon-inline svg { width: 14px; height: 14px; color: var(--brand); }
.pick-card .pt { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.25; }
.pick-card .ph { font-size: 12px; color: var(--ink-1); line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-card.active .ph { color: #fff; }
.pick-card .pprice { display: inline-block; margin-top: 10px; padding: 3px 10px; background: rgba(168,85,247,.28); color: #e9d5ff; border-radius: 6px; font-size: 12px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.pick-card.active .pprice { background: #a855f7; color: #fff; }

/* Drop-zone для загрузки фото (компактная) */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius-m); padding: 18px 20px; text-align: center; cursor: pointer; transition: all .2s; background: rgba(255,255,255,.02); display: flex; align-items: center; gap: 14px; justify-content: center; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(168,85,247,.08); }
.dropzone .dz-icon { font-size: 28px; }
.dropzone .dz-title { font-size: 14px; font-weight: 600; color: var(--ink-0); }
.dropzone .dz-hint { color: var(--ink-2); font-size: 12px; }
.dropzone .dz-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

.ref-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ref-thumb { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line-strong); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ref-thumb .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-nav { margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 860px) {
    .wizard-step.active { padding-bottom: 76px; }
    .wizard-nav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        margin: 0; padding: 12px 14px;
        background: rgba(10,9,20,.97); backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255,255,255,.08);
        gap: 10px;
    }
    .wizard-nav .btn-v-primary, .wizard-nav .btn-v-ghost { flex: 1; padding: 13px 14px; font-size: 14px; }
    .wizard-nav > :only-child { flex: 1; }
    .wizard-step[data-step="1"] .wizard-nav:has(> #p-next-1:disabled) { display: none; }
    .wizard-step.active[data-step="1"]:has(.wizard-nav > #p-next-1:disabled) { padding-bottom: 0; }
}

/* Summary-бар что уже выбрано в wizard'е */
.wizard-summary { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: rgba(168,85,247,.06); border: 1px solid rgba(168,85,247,.2); border-radius: 12px; margin-bottom: 14px; }
.wizard-summary:empty { display: none; }
.ws-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-1); cursor: pointer; transition: all .15s; }
.ws-chip:hover { border-color: rgba(168,85,247,.5); color: #fff; }
.ws-chip .ws-icon { width: 18px; height: 18px; border-radius: 50%; background: rgba(168,85,247,.2); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
.ws-chip .ws-icon svg { width: 12px; height: 12px; }
.ws-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin: -3px 0; }
.ws-chip .ws-refs { display: flex; margin-right: -4px; }
.ws-chip .ws-refs img { margin-right: -8px; border: 2px solid var(--bg-1); }
.ws-chip.bold { background: rgba(168,85,247,.2); border-color: rgba(168,85,247,.4); color: #fff; font-weight: 500; }
.ws-chip:not(:has(.ws-refs)) { padding-left: 10px; }
.ws-chip .ws-svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .9; color: currentColor; }
.ws-chip.bold .ws-svg { color: var(--brand); opacity: 1; }
.ws-chip .ws-caret { margin-left: 2px; font-size: 10px; opacity: .8; transition: transform .15s; display: inline-block; }
.ws-chip.ws-scenes-toggle.open .ws-caret { transform: rotate(180deg); }
.ws-scenes-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; padding: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(168,85,247,.25); border-radius: 10px; }
.ws-scene-pill { padding: 4px 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; font-size: 12px; color: var(--ink-0); }
.ws-scenes-edit { margin-left: auto; background: transparent; border: 1px solid rgba(168,85,247,.4); color: var(--brand); font-size: 12px; cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.ws-scenes-edit:hover { background: rgba(168,85,247,.12); }
@media (max-width: 860px) {
    .wizard-summary { padding: 8px 10px; gap: 6px; }
    .ws-chip { padding: 4px 9px 4px 4px; font-size: 11px; }
    .ws-chip img { width: 18px; height: 18px; }
    .ws-chip .ws-icon { width: 16px; height: 16px; }
    .ws-scene-pill { font-size: 11px; padding: 3px 8px; }
}
.step-head { display: flex; gap: 6px; margin-bottom: 16px; }
.step-dot { flex: 1; height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.step-dot.done { background: var(--brand); }
.step-dot.active { background: linear-gradient(90deg, var(--brand), var(--line)); }

/* SVG-иконки — цвет по currentColor */
svg { display: block; }
.group-icon { display: inline-flex; width: 18px; height: 18px; margin-right: 6px; color: var(--brand); vertical-align: -3px; }
.group-icon svg { width: 100%; height: 100%; }
.chip-icon { display: inline-flex; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.chip-icon svg { width: 100%; height: 100%; }

.pick-icon { width: 32px; height: 32px; color: var(--brand); margin-bottom: 6px; }
.pick-icon svg { width: 100%; height: 100%; }
.pick-card { display: flex; flex-direction: column; }
.pick-body { display: flex; flex-direction: column; gap: 2px; }

.t-cover-icon, .pt-cover-icon { width: 44px; height: 44px; color: rgba(168,85,247,.7); opacity: .85; }
.t-cover-icon svg, .pt-cover-icon svg { width: 100%; height: 100%; }

.tag-mask { display: inline-block; padding: 1px 6px; margin-left: 6px; background: rgba(192,132,252,.15); color: #c084fc; border-radius: 4px; font-size: 10px; font-weight: 500; vertical-align: middle; }

.preset-group h4 { display: flex; align-items: center; }

/* Карточки тем — компактные */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-card { padding: 0; border-radius: 12px; background: rgba(255,255,255,.03); border: 1.5px solid var(--line); cursor: pointer; transition: all .15s; overflow: hidden; }
.theme-card:hover { border-color: rgba(168,85,247,.4); transform: translateY(-2px); }
.theme-card.active { border-color: var(--brand); background: rgba(168,85,247,.12); box-shadow: 0 0 0 2px rgba(168,85,247,.25); }
.theme-card .t-cover { aspect-ratio: 16/9; background: linear-gradient(135deg, #1a1730, #2d1b4e 50%, #3d1f53); position: relative; display: grid; place-items: center; overflow: hidden; }
.theme-card .t-cover img { width: 100%; height: 100%; object-fit: cover; }
.theme-card .t-body { padding: 8px 10px 10px; }
.theme-card .t-title { font-weight: 600; font-size: 13px; color: var(--ink-0); line-height: 1.2; }
.theme-card .t-count { font-size: 11px; color: var(--ink-2); margin-top: 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Сцены — компактные grid карточки */
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.prompt-tile { position: relative; padding: 0; border-radius: 10px; background: rgba(255,255,255,.03); border: 2px solid var(--line); cursor: pointer; transition: all .15s; overflow: hidden; }
.prompt-tile:hover { border-color: rgba(168,85,247,.45); transform: translateY(-2px); }
.prompt-tile.picked { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(168,85,247,.3); }
.prompt-tile .pt-cover { aspect-ratio: 3/4; background: linear-gradient(145deg, #2a1a4a 0%, #3d1b54 50%, #531a3f 100%); position: relative; display: grid; place-items: center; overflow: hidden; }
.prompt-tile .pt-cover img { width: 100%; height: 100%; object-fit: cover; }
.prompt-tile .pt-cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(168,85,247,.3), transparent 60%), radial-gradient(circle at 70% 70%, rgba(236,72,153,.25), transparent 55%); }
.prompt-tile .pt-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.7)); }
.prompt-tile .pt-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.25; z-index: 2; }
.prompt-tile .pt-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; transition: all .15s; z-index: 2; }
.prompt-tile.picked .pt-check { background: var(--brand); border-color: var(--brand); }
.prompt-tile .pt-sub { display: none; }

/* Chip-группа (вкладки по подтемам) */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--ink-0); border-color: rgba(168,85,247,.3); }
.chip.active { background: rgba(168,85,247,.2); border-color: rgba(168,85,247,.5); color: #fff; }

.quote-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.3); border-radius: var(--radius-m); margin: 20px 0; }
.quote-row .ql { color: var(--ink-2); font-size: 14px; }
.quote-row .qv { font-size: 22px; font-weight: 700; color: #fff; font-family: ui-monospace, Menlo, monospace; }
.quote-row.insufficient { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shot-item { aspect-ratio: 1/1; background: var(--bg-2); border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.shot-item img { width: 100%; height: 100%; object-fit: cover; }
.shot-item .shot-status { position: absolute; top: 8px; left: 8px; padding: 3px 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px; }
.shot-item .shot-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 11px; }
.shot-item.loading { display: grid; place-items: center; color: var(--ink-2); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.history-row .l { display: flex; flex-direction: column; }
.history-row .t { font-weight: 500; }
.history-row .m { font-size: 12px; color: var(--ink-2); }
.history-row .delta { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.history-row .delta.plus { color: #34d399; }
.history-row .delta.minus { color: #f87171; }

@media (max-width: 860px) {
  .cab-app { grid-template-columns: 1fr; }

  /* Мобильная шапка с бургером */
  .cab-mobile-top {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    position: sticky; top: 0; z-index: 80;
    background: rgba(10,9,20,.96);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .cab-burger {
    background: rgba(168,85,247,.2); border: 1px solid rgba(168,85,247,.5);
    color: #fff; font-size: 22px; cursor: pointer;
    padding: 6px 12px; flex-shrink: 0; border-radius: 10px;
    line-height: 1; font-weight: 600;
    position: relative; z-index: 100;
  }
  .cab-mobile-title { font-size: 16px; font-weight: 600; color: #fff; flex: 1; }
  .cab-mobile-balance {
    padding: 6px 14px; font-size: 13px; font-weight: 700;
    background: linear-gradient(90deg, rgba(168,85,247,.25), rgba(236,72,153,.2));
    border: 1px solid rgba(168,85,247,.4); border-radius: 999px;
    font-family: ui-monospace, Menlo, monospace; white-space: nowrap;
  }

  /* Sidebar — drawer слева */
  .cab-side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; max-width: 82vw; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease;
    padding: 20px 18px; z-index: 60;
    background: linear-gradient(180deg, #0f0e1a, #1a1730);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    overflow-y: auto;
  }
  body.side-open .cab-side { transform: translateX(0); }
  .cab-side .brand-lock { margin-bottom: 24px; }
  .cab-topbar { display: none; }
  .cab-main { padding: 14px 14px 40px; }
  .cab-topbar { margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
  .cab-topbar h1 { font-size: 22px; }
  .card-v { padding: 16px; border-radius: 14px; }
  .card-v h3 { font-size: 15px; margin-bottom: 10px; }
  .grid-3, .grid-2 { gap: 10px; }
  .theme-grid, .prompt-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pick-card { padding: 10px; }
  .pick-card .pt { font-size: 13px; }
  .pick-card .ph { font-size: 11px; }
  .pick-card .pprice { font-size: 11px; padding: 2px 6px; }
  .ref-thumb { width: 72px; height: 72px; }
  .dropzone { padding: 14px; }
  .dropzone .dz-icon { font-size: 22px; }
  .dropzone .dz-title { font-size: 13px; }
  .quote-row { padding: 12px 14px; }
  .quote-row .qv { font-size: 18px; }
  .step-head { gap: 4px; margin-bottom: 14px; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .btn-v-primary, .btn-v-ghost { padding: 10px 16px; font-size: 13px; }
}

/* =========== Вспомогательные =========== */
.text-center { text-align: center; }
.hidden { display: none !important; }
.spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert-v { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-v.err { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.alert-v.ok { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.alert-v.info { background: rgba(59,130,246,.12); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }

/* ========== NEW Gallery — большие карточки ========== */
.my-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.my-card {
    position: relative;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: all .2s;
    cursor: pointer;
}
.my-card:hover { border-color: rgba(168,85,247,.4); transform: translateY(-3px); box-shadow: 0 12px 40px -10px rgba(168,85,247,.3); }

.my-card .my-cover { aspect-ratio: 4/3; background: var(--bg-2); position: relative; overflow: hidden; }
.my-card .my-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.my-card .my-cover .ba-split { display: grid; grid-template-columns: 1fr 1fr; height: 100%; gap: 2px; background: var(--bg-2); }
.my-card .my-cover .ba-split img { width: 100%; height: 100%; object-fit: cover; }
.my-card .my-cover .ba-tag { position: absolute; top: 8px; padding: 2px 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 600; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase; backdrop-filter: blur(8px); }
.my-card .my-cover .ba-tag.before { left: 8px; }
.my-card .my-cover .ba-tag.after { right: 8px; background: rgba(168,85,247,.85); }
.my-card .my-type { position: absolute; top: 10px; left: 10px; padding: 4px 10px; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; }
.my-card .my-type.ps { background: rgba(236,72,153,.85); }
.my-card .my-type.job { background: rgba(6,182,212,.85); }
.my-card .my-status { position: absolute; bottom: 10px; left: 10px; padding: 3px 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 500; border-radius: 999px; }
.my-card .my-status.pending { background: rgba(245,158,11,.9); }
.my-card .my-status.error { background: rgba(239,68,68,.9); }

.my-card .my-body { padding: 14px 16px; }
.my-card .my-title { font-weight: 600; font-size: 14px; color: var(--ink-0); line-height: 1.35; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-card .my-meta { display: flex; gap: 10px; color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.my-card .my-actions { display: flex; gap: 6px; padding: 0 16px 14px; }
.my-card .my-actions a, .my-card .my-actions button {
    flex: 1; padding: 8px 10px; background: rgba(255,255,255,.05); color: var(--ink-1);
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 500; text-align: center; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .15s;
}
.my-card .my-actions a:hover, .my-card .my-actions button:hover { background: rgba(168,85,247,.2); border-color: rgba(168,85,247,.4); color: #fff; }
.my-card .my-actions .danger:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); color: #fca5a5; }

.gallery-filters { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }

@media (max-width: 620px) {
  .my-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .my-card .my-cover { aspect-ratio: 1; }
  .my-card .my-body { padding: 10px 12px; }
  .my-card .my-title { font-size: 12px; min-height: 32px; }
  .my-card .my-meta { font-size: 10px; }
  .my-card .my-actions { padding: 0 10px 10px; gap: 4px; }
  .my-card .my-actions a, .my-card .my-actions button { padding: 6px 4px; font-size: 10px; }
}

/* Photoshoot modal layout — широкая, яркая, без лишних padding */
.modal-card.ps-modal {
    padding: 0 !important;
    max-width: min(96vw, 1200px) !important;
    width: 100%;
    max-height: 94vh;
    overflow: hidden;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #1a1730 0%, #0f0e1a 100%) !important;
    border: 1px solid rgba(168,85,247,.4) !important;
    box-shadow: 0 30px 120px -20px rgba(168,85,247,.5), 0 10px 40px rgba(0,0,0,.7);
}
.ps-modal-head { padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.ps-modal-head h3 { font-size: 20px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.ps-modal-head .ps-meta { color: var(--ink-2); font-size: 13px; }
.ps-modal-head .ps-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ps-modal-head .ps-head-actions button, .ps-modal-head .ps-head-actions a { padding: 7px 14px; font-size: 13px; }
.ps-modal-body { padding: 18px 24px 24px; overflow-y: auto; flex: 1; min-height: 0; }
/* auto-fit чтобы при малом количестве кадры центрировались и не болтались слева */
.ps-modal .shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.ps-modal .shot-grid.single { grid-template-columns: minmax(280px, 500px); justify-content: center; }
.ps-modal .shot-item { position: relative; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); cursor: zoom-in; }
.ps-modal .shot-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-modal .shot-item .shot-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 12px; font-weight: 500; z-index: 1; }
.ps-modal .shot-item .act-btn { position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; text-decoration: none; transition: background .15s; opacity: 1; }
.ps-modal .shot-item .act-btn:hover { background: rgba(168,85,247,.95); transform: scale(1.1); }
.ps-modal .shot-item.loading { display: grid; place-items: center; color: var(--ink-2); cursor: default; }
@media (max-width: 620px) {
    .modal-card.ps-modal { max-height: 100vh; border-radius: 0; }
    .ps-modal-head { padding: 14px 16px; }
    .ps-modal-head h3 { font-size: 16px; }
    .ps-modal-body { padding: 14px 16px 18px; }
    .ps-modal .shot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ps-modal .shot-item .act-btn { opacity: 1; width: 28px; height: 28px; font-size: 11px; }
}

/* Последние работы в разделах */
.recent-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 8px; }
.recent-row:hover { background: rgba(255,255,255,.05); }
.recent-row .r-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-2); }
.recent-row .r-info { flex: 1; min-width: 0; }
.recent-row .r-title { font-weight: 500; font-size: 14px; color: var(--ink-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-row .r-meta { font-size: 12px; color: var(--ink-2); }
.recent-row .r-actions { display: flex; gap: 6px; flex-shrink: 0; }
.recent-row .r-actions button, .recent-row .r-actions a { padding: 6px 10px; background: rgba(255,255,255,.05); color: var(--ink-1); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.recent-row .r-actions button:hover { background: rgba(168,85,247,.2); border-color: rgba(168,85,247,.4); color: #fff; }
.recent-row .r-actions .danger:hover { background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4); color: #fca5a5; }
@media (max-width: 620px) {
  .recent-row .r-actions { flex-direction: column; gap: 4px; }
  .recent-row .r-meta { display: none; }
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Before/After галерея на лендинге — 3 пары в ряд, стакает на мобиле */
.ba-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ba-gallery { grid-template-columns: 1fr 1fr; } .ba-gallery > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; } }
@media (max-width: 560px) { .ba-gallery { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } .ba-gallery > :last-child:nth-child(odd) { max-width: none; } }

/* Глобальная плашка активной работы */
.global-progress {
    position: fixed; bottom: 20px; right: 20px; z-index: 150;
    max-width: 360px; min-width: 260px;
    padding: 12px 14px; border-radius: 14px;
    background: rgba(15,14,26,.95); backdrop-filter: blur(16px);
    border: 1px solid rgba(168,85,247,.35);
    box-shadow: 0 20px 60px -20px rgba(168,85,247,.5), 0 4px 16px rgba(0,0,0,.4);
    display: flex; align-items: center; gap: 12px;
    cursor: pointer;
    transition: transform .2s;
}
.global-progress:hover { transform: translateY(-2px); }
.global-progress .gp-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--brand); display: grid; place-items: center; }
.global-progress .gp-body { flex: 1; min-width: 0; }
.global-progress .gp-title { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-progress .gp-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 6px; }
.global-progress .gp-bar .gp-bar-fill { height: 100%; background: var(--grad-primary); transition: width .3s; }
.global-progress .gp-meta { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 620px) {
  .global-progress { bottom: 12px; right: 12px; left: 12px; max-width: none; }
}

/* Group headers для пресетов */
.preset-group { margin-bottom: 18px; }
.preset-group h4 { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; font-weight: 600; }
