/* NosOasis Cyber Dark Wiki & Database Stylesheet v2.0 */
:root {
  --bg-base: #06080e;
  --bg-surface: #0c101b;
  --bg-card: rgba(13, 19, 33, 0.82);
  --bg-card-hover: rgba(18, 27, 47, 0.95);
  --border-dim: rgba(56, 189, 248, 0.12);
  --border-bright: rgba(0, 240, 255, 0.45);
  --border-gold: rgba(250, 204, 21, 0.4);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --blue: #38bdf8;
  --purple: #a855f7;
  --gold: #facc15;
  --emerald: #10b981;
  --rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --header-height: 68px;
  --sidebar-width: 270px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Rajdhani', 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow & cyber effects */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.18;
}
.glow-top-left {
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, #00f0ff, #3b82f6);
}
.glow-bottom-right {
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, #a855f7, #0284c7);
}

.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* Header */
.wiki-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.wiki-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}
.highlight-cyan {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}
.brand-badge {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 520px;
  margin: 0 32px;
  position: relative;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 0 44px 0 40px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}
.header-search input:focus {
  border-color: var(--cyan);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}
.search-kbd-shortcut {
  position: absolute;
  right: 14px;
  padding: 2px 7px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  pointer-events: none;
}
.clear-search-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(12, 17, 29, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  padding: 8px 0;
}
.search-res-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.search-res-item:hover {
  background: rgba(0, 240, 255, 0.1);
}
.s-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 2px;
}
.s-meta {
  flex: 1;
}
.s-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}
.s-cat {
  font-size: 0.75rem;
  color: var(--blue);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.server-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}
.header-link:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.header-btn-discord {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}
.header-btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.5);
}

/* Layout */
.wiki-layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  position: relative;
  z-index: 2;
}

/* Sidebar */
.wiki-sidebar {
  width: var(--sidebar-width);
  background: rgba(9, 13, 23, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border-dim);
  height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-inner {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-server-box {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.05));
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 12px;
}
.ssb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ssb-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
}
.ssb-rate {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
}
.ssb-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  padding: 12px 10px 4px 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.15), rgba(56, 189, 248, 0.03));
  color: var(--cyan);
  font-weight: 600;
  border-left: 3px solid var(--cyan);
}
.nav-icon {
  font-size: 1.05rem;
}
.nav-label {
  flex: 1;
}
.nav-pill {
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-dim);
}
.sf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.sf-btn {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(0, 240, 255, 0.08);
  border-radius: 6px;
  transition: all 0.2s;
}
.sf-btn:hover {
  background: rgba(0, 240, 255, 0.2);
}

/* Main Content Area */
.wiki-main {
  flex: 1;
  padding: 30px 40px 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Content Header */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.page-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Filter pills in content header */
.ch-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--blue);
  color: #fff;
}
.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #06080e;
  box-shadow: 0 0 14px var(--cyan-glow);
}

/* In-page filter bar */
.inpage-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 17, 29, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 24px;
}
.filter-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.filter-search-box input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 6px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.filter-search-box input:focus {
  border-color: var(--cyan);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

/* Cyber Card */
.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cyber-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}
.cyber-card:hover::before {
  opacity: 1;
}

/* Card Header */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.card-title-group {
  flex: 1;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.card-subtitle {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Badges */
.badge-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.badge-pvp {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--rose);
}
.badge-pve {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald);
}
.badge-raid {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--cyan);
}
.badge-craft {
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: var(--gold);
}

/* Card Media / Sprite Presentation */
.card-media {
  height: 120px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(10, 15, 26, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-sprite {
  max-height: 90px;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
.cyber-card:hover .card-sprite {
  transform: scale(1.12);
}

.card-buff-float {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 2px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}
.card-buff-float:hover {
  transform: scale(1.2);
}

/* Card Body & Details */
.card-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.info-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  min-width: 65px;
}
.info-val {
  color: var(--text-main);
  font-weight: 500;
  word-break: break-word;
}
.warp-cmd {
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  user-select: all;
}

/* Raid Box Rewards Preview */
.raid-rewards-preview {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}
.rewards-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.rewards-list-mini {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 86px;
  overflow-y: hidden;
  position: relative;
}
.rewards-list-mini li {
  font-size: 0.76rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.view-more-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0 0;
  text-align: left;
  transition: color 0.15s;
}
.view-more-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Home Section Layout */
.home-hero {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95), rgba(7, 10, 18, 0.9));
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--cyan);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-jumps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.quick-jump-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}
.quick-jump-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.qj-icon {
  font-size: 1.8rem;
}
.qj-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.qj-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-window {
  background: #0d1322;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.2);
  padding: 28px;
}
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #fff;
}

/* Modal Inner */
.m-head {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.m-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 4px;
}
.m-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.m-loc {
  font-size: 0.82rem;
  color: var(--cyan);
}
.m-droplist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.m-droplist li {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Loading & Empty State */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
  .wiki-main {
    padding: 24px 20px 60px 20px;
  }
  .header-search {
    margin: 0 16px;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }
  .header-actions .header-link,
  .header-actions .server-pill {
    display: none;
  }
  .wiki-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    z-index: 90;
    transform: translateX(-100%);
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
  }
  .wiki-sidebar.open {
    transform: translateX(0);
  }
  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   NOSOASIS STARTER & LEVELING GUIDE STYLES
   ========================================================================== */

.guide-wrapper {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.guide-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 12px 4px;
  border-bottom: 1px solid var(--border-dim);
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.guide-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.guide-tab-btn:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan);
  transform: translateY(-1px);
}

.guide-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(15, 23, 42, 0.9));
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.guide-tab-btn .tab-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
}

.guide-tab-btn.active .tab-badge {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
}

.guide-content-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInGuide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.guide-hero-banner {
  background: linear-gradient(135deg, rgba(13, 19, 33, 0.95) 0%, rgba(10, 30, 50, 0.85) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.guide-hero-title {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.guide-hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 6px;
  line-height: 1.5;
}

.guide-hero-stats {
  display: flex;
  gap: 12px;
}

.guide-stat-pill {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-stat-pill .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-stat-pill .val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(56, 189, 248, 0.28);
}

.guide-h2 {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  padding-bottom: 10px;
}

.guide-h3 {
  font-family: var(--font-mono);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 6px;
}

.guide-p {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.7;
}

.guide-media {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.guide-img {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: #030712;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-img:hover {
  border-color: var(--cyan);
  transform: scale(1.01);
}

.guide-caption {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

.guide-callout {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  line-height: 1.6;
  font-size: 0.94rem;
}

.guide-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.guide-callout-warn {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde047;
}

.guide-callout-info {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #7dd3fc;
}

.guide-callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.guide-cmd {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  letter-spacing: 0.5px;
  display: inline-block;
}

.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.guide-box-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 16px;
}

.guide-box-item h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-dim);
  margin-top: 12px;
}

.guide-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  transition: all 0.2s ease;
}

.guide-nav-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.guide-nav-btn.primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(16, 185, 129, 0.2));
  border-color: var(--cyan);
}

.guide-nav-btn.primary:hover {
  box-shadow: 0 0 16px var(--cyan-glow);
}

