:root {
  --bg: #07090e;
  --bg-elev: rgba(11, 14, 21, 0.84);
  --bg-card: rgba(14, 18, 28, 0.78);
  --bg-input: rgba(8, 11, 18, 0.88);
  --border: rgba(255, 212, 82, 0.14);
  --border-strong: rgba(255, 212, 82, 0.36);
  --text: #f3f4f6;
  --muted: #98a3b8;
  --gold-light: #ffe388;
  --gold: #f5b82e;
  --gold-deep: #cf8a08;
  --gold-gradient: linear-gradient(135deg, #ffe388 0%, #f5b82e 50%, #cf8a08 100%);
  --gold-glow: 0 10px 28px rgba(245, 184, 46, 0.3);
  --green: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --purple: #c084fc;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-title, .logo-title, .stat-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.bg-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 184, 46, 0.15), transparent 44%),
    radial-gradient(circle at 84% 86%, rgba(207, 138, 8, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(6, 8, 13, 0.7) 0%, rgba(7, 9, 14, 0.84) 60%, rgba(5, 7, 11, 0.94) 100%),
    url('/assets/bg.jpg') center center / cover no-repeat;
}

.bg-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 11, 17, 0.75);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 184, 46, 0.32);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 184, 46, 0.58);
}

.hidden {
  display: none !important;
}

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Entrance Choreography */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal-in {
  animation: revealUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--stagger, 0ms);
}

@keyframes pulseRing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-140%) skewX(-24deg);
  }
  100% {
    transform: translateX(260%) skewX(-24deg);
  }
}

/* Login Stage — Asymmetric 3D Studio Layout */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-stage {
  max-width: 1080px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.login-showcase {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-canvas-wrap {
  position: relative;
  height: 310px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 184, 46, 0.12), rgba(10, 13, 21, 0.65) 70%);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 227, 136, 0.14), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.voxel-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.drag-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  background: rgba(9, 12, 19, 0.78);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.display-title {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.showcase-desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 520px;
}

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

.spec-pill {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(15, 19, 29, 0.78);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: rgba(12, 15, 23, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 227, 136, 0.16);
  transform-style: preserve-3d;
}

.login-card::before,
.stat-card::before,
.invite-card::before,
.hero-3d-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 224, 125, 0.16), transparent 62%);
  transition: opacity 0.25s ease;
}

.login-card:hover::before,
.stat-card:hover::before,
.invite-card:hover::before,
.hero-3d-card:hover::before {
  opacity: 1;
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.login-logo {
  width: 132px;
  height: 132px;
  border-radius: 26px;
  object-fit: contain;
  background: #040404;
  padding: 5px;
  border: 1.5px solid rgba(255, 227, 136, 0.58);
  box-shadow: 0 16px 40px rgba(245, 184, 46, 0.34), inset 0 0 18px rgba(245, 184, 46, 0.14);
}

.vault-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.login-card h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.login-card p {
  margin: 0 0 24px;
  line-height: 1.6;
  font-size: 13.5px;
}

.vault-foot {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.brand-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  background: rgba(245, 184, 46, 0.14);
  border: 1px solid rgba(245, 184, 46, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* App Shell */
.app-shell {
  display: grid;
  grid-template-columns: 288px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-elev);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  object-fit: contain;
  background: #040404;
  padding: 2px;
  border: 1.5px solid rgba(255, 227, 136, 0.56);
  box-shadow: 0 6px 18px rgba(245, 184, 46, 0.28);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img:hover {
  transform: scale(1.06) rotate(-2deg);
}

.logo-title {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-sep {
  color: rgba(255, 227, 136, 0.42);
  margin: 0 2px;
}

.bot-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulseRing 2.2s infinite;
}

.live-dot.offline {
  background: var(--danger);
  animation: none;
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-picker-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  background: rgba(9, 12, 19, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guild-picker-box label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.tier-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
}

.tier-pill.premium {
  background: linear-gradient(135deg, rgba(255, 227, 136, 0.22), rgba(207, 138, 8, 0.18));
  color: var(--gold-light);
  border: 1px solid rgba(245, 184, 46, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 236, 175, 0.2);
}

.tier-pill.free {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.26);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #d4dce8;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  background: rgba(245, 184, 46, 0.08);
  border-color: rgba(245, 184, 46, 0.22);
  color: #fff;
  transform: translateX(3px);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.2), rgba(207, 138, 8, 0.11));
  border-color: rgba(245, 184, 46, 0.5);
  color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.14);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 999px;
  background: var(--gold-gradient);
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-chip img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 184, 46, 0.48);
}

.user-meta {
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-sub {
  font-size: 11px;
  color: var(--gold-light);
  opacity: 0.88;
}

/* Main */
.main-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  padding: 22px 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 21, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar p {
  margin: 0;
  font-size: 13px;
}

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

.content-area {
  padding: 26px 30px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1300px;
  width: 100%;
}

/* Overview 3D Command Deck Hero */
.hero-3d-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 50%, rgba(245, 184, 46, 0.16), transparent 55%),
    rgba(13, 17, 27, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 227, 136, 0.15);
  transform-style: preserve-3d;
}

.hero-3d-stage {
  position: relative;
  height: 225px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 184, 46, 0.1), rgba(7, 9, 14, 0.55) 75%);
  border: 1px solid rgba(255, 212, 82, 0.18);
  overflow: hidden;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.telemetry-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tele-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(8, 11, 18, 0.82);
  border: 1px solid var(--border);
  font-size: 12.5px;
}

.tele-pill b {
  color: var(--gold-light);
}

/* Cards & Grids */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

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

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

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

.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 227, 136, 0.08);
  transform-style: preserve-3d;
  will-change: transform;
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.44), 0 0 24px rgba(245, 184, 46, 0.12);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

input[type='text'],
input[type='number'],
input[type='password'],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 184, 46, 0.22);
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

select option,
select optgroup {
  background: #0e121c;
  color: var(--text);
}

.help-text {
  font-size: 12px;
  color: var(--muted);
}

/* Custom Physical Sliding Gold Toggle Switches */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.switch-row:hover {
  border-color: var(--border-strong);
  background: rgba(245, 184, 46, 0.04);
}

.switch-row span {
  font-size: 13.5px;
  font-weight: 500;
}

.switch-row input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.switch-row input[type='checkbox']::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.switch-row input[type='checkbox']:checked {
  background: var(--gold-gradient);
  border-color: rgba(255, 236, 168, 0.65);
  box-shadow: 0 0 14px rgba(245, 184, 46, 0.42);
}

.switch-row input[type='checkbox']:checked::before {
  transform: translateX(20px);
  background: #140e02;
}

/* Buttons — Metallic Gold with Sheen Sweep */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98) translateY(1px);
}

.btn-primary,
.btn-discord {
  background: var(--gold-gradient);
  color: #161002;
  border-color: rgba(255, 236, 168, 0.6);
  box-shadow: var(--gold-glow), inset 0 1px 0 rgba(255, 250, 224, 0.55);
}

.btn-primary::after,
.btn-discord::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-140%) skewX(-24deg);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled)::after,
.btn-discord:hover:not(:disabled)::after {
  animation: sheenSweep 0.68s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover:not(:disabled),
.btn-discord:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(245, 184, 46, 0.44);
}

.btn-discord {
  width: 100%;
}

.btn-secondary {
  background: rgba(245, 184, 46, 0.12);
  border-color: rgba(245, 184, 46, 0.35);
  color: var(--gold-light);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(245, 184, 46, 0.22);
  border-color: rgba(255, 227, 136, 0.62);
  color: #fff9df;
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 212, 82, 0.24);
  color: var(--gold-light);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(245, 184, 46, 0.14);
  border-color: rgba(245, 184, 46, 0.48);
}

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

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  box-shadow: none;
}

/* Badges & Alerts */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.32);
}
.badge-gold {
  background: rgba(245, 184, 46, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(245, 184, 46, 0.42);
}
.badge-red {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.34);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.badge-purple {
  background: rgba(192, 132, 252, 0.18);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.36);
}

.alert {
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.alert-warning {
  background: rgba(245, 184, 46, 0.12);
  border: 1px solid rgba(245, 184, 46, 0.4);
  color: #fde68a;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.alert-info {
  background: rgba(245, 184, 46, 0.08);
  border: 1px solid rgba(245, 184, 46, 0.3);
  color: #f3e8c6;
}

/* Chips */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 13px;
}

.chip button {
  background: none;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-weight: 700;
  padding: 0 2px;
}

.inline-add {
  display: flex;
  gap: 8px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

th {
  color: var(--gold-light);
  opacity: 0.88;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:hover td {
  background: rgba(245, 184, 46, 0.05);
}

/* Toast */
#toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(14, 18, 28, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--gold);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.58);
  animation: revealUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast.error {
  border-left-color: var(--danger);
}

/* Bot Invite Screen */
.invite-hero {
  background: linear-gradient(135deg, rgba(245, 184, 46, 0.16), rgba(14, 18, 28, 0.84));
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.invite-hero h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--gold-light);
}

.invite-hero p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.invite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.invite-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  transform-style: preserve-3d;
  will-change: transform;
}

.invite-card:hover {
  border-color: var(--border-strong);
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guild-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--gold-light);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .login-stage,
  .hero-3d-card,
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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