:root {
  --bg-deep: #0a0c0f;
  --bg-surface: #101319;
  --bg-surface-elevated: #161a22;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(190, 242, 100, 0.35);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --lime-glow: rgba(190, 242, 100, 0.16);
  --lime-bright: #bef264;
  --lime-dark: #3f6212;
  --discord-blurple: #5865f2;
  --discord-hover: #4752c4;
  --font-main: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  font-stretch: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(190, 242, 100, 0.16) 0%, rgba(190, 242, 100, 0.07) 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Utilities */
.mono {
  font-family: var(--font-mono);
}

.text-lime {
  color: var(--lime-bright) !important;
}

.text-cyan {
  color: #38bdf8 !important;
}

.text-red {
  color: #f87171 !important;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

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

/* Navigation Bar */
.retrac-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  box-shadow: 0 0 14px var(--lime-glow);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.nav-center {
  display: flex;
  gap: 1.75rem;
}

@media (max-width: 768px) {
  .nav-center {
    display: none;
  }
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.external {
  color: var(--lime-bright);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.discord-btn {
  background: var(--discord-blurple);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

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

.staff-key-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.staff-key-btn:hover {
  color: var(--lime-bright);
  border-color: var(--border-active);
}

/* Hero Section */
.hero-wrap {
  padding: 5.5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.status-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(190, 242, 100, 0.08);
  border: 1px solid rgba(190, 242, 100, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime-bright);
  margin-bottom: 1.75rem;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--lime-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lime-bright);
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.hero-main {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: radial-gradient(ellipse at 50% 100%, #bef264 0%, #ffffff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-actions-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: rgba(101, 163, 13, 0.35);
  border: 1px solid rgba(190, 242, 100, 0.55);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background: rgba(101, 163, 13, 0.55);
  border-color: rgba(190, 242, 100, 0.9);
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

/* Server Ticker */
.server-ticker-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  margin-top: 2.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 6px #4ade80;
}

.ticker-label {
  color: var(--text-dim);
}

.ticker-val {
  font-family: var(--font-mono);
  font-weight: 600;
}

.ticker-divider {
  color: var(--text-dim);
}

/* Launcher Integration Section */
.launcher-section {
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(16, 19, 25, 0.5);
  position: relative;
  z-index: 10;
}

.launcher-container {
  max-width: 900px;
  margin: 0 auto;
}

.section-badge-center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.badge-pill {
  background: rgba(190, 242, 100, 0.1);
  border: 1px solid rgba(190, 242, 100, 0.25);
  color: var(--lime-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title-large {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Launcher Window Frame */
.launcher-window-frame {
  background: #0f1013;
  border: 1px solid #232730;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(101, 163, 13, 0.1);
  position: relative;
}

.launcher-titlebar {
  background: #0a0b0d;
  border-bottom: 1px solid #1a1e26;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.launcher-title-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.launcher-app-name {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.launcher-build-ver {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.launcher-window-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-dim);
}

.win-btn {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.win-close:hover {
  color: #f87171;
}

.launcher-body {
  display: flex;
  min-height: 420px;
  position: relative;
}

.launcher-sidebar {
  width: 170px;
  background: #0c0d10;
  border-right: 1px solid #1c202a;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sidebar-item.active {
  background: #191d26;
  color: #fff;
  border-left: 3px solid var(--lime-bright);
}

.launcher-main-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 50%, #151820 0%, #0d0e12 100%);
  position: relative;
  overflow: hidden;
}

/* Floating Duck Particle Elements */
.floating-ducks-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.22;
}

.f-duck {
  position: absolute;
  font-size: 1.1rem;
  filter: blur(0.5px);
}

.d1 { top: 15%; left: 35%; }
.d2 { top: 40%; left: 60%; }
.d3 { top: 65%; left: 75%; }
.d4 { top: 80%; left: 25%; }
.d5 { top: 25%; left: 85%; }
.d6 { top: 70%; left: 50%; }

.launcher-banner {
  height: 170px;
  background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.banner-watermark {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.1em;
  user-select: none;
}

.banner-characters {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.duck-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.banner-badge-text {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.launcher-auth-block {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1;
}

.launcher-auth-title {
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
}

.launcher-discord-btn {
  background: var(--discord-blurple);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.launcher-troubleshoot-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color 0.15s ease;
}

.launcher-troubleshoot-link:hover {
  color: var(--lime-bright);
}

/* Launcher In-Window Result Box */
.launcher-result-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
}

.launcher-result-box.status-denied {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.05);
}

.launcher-result-box.status-not-found {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.result-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.pill-denied {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.result-box-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Features Grid */
.features-section {
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}

.features-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .features-container {
    grid-template-columns: 1fr;
  }
}

.feat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.feat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--lime-bright);
  margin-bottom: 0.5rem;
}

.feat-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.feat-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 10;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
}

.faq-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.faq-answer {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Channels Section */
.channels-section {
  padding: 4.5rem 1.5rem;
  background: var(--bg-deep);
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
}

.channels-container {
  max-width: 1100px;
  margin: 0 auto;
}

.channels-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
}

.channels-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .channels-grid {
    grid-template-columns: 1fr;
  }
}

.channel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(190, 242, 100, 0.08);
  color: var(--lime-bright);
  border: 1px solid rgba(190, 242, 100, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.channel-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.channel-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.channel-link {
  color: var(--lime-bright);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.channel-link:hover {
  color: #d9f99d;
}

/* Admin Dashboard */
.admin-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.admin-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.admin-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.admin-name {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.admin-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.adm-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.adm-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.adm-item.active {
  background: var(--lime-bright);
  color: #0d0f12;
}

.admin-foot {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.adm-logout-btn {
  width: 100%;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  padding: 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-content {
  flex: 1;
  padding: 2.5rem;
  background: var(--bg-deep);
  overflow-y: auto;
}

.adm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.adm-heading {
  font-size: 1.6rem;
  font-weight: 900;
}

.adm-badge-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--lime-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--lime-bright);
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

.adm-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.adm-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.admin-search-row {
  display: flex;
  gap: 0.75rem;
}

.search-notice-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 6px;
  font-size: 0.88rem;
  color: #fca5a5;
}

.adm-input, .adm-textarea {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.adm-input:focus, .adm-textarea:focus {
  border-color: var(--lime-bright);
}

.adm-btn-primary {
  background: var(--lime-bright);
  color: #0d0f12;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.adm-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.adm-table th {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.adm-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.adm-form {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-actions {
  display: flex;
  gap: 0.5rem;
}

.save-toast {
  color: var(--lime-bright);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Full Invoice / Transcript Card (In Admin) */
.card-glass {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.record-topbar {
  padding: 1.35rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.verified-seal {
  width: 38px;
  height: 38px;
  background: rgba(190, 242, 100, 0.12);
  color: var(--lime-bright);
  border: 1px solid rgba(190, 242, 100, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.record-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
}

.status-refund-closed {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.dot-red {
  background: #f87171;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.record-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
}

@media (max-width: 860px) {
  .record-content-grid {
    grid-template-columns: 1fr;
  }
}

.pane-box {
  background: var(--bg-surface);
  padding: 1.75rem;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pane-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.channel-pill {
  background: rgba(88, 101, 242, 0.15);
  color: #818cf8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

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

.f-val {
  color: #fff;
  text-align: right;
}

.amount-highlight {
  font-size: 1.05rem;
  color: var(--lime-bright) !important;
}

/* Discord Chat Stream */
.discord-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.25rem;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.bot-avatar {
  background: var(--discord-blurple);
  color: #fff;
}

.user-avatar {
  background: #10b981;
  color: #fff;
}

.staff-avatar {
  background: var(--lime-bright);
  color: #0d0f12;
}

.chat-body {
  flex: 1;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.chat-author {
  font-weight: 700;
  color: #fff;
}

.chat-tag {
  background: var(--discord-blurple);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.08rem 0.35rem;
  border-radius: 3px;
}

.staff-tag {
  background: var(--lime-bright);
  color: #0d0f12;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chat-text {
  color: #d1d5db;
  line-height: 1.45;
}

.chat-code {
  background: rgba(0, 0, 0, 0.4);
  color: var(--lime-bright);
  font-family: var(--font-mono);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.transcript-action-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.75rem;
}

.discord-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #818cf8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
}

.discord-open-btn:hover {
  text-decoration: underline;
}

/* Quick tag chip buttons */
.quick-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-title {
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.tag-pill:hover {
  border-color: var(--lime-bright);
  color: var(--lime-bright);
}

/* Status Pill in Table */
.status-pill.status-refund-closed {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 4px;
}

/* Modal Layer */
.modal-layer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 380px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.modal-brand h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.m-input {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.m-input:focus {
  border-color: var(--lime-bright);
}

.m-error {
  display: none;
  color: #f87171;
  font-size: 0.8rem;
  text-align: center;
  font-weight: 600;
}

.m-submit {
  background: var(--lime-bright);
  color: #0d0f12;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.m-submit:hover {
  background: #d9f99d;
}

/* Footer */
.retrac-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2.5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
}

.f-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.f-text {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.footer-right {
  display: flex;
  gap: 1.75rem;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-right a:hover {
  color: var(--lime-bright);
}
