:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.09);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fbff;
  --muted: #aeb9cc;
  --line: rgba(255, 255, 255, 0.14);
  --primary: #2df0b2;
  --primary-dark: #0fa77c;
  --accent: #ffca3a;
  --danger: #ff5c7a;
  --blue: #56a8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(45, 240, 178, 0.2), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 202, 58, 0.16), transparent 28%),
    linear-gradient(135deg, #080b16 0%, #10182a 45%, #071d23 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.2;
  animation: float 16s ease-in-out infinite;
}
.aurora span:nth-child(1) { background: var(--primary); top: -8rem; right: -7rem; }
.aurora span:nth-child(2) { background: var(--accent); bottom: 8rem; left: -10rem; animation-delay: -4s; }
.aurora span:nth-child(3) { background: var(--blue); top: 40%; right: 35%; animation-delay: -8s; }
.aurora span:nth-child(4) { background: var(--danger); bottom: -12rem; right: 20%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -45px, 0) scale(1.1); }
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  min-height: 76px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 20;
}
.messages {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  gap: 10px;
}
.message {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}
.message.success { border-color: rgba(45, 240, 178, 0.42); color: var(--primary); }
.message.error { border-color: rgba(255, 92, 122, 0.46); color: #ffdce4; }
.message.info { border-color: rgba(86, 168, 255, 0.42); color: #d9ebff; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand strong { display: block; font-size: 1.25rem; }
.brand small { color: var(--muted); font-size: 0.76rem; }
.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), var(--blue), var(--primary));
  color: #061017;
  font-weight: 900;
  box-shadow: 0 0 36px rgba(45, 240, 178, 0.34);
}
.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 54px;
  filter: drop-shadow(0 0 18px rgba(45, 240, 178, 0.28));
}
.main-nav { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a, .header-cta {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover, .header-cta:hover { color: var(--text); background: var(--panel); }
.header-cta { border: 1px solid var(--line); color: var(--text); }

.hero, .page-hero, .admin-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto;
}
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 34px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0;
}
.eyebrow {
  color: var(--primary);
  font-weight: 800;
  margin: 0 0 12px;
}
.hero-text {
  color: #d7dfef;
  font-size: 1.2rem;
  line-height: 2;
  max-width: 680px;
}
.hero-actions, .filter-bar, .bid-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #04120f; font-weight: 900; }
.btn.secondary { background: linear-gradient(135deg, var(--accent), #f28400); color: #1b1000; font-weight: 800; }
.btn.ghost { border: 1px solid var(--line); background: var(--panel); }
.btn.danger { background: rgba(255, 92, 122, 0.16); color: #ffdce4; border: 1px solid rgba(255, 92, 122, 0.4); }

.hero-stage {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
.orbit-one { width: 410px; height: 410px; }
.orbit-two { width: 290px; height: 290px; animation-duration: 9s; animation-direction: reverse; }
.orbit::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 42px;
  right: 42px;
  box-shadow: 0 0 22px var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hammer {
  width: 190px;
  height: 190px;
  border-radius: 52px;
  background: linear-gradient(135deg, rgba(45, 240, 178, 0.95), rgba(86, 168, 255, 0.9));
  display: grid;
  place-items: center;
  color: #061017;
  font-size: 6rem;
  font-weight: 900;
  transform: rotate(-12deg);
  box-shadow: 0 30px 80px rgba(45, 240, 178, 0.3);
}
.live-card {
  position: absolute;
  bottom: 66px;
  right: 20px;
  width: 240px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: 3;
}
.live-card b { display: block; margin: 10px 0; color: var(--accent); }
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(45, 240, 178, 0.7);
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(45, 240, 178, 0); } }

.stats-grid, .auction-grid, .category-strip, .section-head, .detail-layout, .detail-tabs, .columns, .dashboard-shell, .metric-cards, .admin-grid, .capability-wall, .content-band, .auth-layout, .info-grid, .contact-layout, .legal-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto;
}
.stats-grid, .metric-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stats-grid article, .metric-cards article, .panel, .auth-panel, .feature-panel, .content-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.stats-grid span, .metric-cards b { font-size: 1.5rem; font-weight: 900; color: var(--accent); }
.stats-grid p, .metric-cards span { color: var(--muted); margin: 8px 0 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-head h2, .section-head h1 { margin: 0; font-size: 2rem; }
.section-head a { color: var(--primary); font-weight: 800; }
.category-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.category-pill {
  min-width: 180px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}
.category-pill span { display: block; font-size: 1.6rem; }
.category-pill small { color: var(--muted); display: block; margin-top: 6px; }

.auction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.auction-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.auction-card:hover { transform: translateY(-5px); border-color: rgba(45, 240, 178, 0.45); }
.auction-cover { position: relative; height: 220px; display: block; overflow: hidden; }
.auction-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.auction-card:hover img { transform: scale(1.05); }
.status {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
}
.status.active { color: var(--primary); }
.status.finished { color: var(--accent); }
.auction-body { padding: 18px; }
.meta-row, .price-row, .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}
.auction-body h3 { min-height: 58px; margin: 14px 0 8px; font-size: 1.2rem; }
.auction-body p { color: var(--muted); line-height: 1.8; min-height: 64px; }
.price-row strong { color: var(--accent); }
.card-footer { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; color: var(--primary); }

.page-hero.compact {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(45, 240, 178, 0.14), rgba(86, 168, 255, 0.1));
  border: 1px solid var(--line);
}
.page-hero h1 { margin: 0 0 18px; font-size: 3rem; }
.filter-bar input, .filter-bar select, .bid-form input, .stack-form input, .stack-form select, .stack-form textarea, .seller-create-form input, .seller-create-form select, .seller-create-form textarea, .table-row input, .table-row select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
}
textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }
.filter-bar input { min-width: 280px; flex: 1; }
.filter-bar select { min-width: 160px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}
.media-panel, .bid-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.main-media { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumbs img, .thumbs video { height: 88px; width: 100%; object-fit: cover; border-radius: 14px; opacity: 0.86; }
.bid-panel h1 { margin: 16px 0; font-size: 2.4rem; }
.bid-panel p { color: #d7dfef; line-height: 1.9; }
.timer-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(45, 240, 178, 0.1);
  border: 1px solid rgba(45, 240, 178, 0.28);
}
.timer-box span { color: var(--muted); display: block; }
.timer-box strong { color: var(--primary); font-size: 2rem; }
.bid-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bid-metrics div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.bid-metrics small { color: var(--muted); display: block; margin-bottom: 8px; }
.bid-metrics b { color: var(--accent); }
.bid-form { margin-top: 18px; }
.bid-form label { width: 100%; color: var(--muted); }
.bid-form input { flex: 1; min-width: 180px; }
.detail-tabs, .columns, .auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.detail-tabs article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { margin: 12px 0; color: #dce5f4; }
.check-list li::before { content: "✓"; color: var(--primary); margin-left: 8px; }
.seller-box { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #1a1100;
  font-weight: 900;
}
.table { display: grid; gap: 8px; }
.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}
.table-row small, .muted { color: var(--muted); }
.table-row button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 8px 10px;
}
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa p { color: var(--muted); }
.qa small { display: block; color: var(--muted); margin-top: 6px; }

.dashboard-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  align-items: start;
}
.side-menu {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}
.side-menu strong { margin-bottom: 10px; }
.side-menu a {
  padding: 10px 12px;
  border-radius: 13px;
  color: var(--muted);
}
.side-menu a:hover { color: var(--text); background: var(--panel); }
.dashboard-content { display: grid; gap: 20px; }
.metric-cards { width: 100%; margin: 0; }
.section-head.inline { width: 100%; margin: 0; }
.ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ticket-grid article {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.ticket-grid span, .ticket-grid small { display: block; color: var(--muted); margin-top: 8px; }

.admin-hero {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 202, 58, 0.14), rgba(45, 240, 178, 0.1));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-hero h1 { margin: 0; font-size: 2.8rem; }
.mini-chart {
  height: 140px;
  min-width: 300px;
  display: flex;
  align-items: end;
  gap: 14px;
}
.mini-chart span {
  position: relative;
  width: 28px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--blue));
  animation: bars 2.6s ease-in-out infinite;
}
.mini-chart small {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.mini-chart span:nth-child(1) { height: 46%; }
.mini-chart span:nth-child(2) { height: 72%; animation-delay: -0.2s; }
.mini-chart span:nth-child(3) { height: 58%; animation-delay: -0.4s; }
.mini-chart span:nth-child(4) { height: 86%; animation-delay: -0.6s; }
.mini-chart span:nth-child(5) { height: 63%; animation-delay: -0.8s; }
.mini-chart span:nth-child(6) { height: 96%; animation-delay: -1s; }
@keyframes bars { 50% { transform: scaleY(0.72); opacity: 0.76; } }
.metric-cards.admin { grid-template-columns: repeat(5, 1fr); }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.capability-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.capability-wall h2 { width: 100%; margin: 0 0 8px; }
.capability-wall span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce5f4;
}

.auth-layout { align-items: stretch; }
.auth-layout.auth-three { grid-template-columns: repeat(3, 1fr); }
.auth-methods {
  display: grid;
  gap: 12px;
}
.auth-method {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.auth-method:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 240, 178, 0.42);
}
.auth-method span, .auth-switches a {
  color: var(--muted);
}
.auth-switches {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.auth-switches a {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}
.auth-panel h1 { margin-top: 0; font-size: 2.5rem; }
.stack-form { display: grid; gap: 12px; }
.compact-form { margin: 12px 0; }
.seller-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.seller-create-form textarea,
.seller-create-form .checkbox-row,
.seller-create-form button {
  grid-column: 1 / -1;
}
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.checkbox-row input { width: 18px; height: 18px; }
.admin-actions-panel { width: min(1180px, calc(100% - 32px)); margin: 26px auto; }
.faq-layout {
  width: min(980px, calc(100% - 32px));
  margin: 26px auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0 18px;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 800;
}
.faq-item summary span {
  float: left;
  color: var(--primary);
  font-size: 0.85rem;
}
.faq-item p {
  color: #dce5f4;
  line-height: 2;
  margin: 0 0 18px;
}
.question-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}
.question-row p { color: #dce5f4; margin: 8px 0; }
.question-row small { color: var(--muted); }
.question-row textarea { min-height: 76px; }
.feature-panel .steps { display: grid; gap: 12px; }
.auth-hint { margin-top: 16px; }
.feature-panel .steps span {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.content-band { line-height: 2; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.info-card span { color: var(--primary); font-weight: 800; }
.info-card strong { display: block; margin: 10px 0; font-size: 1.2rem; }
.info-card p, .rich-copy p { color: #dce5f4; line-height: 2; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.legal-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 22px;
  background: var(--panel);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 24px;
  padding: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; align-items: center; }

@media (max-width: 980px) {
  .site-header { position: relative; top: auto; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; }
  .hero, .detail-layout, .dashboard-shell, .auth-layout { grid-template-columns: 1fr; }
  .auth-layout.auth-three { grid-template-columns: 1fr; }
  .hero-stage { min-height: 380px; }
  .stats-grid, .metric-cards, .metric-cards.admin, .bid-metrics { grid-template-columns: repeat(2, 1fr); }
  .auction-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .side-menu { position: static; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 4rem; }
  .hero { min-height: auto; }
  .hero-stage { display: none; }
  .stats-grid, .metric-cards, .auction-grid, .detail-tabs, .columns, .admin-grid, .ticket-grid, .info-grid, .contact-layout, .legal-layout { grid-template-columns: 1fr; }
  .page-hero h1, .admin-hero h1 { font-size: 2rem; }
  .admin-hero { display: block; }
  .mini-chart { min-width: 0; margin-top: 20px; }
  .main-media { height: 300px; }
  .table-row { grid-template-columns: 1fr; }
  .question-row { grid-template-columns: 1fr; }
  .seller-create-form { grid-template-columns: 1fr; }
  .site-footer { display: block; }
}
