/* ===== Depth Town — Original Layout ===== */

.home-page {
  min-height: 100vh;
  background: #0a0a0c;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

/* ----- Topbar (HUD style, ไม่ใช่ header ขาว + nav ดำ) ----- */
.dt-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(14, 14, 18, 0.95);
  border-bottom: 1px solid rgba(0, 163, 255, 0.2);
  backdrop-filter: blur(10px);
}

.dt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.dt-brand-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.dt-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dt-brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
}

.dt-brand-sub {
  font-size: 9px;
  font-weight: 500;
  color: var(--main_1);
  letter-spacing: 0.08em;
}

.dt-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dt-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.12s ease;
}

.dt-nav-item iconify-icon {
  font-size: 14px;
}

.dt-nav-item:hover {
  color: #fff;
  background: rgba(0, 163, 255, 0.1);
}

.dt-nav-item.active {
  color: #fff;
  background: rgba(0, 163, 255, 0.18);
  border: 1px solid rgba(0, 163, 255, 0.3);
}

.dt-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dt-socials {
  display: flex;
  gap: 6px;
}

.dt-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.12s ease;
}

.dt-social iconify-icon { font-size: 15px; }

.dt-social:hover {
  color: var(--main_1);
  border-color: rgba(0, 163, 255, 0.35);
  background: rgba(0, 163, 255, 0.08);
}

.dt-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--main_1);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.12s ease;
}

.dt-login iconify-icon { font-size: 15px; }
.dt-login:hover { opacity: 0.88; }

.dt-admin-panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.12);
  color: #ffb347;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.dt-admin-panel-btn iconify-icon {
  font-size: 16px;
}

.dt-admin-panel-btn:hover {
  background: rgba(255, 179, 71, 0.22);
  border-color: rgba(255, 179, 71, 0.65);
  color: #ffc870;
}

#nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(0, 163, 255, 0.15);
  border: 1px solid rgba(0, 163, 255, 0.3);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.nav-user:hover,
.nav-user[aria-expanded="true"] {
  background: rgba(0, 163, 255, 0.22);
  border-color: rgba(0, 163, 255, 0.45);
}

.nav-user-wrap {
  position: relative;
}

.nav-user-caret {
  font-size: 14px;
  opacity: 0.75;
  transition: transform 0.12s ease;
}

.nav-user[aria-expanded="true"] .nav-user-caret {
  transform: rotate(180deg);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(14, 14, 18, 0.98);
  border: 1px solid rgba(0, 163, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 163, 255, 0.08);
  z-index: 200;
}

.nav-user-dropdown.hidden {
  display: none;
}

.nav-user-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-user-item iconify-icon {
  font-size: 16px;
  color: var(--main_1);
}

.nav-user-item:hover {
  background: rgba(0, 163, 255, 0.12);
  color: #fff;
}

.nav-user-item--admin iconify-icon {
  color: #ffb347;
}

.nav-user-item--admin:hover {
  background: rgba(255, 179, 71, 0.12);
}

.nav-user-item--logout iconify-icon {
  color: #ff8fa3;
}

.nav-user-item--logout:hover {
  background: rgba(255, 107, 138, 0.1);
}

.nav-user .nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

/* ----- Main layout ----- */
.dt-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 20px 56px;
  min-height: calc(100vh - 120px);
  overflow: visible;
}

/* ----- Animated depth background ----- */
.dt-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  --bg-parallax-x: 0px;
  --bg-parallax-y: 0px;
}

.dt-bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 80, 140, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0c0c10 0%, #060608 55%, #040406 100%);
}

.dt-bg-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -8%;
  height: 65%;
  background-image:
    linear-gradient(rgba(0, 163, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 163, 255, 0.09) 1px, transparent 1px);
  background-size: 72px 72px;
  transform:
    perspective(520px)
    rotateX(68deg)
    translate3d(var(--bg-parallax-x), var(--bg-parallax-y), 0);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 88%);
  animation: dt-grid-drift 22s linear infinite;
}

@keyframes dt-grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 72px, 0 72px; }
}

.dt-bg-orbs {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--bg-parallax-x) * 1.6), calc(var(--bg-parallax-y) * 1.6), 0);
}

.dt-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.dt-bg-orb--1 {
  width: 340px;
  height: 340px;
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.35) 0%, transparent 70%);
  animation: dt-orb-float-1 18s ease-in-out infinite;
}

.dt-bg-orb--2 {
  width: 280px;
  height: 280px;
  top: 22%;
  right: 8%;
  background: radial-gradient(circle, rgba(0, 120, 220, 0.28) 0%, transparent 70%);
  animation: dt-orb-float-2 24s ease-in-out infinite;
}

.dt-bg-orb--3 {
  width: 420px;
  height: 420px;
  bottom: -5%;
  left: 50%;
  margin-left: -210px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.2) 0%, transparent 68%);
  animation: dt-orb-float-3 20s ease-in-out infinite;
}

@keyframes dt-orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(28px, -22px) scale(1.08); }
}

@keyframes dt-orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-32px, 18px) scale(1.05); }
}

@keyframes dt-orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  50%      { transform: translate(0, -30px) scale(1.1); opacity: 0.65; }
}

.dt-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.dt-bg-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 163, 255, 0.015) 3px,
    rgba(0, 163, 255, 0.015) 4px
  );
  animation: dt-scan-move 8s linear infinite;
  opacity: 0.6;
}

@keyframes dt-scan-move {
  from { transform: translateY(0); }
  to   { transform: translateY(4px); }
}

.dt-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .dt-bg-grid,
  .dt-bg-orb,
  .dt-bg-scan {
    animation: none;
  }

  .dt-bg-canvas {
    display: none;
  }
}

.dt-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 880px;
  gap: 36px;
}

/* ----- Hero stack ----- */
.dt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.dt-tagline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.4;
}

.dt-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.dt-action-chip {
  flex: 1;
  max-width: 200px;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(0, 163, 255, 0.2);
  transition: all 0.15s ease;
}

.dt-action-chip:hover {
  background: rgba(0, 163, 255, 0.12);
  border-color: rgba(0, 163, 255, 0.4);
  transform: translateY(-1px);
}

.dt-action-chip iconify-icon {
  font-size: 16px;
}

/* ----- Gangs & Families ----- */
.dt-gangs {
  width: 100%;
  padding: 0 4px;
}

.dt-gangs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 10px;
}

.dt-gangs-head > iconify-icon {
  font-size: 28px;
  color: var(--main_1);
  flex-shrink: 0;
}

.dt-gangs-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.dt-gangs-head p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.dt-gangs-head > div {
  flex: 1;
  min-width: 160px;
}

.dt-gang-submit {
  margin-left: auto;
  cursor: pointer;
  border: 1px solid rgba(0, 163, 255, 0.35);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: background 0.15s ease;
}

.dt-gang-submit:hover {
  background: rgba(0, 163, 255, 0.15);
}

.dt-gangs-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.dt-gangs-tab {
  flex: 1 1 calc(20% - 6px);
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dt-gangs-tab iconify-icon {
  font-size: 14px;
}

.dt-gangs-tab--submit {
  border-color: rgba(0, 163, 255, 0.25);
}

.dt-gangs-tab--submit.active {
  border-color: rgba(0, 163, 255, 0.55);
  background: rgba(0, 163, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.15);
}

.dt-gangs-submit-panel {
  padding: 16px;
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.65);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-top: 2px solid rgba(0, 163, 255, 0.55);
}

.dt-gangs-submit-panel.hidden {
  display: none;
}

.dt-gangs-board.hidden {
  display: none;
}

.dt-gangs-submit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-gangs-submit-head iconify-icon {
  font-size: 28px;
  color: var(--main_1);
  flex-shrink: 0;
}

.dt-gangs-submit-head h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.dt-gangs-submit-head p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.dt-gangs-submit-form {
  max-width: 480px;
}

.dt-gangs-tab:hover {
  color: #fff;
  border-color: rgba(0, 163, 255, 0.3);
}

.dt-gangs-tab.active {
  color: #fff;
  border-color: rgba(0, 163, 255, 0.45);
  background: rgba(0, 163, 255, 0.15);
}

.dt-gangs-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dt-gangs-group {
  padding: 12px;
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-gangs-group--gang {
  border-top: 2px solid rgba(255, 107, 157, 0.55);
  box-shadow: inset 0 8px 24px rgba(255, 107, 157, 0.04);
}

.dt-gangs-group--family {
  border-top: 2px solid rgba(61, 220, 132, 0.55);
  box-shadow: inset 0 8px 24px rgba(61, 220, 132, 0.04);
}

.dt-gangs-group--mc {
  border-top: 2px solid rgba(255, 179, 71, 0.55);
  box-shadow: inset 0 8px 24px rgba(255, 179, 71, 0.04);
}

.dt-gangs-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-gangs-group-head iconify-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.dt-gangs-group--gang .dt-gangs-group-head iconify-icon { color: #ff6b9d; }
.dt-gangs-group--family .dt-gangs-group-head iconify-icon { color: #3DDC84; }
.dt-gangs-group--mc .dt-gangs-group-head iconify-icon { color: #ffb347; }

.dt-gangs-group-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dt-gangs-group-head span {
  font-size: 10px;
  color: var(--text-muted);
}

.dt-gangs-group-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  color: var(--text-muted);
  font-size: 12px;
}

.dt-gangs-group-empty iconify-icon {
  font-size: 18px;
  opacity: 0.7;
}

.dt-gangs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.dt-gang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid rgba(0, 163, 255, 0.2);
  border-radius: 10px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.dt-gang-card--gang {
  border-color: rgba(255, 107, 157, 0.28);
}

.dt-gang-card--family {
  border-color: rgba(61, 220, 132, 0.28);
}

.dt-gang-card--mc {
  border-color: rgba(255, 179, 71, 0.28);
}

.dt-gang-card--gang:hover {
  border-color: rgba(255, 107, 157, 0.55);
}

.dt-gang-card--family:hover {
  border-color: rgba(61, 220, 132, 0.55);
}

.dt-gang-card--mc:hover {
  border-color: rgba(255, 179, 71, 0.55);
}

.dt-gang-card:hover {
  transform: translateY(-2px);
}

.dt-gang-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dt-gang-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.dt-gang-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.dt-gang-type {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.dt-gang-type--gang {
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.12);
  border: 1px solid rgba(255, 107, 157, 0.3);
}

.dt-gang-type--family {
  color: #3DDC84;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.28);
}

.dt-gang-type--mc {
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.32);
}

.dt-gang-short {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.dt-gang-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
  word-break: break-word;
}

.dt-gangs-loading,
.dt-gangs-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.dt-gangs-loading iconify-icon,
.dt-gangs-empty iconify-icon {
  font-size: 28px;
  color: var(--main_1);
}

.dt-gangs-empty-sub {
  font-size: 11px;
  opacity: 0.75;
}

/* ----- Server Spawn ----- */
.dt-spawns {
  width: 100%;
  padding: 0 4px;
}

.dt-spawns-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(0, 163, 255, 0.25);
  border-radius: 10px;
}

.dt-spawns-head > iconify-icon {
  font-size: 28px;
  color: var(--main_1);
  flex-shrink: 0;
}

.dt-spawns-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}

.dt-spawns-head p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.dt-spawns-head > div {
  flex: 1;
  min-width: 160px;
}

.dt-spawn-submit {
  margin-left: auto;
  cursor: pointer;
  border: 1px solid rgba(0, 163, 255, 0.35);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: background 0.15s ease;
}

.dt-spawn-submit:hover {
  background: rgba(0, 163, 255, 0.15);
}

.dt-spawns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dt-spawn-card {
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid rgba(0, 163, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.dt-spawn-card:hover {
  border-color: rgba(0, 163, 255, 0.4);
  transform: translateY(-2px);
}

.dt-spawn-media {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dt-spawn-image,
.dt-spawn-video {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.dt-spawn-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.dt-spawn-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

.dt-spawn-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.dt-spawn-meta iconify-icon {
  font-size: 14px;
  color: var(--main_1);
}

.dt-spawn-meta-sep {
  opacity: 0.5;
}

.dt-spawns-loading,
.dt-spawns-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.dt-spawns-loading iconify-icon,
.dt-spawns-empty iconify-icon {
  font-size: 28px;
  color: var(--main_1);
}

.dt-spawns-empty-sub {
  font-size: 11px;
  opacity: 0.75;
}

.spawn-modal-panel {
  max-width: 440px;
}

.gang-field textarea {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 96px;
}

.spawn-preview {
  border-radius: 8px;
  overflow: hidden;
  border: 1px dashed rgba(0, 163, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.spawn-preview.hidden {
  display: none;
}

.dt-spawn-preview-image,
.dt-spawn-preview-video {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .dt-spawns-grid {
    grid-template-columns: 1fr;
  }
}

.spin {
  animation: dt-spin 1s linear infinite;
}

@keyframes dt-spin {
  to { transform: rotate(360deg); }
}

/* ----- Gang submit modal ----- */
body.modal-open {
  overflow: hidden;
}

.gang-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gang-modal.hidden {
  display: none;
}

.gang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.gang-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 8px;
}

.gang-modal-panel .header-label {
  font-size: 9px;
}

.gang-modal-panel .header-title {
  font-size: 12px;
  color: #fff;
}

.gang-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(30, 30, 34, 0.95) 0%, rgba(18, 18, 20, 0.95) 100%);
  border-radius: 8px;
  border: 1px solid rgba(160, 160, 160, 0.1);
}

.gang-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.gang-field input,
.gang-field select {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
}

.gang-field input[type="file"] {
  font-size: 11px;
  padding: 8px;
}

.gang-preview {
  display: flex;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px dashed rgba(0, 163, 255, 0.3);
}

.gang-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;
}

.gang-form-msg {
  font-size: 11px;
  padding: 8px 10px;
  border-radius: 6px;
  margin: 0;
}

.gang-form-msg.is-error {
  color: #ff6b9d;
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.25);
}

.gang-form-msg.is-success {
  color: #3DDC84;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.25);
}

.gang-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.gang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.gang-btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.gang-btn.primary {
  background: var(--main_1);
  color: #fff;
}

.gang-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dt-sep {
  width: 1px;
  height: 12px;
  background: rgba(160, 160, 160, 0.4);
  margin: 0 2px;
}

/* ----- Countdown panel (HUD frame) ----- */
.countdown-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 8px;
}

.panel-glow {
  position: absolute;
  inset: -12px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(0, 163, 255, 0.12) 0%, transparent 70%);
  filter: blur(14px);
  pointer-events: none;
}

.panel-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(35, 35, 40, 0.98) 0%, rgba(18, 18, 22, 0.98) 100%);
  border: 1px solid rgba(0, 163, 255, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 163, 255, 0.1);
}

.panel-frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(0, 163, 255, 0.12);
  border-radius: 7px;
  pointer-events: none;
}

.frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--main_1);
  border-style: solid;
  opacity: 0.85;
  z-index: 3;
  pointer-events: none;
}

.frame-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.frame-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.frame-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.frame-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.countdown-header {
  padding: 8px 12px;
}

.countdown-chip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--main_1);
  letter-spacing: 0.06em;
}

.countdown-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

.countdown-body {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(30, 30, 34, 0.95) 0%, rgba(18, 18, 20, 0.95) 100%);
  border-radius: 8px;
  border: 1px solid rgba(160, 160, 160, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.countdown-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dt-server-chip {
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.dt-server-chip.is-online {
  border-color: rgba(61, 220, 132, 0.35);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.08);
}

.dt-server-chip.is-offline {
  border-color: rgba(255, 255, 255, 0.08);
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #252528 0%, #161618 100%);
  border: 1px solid rgba(0, 163, 255, 0.3);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-num {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(0, 163, 255, 0.2);
}

.cd-lbl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--main_1);
  text-transform: uppercase;
}

.cd-lbl iconify-icon { font-size: 11px; }

.countdown-sep {
  font-size: 20px;
  color: var(--main_1);
  opacity: 0.7;
  margin-bottom: 18px;
}

.countdown-open-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.35);
  color: var(--status-active);
  font-size: 13px;
  font-weight: 700;
}

.countdown-footer {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ----- Footer ----- */
.dt-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #060608;
}

.dt-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.dt-copy-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
}

/* ----- Responsive ----- */
@media (max-width: 720px) {
  .dt-topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dt-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
  }

  .dt-nav-item {
    padding: 6px 8px;
    font-size: 10px;
  }

  .dt-nav-item span {
    display: none;
  }

  .dt-nav-item iconify-icon {
    font-size: 16px;
  }

  .dt-content {
    max-width: 420px;
    padding: 0 4px;
  }

  .dt-actions {
    flex-direction: column;
    gap: 8px;
  }

  .dt-action-chip {
    max-width: 100%;
    width: 100%;
  }

  .cd-num { font-size: 24px; }
  .cd-box { min-width: 58px; padding: 8px 4px; }
  .countdown-sep { font-size: 16px; margin-bottom: 14px; }
}

/* ----- Shared page styles (tos, streamer ใช้ topbar เดียวกัน) ----- */
.page-with-topbar .dt-main,
.tos-page .tos-main,
.streamer-page .streamer-main {
  padding-top: 24px;
}
