/* ==========================================================================
   TelegramUI - Authentic iOS / Android Telegram Mini App Design System
   Based on @telegram-apps/telegram-ui specifications & guidelines.
   ========================================================================== */

:root {
  /* High-End Graphite & Titanium Color Tokens (Linear / Apple Pro aesthetic) */
  --tgui--bg_color: #090a0d;
  --tgui--secondary_bg_color: #121317;
  --tgui--tertiary_bg_color: #1a1b20;
  --tgui--elevated: #1f2026;
  
  --tgui--text_color: #f4f4f6;
  --tgui--subtitle_text_color: #a1a1aa;
  --tgui--hint_color: #71717a;
  
  --tgui--link_color: #60a5fa;
  --tgui--button_color: #2563eb;
  --tgui--button_text_color: #ffffff;

  --tgui--accent: #3b82f6;
  --tgui--accent-hover: #1d4ed8;
  --tgui--green: #10b981;
  --tgui--green-soft: rgba(16, 185, 129, 0.12);
  --tgui--red: #ef4444;
  --tgui--red-soft: rgba(239, 68, 68, 0.12);
  --tgui--amber: #f59e0b;
  --tgui--amber-soft: rgba(245, 158, 11, 0.12);
  --tgui--purple: #8b5cf6;
  --tgui--blue: #3b82f6;

  --tgui--divider: rgba(255, 255, 255, 0.06);
  --tgui--outline: rgba(255, 255, 255, 0.1);

  --tgui--font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tgui--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --tgui--safe_area_top: env(safe-area-inset-top, 0);
  --tgui--safe_area_bottom: env(safe-area-inset-bottom, 0);

  --tgui--navbar_height: 52px;
  --tgui--tabbar_height: 54px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body.tgui-root {
  font-family: var(--tgui--font-family);
  background-color: var(--tgui--bg_color);
  color: var(--tgui--text_color);
  line-height: 1.4;
  font-size: 15px;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Navigation Bar (Telegram Native Header)
   ========================================================================== */

.tgui-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--tgui--navbar_height) + var(--tgui--safe_area_top));
  padding-top: var(--tgui--safe_area_top);
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 0.5px solid var(--tgui--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  padding-right: 12px;
}

.tgui-navbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--tgui--navbar_height);
}

.tgui-nav-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
}

.tgui-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: #34d399;
  line-height: 1.2;
}

.tgui-nav-status.offline {
  background: transparent;
  border: none;
  color: #f87171;
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #34d399;
  border-radius: 50%;
  margin: 0;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
  flex-shrink: 0;
}

.pulse-dot.red {
  background-color: #f87171;
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: pulse-ring-red 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulse-ring-red {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 4px;
}

.status-dot.green { background: #34d399; box-shadow: 0 0 6px rgba(52, 211, 153, 0.6); }
.status-dot.amber { background: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.6); }
.status-dot.red   { background: #f87171; box-shadow: 0 0 6px rgba(248, 113, 113, 0.6); }

.tgui-navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--tgui--navbar_height);
}

.tgui-pill-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.tgui-pill-balance strong {
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
}

.pill-rub-parens {
  color: #9ca3af;
  font-weight: 500;
  font-size: 10.5px;
  margin-left: 2px;
}

.tgui-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.tgui-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tgui-nav-btn:active {
  transform: scale(0.92);
}

.tgui-nav-btn .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2px;
}

/* ==========================================================================
   Content Area & View Management
   ========================================================================== */

.tgui-content {
  padding-top: 10px;
  padding-bottom: calc(var(--tgui--tabbar_height) + var(--tgui--safe_area_bottom) + 24px);
  min-height: 100vh;
}

.tgui-view {
  display: none;
  animation: tguiFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tgui-view.active {
  display: block;
}

@keyframes tguiFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Telegram Inset Grouped Lists (Section, Cell, Header, Footer)
   ========================================================================== */

.tgui-section-header {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--tgui--hint_color);
  margin: 18px 16px 6px;
}

.tgui-section-footer {
  font-size: 12px;
  color: var(--tgui--hint_color);
  margin: 6px 16px 16px;
  line-height: 1.35;
}

.tgui-section {
  background: rgba(18, 19, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  margin: 0 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.tgui-cell {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 13px;
  min-height: 50px;
  transition: background-color 0.15s ease;
}

.tgui-cell.clickable {
  cursor: pointer;
}

.tgui-cell.clickable:active {
  background-color: rgba(255, 255, 255, 0.05);
}

/* iOS inset separator */
.tgui-cell + .tgui-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 60px;
  right: 0;
  height: 0.5px;
  background-color: var(--tgui--divider);
}

.tgui-cell-before {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tgui-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
}

.tgui-icon-badge svg {
  width: 17px;
  height: 17px;
  stroke: #ffffff;
  stroke-width: 2.2px;
}

/* Refined Titanium-Jewel Badges */
.bg-blue    { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.bg-green   { background: linear-gradient(135deg, #065f46, #10b981); }
.bg-emerald { background: linear-gradient(135deg, #064e3b, #059669); }
.bg-amber   { background: linear-gradient(135deg, #78350f, #d97706); }
.bg-red     { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.bg-purple  { background: linear-gradient(135deg, #581c87, #7c3aed); }
.bg-indigo  { background: linear-gradient(135deg, #312e81, #4338ca); }
.bg-cyan    { background: linear-gradient(135deg, #164e63, #0284c7); }
.bg-yellow  { background: linear-gradient(135deg, #713f12, #ca8a04); }
.bg-gray    { background: linear-gradient(135deg, #27272a, #18181b); }

.tgui-cell-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cell-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--tgui--text_color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-sub {
  font-size: 12px;
  color: var(--tgui--subtitle_text_color);
  line-height: 1.25;
}

.tgui-cell-after {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--tgui--font-mono);
  color: var(--tgui--subtitle_text_color);
}

.badge-value-accent {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--tgui--font-mono);
  color: var(--tgui--green);
}

.badge-status-green {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-status-amber {
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-status-red {
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.chevron {
  width: 14px;
  height: 14px;
  stroke: var(--tgui--hint_color);
  stroke-width: 2.2px;
}

/* ==========================================================================
   Big Balance Hero (Telegram Wallet Style)
   ========================================================================== */

.tgui-hero-banner {
  position: relative;
  text-align: center;
  padding: 24px 18px 18px;
  margin: 0 16px 16px;
  background: linear-gradient(180deg, #181a1f 0%, #101115 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.tgui-hero-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(22px);
}

.hero-top-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tgui--hint_color);
  margin-bottom: 6px;
}

.hero-amount {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.8px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.hero-amount .currency {
  font-size: 24px;
  font-weight: 700;
  color: #60a5fa;
}

.hero-sub-usd {
  font-size: 15px;
  font-weight: 500;
  color: var(--tgui--subtitle_text_color);
  margin-left: 6px;
}

.hero-freeze-row {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding: 5px 14px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-freeze-row .icon-sm {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   Quick Actions Row (Round Circle Action Buttons)
   ========================================================================== */

.tgui-quick-actions-bar {
  display: flex;
  justify-content: space-around;
  padding: 0 16px;
  margin-bottom: 18px;
}

.tgui-circle-action {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.circle-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.tgui-circle-action:hover .circle-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tgui-circle-action:active .circle-icon {
  transform: scale(0.92);
}

.circle-icon svg {
  width: 21px;
  height: 21px;
  stroke: #121317;
  stroke-width: 2.2px;
  fill: none;
}

.circle-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--tgui--text_color);
}

/* ==========================================================================
   Authentic iOS Switch Toggle
   ========================================================================== */

.tgui-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
  cursor: pointer;
}

.tgui-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.tgui-switch-slider {
  position: absolute;
  inset: 0;
  background-color: rgba(120, 120, 128, 0.32);
  border-radius: 31px;
  transition: background-color 0.25s ease;
}

.tgui-switch-slider::before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.36, -0.24, 0.26, 1.32);
}

.tgui-switch input:checked + .tgui-switch-slider {
  background-color: var(--tgui--green);
}

.tgui-switch input:checked + .tgui-switch-slider::before {
  transform: translateX(20px);
}

.tgui-switch-row-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.tgui-switch-row-compact input {
  display: none;
}

.switch-ui-compact {
  width: 32px;
  height: 18px;
  background: rgba(120, 120, 128, 0.3);
  border-radius: 18px;
  position: relative;
  transition: background-color 0.2s;
}

.switch-ui-compact::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.tgui-switch-row-compact input:checked + .switch-ui-compact {
  background: var(--tgui--green);
}

.tgui-switch-row-compact input:checked + .switch-ui-compact::before {
  transform: translateX(14px);
}

.switch-txt {
  font-size: 12px;
  color: var(--tgui--subtitle_text_color);
}

/* ==========================================================================
   Native Segmented Control (iOS / Telegram Style)
   ========================================================================== */

.tgui-segmented-control {
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 3px;
  display: flex;
  margin: 0 16px 12px;
  position: relative;
  backdrop-filter: blur(12px);
}

.tgui-segmented-control.compact {
  margin: 0;
  padding: 2px;
}

.tgui-segmented-control.compact .seg-btn {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 7px;
}

.tgui-segmented-control.scrollable {
  overflow-x: auto;
  scrollbar-width: none;
}

.tgui-segmented-control.scrollable::-webkit-scrollbar {
  display: none;
}

.seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.seg-btn:hover {
  color: #d4d4d8;
}

.seg-btn.active {
  background: #24252c;
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Sticky Bar & Search Field
   ========================================================================== */

.tgui-sticky-bar {
  position: sticky;
  top: calc(var(--tgui--navbar_height) + var(--tgui--safe_area_top) - 1px);
  z-index: 50;
  background: rgba(10, 11, 14, 0.92);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  padding: 8px 16px 10px;
  border-bottom: 0.5px solid var(--tgui--divider);
  margin-bottom: 12px;
}

.tgui-search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #131418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 12px;
  height: 38px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tgui-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: #18191f;
}

.tgui-search-field .search-icon {
  width: 15px;
  height: 15px;
  stroke: var(--tgui--hint_color);
  stroke-width: 2.2px;
  margin-right: 8px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.tgui-search-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.tgui-search-field input::placeholder {
  color: var(--tgui--hint_color);
}

.tgui-chips-scroller {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tgui-chips-scroller::-webkit-scrollbar {
  display: none;
}

.tgui-chip {
  white-space: nowrap;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tgui-chip.active {
  background: #272830;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tgui-sub-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: nowrap;
}

.sub-label {
  font-size: 11px;
  color: var(--tgui--hint_color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tgui-btn-pill-action {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tgui-btn-pill-action:active {
  opacity: 0.8;
}

.spacer {
  flex: 1;
}

/* ==========================================================================
   Feed Cards (Mappings, Products, Lots, Orders)
   ========================================================================== */

.tgui-cards-feed {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tgui-feed-card {
  background: rgba(18, 19, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.tgui-feed-card:active {
  border-color: rgba(255, 255, 255, 0.14);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.feed-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.feed-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.meta-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 8px;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #a1a1aa;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.meta-pill.price {
  font-family: var(--tgui--font-mono);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.feed-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 0.5px solid var(--tgui--divider);
  margin-top: 2px;
}

.btn-cell-action {
  background: #1a1b20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f6;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cell-action:hover {
  background: #24252c;
}

.btn-cell-action:active {
  transform: scale(0.95);
  background: #2a2c34;
}

.btn-cell-action.danger {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-cell-action.danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

/* ==========================================================================
   Repricer Hero Component
   ========================================================================== */

.tgui-repricer-card {
  margin: 0 16px 16px;
  background: linear-gradient(180deg, #181a1f 0%, #101115 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.repricer-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.repricer-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.repricer-sub {
  font-size: 12px;
  color: var(--tgui--hint_color);
}

.tgui-progress-wrapper {
  margin: 12px 0;
}

.tgui-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tgui-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: width 0.3s ease;
}

.tgui-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--tgui--hint_color);
  font-family: var(--tgui--font-mono);
}

.tgui-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.grid-cell {
  background: #131418;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 9px 4px;
  text-align: center;
}

.cell-val {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--tgui--font-mono);
  color: #fff;
}

.cell-val.highlight {
  color: #34d399;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.cell-lbl {
  font-size: 10px;
  font-weight: 500;
  color: var(--tgui--hint_color);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.current-task-pill {
  font-size: 12px;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.current-task-pill .label {
  color: var(--tgui--hint_color);
  margin-right: 4px;
}

.repricer-actions-row {
  display: flex;
  gap: 8px;
}

.repricer-actions-row button {
  flex: 1;
}

/* ==========================================================================
   Buttons (Telegram UI Filled, Plain, Outline)
   ========================================================================== */

.btn-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2px;
  vertical-align: middle;
  display: inline-block;
  flex-shrink: 0;
}

.tgui-btn-filled {
  height: 42px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.35);
}

.tgui-btn-filled:active {
  transform: scale(0.96);
  opacity: 0.88;
}

.tgui-btn-filled.primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tgui-btn-filled.primary:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.tgui-btn-filled.secondary {
  background: #1a1b20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tgui-btn-filled.secondary:hover {
  background: #24252c;
}

.tgui-btn-filled.emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tgui-btn-filled.emerald:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.tgui-btn-filled.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.18));
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.tgui-btn-filled.danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(220, 38, 38, 0.25));
}

.tgui-btn-filled:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.tgui-btn-plain.danger {
  background: none;
  border: none;
  color: #f87171;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.tgui-btn-plain.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.tgui-link-btn {
  background: none;
  border: none;
  color: var(--tgui--link_color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Presets Grid (KOSell & GGSEL Safe Floor)
   ========================================================================== */

.tgui-param-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.param-name {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.param-highlight {
  font-size: 15px;
  font-family: var(--tgui--font-mono);
  color: var(--tgui--link_color);
}

.tgui-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tgui-preset-pill {
  background: #131418;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tgui-preset-pill:hover {
  background: #1c1d23;
  color: #fff;
}

.tgui-preset-pill.active {
  background: linear-gradient(135deg, #2b2d35, #1d1e24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tgui-preset-pill.custom {
  border-style: dashed;
}

/* ==========================================================================
   Subviews for Settings Tabs
   ========================================================================== */

.tgui-subview {
  display: none;
}

.tgui-subview.active {
  display: block;
}

/* ==========================================================================
   Details / Spoiler (Хайдеры)
   ========================================================================== */

details.tgui-spoiler {
  background: #131418;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin: 8px 0 12px;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

details.tgui-spoiler summary {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tgui--hint_color);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.tgui-spoiler summary::-webkit-details-marker {
  display: none;
}

details.tgui-spoiler summary .chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

details.tgui-spoiler[open] summary .chevron {
  transform: rotate(90deg);
}

.spoiler-content {
  padding: 10px 14px 12px;
  font-size: 12px;
  color: var(--tgui--subtitle_text_color);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Form Inputs & Textarea
   ========================================================================== */

.tgui-input, .tgui-native-select, .tgui-textarea {
  width: 100%;
  background: #121317;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tgui-input:focus, .tgui-textarea:focus, .tgui-native-select:focus {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
  background: #17181d;
}

.tgui-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--tgui--hint_color);
  margin-bottom: 5px;
}

.tgui-chip-code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  font-family: var(--tgui--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tgui-chip-code:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Slide-Up Bottom Sheet (Drawer)
   ========================================================================== */

dialog.tgui-bottom-sheet {
  border: none;
  background: transparent;
  width: 100%;
  max-width: 500px;
  margin: auto auto 0;
  padding: 0;
  color: var(--tgui--text_color);
  outline: none;
}

dialog.tgui-bottom-sheet::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sheet-container {
  background: #121317;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: tguiSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tguiSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 38px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  margin: 10px auto 6px;
}

.sheet-header {
  padding: 8px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--tgui--divider);
}

.sheet-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--tgui--hint_color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sheet-body {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.sheet-actions button {
  flex: 1;
}

/* Wizard Steps Indicator */
.tgui-wizard-steps {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--tgui--divider);
  margin-bottom: 14px;
}

.w-step {
  font-size: 11px;
  font-weight: 500;
  color: var(--tgui--hint_color);
}

.w-step.active {
  color: var(--tgui--link_color);
  font-weight: 700;
}

.wizard-page {
  display: none;
}

.wizard-page.active {
  display: block;
}

.eco-summary-card {
  margin: 0 0 14px 0;
  padding: 12px 14px;
  background: #141519;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.eco-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.eco-row.highlight {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 0.5px solid var(--tgui--divider);
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   Telegram Bottom Tabbar
   ========================================================================== */

.tgui-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--tgui--tabbar_height) + var(--tgui--safe_area_bottom));
  padding-bottom: var(--tgui--safe_area_bottom);
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.tgui-tabbar-item {
  position: relative;
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--tgui--hint_color);
  cursor: pointer;
  padding: 8px 0 6px;
  transition: all 0.15s ease;
}

.tgui-tabbar-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 24px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #60a5fa, #93c5fd);
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.6);
}

.tab-icon {
  width: 22px;
  height: 22px;
  stroke: var(--tgui--hint_color);
  stroke-width: 1.9px;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.15s ease;
}

.tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.tgui-tabbar-item.active {
  color: var(--tgui--link_color);
}

.tgui-tabbar-item.active .tab-icon {
  stroke: var(--tgui--link_color);
  transform: translateY(-2px);
}

.tgui-tabbar-item.active .tab-label {
  font-weight: 600;
}

/* Toast */
.tgui-toast {
  position: fixed;
  top: calc(var(--tgui--navbar_height) + var(--tgui--safe_area_top) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(20, 21, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.tgui-loading {
  text-align: center;
  padding: 30px;
  color: var(--tgui--hint_color);
  font-size: 13px;
}

.tgui-pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
}

.tgui-btn-page {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid var(--tgui--divider);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tgui-btn-page:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-counter {
  font-size: 12px;
  color: var(--tgui--hint_color);
  font-family: var(--tgui--font-mono);
}

.tgui-error-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--tgui--bg_color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tgui-error-screen[hidden] {
  display: none !important;
}

.error-card {
  text-align: center;
  max-width: 320px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.error-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

/* ==========================================================================
   Catalog & Details Sheet Enhancements
   ========================================================================== */

.feed-card-with-thumb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feed-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.feed-card-thumb-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.cell-link {
  color: var(--tgui--link_color, #38bdf8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.cell-link:hover {
  text-decoration: underline;
}

.code-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 110px;
  overflow-y: auto;
  line-height: 1.4;
  margin-top: 6px;
}

.price-highlight {
  font-size: 22px;
  font-weight: 800;
  color: var(--tgui--green, #34d399);
  letter-spacing: -0.5px;
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.clickable-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.clickable-card:active {
  transform: scale(0.985);
}

.sup-filter-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.sup-filter-row-cats {
  display: flex;
  gap: 8px;
}

.sup-filter-row-cats select {
  flex: 1;
  min-width: 0;
}

.sup-filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sup-filter-row-bottom select {
  flex: 1;
  min-width: 0;
}

.error-card p {
  font-size: 13px;
  color: var(--tgui--hint_color);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* ==========================================================================
   Supplier URL / ID Resolve Card
   ========================================================================== */
.resolve-card {
  background: rgba(18, 19, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  margin: 4px 16px 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.resolve-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.resolve-card-title .resolve-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

.resolve-card-desc {
  font-size: 13px;
  color: var(--tgui--hint_color, #8e8e93);
  line-height: 1.45;
  margin-bottom: 16px;
}

.resolve-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.resolve-input-group .tgui-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  background: #17181d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-sizing: border-box;
  color: #fff;
}

.resolve-input-group .tgui-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: #1a1b22;
}

.resolve-input-group .tgui-btn-filled {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resolve-sources-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.resolve-sources-label {
  font-size: 11px;
  color: var(--tgui--hint_color, #71717a);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 2px;
}

.resolve-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.dot-green { width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.dot-blue { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; }
.dot-purple { width: 7px; height: 7px; border-radius: 50%; background: #a855f7; }
.dot-orange { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }

.resolve-preview-box {
  margin-top: 16px;
}

/* Product Card Result */
.resolve-product-card {
  background: #16171d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.resolve-product-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.resolve-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #24252f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.resolve-product-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resolve-product-info {
  flex: 1;
  min-width: 0;
}

.resolve-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.resolve-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.badge-stock-in { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); text-transform: none; }
.badge-stock-out { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); text-transform: none; }

.resolve-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
  margin-bottom: 6px;
}

.resolve-product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resolve-product-price {
  font-size: 17px;
  font-weight: 700;
  color: #10b981;
}

.resolve-product-hours {
  font-size: 12px;
  color: #a1a1aa;
}

.resolve-product-cats {
  font-size: 12px;
  color: var(--tgui--hint_color, #71717a);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.resolve-product-actions {
  margin-top: 4px;
}

.w-full {
  width: 100%;
}

/* Error Card Result */
.resolve-error-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.resolve-error-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.resolve-error-content {
  flex: 1;
}

.resolve-error-title {
  font-size: 14px;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 4px;
}

.resolve-error-desc {
  font-size: 12px;
  color: #d4d4d8;
  line-height: 1.4;
}
