/* Princess Web Dashboard Custom Styles • Origin X Devs */

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080d0a;
}
::-webkit-scrollbar-thumb {
  background: #1b2c21;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22c55e;
}

/* Discord Mockup Container */
.discord-mockup {
  background-color: #313338;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #dbdee1;
}

.discord-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.discord-bot-badge {
  background-color: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.discord-embed-v1 {
  background-color: #2b2d31;
  border-left: 4px solid #22c55e;
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
}

.discord-embed-v2 {
  background: linear-gradient(145deg, #1e1f22 0%, #2b2d31 100%);
  border-left: 4px solid #10b981;
  border-radius: 6px;
  padding: 14px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.discord-embed-v3 {
  background: linear-gradient(135deg, #111a14 0%, #17241c 50%, #0d1611 100%);
  border-left: 4px solid #00F5A0;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 245, 160, 0.12), 0 2px 10px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.discord-embed-v3::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Discord Mock Buttons */
.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.discord-btn-primary {
  background-color: #5865F2;
  color: #fff;
}
.discord-btn-primary:hover {
  background-color: #4752C4;
}

.discord-btn-secondary {
  background-color: #4e5058;
  color: #fff;
}
.discord-btn-secondary:hover {
  background-color: #6d6f78;
}

.discord-btn-success {
  background-color: #248046;
  color: #fff;
}
.discord-btn-success:hover {
  background-color: #1a6334;
}

/* Glow & Neon Accents */
.neon-glow-emerald {
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

.neon-border-pulse {
  animation: neonBorderPulse 3s infinite ease-in-out;
}

@keyframes neonBorderPulse {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.1);
  }
  50% {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.35);
  }
}

/* Active Theme Card Selection */
.theme-card.active {
  border-color: rgba(239, 68, 68, 0.7) !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25) !important;
}

/* Toast Animations */
@keyframes toastIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

.toast-enter {
  animation: toastIn 0.25s ease forwards;
}

.toast-exit {
  animation: toastOut 0.25s ease forwards;
}

/* ── Princess Shards & Live Status Page (Exact Zynrax Spec) ── */
.status-page {
  background: #000000;
  min-height: 100vh;
  padding-top: 6.5rem;
  padding-bottom: 5rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.status-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.status-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.title-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shards-icon-bg {
  background: #1c1c1e;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ef4444;
}

.title-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.search-wrapper {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.search-wrapper input {
  width: 100%;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.2s ease;
}

.search-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.search-wrapper input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.search-wrapper .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

/* Shards Overview Grid */
.status-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 0.5rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.overview-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.overview-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.overview-info {
  display: flex;
  flex-direction: column;
}

.overview-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.overview-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Shards Cards Grid */
.shards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.shard-card {
  background: #09090b;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.shard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.15);
}

.shard-card.matched {
  border-color: #ef4444 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45) !important;
  transform: translateY(-4px);
}

.card-top {
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-top-col {
  display: flex;
  flex-direction: column;
}

.shard-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.shard-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.shard-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  white-space: nowrap;
}

.shard-status-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
}

.shard-metrics {
  padding: 1.3rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-row {
  display: flex;
  gap: 1.25rem;
}

.metric-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Rajdhani', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.metric-icon {
  color: #ef4444;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .status-page {
    padding-top: 5rem;
  }
  .status-header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-wrapper {
    width: 100%;
  }
  .shards-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════ */
/* ZYNRAX EXACT AUTHENTIC CLONED SERVER CONSOLE & DRAWER   */
/* ═══════════════════════════════════════════════════════ */
body.manage-page .navbar,
body.manage-page .mobile-menu,
body.manage-page .footer {
  display: none !important;
}

body.manage-page,
body.manage-page #root,
body.manage-page .app-container {
  height: 100% !important;
  min-height: 100vh !important;
  background: #0a0a0f !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gd-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  padding-top: 0 !important;
}

.gd-topbar {
  height: 60px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 50;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

.gd-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gd-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gd-mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  transition: all .2s;
  font-size: 19px;
  padding: 0;
}

.gd-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.gd-brand {
  display: flex;
  flex-direction: column;
}

.gd-brand-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.gd-back-btn {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all .2s;
  text-decoration: none;
}

.gd-back-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
}

.gd-theme-toggle-btn {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: all .2s;
  font-size: 15px;
}

.gd-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
}

.gd-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ef4444;
  background: rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gd-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.gd-layout {
  display: flex;
  flex: 1;
  position: relative;
  min-height: calc(100vh - 60px);
}

.gd-sidebar {
  width: 260px;
  background: #000;
  border-right: 1px solid rgba(255, 255, 255, .05);
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
  transition: width .3s;
  flex-shrink: 0;
}

.gd-sidebar-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.gd-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.gd-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.gd-sidebar-nav::-webkit-scrollbar-thumb {
  background: #ffffff0d;
  border-radius: 10px;
}

.gd-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: #ffffff1a;
}

.gd-sidebar-header {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  flex-shrink: 0;
}

.gd-sidebar-server-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.gd-sidebar-server-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
}

.gd-sidebar-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.gd-sidebar-server-name-bold {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Orbitron', sans-serif;
}

.gd-sidebar-swap-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11131e;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  text-decoration: none;
}

.gd-sidebar-swap-btn:hover {
  background: #ffffff0d;
  color: #fff;
  border-color: #ffffff33;
}

.gd-btn-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #22c55e;
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.gd-btn-refresh:hover {
  opacity: .9;
}

.gd-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff0d;
  color: #e2e8f0;
  font-weight: 600;
  font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: all .2s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.gd-btn-secondary:hover {
  background: #ffffff1a;
}

.gd-nav-header {
  padding: 0 20px 15px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.gd-nav-list {
  display: flex;
  flex-direction: column;
  padding: 5px 0;
}

.gd-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 4px 10px;
  border-radius: 8px;
  color: #94a3b8;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  background: #ffffff05;
  border: 1px solid rgba(255, 255, 255, .01);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.gd-nav-item:hover {
  color: #fff;
  background: #ffffff0a;
  border-color: #ffffff0d;
}

.gd-nav-icon-wrapper {
  width: 28px;
  height: 28px;
  background: #11131e;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
  border: 1px solid rgba(255, 255, 255, .05);
}

.gd-nav-item:hover .gd-nav-icon-wrapper {
  background: #1a1d29;
  border-color: #ffffff1a;
}

.gd-nav-item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0;
  width: 3px;
  background: var(--module-color);
  box-shadow: 0 0 10px var(--module-color);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: all .25s ease;
  transform: translateY(-50%);
}

.gd-nav-item:hover:before {
  height: 40%;
  opacity: .6;
}

.gd-nav-item.active:before {
  height: 70%;
  opacity: 1;
}

.gd-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--module-color) 12%, transparent) 0%, transparent 100%);
  border-color: color-mix(in srgb, var(--module-color) 30%, transparent);
}

.gd-nav-item.active .gd-nav-icon-wrapper {
  background: var(--module-color);
  color: #fff;
  border: none;
  box-shadow: 0 0 15px color-mix(in srgb, var(--module-color) 50%, transparent);
}

.gd-nav-item svg {
  flex-shrink: 0;
}

.gd-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
  background: #0a0a0f;
}

@media (max-width: 900px) {
  .gd-mobile-menu-btn {
    display: flex !important;
  }
  .gd-topbar {
    padding: 0 14px;
  }
  .gd-sidebar {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 9999 !important;
    transform: translateX(-100%) !important;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1) !important;
    background: #0a0b12 !important;
    box-shadow: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .gd-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 35px rgba(0, 0, 0, 0.85) !important;
  }
  .gd-sidebar-backdrop {
    display: none;
    position: fixed !important;
    inset: 60px 0 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity .25s ease;
  }
  .gd-sidebar-backdrop.active {
    display: block !important;
    opacity: 1 !important;
  }
  .gd-main {
    padding: 16px 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   PRINCESS DASHBOARD LIGHT MODE THEME ENGINE
   ══════════════════════════════════════════════════════════════════════ */
.gd-wrapper.light-mode {
  background: #f8fafc !important;
  color: #1e293b !important;
}

/* Light Mode Toggle Button */
.gd-wrapper.light-mode .gd-theme-toggle-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #f59e0b !important;
}

.gd-wrapper.light-mode .gd-theme-toggle-btn:hover {
  background: #e2e8f0 !important;
  color: #d97706 !important;
  border-color: #94a3b8 !important;
}

/* Topbar in Light Mode */
.gd-wrapper.light-mode .gd-topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

.gd-wrapper.light-mode .gd-brand-sub {
  color: #0f172a !important;
}

.gd-wrapper.light-mode .gd-back-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

.gd-wrapper.light-mode .gd-back-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.gd-wrapper.light-mode .gd-mobile-menu-btn {
  color: #334155 !important;
}

.gd-wrapper.light-mode .gd-mobile-menu-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Sidebar in Light Mode */
.gd-wrapper.light-mode .gd-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}

.gd-wrapper.light-mode .gd-sidebar-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.gd-wrapper.light-mode .gd-sidebar-server-info {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.gd-wrapper.light-mode .gd-sidebar-server-name {
  color: #0f172a !important;
}

.gd-wrapper.light-mode .gd-sidebar-server-id {
  color: #64748b !important;
}

.gd-wrapper.light-mode .gd-nav-section-label {
  color: #64748b !important;
}

.gd-wrapper.light-mode .gd-nav-item {
  color: #475569 !important;
  background: transparent !important;
}

.gd-wrapper.light-mode .gd-nav-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.gd-wrapper.light-mode .gd-nav-item.active {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.gd-wrapper.light-mode .gd-nav-icon-wrapper {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

.gd-wrapper.light-mode .gd-nav-item.active .gd-nav-icon-wrapper {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.gd-wrapper.light-mode .gd-sidebar-autolike-box {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.gd-wrapper.light-mode .gd-autolike-title {
  color: #0f172a !important;
}

.gd-wrapper.light-mode .gd-autolike-count {
  color: #64748b !important;
}

.gd-wrapper.light-mode .gd-sidebar-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.gd-wrapper.light-mode .gd-sidebar-btn:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.gd-wrapper.light-mode .audit-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* Main Panel & Cards in Light Mode */
.gd-wrapper.light-mode .gd-main {
  background: #f8fafc !important;
}

.gd-wrapper.light-mode .command-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.gd-wrapper.light-mode .command-title,
.gd-wrapper.light-mode .command-name {
  color: #0f172a !important;
}

.gd-wrapper.light-mode .command-desc {
  color: #475569 !important;
}

.gd-wrapper.light-mode .dash-stat-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.gd-wrapper.light-mode .dash-stat-value {
  color: #0f172a !important;
}

.gd-wrapper.light-mode .dash-stat-label {
  color: #64748b !important;
}

.gd-wrapper.light-mode .template-pill-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.gd-wrapper.light-mode .template-pill-btn:hover {
  background: #e2e8f0 !important;
}

.gd-wrapper.light-mode .channel-badge-chip {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.gd-wrapper.light-mode .channel-picker-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.gd-wrapper.light-mode .channel-picker-item:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.gd-wrapper.light-mode .channel-picker-item.active {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.gd-wrapper.light-mode .autolike-table-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.gd-wrapper.light-mode .autolike-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.gd-wrapper.light-mode .autolike-table td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

.gd-wrapper.light-mode .autolike-table tr:hover {
  background: #f8fafc !important;
}

@media (max-width: 480px) {
  .gd-topbar {
    padding: 0 10px !important;
  }
  .gd-brand-sub {
    font-size: 0.82rem !important;
    letter-spacing: 0.8px !important;
  }
  .gd-topbar-right {
    gap: 6px !important;
  }
  .gd-theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
  }
  .gd-back-btn {
    width: 32px !important;
    height: 32px !important;
  }
  .gd-user-avatar {
    width: 32px !important;
    height: 32px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   HERO TYPING ANIMATION (Royal Intelligence)
   ══════════════════════════════════════════════════════════════════════ */
.typewriter-text {
  display: inline;
  min-height: 1.2em;
  background: var(--gradient-text, linear-gradient(to right, #ffffff, rgba(255, 255, 255, .7)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 3px;
  font-weight: 300;
  color: #ef4444;
  -webkit-text-fill-color: #ef4444 !important;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.9), 0 0 20px rgba(239, 68, 68, 0.5);
  animation: typewriterBlink 0.75s step-start infinite;
  vertical-align: baseline;
}

@keyframes typewriterBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


