:root {
  color-scheme: dark;
  --bg: #090608;
  --bg-2: #15090c;
  --panel: rgba(22, 14, 17, 0.82);
  --panel-strong: #1d1014;
  --card: rgba(255, 255, 255, 0.055);
  --text: #fff6f6;
  --muted: #bba7a9;
  --line: rgba(255, 255, 255, 0.12);
  --red: #ff1734;
  --red-2: #b90017;
  --gold: #ffbf63;
  --pink: #ff6b7d;
  --green: #34e29a;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --cursor-x: 50vw;
  --cursor-y: 30vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 23, 52, 0.22), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(255, 191, 99, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg-2) 54%, #060406);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

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

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

button {
  color: inherit;
}

.cursor-aura {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(255, 23, 52, 0.22), transparent 0 180px),
    radial-gradient(circle at calc(var(--cursor-x) + 70px) calc(var(--cursor-y) + 40px), rgba(255, 191, 99, 0.16), transparent 0 120px);
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

body.has-pointer .cursor-aura {
  opacity: 1;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 24px rgba(255, 23, 52, 0.85);
  opacity: 0.7;
  animation: floatParticle 12s linear infinite;
}

.p1 { left: 8%; top: 86%; animation-duration: 11s; }
.p2 { left: 28%; top: 74%; animation-duration: 16s; background: var(--gold); }
.p3 { left: 48%; top: 92%; animation-duration: 13s; }
.p4 { left: 72%; top: 82%; animation-duration: 18s; background: var(--pink); }
.p5 { left: 88%; top: 70%; animation-duration: 14s; }

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 23, 52, 0.16) 45%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: scanSweep 7s ease-in-out infinite;
}

.ambient-layer::before,
.ambient-layer::after {
  content: "";
  position: absolute;
  width: 28vw;
  min-width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.18;
  animation: glowDrift 9s ease-in-out infinite alternate;
}

.ambient-layer::before {
  right: -8vw;
  top: 18vh;
  background: var(--red);
}

.ambient-layer::after {
  left: -10vw;
  bottom: 6vh;
  background: var(--gold);
  animation-delay: -3s;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.hero-banner {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(8, 5, 7, 0.68), rgba(22, 8, 11, 0.88)),
    url("assets/stream-command-center.png") center/cover;
  box-shadow: var(--shadow);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 40%, rgba(255, 23, 52, 0.32), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255, 23, 52, 0.22), transparent);
  animation: bannerPulse 4.8s ease-in-out infinite;
}

.hero-banner > * {
  position: relative;
}

.profile-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 210px;
  aspect-ratio: 1;
}

.profile-orbit::before,
.profile-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 23, 52, 0.55);
  box-shadow: 0 0 44px rgba(255, 23, 52, 0.26);
  animation: orbitSpin 8s linear infinite;
}

.profile-orbit::after {
  inset: 18px;
  border-color: rgba(255, 191, 99, 0.38);
  animation-duration: 5s;
  animation-direction: reverse;
}

.profile-orbit:hover::before {
  box-shadow: 0 0 72px rgba(255, 23, 52, 0.42);
}

.profile-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 23, 52, 0.18), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #4b050d, #f0142f 42%, #26070b);
  text-align: center;
  box-shadow: inset 0 0 38px rgba(0, 0, 0, 0.42), 0 18px 60px rgba(255, 23, 52, 0.28);
}

.profile-art::before {
  content: "";
  position: absolute;
  inset: 22px 12px auto;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(16px);
}

.profile-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-art img:not([hidden]) ~ span,
.profile-art img:not([hidden]) ~ strong {
  opacity: 0;
}

.profile-art span,
.profile-art strong {
  position: relative;
  display: block;
  line-height: 1;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
}

.profile-art span {
  font-size: 2.1rem;
  font-weight: 900;
}

.profile-art strong {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 900;
}

.hero-copy {
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.hero-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5.1vw, 4.65rem);
  line-height: 1.08;
  font-weight: 900;
  white-space: nowrap;
}

.hero-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 2;
}

.donate-pill,
.big-link,
.category-btn,
.item-card,
.social-card,
.modal-close {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.donate-pill {
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 191, 99, 0.5);
  border-radius: 8px;
  background: rgba(255, 191, 99, 0.1);
}

.donate-pill span,
.donate-pill strong {
  display: block;
}

.donate-pill span {
  color: var(--gold);
  font-weight: 900;
}

.donate-pill strong {
  direction: ltr;
  font-size: 0.86rem;
}

.panel-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel-layout > *,
.content-area,
.item-card,
.social-card {
  min-width: 0;
}

.sidebar,
.content-area,
.item-modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.sidebar-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-title span {
  font-weight: 900;
}

small {
  color: var(--muted);
}

.category-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: right;
}

.category-btn:hover,
.category-btn.active {
  border-color: rgba(255, 23, 52, 0.62);
  background: rgba(255, 23, 52, 0.14);
  box-shadow: 0 0 34px rgba(255, 23, 52, 0.14);
}

.cat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 8px;
  background: rgba(255, 23, 52, 0.18);
  color: #fff;
  font-weight: 900;
}

.sidebar-card {
  display: grid;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 16px;
  border: 1px solid rgba(52, 226, 154, 0.22);
  border-radius: 8px;
  background: rgba(52, 226, 154, 0.06);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(52, 226, 154, 0.12);
  animation: livePulse 1.7s ease-in-out infinite;
}

.content-area {
  min-height: 620px;
  padding: clamp(14px, 3vw, 22px);
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.welcome-card,
.donate-panel,
.info-strip,
.panel-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.welcome-card,
.donate-panel {
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: clamp(22px, 5vw, 48px);
  text-align: center;
}

.welcome-icon,
.donate-mark {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #5b0710);
  box-shadow: 0 0 54px rgba(255, 23, 52, 0.3);
  font-weight: 900;
  font-size: 1.4rem;
}

.welcome-card h2,
.donate-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
}

.welcome-card p,
.donate-panel p {
  max-width: 680px;
  color: var(--muted);
  line-height: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(820px, 100%);
  margin-top: 22px;
}

.stats-grid div {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.stats-grid div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: translateX(120%);
  animation: cardShimmer 5.6s ease-in-out infinite;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
}

.panel-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 23, 52, 0.4);
  border-radius: 8px;
  color: var(--pink);
  background: rgba(255, 23, 52, 0.1);
  white-space: nowrap;
}

.info-strip {
  padding: 14px 16px;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.items-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.item-card,
.social-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.item-card::after,
.social-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 62%);
  transform: translateX(120%);
}

.item-card:hover::after,
.social-card:hover::after {
  animation: cardShimmer 760ms ease;
}

.item-card::before,
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--local-x, 50%) var(--local-y, 50%), rgba(255, 255, 255, 0.16), transparent 28%);
  transition: opacity 180ms ease;
}

.item-card:hover,
.social-card:hover,
.magnetic:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 23, 52, 0.52);
  box-shadow: 0 18px 46px rgba(255, 23, 52, 0.14);
}

.social-card:hover .logo-icon {
  transform: translateY(-3px) scale(1.08);
  filter: drop-shadow(0 0 18px rgba(255, 23, 52, 0.42));
}

.item-card:hover::before,
.social-card:hover::before {
  opacity: 1;
}

.item-card {
  display: grid;
  align-content: space-between;
  cursor: pointer;
}

.item-card.inactive {
  opacity: 0.55;
}

.item-top,
.social-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.item-icon,
.social-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 23, 52, 0.15);
  color: #fff;
  font-weight: 900;
}

.logo-icon {
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: transparent !important;
  border-radius: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-image {
  position: relative;
  width: 100%;
  height: 118px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
}

.admin-thumb {
  width: 62px;
  height: 62px;
  margin-bottom: 0;
}

.item-card h3,
.social-card h3 {
  position: relative;
  margin: 16px 0 8px;
  font-size: 1.25rem;
}

.item-card p,
.social-card p {
  position: relative;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.price-tag {
  position: relative;
  direction: ltr;
  display: inline-flex;
  justify-content: flex-end;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 900;
}

.donate-action {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid rgba(255, 191, 99, 0.42);
  border-radius: 8px;
  background: rgba(255, 191, 99, 0.1);
  color: #ffe0a5;
  font-weight: 900;
}

.social-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 190px;
  text-align: center;
}

.social-card .social-top {
  justify-content: center;
}

.social-card h3 {
  margin: 16px 0 0;
  font-size: 1.55rem;
}

.social-card .social-icon,
.live-toggle .social-icon {
  background: transparent !important;
}

.big-link {
  direction: ltr;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 191, 99, 0.52);
  border-radius: 8px;
  background: rgba(255, 191, 99, 0.12);
  color: #ffe1a7;
  font-weight: 900;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal-overlay.show {
  display: block;
}

.item-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: min(620px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.item-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-content {
  padding: 30px;
}

.modal-image {
  width: 100%;
  max-height: 260px;
  margin: 16px 0 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.modal-chip {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255, 23, 52, 0.44);
  border-radius: 8px;
  color: var(--pink);
  background: rgba(255, 23, 52, 0.1);
}

.modal-content h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.modal-content p {
  color: var(--muted);
  line-height: 2;
}

.modal-price {
  direction: ltr;
  margin-top: 18px;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 18px 12px 4px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.modal-donate-link {
  margin-top: 18px;
}

.admin-shell {
  padding-bottom: 48px;
}

.admin-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 210px;
}

.login-box {
  display: block;
  width: min(560px, 100%);
  margin: 18px auto 0;
}

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

.admin-editor {
  position: static;
  padding: 14px;
}

.live-admin-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.live-admin-panel h3 {
  margin: 0 0 12px;
}

.live-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.live-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.live-toggle input {
  width: 18px;
  height: 18px;
}

.live-dot.is-live {
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(255, 23, 52, 0.16), 0 0 30px rgba(255, 23, 52, 0.62);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 23, 52, 0.66);
  box-shadow: 0 0 0 4px rgba(255, 23, 52, 0.09);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--pink);
}

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

.switch-line input {
  width: 18px;
  height: 18px;
}

.item-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatParticle {
  from {
    transform: translate3d(0, 0, 0) scale(0.75);
    opacity: 0;
  }
  12% {
    opacity: 0.75;
  }
  to {
    transform: translate3d(36px, -110vh, 0) scale(1.35);
    opacity: 0;
  }
}

@keyframes scanSweep {
  0%,
  54% {
    transform: translateX(-130%);
  }
  74% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes bannerPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

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

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(52, 226, 154, 0.12);
  }
  50% {
    box-shadow: 0 0 0 13px rgba(52, 226, 154, 0.02);
  }
}

@keyframes glowDrift {
  from {
    transform: translate3d(0, 0, 0) scale(0.86);
  }
  to {
    transform: translate3d(34px, -26px, 0) scale(1.1);
  }
}

@keyframes cardShimmer {
  to {
    transform: translateX(-120%);
  }
}

@media (max-width: 980px) {
  .hero-banner {
    grid-template-columns: 1fr;
  }

  .profile-orbit {
    width: 180px;
  }

  .panel-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

  .items-grid,
  .social-grid,
  .stats-grid,
  .live-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .item-card:hover,
  .social-card:hover,
  .magnetic:hover {
    transform: none;
  }

  .cursor-aura {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: 100%;
    padding: 8px 8px 18px;
  }

  .hero-banner {
    min-height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 16px 12px;
    text-align: center;
  }

  .profile-orbit {
    width: 142px;
  }

  .profile-art {
    width: 110px;
    height: 110px;
  }

  .profile-art span {
    font-size: 1.55rem;
  }

  .profile-art strong {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 2rem;
    line-height: 1.28;
    white-space: normal;
  }

  .hero-copy p:last-child {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .panel-layout {
    gap: 10px;
    margin-top: 10px;
  }

  .sidebar,
  .content-area,
  .item-modal {
    border-radius: 8px;
  }

  .sidebar-title {
    padding: 12px;
  }

  .category-list {
    gap: 8px;
    padding: 10px;
  }

  .category-btn {
    min-height: 46px;
    font-size: 0.92rem;
  }

  .cat-icon {
    width: 30px;
    height: 30px;
  }

  .sidebar-card {
    margin: 0 10px 10px;
    padding: 12px;
    text-align: right;
  }

  .content-area {
    min-height: auto;
    padding: 10px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .panel-head h2 {
    font-size: 1.45rem;
  }

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

  .items-grid,
  .stats-grid,
  .live-admin-grid {
    grid-template-columns: 1fr;
  }

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

  .social-card {
    min-height: 132px;
    padding: 12px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .logo-icon {
    width: 64px;
    height: 64px;
  }

  .social-card h3 {
    font-size: 1.08rem;
    margin-top: 10px;
  }

  .item-card {
    min-height: auto;
    padding: 14px;
  }

  .item-card h3 {
    font-size: 1.12rem;
  }

  .item-card p {
    font-size: 0.92rem;
  }

  .item-image {
    height: 104px;
  }

  .welcome-card,
  .donate-panel {
    min-height: auto;
    padding: 24px 14px;
  }

  .welcome-card h2,
  .donate-panel h2 {
    font-size: 1.55rem;
  }

  .welcome-card p,
  .donate-panel p {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .stats-grid {
    gap: 8px;
  }

  .stats-grid div {
    padding: 12px;
  }

  .modal-content {
    padding: 22px 16px;
  }

  .modal-close {
    left: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .category-list,
  .social-grid {
    grid-template-columns: 1fr;
  }
}
