/* ==========================================================================
   ФОТОМАСТЕРСКАЯ — V2 design system
   Mobile-first. Cream paper + tomato accent + sage/brass seconds.
   PT Serif headlines, Onest body. Cyrillic-native pair.
   ========================================================================== */

:root {
  /* Surfaces */
  --paper:        #F4EFE6;
  --paper-2:      #EBE3D2;
  --paper-3:      #DED2B7;
  --paper-4:      #C9BEA8;

  /* Ink */
  --ink:          #1B1612;
  --ink-soft:     #5C544A;
  --ink-faint:    #8C8175;

  /* Accents */
  --tomato:       #C5371F;
  --tomato-deep:  #97291A;
  --tomato-soft:  #E8A799;
  --sage:         #3E5C4B;
  --sage-light:   #C7D6CC;
  --brass:        #B5882B;
  --brass-light:  #E8D89B;

  /* Lines */
  --hairline:     rgba(27,22,18,0.18);
  --hairline-2:   rgba(27,22,18,0.10);

  /* Type */
  --serif: 'PT Serif', Georgia, serif;
  --sans:  'Onest', -apple-system, sans-serif;

  /* Radii — низкие, книжные */
  --r-sm: 4px;
  --r-md: 6px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 12px 32px rgba(0,0,0,0.10);
  --shadow-paper: 0 18px 40px rgba(0,0,0,0.12);

  /* Layout */
  --max-w: 1280px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { html, body { font-size: 17px; } }

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.025) 0, transparent 40%);
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }

/* ==========================================================================
   PREVIEW BANNER (only in /preview/v2/*)
   ========================================================================== */
.preview-banner {
  background: var(--ink); color: var(--paper);
  padding: 6px 12px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center;
}
@media (min-width: 900px) { .preview-banner { padding: 8px 16px; font-size: 11px; letter-spacing: 0.14em; } }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.v2-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.v2-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
@media (min-width: 900px) { .v2-nav { padding: 16px 24px; gap: 24px; } }

.v2-brand {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
@media (min-width: 900px) { .v2-brand { font-size: 22px; } }
.v2-brand em { color: var(--tomato); font-style: italic; }

.v2-nav-links {
  display: none;
  gap: 18px;
}
@media (min-width: 1000px) {
  .v2-nav-links { display: flex; align-items: center; }
}
.v2-nav-links a {
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.v2-nav-links a:hover { color: var(--tomato); border-bottom-color: var(--tomato); }
.v2-nav-links a.active { color: var(--tomato); border-bottom-color: var(--tomato); }

.v2-nav-actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
@media (min-width: 900px) { .v2-nav-actions { gap: 14px; } }

.v2-credits {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}
@media (min-width: 900px) { .v2-credits { font-size: 13px; padding: 7px 12px; } }
.v2-credits:hover { background: var(--ink); color: var(--paper); }
.v2-credits .num { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; }
@media (min-width: 900px) { .v2-credits .num { font-size: 17px; } }

/* Account dropdown (desktop) */
.v2-account { position: relative; display: inline-block; }
.v2-account .v2-credits { cursor: pointer; background: none; }
.v2-account-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  min-width: 200px; padding: 6px; z-index: 100;
  display: none; flex-direction: column;
}
.v2-account.open .v2-account-dropdown { display: flex; }
.v2-account-dropdown a {
  display: block; padding: 9px 12px;
  font-size: 13px; color: var(--ink);
  text-decoration: none; border-radius: 4px;
  transition: background 0.12s ease;
  white-space: nowrap;
}
.v2-account-dropdown a:hover { background: var(--paper-2); }
.v2-account-dropdown a.v2-account-logout { color: var(--tomato); }
.v2-account-divider {
  height: 1px; background: var(--hairline); margin: 4px 6px;
}

.v2-lang {
  position: relative;
  display: inline-block;
}
.v2-lang-btn {
  background: transparent; border: 1.5px solid var(--hairline);
  color: var(--ink-soft); cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: all 0.15s ease;
}
.v2-lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.v2-lang-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  min-width: 120px; z-index: 100;
}
.v2-lang.open .v2-lang-dropdown { display: block; }
.v2-lang-dropdown a {
  display: block; padding: 10px 14px;
  font-size: 13px; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
}
.v2-lang-dropdown a:last-child { border-bottom: none; }
.v2-lang-dropdown a:hover { background: var(--paper-2); color: var(--ink); }

.v2-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px;
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  padding: 0 8px;
  transition: border-color 0.15s ease;
}
.v2-burger:hover { border-color: var(--ink); }
.v2-burger span { display: block; height: 1.5px; background: var(--ink); width: 100%; }
@media (min-width: 1000px) { .v2-burger { display: none; } }

/* Mobile slide-out */
.v2-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(27,22,18,0.5);
  z-index: 90;
}
.v2-mobile-overlay.open { display: block; }

.v2-mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--paper);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.v2-mobile-menu.open { transform: translateX(0); }
.v2-mobile-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px;
}
.v2-mobile-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink-soft);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.v2-mobile-menu nav {
  display: flex; flex-direction: column; gap: 0;
}
.v2-mobile-menu nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hairline-2);
}
.v2-mobile-menu nav a:hover { color: var(--tomato); }
.v2-mobile-menu nav a.active { color: var(--tomato); }
.v2-mobile-foot {
  margin-top: auto; padding-top: 16px;
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   TYPOGRAPHY HELPERS
   ========================================================================== */
.v2-h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.v2-h1 em { color: var(--tomato); font-style: italic; font-weight: 400; }
.v2-h1 strong { font-weight: 700; }
.v2-h1 .ink-tomato { color: var(--tomato); font-style: italic; }

.v2-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 44px);
  letter-spacing: -0.01em;
}
.v2-h3 { font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 1.2; }
@media (min-width: 700px) { .v2-h3 { font-size: 22px; } }

.v2-lead {
  font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 560px;
}
@media (min-width: 900px) { .v2-lead { font-size: 17px; } }

.v2-num-italic {
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  font-size: 13px; letter-spacing: 0.02em;
}
@media (min-width: 900px) { .v2-num-italic { font-size: 16px; } }

.v2-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 900px) { .v2-label { font-size: 12px; } }

/* Section heads (numbered, magazine-style) */
.v2-section {
  padding: 40px 16px 56px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 900px) { .v2-section { padding: 80px 24px 120px; } }

.v2-section-head {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 12px;
}
@media (min-width: 900px) { .v2-section-head { gap: 16px; margin-bottom: 48px; padding-bottom: 16px; } }
.v2-section-head .num {
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  font-size: 14px; letter-spacing: 0.04em;
}
@media (min-width: 900px) { .v2-section-head .num { font-size: 18px; } }
.v2-section-head .aside {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 900px) { .v2-section-head .aside { font-size: 13px; } }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  border: none; cursor: pointer;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}
@media (min-width: 700px) { .v2-btn { padding: 14px 28px; font-size: 14px; } }
.v2-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.v2-btn-primary { background: var(--tomato); color: var(--paper); }
.v2-btn-primary:hover:not(:disabled) { background: var(--tomato-deep); transform: translateY(-1px); }

.v2-btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.v2-btn-ghost:hover { background: var(--ink); color: var(--paper); }

.v2-btn-text {
  background: transparent; color: var(--ink-soft);
  text-transform: none; letter-spacing: 0.02em; font-size: 13px;
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}
.v2-btn-text:hover { color: var(--tomato); border-bottom-color: var(--tomato); }

.v2-btn-block { display: flex; width: 100%; }

/* ==========================================================================
   STAMPS / BADGES
   ========================================================================== */
.v2-stamp {
  display: inline-block;
  background: var(--paper);
  border: 1.5px solid var(--tomato);
  color: var(--tomato);
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 6px;
}
@media (min-width: 700px) { .v2-stamp { font-size: 10px; padding: 4px 8px; } }
.v2-stamp.brass { border-color: var(--brass); color: var(--brass); }
.v2-stamp.sage  { border-color: var(--sage);  color: var(--sage);  }
.v2-stamp.ink   { border-color: var(--ink);   color: var(--ink);   }
.v2-stamp.solid { background: var(--tomato); color: var(--paper); border-color: var(--tomato); }

.v2-stamp-corner {
  position: absolute; top: 12px; right: 12px;
  transform: rotate(4deg);
  z-index: 2;
}
@media (min-width: 700px) { .v2-stamp-corner { top: 16px; right: 16px; } }

/* ==========================================================================
   UPLOAD TRAY (corner brackets, archival look)
   ========================================================================== */
.v2-tray {
  position: relative;
  background: var(--paper-2);
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.v2-tray:hover, .v2-tray.dragover { background: var(--paper-3); }
.v2-tray .corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  transition: border-color 0.2s ease;
}
@media (min-width: 900px) { .v2-tray .corner { width: 22px; height: 22px; border-width: 2px; } }
.v2-tray .corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.v2-tray .corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.v2-tray .corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.v2-tray .corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.v2-tray:hover .corner, .v2-tray.dragover .corner { border-color: var(--tomato); }
.v2-tray-icon {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; color: var(--ink-faint);
  margin-bottom: 6px;
}
@media (min-width: 900px) { .v2-tray-icon { font-size: 40px; } }
.v2-tray-text {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 14px;
}
@media (min-width: 900px) { .v2-tray-text { font-size: 16px; } }
.v2-tray-hint {
  margin-top: 4px;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-faint);
}
@media (min-width: 900px) { .v2-tray-hint { font-size: 11px; } }

/* Multi-photo grid (for imagine, postcard veteran etc.) */
.v2-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .v2-photo-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
.v2-photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline);
  background: var(--paper-2);
  overflow: hidden;
}
.v2-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v2-photo-thumb .remove {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(27,22,18,0.7); color: var(--paper);
  border: none; cursor: pointer;
  font-size: 16px; line-height: 24px;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.v2-textarea, .v2-input, .v2-select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
@media (min-width: 900px) { .v2-textarea, .v2-input, .v2-select { font-size: 15px; padding: 14px 16px; } }
.v2-textarea { resize: vertical; min-height: 72px; }
@media (min-width: 900px) { .v2-textarea { min-height: 84px; } }
.v2-textarea:focus, .v2-input:focus, .v2-select:focus { border-color: var(--tomato); }
.v2-textarea::placeholder, .v2-input::placeholder {
  color: var(--ink-faint); font-style: italic; font-family: var(--serif);
}

/* Chip groups (for prompt suggestions, model picker, etc.) */
.v2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 900px) { .v2-chips { gap: 8px; } }
.v2-chip {
  background: var(--paper);
  border: 1px solid var(--hairline);
  font-family: var(--sans); font-size: 11px;
  color: var(--ink);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
@media (min-width: 900px) { .v2-chip { font-size: 13px; padding: 6px 14px; } }
.v2-chip:hover { border-color: var(--tomato); color: var(--tomato); }
.v2-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Step labels for forms (numbered steps) */
.v2-step { display: flex; flex-direction: column; gap: 10px; }
.v2-step-label {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  font-size: 13px;
}
@media (min-width: 900px) { .v2-step-label { font-size: 15px; } }
.v2-step-label .num {
  display: inline-block;
  font-style: normal; font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink); padding: 2px 6px;
}
@media (min-width: 900px) { .v2-step-label .num { font-size: 12px; padding: 2px 8px; } }
.v2-step-label .aside-label {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-faint); font-style: normal; font-family: var(--sans);
}
@media (min-width: 900px) { .v2-step-label .aside-label { font-size: 11px; } }

.v2-prompt-cat-label {
  display: block;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
  margin-top: 8px;
}
@media (min-width: 900px) { .v2-prompt-cat-label { font-size: 10px; margin-bottom: 8px; } }

/* CTA row (button + cost stamp) */
.v2-cta-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
@media (min-width: 700px) { .v2-cta-row { flex-direction: row; align-items: center; gap: 14px; } }
.v2-cost-stamp {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft);
}
.v2-cost-stamp .price {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: 18px; color: var(--tomato); letter-spacing: 0; text-transform: none;
}
@media (min-width: 900px) { .v2-cost-stamp .price { font-size: 22px; } }

/* ==========================================================================
   SERVICE CARD (used on home + history empty state)
   ========================================================================== */
.v2-svc-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 700px) { .v2-svc-grid { gap: 20px; } }
@media (min-width: 1100px) { .v2-svc-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }

/* Variant: 4 columns on wide screens (used for examples grids 4 + 6) */
@media (min-width: 1100px) { .v2-svc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .v2-svc-grid.cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .v2-svc-grid.cols-6 { grid-template-columns: repeat(6, 1fr); } }

.v2-svc {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 8px 8px 12px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
@media (min-width: 700px) { .v2-svc { padding: 14px 14px 18px; } }
.v2-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.v2-svc-media {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 8px;
  border: 1px solid var(--hairline);
}
@media (min-width: 700px) { .v2-svc-media { aspect-ratio: 4 / 5; margin-bottom: 14px; } }
.v2-svc-media img, .v2-svc-media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.v2-svc:hover .v2-svc-media img, .v2-svc:hover .v2-svc-media video { transform: scale(1.04); }

.v2-svc-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 6px; margin-bottom: 4px;
}
.v2-svc-num { font-family: var(--serif); font-style: italic; color: var(--tomato); font-size: 11px; }
@media (min-width: 700px) { .v2-svc-num { font-size: 14px; } }
.v2-svc-cost {
  font-size: 9px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap;
}
@media (min-width: 700px) { .v2-svc-cost { font-size: 12px; } }
.v2-svc-name {
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 2px;
}
@media (min-width: 700px) { .v2-svc-name { font-size: 24px; line-height: 1.1; margin-bottom: 4px; } }
.v2-svc-desc { font-size: 11px; color: var(--ink-soft); line-height: 1.35; }
@media (min-width: 700px) { .v2-svc-desc { font-size: 14px; line-height: 1.4; } }

/* ==========================================================================
   PAGE HEADER (sub-page hero)
   ========================================================================== */
.v2-page-head {
  padding: 28px 16px 20px;
  max-width: var(--max-w); margin: 0 auto;
}
@media (min-width: 900px) { .v2-page-head { padding: 56px 48px 32px; } }
.v2-page-head .crumb {
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  font-size: 12px; letter-spacing: 0.04em; margin-bottom: 10px;
}
@media (min-width: 900px) { .v2-page-head .crumb { font-size: 14px; margin-bottom: 12px; } }
.v2-page-head h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 8vw, 64px); line-height: 1.05; letter-spacing: -0.02em; max-width: 720px; }
.v2-page-head h1 em { color: var(--tomato); font-style: italic; font-weight: 400; }
.v2-page-head .lead { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 560px; }
@media (min-width: 900px) { .v2-page-head .lead { margin-top: 18px; font-size: 17px; } }

/* Two-column work grid (example + form) */
.v2-work {
  padding: 16px 16px 56px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 900px) {
  .v2-work { grid-template-columns: 1fr 1fr; gap: 56px; padding: 32px 48px 120px; align-items: start; }
}
.v2-work .form { display: flex; flex-direction: column; gap: 20px; }

/* Example before/after panel */
.v2-example {
  background: var(--paper);
  padding: 12px 12px 32px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-paper);
  position: relative;
}
@media (min-width: 900px) { .v2-example { padding: 16px 16px 40px; position: sticky; top: 80px; } }
.v2-example-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 900px) { .v2-example-head { font-size: 11px; margin-bottom: 14px; } }
.v2-example-head .ex-title {
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  text-transform: none; letter-spacing: 0.02em; font-size: 13px;
}
@media (min-width: 900px) { .v2-example-head .ex-title { font-size: 15px; } }
.v2-example-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-restore-pairs { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .v2-restore-pairs { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* === While-waiting: cross-service grid === */
.v2-while-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .v2-while-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .v2-while-grid { grid-template-columns: repeat(5, 1fr); } }
.v2-while-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 10px; gap: 4px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.v2-while-card:hover { transform: translateY(-2px); border-color: var(--tomato); }
.v2-while-icon { font-size: 28px; line-height: 1; }
.v2-while-name { font-size: 14px; font-weight: 600; }
.v2-while-desc { font-size: 11px; color: var(--ink-faint); font-family: var(--serif); font-style: italic; }

/* === Global generation toast === */
.v2-gen-toast {
  position: fixed; bottom: 20px; right: 20px; left: 20px;
  max-width: 400px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  padding: 14px 16px; border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex; gap: 12px; align-items: center;
  z-index: 9999;
  transform: translateY(120%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.v2-gen-toast.show { transform: translateY(0); opacity: 1; }
.v2-gen-toast.success { background: #2d6a4f; }
.v2-gen-toast.error { background: var(--tomato); }
.v2-gen-toast .icon { font-size: 22px; flex-shrink: 0; }
.v2-gen-toast .body { flex: 1; min-width: 0; }
.v2-gen-toast .title { font-weight: 600; font-size: 14px; }
.v2-gen-toast .sub { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.v2-gen-toast .actions { display: flex; gap: 6px; flex-shrink: 0; }
.v2-gen-toast .actions a, .v2-gen-toast .actions button {
  background: rgba(255,255,255,0.15); border: 0; color: inherit;
  padding: 6px 10px; border-radius: 4px;
  font-size: 12px; cursor: pointer; text-decoration: none;
  font-family: inherit;
}
.v2-gen-toast .actions a:hover, .v2-gen-toast .actions button:hover {
  background: rgba(255,255,255,0.25);
}
@media (min-width: 700px) {
  .v2-gen-toast { right: 24px; left: auto; max-width: 420px; }
}

/* === Imagine presets badges === */
.v2-imagine-preset { position: relative; }
/* In Imagine carousel the preview should show the whole image/video (no cropping):
   admin uploads frames at various aspects, and cropping kills the intent. */
.v2-imagine-preset .media {
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
}
.v2-imagine-preset .media img,
.v2-imagine-preset .media video {
  object-fit: contain !important;
}
.v2-imagine-badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 999px;
  letter-spacing: 0.02em;
  background: var(--ink); color: var(--paper);
  pointer-events: none;
}
.v2-imagine-badge.badge-top { background: var(--tomato); color: #fff; }
.v2-imagine-badge.badge-popular { background: #b08436; color: #fff; }
.v2-imagine-badge.badge-new { background: #6b8e6b; color: #fff; }
.v2-imagine-custom-media {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
  border: 2px dashed var(--hairline);
}
.v2-imagine-video-mark {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  font-size: 14px; line-height: 1;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65); color: #fff;
  border-radius: 999px;
  pointer-events: none;
}

.v2-tryon-source {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 6px;
  padding: 6px 10px;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
}
.v2-tryon-source .src-label {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 12px;
  letter-spacing: 0.01em;
}
.v2-tryon-source img {
  width: 36px; height: 48px; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--hairline);
  background: #fff;
}
@media (min-width: 700px) {
  .v2-tryon-source img { width: 44px; height: 58px; }
  .v2-tryon-source .src-label { font-size: 13px; }
}
.v2-example-cell {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border: 1px solid var(--hairline); background: var(--paper-2);
}
.v2-example-cell img, .v2-example-cell video { width: 100%; height: 100%; object-fit: cover; }
.v2-example-cell .label {
  position: absolute; bottom: 6px; left: 6px;
  background: var(--paper); color: var(--ink);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 6px;
  border: 1px solid var(--ink);
}
@media (min-width: 900px) { .v2-example-cell .label { font-size: 10px; padding: 4px 8px; } }
.v2-example-cell .label.tomato {
  background: var(--tomato); color: var(--paper); border-color: var(--tomato);
}
.v2-example-caption {
  margin-top: 16px;
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-soft); text-align: center;
}
@media (min-width: 900px) { .v2-example-caption { font-size: 15px; margin-top: 20px; } }

/* ==========================================================================
   RESULT / PROCESSING / ERROR STATES
   ========================================================================== */
.v2-result {
  display: none;
  padding: 24px 16px;
  text-align: center;
}
.v2-result.show { display: block; }
.v2-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--hairline);
  border-top-color: var(--tomato);
  border-radius: 50%;
  animation: v2-spin 0.8s linear infinite;
  margin: 16px auto;
}
@keyframes v2-spin { to { transform: rotate(360deg); } }
.v2-progress {
  width: 100%; max-width: 360px; margin: 16px auto 0;
  height: 3px; background: var(--hairline-2);
}
.v2-progress > div {
  height: 100%; width: 0%;
  background: var(--tomato);
  transition: width 0.4s linear;
}
.v2-result-media {
  margin: 16px auto;
  max-width: 480px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 12px 12px 32px;
  position: relative;
}
.v2-result-media img, .v2-result-media video {
  width: 100%; display: block;
  border: 1px solid var(--hairline);
}
.v2-result-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
}

/* ==========================================================================
   GALLERY / CAROUSEL (postcard, dance)
   ========================================================================== */
.v2-gallery-wrap {
  position: relative;
}
.v2-gallery-wrap::after {
  /* Fade hint on right edge — implies more content off-screen */
  content: '';
  position: absolute; top: 0; right: 0; bottom: 12px;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--paper));
  pointer-events: none;
}
@media (min-width: 900px) { .v2-gallery-wrap::after { width: 60px; } }

.v2-gallery-strip {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x proximity;     /* let users see partial peek of next item */
  scroll-padding-left: 0;
  -webkit-overflow-scrolling: touch;
}
.v2-gallery-strip::-webkit-scrollbar { height: 4px; }
.v2-gallery-strip::-webkit-scrollbar-thumb { background: var(--hairline); }

.v2-gallery-item {
  position: relative;                   /* anchor for absolutely-positioned badges */
  flex: 0 0 auto;
  width: 140px;                        /* peek of 3rd item visible at ~360-414 viewports */
  scroll-snap-align: start;
  background: var(--paper);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.2s ease;
  padding: 8px 8px 12px;
  text-align: center;
  position: relative;
}
@media (min-width: 600px) { .v2-gallery-item { width: 170px; } }
@media (min-width: 900px) { .v2-gallery-item { width: 200px; padding: 10px 10px 14px; } }
.v2-gallery-item:hover { transform: translateY(-2px); }
.v2-gallery-item.selected { border-color: var(--tomato); }
.v2-gallery-item.selected .selected-mark { display: block; }

/* Sound toggle button (used above dance gallery) */
.v2-sound-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
@media (min-width: 700px) { .v2-sound-toggle { font-size: 12px; padding: 7px 16px; } }
.v2-sound-toggle:hover { border-color: var(--ink); color: var(--ink); }
.v2-sound-toggle.on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.v2-gallery-item .media {
  aspect-ratio: 3 / 4; background: var(--paper-2); overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 8px;
}
.v2-gallery-item .media img, .v2-gallery-item .media video { width: 100%; height: 100%; object-fit: cover; }
.v2-gallery-item .name {
  font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.2;
}
@media (min-width: 700px) { .v2-gallery-item .name { font-size: 16px; } }
.v2-gallery-item .selected-mark {
  display: none;
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: var(--tomato); color: var(--paper);
  border-radius: 50%; font-size: 13px; line-height: 22px; text-align: center;
}

/* ==========================================================================
   HISTORY LIST
   ========================================================================== */
.v2-history-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 700px) { .v2-history-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px; } }
@media (min-width: 1100px) { .v2-history-grid { grid-template-columns: repeat(4, 1fr); } }

.v2-history-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 8px 8px 12px;
  text-decoration: none; color: inherit;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v2-history-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.v2-history-media {
  aspect-ratio: 3 / 4; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--hairline);
  margin-bottom: 8px;
  position: relative;
}
.v2-history-media img, .v2-history-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.v2-history-media .play-mark {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(27,22,18,0.7); color: var(--paper);
  font-size: 9px; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 3px 6px;
}
.v2-history-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
@media (min-width: 700px) { .v2-history-meta { font-size: 11px; } }
.v2-history-type {
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  text-transform: none; letter-spacing: 0; font-size: 13px;
}
@media (min-width: 700px) { .v2-history-type { font-size: 14px; } }

/* Empty state */
.v2-empty {
  text-align: center; padding: 60px 24px;
  border: 1px dashed var(--hairline);
  background: var(--paper);
}
.v2-empty h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.v2-empty p { color: var(--ink-soft); margin-bottom: 20px; }

/* ==========================================================================
   PRICING TABLE (book-menu style)
   ========================================================================== */
.v2-price-table {
  max-width: 720px; margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.v2-price-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline-2);
  position: relative;
}
.v2-price-row .pkg {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 700px) { .v2-price-row .pkg { font-size: 28px; } }
.v2-price-row .gens {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.v2-price-row .price {
  font-family: var(--serif); font-style: italic;
  font-size: 24px; font-weight: 700; color: var(--tomato);
  white-space: nowrap;
}
@media (min-width: 700px) { .v2-price-row .price { font-size: 32px; } }
.v2-price-row.featured .price::before {
  content: 'Лучшее предложение'; display: block;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); font-style: normal;
  margin-bottom: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.v2-footer {
  border-top: 1px solid var(--hairline);
  padding: 28px 16px 36px;
  text-align: center;
  font-size: 11px; color: var(--ink-soft); line-height: 1.6;
}
@media (min-width: 900px) { .v2-footer { padding: 48px 24px 64px; font-size: 13px; } }
.v2-footer .brand { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 15px; font-weight: 700; }
.v2-footer .brand em { color: var(--tomato); font-style: italic; }
@media (min-width: 900px) { .v2-footer .brand { margin-bottom: 12px; font-size: 18px; } }
.v2-footer-links { display: flex; justify-content: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 12px; }
@media (min-width: 900px) { .v2-footer-links { gap: 24px; margin-top: 16px; } }
.v2-footer-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
@media (min-width: 900px) { .v2-footer-links a { font-size: 12px; } }
.v2-footer-links a:hover { border-bottom-color: var(--tomato); color: var(--tomato); }

/* ==========================================================================
   PAGE LAYOUT WRAPPER
   ========================================================================== */
.v2-page { position: relative; z-index: 1; }
.v2-container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .v2-container { padding: 0 24px; } }

/* Generic content card */
.v2-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 16px;
}
@media (min-width: 700px) { .v2-card { padding: 24px; } }

/* Trust strip */
.v2-trust { background: var(--paper-2); padding: 32px 16px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
@media (min-width: 900px) { .v2-trust { padding: 56px 24px; } }
.v2-trust-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 800px) { .v2-trust-inner { grid-template-columns: 1fr 1fr 1fr; gap: 48px; } }
.v2-trust-item h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
@media (min-width: 900px) { .v2-trust-item h3 { font-size: 22px; margin-bottom: 8px; } }
.v2-trust-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 900px) { .v2-trust-item p { font-size: 15px; line-height: 1.5; } }
.v2-trust-mark {
  display: inline-block;
  border: 1.5px solid var(--ink);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px; margin-bottom: 8px;
}
@media (min-width: 900px) { .v2-trust-mark { font-size: 11px; padding: 3px 8px; margin-bottom: 12px; } }

/* ==========================================================================
   ADMIN V2 — tabs / sidebar
   ========================================================================== */
.v2-admin-tabs {
  display: flex; gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.v2-admin-tabs::-webkit-scrollbar { height: 3px; }

.v2-admin-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--sans); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
@media (min-width: 700px) { .v2-admin-tab { padding: 12px 18px; font-size: 14px; } }
.v2-admin-tab:hover { color: var(--ink); }
.v2-admin-tab.active {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

.v2-admin-section { display: none; }
.v2-admin-section.active { display: block; }

/* Settings list */
.v2-settings-list { display: grid; gap: 0; }
.v2-setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-2);
}
.v2-setting-info .v2-setting-label {
  font-family: var(--serif); font-weight: 700;
  font-size: 16px;
}
.v2-setting-info .v2-setting-desc {
  font-size: 12px; color: var(--ink-soft); margin-top: 2px;
}
.v2-setting-info .overridden {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--brass); font-weight: 700;
}
.v2-setting-control { display: flex; align-items: center; gap: 8px; }
.v2-setting-control input[type=number] {
  width: 80px; text-align: right;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 6px 10px;
  font-family: var(--serif); font-style: italic; color: var(--tomato);
  font-size: 16px;
}
.v2-setting-control select {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); padding: 6px 10px;
  font-family: var(--sans); font-size: 13px;
}
.v2-setting-reset {
  background: transparent; border: 1px solid var(--hairline);
  color: var(--ink-soft); cursor: pointer;
  font-size: 12px; padding: 4px 8px; border-radius: var(--r-sm);
}
.v2-setting-reset:hover { border-color: var(--tomato); color: var(--tomato); }

/* Toggle */
.v2-toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
  cursor: pointer;
}
.v2-toggle input { opacity: 0; width: 0; height: 0; }
.v2-toggle .slider {
  position: absolute; inset: 0;
  background: var(--paper-3);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.v2-toggle .slider::before {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.v2-toggle input:checked + .slider { background: var(--tomato); }
.v2-toggle input:checked + .slider::before { transform: translateX(20px); }

/* Toast for admin actions */
.v2-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-size: 13px; font-weight: 500;
  border-radius: var(--r-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
}
.v2-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.v2-toast.error { background: var(--tomato); }

/* Modal overlay */
.v2-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(27,22,18,0.55);
  z-index: 9000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.v2-modal.show { display: flex; }
.v2-modal-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-card);
}
.v2-modal-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 14px; }

/* Auth modal */
.v2-auth-card { max-width: 420px; }
.v2-auth-card h3 { font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
.v2-auth-card h3 em { color: var(--tomato); font-style: italic; }
.v2-auth-sub { font-size: 13px; color: var(--ink-faint); margin: 0 0 18px; }
.v2-auth-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink-faint);
  padding: 4px 8px; border-radius: 50%;
}
.v2-auth-close:hover { color: var(--tomato); background: rgba(197,55,31,0.08); }
.v2-auth-tg { background: #229ED9; border-color: #229ED9; }
.v2-auth-tg:hover { background: #1c87bb; border-color: #1c87bb; }
.v2-auth-waiting {
  margin: 8px 0 0; font-size: 12px; color: var(--ink-faint);
  text-align: center; font-style: italic;
}
.v2-auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px; color: var(--ink-faint); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.v2-auth-divider::before, .v2-auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--hairline);
}
.v2-auth-field {
  display: block; width: 100%; padding: 11px 14px; margin-bottom: 8px;
  background: var(--paper-2); border: 1px solid var(--hairline);
  border-radius: var(--r-sm); font: 14px var(--sans); color: var(--ink);
  transition: border-color 0.15s;
}

/* Login / Signup tabs in auth modal */
.v2-auth-tabs {
  display: flex; gap: 4px;
  margin-bottom: 12px;
  padding: 3px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
}
.v2-auth-tab {
  flex: 1; padding: 8px 12px;
  background: transparent; border: 0;
  font: 13px var(--sans); font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.v2-auth-tab:hover { color: var(--ink); }
.v2-auth-tab.active {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.v2-auth-field:focus { outline: none; border-color: var(--tomato); }
.v2-auth-error {
  background: rgba(197,55,31,0.1); border: 1px solid var(--tomato);
  color: var(--tomato); padding: 10px 12px; border-radius: var(--r-sm);
  margin-bottom: 10px; font-size: 13px;
}
.v2-auth-footnote {
  margin: 14px 0 0; font-size: 11px; color: var(--ink-faint);
  line-height: 1.5; text-align: center;
}
