/* =========================================================================
   Service app — Nocturne shell per the design (Dubai Concierge.dc.html).
   Loaded after styles.css on app.html and admin.html only; everything here
   builds on the tokens defined in styles.css :root.
   ========================================================================= */

/* ---------- Themes ----------
   The design ships three looks switched from the header. They are token
   overrides only — no component below knows which theme is on. */
[data-theme="light"] {
  --bg: #eff0f4; --bg-alt: #e9eaef; --surface: #fafafc; --surface-2: #e4e5ea;
  --line: rgba(27, 29, 39, 0.14); --line-strong: rgba(27, 29, 39, 0.26);
  --text: #1b1d27; --text-dim: #5d6070; --text-faint: #6f7383;
  --accent: #796cbf; --accent-bright: #5d5294;
  --accent-dim: color-mix(in srgb, #796cbf 14%, transparent);
  --accent-200: #423a6a; --accent-300: #5d5294; --accent-500: #968ae0;
  --accent-600: #b5abfc; --accent-700: #d8d3fe; --accent-800: #ecebfe;
  --accent-900: #f4f3ff;
}
[data-theme="gold"] {
  --bg: #14120c; --bg-alt: #17150e; --surface: #201c14; --surface-2: #2a2517;
  --line: rgba(241, 236, 224, 0.16); --line-strong: rgba(241, 236, 224, 0.28);
  --text: #f1ece0; --text-dim: #a1977f; --text-faint: #857c67;
  --accent: #cda349; --accent-bright: #d3b165;
  --accent-dim: color-mix(in srgb, #cda349 14%, transparent);
  --accent-200: #f2e3bb; --accent-300: #e3ca8e; --accent-500: #bd9440;
  --accent-600: #9a7630; --accent-700: #745821; --accent-800: #4d3a15;
  --accent-900: #2e220c;
  --band: #3b2d10; --band-glow: #55401a;
}

/* ---------- Motion ---------- */
@keyframes dcUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dcDot  { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .4; } }
@keyframes dcSweep { from { transform: translateX(-120%); } to { transform: translateX(220%); } }

/* ---------- Shell ---------- */
.dc {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 520px at 12% -10%, var(--accent-900) 0%, transparent 62%),
    var(--bg);
  font-size: 15px; line-height: 1.55;
}
.dc-main { flex: 1; animation: dcUp .45s var(--ease) both; }
.dc-wrap { max-width: 1220px; margin: 0 auto; padding: 0 28px; width: 100%; }
.dc-screen { padding: 42px 0 96px; }

@media (max-width: 640px) {
  .dc-wrap { padding: 0 18px; }
  .dc-screen { padding: 26px 0 72px; }
}

/* ---------- Header ---------- */
.dc-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.dc-head__in {
  max-width: 1220px; margin: 0 auto; padding: 12px 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
}
.dc-logo {
  display: flex; align-items: center; gap: 11px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left; text-decoration: none;
}
.dc-logo svg { width: 36px; height: 36px; flex: none; }
/* фирменный полумесяц мягко «дышит» свечением (в админке svg — сосед лого) */
.dc-logo > svg, .dc-head__in > svg {
  animation: dc-moon-glow 4.5s ease-in-out infinite;
}
@keyframes dc-moon-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(145, 132, 217, .35)); }
  50%      { filter: drop-shadow(0 0 12px rgba(179, 168, 236, .8)); }
}
@media (prefers-reduced-motion: reduce) {
  .dc-logo > svg, .dc-head__in > svg { animation: none; filter: drop-shadow(0 0 6px rgba(145, 132, 217, .5)); }
}
.dc-logo b { display: block; font-weight: 500; font-size: 14.5px; letter-spacing: .01em; white-space: nowrap; }
.dc-logo small {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap;
}

.dc-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.dc-tab {
  border: 1px solid transparent; background: transparent; color: var(--text-dim);
  font: inherit; font-size: 13.5px; padding: 7px 13px; border-radius: var(--radius);
  cursor: pointer; white-space: nowrap; transition: color .18s, background .18s;
}
.dc-tab:hover { background: var(--surface-2); color: var(--text); }
.dc-tab.is-on {
  border-color: var(--accent-700); background: var(--accent-900); color: var(--accent-200);
}

.dc-head__side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-left: auto; }
.dc-live {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-dim); white-space: nowrap;
}
.dc-dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent-bright); animation: dcDot 2.4s ease-in-out infinite;
}

.dc-lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.dc-lang button {
  min-width: 30px; height: 28px; padding: 0 7px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--text-faint);
  font: inherit; font-size: 11px; font-weight: 500; letter-spacing: .06em;
  cursor: pointer; transition: color .18s;
}
.dc-lang button:hover { color: var(--text); }
.dc-lang button.is-on { border-color: var(--accent-600); background: var(--accent-900); color: var(--accent-200); }

.dc-theme {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.dc-theme button {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text-faint); display: grid; place-items: center;
  cursor: pointer; padding: 0; transition: color .18s;
}
.dc-theme button:hover { color: var(--text); }
.dc-theme button.is-on { border-color: var(--accent-600); background: var(--accent-900); color: var(--accent-200); }
.dc-theme svg { width: 15px; height: 15px; }

/* Buttons — Nocturne: outlined, never filled */
.dc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 500; line-height: 1.2;
  padding: 9px 15px; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  background: transparent; border: 1px solid var(--accent-600); color: var(--accent-200);
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.dc-btn:hover  { background: var(--accent-900); border-color: var(--accent-500); }
.dc-btn:active { background: var(--accent-800); }
.dc-btn svg { width: 16px; height: 16px; flex: none; }
.dc-btn--sec { border-color: var(--line-strong); color: var(--text); }
.dc-btn--sec:hover  { background: color-mix(in srgb, var(--text) 7%, transparent); border-color: var(--line-strong); }
.dc-btn--sec:active { background: color-mix(in srgb, var(--text) 14%, transparent); }
.dc-btn--ghost { border-color: transparent; color: var(--accent-300); padding-inline: 8px; }
.dc-btn--ghost:hover  { background: var(--accent-dim); }
.dc-btn--icon { width: 36px; height: 36px; padding: 0; border-color: var(--line-strong); color: var(--text-dim); }
.dc-btn--icon:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.dc-btn--block { width: 100%; }
.dc-btn--lg { font-size: 14.5px; padding: 11px 19px; }

/* корзина не пуста — кнопка «Заявка» просится в глаза */
.dc-btn.is-full { border-color: var(--accent-bright); background: var(--accent-900); }
.dc-btn.is-full .dc-count { background: var(--accent-bright); color: var(--accent-900); }

.dc-count {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-700); color: var(--accent-200);
  font-size: 11.5px; font-weight: 500; display: grid; place-items: center;
}

@media (max-width: 900px) {
  .dc-head__in { padding: 10px 14px; flex-wrap: nowrap; gap: 10px; }
  .dc-live, .dc-logo small { display: none; }
  .dc-tabs, .dc-head .dc-lang, .dc-head .dc-theme, .dc-head__side .dc-btn--ghost { display: none; }
  /* бургер — первый элемент шапки, в левом углу; лого сразу за ним,
     «Заявка» прижата вправо: ничего не переносится и не центрируется */
  .dc-head__in .dc-burger { display: inline-flex; } /* специфичнее дефолтного display:none ниже */
  .dc-head__side { margin-inline-start: auto; flex: none; }
  .dc-logo svg { width: 30px; height: 30px; }
  .dc-logo b { font-size: 13.5px; white-space: nowrap; }
}

.dc-burger { display: none; }

/* Burger drawer + chat sheet (mobile) */
.dc-veil { position: fixed; inset: 0; z-index: 70; background: rgba(8, 9, 16, .5); }
body.dc-lock { overflow: hidden; }
.dc-drawer {
  position: fixed; z-index: 75; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(320px, 88vw); padding: 18px;
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  border-radius: 0; border-block: 0; border-inline-end: 0;
  animation: dcUp .25s var(--ease) both;
}
.dc-drawer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dc-drawer__head svg { width: 28px; height: 28px; flex: none; }
.dc-drawer__head b { flex: 1; font-weight: 500; font-size: 14.5px; }
.dc-drawer__nav { display: grid; gap: 2px; }
.dc-drawer__link {
  display: flex; align-items: center; gap: 10px;
  font: inherit; font-size: 14.5px; color: var(--text-dim); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: start;
  padding: 10px 12px; border-radius: var(--radius);
}
.dc-drawer__link:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.dc-drawer__link.is-on { background: var(--accent-900); color: var(--accent-200); }
.dc-drawer__link svg { width: 16px; height: 16px; }
.dc-drawer__link--chat span:last-child { display: grid; }
.dc-drawer__link--chat small {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--accent-300);
}
.dc-drawer__link--chat .dc-dot { width: 5px; height: 5px; }
.dc-drawer__sep {
  height: 1px; margin: 10px 0;
  background: linear-gradient(to right, transparent, var(--line) 24px,
    var(--line) calc(100% - 24px), transparent);
}
.dc-drawer__ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.dc-sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; }
.dc-sheet .dc-chat {
  position: relative; z-index: 81; width: min(560px, 100%);
  height: min(72svh, 560px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: dcUp .28s var(--ease) both;
}
/* на широких экранах шит (оплата, чат) — по центру, а не у нижней кромки */
@media (min-width: 981px) {
  .dc-sheet { align-items: center; padding: 24px; }
  .dc-sheet .dc-chat { border-radius: var(--radius-lg); }
}

/* ---------- Shared bits ---------- */
.dc-kicker {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-300); margin-bottom: 10px;
}
.dc-h1 { font-size: clamp(27px, 4.4vw, 36px); letter-spacing: -0.02em; margin: 0; }
.dc-h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.015em; margin: 0; }
.dc-h3 { font-size: 19px; margin: 0; }
.dc-lede { color: var(--text-dim); font-size: 15.5px; margin: 14px 0 0; max-width: 62ch; }

.dc-input {
  width: 100%; min-height: 38px; padding: 7px 11px; font: inherit; font-size: 14px;
  color: var(--text); caret-color: var(--accent);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.dc-input:hover { border-color: var(--line-strong); }
.dc-input:focus-visible { border-color: var(--accent); outline: none; }
textarea.dc-input { min-height: 96px; resize: vertical; }
select.dc-input { appearance: auto; }
.dc-field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.dc-err { font-size: 12.5px; color: var(--err); }
.dc-note { font-size: 12.5px; color: var(--text-faint); }

.dc-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 6px;
  background: var(--accent-800); color: var(--accent-200);
}
.dc-tag svg { width: 12px; height: 12px; flex: none; }
.dc-vc-giftedrow svg { width: 14px; height: 14px; flex: none; vertical-align: -2px; margin-inline-end: 2px; }
.dc-tag--outline { background: transparent; border: 1px solid var(--accent-600); color: var(--accent-300); }

/* Кнопки действий в истории заказов: отмена / возврат / подтвердить.
   Ячейка статуса — flex с переносом, чтобы метки и кнопки не наезжали. */
.dc-hist-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 160px; }
.dc-hist-act {
  display: inline-flex; align-items: center; font: inherit; font-size: 11.5px;
  padding: 3px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  transition: border-color .15s, color .15s;
}
.dc-hist-act:hover { border-color: var(--accent-500); color: var(--text); }
.dc-hist-act.is-arm { border-color: #b2645f; color: #d99a92; }
.dc-hist-act--pay { border-color: var(--accent-500); color: var(--accent-200); }

/* Раскрытие заказа по позициям + правка состава */
.dc-hist-open {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  cursor: pointer; text-align: left;
}
.dc-hist-open i { font-style: normal; color: var(--accent-400); margin-left: 6px; font-size: 11px; }
.dc-hist-open:hover { color: var(--accent-200); }
.dc-oi-list { margin-top: 8px; display: grid; gap: 5px; }
.dc-oi-list > small { color: var(--text-faint); font-size: 11px; }
.dc-oi-meta { font-size: 12px; color: var(--text-faint); line-height: 1.6; }
.dc-oi {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text-dim);
}
.dc-oi__name { min-width: 0; }
.dc-oi__ctrl { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.dc-oi__ctrl b { font-weight: 500; color: var(--text); min-width: 14px; text-align: center; }
.dc-oi__ctrl button {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: 6px;
  color: var(--text-dim); font: inherit; font-size: 13px; cursor: pointer; padding: 0;
}
.dc-oi__ctrl button:hover:not(:disabled) { border-color: var(--accent-500); color: var(--text); }
.dc-oi__ctrl button svg { width: 11px; height: 11px; }
.dc-oi__ctrl button:disabled { opacity: .35; cursor: default; }
.dc-oi__ctrl .dc-oi__del:hover { border-color: #b2645f; color: #d99a92; }
.dc-oi__sum { white-space: nowrap; color: var(--text); font-size: 12.5px; }

/* Tables — Nocturne fading row rules */
.dc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-table th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 60%, transparent);
  padding: 8px; font-weight: 500;
}
.dc-table td { padding: 9px 8px; vertical-align: top; }
.dc-table thead tr, .dc-table tbody tr {
  background: linear-gradient(to right,
    transparent, var(--line) 48px,
    var(--line) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.dc-table tbody tr:hover {
  background:
    linear-gradient(color-mix(in srgb, var(--text) 4%, transparent),
                    color-mix(in srgb, var(--text) 4%, transparent)) no-repeat 0 0 / 100% 100%,
    linear-gradient(to right,
      transparent, var(--line) 48px,
      var(--line) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.dc-scroll-x { overflow-x: auto; }

/* Chips (catalogue categories / budget bands) */
.dc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; cursor: pointer; padding: 6px 13px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text-dim); transition: all .18s;
}
.dc-chip svg { width: 14px; height: 14px; flex: none; }
.dc-chip:hover { border-color: var(--accent-700); color: var(--text); }
.dc-chip.is-on { border-color: var(--accent-500); background: var(--accent-900); color: var(--accent-200); }
.dc-chip--sq { border-radius: 4px; font-size: 12.5px; padding: 5px 12px; }

/* ---------- Home ---------- */
.dc-hero {
  position: relative; overflow: hidden; min-height: 620px;
  display: grid; align-items: center;
}
.dc-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%;
}
.dc-hero__shade-x {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 30%,
    color-mix(in srgb, var(--bg) 72%, transparent) 52%, transparent 88%);
}
.dc-hero__shade-y {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%,
    transparent 28%, transparent 62%, var(--bg) 100%);
}
.dc-hero__in {
  position: relative; max-width: 1220px; width: 100%; margin: 0 auto;
  padding: 86px 28px 60px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 54px; align-items: center;
}
.dc-hero h1 {
  font-weight: 500; font-size: clamp(38px, 6vw, 58px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: pretty;
}
.dc-hero__lede { max-width: 44ch; color: var(--text-dim); font-size: 17px; margin: 0 0 30px; }
.dc-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.dc-hero__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  padding-top: 26px;
  border-top: 0;
  background: linear-gradient(to right, transparent, var(--line) 48px,
    var(--line) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.dc-stat b { display: block; font-weight: 500; font-size: 30px; letter-spacing: -0.01em; color: var(--accent-200); }
.dc-stat b span { font-size: inherit; }
.dc-stat > span { font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }

.dc-hero__aside { position: relative; min-height: 330px; display: grid; align-items: end; justify-items: end; }

/* Liquid glass: a translucent, heavily blurred surface with a light rim. */
.dc-glass {
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--surface) 42%, transparent) 0%,
    color-mix(in srgb, var(--surface) 26%, transparent) 100%);
  backdrop-filter: blur(26px) saturate(1.6);
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #ffffff 10%, transparent),
    0 16px 40px rgba(0, 0, 0, .45);
}
.dc-glass .dc-input {
  background: color-mix(in srgb, var(--bg) 38%, transparent);
  border-color: color-mix(in srgb, #ffffff 12%, transparent);
}
.dc-glass .dc-chat__head, .dc-glass .dc-chat__in { border-color: color-mix(in srgb, #ffffff 10%, transparent); }
.dc-glass .dc-msg--them { background: color-mix(in srgb, var(--surface-2) 62%, transparent); }
.dc-glass .dc-msg--me   { background: color-mix(in srgb, var(--accent-800) 72%, transparent); }

/* The hero chat: collapsed to a launcher pill; expands to the live thread. */
.dc-chat--tease {
  position: static; width: min(370px, 100%); height: min(430px, 52svh);
  border-radius: var(--radius-lg);
  animation: dcUp .3s var(--ease) both;
}
.dc-chat--tease .dc-chat__log { font-size: 13px; }

.dc-chat-fab {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  font: inherit; color: var(--text); cursor: pointer; text-align: start;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.dc-chat-fab:hover { transform: translateY(-2px); border-color: var(--accent-600); }
.dc-chat-fab__text b { display: block; font-weight: 500; font-size: 14px; }
.dc-chat-fab__text small {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-dim);
}
.dc-chat-fab__text .dc-dot { width: 5px; height: 5px; }
.dc-chat-fab > svg { width: 17px; height: 17px; color: var(--accent-300); flex: none; }
[dir="rtl"] .dc-chat-fab { padding: 10px 10px 10px 16px; }

.dc-home-sec { padding-top: 72px; }
.dc-sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; margin-bottom: 26px; flex-wrap: wrap;
}

.dc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }
.dc-cat {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 18px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 120%);
  display: grid; gap: 9px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dc-cat:hover {
  transform: translateY(-3px); border-color: var(--accent-700);
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(0, 0, 0, .45);
}
.dc-cat svg { width: 22px; height: 22px; color: var(--accent-300); }
.dc-cat b { font-weight: 500; font-size: 15px; }
.dc-cat span { font-size: 12px; color: var(--text-faint); }

/* The one saturated band on the page */
.dc-band {
  margin-top: 82px; padding: 46px 0;
  background: linear-gradient(180deg, var(--band) 0%, var(--band-glow) 100%);
}
.dc-band__in {
  max-width: 1220px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px;
}
.dc-band b { display: block; font-weight: 500; font-size: 34px; color: #f5f4ff; }
.dc-band span { font-size: 12.5px; color: #d2cefd; }

.dc-how {
  padding-top: 76px;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 54px;
}
.dc-how__intro p { color: var(--text-dim); font-size: 14.5px; margin: 14px 0 20px; }
.dc-steps {
  display: grid; gap: 1px; background: var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.dc-step {
  background: var(--bg); padding: 20px 22px;
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start;
}
.dc-step__no {
  font-size: 13px; font-weight: 500; color: var(--accent-300);
  border: 1px solid var(--accent-800); border-radius: 4px;
  height: 26px; display: grid; place-items: center;
}
.dc-step b { display: block; font-weight: 500; font-size: 15.5px; margin-bottom: 4px; }
.dc-step p { font-size: 13.5px; color: var(--text-dim); margin: 0; }

.dc-duo {
  padding: 76px 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch;
}
.dc-promo {
  padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--accent-800);
  background: linear-gradient(150deg, var(--accent-900) 0%, var(--surface) 90%);
  position: relative; overflow: hidden;
}
.dc-sweep {
  position: absolute; top: 0; bottom: 0; width: 90px; pointer-events: none;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--accent-300) 12%, transparent), transparent);
  animation: dcSweep 7s linear infinite;
}
.dc-promo h2 { font-size: 27px; margin: 0 0 12px; }
.dc-promo > p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 22px; max-width: 40ch; }
.dc-meter { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dc-meter__bar { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.dc-meter__bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-bright));
}
.dc-meter span { font-size: 12px; color: var(--text-dim); }

.dc-quote {
  padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 18px; align-content: start;
}
.dc-quote__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.dc-quote blockquote {
  margin: 0; font-size: 21px; font-weight: 400; line-height: 1.4; letter-spacing: -0.01em;
}
.dc-quote__who { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.dc-ava {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--accent-800); color: var(--accent-200);
  display: grid; place-items: center; font-size: 14px; font-weight: 500;
}
/* the photo covers the initial; if it fails to load, onerror removes it */
.dc-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dc-ava--sm { width: 34px; height: 34px; font-size: 12.5px; }
.dc-quote__who b { display: block; font-weight: 400; font-size: 14px; }
.dc-quote__who span { font-size: 12px; color: var(--text-faint); }

@media (max-width: 980px) {
  .dc-hero__in { grid-template-columns: 1fr; padding: 56px 18px 40px; gap: 30px; }
  .dc-hero { min-height: 0; }
  .dc-hero__aside { min-height: 0; justify-items: stretch; }
  .dc-chat--tease { width: 100%; height: 380px; }
}
/* на мобильной чат живёт в бургер-меню, карточка в hero не нужна */
@media (max-width: 900px) {
  .dc-hero__aside { display: none; }
  .dc-how, .dc-duo { grid-template-columns: 1fr; gap: 26px; }
  .dc-band__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dc-hero__stats { grid-template-columns: 1fr 1fr; }
  .dc-cats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- Catalogue ---------- */
.dc-cathead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px 24px; flex-wrap: wrap; margin-bottom: 26px;
}
.dc-cathead__ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dc-cathead__ctl .dc-input { width: 250px; max-width: 100%; }
.dc-cathead__ctl select.dc-input { width: 214px; }

.dc-bandrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px 0 22px; margin-bottom: 26px;
  background: linear-gradient(to right, transparent, var(--line) 48px,
    var(--line) calc(100% - 48px), transparent) no-repeat bottom / 100% 1px;
}
.dc-bandrow__label { font-size: 12.5px; color: var(--text-faint); }
.dc-bandrow__found { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }

.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .dc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dc-grid { grid-template-columns: 1fr; } }

.dc-card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.dc-card:hover {
  transform: translateY(-3px); border-color: var(--accent-700);
  box-shadow: 0 0 0 1px var(--line-strong), 0 6px 18px rgba(0, 0, 0, .45);
}
.dc-ph { position: relative; height: 150px; background: var(--surface-2); overflow: hidden; }
.dc-ph img { width: 100%; height: 150px; object-fit: cover; display: block; }
.dc-ph__plate {
  position: absolute; inset: 0; display: none; place-items: center;
  background: linear-gradient(155deg, var(--accent-900) 0%, var(--surface-2) 90%);
}
.dc-ph__plate svg { width: 34px; height: 34px; color: var(--accent-600); }
.dc-ph.is-fallback img { display: none; }
.dc-ph.is-fallback .dc-ph__plate { display: grid; }

/* тело карточки тянется, футер с кнопкой прижат к низу — кнопки
   «В заявку» стоят на одной линии во всех карточках ряда */
.dc-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.dc-card__foot { margin-top: auto; }
.dc-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dc-card__cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint);
}
.dc-card__cat svg { width: 15px; height: 15px; color: var(--accent-300); }
.dc-card__title { font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.dc-card__sub { font-size: 13px; color: var(--text-dim); }
.dc-card__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding-top: 12px;
  background: linear-gradient(to right, transparent, var(--line) 24px,
    var(--line) calc(100% - 24px), transparent) no-repeat top / 100% 1px;
}
.dc-price b { display: block; font-size: 19px; font-weight: 500; color: var(--accent-200); }
.dc-price span { font-size: 11.5px; color: var(--text-faint); }
.dc-btn.is-in { border-color: var(--line-strong); color: var(--text-dim); }

.dc-empty { padding: 60px 0; text-align: center; color: var(--text-faint); }
.dc-empty b { display: block; font-size: 19px; font-weight: 500; margin-bottom: 10px; color: var(--text); }
.dc-empty p { font-size: 14px; margin: 0 0 18px; }

/* ---------- VIP ---------- */
.dc-vip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 18px; margin: 34px 0 46px;
}
.dc-plan {
  padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 18px; align-content: start;
  position: relative; overflow: hidden;
}
.dc-plan--vip {
  border-color: var(--accent-600);
  background: linear-gradient(155deg, var(--accent-900) 0%, var(--surface) 92%);
  box-shadow: 0 0 0 1px transparent, 0 6px 18px rgba(0, 0, 0, .45);
}
.dc-plancard {
  height: 132px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  padding: 18px; display: grid; align-content: space-between;
}
.dc-plan--vip .dc-plancard {
  border-color: var(--accent-700);
  background: linear-gradient(135deg, var(--accent-800) 0%, var(--band) 100%);
}
.dc-plancard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dc-plancard__name { letter-spacing: .16em; font-size: 12.5px; font-weight: 500; color: var(--text-dim); }
.dc-plan--vip .dc-plancard__name { color: var(--accent-200); }
.dc-plancard__num { font-size: 14px; letter-spacing: .14em; color: var(--text-faint); }
.dc-plan--vip .dc-plancard__num { color: var(--accent-200); }
.dc-plancard svg { width: 22px; height: 22px; }
.dc-plan__price b { display: block; font-size: 26px; font-weight: 500; }
.dc-plan--vip .dc-plan__price b { color: var(--accent-200); }
.dc-plan__price span { font-size: 12.5px; color: var(--text-faint); }
.dc-plan__list { display: grid; gap: 9px; font-size: 13.5px; color: var(--text-dim); }
.dc-plan--vip .dc-plan__list { color: var(--accent-200); }
.dc-plan__list > div { display: grid; grid-template-columns: 18px 1fr; gap: 9px; }
.dc-plan__list svg { width: 15px; height: 15px; color: var(--accent-300); margin-top: 2px; }
.dc-plan__left { font-size: 12px; color: var(--accent-300); display: flex; align-items: center; gap: 7px; }
.dc-plan__left .dc-dot { width: 5px; height: 5px; animation-duration: 2s; }

.dc-vip-photo { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 46px; }
.dc-vip-photo img {
  width: 100%; height: 260px; object-fit: cover; display: block;
  filter: saturate(.85) brightness(.9);
}
.dc-vip-photo.is-fallback { display: none; }

/* ---------- Account ---------- */
.dc-acc {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 26px; align-items: start;
}
.dc-acc__main { display: grid; gap: 26px; min-width: 0; }
.dc-acc__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap;
}
.dc-acc__head .dc-btn { flex: none; margin-top: 4px; }
.dc-acc__main > div, .dc-acc > aside { min-width: 0; }
@media (max-width: 980px) { .dc-acc { grid-template-columns: 1fr; } }

.dc-member {
  padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--accent-700);
  background: linear-gradient(150deg, var(--accent-900) 0%, var(--surface) 95%);
  display: grid; gap: 16px;
}
.dc-member__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dc-member__id { letter-spacing: .16em; font-size: 12px; font-weight: 500; color: var(--accent-200); }
.dc-member__sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.dc-member__pts { text-align: right; }
.dc-member__pts b { display: block; font-size: 26px; font-weight: 500; color: var(--accent-200); }
.dc-member__pts span { font-size: 12px; color: var(--text-dim); }

.dc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.dc-day {
  font: inherit; cursor: pointer; padding: 12px 6px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim);
  display: grid; gap: 5px; justify-items: center; transition: all .18s;
}
.dc-day:hover { border-color: var(--accent-700); color: var(--text); }
.dc-day.is-on { border-color: var(--accent-500); background: var(--accent-900); color: var(--accent-200); }
.dc-day small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.dc-day.is-on small { color: var(--accent-300); }
.dc-day b { font-size: 17px; font-weight: 500; }
.dc-day span { font-size: 10.5px; color: var(--accent-300); }
.dc-daydetail {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; color: var(--text-dim);
}
@media (max-width: 560px) {
  .dc-week { gap: 4px; }
  .dc-day { padding: 9px 2px; }
}

/* Развёрнутый календарь на месяц */
.dc-cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dc-cal-nav b { flex: 1; text-align: center; font-weight: 500; font-size: 14.5px; text-transform: capitalize; }
.dc-cal-nav .dc-btn--icon { width: 30px; height: 30px; font-size: 16px; }
.dc-cal-dow {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  font-size: 10px; color: var(--text-faint); letter-spacing: .06em;
  text-transform: uppercase; text-align: center; margin-bottom: 4px;
}
.dc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dc-day--sm { padding: 6px 2px; gap: 1px; min-height: 44px; }
.dc-day--sm b { font-size: 13.5px; }
.dc-day--sm span { font-size: 9px; line-height: 1.1; }
.dc-day--void { visibility: hidden; }
/* прошедшие дни: приглушены; пустые — вообще не кнопки */
.dc-day--past { opacity: .38; }
span.dc-day--past { cursor: default; }
.dc-day.is-today:not(.is-on) { border-color: var(--accent-700); }

.dc-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.dc-rec {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); display: grid; gap: 7px; transition: all .2s;
}
.dc-rec:hover { border-color: var(--accent-700); transform: translateY(-2px); }
.dc-rec small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.dc-rec b { font-size: 15px; font-weight: 500; }
.dc-rec span { font-size: 13px; color: var(--accent-200); }

/* Chat */
.dc-chat {
  position: sticky; top: 92px;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; height: 560px;
}
.dc-chat__head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 11px;
}
.dc-chat__who { flex: 1; min-width: 0; }
.dc-chat__who b { display: block; font-weight: 400; font-size: 14px; }
.dc-chat__status { font-size: 11.5px; color: var(--accent-300); display: flex; align-items: center; gap: 6px; }
.dc-chat__status .dc-dot { width: 5px; height: 5px; animation-duration: 2s; }
.dc-chat__log { padding: 16px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.dc-msg { max-width: 82%; padding: 9px 13px; font-size: 13.5px; line-height: 1.45; }
.dc-msg--me {
  justify-self: end; border-radius: 12px 12px 3px 12px;
  background: var(--accent-800); color: var(--accent-200);
}
.dc-msg--them {
  justify-self: start; border-radius: 12px 12px 12px 3px;
  background: var(--surface-2); color: var(--text);
}
.dc-msg--typing { color: var(--text-faint); font-size: 13px; border-radius: 12px; }
.dc-msg__items { display: grid; gap: 6px; margin-top: 8px; }
.dc-msg__item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--accent-700); background: color-mix(in srgb, var(--bg) 45%, transparent);
  color: var(--text);
}
.dc-msg__item:hover { border-color: var(--accent-500); }
.dc-msg__item b { font-weight: 500; }
.dc-msg__item span { margin-left: auto; color: var(--accent-300); white-space: nowrap; }
.dc-chat__in {
  padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px;
}
.dc-chat__in .dc-input { flex: 1; min-width: 0; }
@media (max-width: 980px) {
  .dc-chat { position: static; height: 480px; }
}

/* Auth (account, signed out) */
.dc-auth { max-width: 430px; margin: 30px auto 0; display: grid; gap: 16px; }
.dc-auth .dc-panel { display: grid; gap: 14px; }
.dc-panel {
  padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface);
}
.dc-panel--tint {
  border-color: var(--accent-700);
  background: linear-gradient(150deg, var(--accent-900) 0%, var(--surface) 95%);
}
.dc-auth__switch { text-align: center; font-size: 13px; color: var(--text-dim); }
.dc-auth__switch button {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-300); font-size: 13px;
}
.dc-auth__switch button:hover { color: var(--accent-200); }
.dc-code { letter-spacing: .5em; text-align: center; font-size: 19px; }

/* ---------- Request ---------- */
.dc-req {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px; align-items: start;
}
@media (max-width: 980px) { .dc-req { grid-template-columns: 1fr; } }

.dc-cart { display: grid; gap: 10px; margin: 22px 0 26px; }
.dc-cartline {
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 14px;
}
.dc-cartline > svg { width: 19px; height: 19px; flex: none; color: var(--accent-300); }
.dc-cartline__body { flex: 1; min-width: 0; }
.dc-cartline__body b { display: block; font-weight: 400; font-size: 14.5px; }
.dc-cartline__body span { font-size: 12px; color: var(--text-faint); }
.dc-cartline__price { font-size: 15px; font-weight: 500; color: var(--accent-200); white-space: nowrap; }
.dc-cartline__qty { display: flex; align-items: center; gap: 6px; }
.dc-cartline__qty button {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-dim); font: inherit; font-size: 14px;
  cursor: pointer; display: grid; place-items: center; padding: 0;
}
.dc-cartline__qty button:hover { color: var(--text); border-color: var(--accent-700); }
.dc-cartline__qty b { font-size: 13px; min-width: 16px; text-align: center; }
.dc-cart__empty {
  padding: 26px; border-radius: var(--radius); border: 1px dashed var(--line-strong);
  text-align: center; color: var(--text-dim); font-size: 13.5px;
}

.dc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dc-form .dc-field--wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .dc-form { grid-template-columns: 1fr; } }

.dc-total {
  position: sticky; top: 92px; padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid var(--accent-700);
  background: linear-gradient(155deg, var(--accent-900) 0%, var(--surface) 95%);
  display: grid; gap: 16px;
}
.dc-total__kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-200); }
.dc-total__rows { display: grid; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.dc-total__rows > div { display: flex; justify-content: space-between; gap: 12px; }
.dc-total__rows b { font-weight: 500; color: var(--text); }
.dc-total__fine {
  padding-top: 14px; font-size: 12.5px; color: var(--text-dim);
  background: linear-gradient(to right, transparent, var(--line) 24px,
    var(--line) calc(100% - 24px), transparent) no-repeat top / 100% 1px;
}
.dc-total__alt { font-size: 12px; color: var(--text-faint); text-align: center; }
.dc-total__alt a { color: var(--accent-300); }
@media (max-width: 980px) { .dc-total { position: static; } }

.dc-sent {
  max-width: 620px; margin: 40px auto; padding: 40px;
  border-radius: var(--radius-lg); border: 1px solid var(--accent-600);
  background: linear-gradient(150deg, var(--accent-900) 0%, var(--surface) 95%);
  text-align: center; display: grid; gap: 16px; justify-items: center;
}
.dc-sent > svg { width: 40px; height: 40px; color: var(--accent-300); }
.dc-sent h1 { font-size: 27px; margin: 0; }
.dc-sent p { color: var(--text-dim); font-size: 14.5px; margin: 0; max-width: 46ch; }
.dc-sent__cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.dc-foot {
  margin-top: 20px;
  background: linear-gradient(to right, transparent, var(--line) 48px,
    var(--line) calc(100% - 48px), transparent) no-repeat top / 100% 1px;
}
.dc-foot__in {
  max-width: 1220px; margin: 0 auto; padding: 30px 28px;
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center;
  justify-content: space-between; font-size: 12.5px; color: var(--text-faint);
}
.dc-foot__brand { display: flex; align-items: center; gap: 11px; }
.dc-foot__brand svg { width: 26px; height: 26px; color: var(--text-faint); }
.dc-foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.dc-foot__links a { color: var(--text-faint); }
.dc-foot__links a:hover { color: var(--accent-300); }
.dc-foot__links button {
  font: inherit; font-size: 12.5px; background: none; border: 0; padding: 0;
  color: var(--text-faint); cursor: pointer;
}
.dc-foot__links button:hover { color: var(--accent-300); }

/* ---------- RTL (Arabic) ----------
   Flex and grid mirror themselves; only the hand-drawn asymmetries flip. */
[dir="rtl"] .dc-cat, [dir="rtl"] .dc-rec, [dir="rtl"] .dc-logo { text-align: right; }
[dir="rtl"] .dc-hero__img { object-position: 30% 50%; }
[dir="rtl"] .dc-hero__shade-x {
  background: linear-gradient(270deg, var(--bg) 0%, var(--bg) 30%,
    color-mix(in srgb, var(--bg) 72%, transparent) 52%, transparent 88%);
}
[dir="rtl"] .dc-msg--me   { border-radius: 12px 12px 12px 3px; }
[dir="rtl"] .dc-msg--them { border-radius: 12px 12px 3px 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 16px);
  z-index: 90; max-width: min(92vw, 480px);
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--accent-700); background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  font-size: 13.5px; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Admin ---------- */
.dc-admlock { min-height: 100svh; display: grid; place-items: center; padding: 28px; }
.dc-admlock__card {
  width: 340px; max-width: 100%; padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px;
}
.dc-admlock__card svg { width: 34px; height: 34px; }
.dc-admlock__card h1 { font-size: 20px; margin: 0; }
.dc-admlock__card p { font-size: 13px; color: var(--text-dim); margin: 5px 0 0; }

.dc-adm { max-width: 1320px; margin: 0 auto; padding: 32px 28px 90px; display: grid; gap: 26px; }
.dc-adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dc-adm-stat {
  padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.dc-adm-stat b { display: block; font-size: 26px; font-weight: 500; }
.dc-adm-stat span { font-size: 12px; color: var(--text-faint); }

.dc-adm-new {
  padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--accent-700);
  background: linear-gradient(150deg, var(--accent-900) 0%, var(--surface) 95%);
  display: grid; gap: 14px;
}
.dc-adm-new h2 { font-size: 18px; margin: 0; }
.dc-adm-new__row {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1fr) auto;
}
.dc-adm-new__row2 { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
/* ==================================================== виртуальные карты == */
.dc-vc {
  aspect-ratio: 1.586; border-radius: 16px; padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--vc-text, #f1effa);
  border: 1px solid var(--vc-line, rgba(255, 255, 255, .14));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
/* диагональный световой блик поверх материала */
.dc-vc::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .12) 46%, transparent 58%);
}
.dc-vc__moon {
  position: absolute; right: -34px; bottom: -44px; width: 168px; height: 168px;
  color: var(--vc-moon, rgba(255, 255, 255, .1)); z-index: -1; transform: rotate(-12deg);
}
.dc-vc__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dc-vc__brand {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .82;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-vc__tier { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.dc-vc__num {
  font: 500 clamp(15px, 4.2cqw, 19px)/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: .12em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.dc-vc__bot { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.dc-vc__bot span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* материалы тиров */
.dc-vc--silver {
  background: linear-gradient(135deg, #33384a, #7d8499 42%, #4a5064 70%, #272b3a);
}
.dc-vc--gold {
  background: linear-gradient(135deg, #453411, #bb8c2f 40%, #8a6520 68%, #2c2109);
  --vc-text: #f9efd7; --vc-moon: rgba(255, 235, 190, .16);
}
.dc-vc--platinum {
  background: linear-gradient(135deg, #767d8e, #e6e9f1 45%, #aab1c2 72%, #5d6475);
  --vc-text: #232633; --vc-line: rgba(0, 0, 0, .18); --vc-moon: rgba(35, 38, 51, .12);
}
.dc-vc--platinum .dc-vc__num { text-shadow: 0 1px 1px rgba(255, 255, 255, .5); }
.dc-vc--sapphire {
  background: linear-gradient(135deg, #0d1737, #27479f 45%, #16255c 74%, #080d22);
  --vc-moon: rgba(140, 170, 255, .18);
}
.dc-vc--infinite {
  background:
    radial-gradient(120% 130% at 82% 18%, rgba(145, 132, 217, .32), transparent 55%),
    linear-gradient(135deg, #12101c, #201d33 55%, #060509);
  --vc-line: rgba(179, 168, 236, .38); --vc-moon: rgba(179, 168, 236, .28);
}
.dc-vc--infinite .dc-vc__tier { color: var(--accent-200); }

/* витрина карт на экране VIP */
.dc-vc-grid {
  display: grid; gap: 16px; margin: 18px 0 34px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
@media (max-width: 480px) { .dc-vc-grid { grid-template-columns: 1fr; } }
.dc-vc-offer {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
}
.dc-vc-offer.is-hot { border-color: var(--accent-600); }
.dc-vc-offer__lede { font-size: 15px; font-weight: 500; }
.dc-vc-offer__plus { display: block; color: var(--accent-300); font-size: 12px; margin-top: 6px; }
.dc-vc-offer__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dc-vc-offer__perks { margin: 0; padding: 0 0 0 18px; display: grid; gap: 5px; font-size: 13px; color: var(--text-dim); }
.dc-vc-offer__perks li::marker { color: var(--accent-500); }
.dc-vc-offer__foot {
  margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: linear-gradient(to right, transparent, var(--line) 24px, var(--line) calc(100% - 24px), transparent) no-repeat top / 100% 1px;
}
.dc-vc-offer__foot b { display: block; font-size: 19px; font-weight: 500; color: var(--accent-200); }
.dc-vc-offer__foot small { font-size: 11px; color: var(--text-faint); }

/* «Мои карты» в кабинете */
.dc-vc-mygrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
/* карта в кабинете: визуал + срок, привилегии, подарок */
.dc-vc-mine { display: flex; flex-direction: column; gap: 10px; }
.dc-vc-mine__info { display: grid; gap: 8px; }
.dc-vc-perkuse { margin: 0; padding: 0 0 0 18px; display: grid; gap: 3px; font-size: 12.5px; color: var(--text-soft); }
.dc-vc-perkuse li.is-used { text-decoration: line-through; color: var(--text-faint); }
.dc-vc-perkuse li.is-used em { font-style: normal; font-size: 11px; text-decoration: none; display: inline-block; }
.dc-vc-gift { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc-vc-giftedlist { display: grid; gap: 6px; margin-top: 12px; }
.dc-vc-giftedrow { font-size: 13px; color: var(--text-soft); }

.dc-adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
/* строки управления категориями */
.dc-adm-cats { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); }
@media (max-width: 520px) { .dc-adm-cats { grid-template-columns: 1fr; } }
.dc-adm-cat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-adm-cat .dc-input { flex: 1; min-width: 90px; }
.dc-adm-cat > span { flex: none; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
@media (max-width: 900px) {
  .dc-adm-new__row, .dc-adm-new__row2 { grid-template-columns: 1fr 1fr; }
}

.dc-adm-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dc-adm-filter .dc-input { width: 280px; max-width: 100%; }
/* вкладка «Карты»: приём карт и отметка привилегий */
.dc-adm-card { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--panel); }
.dc-adm-card__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; width: 100%; padding: 10px 14px; background: none; border: 0; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.dc-adm-card__head code { color: var(--accent-bright); }
.dc-adm-perks { display: grid; gap: 6px; padding: 4px 14px 12px; }
.dc-adm-perk { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--text-soft); cursor: pointer; }
.dc-adm-perk.is-used span { text-decoration: line-through; color: var(--text-faint); }
.dc-adm-filter select.dc-input { width: 220px; }
.dc-adm-filter span { font-size: 12.5px; color: var(--text-faint); }

.dc-adm-rows { display: grid; gap: 10px; }
.dc-adm-row {
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 12px; align-items: end;
  grid-template-columns: 96px minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) auto auto;
}
@media (max-width: 1100px) {
  .dc-adm-row { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); }
}
.dc-adm-row__media { display: grid; gap: 6px; }
.dc-adm-row__media .dc-ph { height: 68px; border-radius: 4px; }
.dc-adm-row__media .dc-ph img { height: 68px; }
.dc-adm-row__media .dc-ph__plate svg { width: 22px; height: 22px; }
.dc-adm-row__mediabtns { display: flex; gap: 4px; }
.dc-adm-row__mediabtns button {
  flex: 1; height: 26px; font: inherit; font-size: 11.5px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim);
  cursor: pointer; display: grid; place-items: center; transition: all .18s; padding: 0;
}
.dc-adm-row__mediabtns button:hover { color: var(--text); border-color: var(--accent-700); }
.dc-adm-row__mediabtns button.is-on {
  border-color: var(--accent-700); background: var(--accent-900); color: var(--accent-200);
}
.dc-adm-row__mediabtns svg { width: 13px; height: 13px; }
.dc-adm-row__text { display: grid; gap: 8px; }
.dc-adm-hot {
  height: 38px; padding: 0 13px; font: inherit; font-size: 13px;
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-faint); cursor: pointer;
  white-space: nowrap; transition: all .18s;
}
.dc-adm-hot:hover { color: var(--text); border-color: var(--accent-700); }
.dc-adm-hot.is-on { border-color: var(--accent-500); background: var(--accent-900); color: var(--accent-200); }
.dc-adm-note { font-size: 12.5px; color: var(--text-faint); max-width: 70ch; }
.dc-adm-empty {
  padding: 44px; text-align: center; color: var(--text-faint);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
