/* ==========================================================================
   ATLASSERVERS — Unified Sleek Dark Theme & Layout Engine
   ========================================================================== */

:root {
  /* Unified Sleek Dark Palette */
  --at-header-bg: #1a1e2a;
  --at-sidebar-bg: #131620;
  --at-sidebar-active: #202638;
  --at-sidebar-hover: #191e2b;
  --at-content-bg: #151822;

  /* Elevated Card & Surface Colors */
  --at-card-bg: #1f2433;
  --at-card-head: #191d2a;
  --at-card-border: #2d3548;
  --at-card-hover: #242a3c;
  --at-console-bg: #131620;

  /* Accent Colors */
  --at-blue: #38bdf8;
  --at-blue-btn: #2563eb;
  --at-blue-hover: #1d4ed8;
  --at-green: #22c55e;
  --at-green-hover: #16a34a;
  --at-red: #ef4444;
  --at-red-hover: #dc2626;
  --at-amber: #f59e0b;
  --at-gray-bar: #334155;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 24px;
}

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

body.aternos-theme {
  background-color: var(--at-content-bg);
  color: #e2e8f0;
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TOP HEADER (Exact Aternos Navigation Bar)
   ========================================================================== */
.at-header {
  background-color: var(--at-header-bg);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #23293a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.at-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.at-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.at-logo-icon {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 2.5px solid #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.at-brand-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Help Pill Button */
.at-help-pill {
  background-color: var(--at-blue-btn);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.15s ease;
}

.at-help-pill:hover {
  background-color: var(--at-blue-hover);
}

.help-question-mark {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Header Right */
.at-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.at-nav-item {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.at-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.at-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.at-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.at-username {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.at-logout-link {
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.at-logout-link:hover {
  color: var(--at-blue);
}

.at-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Mobile Sidebar Toggle Hamburger */
.at-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 0;
}

.at-mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ==========================================================================
   BODY LAYOUT: SIDEBAR + MAIN VIEW
   ========================================================================== */
.at-body-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 56px);
}

/* ==========================================================================
   LEFT SIDEBAR (Aternos Exact Style)
   ========================================================================== */
.at-sidebar {
  width: 220px;
  background-color: var(--at-sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #202636;
  transition: width 0.2s ease, transform 0.25s ease;
}

.at-sidebar.collapsed {
  width: 64px;
}

.at-sidebar.collapsed .at-box-text,
.at-sidebar.collapsed .nav-label,
.at-sidebar.collapsed .nav-arrow,
.at-sidebar.collapsed .nav-count,
.at-sidebar.collapsed .nav-warn-badge {
  display: none;
}

.at-sidebar.collapsed .at-sidebar-serverbox {
  justify-content: center;
  padding: 14px 6px;
}

.at-sidebar.collapsed .at-nav-btn {
  justify-content: center;
  padding: 12px 0;
}

/* Sidebar Top Server Box */
.at-sidebar-serverbox {
  background-color: #0f121a;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #1a1e2b;
  transition: background-color 0.15s ease;
}

.at-sidebar-serverbox:hover {
  background-color: #171b26;
}

.at-box-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.at-box-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.at-box-hash {
  font-size: 10px;
  color: #64748b;
  font-family: var(--font-mono);
}

.mini-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--at-blue);
  border-radius: 50%;
  display: inline-block;
  animation: at-spin 1s linear infinite;
}

.status-dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
}

.status-dot-offline {
  background-color: #64748b;
  box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.2);
}

.status-dot-online {
  background-color: var(--at-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: at-pulse 2s infinite;
}

@keyframes at-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes at-spin {
  to { transform: rotate(360deg); }
}

/* Sidebar Navigation Items */
.at-sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 8px 0;
}

.at-nav-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  width: 100%;
  padding: 10px 16px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.at-nav-btn:hover {
  background-color: var(--at-sidebar-hover);
  color: #ffffff;
}

.at-nav-btn.active {
  background-color: var(--at-sidebar-active);
  color: #ffffff;
  font-weight: 700;
}

.at-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--at-blue);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  margin-right: 12px;
  color: inherit;
  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  white-space: nowrap;
}

.nav-arrow {
  color: #475569;
  font-size: 16px;
  font-weight: 700;
}

.nav-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 10px;
  color: #e2e8f0;
}

.nav-badge {
  font-size: 8px;
  color: var(--at-green);
  margin-left: 4px;
}

.nav-warn-badge {
  font-size: 11px;
}

/* Sidebar Footer */
.at-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid #1a1e2b;
  background: #0f121a;
}

.at-footer-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.at-footer-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   MAIN CONTENT AREA (Sleek Dark Unified Background)
   ========================================================================== */
.at-main-content {
  flex: 1;
  padding: 32px 36px 60px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.at-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--at-blue);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.at-tab-panel {
  display: none;
}

.at-tab-panel.active {
  display: block;
  animation: at-fadeIn 0.2s ease-out;
}

@keyframes at-fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   THE SIGNATURE ATERNOS SERVER CARD (Elevated Dark Theme)
   ========================================================================== */
.at-server-card {
  background-color: var(--at-card-bg);
  border: 1px solid var(--at-card-border);
  border-radius: var(--radius-md);
  padding: 24px 28px 28px;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Top Row: Domain & Edit Button */
.at-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.at-server-domain {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-align: center;
  word-break: break-all;
}

.at-edit-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2a3144;
  border: 1px solid #3b455c;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.at-edit-btn:hover {
  background-color: var(--at-blue-btn);
  color: #ffffff;
}

/* Connect Button Row */
.at-connect-row {
  display: flex;
  justify-content: center;
}

.at-connect-btn {
  background-color: #2a3144;
  border: 1px solid #3b455c;
  color: #cbd5e1;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.at-connect-btn:hover {
  background-color: var(--at-blue-btn);
  color: #ffffff;
}

/* Full Width Status Bar */
.at-status-bar-wrap {
  width: 100%;
}

.at-status-bar {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.at-status-icon {
  font-size: 14px;
}

/* Status Bar States */
.at-bar-stopped {
  background-color: #2d3546;
  color: #cbd5e1;
  border: 1px solid #3b455c;
}

.at-bar-starting,
.at-bar-stopping {
  background-color: #2d3546;
  color: #ffffff;
  border: 1px solid #3b455c;
}

.at-bar-ready {
  background-color: var(--at-green);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35);
}

/* Mini Console Strip */
.at-mini-console {
  background-color: var(--at-console-bg);
  border: 1px solid #262c3e;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-prompt {
  color: var(--at-blue);
  font-weight: 700;
  flex-shrink: 0;
}

.console-live-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Giant Central Action Buttons */
.at-action-deck {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 0 6px;
}

.at-btn-hero {
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 44px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  min-width: 150px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.at-btn-hero:active {
  transform: scale(0.98);
}

.at-btn-start {
  background-color: var(--at-green);
}
.at-btn-start:hover {
  background-color: var(--at-green-hover);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.45);
}

.at-btn-stop {
  background-color: var(--at-red);
}
.at-btn-stop:hover {
  background-color: var(--at-red-hover);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.at-btn-restart {
  background-color: #2a3144;
  border: 1px solid #3b455c;
  padding: 14px 28px;
  font-size: 16px;
}
.at-btn-restart:hover {
  background-color: #38425b;
}

.at-btn-loading {
  background-color: #334155;
  cursor: not-allowed;
  opacity: 0.9;
}

.at-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: at-spin 1s linear infinite;
}

/* Modpack Startup Stage Meter */
.at-progress-box {
  background: #181c28;
  border: 1px solid #293144;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.at-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.at-progress-track {
  width: 100%;
  height: 8px;
  background-color: #0f121a;
  border-radius: 4px;
  overflow: hidden;
}

.at-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--at-blue), #2ecc71);
  width: 20%;
  transition: width 0.8s ease;
}

.at-progress-note {
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   SUBCARDS: ADDRESS & SOFTWARE (Clean & Unified)
   ========================================================================== */
.at-subcards-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.at-subcard {
  background-color: var(--at-card-bg);
  border: 1px solid var(--at-card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.at-subcard-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  color: #ffffff;
  border-bottom-right-radius: var(--radius-sm);
}

.at-badge-blue {
  background-color: var(--at-blue-btn);
}

.at-subcard-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 14px 20px;
}

.at-subcard-value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
}

.at-subcard-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  transition: background 0.15s ease;
}

.at-btn-copy {
  background-color: var(--at-blue-btn);
}
.at-btn-copy:hover {
  background-color: var(--at-blue-hover);
}

/* ==========================================================================
   PROMO / GUIDE BANNER (Exact Match, Unified Dark)
   ========================================================================== */
.at-promo-banner {
  background-color: #1a1e2a;
  border: 1px solid #2b3346;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.at-promo-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.at-promo-btn {
  background-color: #74a9f8;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.at-promo-btn:hover {
  background-color: #92bdfb;
  transform: translateX(2px);
}

/* ==========================================================================
   GENERIC PANEL CARDS (Console, Options, Players, Help, etc.)
   ========================================================================== */
.at-panel-card {
  background-color: var(--at-card-bg);
  border: 1px solid var(--at-card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #e2e8f0;
}

.console-panel-card {
  background-color: #131620;
  border: 1px solid #232938;
  padding: 16px;
}

.at-section-heading {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.at-section-desc {
  font-size: 13px;
  color: #94a3b8;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2d3548;
  padding-bottom: 14px;
}

.at-pill-tag {
  background-color: var(--at-blue-btn);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* Terminal Console View */
.console-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #242a3a;
}

.console-dot-group {
  display: flex;
  gap: 6px;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ctrl-dot.red { background: #ef4444; }
.ctrl-dot.yellow { background: #f59e0b; }
.ctrl-dot.green { background: #22c55e; }

.console-name-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.console-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.at-input-search {
  background: #1e2433;
  border: 1px solid #333d54;
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  width: 220px;
}

.at-input-search:focus {
  outline: none;
  border-color: var(--at-blue);
}

.btn-ctrl {
  background: #2a3144;
  border: 1px solid #3b455c;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-ctrl:hover {
  background: var(--at-blue-btn);
}

.at-terminal-screen {
  background: #0b0e14;
  border: 1px solid #1a202c;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Options & Software Grids */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-tile {
  background: #181c28;
  border: 1px solid #2b3346;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.opt-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.opt-val {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: #2a3144;
  color: #cbd5e1;
}

.opt-val.badge-green {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.opt-val.badge-blue {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.software-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #181c28;
  border: 1px solid #283042;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.spec-row .lbl {
  color: #94a3b8;
  font-weight: 500;
}

.spec-row .val {
  color: #ffffff;
}

.software-badge-hero {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

/* How to Join Steps */
.steps-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.step-tile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px;
  background: #181c28;
  border-radius: var(--radius-sm);
  border: 1px solid #2b3346;
}

.step-badge {
  width: 32px;
  height: 32px;
  background: var(--at-blue-btn);
  color: #ffffff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-head {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.step-body {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.step-code {
  background: #0f121a;
  color: #38bdf8;
  border: 1px solid #273144;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.step-link {
  color: var(--at-blue);
  text-decoration: underline;
}

/* Share Link Box */
.share-box {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.at-input-share {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #333d54;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  background: #151822;
  color: #ffffff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: #1f2433;
  border: 1px solid #333d54;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #94a3b8;
}

.modal-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background: #2a3144;
  color: #cbd5e1;
}

.btn-danger {
  background: var(--at-red);
  color: #ffffff;
}

.btn-primary {
  background: var(--at-blue-btn);
  color: #ffffff;
}

/* Connect Modal Details */
.connect-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #151822;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px dashed #3b455c;
  cursor: pointer;
  margin-top: 10px;
}

.connect-ip-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
}

.btn-copy-chip {
  background: var(--at-blue-btn);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.connect-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  background: #181c28;
  border: 1px solid #283042;
  padding: 8px 12px;
  border-radius: 4px;
}

.detail-lbl {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.detail-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* Floating Toast Banner */
.notif-banner-container {
  position: fixed;
  top: 68px;
  right: 24px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-banner {
  background: #1a1e2a;
  border: 1px solid var(--at-blue-btn);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  animation: at-slideIn 0.3s ease;
}

@keyframes at-slideIn {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notif-banner-icon {
  font-size: 24px;
}

.notif-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
}

.notif-banner-text {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

.notif-banner-btn {
  background: var(--at-green);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
}

.notif-banner-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
}

/* Empty State Box */
.players-empty-box {
  text-align: center;
  padding: 36px 20px;
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.empty-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Backup Box */
.backup-status-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #181c28;
  border: 1px solid #283042;
  padding: 16px;
  border-radius: var(--radius-sm);
}
.status-icon {
  font-size: 28px;
}
.status-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}
.status-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVENESS (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 860px) {
  .at-mobile-toggle {
    display: flex;
  }

  .at-sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 999;
    transform: translateX(-100%);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.6);
  }

  .at-sidebar.mobile-open {
    transform: translateX(0);
  }

  .at-main-content {
    padding: 20px 16px 40px;
  }

  .at-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .at-promo-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .at-header {
    padding: 0 14px;
  }

  .at-user-info {
    display: none;
  }

  .at-server-card {
    padding: 18px 14px 20px;
  }

  .at-server-domain {
    font-size: 18px;
  }

  .at-subcard-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .at-subcard-btn {
    width: 100%;
    justify-content: center;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}
