/* ==========================================================================
   2112 MINECRAFT PORTAL - COMPLETE STYLESHEET WITH SOCIAL BLOG FEED
   ========================================================================== */

:root {
  /* DARK MODE (Soft Deepslate / Bedrock Obsidian Slate - not pitch black) */
  --bg-core: #131822;
  --bg-surface: rgba(22, 30, 44, 0.88);
  --bg-surface-elevated: rgba(28, 38, 56, 0.96);
  --bg-surface-glass: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --border-accent: rgba(34, 197, 94, 0.40);
  
  --text-main: #f8fafc;
  --text-muted: #9bb0c9;
  --text-dim: #6d8199;
  
  --accent-emerald: #22c55e;
  --accent-emerald-glow: rgba(34, 197, 94, 0.30);
  --accent-emerald-light: #4ade80;
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-gold: #fbbf24;
  --accent-purple: #c084fc;
  --accent-rose: #f43f5e;
  
  --shadow-float: 0 16px 36px -10px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.20);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* LIGHT MODE OVERRIDES (Smooth Cobblestone / Warm Slate - not blinding white) */
[data-theme="light"] {
  --bg-core: #cfd7e3;
  --bg-surface: rgba(238, 242, 248, 0.92);
  --bg-surface-elevated: rgba(246, 249, 253, 0.98);
  --bg-surface-glass: rgba(0, 0, 0, 0.04);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.24);
  --border-accent: rgba(16, 149, 93, 0.60);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #556882;
  
  --accent-emerald: #15803d;
  --accent-emerald-glow: rgba(21, 128, 61, 0.22);
  --accent-emerald-light: #16a34a;
  --accent-cyan: #0369a1;
  --accent-cyan-glow: rgba(3, 105, 161, 0.20);
  --accent-gold: #b45309;
  
  --shadow-float: 0 16px 36px -10px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  --shadow-glow: 0 0 30px rgba(21, 128, 61, 0.14);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-core);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Backdrops */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.6;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-emerald-glow) 0%, var(--accent-cyan-glow) 60%, transparent 80%);
}

.glow-bottom {
  bottom: -150px;
  right: -100px;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
}

.grid-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }
.text-accent { color: var(--accent-emerald); }
.mt-36 { margin-top: 36px; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   FLOATING SPACIOUS HEADER
   ========================================================================== */

.float-header {
  position: sticky;
  top: 18px;
  z-index: 1000;
  margin-bottom: 24px;
}

.header-container {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.header-container:hover {
  border-color: var(--border-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand-title .highlight {
  color: var(--accent-emerald);
}

/* Nav Menu Tabs */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-glass);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: var(--accent-emerald);
  box-shadow: 0 4px 18px var(--accent-emerald-glow);
}

.lock-indicator {
  font-size: 11px;
  opacity: 0.7;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-create-lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 22px var(--accent-emerald-glow);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-emerald), #047857);
  color: #ffffff !important;
  box-shadow: 0 6px 20px var(--accent-emerald-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-emerald-glow);
}

.btn-outline {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-auth {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}

.btn-auth:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-elevated);
}

/* User Menu & Dropdown */
.user-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-main);
  font-family: inherit;
  transition: var(--transition-smooth);
}

.user-badge:hover,
.user-badge.menu-open {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
}

.user-avatar {
  font-size: 17px;
  line-height: 1;
}

.user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.2px;
}

.dropdown-arrow {
  font-size: 8px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  display: inline-block;
  margin-left: 2px;
}

.user-badge.menu-open .dropdown-arrow,
.btn-menu-trigger.menu-open .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

.btn-menu-trigger {
  width: 34px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-menu-trigger:hover,
.btn-menu-trigger.menu-open {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
  transform-origin: top right;
  animation: dropdownPop 0.18s ease-out;
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.header-dropdown-menu.open {
  display: flex;
}

.dropdown-header {
  padding: 8px 10px 6px;
}

.dropdown-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-user-role {
  font-size: 11px;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

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

[data-theme="light"] .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

.dropdown-item-icon {
  font-size: 14px;
  line-height: 1;
}

.dropdown-item-label {
  flex: 1;
}

.dropdown-item-status {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
}

.mobile-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* ==========================================================================
   TAB PANE SYSTEM
   ========================================================================== */

.tab-pane {
  display: none;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 0 30px;
}

.tab-pane.active {
  display: block;
}

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

/* Section Titles */
.section-intro {
  margin-bottom: 36px;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 15px;
}

.pill-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-emerald);
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   TAB 1: HOME PAGE (SINGLE BIG CONNECT CARD)
   ========================================================================== */

.home-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.home-packs-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.horizontal-card {
  background: var(--bg-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  box-shadow: var(--shadow-float);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.horizontal-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-float), var(--shadow-glow);
}

.connect-hero-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--accent-emerald);
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.edition-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.connect-main-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.connect-title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.connect-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 960px;
}

.connect-input-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.address-details {
  display: flex;
  align-items: center;
  gap: 24px;
}

.addr-block {
  display: flex;
  flex-direction: column;
}

.addr-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-emerald);
}

.addr-ip {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.addr-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}

.addr-port {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.btn-primary-connect {
  background: linear-gradient(135deg, var(--accent-emerald), #047857);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-emerald-glow);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary-connect:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 28px var(--accent-emerald-glow);
}

.card-bottom-platforms {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-glass);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.platform-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.platform-btn:active {
  transform: translateY(0);
}

.platform-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.device-svg-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.logo-xbox {
  color: #107c10;
}

.logo-ps {
  color: #0070d1;
}

.logo-switch {
  color: #e60012;
}

/* Device Help Popup Modal */
.device-help-modal {
  max-width: 480px;
  width: 90%;
}

.device-help-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.device-help-icon {
  font-size: 32px;
  line-height: 1;
  background: var(--bg-surface-glass);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.device-help-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.device-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface-glass);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

.device-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.device-step-text {
  flex: 1;
}

.device-step-text code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
  font-size: 12px;
}

.device-help-note {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.card-bottom-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-glass);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.s-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   TAB 2: SOCIAL BLOG FEED STREAM (BIG LEFT BUTTON, INLINE READ MORE)
   ========================================================================== */

.feed-header-left-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.feed-title-minimal h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
}

.social-feed-stream {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.feed-empty-state {
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feed-empty-state .empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.feed-empty-state .empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.feed-empty-state .empty-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 4px;
}

/* ==========================================
   1. MINIMIZED CARD (Strictly Minimal Info)
   ========================================== */
.feed-image-card.mini-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.feed-image-card.mini-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
}

.mini-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.mini-user-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}

.mini-user-name {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.mini-date-stamp {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.feed-image-card.mini-card:hover .mini-user-name {
  border-color: var(--border-accent);
  background: var(--bg-surface-glass);
}

.mini-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  text-align: center;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 2px 0 0 0;
}

.feed-image-card.mini-card:hover .mini-card-title {
  color: var(--accent-emerald);
}

.mini-image-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #030508;
}

.mini-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.feed-image-card.mini-card:hover .mini-main-img {
  transform: scale(1.05);
}

.mini-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.mini-reactions-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-height: 22px;
}

.mini-reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}

.mini-reaction-badge.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.mini-no-reactions {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
}

.mini-comments-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ==========================================
   2. EXPANDED CARD (50/50 Split Showcase)
   ========================================== */
.feed-image-card.expanded {
  grid-column: 1 / -1;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-float), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: expandFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes expandFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feed-expanded-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 850px) {
  .feed-expanded-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* LEFT HALF: Main Image & Attached Gallery */
.feed-expanded-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expanded-main-image-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background-color: #030508;
}

.expanded-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.expanded-main-image-wrap:hover .expanded-main-img {
  transform: scale(1.03);
}

.expanded-img-hover-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.expanded-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expanded-gallery-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
}

.expanded-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.expanded-gallery-item {
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.expanded-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.expanded-gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-zoom-icon {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.expanded-gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
}

/* RIGHT HALF: Text, Options, Reactions, Comments */
.feed-expanded-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Header bar */
.expanded-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.expanded-header-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.player-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.expanded-title-pane {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.expanded-post-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
}

.expanded-sub-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.feed-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
}

.creator-sub-line .feed-author {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.feed-dot {
  opacity: 0.5;
}

.feed-date {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.feed-coords-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-emerald-light);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.feed-category-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.post-cat-tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cat-builds { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.25); }
.cat-update { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid var(--border-accent); }
.cat-addons { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.25); }
.cat-events { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.25); }
.cat-guides { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.25); }

.role-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.role-owner { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.role-operator { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid var(--border-accent); }
.role-builder { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.role-member { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }

.expanded-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-edit-post {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.btn-edit-post:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-delete-post {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-delete-post:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ef4444;
}

.btn-delete-post.confirming {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  padding: 4px 14px !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
  animation: deletePillPulse 1.2s infinite ease-in-out;
}

.btn-delete-post.confirming:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

@keyframes deletePillPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 18px 3px rgba(239, 68, 68, 0.7);
  }
}

.btn-close-expansion {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-close-expansion:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* Story Pane */
.expanded-story-pane {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.story-body {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
}

.story-body p {
  margin-bottom: 8px;
}

.story-body h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 10px 0 4px;
  color: var(--text-main);
}

.story-body ul {
  margin: 6px 0 10px 18px;
  color: var(--text-muted);
}

/* Reaction Toolbar */
.expanded-reaction-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.full-reactions-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reaction-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.reaction-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Comments Box */
.expanded-comments-box {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-section-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.comment-avatar {
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-body {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.comment-user {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 12px;
}

.comment-time {
  font-size: 10px;
  color: var(--text-dim);
}

.comment-text {
  color: var(--text-main);
  line-height: 1.4;
  font-size: 13px;
}

.comment-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.comment-input-row input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-main);
  flex: 1 1 150px;
  outline: none;
}

.comment-input-row button {
  flex: 1 1 auto;
}

.comment-input-row input:focus {
  border-color: var(--accent-emerald);
}

/* Drawer Collapse Bar */
.drawer-collapse-bar {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.btn-collapse-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-collapse-drawer:hover {
  border-color: var(--accent-emerald);
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

/* Lightbox Modal */
.lightbox-modal-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-3d-container {
  width: min(92vw, 92vh);
  height: min(92vw, 92vh);
  aspect-ratio: 1 / 1;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #78a7ff 0%, #a2c2fe 55%, #c8dcff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-3d-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
}

.lightbox-3d-container canvas:active {
  cursor: grabbing;
}

.viewer-3d-hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 16px;
}

.viewer-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: auto;
}

.btn-reset-3d {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition-smooth);
}

.btn-reset-3d:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.badge-3d-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.lightbox-close-btn {
  position: absolute;
  top: -36px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Post Modal Preset Buttons */
.preset-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.preset-hint {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-preset {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-preset:hover {
  border-color: var(--accent-emerald);
  color: var(--text-main);
}

/* ==========================================================================
   AUTH GATES (TIMELINE & INFO)
   ========================================================================== */

.auth-gate-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  max-width: 680px;
  margin: 40px auto;
  box-shadow: var(--shadow-card);
}

.gate-lock-symbol {
  font-size: 56px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 16px var(--accent-emerald-glow));
}

.auth-gate-card h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 14px;
}

.gate-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ==========================================================================
   TAB 3: TIMELINE (UNLOCKED)
   ========================================================================== */

.playtime-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

@media (max-width: 860px) {
  .playtime-summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  white-space: nowrap;
}

.metric-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Minecraft Bedrock Realm Weekly Activity Matrix */
.realms-matrix-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

.realms-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.realms-matrix-title-group h3 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
}

.week-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-week-nav {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}

.btn-week-nav:hover:not(:disabled) {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.btn-week-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.current-week-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.realms-matrix-subbar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.realms-matrix-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 13px;
}

.realms-matrix-table th {
  text-align: center;
  padding: 6px 2px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.realms-matrix-table th.col-player {
  text-align: left;
  width: 17%;
}

.realms-matrix-table th.col-day {
  text-align: center;
  width: 10.5%;
}

.realms-matrix-table th.col-total {
  text-align: right;
  width: 9.5%;
}

.matrix-day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.day-name {
  font-size: 11px;
  color: var(--text-muted);
}

.day-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.matrix-day-header.is-today .day-num {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid var(--border-accent);
}

.realms-matrix-table td {
  padding: 3px 1px;
  vertical-align: middle;
}

.matrix-player-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.player-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.matrix-player-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Timeline Track Cell & Slot */
.matrix-track-cell {
  text-align: center;
  padding: 3px 1px;
}

.matrix-track-slot {
  position: relative;
  height: 32px;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

[data-theme="light"] .matrix-track-slot {
  background: rgba(0, 0, 0, 0.04);
}

.matrix-track-slot:hover {
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.5);
}

/* Horizontal Relative Session Bar */
.matrix-session-bar {
  position: absolute;
  height: 20px;
  top: 5px;
  background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.matrix-session-bar:hover {
  transform: translateY(-2px) scaleY(1.1);
  filter: brightness(1.25);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  z-index: 10;
}

.session-bar-text {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.track-empty-dot {
  color: var(--text-dim);
  opacity: 0.25;
  font-size: 13px;
  font-weight: 700;
}

.matrix-total-cell {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  color: var(--accent-emerald);
  white-space: nowrap;
}

.table-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.table-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.table-responsive {
  overflow-x: auto;
}

.telemetry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.telemetry-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.telemetry-table tr:hover td {
  background: var(--bg-surface-glass);
}

.timeline-stream-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.timeline-stream-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}

.timeline-stream {
  position: relative;
  padding-left: 32px;
}

.timeline-stream::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-strong);
}

.stream-event {
  position: relative;
  margin-bottom: 28px;
}

.stream-event:last-child {
  margin-bottom: 0;
}

.stream-node {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 3px solid var(--bg-core);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
}

.stream-body {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.stream-time {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.stream-heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stream-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   TAB 4: COLLAPSIBLE PACKS HIERARCHY
   ========================================================================== */

.collapsible-pack-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.collapsible-pack-panel:hover {
  border-color: var(--border-strong);
}

.collapsible-panel-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface-glass);
  border: none;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-smooth);
  text-align: left;
}

.collapsible-panel-header:hover {
  background: var(--bg-surface-elevated);
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collapse-chevron {
  font-size: 13px;
  color: var(--accent-emerald);
  transition: transform 0.25s ease;
  display: inline-block;
}

.collapsible-pack-panel.open .collapse-chevron {
  transform: rotate(90deg);
}

.panel-header-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.collapsible-panel-content {
  display: none;
  border-top: 1px solid var(--border-subtle);
  padding: 12px 18px 20px;
  animation: fadeIn 0.3s ease;
}

.collapsible-pack-panel.open .collapsible-panel-content {
  display: block;
}

.badge-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.badge-type.rp { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.badge-type.bp { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); }

.dense-file-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-surface-glass);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mt-20 {
  margin-top: 20px;
}

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

.dense-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-subtle);
}

.dense-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.dense-table tr:hover td {
  background: var(--bg-surface-glass);
}

.pack-icon-square {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.pack-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  display: block;
}

.pri-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-emerald);
}

.pack-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pack-name-cell strong {
  font-size: 13px;
  color: var(--text-main);
}

.pack-name-cell small {
  font-size: 11px;
  color: var(--text-muted);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-elevated);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: inline-block;
}

.uuid-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   BOTTOM LIVE TELEMETRY BAR
   ========================================================================== */

.bottom-telemetry-section {
  padding: 24px 0 0;
  position: relative;
  z-index: 10;
}

.telemetry-bar-card {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 32px;
  box-shadow: var(--shadow-float);
}

.telemetry-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.t-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-emerald);
}

.t-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.t-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.backup-timestamps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.backup-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.backup-pill-link {
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.backup-pill-link:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.btn-mod-download {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent-cyan);
  transition: all var(--transition-fast);
}

.btn-mod-download:hover {
  background: rgba(34, 211, 238, 0.25);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.float-modal-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-float);
}

.modal-wide {
  max-width: 740px;
}

.modal-close-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
}

.modal-close-icon:hover {
  color: var(--text-main);
}

.modal-header-area {
  margin-bottom: 28px;
}

.modal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}

.modal-header-area h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.input-group input,
.input-group select,
.input-group textarea {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 16px var(--accent-emerald-glow);
  background: var(--bg-surface);
}

.auth-error-msg {
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.auth-error-msg.show {
  display: block;
}

.modal-btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

/* ==========================================================================
   50/50 SPLIT EXPANDED POST CREATOR MODAL
   ========================================================================== */

.modal-expanded-creator {
  max-width: 980px;
  width: 95vw;
  padding: 28px 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-float), var(--shadow-glow);
}

.creator-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.creator-header-left h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.create-post-layout {
  gap: 28px;
}

/* Left Column: Dropzone & Gallery */
.creator-left-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.create-main-image-frame {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px dashed var(--border-strong);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.create-main-image-frame:hover,
.create-main-image-frame.dragover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.create-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.placeholder-icon {
  font-size: 42px;
  line-height: 1;
}

.placeholder-main-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.placeholder-sub-text {
  font-size: 12px;
  color: var(--text-dim);
}

.placeholder-browse-btn {
  margin-top: 6px;
  pointer-events: none;
}

.create-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.create-img-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.create-change-btn,
.create-remove-btn {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.create-change-btn:hover {
  background: var(--accent-emerald);
  color: #000;
  border-color: var(--accent-emerald);
}

.create-remove-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* Attached Gallery in Creator */
.creator-gallery-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.gallery-count-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.creator-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 8px;
}

.creator-gallery-thumb {
  height: 65px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  background: #000;
  cursor: grab;
  transition: var(--transition-smooth);
}

.creator-gallery-thumb:active {
  cursor: grabbing;
}

.creator-gallery-thumb.dragover {
  border-color: var(--accent-emerald);
  transform: scale(1.06);
  box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.creator-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.btn-make-main-item {
  position: absolute;
  top: 3px;
  left: 3px;
  background: rgba(16, 185, 129, 0.9);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition-smooth);
  z-index: 2;
}

.btn-make-main-item:hover {
  background: #fff;
  transform: scale(1.15);
}

.btn-remove-gallery-item {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition-smooth);
  z-index: 2;
}

.btn-remove-gallery-item:hover {
  background: #ef4444;
  transform: scale(1.15);
}

.creator-coords-toggle-row {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.coords-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.coords-checkbox-label input {
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.coords-toggle-text {
  user-select: none;
}

.creator-add-gallery-tile {
  height: 65px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border-subtle);
  background: var(--bg-surface-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.creator-add-gallery-tile:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.add-tile-icon {
  font-size: 14px;
}

/* Right Column: Title, Story & Actions */
.creator-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.creator-meta-bar {
  padding-bottom: 4px;
}

.creator-sub-line {
  align-items: center;
  gap: 8px;
}

.creator-field-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.creator-title-wrap {
  display: flex;
  flex-direction: column;
}

.creator-title-input {
  width: 100%;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: var(--transition-smooth);
}

.creator-title-input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  background: var(--bg-surface);
}

.creator-story-pane {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.creator-story-textarea {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
  outline: none;
  resize: vertical;
  min-height: 110px;
}

.creator-reaction-preview {
  opacity: 0.8;
  pointer-events: none;
}

.creator-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-publish-showcase {
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 10px 20px;
}

/* Toast */
.toast-capsule {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px var(--accent-emerald-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(120px);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 3000;
}

.toast-capsule.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE & MOBILE COMPACT DISPLAY SYSTEM
   ========================================================================== */

@media (max-width: 1024px) {
  .horizontal-card {
    padding: 32px 24px;
  }
  .card-bottom-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .connect-input-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .address-details {
    justify-content: space-between;
  }
  .telemetry-bar-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  body {
    padding-bottom: 24px;
  }

  .container {
    padding: 0 14px;
  }


  /* Compact Header */
  .float-header {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: var(--radius-md);
  }

  .header-container {
    padding: 10px 14px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-sub {
    display: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 66px;
    left: 8px;
    right: 8px;
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 14px;
    gap: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-float);
    z-index: 1000;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 13px;
  }

  .mobile-burger {
    display: flex;
  }

  .header-actions {
    gap: 8px;
  }

  .user-badge {
    padding: 4px 10px;
    font-size: 12px;
  }

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

  /* Compact Home Card */
  .horizontal-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
    gap: 20px;
  }

  .connect-title {
    font-size: 24px;
    letter-spacing: -0.3px;
  }

  .connect-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .connect-input-box {
    padding: 12px 14px;
    gap: 12px;
  }

  .addr-ip {
    font-size: clamp(11px, 4.5vw, 16px);
    word-break: break-all;
  }

  .address-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .port-pill {
    padding: 2px 8px;
    font-size: 11px;
  }

  .card-bottom-steps {
    padding-top: 18px;
    gap: 10px;
  }

  .step-pill {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
  }

  /* Compact Community Feed */
  .feed-header-left-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 20px;
  }

  .btn-create-lg {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
  }

  .feed-title-minimal h2 {
    font-size: 20px;
  }

  .social-feed-stream {
    gap: 24px;
  }

  .social-post-card {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    gap: 14px;
  }

  .player-avatar-box {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 8px;
  }

  .author-name {
    font-size: 14px;
  }

  .post-title {
    font-size: 18px;
  }

  .post-text-body {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .post-hero-overlay {
    height: 200px;
    padding: 16px 18px;
  }

  .overlay-heading {
    font-size: 17px;
  }

  .post-collage-2, .post-collage-3 {
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
  }

  .collage-item {
    height: 160px;
  }

  .post-collage-3 .collage-item:first-child.span-rows {
    grid-row: auto;
  }

  .post-interactions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .reactions-group {
    flex-wrap: wrap;
    gap: 6px;
  }

  .reaction-btn {
    padding: 5px 9px;
    font-size: 12px;
  }

  .comment-action-group {
    justify-content: space-between;
    width: 100%;
  }

  .comments-toggle-btn, .btn-read-more {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Compact Telemetry Bar */
  .bottom-telemetry-section {
    margin-top: 36px;
    margin-bottom: 20px;
  }

  .telemetry-bar-card {
    padding: 18px 16px;
    gap: 14px;
    border-radius: var(--radius-md);
  }

  .t-label {
    font-size: 10px;
  }

  .t-val {
    font-size: 14px;
  }

  .t-sub {
    font-size: 11px;
  }

  .backup-pill {
    font-size: 10.5px;
    padding: 2px 7px;
  }

  /* Compact Modals */
  .float-modal-card {
    padding: 24px 20px;
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-md);
  }

  .modal-wide {
    max-width: 95%;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Compact Realms Matrix */
  .realms-matrix-card {
    padding: 20px 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
  }

  .realms-matrix-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .week-nav-controls {
    justify-content: space-between;
    width: 100%;
  }

  .current-week-badge {
    font-size: 11px;
    padding: 6px 10px;
    flex: 1;
    text-align: center;
  }

  .btn-week-nav {
    padding: 6px 10px;
    font-size: 11px;
  }

  .realms-matrix-table {
    border-spacing: 4px;
  }

  .matrix-playtime-block {
    height: 40px;
    font-size: 10px;
    border-radius: 6px;
  }

  .matrix-player-name {
    font-size: 12px;
  }

  .matrix-legend-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 10px;
  }

  /* Tables */
  .table-card {
    padding: 16px 12px;
  }

  .dense-table th, .dense-table td,
  .telemetry-table th, .telemetry-table td {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   13. ADMIN CONTROL & BOT OPERATOR PANEL STYLES
   ========================================================================== */
.badge-op-tag {
  background: linear-gradient(135deg, var(--accent-gold), #ea580c);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.admin-container {
  max-width: 1240px;
  padding-bottom: 60px;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-title-area {
  flex: 1;
  min-width: 320px;
}

.admin-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 12px;
}

.status-dot.online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.player-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.player-status-badge.online {
  color: var(--accent-emerald);
}

.player-status-badge.offline {
  color: var(--text-dim);
}

.player-status-dot {
  display: inline-block;
  width: 8.5px;
  height: 8.5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.player-status-dot.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}

.player-status-dot.offline {
  background-color: #64748b;
  opacity: 0.6;
}

.admin-badge-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-emerald);
  text-transform: uppercase;
}

.admin-main-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.admin-subtext {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.admin-live-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
}

.admin-stat-chip {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.chip-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.chip-val.chip-emerald {
  color: var(--accent-emerald);
}

.chip-val.chip-cyan {
  color: var(--accent-cyan);
}

/* Quick Lifecycle Action Toolbar */
.admin-toolbar-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.toolbar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.admin-actions-cluster-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.admin-action-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-cluster-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

@media (max-width: 768px) {
  .admin-cluster-divider {
    display: none;
  }
}

.admin-select-wrapper {
  position: relative;
  display: inline-flex;
}

.admin-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 32px 8px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.admin-select:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.admin-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-admin:hover {
  transform: translateY(-2px);
}

.btn-admin-restart {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
}
.btn-admin-restart:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.btn-admin-stop {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
}
.btn-admin-stop:hover {
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}

.btn-admin-start {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}
.btn-admin-start:hover {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.btn-admin-tp {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  color: #c084fc;
}
.btn-admin-tp:hover {
  background: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.btn-admin-go {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 800;
  padding: 8px 18px;
  letter-spacing: 0.5px;
}
.btn-admin-go:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.tp-arrow-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-coord-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-coord-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  width: 175px;
  transition: var(--transition-smooth);
}

.admin-coord-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.btn-coord-reset {
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.btn-coord-reset:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-main);
}

/* 2-Column Grid */
.admin-grid-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.admin-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-bar .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.card-sub-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Terminal Console Styles */
.console-card {
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.tdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.tdot.red { background: #ef4444; }
.tdot.yellow { background: #f59e0b; }
.tdot.green { background: #10b981; }

.console-state-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.console-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-console-tool {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-console-tool:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.terminal-screen {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  height: 480px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.28;
  letter-spacing: -0.15px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-line {
  word-break: break-all;
  white-space: pre-wrap;
  padding: 1px 4px;
  border-radius: 2px;
  transition: background 0.1s ease;
}

.terminal-line:hover {
  background: rgba(255, 255, 255, 0.04);
}

.terminal-line .t-time {
  color: #475569;
  margin-right: 6px;
  user-select: none;
  font-size: 10.5px;
}

.terminal-line.cmd-in {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.06);
}

.terminal-line.info-out {
  color: #94a3b8;
}

.terminal-line.success-out {
  color: #34d399;
}

.terminal-line.warn-out {
  color: #fbbf24;
}

.terminal-line.err-out {
  color: #f87171;
}

.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0b111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  margin-top: 10px;
}

.terminal-prompt-symbol {
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
}

.terminal-input-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
}

.terminal-input-field::placeholder {
  color: #64748b;
  font-family: var(--font-body);
  font-size: 12px;
}

.btn-terminal-send {
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-terminal-send:hover {
  background: var(--accent-emerald-light);
}

.terminal-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.chips-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.recent-chips-wrapper {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cmd-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.cmd-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Broadcast Studio Styles */
.broadcast-presets-box {
  margin-bottom: 14px;
}

.preset-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.broadcast-horizontal-card {
  padding: 16px 20px;
}

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

.broadcast-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.broadcast-style-wrapper {
  flex-shrink: 0;
}

.broadcast-msg-input {
  flex: 1;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  padding: 8px 14px;
  transition: var(--transition-smooth);
}

.broadcast-msg-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.broadcast-submit-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.horizontal-preview {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.45);
}

.preset-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.preset-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.broadcast-preview-box {
  background: #05080e;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
}

.preview-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.preview-message-display {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
}

.preview-message-display .msg-prefix {
  font-weight: 700;
}

.preview-message-display .text-gold { color: #f59e0b; }
.preview-message-display .text-emerald { color: #10b981; }
.preview-message-display .text-crimson { color: #ef4444; }
.preview-message-display .text-diamond { color: #38bdf8; }
.preview-message-display .text-purple { color: #a855f7; }

/* Allowlist & Moderation */
.allowlist-toggle-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.al-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.al-status {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.al-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.allowlist-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.allowlist-add-form input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
}

.allowlist-add-form input:focus {
  border-color: var(--accent-emerald);
}

.btn-emerald-sm {
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-emerald-sm:hover {
  background: var(--accent-emerald-light);
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  font-size: 12px;
}

.btn-mod-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.btn-mod-action:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-mod-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.btn-mod-op:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* Mobile Responsiveness for Admin Panel */
@media (max-width: 900px) {
  .admin-header-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-live-stat-grid {
    grid-template-columns: 1fr 1fr;
    min-width: 100%;
  }

  .admin-grid-2col {
    grid-template-columns: 1fr;
  }

  .admin-action-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn-admin {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .admin-live-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-action-btn-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   JELLYFIN QUICK CONNECT
   ========================================================================== */

.qc-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 4px;
}

.btn-qc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  background: linear-gradient(135deg, #6a49b5, #4b2f92);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(106, 73, 181, 0.35);
}

.btn-qc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106, 73, 181, 0.5);
}

.qc-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.qc-code-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qc-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.qc-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--accent-purple);
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.qc-waiting {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.qc-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.qc-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  margin: 6px 0;
}

.qc-divider::before,
.qc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* YouTube links inside pack description cells */
.desc-yt-link {
  color: #ff4444;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.desc-yt-link:hover {
  text-decoration: underline;
  color: #ff6666;
}


/* Extra Mobile Polish */
@media (max-width: 768px) {
  .addr-divider {
    display: none;
  }
  .card-bottom-platforms {
    justify-content: space-between;
    padding-top: 16px;
    gap: 8px;
  }
  .platform-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
  }
  .btn-primary-connect {
    width: 100%;
    justify-content: center;
  }
  .addr-block {
    margin-bottom: 6px;
  }
  .address-details {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .expanded-header-bar {
    flex-wrap: wrap;
  }
  .expanded-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .playtime-summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .metric-card {
    padding: 10px 4px;
  }
  .metric-num {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .metric-label {
    font-size: 8px;
    letter-spacing: 0;
  }
}

@media (max-width: 768px) {
  .table-responsive {
    overflow-x: hidden;
  }
  .dense-table, .telemetry-table, .realms-matrix-table {
    table-layout: fixed;
    width: 100%;
    word-break: break-word;
  }
  .dense-table th, .dense-table td, 
  .telemetry-table th, .telemetry-table td {
    padding: 4px;
    font-size: 10px;
  }
  .realms-matrix-table th {
    font-size: 8px;
    padding: 2px 0;
    letter-spacing: 0;
  }
  .matrix-playtime-block {
    height: auto;
    min-height: 20px;
    font-size: 8px;
    padding: 2px;
    white-space: normal;
  }
  .pack-icon-square {
    width: 24px;
    height: 24px;
  }
}
