:root {
  --bg: #160708;
  --bg-soft: #1a0a0d;
  --panel: rgba(43, 10, 16, 0.9);
  --panel-2: rgba(52, 14, 20, 0.92);
  --panel-3: rgba(83, 17, 29, 0.74);
  --primary: #e11d48;
  --primary-light: #fb7185;
  --primary-deep: #be123c;
  --gold: #d4af37;
  --gold-soft: #ffe08a;
  --text: #f5e8eb;
  --muted: #c8aeb5;
  --dim: #8e6d75;
  --line: rgba(255, 196, 210, 0.12);
  --success: #45d483;
  --warn: #ffb84d;
  --danger: #ff6988;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 28%),
    linear-gradient(180deg, #25080d 0%, #160708 34%, #130507 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 82%);
  pointer-events: none;
}

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

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

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px 14px 110px;
}

.phone-frame {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: calc(100vh - 36px);
  background:
    linear-gradient(180deg, rgba(50, 10, 18, 0.88), rgba(26, 8, 12, 0.98)),
    var(--bg);
  border: 1px solid rgba(255, 183, 196, 0.1);
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.page-content {
  padding: 16px;
}

.auth-shell .phone-frame {
  max-width: 430px;
}

.auth-page {
  min-height: calc(100vh - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 390px);
  padding: 28px 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(68, 17, 29, 0.94), rgba(24, 8, 12, 0.96));
  border: 1px solid rgba(255, 196, 210, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title {
  margin: 14px 0 8px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
}

.tab {
  padding: 11px 14px;
  border-radius: 999px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.35);
}

.form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.control,
.textarea,
.select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}

.textarea {
  min-height: 124px;
  resize: vertical;
}

.control-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
}

.control-row.two {
  grid-template-columns: 92px 1fr;
}

.prefix,
.suffix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4d79, #e11d48 55%, #be123c);
  color: #fff;
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.34);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe49a, #d4af37);
  color: #5d3500;
}

.muted-link {
  color: var(--gold-soft);
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 14px;
}

.topbar-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: lowercase;
  flex: 1;
  text-align: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 210, 220, 0.12);
  background: #d12977;
}

.page-intro {
  margin: 4px 0 14px;
}

.page-intro h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.page-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-banner--compact img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #d12977;
}

.hero-banner--compact {
  padding: 8px;
}

.hero-banner--panel {
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.18), transparent 14%),
    linear-gradient(135deg, rgba(255,85,129,0.98), rgba(182,18,60,0.96) 55%, rgba(68,12,24,0.98));
}

.top-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-note {
  color: var(--muted);
  font-size: 13px;
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
}

.hero-banner.hero-banner--compact img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb7185, #7f1d1d);
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-name {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
}

.hero-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
}

.vip-chip,
.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.vip-chip,
.badge.gold {
  background: linear-gradient(135deg, #ffe699, #d4af37);
  color: #6b3d03;
}

.badge.hot {
  background: rgba(255, 122, 122, 0.16);
  color: #ff8da7;
}

.status-pill.success {
  background: rgba(69, 212, 131, 0.14);
  color: #6df0a6;
}

.status-pill.warn {
  background: rgba(255, 184, 77, 0.14);
  color: #ffd27f;
}

.status-pill.danger {
  background: rgba(255, 105, 136, 0.14);
  color: #ff9db3;
}

.card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(74, 14, 25, 0.8), rgba(34, 8, 13, 0.94));
  border: 1px solid rgba(255, 188, 202, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.card-hero {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 18%),
    linear-gradient(135deg, rgba(255,77,121,0.98), rgba(176,18,57,0.98) 56%, rgba(74,12,22,0.98));
}

.card-hero.gold {
  color: #5d3600;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.32), transparent 18%),
    linear-gradient(135deg, #ffe8a5, #d7ae39 58%, #a97714 100%);
}

.card-hero.green {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(135deg, #2daf74, #187754 58%, #114939 100%);
}

.section-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title h3,
.section-head h3 {
  margin: 0;
  font-size: 18px;
}

.section-title span,
.section-head span {
  color: var(--muted);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  padding: 14px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.stat-box .label-sm {
  color: var(--dim);
  font-size: 11px;
}

.stat-box .amount {
  margin-top: 8px;
  color: var(--gold-soft);
  font-size: 18px;
  font-weight: 800;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.action-btn {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 16px 24px rgba(225, 29, 72, 0.3);
  border: 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.quick-item {
  text-align: center;
}

.quick-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(228, 32, 80, 0.28), rgba(84, 19, 29, 0.52));
  border: 1px solid rgba(255, 183, 196, 0.12);
}

.quick-item.active .quick-icon {
  background: linear-gradient(135deg, #f3cd54, #d4af37);
  color: #613b04;
}

.quick-item small {
  color: var(--muted);
}

.promo-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f1d575, #b58a1d);
  color: #5c3300;
}

.promo-figure {
  font-size: 42px;
  text-align: center;
}

.mini-title {
  color: var(--dim);
  font-size: 12px;
}

.cta-copy {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.cta-copy .control {
  padding-block: 12px;
}

.product-switch,
.pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scroll-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.scroll-tabs::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: transparent;
}

.product-card,
.list-card,
.notice-card,
.blog-post,
.task-card,
.record-card {
  margin-top: 14px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(79, 17, 28, 0.92), rgba(32, 8, 13, 0.96));
  border: 1px solid rgba(255, 188, 202, 0.1);
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-toolbar .pill-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-toolbar .pill-tabs::-webkit-scrollbar {
  display: none;
}

.product-image {
  height: 240px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.28), transparent 13%),
    linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,0.35) 100%);
}

.product-meta {
  position: absolute;
  inset: 14px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-tags {
  display: flex;
  gap: 8px;
}

.product-name {
  font-size: 28px;
  font-weight: 800;
  margin-top: auto;
}

.product-body,
.list-card-body,
.notice-body,
.blog-body,
.task-body,
.record-body {
  padding: 16px;
}

.notice-text {
  white-space: pre-line;
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric {
  padding: 12px 8px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: var(--gold-soft);
}

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

.bottom-row.start {
  align-items: flex-start;
}

.price {
  font-size: 30px;
  font-weight: 900;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.summary-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(19, 5, 7, 0.96);
  backdrop-filter: blur(18px);
}

.summary-bar .btn {
  width: auto;
  min-width: 162px;
}

.summary-meta {
  min-width: 0;
}

.summary-meta .price {
  font-size: 24px;
}

.choice-list,
.menu-list,
.timeline,
.records,
.rules-list,
.bank-card-list {
  display: grid;
  gap: 12px;
}

.choice-card,
.menu-item,
.timeline-item,
.rule-item,
.bank-card,
.upload-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.choice-card.active {
  border-color: rgba(255, 183, 196, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 183, 196, 0.12) inset;
}

.choice-card .small + .small {
  margin-top: 4px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6b90, #d81d49);
}

.menu-icon.gold {
  background: linear-gradient(135deg, #ffe08a, #d4af37);
  color: #6a3f04;
}

.menu-icon.orange {
  background: linear-gradient(135deg, #ffb86c, #ff7a1f);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.list-row.wrap {
  align-items: flex-start;
  flex-wrap: wrap;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe08a, #e11d48);
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar .cell {
  padding: 10px 6px;
  min-height: 68px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.calendar .cell.done {
  background: linear-gradient(180deg, rgba(225, 29, 72, 0.28), rgba(225, 29, 72, 0.12));
  border-color: rgba(255, 183, 196, 0.2);
}

.calendar .cell.today {
  border-color: rgba(255, 224, 138, 0.45);
}

.calendar .day-badge {
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.calendar .cell.done .day-badge {
  background: linear-gradient(180deg, #ffe08a, #f59e0b);
  color: #231600;
  box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.16);
}

.calendar .cell.today .day-badge {
  box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.35);
}

.calendar .head {
  color: var(--dim);
  font-size: 12px;
  min-height: auto;
  background: transparent;
  border: 0;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  color: var(--gold-soft);
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 16s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.lottery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lottery-wheel {
  perspective: 1400px;
}

.lottery-wheel.spinning .lottery-grid {
  animation: lottery-spin 3.2s cubic-bezier(0.12, 0.82, 0.18, 1) both;
  transform-origin: center center;
}

@keyframes lottery-spin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  60% {
    transform: rotate(1180deg) scale(1.02);
  }
  100% {
    transform: rotate(1440deg) scale(1);
  }
}

.prize {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  appearance: none;
}

.prize img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.prize.winning img {
  filter: brightness(1.08) saturate(1.15);
}

.prize-mark {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe08a;
  color: #7a4300;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.prize.spin {
  background: linear-gradient(135deg, #ff527d, #e11d48);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 20px 35px rgba(225, 29, 72, 0.34);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.prize.spin.spinning {
  transform: rotate(1440deg) scale(1.04);
}

.prize.active {
  transform: scale(1.04);
  filter: brightness(1.08);
  box-shadow: 0 0 0 2px rgba(255, 224, 138, 0.9), 0 16px 34px rgba(225, 29, 72, 0.32);
}

.prize.winning {
  box-shadow: 0 0 0 2px rgba(255, 224, 138, 1), 0 0 32px rgba(212, 175, 55, 0.45), 0 20px 35px rgba(225, 29, 72, 0.34);
}

.prize.spin:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.post-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.post-images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  display: block;
  background: #000;
}

.blog-body p {
  margin: 10px 0 0;
  white-space: pre-wrap;
  line-height: 1.75;
  word-break: break-word;
}

.count-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.count-box {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.count-box strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.team-tree {
  display: grid;
  gap: 12px;
}

.team-node {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.team-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.team-node-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.team-node-children {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 1px dashed rgba(255,255,255,0.12);
}

.empty-state {
  padding: 24px 12px;
  text-align: center;
  color: var(--muted);
}

.app-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(calc(100vw - 28px), 430px);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(21, 5, 7, 0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.tabbar-item {
  text-align: center;
  color: var(--dim);
  font-size: 11px;
}

.tabbar-item strong {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.tabbar-item.active {
  color: #ff6d95;
}

.floating-hint {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 13px;
}

.floating-stack {
  position: fixed;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  bottom: 180px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-float,
.plane-float {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0;
  cursor: pointer;
  appearance: none;
}

.service-float {
  background: linear-gradient(135deg, #ffb74d, #f97316);
  color: #fff;
}

.plane-float {
  background: linear-gradient(135deg, #4db5ff, #229ed9);
  color: #fff;
}

.floating-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.floating-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.floating-icon.telegram svg {
  width: 16px;
  height: 16px;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.notice-card img,
.blog-cover img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.list-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-line {
  color: var(--muted);
  font-size: 12px;
}

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

.upload-box--file {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.upload-box-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-box-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.upload-box-label,
.upload-box-hint {
  position: relative;
  z-index: 1;
}

.upload-card {
  padding: 14px;
  border: 1px solid #d8dfef;
  border-radius: 16px;
  background: #fbfcff;
}

.upload-preview {
  min-height: 160px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px dashed #c8d3ea;
  background: #f5f8ff center / cover no-repeat;
  display: grid;
  place-items: center;
  color: #7f8aa5;
  font-size: 13px;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview.has-image {
  color: transparent;
}

.admin-file {
  width: 100%;
  margin-top: 12px;
}

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

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.08), transparent 30%),
    linear-gradient(180deg, #eef3f9 0%, #f6f8fc 100%);
  color: #172033;
}

.admin-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(180deg, #1f2a44 0%, #172238 100%);
  color: #e7efff;
  padding: 18px 0 24px;
  box-shadow: 20px 0 50px rgba(9, 15, 28, 0.16);
}

.sidebar-brand {
  padding: 8px 20px 18px;
}

.sidebar-brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.sidebar-brand span {
  display: block;
  margin-top: 6px;
  color: rgba(231, 239, 255, 0.68);
  font-size: 12px;
}

.nav-group {
  margin-top: 16px;
}

.nav-group strong {
  display: block;
  padding: 0 18px 10px;
  color: rgba(231, 239, 255, 0.56);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-group a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0 12px 6px;
  padding: 0 14px;
  color: #dfe7fb;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-group a:hover {
  background: rgba(255,255,255,0.08);
  transform: translateX(2px);
}

.nav-group a.active {
  background: linear-gradient(135deg, rgba(255, 93, 134, 0.95), rgba(214, 31, 75, 0.92));
  color: #fff;
  box-shadow: 0 12px 24px rgba(214, 31, 75, 0.26);
}

.admin-main {
  padding: 22px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5ebf4;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.admin-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5ebf4;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  padding: 18px;
  margin-bottom: 16px;
  overflow: visible;
}

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

.admin-stat {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f6f9ff);
  border: 1px solid #e5ebf4;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.admin-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  color: #d61f4b;
  word-break: break-all;
}

.admin-stat-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8898aa;
}

.admin-page-kicker {
  color: #7f8aa5;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.admin-page-title {
  margin: 6px 0 4px;
  font-size: 30px;
  line-height: 1.1;
}

.admin-page-desc {
  color: #657087;
  font-size: 14px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar,
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.admin-input,
.admin-select {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d8dfef;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-main .control,
.admin-main .textarea,
.admin-main .select,
.admin-main .admin-input,
.admin-main .admin-select {
  background: #fff;
  color: #111 !important;
  caret-color: #111;
  -webkit-text-fill-color: #111;
}

.admin-main input,
.admin-main select,
.admin-main textarea {
  background: #fff;
  color: #111 !important;
  caret-color: #111;
  -webkit-text-fill-color: #111;
}

.admin-main input:-webkit-autofill,
.admin-main select:-webkit-autofill,
.admin-main textarea:-webkit-autofill {
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px #fff inset;
}

.admin-main .control:disabled,
.admin-main .textarea:disabled,
.admin-main .select:disabled,
.admin-main .admin-input:disabled,
.admin-main .admin-select:disabled {
  color: #111 !important;
  -webkit-text-fill-color: #111;
  opacity: 1;
}

.admin-main .control option,
.admin-main .textarea option,
.admin-main .select option,
.admin-main .admin-input option,
.admin-main .admin-select option {
  color: #111;
}

.admin-main .control::placeholder,
.admin-main .textarea::placeholder,
.admin-main .select::placeholder,
.admin-main .admin-input::placeholder,
.admin-main .admin-select::placeholder,
.admin-main input::placeholder,
.admin-main textarea::placeholder {
  color: #111 !important;
  opacity: 1;
  -webkit-text-fill-color: #111;
}

.admin-main input[type="date"],
.admin-main input[type="datetime-local"],
.admin-main input[type="time"],
.admin-main input[type="month"] {
  color-scheme: light;
}

.admin-main input[type="date"]::-webkit-datetime-edit,
.admin-main input[type="datetime-local"]::-webkit-datetime-edit,
.admin-main input[type="time"]::-webkit-datetime-edit,
.admin-main input[type="month"]::-webkit-datetime-edit,
.admin-main input[type="date"]::-webkit-datetime-edit-text,
.admin-main input[type="datetime-local"]::-webkit-datetime-edit-text,
.admin-main input[type="time"]::-webkit-datetime-edit-text,
.admin-main input[type="month"]::-webkit-datetime-edit-text,
.admin-main input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.admin-main input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.admin-main input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.admin-main input[type="month"]::-webkit-datetime-edit-fields-wrapper {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

.admin-main input::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  filter: none;
}

.admin-input:focus,
.admin-select:focus,
.control:focus,
.textarea:focus {
  border-color: #d61f4b;
  box-shadow: 0 0 0 4px rgba(214, 31, 75, 0.1);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d8dfef;
  border-radius: 14px;
  background: #f7f9fc;
  color: #2b3340;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.admin-btn.primary {
  background: linear-gradient(135deg, #ff5d86, #d61f4b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(214, 31, 75, 0.24);
}

.admin-btn.danger {
  background: #fff0f4;
  color: #b4234f;
  border-color: #f3c7d6;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0fa;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #657087;
  font-weight: 700;
}

.admin-table td:last-child,
.admin-table th:last-child {
  white-space: nowrap;
}

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

.admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e5ebf4;
  background: #f8fafc;
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-card {
  width: min(100%, 1120px);
  max-height: min(90vh, 980px);
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  color: #172033;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.admin-modal-card .form {
  margin-top: 0;
}

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

.admin-modal .upload-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfe, #f6f9ff);
  border: 1px solid #e5ebf4;
}

.admin-modal .upload-preview {
  display: grid;
  place-items: center;
  min-height: 128px;
  margin: 10px 0;
  border-radius: 14px;
  border: 1px dashed #cfd8e8;
  background: #fff;
  color: #7f8aa5;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.admin-modal .upload-preview.has-image {
  color: transparent;
  border-style: solid;
}

.admin-modal .admin-file {
  width: 100%;
}

.admin-modal .preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-modal .preset-btn {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d8dfef;
  background: #fff;
  color: #2b3340;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-modal .preset-btn:hover {
  border-color: #d61f4b;
  color: #d61f4b;
}

.admin-tree-wrap {
  display: grid;
  gap: 12px;
}

.admin-tree {
  display: grid;
  gap: 12px;
}

.admin-tree-node {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcff, #f6f9ff);
  border: 1px solid #e5ebf4;
}

.admin-tree-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-tree-children {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 1px dashed #d8dfef;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-tag.green {
  background: #e9fbef;
  color: #1f9b56;
}

.admin-tag.orange {
  background: #fff4e7;
  color: #c86f14;
}

.admin-tag.red {
  background: #ffedf2;
  color: #d61f4b;
}

.admin-card .form {
  gap: 12px;
}

.admin-card .small,
.admin-topbar .small {
  color: #7f8aa5;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top, rgba(214, 31, 75, 0.18), transparent 28%),
    radial-gradient(circle at right, rgba(80, 120, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #eef3f9 0%, #f6f8fc 100%);
}

.admin-login-card {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #e5ebf4;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

.admin-login-brand {
  padding: 54px 48px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 18%),
    linear-gradient(135deg, #172238 0%, #1f2a44 55%, #d61f4b 100%);
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.admin-login-brand h1 {
  margin: 18px 0 12px;
  font-size: 42px;
  line-height: 1.06;
}

.admin-login-brand p {
  margin: 0;
  max-width: 420px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.7;
}

.admin-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.admin-login-points span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.admin-login-author {
  margin-top: 34px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.admin-login-panel {
  padding: 54px 48px;
  background: #fff;
}

.admin-login-panel .eyebrow {
  color: #d61f4b;
  background: rgba(214, 31, 75, 0.08);
}

.admin-login-panel .title {
  margin-bottom: 18px;
}

.admin-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-section-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-section-head span {
  color: #7f8aa5;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

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

  .admin-topbar {
    flex-direction: column;
  }

  .admin-login-card {
    grid-template-columns: 1fr;
  }

  .admin-login-brand,
  .admin-login-panel {
    padding: 34px 28px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0 0 92px;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .page-content {
    padding: 14px;
  }

  .auth-page {
    min-height: 100vh;
    padding: 16px 14px;
  }

  .auth-card {
    width: 100%;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .title {
    font-size: 28px;
  }

  .hero-banner,
  .card,
  .product-card,
  .notice-card,
  .blog-post,
  .task-card,
  .record-card {
    border-radius: 22px;
  }

  .admin-topbar {
    padding: 16px;
  }

  .admin-page-title {
    font-size: 24px;
  }

  .admin-login-shell {
    padding: 16px;
  }

  .admin-login-card {
    border-radius: 22px;
  }

  .admin-login-brand,
  .admin-login-panel {
    padding: 26px 20px;
  }

  .admin-login-brand h1 {
    font-size: 30px;
  }

  .topbar {
    padding-bottom: 12px;
  }

  .topbar-title {
    font-size: 16px;
  }

  .control-row {
    grid-template-columns: 76px 1fr 92px;
    gap: 8px;
  }

  .control-row.two {
    grid-template-columns: 76px 1fr;
  }

  .quick-grid {
    gap: 8px;
  }

  .quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .quick-item small {
    font-size: 11px;
  }

  .promo-card {
    grid-template-columns: 62px 1fr;
    gap: 12px;
  }

  .product-image {
    height: 208px;
  }

  .product-name {
    font-size: 22px;
  }

  .price {
    font-size: 24px;
  }

  .summary-bar {
    gap: 12px;
  }

  .summary-bar .btn {
    min-width: 144px;
  }

  .count-row,
  .stats-grid,
  .action-row {
    gap: 8px;
  }

  .app-tabbar {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

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