:root {
  --bg: #0d0d0c;
  --bg-soft: #141413;
  --surface: #191918;
  --surface-2: #22211f;
  --surface-3: #2a2825;
  --line: #3a352e;
  --line-strong: #5a4b3b;
  --text: #f7f3ec;
  --muted: #b7aea2;
  --soft: #e7ded3;
  --green: #ff8a1d;
  --green-dark: #b95b0e;
  --amber: #ffad42;
  --cyan: #ff8a1d;
  --orange: #ff8a1d;
  --orange-2: #ffb347;
  --red: #ff725f;
  --ink: #0b0d0c;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius: 8px;
  --confed-css-loaded: 1;
  color-scheme: dark;
  font-family: "Questrial", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 138, 29, 0.08), transparent 280px),
    linear-gradient(90deg, rgba(255, 179, 71, 0.05), transparent 460px),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 12, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner,
.admin-topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 138, 29, 0.55);
  border-radius: var(--radius);
  background: #21150d;
  color: var(--green);
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.admin-link,
.secondary-button,
.ghost-button,
.mini-button,
.danger-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 24, 0.82);
  color: var(--text);
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.admin-link:hover,
.secondary-button:hover,
.ghost-button:hover,
.mini-button:hover {
  border-color: var(--cyan);
}

.danger-button {
  color: #ffd9d3;
  border-color: rgba(255, 114, 95, 0.42);
  background: rgba(255, 114, 95, 0.08);
}

main {
  overflow: hidden;
}

.market-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 34px;
  display: grid;
  gap: 18px;
}

.market-stage {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 138, 29, 0.22), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(255, 138, 29, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 138, 29, 0.1), transparent 44%),
    linear-gradient(180deg, #1a1a18, #10100f);
  box-shadow: var(--shadow);
}

.market-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 138, 29, 0.34) 1px, transparent 1px),
    linear-gradient(rgba(255, 138, 29, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 29, 0.08) 1px, transparent 1px);
  background-size: 30px 30px, 44px 44px, 44px 44px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 82%, transparent);
  animation: webDrift 14s linear infinite;
}

.market-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.market-motion span {
  position: absolute;
  width: 68%;
  height: 74px;
  right: -12%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 29, 0.5), rgba(255, 179, 71, 0.62), transparent);
  filter: blur(1px);
  transform: rotate(-18deg);
  animation: marketSweep 7s linear infinite;
}

.market-motion::before,
.market-motion::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    conic-gradient(from 90deg at 50% 50%, transparent 0 18deg, rgba(255, 138, 29, 0.18) 19deg 21deg, transparent 22deg 44deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 38px, rgba(255, 138, 29, 0.12) 39px 40px);
  opacity: 0.34;
  animation: webSpin 28s linear infinite;
}

.market-motion::after {
  animation-direction: reverse;
  opacity: 0.2;
}

.market-motion span:nth-child(1) {
  top: 26px;
}

.market-motion span:nth-child(2) {
  top: 118px;
  animation-delay: -2.4s;
  opacity: 0.62;
}

.market-motion span:nth-child(3) {
  top: 196px;
  animation-delay: -4.6s;
  opacity: 0.42;
}

.market-title {
  position: relative;
  z-index: 2;
  min-height: 250px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.market-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.market-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 138, 29, 0.34);
  border-radius: 999px;
  background: rgba(13, 13, 12, 0.72);
  color: var(--soft);
  padding: 0 12px;
}

.market-flags {
  gap: 7px;
}

.market-flags i {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 138, 29, 0.08);
  font-style: normal;
  font-size: 1rem;
}

@keyframes marketSweep {
  from {
    transform: translateX(0) rotate(-18deg);
  }
  to {
    transform: translateX(-165%) rotate(-18deg);
  }
}

@keyframes webSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes webDrift {
  to {
    background-position: 30px 30px, 44px 44px, 44px 44px;
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  letter-spacing: 0;
}

.hero-text {
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-actions {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(25, 25, 24, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.search-field,
.stock-form label,
.login-form label,
.mini-search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.search-field input,
.stock-form input,
.stock-form select,
.stock-form textarea,
.login-form input,
.mini-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1210;
  color: var(--text);
  min-height: 46px;
  padding: 0 14px;
  outline: none;
}

.stock-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.search-field input:focus,
.stock-form input:focus,
.stock-form select:focus,
.stock-form textarea:focus,
.login-form input:focus,
.mini-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 200, 119, 0.12);
}

.filter-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f1513;
  color: var(--soft);
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: rgba(55, 214, 127, 0.8);
  background: rgba(55, 214, 127, 0.14);
  color: var(--green);
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.notify-button,
.telegram-inline {
  min-height: 42px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 700;
}

.notify-button {
  border: 1px solid rgba(238, 192, 99, 0.52);
  background: rgba(238, 192, 99, 0.11);
  color: var(--amber);
}

.notify-button:hover {
  border-color: var(--amber);
  background: rgba(238, 192, 99, 0.17);
}

.telegram-inline {
  border: 1px solid rgba(255, 138, 29, 0.42);
  background: rgba(255, 138, 29, 0.1);
  color: var(--cyan);
  white-space: nowrap;
}

.notify-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.featured-section,
.country-row,
.admin-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
}

.featured-section {
  padding: 22px 0 10px;
}

.country-row {
  border-top: 1px solid rgba(61, 75, 69, 0.58);
  padding-top: 24px;
  margin-bottom: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

.count-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: #0f1513;
  font-size: 0.85rem;
  white-space: nowrap;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.featured-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.stock-card,
.metric-card,
.analytics-panel,
.stock-form,
.stock-list-panel,
.admin-stock-item,
.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stock-card {
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.stock-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.stock-card.is-featured {
  border-color: rgba(238, 192, 99, 0.72);
  background: #171c18;
}

.stock-card.is-target {
  border-color: rgba(49, 200, 119, 0.88);
  box-shadow: 0 0 0 3px rgba(49, 200, 119, 0.14), var(--shadow);
}

.stock-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: #111614;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stock-image img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.stock-card:hover .stock-image img {
  transform: scale(1.03);
}

.image-placeholder {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(98, 198, 182, 0.36);
  color: var(--cyan);
  font-weight: 900;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  border-radius: 999px;
  min-height: 25px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--soft);
}

.badge-featured {
  border-color: rgba(240, 184, 79, 0.62);
  color: var(--amber);
  background: rgba(240, 184, 79, 0.1);
}

.badge-country {
  border-color: rgba(255, 138, 29, 0.44);
  color: var(--cyan);
  background: rgba(255, 138, 29, 0.08);
}

.stock-card h3 {
  min-height: 2.6em;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.stock-description {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.stock-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.stock-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--bg-soft);
}

.stock-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stock-meta dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.updated-at {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.inquiry-button,
.primary-button {
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(55, 214, 127, 0.18);
}

.inquiry-button:hover,
.primary-button:hover {
  background: #46d986;
}

.empty-state {
  min-height: 132px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.empty-state strong {
  color: var(--text);
}

.empty-state.slim {
  min-height: 88px;
}

.telegram-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-height: 52px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--orange);
  color: #15100b;
  box-shadow: 0 18px 40px rgba(255, 138, 29, 0.28);
  font-weight: 900;
}

.telegram-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

body.modal-open {
  overflow: hidden;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 12, 0.78);
  color: var(--text);
  padding: 0 12px;
}

.modal-gallery {
  display: grid;
  gap: 10px;
  align-content: start;
}

.modal-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.modal-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.modal-content {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 34px 4px 4px;
}

.modal-content h2 {
  overflow-wrap: anywhere;
}

.modal-description {
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-body {
  background: var(--bg);
}

.admin-shell {
  min-height: 100vh;
}

.login-panel {
  width: min(440px, calc(100% - 32px));
  margin: 9vh auto;
  padding: 26px;
}

.login-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.login-copy h1 {
  font-size: 2rem;
  margin-bottom: 0;
}

.login-copy p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.login-form {
  display: grid;
  gap: 14px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-section {
  padding-top: 30px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 15px;
  min-height: 96px;
  display: grid;
  align-content: space-between;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.metric-card strong {
  font-size: 1.7rem;
  overflow-wrap: anywhere;
}

.admin-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.stock-form,
.stock-list-panel,
.analytics-panel {
  padding: 18px;
}

.stock-form {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.file-drop small {
  color: var(--muted);
  font-weight: 500;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.switch {
  min-height: 58px;
  min-width: 108px;
  padding: 12px 14px;
  display: inline-grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 800;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.form-message,
.form-error {
  margin: 0;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 800;
}

.form-message {
  color: var(--green);
  background: rgba(49, 200, 119, 0.12);
}

.form-error {
  color: #ffd9d3;
  background: rgba(255, 114, 95, 0.12);
}

.mini-search {
  width: min(220px, 100%);
}

.mini-search span {
  font-size: 0.75rem;
}

.mini-search input {
  min-height: 38px;
}

.admin-stock-list {
  display: grid;
  gap: 10px;
}

.admin-stock-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  box-shadow: none;
}

.admin-stock-item.is-sold {
  opacity: 0.62;
}

.admin-stock-thumb {
  width: 74px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--cyan);
  font-weight: 900;
}

.admin-stock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-stock-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.admin-stock-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-stock-title {
  display: grid;
  gap: 4px;
}

.admin-stock-title span,
.admin-stock-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stock-title strong {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.admin-stock-tags,
.admin-stock-main small {
  color: var(--muted);
}

.admin-stock-tags {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-stock-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: none;
}

.stock-row-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
}

.stock-row-stats span {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  display: grid;
  align-content: center;
  padding: 5px 8px;
  font-size: 0.76rem;
}

.stock-row-stats strong {
  color: var(--orange);
  font-size: 0.98rem;
  line-height: 1;
}

.mini-button,
.danger-button {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.analytics-panel h3 {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  gap: 7px;
  align-items: end;
  min-height: 170px;
}

.bar-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  align-items: end;
}

.bar {
  width: 100%;
  max-width: 22px;
  min-height: 8px;
  border-radius: 6px 6px 0 0;
  background: var(--green);
}

.bar-item small,
.bar-item em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  gap: 8px;
}

.rank-item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.rank-item strong,
.rank-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item span {
  color: var(--muted);
}

.rank-item i {
  display: block;
  height: 7px;
  min-width: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.activity-log {
  display: grid;
  gap: 10px;
}

.log-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.log-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.panel-heading {
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
  font-size: 1.25rem;
}

.activity-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.activity-item span,
.activity-item small {
  color: var(--muted);
  min-width: 0;
}

@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-hero,
  .admin-layout,
  .analytics-grid,
  .log-split {
    grid-template-columns: 1fr;
  }

  .market-hero {
    padding-top: 34px;
    gap: 24px;
  }

  .stock-form {
    position: static;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .admin-topbar,
  .market-hero,
  .featured-section,
  .country-row,
  .admin-section,
  .admin-layout {
    width: min(100% - 24px, 1180px);
  }

  .header-inner,
  .admin-topbar {
    min-height: 66px;
  }

  .brand small {
    display: none;
  }

  .admin-actions {
    justify-content: flex-end;
  }

  .admin-actions button {
    min-height: 36px;
    padding: 0 10px;
  }

  h1 {
    font-size: 3rem;
  }

  .market-title {
    min-height: 220px;
    padding: 24px;
  }

  .section-heading,
  .section-heading.compact {
    align-items: start;
    flex-direction: column;
  }

  .stock-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .stock-card h3 {
    min-height: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-stock-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-stock-thumb {
    width: 58px;
  }

  .admin-stock-actions {
    max-width: none;
    justify-content: stretch;
  }

  .stock-row-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-stock-actions button {
    flex: 1 1 92px;
  }

  .activity-item {
    grid-template-columns: 1fr;
  }

  .telegram-float {
    right: 12px;
    bottom: 12px;
    min-height: 48px;
  }

  .modal-dialog {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .modal-content {
    padding-top: 8px;
  }
}
