/* Elan yarat / redaktə — yeni görünüş (yeni görünüm/elan-yarat mockup-undan köçürülüb, 2026-11-29).
   YALNIZ pages/create.html və pages/edit.html yükləyir (body.cv2-page). Saytın başlığı bu səhifədə
   gizlidir — formanın öz başlığı var. Dəyişəndə mockup-u da yenilə və ya ondan yenidən qur. */
/* Rənglər canlı saytdan götürülüb (new_style.css :root və .hero gradient-i):
   marka eynidir, yalnız ətrafdakı işçilik dəyişib. */
body.cv2-page {
  --brand: #6D28D9;
  --brand-bright: #7C3AED;
  --brand-hover: #5B21B6;
  --brand-deep: #4C1D95;
  --brand-soft: #EDE9FE;
  --lilac: #F3E8FF;
  --periwinkle: #E0E7FF;
  --underline: #C4B5FD;

  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #5B6579;
  --page: #FBFAFE;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .9);
  --line: #E8E5F2;
  --line-brand: rgba(109, 40, 217, .16);
  --dot: rgba(109, 40, 217, .17);
  --shine: rgba(255, 255, 255, .85);

  --tile-l: .958;
  --tile-c: .03;
  --tile-hover-l: .93;
  --tile-glow: .86;
  --tile-glow-c: .075;

  --shadow-xs: 0 1px 2px rgba(30, 16, 80, .05);
  --shadow-sm: 0 1px 2px rgba(30, 16, 80, .05), 0 4px 14px -6px rgba(30, 16, 80, .1);
  --shadow-md: 0 2px 4px rgba(30, 16, 80, .04), 0 14px 32px -12px rgba(46, 16, 120, .2);
  --shadow-lg: 0 4px 8px rgba(30, 16, 80, .04), 0 28px 60px -20px rgba(46, 16, 120, .3);
  --shadow-brand: 0 8px 20px -8px rgba(109, 40, 217, .6);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  --font-head: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: .16s;
  --med: .28s;

  color-scheme: light;
}

body.cv2-page.dark-theme, html.dark-theme body.cv2-page {
  --brand: #A78BFA;
  --brand-bright: #8B5CF6;
  --brand-hover: #C4B5FD;
  --brand-deep: #4C1D95;
  --brand-soft: rgba(139, 92, 246, .16);
  --lilac: #241A45;
  --periwinkle: #1A1F45;
  --underline: #6D28D9;

  --ink: #F3F1FA;
  --ink-2: #B9B6CB;
  --ink-3: #A5A2BA;
  --page: #100E1A;
  --surface: #1A1727;
  --glass: rgba(30, 26, 46, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --line: #2C2840;
  --line-brand: rgba(167, 139, 250, .22);
  --dot: rgba(167, 139, 250, .16);
  --shine: rgba(255, 255, 255, .2);

  --tile-l: .262;
  --tile-c: .03;
  --tile-hover-l: .3;
  --tile-glow: .38;
  --tile-glow-c: .07;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px -6px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .7);
  --shadow-brand: 0 8px 20px -8px rgba(124, 58, 237, .7);

  color-scheme: dark;
}

/* Elan yarat — yeni görünüş. Tokenlər digər yeni görünüşlərlə eynidir (tokens.css).
   Düzən: masaüstündə forma + yapışqan sağ panel (önizləmə, bal, yoxlama siyahısı);
   900px-dən aşağı tək sütun + alt panel. */
body.cv2-page {
  --teal: #0D9488; --teal-s: #CCFBF1;
  --blue: #2563EB; --blue-s: #DBEAFE;
  --amber: #B45309; --amber-s: #FEF3C7;
  --green: #047857; --green-s: #D1FAE5;
  --red: #DC2626; --red-s: #FEE2E2;
  --hd-h: 64px;
  --field: #FFFFFF;
}
body.cv2-page.dark-theme, html.dark-theme body.cv2-page { --field: #141221; --green-s: rgba(16, 185, 129, .15); --red-s: rgba(239, 68, 68, .14); --teal-s: rgba(20, 184, 166, .15); --blue-s: rgba(59, 130, 246, .16); --amber-s: rgba(245, 158, 11, .14); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.only-m { display: none; }
@media (max-width: 899px) { .only-d { display: none; } .only-m { display: inline; } }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body.cv2-page { margin: 0; background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.cv2 h1, .cv2 h2, .cv2 h3, .cv2 p, .cv2 ul, .cv2 ol { margin: 0; padding: 0; }
.cv2 ul, .cv2 ol { list-style: none; }
.cv2 a { color: inherit; text-decoration: none; }
.cv2 img { display: block; max-width: 100%; }
:where(.cv2) button, :where(.cv2) input, :where(.cv2) select, :where(.cv2) textarea { font: inherit; color: inherit; }
:where(.cv2) button { background: none; border: 0; padding: 0; cursor: pointer; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv2 :focus { outline: none; }
.cv2 :focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
kbd { padding: 0 5px; border-radius: 5px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); font: 600 11.5px var(--font-body); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; border-radius: var(--r-sm); background: var(--brand-hover); color: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes glow { 0%, 100% { opacity: .55; transform: translate(-10%, -10%) scale(1); } 50% { opacity: .9; transform: translate(5%, 5%) scale(1.15); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); } 100% { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== Düymələr ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: background-color var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast) var(--ease), filter var(--fast), opacity var(--fast); }
.btn svg { font-size: 17px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sm { height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13.5px; }
.btn--sm svg { font-size: 15px; }
.btn--xl { height: 54px; border-radius: 14px; font-size: 16px; }
.btn--xl svg { font-size: 19px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, #7C3AED, #6D28D9); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--soft { background: var(--brand-soft); color: var(--brand); }
.btn--soft:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--line-brand); color: var(--brand); }
.btn.is-busy { pointer-events: none; }
.icb { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; color: var(--ink-2); font-size: 18px; transition: background-color var(--fast), color var(--fast); }
.icb:hover { background: var(--brand-soft); color: var(--brand); }
.icb--box { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--brand); font-size: 13.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg { font-size: 16px; }
.spin { width: 18px; height: 18px; flex: none; border: 2.5px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }

/* ===== Başlıq ===== */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd-h); background: color-mix(in srgb, var(--page) 86%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hd__in { display: flex; align-items: center; gap: 14px; max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 24px; }
.hd__logo img { width: auto; height: 30px; }
.hd__ttl { display: none; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.hd__draft { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 500; animation: rise .3s var(--ease); }
.hd__draft svg { font-size: 17px; color: var(--green); }
.hd__draft[hidden] + .icb, .hd__draft[hidden] ~ .icb { margin-left: auto; }
.hd__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.hd__bar i { display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #8B5CF6, #6D28D9); transition: width .5s var(--ease); }

/* ===== Giriş ===== */
.intro { padding: 32px 0 20px; }
.intro h1 { font-family: var(--font-head); font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.intro p { max-width: 620px; margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.intro b { color: var(--brand); font-weight: 600; }

.draft-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-brand), var(--shadow-sm); animation: rise .35s var(--ease); }
.draft-banner > svg { font-size: 22px; color: var(--brand); }
.draft-banner div { display: flex; flex-direction: column; margin-right: auto; font-size: 14px; }
.draft-banner span { color: var(--ink-3); font-size: 13px; }

.errsum { margin-bottom: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--red-s); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent); animation: rise .3s var(--ease); }
.errsum__h { display: flex; align-items: center; gap: 10px; color: var(--red); }
.errsum__h svg { font-size: 20px; }
.errsum h2 { font-size: 15.5px; font-weight: 700; }
.errsum ul { display: grid; gap: 4px; margin-top: 10px; padding-left: 30px; }
.errsum a { color: var(--red); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Düzən ===== */
.lay { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; padding-bottom: 72px; }
.form { display: grid; gap: 16px; min-width: 0; }

/* ===== Bölmə ===== */
.sec { padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); animation: rise .4s var(--ease) both; }
.sec:nth-child(2) { animation-delay: 40ms; } .sec:nth-child(3) { animation-delay: 80ms; } .sec:nth-child(4) { animation-delay: 120ms; }
.sec__h { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.sec__h h2 { font-family: var(--font-head); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sec__h p { margin-top: 2px; color: var(--ink-3); font-size: 13.5px; }
.sec__n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font: 700 15px var(--font-head); transition: background-color var(--med), color var(--med); }
.sec__ok { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-left: auto; border-radius: 50%; background: var(--page); color: transparent; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; transition: all var(--med) var(--ease); }
.sec.is-done .sec__ok { background: var(--green); color: #fff; box-shadow: none; transform: scale(1.05); }
.sec.is-done .sec__n { background: var(--green-s); color: var(--green); }
.sec.has-err { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--red) 55%, transparent), var(--shadow-xs); }

/* ===== Sahələr ===== */
.fld { display: grid; gap: 7px; margin-top: 18px; }
.fld:first-child, .sec__h + .fld { margin-top: 0; }
.fld__l { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.fld__l label, .fld__l .lbl { font-size: 14px; font-weight: 600; }
.req { color: var(--red); font-style: normal; }
.cnt { margin-left: auto; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.opt, .from { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.bonus { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--green-s); color: var(--green); font-size: 12px; font-weight: 700; }
.aitag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; animation: rise .3s var(--ease); }
.inp { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15.5px; transition: box-shadow var(--fast), background-color var(--fast); appearance: none; -webkit-appearance: none; }
.inp::placeholder { color: color-mix(in srgb, var(--ink-3) 75%, transparent); }
.inp:hover { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 30%, var(--line)); }
.inp:focus { box-shadow: inset 0 0 0 2px var(--brand-bright), 0 0 0 4px color-mix(in srgb, var(--brand-bright) 14%, transparent); }
.inp--ta { height: auto; min-height: 150px; padding: 13px 14px; line-height: 1.6; resize: vertical; }
.fld.is-err .inp, .fld.is-err .seg label span { box-shadow: inset 0 0 0 1.5px var(--red); }
.fld.is-ai .inp { background: color-mix(in srgb, var(--brand-soft) 45%, var(--field)); }
.fld.is-flash .inp { animation: flash .9s var(--ease); }
.hint { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.hint--err { display: flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.hint--err::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; }
.meter { height: 4px; overflow: hidden; border-radius: 4px; background: var(--line); }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: #F59E0B; transition: width var(--med) var(--ease), background-color var(--med); }
.meter i.is-good { background: #10B981; }
.inp-ic { position: relative; }
.inp-ic > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; pointer-events: none; }
.inp-ic .inp { padding-left: 42px; }
.sel { position: relative; }
.sel select { padding-right: 40px; cursor: pointer; }
.sel__ch { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 18px; pointer-events: none; }
.inp-ic.sel > svg:first-child { left: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.row2 .fld { margin-top: 0; }
.row2 + .row2, .row2 + .tg { margin-top: 18px; }

/* Seqment */
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; transition: all var(--fast); }
.seg label:hover span { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 35%, var(--line)); }
.seg input:checked + span { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-bright); }
.seg input:focus-visible + span { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.seg--lg span { flex-direction: column; align-items: flex-start; height: auto; padding: 12px 16px; text-align: left; }
.seg--lg b { font-size: 15px; }
.seg--lg small { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.seg--lg input:checked + span small { color: color-mix(in srgb, var(--brand) 75%, var(--ink-3)); }

/* Sürətli şablonlar */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quick > span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.quick button { height: 30px; padding: 0 11px; border-radius: 999px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 600; transition: all var(--fast); }
.quick button::before { content: "+ "; color: var(--brand); }
.quick button:hover { background: var(--brand-soft); color: var(--brand); box-shadow: none; }

/* ===== Şəkillər ===== */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--lilac) 75%, transparent), transparent 70%), var(--page); border: 2px dashed color-mix(in srgb, var(--brand) 30%, var(--line)); text-align: center; cursor: pointer; transition: border-color var(--fast), background-color var(--fast), transform var(--fast) var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--brand-bright); }
.drop.is-over { transform: scale(1.01); background-color: var(--brand-soft); }
.drop__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 18px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-size: 26px; box-shadow: var(--shadow-brand); }
.drop b { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.drop__d { color: var(--ink-2); font-size: 14px; }
.drop__m { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; }
.sec.has-photos .drop { flex-direction: row; justify-content: center; gap: 10px; padding: 14px; }
.sec.has-photos .drop__ic { width: 36px; height: 36px; margin: 0; border-radius: 11px; font-size: 18px; box-shadow: none; }
.sec.has-photos .drop__d, .sec.has-photos .drop__m { display: none; }
.sec.has-photos .drop b { font-size: 15px; }
.sec.has-photos [data-act="demo-photo"] { display: none; }
[data-act="demo-photo"] { margin-top: 8px; }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.thumbs:not(:empty) { margin-top: 14px; }
.th { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--page); box-shadow: 0 0 0 1px var(--line); cursor: grab; animation: rise .3s var(--ease) both; touch-action: none; }
.th img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--med) var(--ease); }
.th.is-main { box-shadow: 0 0 0 3px var(--brand-bright); }
/* sıranı sürükləyib dəyişmək (ad-form-v2.js: pointer drag) */
.th[data-i] { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.th.is-pressing { animation: none; transform: scale(.95); transition: transform .25s var(--ease); }
.th.is-ph { opacity: .35; box-shadow: inset 0 0 0 2px var(--brand-bright); animation: none; }
.th.is-ph > * { visibility: hidden; }
.th-ghost {
  position: fixed; z-index: 10000; margin: 0; pointer-events: none; animation: none;
  transform: scale(1.07) rotate(-2.5deg);
  box-shadow: 0 0 0 3px var(--brand-bright), 0 22px 44px -14px rgba(46, 16, 120, .6);
  transition: transform .18s var(--ease);
}
.th-ghost .th__bar, .th-ghost .th__n { display: none; }
body.th-dragging, body.th-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.th__main { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 7px; background: var(--brand-bright); color: #fff; font-size: 11px; font-weight: 700; }
.th__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 2px; padding: 6px; background: linear-gradient(transparent, rgba(10, 6, 30, .62)); opacity: 0; transition: opacity var(--fast); }
.th:hover .th__bar, .th:focus-within .th__bar { opacity: 1; }
.th__bar button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 15px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.th__bar button:hover { background: rgba(255, 255, 255, .34); }
.th__bar [data-act="del"]:hover { background: var(--red); }
.th__n { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; background: rgba(10, 6, 30, .55); color: #fff; font-size: 11.5px; font-weight: 700; }
.th--add { display: grid; place-items: center; align-content: center; gap: 4px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line); border: 0; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; }
.th--add svg { font-size: 22px; }
.th--add:hover { background: var(--brand-soft); }
.thumbs-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; }

/* ===== AI kartı ===== */
.ai { position: relative; isolation: isolate; overflow: hidden; margin-top: 16px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, #4C1D95, #6D28D9 55%, #7C3AED); color: #fff; box-shadow: 0 18px 40px -22px rgba(76, 29, 149, .9); transition: opacity var(--med), filter var(--med); }
.ai__glow { position: absolute; inset: -40%; z-index: -1; background: radial-gradient(circle at 30% 30%, rgba(196, 181, 253, .55), transparent 45%), radial-gradient(circle at 75% 70%, rgba(236, 72, 153, .35), transparent 40%); animation: glow 7s ease-in-out infinite; }
.ai[data-state="locked"] { filter: saturate(.35); opacity: .7; }
.ai[data-state="locked"] .btn--ai { pointer-events: none; }
.ai__top { display: flex; align-items: center; gap: 14px; }
.ai__logo { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.ai__logo img { width: 28px; height: 28px; }
.ai__txt { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.ai__txt b { font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.ai__txt span { color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.btn--ai { height: 46px; padding: 0 20px; background: #fff; color: #5B21B6; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.btn--ai:hover { filter: none; background: #F5F3FF; }
.btn--ai svg { font-size: 18px; }
.ai[data-state="busy"] .btn--ai, .ai[data-state="done"] .btn--ai { display: none; }
.ai__steps { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ai__steps li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .55); font-size: 14px; transition: color var(--med); }
.ai__steps li i { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); font-size: 12px; font-style: normal; }
.ai__steps li.is-on { color: #fff; }
.ai__steps li.is-on i { border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; box-shadow: none; animation: spin .8s linear infinite; }
.ai__steps li.is-ok { color: rgba(255, 255, 255, .92); }
.ai__steps li.is-ok i { background: #fff; color: #6D28D9; box-shadow: none; }
.ai__done { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ai__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.ai__chips span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12.5px; font-weight: 600; }
.ai__chips span svg { font-size: 13px; }
.ai .btn--ghost { flex: none; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ai .btn--ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ===== Kateqoriya ===== */
.cat-search { margin-bottom: 14px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: all var(--fast) var(--ease); }
.cat:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--line-brand); transform: translateY(-2px); }
.cat img { width: 56px; height: 56px; object-fit: contain; }
.cat span { font-size: 13px; font-weight: 600; line-height: 1.25; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.crumb img { width: 36px; height: 36px; object-fit: contain; }
.crumb b { font-size: 14.5px; }
.crumb > svg { color: var(--ink-3); font-size: 14px; }
.crumb .link-btn { margin-left: auto; }
.lvl { margin-top: 14px; }
.lvl__t { margin-bottom: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 6px; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13.5px; font-weight: 600; transition: all var(--fast); }
.chip img { width: 30px; height: 30px; object-fit: contain; border-radius: 8px; }
.chip--txt { padding-left: 14px; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--line-brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-bright); }
.sres { display: grid; gap: 4px; margin-top: 8px; }
.sres button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 14px; }
.sres button:hover { background: var(--brand-soft); }
.sres small { color: var(--ink-3); font-size: 12.5px; }
.sres mark { background: none; color: var(--brand); font-weight: 700; }
.sres__none { padding: 10px 2px; color: var(--ink-3); font-size: 13.5px; }

/* Atributlar */
.attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.attrs__h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.attrs__h small { margin-left: auto; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.attrs .fld { margin: 0; }
.attrs .tg { grid-column: span 1; margin: 0; align-self: end; }

/* Toggle sətirləri */
.tgs { display: grid; gap: 10px; }
.tg { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow var(--fast), background-color var(--fast); }
.tg:hover { box-shadow: inset 0 0 0 1.5px var(--line-brand); }
.tg:has(input:checked) { background: color-mix(in srgb, var(--brand-soft) 55%, var(--page)); box-shadow: inset 0 0 0 1.5px var(--line-brand); }
.tg__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 19px; }
.tg__ic--teal { background: var(--teal-s); color: var(--teal); }
.tg__ic--blue { background: var(--blue-s); color: var(--blue); }
.tg__ic--amber { background: var(--amber-s); color: var(--amber); }
.tg__t { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.tg__t b { font-size: 14.5px; font-weight: 600; }
.tg__t small { color: var(--ink-3); font-size: 13px; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: color-mix(in srgb, var(--ink-3) 35%, var(--line)); transition: background-color var(--fast); }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform var(--med) var(--ease); }
.tg input:checked ~ .sw { background: var(--brand-bright); }
.tg input:checked ~ .sw::after { transform: translateX(18px); }
.tg input:focus-visible ~ .sw { outline: 3px solid var(--brand-bright); outline-offset: 2px; }
.attrs .tg { padding: 10px 12px; background: var(--surface); }
.fld--sub { margin: 0 0 0 18px; padding: 4px 0 6px 16px; border-left: 2px solid var(--line-brand); }
#s-contact .tg { margin-top: 18px; }

/* ===== Qiymət ===== */
.price { display: flex; gap: 10px; }
.price__in { height: 56px; font: 700 24px var(--font-head); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.seg--cur { flex: none; }
.seg--cur span { height: 56px; padding: 0 16px; white-space: nowrap; }
.ps { margin-top: 16px; }
.ps__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--lilac) 85%, var(--surface)), color-mix(in srgb, var(--periwinkle) 70%, var(--surface))); box-shadow: inset 0 0 0 1px var(--line-brand); text-align: left; transition: transform var(--fast) var(--ease), box-shadow var(--fast); animation: rise .35s var(--ease); }
.ps__btn:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--brand-bright), var(--shadow-sm); }
.ps__ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--brand-bright); color: #fff; font-size: 19px; }
.ps__btn > span:nth-child(2) { display: flex; flex-direction: column; margin-right: auto; }
.ps__btn b { font-size: 15px; color: var(--brand); }
.ps__btn small { color: var(--ink-2); font-size: 13px; }
.ps__go { color: var(--brand); font-size: 20px; }
.ps__off { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.ps__off svg { font-size: 16px; }
.ps__load { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; }
.ps__nudge { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--amber-s); color: var(--amber); font-size: 13.5px; }
.ps__nudge > svg { margin-top: 2px; font-size: 18px; }
.ps__nudge p { color: var(--ink); }
.ps__nudge .link-btn { color: var(--amber); }
.ps__res { padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--lilac) 80%, var(--surface)), var(--surface)); box-shadow: inset 0 0 0 1px var(--line-brand); animation: rise .35s var(--ease); }
.ps__rh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ps__spec { display: inline-flex; align-items: center; gap: 4px; color: var(--green); text-transform: none; letter-spacing: 0; }
.ps__range { display: block; margin-top: 4px; font: 800 26px var(--font-head); letter-spacing: -.02em; color: var(--brand); }
.ps__scale { position: relative; height: 10px; margin: 14px 0 6px; border-radius: 10px; background: var(--line); }
.ps__band { position: absolute; left: 20%; right: 20%; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #A78BFA, #6D28D9); }
.ps__you { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #F59E0B, 0 2px 6px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); transition: left var(--med) var(--ease); }
.ps__you span { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: #F59E0B; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; white-space: nowrap; }
.ps__ends { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ps__note { margin: 10px 0 12px; color: var(--ink-2); font-size: 13.5px; }

/* ===== Təqdim ===== */
.submit-inline { display: none; }
.legal { margin-top: 10px; color: var(--ink-3); font-size: 12.5px; text-align: center; }
.legal a { color: var(--brand); font-weight: 600; }

/* ===== Sağ panel ===== */
.side { position: sticky; top: calc(var(--hd-h) + 20px); }
.side__in { display: grid; gap: 14px; }
.pv, .qs, .chk { padding: 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.pv__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pv__h b { font-size: 14px; }
.pv__h span { color: var(--ink-3); font-size: 12px; }
.pv__card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }

/* Ana səhifə kartı (new_style.css .listing-card) nüsxəsi */
.lc { overflow: hidden; border: 1.5px solid #E2E8F0; border-radius: 14px; background: var(--surface); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.dark-theme .lc { border-color: #334155; }
.lc__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--page); }
.lc__img img { width: 100%; height: 100%; object-fit: cover; }
.lc__ph { display: grid; place-items: center; height: 100%; color: color-mix(in srgb, var(--ink-3) 60%, transparent); font-size: 30px; }
.lc__fav { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #64748B; font-size: 13px; }
.lc__b { padding: 6px 10px 8px; }
.lc__pr { color: #6D28D9; font-size: 15px; font-weight: 700; }
.dark-theme .lc__pr { color: #A78BFA; }
.lc__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.4em; margin: 2px 0 6px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.lc__t.is-empty, .lc__pr.is-empty { color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.lc__m { display: flex; justify-content: space-between; gap: 4px; color: #64748B; font-size: 10.5px; white-space: nowrap; }
.lc__m span { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pv__meta { display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.pv__meta span { display: flex; align-items: center; gap: 6px; }
.pv__meta svg { flex: none; color: var(--brand); font-size: 14px; }
.pv__meta .is-off { color: var(--ink-3); }
.pv__meta .is-off svg { color: var(--ink-3); }

/* Bal halqası */
.qs__top { display: flex; align-items: center; gap: 14px; }
.qs__top > div:last-child { display: flex; flex-direction: column; }
.qs__lv { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.qs__top span { color: var(--ink-3); font-size: 12.5px; }
.ring { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; --c: #F59E0B; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 4.5; }
.ring .ring__v { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .6s var(--ease), stroke var(--med); }
.ring b { font: 800 19px var(--font-head); font-variant-numeric: tabular-nums; }
.ring.is-mid { --c: #8B5CF6; }
.ring.is-good { --c: #10B981; }
.ring--sm { width: 42px; height: 42px; }
.ring--sm b { font-size: 13px; }
.qs__tips { display: grid; gap: 8px; margin-top: 14px; }
.qs__tips li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.qs__tips li::before { content: ""; width: 6px; height: 6px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--brand-bright); }
.qs__tips li.is-all { color: var(--green); font-weight: 600; }
.qs__tips li.is-all::before { background: var(--green); }

/* Yoxlama siyahısı */
.chk { padding: 8px; }
.chk li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color var(--fast); }
.chk li a:hover { background: var(--page); }
.chk li i { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; font-size: 13px; font-style: normal; }
.chk li.is-done a { color: var(--ink); }
.chk li.is-done i { background: var(--green); box-shadow: none; color: #fff; }
.chk li.is-err i { background: var(--red); box-shadow: none; color: #fff; }
.chk li small { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.side__go { margin-top: 2px; }

/* ===== Mobil alt panel + vərəqlər ===== */
.mbar { display: none; }
.sheet, .done { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
.sheet::backdrop, .done::backdrop { background: rgba(15, 10, 40, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 520px; margin: auto auto 0; border-radius: 24px 24px 0 0; max-height: 88vh; }
.sheet[open] { animation: rise .3s var(--ease); }
.sheet__h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; font-size: 16px; }
.sheet__b { display: grid; gap: 14px; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet__b .pv, .sheet__b .qs { box-shadow: 0 0 0 1px var(--line); }

/* Uğur ekranı */
.done { margin: auto; /* saytın ümumi sıfırlaması (margin:0) dialoqu yuxarı-sola yapışdırırdı */ width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 28px 24px 22px; border-radius: 28px; text-align: center; }
.done[open] { animation: rise .4s var(--ease); }
.done__art { display: grid; place-items: center; margin-bottom: 14px; }
.done__art span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, #34D399, #059669); color: #fff; font-size: 36px; box-shadow: 0 0 0 10px var(--green-s), 0 16px 30px -12px rgba(5, 150, 105, .7); }
.done__art svg { stroke-width: 3; }
.done h2 { font-family: var(--font-head); font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.done > p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.done__card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin: 18px 0 14px; text-align: left; }
.done__card .pv__meta { display: flex; }
.done__tl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 18px; }
.done__tl li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; }
.done__tl li::before { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.done__tl li:first-child::before { display: none; }
.done__tl i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.done__tl li.is-on i { background: var(--green); box-shadow: 0 0 0 4px var(--green-s); }
.done__tl span { display: flex; flex-direction: column; }
.done__tl small { color: var(--ink-3); }
.done__up { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--lilac) 85%, var(--surface)), color-mix(in srgb, var(--periwinkle) 70%, var(--surface))); text-align: left; }
.done__upic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-bright); color: #fff; font-size: 18px; }
.done__up > span:nth-child(2) { display: flex; flex-direction: column; margin-right: auto; font-size: 13px; color: var(--ink-2); }
.done__up b { color: var(--ink); font-size: 14px; }
.done__act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

.ctoast { position: fixed; left: 50%; bottom: 28px; z-index: 300; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: #1E1633; color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity var(--med), transform var(--med) var(--ease); }
.ctoast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ctoast.is-err { background: var(--red); }

/* ===== Planşet ===== */
@media (max-width: 1099px) {
  .lay { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .pv__card { grid-template-columns: 1fr; }
  .pv__meta { display: none; }
}

/* ===== Mobil ===== */
@media (max-width: 899px) {
  body.cv2-page { --hd-h: 56px; }
  .wrap { padding: 0 14px; }
  .hd__in { padding: 0 12px; gap: 10px; }
  .hd__logo { display: none; }
  .hd__ttl { display: block; }
  .hd__draft span { display: none; }
  .intro { padding: 18px 2px 14px; }
  .intro h1 { font-size: 24px; }
  .intro p { font-size: 14px; }
  .lay { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .form { gap: 12px; }
  .sec { padding: 18px 16px; border-radius: 22px; }
  .sec__h { gap: 12px; margin-bottom: 16px; }
  .sec__h h2 { font-size: 17.5px; }
  .sec__h p { font-size: 13px; }
  .drop { padding: 24px 16px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .th__bar { opacity: 1; padding: 4px; }
  .th__bar button { width: 28px; height: 28px; font-size: 14px; }
  .ai { padding: 16px; }
  .ai__top { flex-wrap: wrap; }
  .ai__txt { width: calc(100% - 60px); margin: 0; }
  .btn--ai { width: 100%; }
  .ai__done { flex-direction: column; align-items: stretch; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cat { padding: 12px 6px 10px; }
  .cat img { width: 46px; height: 46px; }
  .cat span { font-size: 12px; }
  .attrs { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .row2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .seg--cur span { padding: 0 12px; }
  .price__in { font-size: 21px; }
  .submit-inline { display: block; margin-top: 4px; }
  .fld--sub { margin-left: 8px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line), 0 -12px 30px -22px rgba(46, 16, 120, .5); }
  .mbar__score { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-align: left; }
  .mbar__score > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
  .mbar__score small { color: var(--ink-3); font-size: 12px; }
  .mbar .btn { height: 48px; padding: 0 22px; border-radius: 14px; }
  .ctoast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .done { padding: 24px 18px 18px; }
  .done__card { grid-template-columns: 96px minmax(0, 1fr); }
  .done__act { grid-template-columns: 1fr; }
}
@media (max-width: 899px) { .attrs__h small { display: none; } .seg--lg span { padding: 10px 12px; } }
@media (max-width: 340px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg--lg { flex-direction: column; }
}

/* ===== Mobil: tək səhifə forma + köməkçilər (≤899px) ===== */
.jump { display: none; }
@media (max-width: 899px) {
  .hd { height: auto; }
  .hd__in { height: var(--hd-h); }
  html { scroll-padding-top: 112px; }

  /* Bölmə zolağı: hər bölmə bir çip — tamam ✓, hazırkı vurğulu, toxun → keç */
  .jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 12px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .jump::-webkit-scrollbar { display: none; }
  .jump button { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; scroll-snap-align: center; transition: background-color var(--fast), color var(--fast), box-shadow var(--fast); }
  .jump button svg { font-size: 14px; }
  .jump button.is-done { color: var(--green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); }
  .jump button.is-cur { background: var(--brand); color: #fff; box-shadow: none; }
  .jump button.is-err:not(.is-cur) { color: var(--red); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 45%, transparent); }

  /* Giriş qısa: zolaq artıq yol göstərir */
  .intro { padding: 14px 2px 10px; }
  .intro h1 { font-size: 22px; }

  /* Şəkil əlavə olunanda böyük sahə gizlənir — şəbəkədəki «+» qalır */
  .sec.has-photos .drop { display: none; }
  .ai[data-state="locked"] { display: none; }

  /* Toxunuş üçün: 16px (iOS zoom etmir), hündür sahələr */
  .inp { min-height: 50px; font-size: 16px; }
  .inp--ta { font-size: 16px; }
  .quick { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: none; }

  /* Əlavə seçimlər — yığcam siyahı */
  #s-extra .tgs { gap: 0; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
  #s-extra .tg { min-height: 56px; padding: 8px 14px; border-radius: 0; background: none; box-shadow: none; }
  #s-extra .tg + .tg, #s-extra .fld--sub + .tg { border-top: 1px solid var(--line); }
  #s-extra .tg small { display: none; }
  #s-extra .fld--sub { margin: 0; padding: 4px 14px 14px; }

  /* Altdakı düymə: «Növbəti: Qiymət ↓» → hamısı tamamdırsa «Elanı yerləşdir» */
  .mbar__go { flex: 1; max-width: 230px; }
  .mbar__go svg { order: -1; }
  .mbar__go.is-next { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
  .mbar__go.is-next svg { order: 2; }
  .mbar__go span { overflow: hidden; text-overflow: ellipsis; }
}

/* Uğur pəncərəsi: dialoqun öz fokus halqası yox; kart üfüqi, detallar altında */
.done:focus, .done:focus-visible, .sheet:focus, .sheet:focus-visible { outline: none; }
.done .done__card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 18px; background: var(--page); }
.done .done__card .lc { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: stretch; }
.done .done__card .lc__img { aspect-ratio: auto; min-height: 92px; height: 100%; }
.done .done__card .lc__b { display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; }
.done .done__card .lc__t { min-height: 0; font-size: 13px; }
.done .done__card .lc__m { justify-content: flex-start; gap: 10px; }
.done .done__card .pv__meta { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; padding: 0 4px; }
@media (max-width: 899px) { .done { padding: 22px 16px 16px; } .done h2 { font-size: 21px; } }
.form { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .mbar__score small { white-space: nowrap; } }

/* ===== Mobil sadələşdirmə (2-ci tur): daha az mətn, hazır olanlar yığılır ===== */
.csum, .xsum { display: none; }
@media (max-width: 899px) {
  /* İzah mətnləri yox — başlıq kifayətdir; nömrələri zolaq göstərir */
  .intro p, .sec__h p, .sec__n { display: none; }
  .intro { padding: 12px 2px 8px; }
  .sec__h { align-items: center; margin-bottom: 14px; }
  .sec { padding: 16px 14px; }
  #titleHint, #descHint, .meter, .drop__m, .psOff, #psOff, .quick > span { display: none; }
  .seg--lg small { display: none; }
  .seg--lg { flex-direction: row; }
  .drop { padding: 20px 14px; }

  /* Əlaqə: profildən hazırdır — bir kart, «Dəyiş» ilə açılır */
  #s-contact.is-sum .csum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 14px; border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
  #s-contact.is-sum .csum span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14.5px; }
  #s-contact.is-sum .csum svg { color: var(--ink-3); font-size: 16px; }
  #s-contact.is-sum .csum small { padding: 1px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; }
  #s-contact.is-sum .csum .link-btn { min-height: 44px; margin-left: auto; }
  #s-contact.is-sum .row2 { display: none; }
  #s-contact.is-sum > .tg { margin-top: 10px; }

  /* Əlavə seçimlər: bir sətir, toxunanda açılır */
  #s-extra .sec__h { display: none; }
  #s-extra { padding: 6px 14px; }
  .xsum { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; text-align: left; }
  .xsum span { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
  .xsum b { font: 700 16px var(--font-head); }
  .xsum small { overflow: hidden; color: var(--ink-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .has-on .xsum small { color: var(--brand); font-weight: 600; }
  .xsum > svg { color: var(--ink-3); font-size: 20px; transition: transform var(--med) var(--ease); }
  #s-extra.is-open .xsum > svg { transform: rotate(180deg); }
  #s-extra:not(.is-open) .tgs { display: none; }
  #s-extra.is-open .tgs { margin: 4px 0 10px; }
}
@media (max-width: 899px) {
  #s-contact.is-sum .csum { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  #s-contact.is-sum .csum .link-btn { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  #hideHint { display: none; }
}
@media (max-width: 899px) {
  /* Qaralama: bir sətir */
  .draft-banner { gap: 8px; padding: 8px 8px 8px 12px; }
  .draft-banner #draftWhen { display: none; }
  .draft-banner div { font-size: 14px; }
  /* «Qiymət» başlığı bölmə adında var — sahə etiketi yalnız ekran oxuyucu üçün */
  [data-f="price"] > .fld__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ===== Brauzer uyğunluğu ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, a, label, .chip, .cat { -webkit-tap-highlight-color: transparent; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
/* iOS: vh ünvan zolağını nəzərə almır */
.sheet { max-height: 88dvh; }
.done { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.sheet__b { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Dialoq açıqkən arxa fon sürüşməsin (iOS Safari) */
html:has(dialog[open]), html.dlg-open { overflow: hidden; }
/* <dialog> dəstəyi olmayan köhnə Safari: sadə örtük */
html.dlg-open dialog[open] { position: fixed; inset: 0; z-index: 100; margin: auto; box-shadow: 0 0 0 100vmax rgba(15, 10, 40, .5); }
/* Toxunuş ekranları (iPad daxil): 16px — Safari fokusda zoom etməsin */
@media (pointer: coarse) { .inp, .inp--ta, select.inp { font-size: 16px; } }
/* Klaviatura açıqkən alt panel gizlənir */
@media (max-width: 899px) { body.kb-open .mbar { transform: translateY(110%); } .mbar { transition: transform .2s var(--ease); } }
/* Windows: üfüqi sürüşən siyahılarda incə scrollbar */
.chips, .sres { scrollbar-width: thin; }
/* color-mix() olmayan köhnə brauzerlər (Safari < 16.2, Chrome < 111): əsas fonlar boş qalmasın */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .hd { background: var(--page); }
  .mbar { background: var(--surface); }
  .tg:has(input:checked) { background: var(--brand-soft); }
  .btn--soft:hover { background: var(--brand-soft); }
  .drop { background: var(--page); border-color: var(--line); }
  .ai, .done__art { background: var(--lilac, var(--brand-soft)); }
}
/* Windows yüksək kontrast rejimi: seçilmiş vəziyyətlər görünsün */
@media (forced-colors: active) {
  .jump button.is-cur, .chip[aria-pressed="true"], .seg input:checked + span { outline: 2px solid CanvasText; }
  .sw { border: 1px solid CanvasText; }
}
/* ===== Responsiv dəqiqləşdirmə ===== */
@media (max-width: 360px) { .mbar__score small { display: none; } .mbar__go { font-size: 15px; padding: 0 14px; } }
/* Planşet (600–899px): forma mərkəzdə, rahat oxunan en; alt panel də eyni endə */
@media (min-width: 600px) and (max-width: 899px) {
  .intro, .draft-banner, .errsum, .lay { max-width: 640px; margin-left: auto; margin-right: auto; }
  .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mbar { padding-left: max(14px, calc(50% - 320px)); padding-right: max(14px, calc(50% - 320px)); }
  .jump { justify-content: center; }
}

/* ===== Kamera / Qalereya seçimi ===== */
.on-touch { display: none !important; }
@media (hover: none) and (pointer: coarse) { .on-touch { display: inline-flex !important; } span.on-touch { display: inline !important; } .on-mouse { display: none !important; } }
.drop__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.drop__act .btn { min-width: 140px; height: 48px; border-radius: 14px; cursor: pointer; }
.drop__act .btn svg { font-size: 19px; }
.drop:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 3px; }
.sec.has-photos .drop__act { margin: 0 0 0 auto; }
.sec.has-photos .drop__act .btn { min-width: 0; height: 38px; padding: 0 14px; font-size: 13.5px; }
@media (hover: none) and (pointer: coarse) {
  .drop__act { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; }
  .drop__act .btn { min-width: 0; height: 52px; font-size: 15.5px; }
}
.th--add svg { font-size: 22px; }

/* ===== Canlı sayt inteqrasiyası ===== */
body.cv2-page > .header, body.cv2-page .header, body.cv2-page .footer, body.cv2-page .mobile-bottom-nav { display: none !important; }
body.cv2-page #main-content { display: block; }
.cv2 .btn { border: 0; text-decoration: none; }
.cv2 .btn--primary, .cv2 .btn--primary:hover { color: #fff; }
/* "Növbəti: …" açıq fonlu düymədir — yuxarıdakı ağ rəng onu oxunmaz edirdi (ağ mətn açıq bənövşəyi fonda) */
.cv2 .mbar__go.is-next, .cv2 .mbar__go.is-next:hover { color: var(--brand); }
.cv2 .hd__logo img { height: 30px; width: auto; }
.cv2 .psErr { margin-top: 8px; color: var(--red); font-size: 13px; }
