@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --bg: #08080c;
  --panel: rgba(14, 14, 20, 0.55);
  --panel-strong: rgba(12, 12, 18, 0.78);
  --stroke: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.06);
  --accent: #8b7cff;
  --accent-2: #5cc0ff;
  --text: #f5f6ff;
  --muted: rgba(255, 255, 255, 0.62);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --glass-blur: blur(22px) saturate(140%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.seller-shell {
  padding-top: 0;
}

body.maintenance-active {
  overflow: hidden;
  height: 100vh;
}

/* Scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 92, 112, 0.75) rgba(8, 8, 12, 0.6);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(8, 8, 12, 0.6);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 110, 140, 0.8), rgba(64, 64, 88, 0.85));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(120, 120, 150, 0.9), rgba(72, 72, 96, 0.95));
}

a {
  color: inherit;
  text-decoration: none;
}

.video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: none; /* keep the original video visible */
  z-index: -2;
}

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
}

.site-maintenance {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 6, 12, 0.86);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

.site-maintenance-card {
  width: min(520px, 90vw);
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 18, 0.85);
  text-align: center;
  box-shadow: var(--shadow);
}

.site-maintenance-card strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.site-maintenance-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 10, 0.5);
}

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

.admin-modal-card {
  width: min(460px, 92vw);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.92);
  box-shadow: var(--shadow);
}

.admin-modal-card h3 {
  margin-bottom: 8px;
}

.admin-modal-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

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

.admin-filter-row .btn {
  padding: 6px 14px;
  font-size: 12px;
}

.admin-filter-row .btn.active {
  background: rgba(123, 108, 255, 0.25);
  border-color: rgba(123, 108, 255, 0.55);
  color: #efeaff;
}

.admin-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12px;
  color: var(--muted);
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.admin-metric {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 14, 0.75);
  display: grid;
  gap: 4px;
}

.admin-metric strong {
  font-size: 14px;
  color: #ffffff;
}

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

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

.admin-action-row.actions-inline {
  align-items: flex-end;
}

.admin-action-row.actions-inline .btn {
  min-height: 40px;
}

.admin-inline-btn {
  align-self: end;
  min-height: 40px;
  padding: 8px 16px;
  justify-self: start;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.admin-status-pill.good {
  color: #7af1a6;
  border-color: rgba(122, 241, 166, 0.4);
  background: rgba(122, 241, 166, 0.12);
}

.admin-status-pill.warn {
  color: #ffd28a;
  border-color: rgba(255, 210, 138, 0.4);
  background: rgba(255, 210, 138, 0.12);
}

.admin-chart-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.admin-chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding: 6px 0;
  text-align: right;
}

.admin-chart-area {
  display: grid;
  gap: 8px;
}

.admin-chart-x {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.admin-chart-axis-note {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

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

.admin-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.7);
}

.admin-pending-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.btn.sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Hide mobile nav on desktop */
.mobile-nav {
  display: none;
}

.topbar {
  display: none !important; /* hide the description row on all sub-routes */
}

/* Ensure no stray robot/logo renders in the top-left corner */
.brand > img:not([src*="logo"]),
.brand::before,
.brand::after,
body > img:first-of-type,
body > div:first-of-type:not(.video-bg):not(.video-overlay):not(.wrap) {
  display: none !important;
}

/* Hide any large logo renders outside nav/float buttons */
img[src*="asset/logo.png"] {
  display: none !important;
}

.brand img[src*="asset/logo.png"],
.mobile-brand img[src*="asset/logo.png"],
.float-btn img[src*="asset/logo.png"],
.seller-brand img[src*="asset/logo.png"] {
  display: inline-block !important;
}

header {
  position: sticky;
  top: 18px;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 26px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.brand span {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.brand span b {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.badge {
  background: rgba(255, 92, 92, 0.2);
  color: #ffb9b9;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 6px;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.currency-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.balance-btn {
  cursor: pointer;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.currency-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(220px, 80vw);
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.currency-menu.open .currency-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.currency-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.currency-option.active {
  background: rgba(123, 108, 255, 0.25);
  border: 1px solid rgba(123, 108, 255, 0.5);
}

.currency-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.user-menu-btn:hover {
  transform: translateY(-1px);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.8);
}

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

.user-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  white-space: nowrap;
}

.user-name-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(123, 108, 255, 0.4);
  background: rgba(123, 108, 255, 0.18);
  color: #efeaff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(240px, 80vw);
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.95);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-dropdown .divider {
  height: 1px;
  background: var(--stroke);
  margin: 4px 0;
}

.btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #7b6bff, #6f7bff, #3dd7ff);
  color: #111119;
  border: none;
}

.btn.login-btn {
  background: linear-gradient(120deg, #5b7cff, #7b6bff);
  color: #0b1f5b;
  border: none;
  box-shadow: 0 12px 24px rgba(91, 124, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  color: var(--text);
}

.btn.warning {
  background: linear-gradient(120deg, #f4c54a, #f0b73a);
  color: #1a1200;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hero {
  margin-top: 80px;
}

.hero-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero-title b {
  color: transparent;
  background: linear-gradient(120deg, #9b8bff, #6ecbff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin-top: 60px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  font-family: "Outfit", sans-serif;
  font-size: 24px;
}

.section-title p {
  color: var(--muted);
  font-size: 14px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: flex-start;
}

.profile-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
}

.profile-public-shell {
  padding: 22px 24px;
}

.profile-public-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0;
}

.profile-public-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.profile-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-public-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.profile-public-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-public-info {
  display: grid;
  gap: 12px;
}

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

.profile-public-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.profile-follow-btn {
  padding: 6px 14px;
  font-size: 12px;
  min-width: 110px;
}

.profile-link-btn {
  padding: 6px 12px;
  font-size: 11px;
  min-width: 110px;
}

.profile-follow-btn.is-active {
  border-color: transparent;
  color: #111119;
  background: linear-gradient(120deg, #7b6bff, #6f7bff, #3dd7ff);
}

.profile-public-follow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-follow-stat {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.7);
  display: grid;
  gap: 4px;
  min-width: 140px;
}

.profile-follow-stat span {
  font-size: 11px;
  color: var(--muted);
}

.profile-follow-stat strong {
  font-size: 16px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(123, 108, 255, 0.45);
  background: rgba(123, 108, 255, 0.2);
  color: #e9e5ff;
  font-size: 11px;
  font-weight: 700;
}

.profile-public-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.profile-stat {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.7);
  display: grid;
  gap: 4px;
}

.profile-stat-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-stat-link:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 108, 255, 0.4);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.profile-stat span {
  font-size: 12px;
  color: var(--muted);
}

.profile-stat strong {
  font-size: 18px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

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

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.story-card {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(16, 16, 26, 0.92), rgba(10, 10, 16, 0.7));
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 108, 255, 0.45);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.story-media {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 8, 12, 0.8);
  aspect-ratio: 9 / 16;
  position: relative;
}

.story-media img,
.story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(123, 108, 255, 0.45);
  background: rgba(123, 108, 255, 0.2);
  font-size: 10px;
  font-weight: 700;
  color: #e9e5ff;
}

.story-meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.story-meta strong {
  font-size: 14px;
  color: var(--text);
}

.story-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.story-empty {
  text-align: center;
}

.story-preview-card {
  width: min(420px, 92vw);
  display: grid;
  gap: 12px;
}

.story-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-preview-body {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 10, 16, 0.85);
  aspect-ratio: 9 / 16;
}

.story-preview-body img,
.story-preview-body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-preview-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.story-preview-type {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 11px;
  color: var(--muted);
}

.story-manage-panel {
  width: min(780px, 94vw);
  display: grid;
  gap: 16px;
}

.story-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-manage-body {
  display: grid;
  gap: 18px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding-right: 4px;
}

.story-manage-section {
  display: grid;
  gap: 12px;
}

.story-manage-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.story-manage-title h4 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}


.story-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.story-manage-card.is-locked {
  opacity: 0.5;
  pointer-events: none;
}

.story-manage-card .story-badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.story-manage-card {
  position: relative;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.7);
  display: grid;
  gap: 8px;
}

.story-manage-preview {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 6, 10, 0.8);
  aspect-ratio: 9 / 16;
  position: relative;
}

.story-manage-preview img,
.story-manage-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-manage-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-title-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(6, 6, 10, 0.65);
  color: var(--text);
  font-size: 12px;
}

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

.story-manage-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.story-slot-label {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 8, 12, 0.65);
  font-size: 10px;
  color: var(--muted);
}

.story-manage-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.card {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(12, 12, 18, 0.6);
  border: 1px solid var(--stroke);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
}

.card.light {
  background: rgba(16, 16, 24, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.card.light .form-field input,
.card.light .form-field select,
.card.light .form-field textarea {
  background: rgba(10, 10, 16, 0.78);
}

.card.is-disabled {
  position: relative;
  overflow: hidden;
}

.notice-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(6, 6, 10, 0.82);
  backdrop-filter: blur(2px);
  text-align: center;
  z-index: 2;
  cursor: not-allowed;
}

.notice-overlay .notice-x {
  font-size: 72px;
  font-weight: 800;
  color: #ff9a9a;
  text-shadow: 0 10px 24px rgba(255, 92, 92, 0.35);
}

.notice-overlay p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

.qr-box {
  margin-top: 14px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: rgba(5, 5, 10, 0.9);
}

.qr-placeholder {
  font-size: 13px;
  color: var(--muted);
}

.qr-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qr-meta strong {
  color: #ffffff;
  font-weight: 600;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.card + .card {
  margin-top: 16px;
}

.message-shell {
  padding: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  height: min(76vh, 780px);
  min-height: 540px;
  overflow: hidden;
  align-items: stretch;
}

.message-section {
  margin-top: 70px;
  margin-bottom: 24px;
}

.message-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.55);
  min-height: 0;
}

.message-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-sidebar-head h3 {
  margin: 0;
  font-size: 17px;
}

.message-sidebar-count {
  font-size: 12px;
  color: var(--muted);
}

.message-search input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(8, 8, 12, 0.75);
  color: var(--text);
  font-size: 13px;
}

.message-thread-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 2px;
}

.message-thread {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.message-thread:hover {
  border-color: rgba(139, 124, 255, 0.35);
}

.message-thread.active {
  border-color: rgba(139, 124, 255, 0.65);
  background: rgba(139, 124, 255, 0.12);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(139, 124, 255, 0.45), rgba(20, 18, 30, 0.9));
  color: #f4f2ff;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.06);
}

.message-avatar.large img {
  transform: scale(1.08);
}

.message-avatar.large {
  width: 48px;
  height: 48px;
}

.message-avatar.mini {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.message-thread-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-thread-name {
  font-size: 14px;
  font-weight: 600;
}

.message-thread-time {
  font-size: 11px;
  color: var(--muted);
}

.message-thread-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.message-thread-note {
  font-size: 12px;
  color: var(--muted);
}

.message-role {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(139, 124, 255, 0.45);
  background: rgba(139, 124, 255, 0.18);
  color: #d9d5ff;
}

.message-role.admin {
  border-color: rgba(255, 96, 96, 0.6);
  background: rgba(255, 96, 96, 0.15);
  color: #ff6b6b;
}

.message-sidebar-foot {
  font-size: 12px;
  color: var(--muted);
}

.message-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: rgba(8, 8, 12, 0.35);
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.55);
  flex-shrink: 0;
}

.message-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.message-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-user-name {
  font-weight: 600;
  font-size: 15px;
}

.message-user-sub {
  font-size: 12px;
  color: var(--muted);
}

.message-warning {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(139, 124, 255, 0.4);
  background: rgba(139, 124, 255, 0.12);
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.message-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.message-day {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.7);
}

.message-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 18, 0.9);
  color: var(--text);
  display: grid;
  gap: 6px;
}

.message-row.incoming .message-bubble {
  background: rgba(86, 204, 242, 0.12);
  border-color: rgba(86, 204, 242, 0.35);
}

.message-row.outgoing .message-bubble {
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.95), rgba(94, 196, 255, 0.9));
  color: #0b0b12;
  border: none;
}

.message-bubble p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.message-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.message-row.outgoing .message-time {
  color: rgba(10, 10, 16, 0.75);
}

.message-attachment {
  display: grid;
  gap: 6px;
}

.message-attachment img {
  width: min(260px, 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.message-attachment-name {
  font-size: 11px;
  color: rgba(10, 10, 16, 0.7);
}

.message-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.55);
  flex-shrink: 0;
  position: relative;
}

.emoji-panel {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 8px);
  display: none;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 14, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 3;
}

.emoji-panel.open {
  display: flex;
}

.emoji-panel button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  cursor: pointer;
}

.emoji-panel button:hover {
  border-color: rgba(139, 124, 255, 0.4);
}

.message-input input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(9, 9, 14, 0.8);
  color: var(--text);
  font-size: 13px;
}

.message-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  flex: 0 0 auto;
}

.message-send {
  min-width: 66px;
  flex: 0 0 auto;
}

.product-grid,
.service-grid,
.task-grid {
  --card-max: 380px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, var(--card-max)));
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.task-board {
  display: grid;
  gap: 18px;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.6);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
}

.task-profile {
  display: grid;
  gap: 12px;
  align-content: start;
}

.task-avatar {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.8);
}

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

.task-user {
  display: grid;
  gap: 2px;
}

.task-user strong {
  font-size: 14px;
}

.task-user span {
  font-size: 12px;
  color: var(--muted);
}

.task-meta-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.task-meta-list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.task-meta-list strong {
  color: #ffffff;
  font-weight: 600;
}

.task-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.task-tag.paid {
  color: #7af1a6;
  border-color: rgba(122, 241, 166, 0.5);
  background: rgba(122, 241, 166, 0.12);
}

.task-tag.unpaid {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.5);
  background: rgba(255, 154, 154, 0.12);
}

.task-progress {
  display: grid;
  gap: 6px;
}

.task-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}

.task-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.task-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #7b6bff, #3dd7ff);
}

.task-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.task-body h3 {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
}

.task-desc {
  font-size: 13px;
  color: var(--muted);
}

.task-budget {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.task-proof {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(9, 9, 14, 0.8);
}

.task-proof[hidden] {
  display: none;
}

.task-proof input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.9);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.task-proof input[type="file"]::file-selector-button,
.task-proof input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, #7b6bff, #6f7bff, #3dd7ff);
  color: #111119;
  font-weight: 700;
  cursor: pointer;
}

.task-proof input[type="file"]::file-selector-button:hover,
.task-proof input[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.04);
}

.task-proof .form-field label {
  font-size: 12px;
}

.task-pagination {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.task-pagination .page-info {
  font-size: 12px;
  color: var(--muted);
}

.table-pagination {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.table-pagination .btn {
  min-width: 40px;
}

.amount-short,
.bank-short {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 10, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(420px, 92vw);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(18, 18, 26, 0.95);
  box-shadow: var(--shadow);
}

.modal-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.modal-card p {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions .btn {
  min-width: 96px;
}

.order-modal .modal-card {
  width: min(520px, 94vw);
  background: rgba(14, 14, 20, 0.92);
  backdrop-filter: var(--glass-blur);
}

.order-modal-card {
  display: grid;
  gap: 14px;
}

.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-modal-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.order-modal-price {
  font-weight: 600;
  color: #ffffff;
}

.order-modal-qty {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.order-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 9, 14, 0.7);
}

.order-qty-control .qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 16px;
  line-height: 1;
}

.order-qty-control input {
  width: 60px;
  text-align: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 6px 4px;
  font-weight: 700;
  font-size: 14px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.order-qty-control input:focus {
  outline: none;
}

.order-qty-control input::-webkit-outer-spin-button,
.order-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.6);
  font-size: 13px;
}

.order-modal-total strong {
  font-size: 15px;
  color: #ffffff;
}

.order-modal-error {
  min-height: 16px;
  font-size: 12px;
  color: #ff9a9a;
}

.order-modal-error:empty {
  display: none;
}

.product-page {
  margin-top: 30px;
  display: grid;
  gap: 22px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
}

.category-pill {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-1px);
  color: #ffffff;
}

.category-pill.active {
  background: linear-gradient(120deg, #7b6bff, #6f7bff, #3dd7ff);
  color: #111119;
  border-color: transparent;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-card {
  position: sticky;
  top: 120px;
}

.filter-card .form-field label {
  margin-bottom: 12px;
}

.filter-card .form-field input {
  margin-bottom: 10px;
}

.filter-card .btn {
  margin-top: 6px;
}

.filter-head h3 {
  margin-bottom: 6px;
}

.filter-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.filter-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
}

.filter-item input {
  accent-color: var(--accent-2);
}

.filter-item input:checked ~ span,
.filter-item input:checked ~ em {
  color: #ffffff;
}

.filter-item em {
  font-style: normal;
  color: var(--muted);
}

.product-main {
  display: grid;
  gap: 16px;
}

.mobile-filter-bar {
  display: none;
}

.filter-toggle {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.6);
  color: var(--text);
  gap: 8px;
}

.filter-toggle svg {
  width: 16px;
  height: 16px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.sort-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 6px;
}

.sort-pill {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 2px;
}

.sort-pill.active {
  color: #ffffff;
  border-bottom: 2px solid var(--accent-2);
}

.product-grid-luxe {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: start;
  gap: 22px;
}

.product-detail {
  margin-top: 30px;
  display: grid;
  gap: 24px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.detail-breadcrumb a {
  color: var(--muted);
}

.detail-breadcrumb span {
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.detail-media-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.detail-image {
  height: clamp(240px, 38vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 20px);
}

.detail-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-title {
  font-family: "Outfit", sans-serif;
  font-size: 22px;
}

.detail-short {
  font-size: 13px;
  color: var(--muted);
}

.detail-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.detail-meta .meta-col {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.65);
}

.detail-meta .meta-col > span {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.detail-meta strong {
  color: #ffffff;
  font-weight: 600;
}

.detail-meta .seller-line {
  flex-wrap: wrap;
}

.detail-meta .meta-seller > span {
  justify-content: flex-start;
  gap: 6px;
}

.detail-meta .meta-seller .seller-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  white-space: normal;
}

.detail-meta .meta-seller #detail-seller-badge {
  display: inline-flex;
}

.detail-meta .meta-seller .seller-label {
  white-space: nowrap;
  color: var(--muted);
}

.detail-meta .meta-seller .seller-value {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.detail-meta .meta-seller .seller-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-price {
  font-family: "Outfit", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.detail-other {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.detail-other h4 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.detail-other-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, rgba(17, 17, 26, 0.92), rgba(11, 11, 18, 0.72));
  font-size: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-other-item:hover {
  transform: translateY(-1px);
  border-color: rgba(123, 108, 255, 0.45);
  box-shadow: 0 12px 24px rgba(10, 10, 20, 0.45);
}

.detail-other-item:focus-visible {
  outline: 2px solid rgba(123, 108, 255, 0.55);
  outline-offset: 2px;
}

.detail-other-item > span:first-child {
  font-weight: 600;
}

.detail-other-item .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.detail-other-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rating-note {
  font-size: 12px;
  font-weight: 600;
}

.rating-note.positive {
  color: #7af1a6;
}

.rating-note.neutral {
  color: #ffd28a;
}

.rating-note.negative {
  color: #ff9a9a;
}

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

.detail-cta .btn.primary {
  grid-column: 1 / -1;
}

.detail-cta.detail-cta-compact .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-cta.detail-cta-compact .btn.primary {
  grid-column: auto;
}

.detail-tabs {
  margin-top: 8px;
}

.detail-tabs .tabs-head {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 10px;
}

.detail-tabs .tab {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}

.detail-tabs .tab.active {
  color: var(--text);
  border-bottom: 2px solid var(--accent);
}

.detail-tabs .tabs-body {
  padding-top: 14px;
}

.detail-tabs .tab-panel {
  display: none;
  font-size: 13px;
  color: var(--muted);
}

.detail-tabs .tab-panel.active {
  display: block;
}

.detail-review {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-review:last-child {
  border-bottom: none;
}

.detail-review strong {
  color: #ffffff;
  font-weight: 600;
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.6);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.product-media {
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
}

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

.product-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #e7e2ff;
  background: radial-gradient(circle at top, rgba(123, 108, 255, 0.35), rgba(12, 12, 18, 0.9));
}

.product-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.product-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
}

.product-title {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  margin: 0;
}

.product-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 103, 103, 0.18);
  color: #ff9a9a;
  margin-left: 8px;
  font-weight: 700;
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 18px;
  font-size: 12px;
  color: var(--muted);
}

.product-meta .meta-col {
  display: grid;
  gap: 6px;
}

.product-meta .meta-right {
  text-align: right;
  align-content: center;
}

.product-meta .meta-right .seller-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.product-meta .meta-right .seller-label {
  white-space: nowrap;
  color: var(--muted);
}

.product-meta .meta-right .seller-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.product-meta .meta-right .seller-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.seller-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seller-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.seller-badge.admin {
  color: #ffb0b0;
  background: rgba(255, 90, 90, 0.18);
  border-color: rgba(255, 90, 90, 0.55);
}

.seller-badge.coadmin {
  color: #ffd9a8;
  background: rgba(255, 190, 90, 0.2);
  border-color: rgba(255, 190, 90, 0.55);
}

.seller-badge.founder {
  color: #f2e6ff;
  background: rgba(174, 120, 255, 0.22);
  border-color: rgba(174, 120, 255, 0.55);
}

.seller-badge.tycoon {
  color: #ffe9b5;
  background: rgba(255, 210, 120, 0.2);
  border-color: rgba(255, 210, 120, 0.6);
}

.seller-badge.verified {
  color: #7af1a6;
  background: rgba(68, 210, 128, 0.18);
  border-color: rgba(68, 210, 128, 0.5);
}

.seller-badge.merchant {
  color: #d7d9ff;
  background: rgba(123, 108, 255, 0.18);
  border-color: rgba(123, 108, 255, 0.45);
}

.seller-badge.merchant-e {
  color: #c9cfda;
  background: rgba(120, 128, 142, 0.2);
  border-color: rgba(120, 128, 142, 0.5);
}

.seller-badge.merchant-d {
  color: #c9d7f2;
  background: rgba(109, 132, 162, 0.22);
  border-color: rgba(109, 132, 162, 0.5);
}

.seller-badge.merchant-c {
  color: #b8e6ff;
  background: rgba(70, 170, 210, 0.2);
  border-color: rgba(70, 170, 210, 0.5);
}

.seller-badge.merchant-b {
  color: #a7d6ff;
  background: rgba(90, 140, 220, 0.2);
  border-color: rgba(90, 140, 220, 0.5);
}

.seller-badge.merchant-a {
  color: #c6b7ff;
  background: rgba(140, 110, 255, 0.2);
  border-color: rgba(140, 110, 255, 0.55);
}

.seller-badge.merchant-s {
  color: #ffdda8;
  background: rgba(225, 140, 64, 0.22);
  border-color: rgba(225, 140, 64, 0.55);
}

.seller-badge.merchant-ss {
  color: #ffe4a8;
  background: rgba(235, 160, 70, 0.24);
  border-color: rgba(235, 160, 70, 0.6);
}

.seller-badge.merchant-sss {
  color: #3a2500;
  background: linear-gradient(120deg, #f7d05b, #f4b13b);
  border-color: rgba(255, 214, 114, 0.8);
}
.product-meta .meta-col strong,
.product-type strong {
  color: #ffffff;
  font-weight: 600;
}

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

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

.product-empty {
  text-align: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 20, 0.78);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.74);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.pill.active {
  background: rgba(123, 108, 255, 0.32);
  color: #efeaff;
  border-color: rgba(123, 108, 255, 0.65);
}

.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 103, 103, 0.18);
  color: #ff9a9a;
  margin-left: 8px;
  font-weight: 700;
}

.price {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
  font-family: "Outfit", sans-serif;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  gap: 10px;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}

.form-field.form-field-inline {
  display: grid;
  align-content: end;
}

.admin-user-grid {
  align-items: end;
}

.required {
  color: #ffb9b9;
  font-weight: 700;
  margin-left: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.9);
  color: var(--text);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
}

body.page-topups input[type="number"]::-webkit-outer-spin-button,
body.page-topups input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.page-topups input[type="number"] {
  -moz-appearance: textfield;
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

.form-note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: rgba(10, 10, 16, 0.8);
  font-size: 13px;
  color: var(--muted);
}

.form-note strong {
  color: var(--accent-2);
}

.form-note ul {
  margin: 8px 0 0 18px;
  display: grid;
  gap: 6px;
}

.form-field.inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.form-field.inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.auth-guard {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 168, 93, 0.35);
  background: rgba(40, 22, 10, 0.72);
  color: #ffd6ad;
  font-size: 13px;
}

.auth-guard strong {
  color: #ffe0bf;
}

.auth-locked {
  position: relative;
}

.is-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 16, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f6ff;
  font-size: 13px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.auth-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.order-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(123, 108, 255, 0.4);
  background: linear-gradient(120deg, rgba(18, 18, 28, 0.95), rgba(10, 10, 18, 0.92));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  color: #f5f6ff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 61;
}

.order-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.order-toast-text {
  max-width: 360px;
}

.order-toast .btn {
  padding: 6px 12px;
  font-size: 12px;
  box-shadow: none;
}

@media (max-width: 640px) {
  .order-toast {
    left: 16px;
    right: 16px;
    bottom: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .order-toast .btn {
    width: 100%;
    justify-content: center;
  }
}

.empty-state {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed var(--stroke);
  background: rgba(10, 10, 16, 0.8);
  font-size: 14px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--accent-2);
}

.is-hidden {
  display: none !important;
}

.skeleton {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-line {
  height: 12px;
}

.skeleton-title {
  height: 18px;
  width: 52%;
}

.table-skeleton {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.table-tools .form-field {
  flex: 1 1 180px;
  min-width: 160px;
}

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

.diff-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.7);
}

.diff-item {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.diff-label {
  color: var(--muted);
}

.diff-value {
  font-weight: 600;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-mini-chart {
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.65);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}

.admin-mini-chart svg {
  width: 100%;
  height: 56px;
}

.donut-chart {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: conic-gradient(#7b6bff 0 65%, rgba(255, 255, 255, 0.1) 0 100%);
  position: relative;
  margin: 0 auto;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(12, 12, 18, 0.9);
  border: 1px solid var(--stroke);
}

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

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 900px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
  width: min(1200px, 92vw);
  margin: 0 auto;
  align-items: start;
}

.footer-grid h4 {
  color: var(--text);
  margin-bottom: 10px;
}

.footer-grid a {
  color: inherit;
}

.footer-grid a:hover {
  color: #ffffff;
}

.faq {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.faq-item {
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  background: rgba(15, 15, 22, 0.72);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: none;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.faq-item.open p {
  display: block;
}

.badge-soft {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.badge-soft.good {
  color: #7af1a6;
  border-color: rgba(122, 241, 166, 0.5);
  background: rgba(122, 241, 166, 0.12);
}

.badge-soft.warn {
  color: #ffd36a;
  border-color: rgba(255, 211, 106, 0.5);
  background: rgba(255, 211, 106, 0.12);
}

.badge-soft.bad {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.5);
  background: rgba(255, 154, 154, 0.12);
}

.table-like {
  margin-top: 12px;
}

.table-like-header,
.table-like-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr;
  gap: 8px;
  font-size: 13px;
}

.table-like-header {
  color: var(--muted);
  margin-bottom: 6px;
}

.table-like-row {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(9, 9, 14, 0.9);
}

.table-like-row > * {
  min-width: 0;
}

.table-like.summary-table .table-like-header,
.table-like.summary-table .table-like-row {
  grid-template-columns: 1.4fr 0.8fr 1fr;
}

.table-like.task-table .table-like-header,
.table-like.task-table .table-like-row {
  grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1fr;
}

.table-like.task-review-table .table-like-header,
.table-like.task-review-table .table-like-row {
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.9fr 1.1fr;
}

.table-like.withdraw-history .table-like-header {
  display: none;
}

.table-like.withdraw-history .table-like-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.table-like.withdraw-history .table-like-row > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-like.withdraw-history .table-like-row > *::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
}

.table-like.withdraw-history .amount-full {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  body.page-topups .table-like.withdraw-history {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
  }
}

.history-stack {
  display: grid;
  gap: 16px;
}

/* Seller dashboard */
.seller-layout {
  width: min(1400px, 94vw);
  margin: 28px auto 40px;
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.seller-sidebar {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  padding: 18px;
  border-radius: 22px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.seller-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.seller-brand img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.seller-brand span {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
}

.seller-brand span b {
  color: var(--accent);
}

.seller-nav {
  display: grid;
  gap: 6px;
}

.seller-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.seller-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(2px);
}

.seller-nav button.active {
  background: rgba(123, 108, 255, 0.2);
  color: #f4f3ff;
  border-color: rgba(123, 108, 255, 0.35);
}

.seller-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.seller-main {
  display: grid;
  gap: 18px;
}

.seller-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
}

.seller-topbar h1 {
  font-family: "Outfit", sans-serif;
  font-size: 20px;
}

.seller-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seller-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.seller-content {
  display: grid;
  gap: 18px;
}

.seller-section {
  display: none;
  gap: 18px;
}

.seller-section.active {
  display: grid;
}

.seller-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.seller-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(12, 12, 18, 0.68);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
}

.seller-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
}

.seller-card h3 .seller-badge {
  margin-left: 6px;
  transform: translateY(-1px);
}

.seller-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.seller-stat-value {
  font-size: 20px;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

.seller-stat-note {
  font-size: 12px;
  color: rgba(122, 241, 166, 0.8);
}

.seller-inline-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.seller-chart-card {
  display: grid;
  gap: 14px;
}

.chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.chart-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-range .pill {
  padding: 6px 12px;
  font-size: 12px;
}

.chart-range .pill.active {
  background: linear-gradient(120deg, #7b6bff, #6f7bff, #3dd7ff);
  color: #111119;
  border-color: transparent;
}

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

.seller-chart-card .chart-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-left: 64px;
  width: 100%;
}

.chart-metric span {
  font-size: 12px;
  color: var(--muted);
}

.chart-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.chart-wrap {
  height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(9, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.chart-area {
  fill: url(#chart-gradient);
}

.chart-line {
  fill: none;
  stroke: #8b7cff;
  stroke-width: 2.5;
}

.chart-dot {
  fill: #ffffff;
  stroke: #8b7cff;
  stroke-width: 2;
}

.seller-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.seller-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.seller-table th,
.seller-table td {
  padding: 10px 12px;
  text-align: left;
}

.seller-table thead th {
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seller-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seller-table tbody tr:last-child {
  border-bottom: none;
}

.seller-table tbody td {
  color: #e9eaff;
}

.seller-table-wrap {
  overflow-x: auto;
}

.seller-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}

.seller-tag.good {
  color: #7af1a6;
  border-color: rgba(122, 241, 166, 0.5);
  background: rgba(122, 241, 166, 0.12);
}

.seller-tag.warn {
  color: #ffd28a;
  border-color: rgba(255, 210, 138, 0.5);
  background: rgba(255, 210, 138, 0.12);
}

.seller-tag.bad {
  color: #ff9a9a;
  border-color: rgba(255, 154, 154, 0.5);
  background: rgba(255, 154, 154, 0.12);
}

.seller-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.seller-shop-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.seller-shop-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seller-shop-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.seller-shop-actions .btn {
  width: 100%;
  justify-content: center;
}

.seller-task-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seller-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.seller-task-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

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

.seller-task-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seller-task-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.seller-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

.seller-task-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.seller-task-actions .btn {
  width: 100%;
  justify-content: center;
}

.seller-task-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

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

.seller-table-actions .btn {
  padding: 6px 10px;
  font-size: 12px;
}

.seller-editor-card {
  display: grid;
  gap: 16px;
}

.seller-editor-head {
  display: grid;
  gap: 4px;
}

.seller-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.seller-editor-main {
  display: grid;
  gap: 12px;
}

.seller-editor-aside {
  display: grid;
  gap: 12px;
}

.seller-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.seller-approval {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.panel-media {
  display: grid;
  gap: 10px;
}

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

.media-preview {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.9);
}

.media-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.panel-file input[type="file"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.9);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.panel-file input[type="file"]::file-selector-button,
.panel-file input[type="file"]::-webkit-file-upload-button {
  margin-right: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, #f4c54a, #f0b73a);
  color: #1a1200;
  font-weight: 700;
  cursor: pointer;
}

.panel-file input[type="file"]::file-selector-button:hover,
.panel-file input[type="file"]::-webkit-file-upload-button:hover {
  filter: brightness(1.04);
}

.rich-editor {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.9);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 12, 0.9);
}

.editor-tool {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.rich-editor textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.stock-tabs {
  margin-top: 12px;
}

.stock-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.stock-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(10, 10, 16, 0.8);
}

.stock-mode label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stock-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

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

.seller-guard {
  width: min(760px, 90vw);
  margin: 80px auto 0;
}

.seller-guard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 980px) {
  .task-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .task-profile {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .task-profile .task-meta-list,
  .task-profile .task-progress {
    grid-column: 1 / -1;
  }

  .seller-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-sidebar {
    position: static;
    height: auto;
  }

  .seller-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
  }

  .seller-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .seller-chart-card .chart-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding-left: 0;
  }

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

  .seller-shop-actions .btn:last-child {
    grid-column: 1 / -1;
  }

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

  .seller-task-actions .btn:last-child {
    grid-column: 1 / -1;
  }

  .seller-table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .seller-table-actions .btn {
    width: 100%;
  }

  .seller-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    padding: 18px;
    background: rgba(5, 5, 10, 0.6);
    backdrop-filter: blur(6px);
    z-index: 30;
    place-items: center;
  }

  .product-sidebar.open {
    display: grid;
  }

  .filter-card {
    position: static;
    width: min(420px, 92vw);
    max-height: 78vh;
    overflow-y: auto;
  }

  .mobile-filter-bar {
    display: flex;
  }

  .admin-filter-row {
    justify-content: flex-start;
  }

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

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

  .product-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-tabs {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .detail-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-meta .seller-line {
    justify-content: flex-start;
  }

  .detail-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-shell {
    grid-template-columns: minmax(0, 1fr);
    height: min(80vh, 820px);
    min-height: 520px;
  }

  .message-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--stroke);
  }

  .message-panel {
    min-height: 520px;
  }

  .message-bubble {
    max-width: 85%;
  }

  .message-body {
    padding: 14px;
  }

  .message-header {
    padding: 14px;
  }

  .message-warning {
    margin: 12px 14px 0;
  }
}

@media (max-width: 820px) {
  header {
    position: static;
  }

  .nav {
    flex-direction: column;
    border-radius: 22px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .form-grid.two-col,
  .form-grid.three-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-chart-shell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-chart-x {
    font-size: 10px;
  }

  .admin-chart-y {
    font-size: 10px;
  }

  .admin-pending-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-action-row.actions-inline {
    width: 100%;
    justify-content: stretch;
  }

  .admin-action-row.actions-inline .btn {
    flex: 1 1 100%;
  }

  .admin-inline-btn {
    width: 100%;
    justify-self: stretch;
  }

  .message-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .message-shell .message-panel {
    display: none;
  }

  .message-shell.is-detail .message-panel {
    display: flex;
  }

  .message-shell.is-detail .message-sidebar {
    display: none;
  }

  .message-back {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 96px;
  }

  .hero {
    margin-top: 28px;
  }

  .section {
    margin-top: 42px;
  }

  body.seller-shell {
    padding-top: 0;
  }

  .product-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-meta .meta-right {
    text-align: left;
  }

  .product-meta .meta-right .seller-line {
    justify-content: flex-start;
  }

  .product-meta .meta-right .seller-value {
    justify-content: flex-start;
  }

  .seller-card {
    padding: 16px;
  }

  .seller-shop-card img {
    height: 140px;
  }

  .seller-table th,
  .seller-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .product-grid-luxe {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .wrap {
    width: min(640px, 94vw);
  }

  .nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 20px;
    display: grid;
    align-content: center;
    padding: 14px 14px;
    border-radius: 20px;
    background: rgba(15, 15, 22, 0.85);
    border: 1px solid var(--stroke);
    backdrop-filter: var(--glass-blur);
    z-index: 6;
  }

  .mobile-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
  }

  .mobile-brand img {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .mobile-brand span {
    font-family: "Outfit", sans-serif;
    font-size: 16px;
  }

  .mobile-brand span b {
    color: var(--accent);
  }

  .mobile-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .mobile-actions .btn,
  .mobile-actions .menu-btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-actions .user-name {
    display: none;
  }

  .user-menu .user-name {
    display: none;
  }

  .mobile-actions .btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .menu-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    color: var(--text);
  }

  .mobile-links {
    display: grid;
    gap: 8px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: height 0.3s ease, opacity 0.22s ease, transform 0.3s ease;
  }

  .mobile-links.expanded {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    margin-top: 8px;
  }

  .mobile-links a {
    font-size: 13px;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .seller-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .chart-wrap {
    height: 220px;
  }

  .auth-guard {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .amount-full,
  .bank-full {
    display: none;
  }

  .amount-short,
  .bank-short {
    display: inline;
  }

  .table-like.withdraw-full .amount-full {
    display: inline;
  }

  .table-like.withdraw-full .amount-short {
    display: none;
  }

  .table-like.withdraw-full .bank-full {
    display: inline;
  }

  .table-like.withdraw-full .bank-short {
    display: none;
  }

  body.page-profile .layout-grid {
    gap: 18px;
  }

  body.page-profile .card {
    padding: 18px;
  }

  body.page-profile .hero-title {
    font-size: 26px;
  }

  body.page-profile .hero-sub {
    font-size: 13px;
  }

  .profile-public-shell {
    padding: 18px;
  }

  .profile-public-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 14px;
  }

  .profile-public-avatar {
    margin: 0 auto;
    width: 96px;
    height: 96px;
  }

  .profile-public-head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .profile-public-actions {
    align-items: center;
    width: 100%;
  }

  .profile-follow-btn {
    width: 100%;
    max-width: 220px;
  }

  .profile-link-btn {
    width: 100%;
    max-width: 220px;
  }

  .profile-public-follow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: center;
  }

  .profile-follow-stat {
    width: 100%;
    min-width: 0;
  }

  .profile-public-meta {
    justify-content: center;
    gap: 8px 12px;
  }

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

  .profile-stat {
    padding: 10px 12px;
  }

  .story-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  body.page-topups .hero {
    margin-top: 24px;
  }

  .table-like.is-responsive .table-like-header {
    display: none;
  }

  .table-like.is-responsive .table-like-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .table-like.is-responsive .table-like-row > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .table-like.is-responsive .table-like-row > *::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }

  .admin-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-filter-row .btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .message-section {
    margin-top: 24px;
    margin-bottom: 16px;
  }

  .message-shell {
    height: min(86vh, 760px);
    min-height: 500px;
  }

  .message-sidebar {
    padding: 12px;
  }

  .message-sidebar-head h3 {
    font-size: 15px;
  }

  .message-search input {
    font-size: 12px;
  }

  .message-thread {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .message-thread-time {
    display: none;
  }

  .message-thread-note {
    font-size: 11px;
  }

  .message-role {
    font-size: 10px;
    padding: 2px 6px;
  }

  .message-user-name {
    font-size: 14px;
  }

  .message-warning {
    font-size: 11px;
  }

  .message-input {
    gap: 8px;
    padding: 12px;
  }

  .message-input input {
    font-size: 12px;
  }

  .message-icon {
    width: 34px;
    height: 34px;
  }

  .message-send {
    min-width: 52px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .order-modal .modal-card {
    padding: 16px;
  }

  .order-qty-control input {
    width: 56px;
  }
}

@media (max-width: 380px) {
  .mobile-nav-top {
    flex-wrap: wrap;
  }

  .mobile-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .mobile-actions .btn {
    padding: 4px 10px;
    font-size: 11px;
  }
}

