:root {
  --bg: #081014;
  --bg-elev: #0e171c;
  --ink: #eef3f6;
  --muted: #93a7b6;
  --accent: #8b5cf6;
  --accent-deep: #9333ea;
  --accent-shadow: #6d28d9;
  --warm: #e8a15a;
  --danger: #e06b6b;
  --ok: #3ee0a0;
  --line: rgba(238, 243, 246, 0.1);
  --glass-bg: rgba(15, 23, 30, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --glow: 0 0 16px rgba(139, 92, 246, 0.4);
  --glow-strong: 0 0 26px rgba(109, 40, 217, 0.55);
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; min-height: 100%; color-scheme: dark; }

/* Native checkbox/radio Windows vurgu rengiyle (kırmızı kare) boyanmasın.
   .card backdrop-filter altında da opacity:0 native widget delip görünür. */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  vertical-align: middle;
  cursor: pointer;
  border: 1.5px solid rgba(196, 181, 253, 0.5);
  background: rgba(8, 16, 20, 0.92);
  box-shadow: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: #7c3aed;
  border-color: #c4b5fd;
}
input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f5f3ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
  background-image: radial-gradient(circle, #f5f3ff 0 35%, transparent 38%);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c4b5fd;
  border: 2px solid #7c3aed;
  box-shadow: none;
}
input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #7c3aed;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: none;
}
body {
  font-family: "IBM Plex Sans", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", system-ui, sans-serif;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 38% 85% at 0% 42%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(ellipse 38% 85% at 100% 58%, rgba(91, 33, 182, 0.24), transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(91, 33, 182, 0.14), transparent 50%),
    linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
/* Lucide geometri (rect/circle) UA fill ile kırmızı/siyah kutu olmasın. */
svg.icon {
  overflow: visible;
  background: transparent;
  fill: none;
}
svg.icon [fill="currentColor"] { fill: currentColor; }
svg.icon [stroke="none"] { stroke: none; }
.container { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
body.admin-shell { --max: 1440px; }
body.admin-shell .container { width: min(1440px, 96%); max-width: 1440px; }

#site-header {
  position: relative;
  z-index: 50;
}
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 16, 20, 0.72);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: "IBM Plex Sans", "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-weight: 600; font-style: normal; font-size: 1.05rem;
  letter-spacing: -0.01em; text-decoration: none;
}
.nav-brand { position: relative; }
.nav-logo {
  width: 34px; height: 34px; flex-shrink: 0;
  animation: nav-logo-aura 7.2s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.nav-brand:hover .nav-logo {
  transform: perspective(300px) rotateY(10deg) rotateX(-4deg) scale(1.08);
}
@keyframes nav-logo-aura {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(167, 139, 250, 0.42))
      drop-shadow(0 0 8px rgba(34, 211, 238, 0.16))
      brightness(1);
  }
  40% {
    filter:
      drop-shadow(0 0 5px rgba(192, 132, 252, 0.78))
      drop-shadow(0 0 13px rgba(34, 211, 238, 0.36))
      brightness(1.06);
  }
  56% {
    filter:
      drop-shadow(0 0 6px rgba(224, 231, 255, 0.5))
      drop-shadow(0 0 11px rgba(167, 139, 250, 0.42))
      brightness(1.14);
  }
  70% {
    filter:
      drop-shadow(0 0 5px rgba(192, 132, 252, 0.7))
      drop-shadow(0 0 10px rgba(34, 211, 238, 0.28))
      brightness(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo { animation: none; filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.35)); }
}
.nav-brand span {
  color: var(--accent); font-style: normal;
  text-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.7rem; border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  background: rgba(139, 92, 246, 0.08);
}
.nav,
.nav-inner,
.nav-drop { overflow: visible; }
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  height: auto;
  min-height: fit-content;
  max-height: none;
  overflow: visible;
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  min-width: 16.5rem;
  width: max-content;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(180deg, rgba(22, 12, 40, 0.97), rgba(8, 10, 18, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 92, 246, 0.28);
  z-index: 60;
  isolation: isolate;
}
.nav-links .nav-drop-menu a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  height: auto;
  min-height: 2.45rem;
  box-sizing: border-box;
  position: relative;
  padding: 0.55rem 0.75rem;
  line-height: 1.35;
  border-radius: 8px;
  color: #ddd6fe;
  font-weight: 600;
  white-space: nowrap;
  overflow: visible;
}
.nav-drop-menu a:hover,
.nav-drop-menu a.active {
  background: rgba(139, 92, 246, 0.22);
  color: #f5f3ff;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.open > .nav-drop-menu { display: flex; }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  text-decoration: none; font-weight: 600; border: 0; cursor: pointer;
  padding: 0.7rem 1.05rem; border-radius: var(--radius); font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav-cta, .btn-primary {
  background: var(--accent); color: #f5f3ff;
  box-shadow: var(--glow);
}
.nav-cta:hover, .btn-primary:hover, .btn-ghost:hover, .btn-danger:hover {
  transform: translateY(-2px);
}
.nav-cta:hover, .btn-primary:hover { box-shadow: var(--glow-strong); }
.nav-end {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-end #nav-auth {
  display: inline-flex;
  align-items: center;
}
.nav-end #nav-auth a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.user-rc-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  font: 700 0.82rem/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: #fde68a;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.42), rgba(24, 16, 48, 0.78));
  border: 1px solid rgba(250, 204, 21, 0.38);
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
.user-rc-badge[hidden] { display: none !important; }

.notif-wrap { position: relative; display: inline-flex; }
.notif-wrap[hidden] { display: none !important; }
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(139, 92, 246, 0.08);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.notif-bell:hover { background: rgba(139, 92, 246, 0.16); border-color: rgba(196, 181, 253, 0.4); }
.notif-bell:active { transform: scale(0.94); }
.notif-bell[aria-expanded="true"] { background: rgba(139, 92, 246, 0.22); border-color: rgba(196, 181, 253, 0.55); }
.notif-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.1rem;
  width: auto;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: none;
  outline: 2px solid rgba(8, 16, 20, 0.9);
  animation: notif-badge-pop 0.3s ease;
}
.notif-badge[hidden] { display: none !important; }
@keyframes notif-badge-pop {
  from { transform: scale(0.4); }
  to { transform: scale(1); }
}
.notif-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 60;
  width: min(23rem, 92vw);
  max-height: 26rem;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  background: linear-gradient(180deg, rgba(22, 12, 40, 0.97), rgba(8, 10, 18, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: notif-panel-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-panel[hidden] { display: none !important; }
@keyframes notif-panel-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(196, 181, 253, 0.16);
  font-weight: 700;
  font-size: 0.92rem;
  color: #f5f3ff;
  flex-shrink: 0;
}
.notif-mark-all {
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.notif-mark-all:hover { background: rgba(139, 92, 246, 0.16); color: #f5f3ff; }
.notif-list {
  overflow-y: auto;
  flex: 1 1 auto;
}
.notif-empty {
  padding: 1.6rem 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.notif-empty a { color: var(--accent); font-weight: 600; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(196, 181, 253, 0.08);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: rgba(139, 92, 246, 0.1); }
.notif-item.is-unread { background: rgba(139, 92, 246, 0.07); }
.notif-item.is-unread .notif-item-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: none;
}
.notif-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #c4b5fd;
  line-height: 0;
}
.notif-item-icon .icon { display: block; }
.notif-item-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.notif-item-title { font-weight: 700; font-size: 0.85rem; color: #f5f3ff; }
.notif-item-text { font-size: 0.82rem; color: var(--muted); line-height: 1.4; word-break: break-word; }
.notif-item-time { font-size: 0.7rem; color: rgba(147, 167, 182, 0.75); margin-top: 0.1rem; }
.notif-item.notif-kind-founder { border-left: 3px solid #f4d03f; }
.notif-item.notif-kind-update { border-left: 3px solid #22d3ee; }
.notif-item.notif-kind-warning { border-left: 3px solid #f59e0b; }
.notif-item.notif-kind-event { border-left: 3px solid #34d399; }
.notif-item.notif-kind-level_up { border-left: 3px solid #c084fc; }
.notif-item.notif-kind-lootbox_ready,
.notif-item.notif-kind-daily_reward { border-left: 3px solid #fb7185; }
.cr-staging-hud {
  position: fixed;
  top: 4.35rem;
  left: 0.85rem;
  z-index: 80;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #d1fae5;
  background: rgba(6, 16, 18, 0.82);
  border: 1px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.28);
  pointer-events: none;
}
.btn.is-staging-on {
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.2);
}
.broadcast-hub {
  margin-top: 0.4rem;
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid rgba(34, 211, 238, 0.38);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(168, 85, 247, 0.16), transparent 50%),
    rgba(8, 12, 22, 0.55);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.18), inset 0 0 0 1px rgba(34, 211, 238, 0.08);
}
.broadcast-hub #broadcast-kind option[value="founder"] { color: #f4d03f; }
.broadcast-hub #broadcast-kind option[value="update"] { color: #22d3ee; }
.broadcast-hub #broadcast-kind option[value="warning"] { color: #f59e0b; }
.broadcast-hub #broadcast-kind option[value="event"] { color: #34d399; }
@media (max-width: 480px) {
  .notif-panel { right: -0.5rem; width: min(23rem, 96vw); }
}
.user-rc-badge.is-debit { animation: rc-pulse-red 0.95s ease; }
.user-rc-badge.is-credit { animation: rc-pulse-green 1.15s ease; }
@keyframes rc-pulse-red {
  0%, 100% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.38); }
  40% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.9); color: #fecaca; }
}
@keyframes rc-pulse-green {
  0%, 100% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.38); }
  40% { box-shadow: 0 0 28px rgba(52, 211, 153, 1); color: #bbf7d0; }
}
.user-rc-delta {
  position: absolute;
  left: 50%;
  top: -1.15rem;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 10px currentColor;
}
.user-rc-badge.is-debit .user-rc-delta { color: #fca5a5; }
.user-rc-badge.is-credit .user-rc-delta { color: #6ee7b7; }
.btn-ghost {
  background: rgba(15, 23, 30, 0.45);
  color: var(--ink);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { border-color: rgba(139, 92, 246, 0.35); box-shadow: var(--glow); }
.btn-danger {
  background: var(--danger); color: #fff;
  box-shadow: 0 0 15px rgba(224, 107, 107, 0.25);
}
.btn-danger:hover { box-shadow: 0 0 22px rgba(224, 107, 107, 0.45); }
.hamburger {
  display: none; background: none; border: 1px solid var(--glass-border);
  color: var(--ink); padding: 0.45rem 0.65rem; cursor: pointer;
  border-radius: 10px; align-items: center; justify-content: center; gap: 0.35rem;
  min-width: 2.4rem; min-height: 2.4rem;
}

.hero, .block { padding: clamp(3rem, 8vh, 5.5rem) 0; position: relative; z-index: 1; }
main { flex: 1 0 auto; width: 100%; }
#site-footer { margin-top: auto; width: 100%; flex-shrink: 0; }
#sunucular { scroll-margin-top: 5.5rem; }
.hero {
  border-bottom: 1px solid var(--glass-border);
  min-height: min(78vh, 44rem);
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}
.page-sphere,
.page-sphere canvas {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}
.page-sphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-sphere::before,
.page-sphere::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 10%;
  width: min(22vw, 280px);
  pointer-events: none;
}
.page-sphere::before {
  left: 0;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(transparent, rgba(139, 92, 246, 0.45), transparent) 18% 0 / 1px 100% no-repeat;
}
.page-sphere::after {
  right: 0;
  background:
    linear-gradient(270deg, rgba(91, 33, 182, 0.16), transparent 70%),
    linear-gradient(transparent, rgba(139, 92, 246, 0.4), transparent) 82% 0 / 1px 100% no-repeat;
}
.page-sphere canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.lead { color: var(--muted); margin: 1rem 0 1.5rem; max-width: 36ch; }
.lead-wide { max-width: 42rem; }
.hero-inner .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 38rem;
  margin: 1.2rem auto 0;
  position: relative;
  z-index: 1;
}
.hero-brand {
  font-family: "Exo 2", Syne, sans-serif;
  font-weight: 700;
  font-stretch: normal;
  font-size: clamp(3.6rem, 11.5vw, 7.8rem);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.55)) drop-shadow(0 0 28px rgba(109, 40, 217, 0.28));
}
.hero-brand .word {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.hero-brand .cap,
.hero-brand .rest {
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.03em;
}
.hero-brand .cap {
  font-size: 1.22em;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-brand .word:first-child .cap {
  padding-right: 0.04em;
}
.hero-brand .accent,
.hero-brand .accent .cap,
.hero-brand .accent .rest {
  color: var(--accent);
}
.visual-tag {
  position: absolute; left: 0; bottom: 0; padding: 0.75rem 1rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border-top: 1px solid var(--glass-border); border-right: 1px solid var(--glass-border);
  background: rgba(8, 16, 20, 0.8);
  border-radius: 0 var(--radius) 0 0;
}
.kicker { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.addr { font-family: ui-monospace, monospace; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.addr.warm { color: var(--warm); }
.connect-panel { padding: 0.4rem 1.2rem; }
.connect-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--glass-border);
}
.connect-row:last-child { border-bottom: 0; }
h1, h2 { font-family: Syne, sans-serif; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.prose { max-width: 42rem; color: var(--muted); }
.prose p, .prose li { margin-bottom: 0.7rem; }
.prose ul { padding-left: 1.2rem; }
.prose.card { max-width: 46rem; padding: 1.4rem 1.5rem; }

.form { max-width: 28rem; display: grid; gap: 0.85rem; }
.form.profile-info-card { max-width: none; }
.form.card { padding: 1.35rem 1.4rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.form textarea, .form select,
.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.cmd-row input, .search-row input, .search-row select {
  background: rgba(8, 16, 20, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form textarea:focus, .form select:focus,
.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):focus,
.cmd-row input:focus, .search-row input:focus, .search-row select:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.msg { min-height: 1.3rem; font-size: 0.9rem; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--accent); }

.footer {
  margin-top: auto; border-top: 1px solid var(--glass-border); padding: 1.6rem 0;
  color: var(--muted); font-size: 0.9rem;
  background: rgba(8, 16, 20, 0.45);
  backdrop-filter: blur(10px);
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.card, .stat, .console {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.card { padding: 1.15rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.table select {
  background: rgba(8, 16, 20, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  padding: 0.4rem 0.55rem;
  font: inherit;
  border-radius: 10px;
}
.console {
  background: rgba(5, 8, 10, 0.72);
  min-height: 240px; max-height: 360px;
  overflow: auto; padding: 0.8rem; font-family: ui-monospace, monospace; font-size: 0.8rem;
  white-space: pre-wrap;
}
.live { color: var(--accent); font-weight: 600; text-shadow: 0 0 10px rgba(139, 92, 246, 0.35); }
.hint { color: var(--muted); font-size: 0.85rem; }
.form .check { display: flex; align-items: flex-start; gap: 0.55rem; }
.form .check input { margin-top: 0.25rem; }
.admin-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin: 1rem 0 1.5rem;
}
.stat { padding: 1rem; }
.stat .kicker { margin-bottom: 0.35rem; }
.stat strong { font-size: 1.25rem; }
.tabs { display: flex; gap: 0.45rem; flex-wrap: wrap; margin: 1.2rem 0; }
.tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(15, 23, 30, 0.45); color: var(--muted);
  border: 1px solid var(--glass-border);
  padding: 0.45rem 0.8rem; cursor: pointer; font: inherit; border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.tab .icon { flex-shrink: 0; }
.tab:hover { transform: translateY(-2px); }
.tab.active {
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.tabs-main {
  gap: 0.15rem 0.05rem;
  margin: 1.15rem 0 1.45rem;
  padding-bottom: 0;
  border-bottom: 1px solid var(--glass-border);
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs-main::-webkit-scrollbar { display: none; }
.tabs-main .tab {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.72rem 0.85rem 0.82rem;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.tabs-main .tab:hover {
  transform: none;
  color: var(--ink);
  background: rgba(139, 92, 246, 0.07);
}
.tabs-main .tab.active {
  color: var(--ink);
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
.tabs-main .tab.active::after {
  content: '';
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 22px rgba(139, 92, 246, 0.45);
}
.changelog-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.9rem; }
.changelog-item { padding: 1rem 1.15rem; }
.changelog-item ul { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.changelog-item li { margin-bottom: 0.2rem; }
.btn-sm { padding: 0.35rem 0.55rem; font-size: 0.85rem; }

.tabs-sub {
  margin: 1.05rem 0 0.85rem;
}
.tabs-sub .tab.active {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}
.workspace { display: none; }
.workspace.active {
  display: block;
  animation: workspace-in 0.22s ease;
}
@keyframes workspace-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace.active, .panel.active { animation: none; }
}
.section-title {
  font-family: Syne, sans-serif;
  font-size: 1.05rem;
  margin: 1.6rem 0 0.75rem;
}
.maint-card {
  margin: 1.4rem 0 0.4rem;
  padding: 1.2rem 1.25rem 1.1rem;
  display: grid;
  gap: 0.9rem;
}
.maint-card h2 { margin: 0.15rem 0 0.35rem; font-size: 1.2rem; }
.maint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
}
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
}
.switch input,
.switch input:checked {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  pointer-events: none;
}
.switch-ui {
  width: 3.1rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(8, 16, 20, 0.85);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  clip-path: inset(0 round 999px);
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease;
}
.switch input:checked + .switch-ui {
  background: rgba(139, 92, 246, 0.28);
  border-color: var(--accent);
  box-shadow: none;
}
.switch input:checked + .switch-ui::after {
  transform: translateX(1.35rem);
  background: #f5f3ff;
  box-shadow: none;
}
.switch-label { font-weight: 700; letter-spacing: 0.04em; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.panel { display: none; }
.panel.active {
  display: block;
  animation: workspace-in 0.2s ease;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.row-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.cmd-row { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.cmd-row input { flex: 1; }
.search-row { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; align-items: center; }
.search-row input, .search-row select { flex: 1; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.75rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  border: 1px solid var(--glass-border);
  background: rgba(8, 16, 20, 0.55);
  color: var(--muted);
}
.pill.ok { color: var(--accent); border-color: rgba(139, 92, 246, 0.4); box-shadow: var(--glow); }
.pill.err { color: var(--danger); border-color: rgba(255, 90, 90, 0.4); }
.pill.warn { color: var(--warm); border-color: rgba(232, 161, 90, 0.4); }

.pill-filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.7rem 0; }
.pill-filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--glass-border);
  background: rgba(8, 16, 20, 0.55);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.pill-filter:hover { color: #e6e9ef; }
.pill-filter.is-active {
  color: var(--accent);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.12);
  box-shadow: var(--glow);
}
.pill-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4em; padding: 0.05rem 0.4rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem; font-weight: 700;
}
.pill-filter.is-active .pill-filter-count { background: rgba(139, 92, 246, 0.28); }

/* Admin tablo avatarları (Geçmiş Satışlar / Kullanıcılar) — sınır/kırpma
   kuralı yoksa büyük bir profil resmi hücreyi (hatta tabloyu) taşırıyordu. */
.sales-user-avatar,
.table-user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: inline-block;
  vertical-align: middle;
}
.table-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* "🚀 Sürüm & Güncellemeler" — dinamik zaman çizelgesi (timeline). */
.sys-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.9rem;
  padding-left: 1.6rem;
}
.sys-timeline::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.65), rgba(0, 243, 255, 0.15));
  border-radius: 2px;
}
.sys-timeline-item {
  position: relative;
}
.sys-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #8b5cf6);
  box-shadow: none;
  outline: 3px solid rgba(139, 92, 246, 0.18);
}
.sys-timeline-item:first-child::before {
  background: #00f3ff;
  box-shadow: none;
  outline-color: rgba(0, 243, 255, 0.18);
}

.status-line {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--muted); font-size: 0.85rem; margin: 0;
  overflow: visible;
}
.status-dot {
  display: inline-block;
  position: relative;
  flex: 0 0 8px;
  align-self: center;
  width: 8px; height: 8px;
  min-width: 8px; min-height: 8px;
  max-width: 8px; max-height: 8px;
  border-radius: 50%;
  font-size: 0; line-height: 0;
  background: #5a6a74;
  box-shadow: none;
}
.status-dot.on {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  overflow: visible;
}
.status-dot.on::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #4ade80;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}
.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.55);
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.85);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}

.profile-hero {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
}
.nav-user {
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.nav-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(196, 181, 253, 0.45);
}
.oauth-row {
  display: grid; gap: 0.55rem;
}
.oauth-or {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--muted); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.oauth-or::before, .oauth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--glass-border);
}
.btn-oauth {
  width: 100%;
  background: rgba(15, 23, 30, 0.7);
  color: var(--ink);
  border: 1px solid var(--glass-border);
}
.btn-oauth:hover { border-color: rgba(139, 92, 246, 0.45); }
.btn-oauth.discord { border-color: rgba(88, 101, 242, 0.45); }
.btn-oauth.google { border-color: rgba(234, 67, 53, 0.35); }

/* —— Auth (kayıt / giriş) —— */
body.auth-page {
  overflow-x: hidden;
}
body.auth-page #site-footer { display: none; }
body.auth-page main {
  flex: 1 0 auto;
  display: flex;
  width: 100%;
}
.auth-wrapper,
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.auth-wrapper {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding: 20px;
  box-sizing: border-box;
}
.auth-container {
  padding: 0;
}
.auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 2px;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 0 25px -5px rgba(168, 85, 247, 0.35);
  opacity: 0;
  animation: authCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent 0deg,
    transparent 280deg,
    #7c3aed 320deg,
    #a855f7 340deg,
    #c084fc 360deg
  );
  animation: rotateBorder 4s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: #0f0d1b;
  z-index: 1;
  pointer-events: none;
}
@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border-radius: 18px;
  background: #0f0d1b;
}
.auth-head {
  text-align: center;
  margin-bottom: 0.15rem;
}
.auth-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
}
.auth-head .lead {
  margin: 0 auto;
  max-width: none;
  font-size: 0.9rem;
  line-height: 1.4;
}
.auth-page .auth-card .oauth-row { gap: 10px; }
.auth-page .auth-card .btn {
  padding: 0.62rem 1rem;
  border-radius: 12px;
}
.auth-page .auth-card .btn-oauth {
  background: #141022;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.auth-page .auth-card .btn-oauth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(168, 85, 247, 0.55);
}
.auth-page .auth-card .btn-oauth.google:hover {
  border-color: rgba(234, 67, 53, 0.7);
  box-shadow: 0 8px 22px -10px rgba(234, 67, 53, 0.45);
}
.auth-page .auth-card .btn-oauth.discord:hover {
  border-color: rgba(88, 101, 242, 0.85);
  box-shadow: 0 8px 22px -10px rgba(88, 101, 242, 0.55);
}
.auth-page .auth-card .oauth-or {
  margin: 0.15rem 0 0.05rem;
  color: #c4b5fd;
  font-size: 0.72rem;
}
.auth-page .auth-card .oauth-or::before,
.auth-page .auth-card .oauth-or::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.75), transparent);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
}
.auth-page .auth-card label {
  gap: 0.28rem;
  font-size: 0.82rem;
}
.auth-page .auth-card input:not([type="checkbox"]) {
  padding: 0.58rem 0.8rem;
  border-radius: 12px;
  background: #141022;
  border-color: rgba(168, 85, 247, 0.18);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-page .auth-card input:not([type="checkbox"]):focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 2px #a855f7, 0 0 15px rgba(168, 85, 247, 0.4);
}
.auth-page .auth-card .hint {
  font-size: 0.78rem;
  line-height: 1.35;
}
.auth-page .auth-card .check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.auth-page .auth-card .check input {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.12rem;
}
.auth-page .auth-card .check span {
  min-width: 0;
  flex: 1;
}
.auth-page .auth-card .check a {
  color: #c4b5fd;
  text-underline-offset: 2px;
}
.auth-page .auth-card .btn-primary {
  width: 100%;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #f5f3ff;
  box-shadow: 0 8px 24px -8px rgba(147, 51, 234, 0.75), 0 0 18px rgba(168, 85, 247, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.auth-page .auth-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px -8px rgba(168, 85, 247, 0.9), 0 0 28px rgba(168, 85, 247, 0.5);
}
.auth-page .auth-card .msg {
  min-height: 0;
  text-align: center;
  font-size: 0.84rem;
}
.auth-page .auth-card .auth-foot {
  text-align: center;
  margin: 0;
}
.auth-page .auth-card .auth-foot a {
  color: #c4b5fd;
  text-underline-offset: 2px;
}

@media (max-height: 860px) {
  .auth-wrapper { padding: 12px 20px; min-height: calc(100dvh - 72px); }
  .auth-card-inner { padding: 20px 24px; gap: 10px; }
  .auth-head h1 { font-size: 1.45rem; margin-bottom: 0.2rem; }
  .auth-page .auth-card .btn { padding: 0.52rem 0.9rem; }
  .auth-page .auth-card input:not([type="checkbox"]) { padding: 0.48rem 0.75rem; }
}

.profile-avatar {
  width: 88px; height: 88px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: var(--glow);
  color: var(--accent);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-avatar-btn {
  appearance: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.profile-avatar-btn .profile-avatar-edit {
  position: absolute; inset: auto 0 0 0;
  background: rgba(8, 10, 18, 0.72);
  color: #f5f3ff;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.2rem;
  display: flex; align-items: center; justify-content: center; gap: 0.25rem;
}
.profile-avatar.has-donor-frame {
  padding: 3px;
  border: 0;
  background: linear-gradient(135deg, #fbbf24, #a78bfa 45%, #22d3ee);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.45);
}
.profile-avatar.has-donor-frame img {
  border-radius: 15px;
}
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
}
.profile-hero h1 { margin: 0; }
.profile-edit-toggle {
  appearance: none;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.18);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.profile-edit-toggle:hover,
.profile-edit-toggle:focus-visible {
  color: #f5f3ff;
  border-color: rgba(196, 181, 253, 0.7);
  background: rgba(139, 92, 246, 0.28);
  box-shadow: var(--glow);
  outline: none;
}
.profile-edit-toggle.is-open {
  color: #f5f3ff;
  border-color: rgba(168, 85, 247, 0.85);
  background: rgba(139, 92, 246, 0.38);
  box-shadow: var(--glow-strong);
}
.profile-hero-main { flex: 1; min-width: 16rem; }
.profile-hero-actions { margin-left: auto; }

.profile-username-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.field-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]):disabled {
  opacity: 0.48;
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(8, 16, 20, 0.38);
  box-shadow: none;
}
#username-cooldown-hint.is-locked { color: #fda4af; }
#btn-username-save { width: max-content; margin-top: 0.15rem; }
.cr-tip {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: #a78bfa;
  cursor: help;
  outline: none;
  vertical-align: middle;
}
.cr-tip:hover,
.cr-tip:focus-visible {
  color: #edd9ff;
}
.cr-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  padding: 0.42rem 0.7rem;
  border-radius: 10px;
  background: rgba(18, 12, 32, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 28px -10px rgba(139, 92, 246, 0.7), 0 0 16px rgba(139, 92, 246, 0.25);
  color: #f5f3ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.cr-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(168, 85, 247, 0.55);
}
.cr-tip:hover .cr-tip-bubble,
.cr-tip:focus-visible .cr-tip-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.profile-info-card {
  max-width: none;
  width: 100%;
  margin-bottom: 1.5rem;
  border-color: rgba(168, 85, 247, 0.22);
  box-shadow: 0 10px 36px -16px rgba(168, 85, 247, 0.35);
}
.profile-info-card .btn-primary {
  justify-self: start;
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  box-shadow: 0 8px 22px -8px rgba(147, 51, 234, 0.7);
}
.profile-info-card .btn-primary:hover {
  box-shadow: 0 12px 28px -8px rgba(168, 85, 247, 0.85);
}
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1.1rem;
}
.gender-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  grid-column: 1 / -1;
}
.gender-fieldset legend {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.gender-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.gender-opt {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  grid-template-columns: none !important;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(8, 16, 20, 0.55);
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
}
.gender-opt:has(input:checked) {
  border-color: rgba(168, 85, 247, 0.7);
  background: rgba(139, 92, 246, 0.16);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.28);
}
.gender-opt input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
}

.site-toasts {
  position: fixed;
  top: 5.2rem;
  right: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.55rem;
  width: min(22rem, calc(100% - 2rem));
  pointer-events: none;
}
.site-toast {
  pointer-events: auto;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  background: rgba(15, 13, 28, 0.94);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 32px -12px rgba(168, 85, 247, 0.55);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  animation: site-toast-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-toast.ok { border-color: rgba(52, 211, 153, 0.45); }
.site-toast.err { border-color: rgba(224, 107, 107, 0.55); color: #fecaca; }
.site-toast.founder { border-color: rgba(244, 208, 63, 0.7); color: #fde68a; }
.site-toast.update { border-color: rgba(34, 211, 238, 0.65); color: #a5f3fc; }
.site-toast.warning { border-color: rgba(245, 158, 11, 0.7); color: #fcd34d; }
.site-toast.event { border-color: rgba(52, 211, 153, 0.7); color: #6ee7b7; }
.site-toast.levelup { border-color: rgba(192, 132, 252, 0.75); color: #e9d5ff; }

.cr-levelup-fx {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
}
.cr-confetti {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: cr-confetti-fall 1.8s ease-in forwards;
}
@keyframes cr-confetti-fall {
  to { transform: translateY(110vh) rotate(240deg); opacity: 0.2; }
}
@keyframes site-toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.cr-maint-hud {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(42rem, calc(100vw - 1.5rem));
  padding: 0.62rem 1.05rem 0.62rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(12, 8, 4, 0.78);
  color: #fff7ed;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  animation: slideDown 0.4s ease both, cr-maint-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.cr-maint-hud-led {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #f59e0b;
  animation: blink 1.5s infinite;
}
.cr-maint-hud-text { line-height: 1.25; }
html.has-maint-hud body {
  padding-top: 3.4rem;
}
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cr-maint-slide {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes cr-maint-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 0 28px rgba(245, 158, 11, 0.55); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes cr-maint-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.integration-head {
  display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 0.85rem;
}
.integration-head h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.brand-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent);
  box-shadow: var(--glow);
  flex-shrink: 0;
}
.brand-icon.discord {
  background: rgba(88, 101, 242, 0.18);
  color: #9aa6ff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.25);
}

.danger-zone {
  margin-top: 1.75rem;
  border-color: rgba(224, 107, 107, 0.38);
  box-shadow: inset 0 0 48px rgba(224, 107, 107, 0.07);
  padding: 1.35rem 1.45rem;
}
.danger-zone h2 {
  color: var(--danger);
  display: flex; align-items: center; gap: 0.45rem;
}

.server-grid, .mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 0.4rem;
}
.server-grid { perspective: 1200px; }
.server-card, .mod-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.4rem;
}
.server-card {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.server-card--online {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25), inset 0 0 15px rgba(168, 85, 247, 0.1);
  animation: neonGlow 3.2s ease-in-out infinite;
}
.server-card--online::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.05), rgba(34, 211, 238, 0.85), rgba(168, 85, 247, 0.9), rgba(34, 211, 238, 0.05));
  background-size: 220% 100%;
  animation: borderBeam 3s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.server-card--online:hover .server-card-inner {
  transform: translateZ(20px) translateY(-5px);
  transition: transform 0.3s ease;
}
.server-card--offline {
  opacity: 0.65;
  filter: saturate(0.55);
}
.server-card--offline .status-dot {
  background: #6b7280;
  box-shadow: none;
}
@keyframes neonGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.22), inset 0 0 12px rgba(168, 85, 247, 0.08); }
  50% { box-shadow: 0 0 32px rgba(34, 211, 238, 0.28), inset 0 0 16px rgba(168, 85, 247, 0.14); }
}
@keyframes borderBeam {
  to { background-position: 220% 0; }
}
.server-card.is-tilting {
  box-shadow: var(--glow-strong), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.server-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  transform: translateZ(20px);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.server-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.server-card h3, .mod-card h2 {
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.server-card .btn { margin-top: auto; align-self: flex-start; transform: translateZ(28px); }
.server-card .btn:hover { transform: translateZ(36px) translateY(-2px); }
.mod-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.mod-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--ink);
}
.mod-list li:last-child { border-bottom: 0; }
.callout-warn {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border-color: rgba(232, 161, 90, 0.4);
  box-shadow: inset 0 0 40px rgba(232, 161, 90, 0.08);
  padding: 1.2rem 1.35rem;
}
.callout-warn strong { color: var(--warm); display: block; margin-bottom: 0.25rem; }
.callout-warn p { margin: 0; color: var(--muted); }

.badge-full {
  color: #06201c;
  background: var(--ok);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(62, 224, 160, 0.35);
}
.perm-summary { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; max-width: 22rem; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 10, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  padding: 1.25rem;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-card {
  width: min(34rem, 100%);
  max-height: min(88vh, 44rem);
  overflow: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glow), 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 1.35rem 1.45rem 1.25rem;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-close { min-width: 2.4rem; padding: 0.35rem 0.6rem; font-size: 1.25rem; line-height: 1; }
.modal-card-wide { width: min(44rem, 100%); max-height: min(90vh, 54rem); }
.modal-card-overflow { overflow: visible; }
.users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.users-toolbar .search-row { margin: 0; flex: 1; min-width: 16rem; }
.role-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--role-color, var(--ink));
  border: 1px solid color-mix(in srgb, var(--role-color, #8b9aa3) 55%, transparent);
  background: color-mix(in srgb, var(--role-color, #8b9aa3) 16%, transparent);
  box-shadow: none;
}
.role-badge::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--role-color, #8b9aa3);
  box-shadow: none;
}
.role-select {
  --role-color: #8b9aa3;
  border-color: color-mix(in srgb, var(--role-color) 55%, var(--glass-border));
  box-shadow: 0 0 10px color-mix(in srgb, var(--role-color) 28%, transparent);
  color: var(--ink);
  min-width: 9.5rem;
}
.role-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: rgba(8, 16, 20, 0.4);
}
.role-row .role-meta { color: var(--muted); font-size: 0.82rem; }
.role-row .role-actions { margin-left: auto; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.color-field { margin: 0.85rem 0 0.4rem; }
.color-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }
.color-row input[type='color'] {
  -webkit-appearance: none;
  appearance: none;
  width: 2.6rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 0.4rem;
  background: transparent;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
}
.color-row input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type='color']::-webkit-color-swatch {
  border: 0;
  border-radius: 0.25rem;
}
.color-presets { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.color-swatch {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  background: var(--swatch);
}
.color-swatch.active { border-color: #fff; }
.perm-group {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.4);
}
.perm-group-matrix {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(18, 12, 34, 0.55);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.12);
}
.perm-group-matrix .perm-item {
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.12);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
}
.rbac-matrix-hero {
  margin-bottom: 1.1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(18, 12, 34, 0.72);
  backdrop-filter: blur(12px);
}
.rbac-matrix-hero h3 { margin: 0.45rem 0 0.35rem; }
.soon-badge {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #ddd6fe;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.soon-badge-live { border-color: rgba(74, 222, 128, 0.45); color: #86efac; }
.perm-group h3 {
  font-family: Syne, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.perm-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.42rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
}
.perm-item input {
  width: 1.1rem; height: 1.1rem;
  flex-shrink: 0;
}
.perm-servers {
  margin-top: 0.4rem;
  padding: 1rem 0 0.2rem;
  border-top: 1px solid var(--glass-border);
  display: grid;
  gap: 0.55rem;
}
.perm-servers-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.perm-servers-head .kicker { font-weight: 600; color: var(--ink); letter-spacing: 0.06em; }
.perm-servers-tools { display: flex; gap: 0.35rem; }
.perm-servers-tools .btn { padding: 0.28rem 0.65rem; font-size: 0.78rem; }
.perm-server-list {
  max-height: 14rem;
  overflow: auto;
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(8, 16, 20, 0.55);
}
.perm-server-list .perm-item {
  align-items: flex-start;
  padding: 0.5rem 0.2rem;
}
.perm-server-list .perm-item span {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.perm-server-list .perm-item strong {
  font-size: 0.92rem;
  font-weight: 600;
}
.perm-server-list .perm-item .hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.perm-server-empty {
  margin: 0.7rem 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.modal-actions { margin-top: 1.1rem; }
.user-profile-head { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-start; margin-bottom: 1rem; }
.user-avatar {
  width: 3.1rem; height: 3.1rem; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid var(--glass-border);
}
.user-profile-meta { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.user-profile-meta strong { font-size: 1.15rem; }
.user-profile-head .pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.user-section-title { font-size: 0.95rem; margin: 1.15rem 0 0.55rem; }
.user-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.85rem 1.1rem;
}
.user-fact .kicker { display: block; margin-bottom: 0.2rem; }
.user-fact { min-width: 0; word-break: break-word; }
.user-fact-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; }
.user-activity { width: 100%; font-size: 0.82rem; }
.user-activity th, .user-activity td { padding: 0.4rem 0.3rem; }

@media (max-width: 860px) {
  html, body { overflow-x: clip; }
  .container { width: min(var(--max), calc(100% - 1.5rem)); }
  .nav-inner { gap: 0.45rem; }
  .nav-brand { font-size: 0.92rem; gap: 0.4rem; min-width: 0; }
  .nav-logo { width: 28px; height: 28px; }
  .hamburger { display: inline-flex; padding: 0.4rem; flex-shrink: 0; }
  .nav-cta {
    padding: 0.38rem 0.65rem;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.35);
  }
  .nav-cta .icon { display: none; }
  .user-rc-badge { padding: 0.32rem 0.55rem; font-size: 0.74rem; }
  .nav-links {
    display: none; position: absolute; top: 4.25rem; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 20, 25, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border); padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.55rem 0.2rem; }
  .nav-drop-menu {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
    height: auto;
    min-height: fit-content;
    min-width: 0;
    width: 100%;
    max-width: none;
    overflow: visible;
    padding: 8px 0 12px 0.85rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-links .nav-drop-menu a {
    white-space: normal;
    min-height: 2.35rem;
    padding: 0.5rem 0.65rem;
    line-height: 1.35;
  }
  .nav-drop:hover .nav-drop-menu,
  .nav-drop:focus-within .nav-drop-menu,
  .nav-drop.open > .nav-drop-menu { display: flex; }
  .hero-inner, .grid-2, .admin-grid, .server-grid, .mod-grid, .profile-info-grid { grid-template-columns: 1fr; }
  .connect-row { flex-direction: column; align-items: flex-start; }
  .profile-hero-actions { margin-left: 0; }
  .page-sphere {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 100svh;
  }
  .page-sphere::before,
  .page-sphere::after { display: none; }
}

@media (max-width: 520px) {
  .hero-brand { font-size: clamp(2.4rem, 13vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta, .btn, .tab { transition: none; }
  .nav-cta:hover, .btn-primary:hover, .btn-ghost:hover, .btn-danger:hover, .tab:hover {
    transform: none;
  }
  .server-card, .server-card-inner, .server-card .btn, .server-card .btn:hover {
    transform: none !important;
    will-change: auto;
  }
  .server-card--online::after,
  .status-dot.on::after {
    animation: none;
  }
  .server-card--online {
    animation: none;
  }
  .auth-card {
    animation: none;
    opacity: 1;
  }
  .auth-card::before {
    animation: none;
  }
  .auth-page .auth-card .btn-oauth:hover,
  .auth-page .auth-card .btn-primary:hover {
    transform: none;
  }
  .site-toast { animation: none; }
  .cr-tip-bubble { transition: none; }
}

.transfer-hero {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.transfer-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  pointer-events: none;
}
.transfer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 1.4rem;
}
.transfer-stat {
  padding: 1rem 1.1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glow);
}
.transfer-stat .kicker { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.transfer-stat strong { display: block; margin-top: 0.25rem; font-size: 1.35rem; font-family: Syne, sans-serif; }
.transfer-stat.frozen { border-color: rgba(224, 107, 107, 0.45); box-shadow: 0 0 16px rgba(224, 107, 107, 0.25); }
.transfer-panel { display: none; }
.transfer-panel.active { display: block; animation: workspace-in 0.22s ease; }
.transfer-grid { display: grid; gap: 1rem; max-width: 36rem; }
.loan-list { display: grid; gap: 0.75rem; }
.loan-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(15, 23, 30, 0.55);
}
.loan-card header { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.loan-card .loan-meta { color: var(--muted); font-size: 0.88rem; }
.loan-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.loan-section-title { margin: 1.1rem 0 0.55rem; font-size: 1rem; }
.loan-card.is-selected {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: var(--glow);
}
.loan-card header { align-items: center; }
.loan-select {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.loan-select input { margin-top: 0.45rem; }
.loan-av, .user-pick-av {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: rgba(139, 92, 246, 0.18);
}
.loan-av-fallback, .user-pick-av-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #ddd6fe;
}
.user-picker { position: relative; display: grid; gap: 0.45rem; }
.user-pick-q {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(8, 16, 20, 0.65);
  color: var(--ink);
  font: inherit;
}
.user-pick-list {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0; right: 0;
  z-index: 30;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(180deg, rgba(22, 12, 40, 0.98), rgba(8, 10, 18, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  max-height: 18rem;
  overflow: auto;
}
.user-pick-item {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  text-align: left; cursor: pointer;
  padding: 0.55rem 0.65rem; border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(139, 92, 246, 0.08);
  color: inherit; font: inherit;
}
.user-pick-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.18);
}
.user-pick-meta { display: grid; gap: 0.1rem; min-width: 0; }
.user-pick-meta strong { font-size: 0.95rem; }
.user-pick-meta span { color: var(--muted); font-size: 0.8rem; }
.user-pick-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem !important; }
.user-pick-chip {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(139, 92, 246, 0.1);
}
.user-pick-clear { justify-self: start; padding: 0.4rem 0.7rem; }
.loan-status {
  display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
  background: rgba(139, 92, 246, 0.16);
}
.loan-status.is-active { background: rgba(62, 224, 160, 0.16); color: #6ee7b7; }
.loan-status.is-pending { background: rgba(240, 193, 74, 0.16); color: #f0c14a; }
.loan-status.is-paid { background: rgba(147, 167, 182, 0.16); color: var(--muted); }
.loan-status.is-cancelled, .loan-status.is-rejected { background: rgba(224, 107, 107, 0.16); color: #fca5a5; }
.admin-loan-toolbar { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: end; margin-bottom: 1rem; }
.admin-loan-toolbar label { display: grid; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.admin-loan-toolbar select, .admin-loan-toolbar input {
  min-width: 10rem; padding: 0.5rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--glass-border); background: rgba(8, 16, 20, 0.65); color: var(--ink); font: inherit;
}
.admin-loan-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.transfer-gate {
  padding: 1.2rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.06);
}
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th, .tx-table td { padding: 0.65rem 0.7rem; text-align: left; border-bottom: 1px solid var(--glass-border); font-size: 0.9rem; }
.tx-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tx-amt { display: inline-flex; align-items: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0.15rem 0.5rem; border-radius: 999px; }
.tx-amt.is-pos { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.tx-amt.is-neg { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }
.tx-kind { white-space: nowrap; }
@media (max-width: 720px) {
  .transfer-stats { grid-template-columns: 1fr; }
}
