:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --panel: rgba(22, 25, 32, 0.78);
  --panel-strong: rgba(31, 35, 45, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f3f7;
  --muted: #9ca4b4;
  --soft: #c4cad5;
  --red: #df2034;
  --red-2: #ff4357;
  --gold: #c9a769;
  --green: #43d69c;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(223, 32, 52, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(201, 167, 105, 0.10), transparent 24%),
    linear-gradient(135deg, #050608 0%, #0b0d12 42%, #08090d 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020305;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  contain: layout paint;
  will-change: opacity;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash.is-gone {
  display: none;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-glow {
  position: absolute;
  width: min(580px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 39, 61, 0.40), transparent 58%),
    radial-gradient(circle, rgba(201, 167, 105, 0.14), transparent 42%),
    radial-gradient(circle, rgba(255, 255, 255, 0.10), transparent 34%);
  filter: blur(8px);
  animation: glowPulse 2100ms ease-in-out infinite;
}

.splash-logo {
  position: relative;
  display: grid;
  place-items: center;
  gap: 18px;
  animation: logoRise 1650ms ease both;
}

.logo-mark {
  min-width: 160px;
  padding: 20px 26px;
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 67, 87, 0.24), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, #261219, #07080d);
  box-shadow:
    0 0 74px rgba(223, 32, 52, 0.50),
    0 0 24px rgba(255, 67, 87, 0.25),
    inset 0 0 26px rgba(255, 255, 255, 0.08);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(255, 67, 87, 0.48),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.logo-line {
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-2), var(--gold), transparent);
}

.splash-logo p {
  margin: 0;
  color: #d7dce5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.app-shell {
  min-height: 100vh;
  opacity: 1;
  will-change: opacity;
  transition: opacity 320ms ease;
}

.app-shell.is-loading {
  opacity: 0;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 10, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, #222632, #090a0e);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.04), 0 0 24px rgba(223, 32, 52, 0.18);
  color: #fff;
  font-weight: 900;
}

.brand-mark img {
  display: block;
  max-width: 34px;
  max-height: 34px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  position: relative;
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-btn::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--red-2);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-btn:hover,
.nav-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

.nav-btn.active::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: max-content;
}

.message-icon-btn {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid rgba(220, 232, 255, 0.16);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.message-icon-btn:hover,
.message-icon-btn.has-unread {
  transform: translateY(-1px);
  border-color: rgba(255, 74, 90, 0.48);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
    rgba(223, 32, 52, 0.16);
  box-shadow: 0 16px 34px rgba(223, 32, 52, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.message-icon-btn.is-offline {
  opacity: 0.86;
}

.message-icon-mark {
  font-size: 18px;
  line-height: 1;
}

.message-icon-btn b {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #0b0f17;
  border-radius: 999px;
  color: #fff;
  background: #ef233c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(239, 35, 60, 0.38);
}

.client-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 94, 111, 0.5);
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 70, 86, 0.96), rgba(168, 22, 39, 0.95)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.3), transparent 34%);
  box-shadow: 0 14px 32px rgba(231, 29, 54, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.client-download-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.client-download-btn:hover {
  border-color: rgba(255, 137, 148, 0.82);
  box-shadow: 0 18px 42px rgba(231, 29, 54, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.client-download-btn:hover::after {
  transform: translateX(120%);
}

.backup-download-btn {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 36%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.backup-download-btn:hover {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 22px rgba(231, 29, 54, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.client-download-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
  line-height: 1;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(67, 214, 156, 0.08);
}

.main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0 48px;
}

.page {
  display: none;
  animation: pageIn 280ms ease both;
}

.page.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr);
  gap: 22px;
}

.banner-panel,
.system-card,
.panel,
.member-card,
.profile-card,
.profile-stats article,
.category-panel,
.post-box,
.account-panel,
.device-edit-panel,
.package-hero,
.faq-card,
.tuner-card,
.tool-card,
.tool-library,
.software-admin,
.driver-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.banner-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.banner-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 8, 11, 0.98) 0%, rgba(13, 15, 22, 0.78) 42%, rgba(76, 10, 18, 0.42) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px);
}

.banner-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 520px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 32, 52, 0.28), transparent 62%);
  transform: rotate(-18deg);
}

.banner-track {
  position: relative;
  z-index: 2;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: 58px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.tag,
.eyebrow,
.card-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.hero-main-tag {
  display: inline-block;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.8px;
}

.hall-main-tag {
  display: inline-block;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.8px;
}

.no-break {
  white-space: nowrap;
}

.banner-slide h1,
.page-title h1,
.profile-card h1 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.banner-slide p,
.page-title p,
.member-card p,
.profile-card p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions,
.driver-actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.ghost-action,
.text-link,
.chip,
.category,
.mini-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #c81d2e, #7d111d);
  box-shadow: 0 14px 32px rgba(223, 32, 52, 0.24);
  font-weight: 800;
}

.ghost-action {
  min-height: 42px;
  padding: 0 18px;
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.primary-action:hover,
.ghost-action:hover,
.mini-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.banner-dots {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.banner-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.banner-dots button.active {
  background: var(--red-2);
}

.system-card {
  padding: 26px;
}

.system-card h2,
.member-card h2,
.panel h2,
.section-head h2,
.tool-card h3,
.driver-card h3,
.tuner-card h3,
.service-card h3 {
  margin: 8px 0 0;
  color: #fff;
  letter-spacing: 0;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.metric-row strong {
  color: var(--text);
}

.metric-bar {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.metric-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.metric-bar.red i {
  background: var(--red-2);
}

.metric-bar.gold i {
  background: var(--gold);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
}

.section-head.compact {
  align-items: center;
  margin: 0 0 16px;
}

.text-link {
  min-height: 34px;
  padding: 0 12px;
  color: var(--soft);
  background: transparent;
}

.text-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.home-tuning-action {
  display: inline-grid;
  min-width: 132px;
  min-height: 52px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 8px 18px;
  line-height: 1;
}

.home-tuning-action span {
  font-size: 15px;
  font-weight: 900;
}

.home-tuning-action small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.home-mentor-booking,
.home-tutorial-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
}

.home-mentor-booking {
  min-width: 92px;
  border-color: rgba(255, 74, 90, 0.42);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 74, 90, 0.92), rgba(137, 15, 27, 0.86));
  box-shadow: 0 16px 36px rgba(223, 32, 52, 0.30);
}

.home-tutorial-entry {
  min-width: 150px;
  border-color: rgba(156, 196, 255, 0.28);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(45, 84, 160, 0.90), rgba(255, 74, 90, 0.54));
  box-shadow: 0 16px 38px rgba(56, 104, 210, 0.22);
}

.home-mentor-booking::after,
.home-tutorial-entry::after {
  content: ">";
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1;
}

.home-mentor-booking:hover,
.home-tutorial-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.34);
}

.service-grid,
.tuner-grid,
.tool-grid,
.driver-grid,
.profile-stats,
.device-grid,
.driver-mini-grid {
  display: grid;
  gap: 16px;
}

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

.service-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover,
.tuner-card:hover,
.tool-card:hover,
.driver-card:hover,
.order-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 67, 87, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.032)),
    var(--panel-strong);
}

.service-card span {
  color: var(--red-2);
  font-weight: 900;
}

.service-card p,
.tool-card p,
.driver-card p,
.tuner-card p,
.order-card p,
.post-card p {
  color: var(--muted);
  line-height: 1.65;
}

.service-card strong {
  color: var(--gold);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.panel,
.member-card {
  padding: 22px;
}

.feedback-card {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.home-announcement-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.home-announcement-card .news-list {
  gap: 12px;
}

.home-announcement-title {
  font-size: 1.5em;
  line-height: 1.12;
}

.home-feedback-panel .news-list li {
  min-height: 58px;
}

.home-feedback-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.home-feedback-panel .news-list {
  align-content: start;
  margin-top: 18px;
}

.home-feedback-action {
  justify-self: end;
  align-self: end;
  min-width: 176px;
  min-height: 58px;
  margin-top: 24px;
  padding: 8px 20px 9px;
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  text-align: center;
  letter-spacing: 0;
  box-shadow: 0 12px 26px rgba(223, 32, 52, 0.22);
}

.feedback-action-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.feedback-action-sub {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.home-driver-action {
  min-height: 46px;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
}

.mentor-row,
.case-list div,
.news-list li,
.driver-mini-grid article,
.device-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mentor-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.mentor-row:hover {
  border-color: rgba(255, 74, 90, 0.5);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.mentor-row + .mentor-row,
.case-list div + div {
  margin-top: 10px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #394050, #11141b);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.avatar.red {
  background: linear-gradient(145deg, #d0273a, #331017);
}

.avatar.gold {
  background: linear-gradient(145deg, #c9a769, #2c2315);
}

.mentor-avatar {
  overflow: hidden;
  border: 1px solid rgba(255, 74, 90, 0.42);
  background: #120d10;
  box-shadow: 0 0 0 4px rgba(255, 42, 62, 0.08), 0 10px 22px rgba(0, 0, 0, 0.34);
}

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

.mentor-row small,
.case-list small,
.driver-mini-grid small,
.device-grid span,
.profile-stats span,
.order-card small,
.driver-card small,
.tuner-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mentor-row b {
  color: var(--gold);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  animation: contactFadeIn 180ms ease both;
}

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

.contact-modal.is-closing {
  animation: contactFadeOut 160ms ease both;
}

.contact-modal.is-closing .contact-card {
  animation: contactCardOut 160ms ease both;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 9, 0.72);
  backdrop-filter: blur(8px);
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 470px);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 74, 90, 0.22);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 59, 77, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(26, 18, 22, 0.98), rgba(12, 12, 16, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
  animation: contactCardIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.contact-card h2 {
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.booking-success-card {
  width: min(92vw, 430px);
  text-align: center;
  border-color: rgba(67, 214, 156, 0.36);
  background:
    radial-gradient(circle at 50% 0%, rgba(67, 214, 156, 0.26), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(15, 31, 25, 0.98), rgba(8, 13, 12, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 42px rgba(67, 214, 156, 0.18);
}

.booking-success-card h2 {
  margin-top: 12px;
  color: #fff;
  font-size: 36px;
}

.booking-success-card p {
  margin: 10px auto 20px;
  max-width: 330px;
  color: rgba(229, 255, 245, 0.82);
}

.booking-success-card .primary-action {
  width: 100%;
  min-height: 46px;
  background: linear-gradient(135deg, #38d98e, #14945e);
  box-shadow: 0 18px 34px rgba(67, 214, 156, 0.22);
}

.booking-success-icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(104, 255, 184, 0.42);
  border-radius: 999px;
  color: #dffff0;
  background: rgba(67, 214, 156, 0.17);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08), 0 0 32px rgba(67, 214, 156, 0.24);
  font-size: 38px;
  font-weight: 900;
}

.contact-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-right: 34px;
}

.contact-avatar {
  display: block;
  width: 86px;
  height: 86px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red-2), rgba(255, 218, 138, 0.86));
  box-shadow: 0 0 0 7px rgba(255, 43, 63, 0.1), 0 18px 38px rgba(0, 0, 0, 0.42);
}

.contact-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: #130f12;
}

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

.contact-stats div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.contact-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-stats strong {
  color: #fff;
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.contact-line span {
  color: var(--muted);
  font-size: 13px;
}

.contact-line strong {
  color: var(--gold);
  font-size: 16px;
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.booking-contact-card {
  width: min(460px, calc(100vw - 32px));
}

.booking-contact-card h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 28px;
}

.booking-contact-card p {
  color: var(--muted);
  line-height: 1.7;
}

.booking-contact-image {
  display: block;
  width: 100%;
  max-height: min(68vh, 620px);
  margin-top: 16px;
  border: 1px solid rgba(220, 232, 255, 0.12);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

.booking-contact-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 74, 90, 0.22);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 47, 67, 0.14), rgba(255, 255, 255, 0.045));
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.aftersale-card {
  text-align: center;
}

.aftersale-card h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 28px;
}

.aftersale-duration {
  margin: 18px auto 14px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 74, 90, 0.26);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 74, 90, 0.24), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 18px 42px rgba(223, 32, 52, 0.16);
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 950;
  line-height: 1;
}

.aftersale-card p {
  max-width: 390px;
  margin: 0 auto;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.8;
}

.package-detail-card h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 30px;
}

.package-detail-card strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 18px;
  padding: 0 12px;
  border: 1px solid rgba(201, 167, 105, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 167, 105, 0.08);
  font-size: 14px;
}

.package-detail-card p {
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.8;
}

.package-faq-action {
  width: 100%;
  margin-top: 24px;
}

.purchase-notice-card h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 30px;
}

.purchase-notice-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.purchase-notice-list li {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(255, 199, 108, 0.18);
  border-radius: 14px;
  color: rgba(246, 248, 255, 0.9);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.65;
}

.purchase-notice-list li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  content: "!";
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: #1b0f0f;
  background: linear-gradient(135deg, #ffd36a, #ff6f7e);
  font-size: 13px;
  font-weight: 950;
}

.purchase-notice-confirm {
  width: 100%;
  margin-top: 24px;
}

@keyframes contactFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes contactFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes contactCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contactCardOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

.case-list div,
.driver-mini-grid article,
.device-grid div {
  padding: 14px;
}

.case-list span,
.driver-mini-grid span {
  color: var(--red-2);
  font-size: 12px;
  font-weight: 900;
}

.news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list li {
  padding: 13px 14px;
  color: var(--soft);
}

.news-list span {
  margin-right: 10px;
  color: var(--gold);
  font-weight: 900;
}

.news-list .pinned-news {
  border-color: rgba(255, 74, 90, 0.42);
  background: linear-gradient(135deg, rgba(255, 47, 67, 0.13), rgba(255, 255, 255, 0.035));
}

.news-list .pinned-news span,
.pinned-badge,
.announcement-date {
  color: var(--red-2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  margin-top: 16px;
}

.driver-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-card {
  background:
    linear-gradient(145deg, rgba(201, 167, 105, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(22, 25, 32, 0.82);
}

.page-title {
  max-width: 900px;
  margin-bottom: 24px;
}

.page-title.split-title {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.package-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 42px;
  border-color: rgba(220, 232, 255, 0.10);
  background:
    radial-gradient(circle at 18% 18%, rgba(78, 102, 255, 0.13), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(223, 32, 52, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(5, 7, 12, 0.86);
}

.package-hero::before,
.package-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.package-hero::before {
  inset: 0;
  opacity: 0.26;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.4px),
    linear-gradient(120deg, transparent 0 45%, rgba(255, 255, 255, 0.04) 50%, transparent 55% 100%);
  background-size: 180px 180px, 320px 320px;
  animation: premiumParticleFlow 36s linear infinite;
}

.package-hero::after {
  right: -120px;
  bottom: -150px;
  width: 520px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 32, 52, 0.18), rgba(114, 74, 255, 0.09) 42%, transparent 68%);
  filter: blur(8px);
}

.package-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.06;
}

.package-hero p {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 19px;
}

.filter-bar,
.order-tabs,
.driver-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  color: var(--soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.chip.active,
.chip:hover {
  color: #fff;
  border-color: rgba(255, 67, 87, 0.38);
  background: rgba(223, 32, 52, 0.18);
}

.tuner-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.15fr 0.92fr;
  gap: clamp(18px, 2.2vw, 28px);
  align-items: stretch;
  margin: 54px 0 42px;
  padding: 58px clamp(14px, 2.4vw, 28px) 50px;
  isolation: isolate;
}

.tuner-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 34%, rgba(223, 32, 52, 0.12), transparent 34%),
    radial-gradient(circle at 36% 70%, rgba(112, 72, 255, 0.11), transparent 31%),
    radial-gradient(circle at 72% 58%, rgba(56, 132, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.2), rgba(7, 10, 18, 0.62));
  filter: blur(0);
}

.tuner-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, rgba(229, 238, 255, 0.4) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(145, 176, 255, 0.28) 0 1px, transparent 1.4px);
  background-size: 220px 220px, 360px 360px;
  animation: premiumParticleFlow 42s linear infinite;
}

.tuner-card,
.tool-card,
.driver-card,
.order-card {
  padding: 20px;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), border-color 600ms ease, background 600ms ease, box-shadow 600ms ease;
}

.package-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 2.2vw, 34px);
  border-radius: 20px;
  border-color: rgba(225, 235, 255, 0.10);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.025)),
    rgba(12, 15, 24, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
  transform: scale(0.92);
  animation: premiumCardIn 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--card-index) * 120ms);
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.10), transparent 56%);
  transform: translateX(-120%);
  transition: opacity 600ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.package-card:hover {
  transform: translateY(-12px) scale(0.94);
  border-color: rgba(226, 235, 255, 0.20);
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.48);
}

.package-card:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.package-ambient {
  position: absolute;
  inset: auto -22% -18% -22%;
  height: 220px;
  opacity: 0.12;
  background: linear-gradient(90deg, rgba(223, 32, 52, 0.85), rgba(137, 92, 255, 0.8), rgba(62, 145, 255, 0.75));
  filter: blur(56px);
  pointer-events: none;
  animation: premiumGlowBreath 4.8s ease-in-out infinite;
}

.premium-package {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(14, 17, 28, 0.76);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.52), 0 0 80px rgba(223, 32, 52, 0.11);
  transform: translateY(-18px) scale(1.15);
}

.premium-package:hover {
  transform: translateY(-30px) scale(1.17);
  box-shadow: 0 46px 130px rgba(0, 0, 0, 0.62), 0 0 100px rgba(114, 74, 255, 0.14);
}

.package-code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(220, 232, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.package-level {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(201, 167, 105, 0.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 167, 105, 0.08);
  font-size: 13px;
  white-space: nowrap;
}

.package-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.package-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.package-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

.package-title-block {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

.package-title-block h3 {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.08;
}

.package-title-block p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.package-price {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.package-price strong {
  display: block;
  color: #fff;
  font-size: clamp(56px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0;
}

.package-price span {
  display: block;
  margin-top: 10px;
  color: rgba(226, 235, 255, 0.62);
  font-size: 14px;
}

.package-meta-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.package-meta-line span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 999px;
  color: rgba(226, 235, 255, 0.68);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.package-services {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.package-services li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-left: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.55;
}

.package-service-highlight {
  color: #fff;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 67, 87, 0.28), rgba(255, 199, 108, 0.16));
  border: 1px solid rgba(255, 199, 108, 0.34);
  box-shadow: 0 0 18px rgba(255, 67, 87, 0.16);
}

.package-feature-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: rgba(156, 190, 255, 0.86);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.package-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.package-primary-action,
.package-secondary-action,
.package-notice-action,
.package-text-action {
  border-radius: 10px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.package-primary-action {
  min-height: 48px;
  color: #fff;
  background: linear-gradient(135deg, #d8263a, #8f1422);
  box-shadow: 0 18px 42px rgba(223, 32, 52, 0.26);
}

.package-secondary-action {
  min-height: 44px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.package-notice-action {
  min-height: 42px;
  color: #ffe9b7;
  border: 1px solid rgba(255, 199, 108, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 199, 108, 0.16), rgba(255, 74, 90, 0.10)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.package-text-action {
  justify-self: center;
  min-height: 34px;
  color: rgba(226, 235, 255, 0.62);
  background: transparent;
}

.package-primary-action:hover,
.package-secondary-action:hover,
.package-notice-action:hover,
.package-text-action:hover {
  transform: translateY(-2px);
}

@keyframes premiumCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  to {
    opacity: 1;
  }
}

@keyframes premiumGlowBreath {
  0%,
  100% {
    opacity: 0.10;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.15;
    transform: scale(1.04);
  }
}

@keyframes premiumParticleFlow {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 180px 120px, -220px 180px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 13px;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.busy {
  color: var(--gold);
}

.status.offline {
  color: #8f98a8;
}

.tuner-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.tuner-meta div {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

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

.skills span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.faq-section {
  margin-top: 34px;
}

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

.faq-card {
  padding: 22px;
}

.faq-card span {
  color: var(--red-2);
  font-weight: 900;
}

.faq-card h3 {
  margin: 10px 0 0;
  color: #fff;
}

.faq-card p {
  color: var(--soft);
  line-height: 1.75;
}

.faq-card ul {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.faq-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-2);
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mini-btn {
  min-height: 36px;
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.mini-btn.primary {
  border-color: rgba(223, 32, 52, 0.42);
  background: rgba(223, 32, 52, 0.20);
}

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}

.admin-login-panel {
  min-height: calc(100vh - 170px);
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(520px, 100%);
  padding: 30px;
}

.admin-login-card h1 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
}

.admin-login-card p {
  color: var(--soft);
  line-height: 1.7;
}

.admin-error {
  min-height: 22px;
  margin: 0;
  color: var(--red-2);
}

.admin-login-card .primary-action[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.admin-profile {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-profile strong,
.admin-profile small {
  display: block;
}

.admin-profile small {
  color: var(--muted);
}

.tool-library,
.software-admin {
  padding: 22px;
}

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

.tool-library-head h2 {
  margin: 8px 0 0;
  color: #fff;
}

.library-actions,
.form-actions,
.software-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  color: #fff;
  border-color: rgba(255, 74, 90, 0.46);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.20), transparent 34%),
    linear-gradient(135deg, rgba(255, 74, 90, 0.92), rgba(176, 20, 35, 0.78));
  box-shadow: 0 14px 34px rgba(223, 32, 52, 0.22);
  font-weight: 900;
}

.download-action:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 46px rgba(223, 32, 52, 0.32);
}

.btn-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

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

.tutorial-library {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  padding-top: 30px;
}

.tutorial-library::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -120px;
  width: 420px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 32, 52, 0.18), rgba(75, 115, 255, 0.08) 44%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.tutorial-library-head {
  position: relative;
  z-index: 1;
  align-items: end;
  margin-bottom: 26px;
}

.tutorial-library-head h2 {
  margin-top: 12px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
}

.tutorial-library-head p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.75;
}

.tutorial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 176px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 32, 52, 0.13), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(75, 115, 255, 0.09), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.026));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.20);
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 74, 90, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 32, 52, 0.20), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(75, 115, 255, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.098), rgba(255, 255, 255, 0.034));
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.30);
}

.tutorial-index {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 74, 90, 0.28);
  border-radius: 10px;
  color: var(--red-2);
  background: rgba(223, 32, 52, 0.10);
  font-weight: 950;
}

.tutorial-card h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.tutorial-card p {
  margin: 12px 0 0;
  overflow: hidden;
  color: rgba(221, 229, 244, 0.78);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-card .mini-btn {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  min-height: 42px;
  margin-top: 4px;
  text-decoration: none;
  text-align: center;
  font-weight: 900;
}

.tutorial-admin-panel .software-form {
  margin-bottom: 18px;
}

.admin-tutorial-row h3 {
  font-size: 20px;
}

.admin-home {
  display: grid;
  gap: 18px;
}

.admin-info-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-info-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(223, 32, 52, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(13, 16, 24, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.30);
}

.admin-info-card h3 {
  margin: 8px 0 16px;
  color: #fff;
  font-size: 22px;
}

.admin-info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.admin-info-row strong {
  color: var(--text);
  text-align: right;
}

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

.admin-module-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
    rgba(12, 15, 24, 0.70);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.30);
  text-align: left;
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

.admin-module-card::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -92px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 32, 52, 0.20), transparent 66%);
  filter: blur(4px);
}

.admin-module-card span,
.admin-module-card strong,
.admin-module-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.admin-module-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.admin-module-card strong {
  margin-top: 18px;
  color: #fff;
  font-size: 26px;
  line-height: 1.15;
}

.admin-module-card small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.admin-module-card:hover,
.admin-module-card.active {
  transform: translateY(-8px);
  border-color: rgba(255, 74, 90, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.032)),
    rgba(16, 19, 28, 0.82);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.42);
}

.admin-module-card.is-primary {
  border-color: rgba(255, 74, 90, 0.24);
  background:
    radial-gradient(circle at 88% 12%, rgba(223, 32, 52, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.028)),
    rgba(16, 17, 25, 0.84);
}

.admin-workspace {
  display: grid;
  gap: 18px;
  animation: pageIn 260ms ease both;
}

.admin-workspace-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 20%, rgba(75, 115, 255, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.024)),
    rgba(11, 14, 22, 0.78);
  box-shadow: var(--shadow);
}

.admin-workspace-head h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 46px);
}

.admin-workspace-head p {
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.7;
}

.admin-module-view {
  animation: pageIn 260ms ease both;
}

.admin-panel-desc {
  margin: -4px 0 18px;
  color: var(--soft);
  line-height: 1.7;
}

.contract-admin-panel {
  overflow: hidden;
}

.contract-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 14px;
  background: rgba(4, 6, 10, 0.42);
}

.contract-table {
  width: 100%;
  min-width: 1360px;
  border-collapse: collapse;
}

.contract-table th,
.contract-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}

.contract-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: rgba(226, 235, 255, 0.72);
  background: rgba(13, 16, 24, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.contract-table td {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.55;
}

.contract-table tr:hover td {
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
}

.contract-table tr:last-child td {
  border-bottom: 0;
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, rgba(223, 32, 52, 0.34), rgba(255, 255, 255, 0.04));
  font-weight: 900;
}

.tool-status,
.software-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.software-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.software-command {
  margin-top: 14px;
  padding: 11px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #b9ffdc;
  background: #050609;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-buttons,
.software-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.empty-tools {
  grid-column: 1 / -1;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.empty-tools strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
}

.log-panel {
  position: sticky;
  top: 92px;
  height: fit-content;
}

.log-output {
  min-height: 420px;
  max-height: 560px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050609;
  color: #b9ffdc;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
}

.log-output p {
  margin: 0 0 8px;
}

.software-admin:not(.admin-module-view):not(.admin-login-card) {
  position: sticky;
  top: 92px;
  height: fit-content;
}

.admin-list-panel {
  min-height: 520px;
}

.admin-software-list {
  display: grid;
  gap: 14px;
}

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

.announcement-admin-panel {
  min-height: auto;
}

.driver-admin-panel {
  min-height: auto;
}

.pinned-badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 74, 90, 0.28);
  background: rgba(255, 47, 67, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.pinned-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 74, 90, 0.22);
  background: rgba(255, 47, 67, 0.08);
}

.pinned-preview span,
.announcement-date {
  font-size: 12px;
  font-weight: 900;
}

.pinned-preview p,
.admin-announcement-row p {
  margin: 0;
  color: var(--soft);
  line-height: 1.6;
}

.announcement-form {
  margin-bottom: 14px;
}

.admin-announcement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.admin-driver-row p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-software-row .software-actions {
  margin-top: 14px;
}

.software-admin-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.software-admin-summary article {
  padding: 15px 16px;
  border: 1px solid rgba(220, 232, 255, 0.09);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 32, 52, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.035);
}

.software-admin-summary span,
.software-admin-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.software-admin-summary strong {
  display: block;
  margin: 7px 0 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.admin-empty {
  min-height: 420px;
}

.software-form {
  display: grid;
  gap: 12px;
}

.software-form label {
  display: grid;
  gap: 7px;
}

.software-form label span {
  color: var(--muted);
  font-size: 13px;
}

.software-form input,
.software-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.software-form input {
  min-height: 42px;
  padding: 0 12px;
}

.software-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.software-form input:focus,
.software-form textarea:focus {
  border-color: rgba(255, 67, 87, 0.48);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(223, 32, 52, 0.10);
}

.file-picker input {
  padding: 9px 12px;
  color: var(--soft);
}

.admin-hint {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(201, 167, 105, 0.24);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(201, 167, 105, 0.07);
}

.admin-hint strong {
  color: var(--gold);
}

.admin-hint p {
  margin: 8px 0 0;
  line-height: 1.65;
}

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

.driver-card h3 {
  font-size: 24px;
}

.driver-version {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.driver-version div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.driver-version strong {
  color: var(--text);
}

.update-list {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  line-height: 1.8;
}

.community-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}

.community-auth-panel,
.community-user-bar,
.messages-auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(223, 32, 52, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(12, 15, 24, 0.72);
  box-shadow: var(--shadow);
}

.community-auth-panel h2,
.messages-auth-panel h2,
.community-user-bar strong {
  display: block;
  margin: 8px 0 0;
  color: #fff;
  font-size: 28px;
}

.community-auth-panel p,
.messages-auth-panel p {
  color: var(--soft);
  line-height: 1.7;
}

.community-auth-form {
  display: grid;
  gap: 10px;
}

.community-auth-form input,
.community-profile-form input,
.community-post-form input,
.community-post-form textarea,
.community-post-form select,
.community-comment-form textarea,
.community-message-form textarea,
.community-admin-edit input,
.community-admin-edit select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

.community-auth-form input,
.community-profile-form input,
.community-post-form input,
.community-post-form select,
.community-admin-edit input,
.community-admin-edit select {
  min-height: 44px;
  padding: 0 12px;
}

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

.community-user-bar {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr) auto;
}

.community-account-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.community-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.category-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  height: fit-content;
  padding: 12px;
  border: 1px solid rgba(220, 232, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.community-message-panel {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 232, 255, 0.10);
}

.messages-page-panel {
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  height: clamp(560px, 72vh, 720px);
  min-height: 0;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 8%, rgba(223, 32, 52, 0.10), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.070), rgba(255, 255, 255, 0.025)),
    rgba(10, 13, 21, 0.82);
  box-shadow: var(--shadow);
}

.messages-page-panel .community-message-head {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(220, 232, 255, 0.10);
  background: rgba(255, 255, 255, 0.035);
}

.messages-page-panel .community-conversation-list {
  max-height: none;
  min-height: 0;
  height: 100%;
  padding: 8px;
  overflow: auto;
  border-right: 1px solid rgba(220, 232, 255, 0.10);
  background: rgba(0, 0, 0, 0.13);
}

.messages-chat-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 14px;
}

.messages-page-panel .community-message-target {
  margin-bottom: 12px;
}

.messages-page-panel .community-message-thread {
  align-content: start;
  max-height: none;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.16);
}

.messages-page-panel .community-message {
  width: fit-content;
  max-width: min(78%, 560px);
  padding: 6px 9px 5px;
  border-radius: 11px 11px 11px 4px;
}

.messages-page-panel .community-message.mine {
  border-radius: 11px 11px 4px 11px;
  background: linear-gradient(135deg, rgba(231, 29, 54, 0.24), rgba(160, 18, 34, 0.20));
}

.messages-page-panel .community-message-form {
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  margin-top: 12px;
  align-items: stretch;
  align-self: end;
}

.messages-page-panel .community-message-form textarea {
  min-height: 52px;
  max-height: 92px;
  resize: none;
}

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

.community-message-head strong {
  display: block;
  margin-top: 4px;
  color: #fff;
}
.community-message-target {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 12px;
  color: rgba(218, 226, 240, 0.82);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  line-height: 1.55;
}

.community-conversation-list {
  display: grid;
  align-content: start;
  align-items: start;
  gap: 8px;
  grid-auto-rows: max-content;
  max-height: 190px;
  overflow: auto;
}

.community-conversation {
  position: relative;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(220, 232, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.community-conversation-open {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 5px 24px 5px 6px;
  text-align: left;
  border: 0;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
}

.community-conversation:hover,
.community-conversation.active {
  transform: translateY(-1px);
  border-color: rgba(255, 74, 90, 0.32);
  background: rgba(223, 32, 52, 0.12);
}

.community-conversation-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.community-conversation-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.community-conversation-main strong {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-conversation b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.community-conversation-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-conversation-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(236, 241, 255, 0.72);
  background: rgba(255, 255, 255, 0.075);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.86;
  transition: opacity 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.community-conversation:hover .community-conversation-delete,
.community-conversation:focus-within .community-conversation-delete {
  opacity: 1;
}

.community-conversation-delete:hover {
  color: #fff;
  background: rgba(231, 29, 54, 0.82);
  transform: scale(1.05);
}

.community-message-thread {
  display: grid;
  gap: 6px;
  max-height: 260px;
  min-height: 120px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(220, 232, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
}

.community-message-load-more {
  justify-self: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 999px;
  color: rgba(218, 226, 240, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  cursor: pointer;
}

.community-message-load-more:hover {
  color: #fff;
  border-color: rgba(255, 74, 90, 0.26);
  background: rgba(223, 32, 52, 0.14);
}

.community-message-load-more:disabled {
  cursor: default;
  opacity: 0.62;
}

.community-message {
  width: min(92%, 230px);
  padding: 6px 9px 5px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.community-message.mine {
  justify-self: end;
  border-color: rgba(255, 74, 90, 0.25);
  background: rgba(223, 32, 52, 0.16);
}

.community-message p {
  margin: 0 0 3px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-message span,
.community-message-empty {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
}

.community-message-empty {
  padding: 8px;
  text-align: center;
}

.community-message-empty.small {
  padding: 2px;
}

.community-message-form {
  display: grid;
  gap: 8px;
}

.community-message-form textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

.category {
  min-height: 42px;
  color: var(--soft);
  border-color: transparent;
  background: transparent;
  text-align: left;
  padding: 0 12px;
}

.category.active,
.category:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.post-box {
  display: none;
  gap: 12px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}

.post-box.open {
  display: grid;
}

.post-box input,
.post-box textarea,
.profile-form input,
.profile-form textarea,
.profile-form select,
.spend-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.post-box input,
.profile-form input,
.profile-form select,
.spend-form input {
  min-height: 42px;
  padding: 0 12px;
}

.post-box textarea,
.profile-form textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
}

.community-post-form {
  display: grid;
  gap: 12px;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.community-stats-grid article {
  padding: 16px;
  border: 1px solid rgba(220, 232, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.community-stats-grid span {
  color: var(--muted);
  font-size: 13px;
}

.community-stats-grid strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
}

.post-list,
.order-list {
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 20px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(223, 32, 52, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.024));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 74, 90, 0.28);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.post-meta,
.post-actions,
.order-head,
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
}

.post-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.post-actions button:hover,
.post-actions button.is-pulsing {
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  border-color: rgba(255, 74, 90, 0.32);
  background: rgba(223, 32, 52, 0.16);
}

.post-actions button.is-done,
.post-actions button:disabled {
  color: #fff;
  border-color: rgba(255, 74, 90, 0.42);
  background: rgba(223, 32, 52, 0.22);
  cursor: default;
}

.post-actions button.danger-action,
.community-detail-owner-actions .danger-action {
  color: #ffd8dd;
  border-color: rgba(255, 74, 90, 0.30);
  background: rgba(223, 32, 52, 0.12);
}

.post-actions button.danger-action:hover,
.community-detail-owner-actions .danger-action:hover {
  color: #fff;
  border-color: rgba(255, 74, 90, 0.48);
  background: rgba(223, 32, 52, 0.24);
}

.community-detail-owner-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 12px;
}

.community-detail-owner-actions[hidden] {
  display: none;
}

.community-category-tag {
  padding: 5px 9px;
  border: 1px solid rgba(201, 167, 105, 0.30);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(201, 167, 105, 0.08);
  font-weight: 900;
}

.community-author-name,
.community-author-link {
  color: inherit;
  font: inherit;
}

.community-author-link {
  padding: 0;
  color: #fff;
  font-weight: 900;
  font-size: inherit;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 74, 90, 0.34);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.community-author-link:hover {
  color: #ff7f8a;
  border-color: rgba(255, 74, 90, 0.72);
  text-shadow: 0 0 18px rgba(255, 74, 90, 0.22);
}

.community-author-link.is-strong {
  display: inline-flex;
  align-items: center;
}

.community-detail-card {
  width: min(92vw, 760px);
  max-height: min(86vh, 780px);
  overflow: auto;
}

.community-detail-card h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 34px;
}

.community-profile-card {
  width: min(92vw, 560px);
}

.community-profile-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.community-profile-head img {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(220, 232, 255, 0.14);
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.community-profile-head h2 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

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

.community-profile-meta span {
  padding: 5px 8px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 999px;
  color: rgba(218, 226, 240, 0.82);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.community-profile-section {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 255, 0.10);
}

.community-profile-section > strong {
  color: #fff;
  font-size: 15px;
}

.community-profile-recent {
  display: grid;
  gap: 8px;
}

.community-profile-post {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.community-profile-post:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 74, 90, 0.30);
  background: rgba(223, 32, 52, 0.12);
}

.community-profile-post span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.community-profile-post strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.community-profile-post small {
  color: var(--muted);
}

.community-profile-message {
  width: 100%;
  margin-top: 18px;
}

.community-profile-message:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}


.community-detail-card > p {
  color: var(--soft);
  font-size: 16px;
  line-height: 1.85;
}

.community-detail-meta,
.community-answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.community-answer-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 255, 0.10);
}

.community-answer-toolbar strong {
  color: #fff;
  font-size: 16px;
}

.community-answer-toolbar select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(220, 232, 255, 0.14);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
}

.community-comments {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.community-comment,
.community-comment-empty {
  padding: 14px;
  border: 1px solid rgba(220, 232, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.community-comment p {
  margin: 8px 0 0;
  color: var(--soft);
}

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

.community-answer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.community-answer-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(220, 232, 255, 0.12);
  border-radius: 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.community-answer-actions button:hover,
.community-answer-actions button.is-pulsing {
  transform: translateY(-2px) scale(1.03);
  color: #fff;
  border-color: rgba(255, 74, 90, 0.34);
  background: rgba(223, 32, 52, 0.16);
}

.community-answer-actions button.is-done {
  color: #fff;
  border-color: rgba(255, 74, 90, 0.42);
  background: rgba(223, 32, 52, 0.22);
}

.community-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.community-comment-form textarea {
  min-height: 92px;
  padding: 12px;
}

.community-admin-edit {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 120px;
  gap: 10px;
  margin-top: 14px;
}

.community-admin-edit label {
  display: grid;
  gap: 6px;
}

.community-admin-edit span {
  color: var(--muted);
  font-size: 12px;
}

.community-admin-comments {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 232, 255, 0.08);
}

.community-admin-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
}

.community-admin-comments-head strong {
  color: var(--text);
  font-size: 14px;
}

.community-admin-comment,
.community-admin-comment-empty {
  padding: 14px 14px 12px;
  border: 1px solid rgba(220, 232, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.community-admin-comment {
  display: grid;
  gap: 10px;
}

.community-admin-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.community-admin-comment-meta strong {
  color: var(--text);
  font-size: 13px;
}

.community-admin-comment p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

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

.mini-btn.danger {
  border-color: rgba(255, 94, 110, 0.32);
  background: rgba(255, 94, 110, 0.12);
  color: #ffb8bf;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}

.order-card h3 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 24px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.order-detail-grid span {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(220, 232, 255, 0.08);
  border-radius: 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.45;
}

.order-detail-grid b {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-empty .primary-action {
  margin-top: 14px;
}

.order-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(201, 167, 105, 0.36);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  background: rgba(201, 167, 105, 0.08);
  font-size: 13px;
}

.order-status.waiting,
.order-status.success {
  border-color: rgba(67, 214, 156, 0.38);
  color: #8ff0bd;
  background: rgba(67, 214, 156, 0.10);
}

.order-status.warning {
  border-color: rgba(255, 190, 88, 0.38);
  color: #ffd38a;
  background: rgba(255, 190, 88, 0.10);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 92px;
  grid-row: span 2;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 67, 87, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
    rgba(13, 15, 21, 0.88);
}

.profile-card::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(69, 95, 255, 0.16), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  font-size: 28px;
}

.profile-card h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 22px 0 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
}

.profile-card p {
  position: relative;
  overflow-wrap: anywhere;
  color: var(--soft);
  line-height: 1.75;
}

.avatar-uploader {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: linear-gradient(145deg, #394050, #11141b);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06), 0 0 28px rgba(223, 32, 52, 0.14);
  cursor: pointer;
}

.avatar-uploader::after {
  content: "上传";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 6px 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.avatar-uploader:hover::after {
  opacity: 1;
}

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

.avatar-uploader.has-image img {
  display: block;
}

.avatar-uploader.has-image span {
  display: none;
}

.avatar-uploader span {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.profile-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stats article {
  padding: 20px;
}

.profile-stats strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 25px;
}

.device-panel {
  grid-column: 2;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.022)),
    rgba(13, 15, 21, 0.78);
}

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

.device-empty {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(220, 232, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.025);
}

.device-empty[hidden],
.device-grid[hidden],
.device-actions[hidden],
.device-edit-panel[hidden] {
  display: none;
}

.device-empty strong {
  color: #fff;
  font-size: 20px;
}

.device-empty p,
.profile-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.device-empty .primary-action {
  justify-self: start;
  margin-top: 4px;
}

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

.account-panel,
.device-edit-panel,
.wallet-card {
  padding: 22px;
}

.device-edit-panel {
  grid-column: 2;
}

.account-state {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(67, 214, 156, 0.24);
  border-radius: 999px;
  color: var(--green);
  background: rgba(67, 214, 156, 0.08);
  font-size: 13px;
}

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

.profile-form label {
  display: grid;
  gap: 7px;
}

.profile-form label:has(textarea),
.profile-auth-actions,
.profile-auth-form .booking-status,
.profile-form button {
  grid-column: 1 / -1;
}

.profile-auth-panel {
  position: relative;
  overflow: hidden;
}

.profile-auth-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 67, 87, 0.18), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.profile-auth-form {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

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

.profile-auth-actions button {
  flex: 1 1 150px;
}

.profile-form label span {
  color: var(--muted);
  font-size: 13px;
}

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

.profile-auth-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 18%, rgba(255, 67, 87, 0.12), transparent 32%),
    rgba(2, 3, 5, 0.74);
  backdrop-filter: blur(18px);
}

.profile-auth-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid rgba(220, 232, 255, 0.14);
  border-radius: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 67, 87, 0.18), transparent 36%),
    radial-gradient(circle at 90% 12%, rgba(90, 126, 255, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(23, 27, 38, 0.96), rgba(8, 10, 15, 0.96));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.58);
  animation: modalRise 260ms ease both;
}

.profile-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 22px;
  line-height: 1;
}

.profile-auth-close:hover {
  color: #fff;
  border-color: rgba(255, 67, 87, 0.34);
  background: rgba(255, 67, 87, 0.14);
}

.profile-auth-modal-head {
  padding-right: 40px;
}

.profile-auth-modal-head h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 34px;
  line-height: 1.08;
}

.profile-auth-modal-head p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.profile-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
  padding: 5px;
  border: 1px solid rgba(220, 232, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-auth-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.profile-auth-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(223, 32, 52, 0.95), rgba(126, 16, 29, 0.95));
  box-shadow: 0 12px 28px rgba(223, 32, 52, 0.22);
}

.profile-auth-modal-form {
  display: grid;
  gap: 14px;
}

.profile-auth-modal-form label {
  display: grid;
  gap: 8px;
}

.profile-auth-modal-form label span {
  color: var(--muted);
  font-size: 13px;
}

.profile-auth-modal-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(220, 232, 255, 0.14);
  border-radius: 12px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.profile-auth-modal-form input::placeholder {
  color: rgba(196, 202, 213, 0.64);
}

.profile-auth-modal-form input:focus {
  border-color: rgba(255, 67, 87, 0.5);
  background: rgba(255, 255, 255, 0.082);
  box-shadow: 0 0 0 3px rgba(223, 32, 52, 0.12);
}

.profile-auth-modal-form .primary-action {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

.profile-auth-modal-form .primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.profile-auth-modal-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-auth-modal-status.error {
  color: #ff7a87;
}

.profile-auth-modal-status.success {
  color: var(--green);
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-form input:focus,
.profile-form textarea:focus,
.profile-form select:focus,
.spend-form input:focus {
  border-color: rgba(255, 67, 87, 0.48);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(223, 32, 52, 0.10);
}

.profile-form input[type="datetime-local"] {
  min-height: 46px;
  color: #f7f9ff;
  color-scheme: dark;
  background: rgba(15, 18, 26, 0.96);
  border-color: rgba(220, 232, 255, 0.22);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

.profile-form input[type="datetime-local"]::-webkit-date-and-time-value {
  min-height: 1.4em;
  color: #f7f9ff;
  text-align: left;
}

.profile-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: invert(1);
}

.profile-form input[type="datetime-local"]:invalid {
  color: rgba(247, 249, 255, 0.72);
}

.profile-form input[type="datetime-local"]::placeholder {
  color: rgba(196, 202, 213, 0.74);
}

.datetime-picker-field {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.datetime-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
}

.datetime-picker-field input[type="datetime-local"] {
  width: 100%;
  padding-right: 12px;
}

.datetime-picker-button {
  grid-column: auto;
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 147, 160, 0.55);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(255, 78, 96, 0.98), rgba(184, 25, 42, 0.96)),
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.34), transparent 34%);
  box-shadow:
    0 12px 26px rgba(223, 32, 52, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.profile-form .datetime-picker-button {
  grid-column: auto;
  width: 72px;
}

.datetime-picker-button:hover,
.datetime-picker-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 210, 216, 0.78);
  box-shadow:
    0 16px 34px rgba(223, 32, 52, 0.42),
    0 0 0 4px rgba(223, 32, 52, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  outline: none;
}

.datetime-picker-button:active {
  transform: translateY(0) scale(0.98);
}

.appointment-picker-panel {
  grid-column: 1 / -1;
  margin-top: -8px;
  padding: 9px;
  border: 1px solid rgba(220, 232, 255, 0.13);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 69, 88, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 32, 0.96), rgba(9, 11, 17, 0.96));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: panelFadeUp 180ms ease both;
}

.appointment-picker-panel[hidden] {
  display: none;
}

.appointment-picker-panel.is-open,
.appointment-picker-panel[hidden].is-open {
  display: block;
}

.appointment-picker-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.appointment-picker-head span {
  color: rgba(196, 202, 213, 0.78);
  font-size: 10px;
}

.appointment-date-row {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.appointment-date-row::-webkit-scrollbar {
  display: none;
}

.appointment-date-chip,
.appointment-time-slot {
  border: 1px solid rgba(220, 232, 255, 0.12);
  color: rgba(245, 247, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.appointment-date-chip {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 32px;
  border-radius: 999px;
  padding: 4px 8px;
}

.appointment-date-chip b,
.appointment-date-chip span {
  display: block;
  letter-spacing: 0;
}

.appointment-date-chip b {
  font-size: 11px;
  color: inherit;
}

.appointment-date-chip span {
  display: none;
  color: rgba(196, 202, 213, 0.72);
}

.appointment-date-chip:hover,
.appointment-time-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 116, 132, 0.42);
  background: rgba(255, 255, 255, 0.085);
}

.appointment-date-chip.active,
.appointment-time-slot.active {
  color: #fff;
  border-color: rgba(255, 132, 147, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 78, 96, 0.96), rgba(177, 25, 43, 0.92)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(223, 32, 52, 0.24);
}

.appointment-date-chip.active span {
  color: rgba(255, 255, 255, 0.78);
}

.appointment-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 78px));
  justify-content: start;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.appointment-time-slot {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.appointment-time-slot.disabled,
.appointment-time-slot:disabled {
  color: rgba(150, 156, 170, 0.36);
  border-color: rgba(160, 166, 180, 0.08);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 6px, rgba(255, 255, 255, 0.015) 6px 12px),
    rgba(70, 74, 84, 0.18);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

@keyframes panelFadeUp {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-panel {
  max-width: 920px;
  padding: 24px;
}

.booking-form {
  margin-top: 18px;
}

.booking-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.booking-status.success {
  color: var(--green);
}

.booking-status.error {
  color: var(--red-2);
}

.spend-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 18px;
}

.feedback-shell {
  min-height: calc(100vh - 170px);
  display: grid;
  gap: 24px;
}

.feedback-hero {
  max-width: 780px;
}

.feedback-hero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(42px, 7vw, 92px);
  letter-spacing: 0;
}

.feedback-hero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.feedback-stage {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border: 1px solid rgba(180, 210, 255, 0.12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(122, 167, 255, 0.10), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(220, 232, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #05070c, #030408);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.feedback-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #05070c 0%, transparent 12%, transparent 88%, #05070c 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.74), transparent 22%, transparent 78%, rgba(5, 7, 12, 0.82));
  z-index: 3;
}

.feedback-particles,
.feedback-particles::before,
.feedback-particles::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.feedback-particles {
  opacity: 0.62;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(214, 233, 255, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 30%, rgba(157, 191, 255, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 320px 320px, 420px 420px;
  animation: feedbackDrift 48s linear infinite;
}

.feedback-gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: clamp(24px, 5.2vh, 46px);
  padding: clamp(34px, 5.5vw, 76px) 0;
  transform-style: preserve-3d;
}

.feedback-row {
  position: relative;
  width: 100%;
  overflow: visible;
  transform-style: preserve-3d;
}

.feedback-row-1 {
  transform: translateZ(0);
  opacity: 0.92;
}

.feedback-row-2 {
  transform: translateZ(0);
  opacity: 0.92;
}

.feedback-row-3 {
  transform: translateZ(0);
  opacity: 0.92;
}

.feedback-track {
  display: flex;
  width: max-content;
  gap: clamp(38px, 5vw, 70px);
  padding: 0 clamp(32px, 5vw, 72px);
  transform: translate3d(-50%, 0, 0);
  animation: feedbackMarquee 70s linear infinite;
  will-change: transform;
}

.feedback-row-1 .feedback-track {
  animation-duration: 50s;
}

.feedback-row-2 .feedback-track {
  animation-duration: 70s;
}

.feedback-row-3 .feedback-track {
  animation-duration: 50s;
}

.feedback-row:hover .feedback-track,
.feedback-row.is-paused .feedback-track {
  animation-play-state: paused;
}

.feedback-card-item {
  position: relative;
  flex: 0 0 auto;
  width: clamp(192px, 22.5vw, 327px);
  height: clamp(132px, 15.75vw, 222px);
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 255, 0.16);
  background: rgba(8, 12, 20, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease, border-color 300ms ease, opacity 300ms ease;
  will-change: transform;
  z-index: 1;
}

.feedback-card-item:hover,
.feedback-card-item.is-hovered {
  transform: scale(1.3);
  border-color: rgba(219, 232, 255, 0.4);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(134, 177, 255, 0.22);
  z-index: 6;
}

.feedback-card-item:has(+ .feedback-card-item:hover),
.feedback-card-item:has(+ .feedback-card-item.is-hovered) {
  transform: translateX(-64px);
}

.feedback-card-item:has(+ .feedback-card-item + .feedback-card-item:hover),
.feedback-card-item:has(+ .feedback-card-item + .feedback-card-item.is-hovered) {
  transform: translateX(-28px);
}

.feedback-card-item:hover + .feedback-card-item,
.feedback-card-item.is-hovered + .feedback-card-item {
  transform: translateX(64px);
}

.feedback-card-item:hover + .feedback-card-item + .feedback-card-item,
.feedback-card-item.is-hovered + .feedback-card-item + .feedback-card-item {
  transform: translateX(28px);
}

.feedback-card-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(4, 6, 10, 0.86);
  image-rendering: auto;
}

.feedback-card-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%);
  pointer-events: none;
}

@keyframes feedbackDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-60px, 40px, 0);
  }
}

@keyframes feedbackMarquee {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes logoRise {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  45%,
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.98;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar-status {
    display: none;
  }

  .hero-grid,
  .two-col,
  .tools-layout,
  .community-layout,
  .community-auth-panel,
  .community-user-bar,
  .messages-auth-panel,
  .messages-page-panel,
  .admin-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .messages-page-panel {
    height: clamp(560px, 78vh, 680px);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .messages-page-panel .community-conversation-list {
    min-height: auto;
    max-height: 230px;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(220, 232, 255, 0.10);
  }

  .messages-chat-area {
    min-height: 0;
  }

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

  .dashboard-grid,
  .service-grid,
  .faq-grid,
  .driver-grid,
  .tutorial-grid,
  .admin-module-grid,
  .admin-info-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-panel {
    grid-column: auto;
  }

  .profile-card {
    position: relative;
    top: auto;
  }

  .device-edit-panel {
    grid-column: auto;
  }

  .log-panel,
  .category-panel {
    position: static;
  }

  .software-admin {
    position: static;
  }
}

@media (max-width: 980px) {
  .tuner-grid {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .package-card,
  .premium-package,
  .package-card:hover,
  .premium-package:hover {
    transform: none;
  }
}

@media (max-width: 820px) {
  .messages-page-panel {
    height: clamp(520px, 80vh, 640px);
  }

  .messages-chat-area {
    padding: 10px;
  }

  .messages-page-panel .community-message-thread {
    padding: 12px;
  }

  .messages-page-panel .community-message-form {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 8px;
  }

  .profile-form input[type="datetime-local"] {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    color: #f7f9ff;
    background: #10141d;
    border: 1px solid rgba(220, 232, 255, 0.28);
  }

  .datetime-picker-field input[type="datetime-local"] {
    min-height: 44px;
    padding-right: 12px;
  }

  .datetime-input-row {
    grid-template-columns: minmax(0, 1fr) 68px;
    gap: 7px;
  }

  .datetime-picker-button {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 12px;
  }

  .profile-form .datetime-picker-button {
    grid-column: auto;
    width: 68px;
  }

  .appointment-picker-panel {
    padding: 9px;
    border-radius: 12px;
  }

  .appointment-picker-head {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .appointment-date-row {
    display: flex;
  }

  .appointment-time-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .appointment-time-slot {
    min-height: 30px;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
    padding: 12px 16px;
  }

  .topbar-actions {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .message-icon-btn {
    order: -1;
  }

  .client-download-btn {
    flex: 1 1 140px;
    width: auto;
    min-height: 42px;
  }

  .brand small {
    display: none;
  }

  .nav {
    justify-content: start;
  }

  .main {
    width: min(100% - 28px, 1480px);
    padding-top: 128px;
  }

  .banner-slide {
    padding: 34px 24px;
  }

  .banner-panel {
    min-height: 470px;
  }

  .service-grid,
  .dashboard-grid,
  .faq-grid,
  .tuner-grid,
  .tool-grid,
  .driver-grid,
  .driver-mini-grid,
  .profile-stats,
  .device-grid,
  .community-layout,
  .order-card,
  .admin-layout,
  .tutorial-grid,
  .admin-module-grid,
  .admin-info-stack,
  .admin-workspace-head {
    grid-template-columns: 1fr;
  }

  .page-title.split-title {
    display: block;
  }

  .page-title.split-title .primary-action {
    margin-top: 18px;
  }

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

  .profile-auth-dialog {
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .profile-auth-modal-head h2 {
    font-size: 28px;
  }
}

.site-footer {
  width: min(100% - 48px, 1480px);
  margin: 26px auto 18px;
  padding: 10px 0 6px;
  color: rgba(160, 170, 186, 0.82);
  text-align: center;
}

.site-footer-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.site-footer-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.2px;
}

.site-footer-police,
.site-footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5aa9ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.site-footer-police:hover,
.site-footer-beian:hover {
  color: #8ac1ff;
}

.site-footer-police:focus-visible,
.site-footer-beian:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.32);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-footer-badge {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
  opacity: 0.95;
}

.site-footer-copyright {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.15px;
}

@media (prefers-color-scheme: light) {
  .site-footer {
    color: rgba(84, 92, 104, 0.9);
  }

  .site-footer-name,
  .site-footer-copyright {
    color: rgba(28, 33, 41, 0.9);
  }

  .site-footer-police:hover,
  .site-footer-beian:hover {
    color: #2563eb;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .feedback-track {
    animation-duration: 70s !important;
    animation-iteration-count: infinite !important;
    animation-play-state: running !important;
  }

  .feedback-row-1 .feedback-track,
  .feedback-row-3 .feedback-track {
    animation-duration: 50s !important;
  }
}
