:root {
  --teal-500: #1f9189; --teal-600: #167a73; --teal-700: #11625c; --teal-50: #ecf8f7;
  --ink-900: #0f1419; --ink-800: #1a2128; --ink-700: #2d3640; --ink-600: #4a5560;
  --ink-500: #6b7682; --ink-400: #95a0ac; --ink-300: #c4ccd4; --ink-200: #e1e6eb;
  --ink-150: #ecf0f3; --ink-100: #f4f6f8; --ink-50: #f9fafb;
  --white: #fff; --danger: #dc2626; --success: #16a34a; --warning: #f59e0b;
  --font-sans: 'Inter', Arial, system-ui, sans-serif;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --shadow-card: 0 1px 2px rgba(15,20,25,.06), 0 0 0 1px rgba(15,20,25,.06);
  --shadow-pop: 0 4px 12px rgba(15,20,25,.08);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink-900); background: var(--ink-100); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* Login */
.admin-login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--ink-100); }
.login-box { background: white; border-radius: var(--r-lg); padding: 36px; width: 360px; box-shadow: var(--shadow-card); text-align: center; }
.login-box h1 { font-size: 19px; font-weight: 700; margin: 0 0 22px; }

/* Layout */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: #161e2a; color: white;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar__brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 22px;
  text-decoration: none;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar__brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--teal-500);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.admin-sidebar__brand-mark svg { width: 22px; height: 22px; }
.admin-sidebar__brand-name { font-weight: 700; font-size: 17px; color: white; letter-spacing: 0.01em; }

.admin-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; padding-top: 8px; }
.admin-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.7);
  transition: all .12s;
}
.admin-nav a svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.admin-nav a:hover { background: rgba(255,255,255,.05); color: white; }
.admin-nav a.active {
  background: var(--teal-500);
  color: white;
  box-shadow: 0 4px 12px rgba(31,145,137,.3);
}
.admin-nav a.active svg { opacity: 1; }
.admin-nav__site { margin-top: 14px; padding-top: 14px !important; border-top: 1px solid rgba(255,255,255,.06); }

.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px;
  background: #ef4444; color: white;
  border-radius: 100px; font-size: 11.5px; font-weight: 700;
}

/* Orders page */
.badge-count--new { background: #fee2e2; color: #b91c1c; margin-left: 6px; }
/* (zebra/order-new styles consolidated into card-style block below) */
.ord-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.ord-dot--new { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.ord-dot--seen { background: var(--ink-300); }
.ord-phone { font-family: ui-monospace, monospace; font-weight: 600; color: var(--teal-700) !important; white-space: nowrap; }
.td-date { font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }

.empty-state-card {
  background: white; border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 60px 24px; text-align: center; color: var(--ink-500);
}
.empty-state-card svg { color: var(--ink-300); margin-bottom: 12px; }
.empty-state-card p { margin: 0; font-size: 15px; }

/* Sidebar footer */
.admin-sidebar__footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.admin-sidebar__user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  font-size: 14px; color: rgba(255,255,255,.85);
  font-weight: 500;
}
.admin-sidebar__user svg { width: 18px; height: 18px; opacity: .7; flex: none; }
.admin-sidebar__row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0 0;
}

.admin-langbar__btns { display: flex; gap: 5px; flex: 1; }
.admin-lang-btn {
  flex: 1;
  padding: 6px 4px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.08); border-radius: 6px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  transition: all .12s;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.admin-lang-btn:hover { background: rgba(255,255,255,.1); color: white; }
.admin-lang-btn.active {
  background: var(--teal-500);
  color: white; border-color: transparent;
}

.admin-logout-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.08); border-radius: 6px;
  flex: none;
  transition: all .12s;
}
.admin-logout-icon:hover { background: rgba(220,38,38,.15); color: #fca5a5; border-color: transparent; }
.admin-logout-icon svg { width: 16px; height: 16px; }

/* Global lang-pane visibility — controlled by html[data-lang] */
html[data-lang="ru"] .lang-pane:not([data-lang="ru"]) { display: none; }
html[data-lang="uk"] .lang-pane:not([data-lang="uk"]) { display: none; }
html[data-lang="en"] .lang-pane:not([data-lang="en"]) { display: none; }
html[data-lang="ru"] .lang-pane[data-lang="ru"],
html[data-lang="uk"] .lang-pane[data-lang="uk"],
html[data-lang="en"] .lang-pane[data-lang="en"] { display: block !important; }

.admin-main { margin-left: 240px; flex: 1; padding: 28px 32px; min-width: 0; }

/* Page header */
.admin-page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.admin-page-header h1 { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.admin-page-header > h1 { margin-right: auto; }
.badge-count { display: inline-block; padding: 1px 8px; background: var(--ink-150); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--ink-600); margin-left: 6px; vertical-align: middle; }
.admin-filter-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-sm, 6px);
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 220px;
  max-width: 320px;
}
.admin-filter-select:hover { border-color: var(--ink-300); }
.admin-filter-select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(31,145,137,0.15); }

/* Orders table — card-style rows with gaps for visual separation */
.admin-table-wrap { background: transparent; border-radius: 0; box-shadow: none; overflow: visible; border: 0; padding: 0; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; table-layout: auto; margin-top: -10px; }
.admin-table th {
  padding: 8px 16px; text-align: left;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-500); background: transparent; border: 0;
  white-space: nowrap;
}
.admin-table tbody tr td {
  padding: 16px; vertical-align: top; font-size: 13.5px;
  background: white;
  border-top: 1px solid var(--ink-150); border-bottom: 1px solid var(--ink-150);
  transition: background .12s ease, box-shadow .15s ease;
}
.admin-table tbody tr td:first-child { border-left: 1px solid var(--ink-150); border-radius: 8px 0 0 8px; }
.admin-table tbody tr td:last-child { border-right: 1px solid var(--ink-150); border-radius: 0 8px 8px 0; }
.admin-table tbody tr:hover td { background: #fafbfc; }
.admin-table tbody tr:hover td:first-child { box-shadow: -2px 0 0 0 var(--teal-500); }
.admin-table a { color: var(--teal-700); font-weight: 500; }
.admin-table a:hover { color: var(--teal-600); text-decoration: underline; }
/* ID column: large display number */
.td-id { font-family: var(--font-display, inherit); font-size: 18px; font-weight: 700; color: var(--ink-400); width: 56px; }
.order-new .td-id { color: #b45309; }
.td-name { width: 180px; }
.td-name strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 4px; }
/* New (unread) orders — soft yellow with orange left ribbon, distinctly per-card */
.order-new td { background: #fffbeb; border-color: #fde68a; }
.order-new td:first-child { box-shadow: inset 4px 0 0 0 #f59e0b; }
.order-new:hover td { background: #fef3c7; }
.order-new:hover td:first-child { box-shadow: inset 4px 0 0 0 #d97706, -2px 0 0 0 transparent; }

.td-id { font-size: 12px; color: var(--ink-400); width: 36px; font-variant-numeric: tabular-nums; }
.td-name { width: 140px; }
.td-phone { width: 1%; }
.td-sku { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-500); }
.td-cat { color: var(--ink-700); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.td-price { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink-800); }
.td-actions { width: 80px; text-align: right; white-space: nowrap; }

/* Action buttons */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  color: var(--ink-500); background: transparent; border: none;
  cursor: pointer; transition: all .12s; padding: 0;
}
.btn-icon svg { width: 15px; height: 15px; }
.btn-icon:hover { background: var(--teal-50); color: var(--teal-700); }
.btn-icon--danger:hover { background: #fef2f2; color: var(--danger); }

/* Forms */
.admin-form { background: white; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); max-width: 1100px; }
.admin-form h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; color: var(--ink-700); text-transform: uppercase; letter-spacing: 0.04em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 8px 11px; border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 13.5px; background: white; width: 100%; transition: all .12s; color: var(--ink-900);
}
.form-group textarea.ckeditor { min-height: 400px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50);
}
.form-actions { display: flex; gap: 10px; padding-top: 6px; }

/* Two-col */
.admin-two-col { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.admin-two-col h3 { font-size: 14px; font-weight: 700; margin: 0 0 14px; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13.5px; margin-bottom: 18px; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--success { background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .12s; border: none; white-space: nowrap; }
.btn-primary { background: var(--teal-500); color: white; }
.btn-primary:hover { background: var(--teal-600); }
.btn-outline { background: transparent; border: 1px solid var(--ink-300); color: var(--ink-700); }
.btn-outline:hover { border-color: var(--ink-700); color: var(--ink-900); }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 100px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge--success { background: #ecfdf5; color: #15803d; }
.badge--success::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--warning::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--warning); }

/* Hide CKEditor 4 security warning notification */
.cke_notifications_area,
.cke_notification,
.cke_notification_warning,
.cke_notification_message { display: none !important; }

/* Settings sections */
.admin-form-stack { display: flex; flex-direction: column; gap: 18px; }
.admin-main { max-width: 1240px; }
.settings-card { background: white; border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.settings-card__head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.settings-card__head svg { width: 22px; height: 22px; color: var(--teal-600); flex: none; margin-top: 2px; }
.settings-card__head h3 { font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--ink-900); text-transform: none; letter-spacing: 0; }
.settings-card__head p { font-size: 12.5px; color: var(--ink-500); margin: 0; line-height: 1.45; }
.settings-card__body { padding: 18px 22px 6px; }

/* Compact 4-col grid for form fields */
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 14px;
}
.form-grid-4 .form-group { margin-bottom: 6px; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
@media (max-width: 768px) {
  .form-grid-4 { grid-template-columns: 1fr 1fr; }
  .col-2, .col-3, .col-4 { grid-column: span 2; }
}

/* ============ MOBILE LAYOUT (≤900px) ============ */
.admin-burger { display: none; }
.admin-sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  /* Hamburger button — fixed top-left, above sidebar */
  .admin-burger {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 10px; left: 10px; z-index: 60;
    width: 40px; height: 40px;
    background: #161e2a; color: white; border: none;
    border-radius: 8px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
  }
  .admin-burger svg { width: 22px; height: 22px; }
  /* Hide burger when menu open (X close button could be in sidebar instead) */
  .admin-body--menu-open .admin-burger { display: none; }

  /* Sidebar — hidden by default off-canvas, slides in when open */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 70;
    width: 260px;
    box-shadow: 0 0 24px rgba(0,0,0,.3);
  }
  .admin-body--menu-open .admin-sidebar {
    transform: translateX(0);
  }

  /* Backdrop overlay when menu open */
  .admin-sidebar-backdrop {
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 65;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }
  .admin-body--menu-open .admin-sidebar-backdrop {
    opacity: 1; pointer-events: auto;
  }

  /* Main content takes full width */
  .admin-main { margin-left: 0; padding: 60px 14px 20px; max-width: 100%; }
  .admin-page-header { flex-wrap: wrap; gap: 8px; }
  .admin-page-header h1 { font-size: 18px; }

  /* Tables: horizontal scroll wrapper */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; }
  .admin-table { font-size: 12.5px; min-width: 720px; }
  .admin-table th, .admin-table tbody tr td { padding: 8px 6px; }

  /* Forms: smaller padding */
  .admin-form { padding: 16px 14px; }
  .settings-card { padding: 16px 14px; }

  /* Filter select: don't force min-width */
  .admin-filter-select { min-width: 0; max-width: 100%; width: 100%; }

  /* Analytics: cards single column, smaller chart */
  .an-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .an-card { padding: 10px 12px; }
  .an-card__val { font-size: 20px; }
  .an-rt { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .an-rt__events { margin-left: 0; }
  .an-grid { grid-template-columns: 1fr; gap: 12px; }
  .an-block { padding: 12px 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .an-block h2 { font-size: 13px; }
  .an-table { font-size: 11.5px; }
  .an-table th, .an-table td { padding: 5px 6px; }
  .an-query, .an-path, .an-title-cell { max-width: 130px; }
  .an-chart { height: 120px; }
  .an-bars { height: 100px; }
  .an-day__lbl { font-size: 8px; }
  /* Hide every other date label to avoid overlap */
  .an-day:nth-child(even) .an-day__lbl { visibility: hidden; }
}

@media (max-width: 480px) {
  .an-cards { grid-template-columns: 1fr; }
}

/* ====== SEO Dashboard ====== */
.seo-period-bar { font-size: 12px; color: var(--ink-600); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.seo-period-btn { padding: 4px 10px; border: 1px solid var(--ink-200); border-radius: 100px; color: var(--ink-700); font-weight: 600; text-decoration: none; font-size: 12px; transition: all .12s; }
.seo-period-btn:hover { border-color: var(--teal-500); color: var(--teal-700); }
.seo-period-btn.active { background: var(--teal-500); color: white; border-color: var(--teal-500); }
.seo-action-btn { padding: 5px 12px; border: 1px solid var(--ink-200); border-radius: 6px; background: white; color: var(--ink-700); font-weight: 600; font-size: 12px; cursor: pointer; transition: all .12s; }
.seo-action-btn:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50); }
.seo-action-btn:disabled { opacity: .5; cursor: wait; }

.seo-tabs { margin-bottom: 14px; }

.seo-table { width: 100%; }
.seo-table .pos-top { color: #059669 !important; font-weight: 700; }
.seo-table .pos-good { color: var(--teal-700); font-weight: 600; }
.seo-table .pos-mid { color: #ca8a04; }
.seo-table .pos-low { color: var(--ink-400); }
.seo-table .an-query a, .seo-table .an-path a { color: var(--teal-700); text-decoration: none; }
.seo-table .an-query a:hover, .seo-table .an-path a:hover { text-decoration: underline; }
.seo-table .an-path a { font-family: ui-monospace, monospace; font-size: 11.5px; }

.dlt-up { color: #059669; font-weight: 700; font-size: 12px; }
.dlt-down { color: #dc2626; font-weight: 700; font-size: 12px; }
.dlt-flat { color: var(--ink-300); font-size: 12px; }

/* Mini chart for SEO trends */
.mini-chart-wrap { display: inline-flex; align-items: center; gap: 6px; }
.mini-chart { display: block; }
.mini-last { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 28px; }
.mini-last.pos-top { color: #059669; }
.mini-last.pos-good { color: var(--teal-700); }
.mini-last.pos-mid { color: #ca8a04; }
.mini-last.pos-low { color: var(--ink-400); }
.mini-single { font-size: 13px; padding: 2px 8px; border-radius: 100px; background: var(--ink-50); display: inline-block; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.mini-single.pos-top { background: #d1fae5; color: #059669; }
.mini-single.pos-good { background: #ccfbf1; color: var(--teal-700); }
.mini-single.pos-mid { background: #fef3c7; color: #ca8a04; }
.mini-single.pos-low { background: var(--ink-100); color: var(--ink-500); }
.sp-empty { color: var(--ink-300); font-size: 11px; font-style: italic; }
.seo-spark-cell { white-space: nowrap; }

.seo-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.seo-stat { background: white; border: 1px solid var(--ink-150); border-radius: 10px; padding: 14px 16px; }
.seo-stat__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); margin-bottom: 6px; font-weight: 600; }
.seo-stat__val { font-size: 28px; font-weight: 800; color: var(--ink-900); line-height: 1; font-variant-numeric: tabular-nums; }
.seo-stat__val.pos-top { color: #059669; }
.seo-stat__val.pos-good { color: var(--teal-700); }
.seo-stat__val.pos-mid { color: #ca8a04; }
.seo-stat__sub { font-size: 11px; color: var(--ink-500); margin-top: 6px; }

.seo-hints { display: flex; flex-direction: column; gap: 8px; }
.seo-hint { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.seo-hint__icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.seo-hint__text { flex: 1; }
.seo-hint--win { background: #ecfdf5; border-left: 3px solid #10b981; color: #065f46; }
.seo-hint--opportunity { background: #eff6ff; border-left: 3px solid #3b82f6; color: #1e40af; }
.seo-hint--ctr { background: #fefce8; border-left: 3px solid #eab308; color: #854d0e; }
.seo-hint--drop { background: #fef2f2; border-left: 3px solid #ef4444; color: #991b1b; }
.seo-hint--growth { background: #f0fdf4; border-left: 3px solid #22c55e; color: #166534; }
.seo-hint--info { background: var(--ink-50); border-left: 3px solid var(--ink-300); color: var(--ink-700); }

.lc-wrap { padding: 8px 0; }
.lc-svg { width: 100%; height: 200px; display: block; }
.lc-empty { padding: 30px; text-align: center; color: var(--ink-400); font-size: 13px; }
.lc-hint { font-size: 11px; color: var(--ink-500); margin-top: 8px; }

/* Phone tags in labels */
.phone-tag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.phone-tag--vf { background: #e60000; }
.phone-tag--ks { background: #0067b1; }

/* Form hint */
.form-hint { font-size: 11.5px; color: var(--ink-400); margin-top: 2px; line-height: 1.4; }

/* Cache note */
.cache-note { padding: 10px 14px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.5; margin-top: 8px; }
.cache-note--on { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
.cache-note--off { background: var(--ink-50); color: var(--ink-600); border: 1px solid var(--ink-200); }

/* Sticky save bar */
.form-actions--sticky {
  position: sticky; bottom: 0;
  padding: 14px 24px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  margin-top: 4px;
}

/* Language tabs in card header */
.lang-tabs { display: flex; gap: 4px; flex: none; }
.lang-tab {
  padding: 6px 12px; background: white; color: var(--ink-600);
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .12s;
}
.lang-tab:hover { border-color: var(--ink-400); color: var(--ink-900); }
.lang-tab.active { background: var(--teal-500); color: white; border-color: var(--teal-500); }

.lang-pane[hidden] { display: none; }

/* Translate bar */
.translate-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--teal-50); border: 1px dashed var(--teal-300, #6cc5bf);
  border-radius: var(--r-md); margin-top: 10px;
}
.btn-translate-bulk {
  background: var(--teal-500) !important; color: white !important; border: 0 !important;
  padding: 8px 14px !important; height: auto !important;
  font-size: 13px;
}
.btn-translate-bulk:hover { background: var(--teal-600) !important; }
.btn-translate-bulk:disabled { opacity: .7; cursor: wait; }
.translate-bar__hint { font-size: 12px; color: var(--ink-600); }

/* Input with translate button beside it */
.input-with-tr { display: flex; gap: 6px; align-items: stretch; }
.input-with-tr input { flex: 1; }
.input-with-tr .btn-translate {
  margin-left: 0; flex: none;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Translate button inside form labels */
.btn-translate {
  display: inline-flex; align-items: center;
  margin-left: 8px; padding: 2px 9px;
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--teal-200, #a3ddd9);
  border-radius: 4px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: all .12s;
  vertical-align: middle;
}
.btn-translate:hover { background: var(--teal-500); color: white; border-color: var(--teal-500); }
.btn-translate:disabled { opacity: 0.6; cursor: wait; }

/* Drag-drop zone */
.drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 28px 20px;
  border: 2px dashed var(--ink-300); border-radius: var(--r-md);
  background: var(--ink-50); color: var(--ink-600);
  cursor: pointer; text-align: center;
  transition: all .15s;
}
.drop-zone:hover, .drop-zone--over {
  border-color: var(--teal-500); background: var(--teal-50); color: var(--teal-700);
}
.drop-zone svg { color: var(--ink-400); }
.drop-zone:hover svg, .drop-zone--over svg { color: var(--teal-500); }
.drop-hint { font-size: 12px; color: var(--ink-500); }

.upload-status { margin-top: 8px; font-size: 12.5px; min-height: 18px; }
.upload-status--loading { color: var(--ink-600); }
.upload-status--ok { color: var(--success); }
.upload-status--err { color: var(--danger); }

/* Specs builder */
.specs-builder-wrap { overflow-x: auto; border: 1px solid var(--ink-150); border-radius: var(--r-md); }
.specs-builder { width: 100%; border-collapse: collapse; }
.specs-builder th {
  text-align: left; padding: 8px 12px;
  background: var(--ink-50); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500);
  border-bottom: 1px solid var(--ink-150);
}
.specs-builder th:last-child { width: 38px; }
.specs-builder td { padding: 5px 8px; border-bottom: 1px solid var(--ink-100); }
.specs-builder tr:last-child td { border-bottom: 0; }
.specs-builder input {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 13.5px; background: white;
}
.specs-builder input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 2px var(--teal-50); }
.specs-builder .spec-label { font-weight: 600; }
.spec-actions { width: 38px; text-align: center; }

/* PDF rows */
.pdf-row {
  display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; align-items: center;
  padding: 8px 12px; background: var(--ink-50); border-radius: var(--r-sm); margin-bottom: 6px;
}
.pdf-row__file { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pdf-row__file svg { color: #dc2626; flex: none; }
.pdf-row__file a { color: var(--teal-700); font-size: 12.5px; font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-row .pdf-title {
  padding: 7px 10px; border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 13.5px; width: 100%;
}
.pdf-row .pdf-title:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.pdf-upload-zone { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* Variants list */
.variants-list { display: flex; flex-direction: column; gap: 6px; }
.variant-row {
  display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; align-items: center;
}
.variant-row input {
  padding: 8px 11px; border: 1px solid var(--ink-200); border-radius: var(--r-sm);
  font-size: 13.5px; background: white;
}
.variant-row input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.variant-row .variant-label { font-weight: 600; }
.variant-row .variant-price { font-variant-numeric: tabular-nums; }

/* Variant Groups (Аксесуари etc) */
.variant-groups-list { display: flex; flex-direction: column; gap: 14px; }
.variant-group-block {
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}
.variant-group-block__head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.variant-group-block__head .vg-label {
  flex: 1; font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}
.variant-group-block__head .vg-label:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-50); }
.variant-group-block__items { display: flex; flex-direction: column; gap: 6px; }
.btn.btn-sm { padding: 6px 12px; font-size: 13px; }
.variant-group-block__rule { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ink-200); }
.variant-group-block__rule .rule-hint { font-size: 11.5px; color: var(--ink-500); margin-bottom: 4px; }
.variant-group-block__rule .rule-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.variant-group-block__rule select.vg-vis-group, .variant-group-block__rule select.vg-vis-value {
  flex: 1; min-width: 140px; padding: 6px 8px; border: 1px solid var(--ink-200); border-radius: 5px;
  font-size: 13px; background: #fff; cursor: pointer;
}
.variant-group-block__rule .rule-eq { color: var(--ink-400); font-weight: 700; }
.variant-group-block__rule .rule-warn { color: #b45309; font-size: 12px; }

/* Settings page tabs */
.settings-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink-200);
  padding-bottom: 0;
}
.settings-tab {
  background: transparent; border: 0;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600; color: var(--ink-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.settings-tab:hover { color: var(--ink-800); }
.settings-tab--active { color: var(--teal-700); border-bottom-color: var(--teal-600); }
/* Hide non-active tab cards */
[data-active-tab="main"]    .settings-card[data-tab]:not([data-tab="main"]),
[data-active-tab="content"] .settings-card[data-tab]:not([data-tab="content"]),
[data-active-tab="seo"]     .settings-card[data-tab]:not([data-tab="seo"]),
[data-active-tab="email"]   .settings-card[data-tab]:not([data-tab="email"]),
[data-active-tab="telegram"] .settings-card[data-tab]:not([data-tab="telegram"]),
[data-active-tab="access"]   .settings-card[data-tab]:not([data-tab="access"]),
[data-active-tab="prom"]    .settings-card[data-tab]:not([data-tab="prom"]),
[data-active-tab="system"]  .settings-card[data-tab]:not([data-tab="system"]),
[data-active-tab="import"]  .settings-card[data-tab]:not([data-tab="import"]) {
  display: none;
}

/* Featured carousel items editor */
.featured-items-list { display: flex; flex-direction: column; gap: 8px; }
.featured-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
}
.featured-item__img {
  width: 80px; height: 60px; flex: none;
  background: var(--ink-100) center/cover no-repeat;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-size: 11px;
  border: 1px solid var(--ink-200);
}
.featured-item__noimg { font-size: 11px; color: var(--ink-400); }
.featured-item__fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.featured-item__slug {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--ink-200); border-radius: 5px;
  font-family: ui-monospace, monospace; font-size: 13px;
  background: white;
}
.featured-item__actions { display: flex; gap: 6px; align-items: center; }

/* Inline checkbox label (compact, used standalone or below a select) */
.form-inline-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-700);
  cursor: pointer; user-select: none;
}
.form-inline-check input[type="checkbox"] { margin: 0; width: 16px; height: 16px; }
.form-inline-check span { line-height: 1.3; }
/* Variant placed in its own form-grid cell — vertically centers with sibling inputs */
.form-inline-check--cell {
  height: 38px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
}

/* Drag-and-drop reordering of specs rows */
.spec-drag-col { width: 28px; padding: 0 !important; }
.spec-drag {
  width: 28px; padding: 0 4px !important;
  text-align: center;
  cursor: grab;
  color: var(--ink-300);
  user-select: none;
  vertical-align: middle;
}
.spec-drag:active { cursor: grabbing; }
.specs-builder tbody tr:hover .spec-drag { color: var(--ink-600); }
.specs-builder tbody tr.spec-row--dragging { opacity: 0.4; }
.specs-builder tbody tr.spec-row--over td { box-shadow: inset 0 2px 0 0 var(--teal-500); }

/* Order variants list in admin orders table */
.ord-variants {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-600);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: baseline;
}
.ord-variants li { display: contents; }
.ord-variant__group { color: var(--ink-500); }
.ord-variant__value { color: var(--ink-800); font-weight: 600; }
.ord-variant__price { color: var(--teal-700); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ord-total { font-weight: 700; color: var(--teal-700); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-price { white-space: nowrap; }
.ord-delivery { margin-top: 8px; padding: 6px 10px; background: var(--teal-50); border-left: 3px solid var(--teal-500); border-radius: 4px; font-size: 12px; color: var(--ink-700); }
.ord-delivery strong { color: var(--teal-700); }

/* Translation status page tabs */
.tl-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--ink-200); }
.tl-tab { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--ink-500); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s ease, border-color .15s ease; }
.tl-tab:hover { color: var(--ink-800); }
.tl-tab--active { color: var(--teal-700); border-bottom-color: var(--teal-600); }

/* Translation status page */
.tl-img-cell { width: 60px; padding: 8px !important; }
.tl-img-cell img { width: 44px; height: 44px; object-fit: contain; background: var(--ink-50); border-radius: 6px; padding: 3px; box-sizing: border-box; }
.tl-noimg { width: 44px; height: 44px; background: var(--ink-100); border-radius: 6px; }
.tl-langs-cell { width: 360px; }
.tl-lang { display: flex; align-items: center; gap: 8px; margin: 4px 0; cursor: help; }
.tl-lang__flag { font-size: 14px; width: 18px; }
.tl-lang__pct { font-size: 12px; font-weight: 600; color: var(--ink-600); width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-lang__pct--ok { color: #15803d; }
.tl-bar { flex: 1; height: 6px; background: var(--ink-100); border-radius: 100px; overflow: hidden; }
.tl-bar__fill { height: 100%; transition: width .3s ease; }
.tl-bar__fill.tl-bar--green { background: #15803d; }
.tl-bar__fill.tl-bar--amber { background: #f59e0b; }
.tl-bar__fill.tl-bar--red { background: #ef4444; }

/* Cart-order items list (multi-line orders) */
.ord-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
/* Grid: title column (flexible, shrinkable) + meta column (auto for qty+price) */
.ord-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--ink-150); width: 100%; box-sizing: border-box; }
.ord-item:last-child { border-bottom: 0; }
.ord-item__main { display: contents; }
.ord-item__title { grid-column: 1; min-width: 0; font-weight: 600; color: var(--ink-900); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.ord-item__meta { grid-column: 2; display: flex; align-items: baseline; gap: 14px; font-variant-numeric: tabular-nums; }
.ord-item__qty { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.ord-item__price { font-size: 13px; font-weight: 700; color: var(--teal-700); white-space: nowrap; }
/* Variants — в column 1 только, ограничены шириной title */
.ord-item__variants { grid-column: 1; min-width: 0; max-width: 100%; font-size: 11px; color: var(--ink-500); margin-top: 2px; overflow-wrap: anywhere; word-break: break-word; }
.ord-item__variants > span:not(:first-child)::before { content: ' · '; color: var(--ink-300); }
.ord-item__variants strong { color: var(--ink-700); font-weight: 600; }

/* ====== Analytics Dashboard ====== */
.an-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--ink-200); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.an-tab { padding: 10px 18px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--ink-500); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; white-space: nowrap; text-decoration: none; }
.an-tab:hover { color: var(--ink-800); }
.an-tab.active { color: var(--teal-700); border-bottom-color: var(--teal-500); }
.an-panel { animation: anFade .2s ease; }
@keyframes anFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.an-rt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; background: linear-gradient(90deg, var(--teal-50), #fff); border: 1px solid var(--teal-200, #ccfbf1); border-radius: 10px; }
.an-rt__pulse { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: anPulse 2s infinite; }
@keyframes anPulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.6); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.an-rt__num { font-size: 22px; font-weight: 800; color: var(--teal-700); }
.an-rt__lbl { font-size: 13px; color: var(--ink-700); }
.an-rt__events { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.an-rt__ev { font-size: 11px; padding: 3px 8px; background: #fff; border: 1px solid var(--ink-150); border-radius: 100px; color: var(--ink-600); }
.an-rt__ev b { color: var(--teal-700); font-weight: 700; margin-left: 3px; }

.an-period { font-size: 12px; color: var(--ink-600); margin-bottom: 10px; padding: 6px 10px; background: var(--ink-50); border-radius: 6px; display: inline-block; }
.an-period b { color: var(--ink-900); }
.an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 22px; }
.an-card { background: #fff; border: 1px solid var(--ink-150); border-radius: 10px; padding: 14px 16px; }
.an-card__lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); margin-bottom: 6px; font-weight: 600; }
.an-card__val { font-size: 26px; font-weight: 800; color: var(--ink-900); line-height: 1; font-variant-numeric: tabular-nums; }
.an-card__sub { font-size: 11px; color: var(--ink-500); margin-top: 6px; }
.an-delta { font-weight: 700; }
.an-delta--up { color: #059669; }
.an-delta--down { color: #dc2626; }

.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 1100px) { .an-grid { grid-template-columns: 1fr; } }

.an-block { background: #fff; border: 1px solid var(--ink-150); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.an-block h2 { font-size: 14px; font-weight: 700; color: var(--ink-800); margin: 0 0 12px 0; display: flex; align-items: center; gap: 6px; }
.an-block__sub { font-size: 11px; font-weight: 500; color: var(--ink-500); }
.an-empty { font-size: 12px; color: var(--ink-500); padding: 12px 0; }

.an-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.an-table th { text-align: left; font-weight: 600; color: var(--ink-500); padding: 6px 8px; border-bottom: 1px solid var(--ink-150); font-size: 11px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.an-table td { padding: 7px 8px; border-bottom: 1px dashed var(--ink-100); color: var(--ink-700); font-variant-numeric: tabular-nums; }
.an-table tbody tr:hover td { background: #f9fafb; }
.an-table th:not(:first-child), .an-table td:not(:first-child) { text-align: right; }
.an-table b { color: var(--ink-900); font-weight: 700; }
.an-query { color: var(--ink-800); font-weight: 500; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-path { color: var(--ink-700); font-family: ui-monospace, monospace; font-size: 11.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-path a { color: var(--teal-700); text-decoration: none; }
.an-path a:hover { text-decoration: underline; }
.an-title-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-700); font-size: 11.5px; }
.an-src { color: var(--ink-600); font-size: 11.5px; font-family: ui-monospace, monospace; }
.an-key { color: #f59e0b; font-size: 11px; }
.pos-top { color: #059669; font-weight: 700; }
.pos-good { color: var(--teal-700); font-weight: 600; }
.pos-mid { color: var(--ink-600); }
.pos-low { color: var(--ink-400); }

/* Daily chart */
.an-chart-legend { display: flex; gap: 16px; font-size: 11px; color: var(--ink-600); margin-bottom: 10px; flex-wrap: wrap; }
.an-leg { display: inline-flex; align-items: center; gap: 5px; }
.an-leg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.an-leg--users::before { background: var(--teal-600, #0d9488); }
.an-leg--views::before { background: #93c5fd; }
.an-leg--empty::before { background: var(--ink-150); }
.an-chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding: 4px 0; border-bottom: 1px solid var(--ink-150); position: relative; }
.an-day { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: help; }
.an-bars { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 160px; }
.an-bar-stack { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.an-bar__val { font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 11px; margin-bottom: 1px; }
.an-bar__val--users { color: var(--teal-700, #0f766e); }
.an-bar__val--views { color: #2563eb; }
.an-bar__val--empty { color: var(--ink-300); font-weight: 400; }
.an-bar { width: 100%; border-radius: 2px 2px 0 0; transition: opacity .15s; }
.an-bar--users { background: var(--teal-600, #0d9488); }
.an-bar--views { background: #93c5fd; }
.an-bar--placeholder { height: 3px; background: var(--ink-150); border-radius: 2px; }
.an-day--empty .an-day__lbl { color: var(--ink-300); }
.an-day:hover .an-bar { opacity: .7; }
.an-day__lbl { font-size: 9.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; white-space: nowrap; transform-origin: center; }
@media (max-width: 900px) {
  .an-day__lbl { writing-mode: vertical-rl; transform: rotate(180deg); }
}

/* Image preview grid */
.image-preview {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; margin-top: 12px;
}
.img-thumb {
  position: relative; aspect-ratio: 1;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--ink-100); border: 1px solid var(--ink-200);
  cursor: grab; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.img-thumb:hover { border-color: var(--teal-400); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.img-thumb:active { cursor: grabbing; }
.img-thumb--dragging { opacity: .4; transform: scale(.96); }
.img-thumb--over { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(31,145,137,.25); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.img-thumb__del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: white; border: 0;
  cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.img-thumb__del:hover { background: var(--danger); }
