/* ═══════════════════════════════════════════════════
   SPOGTY — Global Styles
   Font: Syne Display + DM Sans
   Theme: Deep space dark with electric blue accents
════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ──────────────────────────────── */
:root {
  --bg-0:      #060710;
  --bg-1:      #0d0f1e;
  --bg-2:      #131629;
  --bg-3:      #1a1e35;
  --bg-4:      #232840;
  --bg-5:      #2d3354;

  --accent:    #5865f2;
  --accent-h:  #4752c4;
  --accent-l:  #7983f5;
  --electric:  #00d4ff;
  --success:   #23d18b;
  --warning:   #f0b232;
  --danger:    #f04747;

  --text-0:    #ffffff;
  --text-1:    #e3e5f0;
  --text-2:    #a3aac8;
  --text-3:    #6b7299;
  --text-4:    #434866;

  --border:    rgba(255,255,255,0.06);
  --border-h:  rgba(255,255,255,0.12);
  --glow:      rgba(88,101,242,0.3);
  --glow-e:    rgba(0,212,255,0.2);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
  --shadow:     0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background:  var(--bg-0);
  color:       var(--text-1);
  line-height: 1.6;
  overflow-x:  hidden;
  min-height:  100vh;
}

/* ── Typography ─────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-0); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { color: var(--text-2); }
a  { color: var(--accent-l); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--electric); }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  position:       fixed;
  top:            0;
  left:           0;
  right:          0;
  z-index:        1000;
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        0 clamp(1rem, 5vw, 3rem);
  height:         68px;
  background:     rgba(6,7,16,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom:  1px solid var(--border);
  transition:     background var(--transition);
}

.navbar.scrolled { background: rgba(6,7,16,0.95); }

.nav-logo {
  display:     flex;
  align-items: center;
  gap:         10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size:   1.4rem;
  color:       var(--text-0) !important;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width:            36px;
  height:           36px;
  background:       linear-gradient(135deg, var(--accent), var(--electric));
  border-radius:    10px;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  font-size:        18px;
  flex-shrink:      0;
}

/* Bot avatar replaces the icon when loaded */
.nav-logo-img {
  width:         36px;
  height:        36px;
  border-radius: 10px;
  object-fit:    cover;
  flex-shrink:   0;
  display:       block;
  transition:    transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-logo:hover .nav-logo-img {
  transform:  scale(1.07);
  box-shadow: 0 0 12px var(--glow);
}

.nav-links {
  display:     flex;
  align-items: center;
  gap:         4px;
  list-style:  none;
}

.nav-links a {
  display:      block;
  padding:      6px 14px;
  border-radius: var(--radius-sm);
  color:        var(--text-2);
  font-size:    0.9rem;
  font-weight:  500;
  transition:   all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color:      var(--text-0);
  background: var(--bg-4);
}

.nav-links a.btn-accent {
  background:  var(--accent);
  color:       #fff;
  padding:     7px 18px;
  font-weight: 600;
}
.nav-links a.btn-accent:hover { background: var(--accent-h); }

.nav-links a.btn-login {
  border:      1px solid var(--border-h);
  color:       var(--text-1);
}
.nav-links a.btn-login:hover { border-color: var(--accent); color: var(--accent-l); background: var(--glow); }

/* Mobile menu toggle */
.nav-toggle {
  display:    none;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    8px;
  color:      var(--text-1);
  flex-direction: column;
  gap:        5px;
}
.nav-toggle span {
  display:    block;
  width:      24px;
  height:     2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Page Wrapper ───────────────────────────────── */
.page { padding-top: 68px; min-height: 100vh; }

/* ── Hero Section ───────────────────────────────── */
.hero {
  position:   relative;
  text-align: center;
  padding:    clamp(4rem, 12vw, 10rem) clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem);
  overflow:   hidden;
}

.hero-bg {
  position:    absolute;
  inset:       0;
  pointer-events: none;
  overflow:    hidden;
}

.hero-orb {
  position:      absolute;
  border-radius: 50%;
  filter:        blur(80px);
  opacity:       0.35;
  animation:     orb-drift 8s ease-in-out infinite;
}

.hero-orb-1 {
  width:  600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top:   -200px;
  left:  50%;
  transform: translateX(-50%);
}

.hero-orb-2 {
  width:  400px;
  height: 400px;
  background: radial-gradient(circle, var(--electric) 0%, transparent 70%);
  top:   30%;
  right: -100px;
  animation-delay: -3s;
  animation-duration: 11s;
}

.hero-orb-3 {
  width:  300px;
  height: 300px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  bottom: -100px;
  left:   -50px;
  animation-delay: -6s;
  animation-duration: 9s;
}

@keyframes orb-drift {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  background:      rgba(88,101,242,0.15);
  border:          1px solid rgba(88,101,242,0.3);
  border-radius:   99px;
  padding:         6px 16px;
  font-size:       0.82rem;
  font-weight:     600;
  color:           var(--accent-l);
  margin-bottom:   24px;
  letter-spacing:  0.04em;
  text-transform:  uppercase;
}

.hero h1 {
  position:    relative;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background:          linear-gradient(135deg, var(--accent-l) 0%, var(--electric) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip:     text;
}

.hero-desc {
  font-size:    clamp(1rem, 2vw, 1.2rem);
  max-width:    560px;
  margin:       0 auto 40px;
  color:        var(--text-2);
}

.hero-cta {
  display:         flex;
  gap:             16px;
  justify-content: center;
  flex-wrap:       wrap;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  padding:       12px 28px;
  border-radius: var(--radius);
  font-family:   var(--font-display);
  font-weight:   600;
  font-size:     0.95rem;
  cursor:        pointer;
  border:        none;
  transition:    all var(--transition);
  text-decoration: none;
  line-height:   1;
}

.btn-primary {
  background:  linear-gradient(135deg, var(--accent), var(--accent-h));
  color:       #fff;
  box-shadow:  0 4px 20px rgba(88,101,242,0.4);
}
.btn-primary:hover {
  transform:   translateY(-2px);
  box-shadow:  0 8px 30px rgba(88,101,242,0.6);
  color:       #fff;
}

.btn-secondary {
  background:  rgba(255,255,255,0.06);
  color:       var(--text-1);
  border:      1px solid var(--border-h);
}
.btn-secondary:hover {
  background:  rgba(255,255,255,0.1);
  border-color: var(--accent);
  color:       var(--text-0);
  transform:   translateY(-2px);
}

.btn-electric {
  background:  linear-gradient(135deg, #00b4d8, #0077b6);
  color:       #fff;
  box-shadow:  0 4px 20px rgba(0,180,216,0.4);
}
.btn-electric:hover {
  transform:  translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.6);
  color:      #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ── Section ────────────────────────────────────── */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 3rem);
  max-width: 1200px;
  margin:   0 auto;
}

.section-title {
  text-align:    center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-title h2 { margin-bottom: 12px; }
.section-title p   { max-width: 520px; margin: 0 auto; }

.section-label {
  display:        inline-block;
  font-size:      0.75rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--accent-l);
  margin-bottom:  10px;
}

/* ── Card ───────────────────────────────────────── */
.card {
  background:    var(--bg-2);
  border:        1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:       clamp(1.5rem, 3vw, 2rem);
  transition:    all var(--transition);
}

.card:hover {
  border-color:  var(--border-h);
  transform:     translateY(-3px);
  box-shadow:    var(--shadow-lg), 0 0 40px var(--glow);
}

.card-icon {
  width:           52px;
  height:          52px;
  border-radius:   var(--radius);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       24px;
  margin-bottom:   16px;
}

/* ── Grid Layouts ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }

/* ── Stats Bar ──────────────────────────────────── */
.stats-bar {
  display:         flex;
  justify-content: center;
  gap:             clamp(1.5rem, 4vw, 4rem);
  flex-wrap:       wrap;
  padding:         clamp(1.5rem, 3vw, 2.5rem);
  background:      var(--bg-2);
  border-top:      1px solid var(--border);
  border-bottom:   1px solid var(--border);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size:   clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background:  linear-gradient(135deg, var(--text-0), var(--text-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display:     block;
}

.stat-label {
  font-size:  0.82rem;
  color:      var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Command Badge ──────────────────────────────── */
.cmd-badge {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  background:      var(--bg-3);
  border:          1px solid var(--border);
  border-radius:   var(--radius-sm);
  padding:         6px 12px;
  font-size:       0.85rem;
  font-family:     'SF Mono', 'Fira Code', monospace;
  color:           var(--text-1);
  transition:      all var(--transition);
  cursor:          default;
}

.cmd-badge:hover {
  border-color:  var(--accent);
  color:         var(--accent-l);
  background:    rgba(88,101,242,0.08);
}

/* ── Feature Row ────────────────────────────────── */
.feature-row {
  display:     flex;
  gap:         clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-content { flex: 1; }
.feature-visual   { flex: 1; }

.feature-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display:     flex;
  align-items: center;
  gap:         12px;
  color:       var(--text-2);
  font-size:   0.95rem;
}
.feature-list li::before {
  content:         '✓';
  width:           22px;
  height:          22px;
  background:      rgba(35,209,139,0.15);
  border:          1px solid rgba(35,209,139,0.3);
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       0.75rem;
  color:           var(--success);
  flex-shrink:     0;
}

/* ── Code Block ─────────────────────────────────── */
.code-block {
  background:    var(--bg-1);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       20px;
  font-family:   'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size:     0.88rem;
  color:         var(--text-1);
  overflow-x:    auto;
  line-height:   1.8;
}

.code-block .kw  { color: #c678dd; }
.code-block .str { color: #98c379; }
.code-block .num { color: #d19a66; }
.code-block .cmt { color: var(--text-4); font-style: italic; }
.code-block .fn  { color: #61afef; }

/* ── Status Indicators ──────────────────────────── */
.status-dot {
  width:         9px;
  height:        9px;
  border-radius: 50%;
  flex-shrink:   0;
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.idle    { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
.status-dot.offline { background: var(--text-4); }
.status-dot.error   { background: var(--danger);  box-shadow: 0 0 6px var(--danger);  }

.status-badge {
  display:      inline-flex;
  align-items:  center;
  gap:          8px;
  padding:      4px 12px;
  border-radius: 99px;
  font-size:    0.8rem;
  font-weight:  600;
}
.status-badge.online  { background: rgba(35,209,139,0.12); color: var(--success); border: 1px solid rgba(35,209,139,0.25); }
.status-badge.offline { background: rgba(240,71,71,0.12);  color: var(--danger);  border: 1px solid rgba(240,71,71,0.25);  }

/* ── Table ──────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

table {
  width:           100%;
  border-collapse: collapse;
  font-size:       0.9rem;
}

thead th {
  background:    var(--bg-3);
  color:         var(--text-3);
  font-size:     0.75rem;
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding:       12px 16px;
  text-align:    left;
}

tbody td {
  padding:       12px 16px;
  border-bottom: 1px solid var(--border);
  color:         var(--text-1);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td      { background: rgba(255,255,255,0.02); }

/* ── Footer ─────────────────────────────────────── */
.footer {
  background:   var(--bg-1);
  border-top:   1px solid var(--border);
  padding:      clamp(2.5rem, 6vw, 4rem) clamp(1rem, 5vw, 3rem) 1.5rem;
  margin-top:   auto;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap:                   clamp(2rem, 5vw, 4rem);
  max-width:             1200px;
  margin:                0 auto 3rem;
}

.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 260px; }

.footer-col h4 {
  font-size:     0.78rem;
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:         var(--text-3);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-3); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text-0); }

.footer-bottom {
  display:        flex;
  justify-content: space-between;
  align-items:    center;
  padding-top:    1.5rem;
  border-top:     1px solid var(--border);
  max-width:      1200px;
  margin:         0 auto;
  flex-wrap:      wrap;
  gap:            12px;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-4); }

/* ── Tag / Category ─────────────────────────────── */
.tag {
  display:       inline-block;
  padding:       3px 10px;
  border-radius: 99px;
  font-size:     0.75rem;
  font-weight:   600;
}
.tag-mod     { background: rgba(240,71,71,0.15);  color: var(--danger);  }
.tag-fun     { background: rgba(240,178,50,0.15); color: var(--warning); }
.tag-ticket  { background: rgba(88,101,242,0.15); color: var(--accent-l);}
.tag-utility { background: rgba(35,209,139,0.15); color: var(--success); }

/* ── Animations ─────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow); }
  50%       { box-shadow: 0 0 0 12px transparent; }
}

.animate-fade-up { animation: fade-up 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Divider ────────────────────────────────────── */
.divider {
  width:      100%;
  height:     1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
  margin:     clamp(2rem, 5vw, 4rem) 0;
}

/* ── Alert box ──────────────────────────────────── */
.alert {
  display:        flex;
  align-items:    flex-start;
  gap:            12px;
  padding:        14px 18px;
  border-radius:  var(--radius);
  font-size:      0.9rem;
  border-left:    3px solid;
}

.alert-info    { background: rgba(88,101,242,0.1);  border-color: var(--accent);  color: var(--accent-l); }
.alert-success { background: rgba(35,209,139,0.1);  border-color: var(--success); color: var(--success); }
.alert-warning { background: rgba(240,178,50,0.1);  border-color: var(--warning); color: var(--warning); }
.alert-danger  { background: rgba(240,71,71,0.1);   border-color: var(--danger);  color: var(--danger); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(6,7,16,0.97); padding: 16px; border-bottom: 1px solid var(--border); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .stats-bar { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }
}

/* ═══════════════════════════════════════════════════
   PAGE TRANSITIONS
════════════════════════════════════════════════════ */

/* Fade-in on load */
body {
  opacity:    0;
  transition: opacity 0.35s ease;
}
body.page-loaded { opacity: 1; }

/* Fade-out on navigate */
body.page-leaving {
  opacity:    0;
  transform:  translateY(-6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Top progress bar */
#page-transition {
  position:   fixed;
  top:        0; left: 0; right: 0;
  height:     3px;
  z-index:    99999;
  pointer-events: none;
}
.pt-bar {
  height:     100%;
  width:      0%;
  background: linear-gradient(90deg, var(--accent), var(--electric));
  transition: width 0.28s ease;
  box-shadow: 0 0 8px var(--glow);
}
body.page-leaving .pt-bar { width: 100%; }
body.page-loaded  .pt-bar { width: 0%; transition: none; }

/* ═══════════════════════════════════════════════════
   NAV USER PROFILE PILL
════════════════════════════════════════════════════ */

.nav-user-pill {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       5px 10px 5px 5px;
  background:    var(--bg-3);
  border:        1px solid var(--border-h);
  border-radius: 99px;
  cursor:        pointer;
  font-family:   var(--font-body);
  font-size:     0.88rem;
  font-weight:   600;
  color:         var(--text-0);
  transition:    all var(--transition);
}
.nav-user-pill:hover { background: var(--bg-4); border-color: var(--accent); }

.nav-user-avatar {
  width:         28px;
  height:        28px;
  border-radius: 50%;
  object-fit:    cover;
  flex-shrink:   0;
}
.nav-user-name  { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-chevron { color: var(--text-4); transition: transform var(--transition); flex-shrink: 0; }
.nav-user-pill[aria-expanded="true"] .nav-user-chevron { transform: rotate(180deg); }

.nav-user-dropdown {
  position:      absolute;
  top:           calc(100% + 10px);
  right:         0;
  min-width:     180px;
  background:    var(--bg-2);
  border:        1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow:    var(--shadow-lg);
  overflow:      hidden;
  opacity:       0;
  visibility:    hidden;
  transform:     translateY(-6px);
  transition:    all 0.18s ease;
  z-index:       200;
}
.nav-user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     11px 16px;
  color:       var(--text-2) !important;
  font-size:   0.88rem;
  font-weight: 500;
  transition:  all var(--transition);
  background:  none !important;
  border-radius: 0 !important;
}
.nav-dropdown-item:hover        { background: var(--bg-3) !important; color: var(--text-0) !important; }
.nav-dropdown-item.danger:hover { background: rgba(240,71,71,0.1) !important; color: var(--danger) !important; }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Channel/role select dropdowns ─────────────────── */
.channel-select, .role-select {
  width:         100%;
  background:    var(--bg-3);
  border:        1px solid var(--border-h);
  border-radius: var(--radius-sm);
  padding:       10px 36px 10px 14px;
  color:         var(--text-0);
  font-family:   var(--font-body);
  font-size:     0.9rem;
  outline:       none;
  cursor:        pointer;
  appearance:    none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7299' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 10px center;
  background-size:     16px;
  transition:    border-color var(--transition);
}
.channel-select:focus, .role-select:focus { border-color: var(--accent); }
.channel-select option, .role-select option { background: var(--bg-3); color: var(--text-0); }

/* ── Not-in-server overlay on server cards ─────────── */
.server-card.not-in-server {
  border-color: rgba(240,71,71,0.25);
  background:   rgba(240,71,71,0.04);
  cursor:       pointer;
  text-decoration: none;
}
.server-card.not-in-server:hover {
  border-color: var(--danger);
  box-shadow:   0 0 20px rgba(240,71,71,0.15);
  transform:    translateY(-2px);
}
.not-in-server-badge {
  display:       flex;
  align-items:   center;
  gap:           6px;
  background:    rgba(240,71,71,0.1);
  border:        1px solid rgba(240,71,71,0.25);
  color:         #f47272;
  font-size:     0.72rem;
  font-weight:   600;
  padding:       3px 9px;
  border-radius: 99px;
  margin-top:    6px;
  white-space:   nowrap;
}

/* ═══════════════════════════════════════════════════
   PAGE TRANSITIONS
════════════════════════════════════════════════════ */
body { opacity: 0; transition: opacity 0.35s ease; }
body.page-loaded  { opacity: 1; }
body.page-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.28s ease, transform 0.28s ease; }

#page-transition { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 99999; pointer-events: none; }
.pt-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--electric)); transition: width 0.28s ease; box-shadow: 0 0 8px var(--glow); }
body.page-leaving .pt-bar { width: 100%; }
body.page-loaded  .pt-bar { width: 0%; transition: none; }
