* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ─── BACKGROUND ─── */
.background {
  position: fixed;
  inset: 0;
  background:
          radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255,120,0,0.18), transparent),
          radial-gradient(ellipse 60% 40% at 80% 110%, rgba(200,60,0,0.12), transparent),
          #060810;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

/* ─── MODAL (auth pages) ─── */
.modal {
  width: 520px;
  max-width: 92vw;
  background: rgba(13, 18, 30, 0.95);
  border: 1px solid rgba(255,130,0,0.18);
  border-radius: 20px;
  padding: 28px;
  z-index: 2;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,130,0,0.04);
  backdrop-filter: blur(16px);
}

.modal.auth-large {
  max-width: 560px;
  padding: 36px;
}

/* ─── BRAND ─── */
.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255,130,0,0.3);
}

.modal.auth-large .brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-right: 4px;
}

.brand h1 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

.brand p {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(255,130,0,0.3), transparent);
}

/* ─── BUTTONS ─── */
.allow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff8c00, #e65c00);
  color: #fff;
  transition: all 0.15s ease;
  box-shadow: 0 4px 14px rgba(255,130,0,0.25);
}
.allow:hover {
  background: linear-gradient(135deg, #ffa020, #ff6b00);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,130,0,0.35);
}
.allow:active { transform: translateY(0); }

.deny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  transition: all 0.15s ease;
  text-decoration: none;
}
.deny:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.14);
}

/* ─── FULL-PAGE LAYOUT ─── */
.fullpage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: rgba(8,11,20,0.98);
  margin: 0;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  z-index: 9999;
  border-radius: 0;
}

/* ─── TOPBAR — sits above main content only, not the sidebar ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(8,11,20,0.9);
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

/* ─── APP SHELL — sidebar + right column ─── */
.app-shell.full {
  display: flex;
  flex: 1;
  overflow: hidden;
  flex-direction: row;
}

/* Right column: topbar + main stacked */
.content-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* ─── SIDEBAR — full height, flush to left edge ─── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 0;
  background: rgba(10,13,22,0.98);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
  position: relative;
  z-index: 100;
}

.sidebar .brand-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: inherit;
  background: rgba(255,130,0,0.03);
  flex-shrink: 0;
}

.sidebar .brand-compact:hover {
  background: rgba(255,130,0,0.05);
}

.sidebar .brand-compact img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(255,130,0,0.3);
  flex-shrink: 0;
}

.sidebar .brand-compact .brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar .brand-compact .brand-name {
  font-weight: 800;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sidebar .brand-compact .brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: #ff8c00;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* keep old .title selector working */
.sidebar .brand-compact .title {
  font-weight: 800;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.3;
}

/* ─── NAV ITEMS — bulky, Discord-style ─── */
.sidebar nav {
  flex: 1;
  padding: 12px 10px;
}

.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: #8b949e;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.14s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar .nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  border-color: rgba(255,255,255,0.06);
}

.sidebar .nav-item.active {
  background: rgba(255,130,0,0.1);
  border-color: rgba(255,130,0,0.2);
  color: #ffaa40;
  border-left: 3px solid #ff8c00;
  padding-left: 12px;
}

.sidebar .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar .nav-item.active svg { opacity: 1; }

.sidebar .footer-note {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #4b5563;
  font-size: 12px;
}

/* ─── MAIN CONTENT ─── */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 36px;
}

/* ─── CARDS ─── */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

.card-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: #f3f4f6;
}

/* ─── PROFILE MENU (topbar) ─── */
.profile-menu {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  z-index: 10002;
}

.gravatar-img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  box-shadow: 0 0 0 0 rgba(255,130,0,0);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-menu.open .gravatar-img {
  box-shadow: 0 0 0 3px rgba(255,130,0,0.35);
}

/* ─── PROFILE DROPDOWN — Discord style ─── */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  /* No gap — padding-top creates visual space without a dead zone */
  padding-top: 10px;
  background: transparent;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform-origin: top right;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 150ms ease, transform 170ms cubic-bezier(.2,.9,.2,1), visibility 150ms;
}

/* Inner card gets the visual background */
.profile-dropdown-inner {
  background: linear-gradient(180deg, #111827 0%, #0d1423 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  min-width: 240px;
  padding: 6px;
  box-shadow: 0 16px 56px rgba(0,0,0,0.8);
}

/* Only .open class controls visibility — no CSS :hover trigger */
.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

/* Profile info at top of dropdown */
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.dropdown-user-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
}

.dropdown-user-info .user-name {
  font-weight: 700;
  font-size: 14px;
  color: #f3f4f6;
}

.dropdown-user-info .user-email {
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
}

.dropdown-sep {
  height: 1px;
  margin: 6px 8px;
  background: rgba(255,255,255,0.06);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.12s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

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

.dropdown-link.danger {
  color: #f87171;
}

.dropdown-link.danger:hover {
  background: rgba(248,113,113,0.08);
  color: #ff8080;
}

.dropdown-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── INPUTS ─── */
input, textarea, select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: #f3f4f6;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(255,130,0,0.4);
  box-shadow: 0 0 0 3px rgba(255,130,0,0.08);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── ALERTS ─── */
.error {
  color: #fca5a5;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

.success {
  color: #6ee7b7;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ─── ACTIONS ROW ─── */
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ─── HELPER CLASSES ─── */
.muted { font-size: 12px; color: #6b7280; }
.small-muted { font-size: 12px; color: #6b7280; }
.footer-note { color: #4b5563; font-size: 12px; margin-top: 12px; }
.logout { color: #ff9a3d; text-decoration: none; font-weight: 600; transition: color 0.15s; }
.logout:hover { color: #ffb15e; }
.verified {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,130,0,0.1);
  border: 1px solid rgba(255,130,0,0.3);
  color: #ffaa40;
}
.required-star { color: #f87171; margin-left: 4px; }

/* ─── APPLICATION GRID ─── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.app-card-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(.2,.8,.2,1);
  text-decoration: none;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.app-card-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,130,0,0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.app-card-tile:hover {
  border-color: rgba(255,130,0,0.3);
  background: rgba(255,130,0,0.04);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.app-card-tile:hover::before { opacity: 1; }

.app-card-tile .app-thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.18s ease;
}

.app-card-tile:hover .app-thumb {
  transform: scale(1.05);
}

.app-card-tile .app-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* ─── APP DETAIL PAGE ─── */
.app-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.app-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(255,130,0,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.app-detail-icon:hover {
  border-color: rgba(255,130,0,0.6);
}

.app-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
}

.app-detail-id {
  font-size: 12px;
  color: #4b5563;
  font-family: monospace;
  margin-top: 4px;
}

/* Token/secret display box */
.token-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #94a3b8;
}

.token-box .token-val {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-box button {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

/* ─── SCOPES / PERMISSIONS ─── */
.scope-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perm {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.15s ease;
}

.perm:hover { border-color: rgba(255,130,0,0.2); }

.perm.no-hover {
  background: transparent;
  border: none;
  cursor: default;
  padding: 0;
}
.perm.no-hover:hover { transform: none; border: none; background: transparent; }

.perm strong { display: block; font-size: 13px; color: #f3f4f6; }
.perm span { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

/* ─── SECTION HEADING ─── */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
}

/* ─── ACCOUNT SETTINGS ─── */
.settings-section {
  margin-bottom: 24px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 8px;
}

.settings-row-label { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.settings-row-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.3);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: rgba(239,68,68,0.06);
  color: #f87171;
  transition: all 0.15s ease;
}
.danger-btn:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.5);
}

/* 2FA toggle */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: 0.2s ease;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #9ca3af;
  border-radius: 50%;
  transition: 0.2s ease;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(255,130,0,0.6); }
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: #ff8c00;
}

/* ─── APP card on dashboard ─── */
.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}
.app-card:hover {
  border-color: rgba(255,130,0,0.25);
  background: rgba(255,130,0,0.03);
}

/* ─── ANIMATIONS ─── */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.shake { animation: shake 500ms ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.25s ease; }

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.15s ease;
}
.back-link:hover { color: #ffaa40; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .modal { width: 94vw; }
  .sidebar { width: 200px; }
  .main { padding: 18px 20px; }
}
@media (max-width: 680px) {
  .sidebar { display: none; }
  .main { padding: 16px; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── Auth subtitle spacing ── */
.auth-subtitle {
  margin-top: 22px;
  padding-top: 4px;
}

.auth-subtitle .welcome {
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

/* ── Auth page background ── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060810;
}

/* Deep base gradient - rich dark blue/navy */
.auth-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 20, 80, 0.9), transparent 60%),
          radial-gradient(ellipse 80% 60% at -10% 60%, rgba(60, 10, 10, 0.7), transparent 55%),
          radial-gradient(ellipse 70% 50% at 110% 80%, rgba(20, 40, 90, 0.6), transparent 55%),
          radial-gradient(ellipse 60% 40% at 50% 110%, rgba(120, 40, 0, 0.4), transparent 50%),
          linear-gradient(160deg, #08061a 0%, #0a0510 40%, #120608 70%, #060810 100%);
}

/* Animated glowing orbs */
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(ellipse 40% 30% at 15% 25%, rgba(255, 100, 0, 0.12), transparent),
          radial-gradient(ellipse 35% 25% at 85% 20%, rgba(100, 50, 255, 0.1), transparent),
          radial-gradient(ellipse 30% 20% at 70% 75%, rgba(255, 80, 0, 0.1), transparent),
          radial-gradient(ellipse 25% 20% at 25% 80%, rgba(50, 80, 200, 0.08), transparent);
  animation: authBgShift 12s ease-in-out infinite alternate;
}

@keyframes authBgShift {
  0%   { opacity: 0.7; transform: scale(1) translateY(0); }
  50%  { opacity: 1;   transform: scale(1.04) translateY(-8px); }
  100% { opacity: 0.8; transform: scale(1.02) translateY(4px); }
}

/* Floating particles / grid lines */
.auth-bg .auth-grid {
  position: absolute;
  inset: 0;
  background-image:
          linear-gradient(rgba(255,130,0,0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255,130,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Glowing dots */
.auth-bg .auth-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.12) 0%, transparent 70%);
  animation: floatOrb1 10s ease-in-out infinite;
  pointer-events: none;
}

.auth-bg .auth-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  bottom: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(80, 60, 220, 0.1) 0%, transparent 70%);
  animation: floatOrb2 14s ease-in-out infinite;
  pointer-events: none;
}

.auth-bg .auth-glow-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(255, 60, 0, 0.08) 0%, transparent 70%);
  animation: floatOrb3 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, 20px) scale(1.05); }
  66%       { transform: translate(-15px, 35px) scale(0.97); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-25px, -30px) scale(1.06); }
  70%       { transform: translate(20px, -10px) scale(0.96); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50%       { transform: translate(-20px, 15px) scale(1.08); opacity: 1; }
}

/* Noise texture overlay for depth */
.auth-bg .auth-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Dark overlay to keep modal readable */
.auth-bg .auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Remove the old body::before overlay on auth pages */
body.auth-page::before { display: none; }
body.auth-page .background { display: none; }
body.auth-page {
  align-items: center;
  justify-content: center;
}
/* ═══════════════════════════════════════════════════════════════
   Toast notification system
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
  max-width: 400px;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.toast-success {
  background: #0f1e14;
  border: 1px solid rgba(34,197,94,0.3);
}
.toast-success::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1.5px solid rgba(34,197,94,0.5);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.toast-error {
  background: #1e0f0f;
  border: 1px solid rgba(239,68,68,0.3);
}
.toast-error::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239,68,68,0.1);
  border: 1.5px solid rgba(239,68,68,0.4);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.toast-info {
  background: #0f1420;
  border: 1px solid rgba(99,102,241,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   Auth app cards in authorisations page
   ═══════════════════════════════════════════════════════════════ */
.auth-app-card:hover {
  border-color: rgba(255,140,0,0.2) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Spinner
   ═══════════════════════════════════════════════════════════════ */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255,140,0,0.15);
  border-top-color: #ff8c00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   Register page Minecraft link step
   ═══════════════════════════════════════════════════════════════ */
#linkCodeDisplay {
  user-select: all;
}
