/* ==========================================================================
   KIRA DISCORD BOT - COMMUNITY SERVER DASHBOARD STYLES
   Cyberpunk Dark Anime Aesthetic, Glassmorphism, Micro-interactions
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-main: #080914;
  --bg-sidebar: #0a0c1b;
  --bg-card: #0f1329;
  --bg-card-hover: #151a38;
  --bg-topbar: rgba(10, 12, 27, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-focus: rgba(139, 92, 246, 0.5);

  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.35);
  --accent-indigo: #6366f1;
  --accent-blue: #3b82f6;
  --accent-teal: #14b8a6;
  --accent-green: #10b981;
  --accent-emerald: #059669;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-pink: #ec4899;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  color-scheme: dark;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  height: 100%;
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  height: 64px;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo-wrap {
  position: relative;
  width: 38px;
  height: 38px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.brand-crown {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 11px;
  color: #fbbf24;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8));
}

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

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.btn-sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  margin-left: 8px;
  display: none;
  border-radius: 6px;
}
.btn-sidebar-toggle:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Feature Search Bar */
.topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 320px;
  max-width: 100%;
}

.topbar-search .search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 38px 9px 38px;
  font-size: 13.5px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.topbar-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.search-kbd-badge {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  pointer-events: none;
}

/* Topbar Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Server Selector Dropdown */
.server-selector-wrap {
  position: relative;
}

.server-selector-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px 5px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.server-selector-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

.server-current-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.server-current-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.server-current-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-current-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.server-selector-arrow {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
  transition: transform 0.2s;
}

.server-selector-wrap.open .server-selector-arrow {
  transform: rotate(180deg);
}

.server-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: #11142e;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 10px;
  z-index: 200;
  backdrop-filter: blur(24px);
}

.server-selector-wrap.open .server-dropdown-menu {
  display: block;
}

.server-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 8px;
  margin-bottom: 8px;
}

.server-search-box i {
  color: var(--text-muted);
  font-size: 12px;
}

.server-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 12.5px;
  width: 100%;
}

.server-dropdown-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.server-dropdown-item:hover, .server-dropdown-item.active {
  background: rgba(124, 58, 237, 0.18);
}

.server-dropdown-item img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.server-dropdown-item .item-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.server-dropdown-item .item-meta .name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-dropdown-item .item-meta .count {
  font-size: 11px;
  color: var(--text-muted);
}

.server-dropdown-item .badge-active {
  color: var(--accent-purple);
  font-size: 12px;
}

/* Discord Topbar Button */
.topbar-discord-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  transition: var(--transition);
}

.topbar-discord-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

/* User Profile Pill */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

/* ==========================================================================
   APP BODY & SIDEBAR
   ========================================================================== */
.app-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 14px 12px 12px;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  gap: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.4);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item:hover i {
  color: var(--accent-purple);
}

.nav-item.active {
  background: #2a2366;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.25);
}

.nav-item.active i {
  color: #a78bfa;
}

/* Sidebar Bottom (Pinned at bottom, never scrolled away) */
.sidebar-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sidebar Kira Premium Card - Bigger, Spacious, Prominent */
.sidebar-premium-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.18);
  border-radius: 14px;
  padding: 13px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.sidebar-premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
}

.premium-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c084fc;
}

.premium-header i {
  font-size: 15px;
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.premium-header h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.sidebar-premium-card p {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.btn-upgrade-premium {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  margin-top: 2px;
}

.btn-upgrade-premium:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.5);
}

.sidebar-feature-request-wrap {
  text-align: center;
  margin-top: 2px;
}

.sidebar-feature-request-wrap button {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sidebar-feature-request-wrap button:hover {
  background: rgba(168, 85, 247, 0.22);
  color: #f3e8ff;
  border-color: rgba(168, 85, 247, 0.5);
}

/* Sidebar Footer */
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.sidebar-footer-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-version {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   MAIN CONTENT & TAB PANES
   ========================================================================== */
.main-content {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px 48px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.25s ease-out;
}

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

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

/* ==========================================================================
   HOME VIEW: HERO BANNER (Matches User Reference Image)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #131233 0%, #1e1b4b 50%, #2e1065 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}

.hero-header-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.hero-avatar-wrap {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.hero-headings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.hero-crown {
  font-size: 20px;
  margin-left: 4px;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 500;
  color: #c4b5fd;
}

.hero-desc {
  font-size: 13px;
  color: #94a3b8;
  max-width: 580px;
  margin-top: 2px;
  line-height: 1.45;
}

.hero-meta-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge strong {
  color: #ffffff;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.badge-online {
  color: #34d399;
}

/* Anime Artwork on Right */
.hero-artwork-overlay {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-art-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.85;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-art-tag {
  position: absolute;
  top: 24px;
  right: 140px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 16px;
  color: #c084fc;
  transform: rotate(-10deg);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.6);
  pointer-events: none;
}

/* ==========================================================================
   4 METRIC CARDS ROW
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-title {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.metric-sub {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sub-green {
  color: #10b981;
}

.sub-blue {
  color: #60a5fa;
}

.metric-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-members {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.icon-commands {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.icon-tickets {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.icon-uptime {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ==========================================================================
   THREE-COLUMN ROWS (Middle & Bottom)
   ========================================================================== */
.three-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.85fr;
  gap: 16px;
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

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

/* ==========================================================================
   MIDDLE ROW COL 1: QUICK SETTINGS (8 Cards)
   ========================================================================== */
.quick-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.qs-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.qs-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1.5px);
}

.qs-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.qs-teal { background: rgba(20, 184, 166, 0.16); color: #2dd4bf; }
.qs-green { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.qs-purple { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.qs-blue { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.qs-red { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.qs-cyan { background: rgba(6, 182, 212, 0.16); color: #22d3ee; }
.qs-indigo { background: rgba(99, 102, 241, 0.16); color: #818cf8; }
.qs-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }

.qs-meta {
  flex: 1;
  min-width: 0;
}

.qs-meta h4 {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-meta p {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.18s;
}

.qs-item:hover .qs-arrow {
  color: var(--text-primary);
  transform: translateX(2px);
}

/* ==========================================================================
   MIDDLE ROW COL 2: SERVER PREVIEW (Discord Simulator)
   ========================================================================== */
.btn-discord-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #5865f2;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-discord-pill:hover {
  background: #4752c4;
}

.server-preview-container {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: #090a18;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
}

/* Channels List Left */
.preview-channel-tree {
  background: #0c0e22;
  border-right: 1px solid var(--border-subtle);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tree-guild-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.tree-guild-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.tree-guild-info {
  display: flex;
  flex-direction: column;
}

.guild-title {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-members {
  font-size: 9.5px;
  color: var(--text-muted);
}

.channel-category {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-title {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-item i {
  font-size: 10px;
  color: #64748b;
}

.channel-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.channel-item.active i {
  color: #94a3b8;
}

/* Chat Window Right */
.preview-chat-window {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-welcome-card-header {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
}

.pw-header-text h4 {
  font-size: 12px;
  font-weight: 600;
}

/* Discord Message Bubble */
.discord-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.msg-bot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.msg-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-author {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.msg-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

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

.msg-body {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.discord-embed-card {
  background: #11142a;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.embed-border-accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-indigo);
}

.embed-inner {
  padding: 10px 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.embed-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.embed-banner-img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

/* ==========================================================================
   MIDDLE ROW COL 3: QUICK ACTIONS (Vibrant Action Pills)
   ========================================================================== */
.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.qa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 9px;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.qa-btn i {
  font-size: 14px;
}

.qa-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1.5px);
}

.qa-green {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.qa-blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.qa-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.qa-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.qa-red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.qa-indigo {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.qa-slate {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
  justify-content: center;
}
.qa-slate:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   BOTTOM ROW: RECENT ACTIVITY | AI FEATURES | SERVER STATS
   ========================================================================== */

/* Col 1: Recent Activity */
.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.pill-join { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.pill-ticket { background: rgba(236, 72, 153, 0.18); color: #f472b6; }
.pill-leave { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.pill-ai { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

.activity-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.activity-action {
  font-size: 11.5px;
  color: var(--text-muted);
}

.activity-target {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
}

.activity-time {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Col 2: AI Features Interactive Toggles */
.ai-features-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.ai-feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.ai-feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.icon-chat { background: rgba(99, 102, 241, 0.18); color: #818cf8; }
.icon-image { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.icon-automod { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.icon-smart { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }

.ai-feat-meta {
  flex: 1;
}

.ai-feat-meta h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}

.ai-feat-meta p {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* iOS Style Switch */
.switch,
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input,
.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Col 3: Server Stats */
.stats-time-filter {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-purple);
  color: #ffffff;
}

.stats-metric-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.stat-mini-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 2px;
}

.icon-msg { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.icon-voice { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.icon-users { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.icon-tix { background: rgba(236, 72, 153, 0.16); color: #f472b6; }

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

.mini-val {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.mini-growth {
  font-size: 10.5px;
}

/* Home Footer */
.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 6px 4px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.home-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.home-footer a:hover {
  color: #ffffff;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   OTHER TABS: FORMS, CONTROLS, BUTTONS
   ========================================================================== */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-title-bar h2 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.section-title-bar p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.btn-save-glow {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: var(--transition);
}

.btn-save-glow:hover {
  filter: brightness(1.15);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="search"],
.form-group textarea,
select,
.select-glow {
  color-scheme: dark;
  background-color: #0f1329;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 14px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 13px;
  transition: var(--transition);
  width: 100%;
}

select,
.select-glow {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' 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 14px center;
  background-size: 14px;
  padding-right: 38px;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
select:focus,
.select-glow:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

/* Fix native dropdown options popup background and text color in Firefox & Chrome */
select option,
select optgroup,
.select-glow option,
.select-glow optgroup {
  color-scheme: dark;
  background-color: #0d1022 !important;
  color: #f1f5f9 !important;
  padding: 10px 14px !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

select option:hover,
select option:focus,
select option:checked,
.select-glow option:hover,
.select-glow option:focus,
.select-glow option:checked {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
}

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

.toggle-row-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.toggle-row-header p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.variable-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.var-chip {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.var-chip:hover {
  background: rgba(124, 58, 237, 0.3);
  color: #ffffff;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-row input[type="color"] {
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.color-picker-row .hex-input {
  width: 100px;
}

/* Mod Action Buttons */
.action-btn-row {
  display: flex;
  gap: 10px;
}

.btn-danger-kick {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger-ban {
  background: #991b1b;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-warning-timeout {
  background: #d97706;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Table Styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.kira-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}

.kira-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.role-tag {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: #11142a;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-purple);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.25s ease-out;
}

.toast.toast-success { border-left-color: var(--accent-green); }
.toast.toast-error { border-left-color: var(--accent-red); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsiveness */
@media (max-width: 1200px) {
  .three-col-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 64px;
    bottom: 0;
    z-index: 150;
    transition: left 0.25s ease;
  }
  .sidebar.mobile-open {
    left: 0;
  }
  .btn-sidebar-toggle {
    display: block;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-artwork-overlay {
    opacity: 0.35;
  }
}



.btn-discord-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5865F2;
  color: #ffffff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  transition: all 0.2s ease;
}

.btn-discord-login:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

/* ========================================================================== */
/* LIVE SERVER & BOT HEALTH MONITOR                                           */
/* ========================================================================== */
.live-health-monitor-panel {
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(20, 24, 48, 0.75) 0%, rgba(15, 18, 36, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.health-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.pulse-indicator-circle {
  position: relative;
  width: 14px;
  height: 14px;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-core {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.health-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.health-badge.badge-optimal {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-score-pill {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
}

.health-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.health-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.health-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

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

.hc-title {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hc-val {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
}

.hc-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.hc-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hc-cpu-fill { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.hc-ram-fill { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.hc-ping-fill { background: linear-gradient(90deg, #10b981, #06b6d4); }
.hc-lava-fill { background: linear-gradient(90deg, #6366f1, #a855f7); }
.hc-uptime-fill { background: linear-gradient(90deg, #f59e0b, #10b981); }

.hc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.hc-status-good {
  color: #34d399;
  font-weight: 600;
}

/* ========================================================================== */
/* ADVANCED SERVER ANALYSIS & CHARTS                                          */
/* ========================================================================== */
.server-analytics-hub {
  margin-top: 20px;
}

.analytics-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-tabs-group {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.analytics-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-card-header h4 {
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green { background: #22c55e; }
.dot-red { background: #ef4444; }
.dot-blue { background: #6366f1; }
.dot-amber { background: #f59e0b; }

.badge-peak-hour {
  font-size: 11px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.chart-canvas-box {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================================== */
/* NO-CODE CANVA STUDIO STYLING                                               */
/* ========================================================================== */
.studio-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.studio-mode-pills {
  display: flex;
  gap: 8px;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-pill.active {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.template-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.template-card-option {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.template-card-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.template-card-option.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

.tmpl-preview {
  height: 40px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.tmpl-cyber { background: linear-gradient(135deg, #090a1a, #06b6d4); }
.tmpl-gold { background: linear-gradient(135deg, #1c1917, #d97706); }
.tmpl-sunset { background: linear-gradient(135deg, #431407, #db2777); }
.tmpl-aurora { background: linear-gradient(135deg, #022c22, #059669); }
.tmpl-minimal { background: linear-gradient(135deg, #0f172a, #334155); }

.tmpl-name {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.bg-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.bg-preset-btn {
  width: 68px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.bg-preset-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-preset-btn.active {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

.color-text-split {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-text-split input[type="text"] {
  flex: 1;
}

.color-text-split input[type="color"] {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.segmented-control {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segment-btn {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.segment-btn.active {
  background: #6366f1;
  color: #ffffff;
}

.slider-range {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  accent-color: #8b5cf6;
  cursor: pointer;
}

/* Studio Canvas Display */
.studio-canvas-card {
  background: rgba(15, 18, 36, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.canvas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge-canvas-hd {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.canvas-res {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.canvas-viewport-container {
  width: 100%;
  background: #090b14;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-card-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 10px;
}

.card-attachment-img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  margin-top: 8px;
  display: block;
}

/* ========================================================================== */
/* SMART SECURITY & LOCKDOWN                                                  */
/* ========================================================================== */
.security-toggles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.security-card-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.security-card-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(244, 63, 94, 0.25);
}

.sec-meta h5 {
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 2px;
}

.sec-meta p {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.btn-emergency-lockdown {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border: 1px solid #f87171;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

.btn-emergency-lockdown:hover {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.7);
  transform: scale(1.02);
}

.log-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.log-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.log-filter-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #e2e8f0;
}

.log-entry-critical {
  border-left: 3px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.05) !important;
}

.log-entry-warning {
  border-left: 3px solid #f59e0b !important;
  background: rgba(245, 158, 11, 0.05) !important;
}

.log-entry-info {
  border-left: 3px solid #3b82f6 !important;
}

.tag-critical {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* ========================================================================== */
/* ADVANCED TICKETS & CSAT                                                    */
/* ========================================================================== */
.ticket-categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.cat-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.cat-icon {
  font-size: 20px;
}

.cat-meta {
  flex: 1;
}

.cat-meta strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
}

.cat-meta small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.staff-perf-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.staff-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.staff-perf-table th {
  text-align: left;
  padding: 8px 10px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-perf-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.staff-user-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-user-cell img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.star-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.feedback-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}

.fb-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.feedback-bubble p {
  font-size: 11.5px;
  color: #94a3b8;
  font-style: italic;
}

/* ========================================================================== */
/* ANNOUNCEMENTS SCHEDULER & QUEUE                                            */
/* ========================================================================== */
.datetime-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.datetime-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.scheduled-queue-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.scheduled-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.sch-title {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
}

.sch-details {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.sch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-status-scheduled {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
}

.btn-cancel-scheduled {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-cancel-scheduled:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   DEVELOPER VPS TOPBAR PILL (PORT 3000)
   ========================================================================== */
.topbar-vps-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.topbar-vps-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(30, 41, 59, 0.95));
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   ALL-IN-ONE MODULE CONTROLS GRID
   ========================================================================== */
.modules-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.module-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.module-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.module-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.module-info {
  flex: 1;
}

.module-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.module-title-row h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.module-info p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.module-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-module-config {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-module-config:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* ==========================================================================
   SERVER OVERVIEW BANNER & QUICK STATS
   ========================================================================== */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDotGlow 1.8s infinite ease-in-out;
  display: inline-block;
}

@keyframes pulseDotGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

/* ==========================================================================
   UNIVERSAL CYBER INPUT & FORM SYSTEM (Global fallback for ALL tabs)
   ========================================================================== */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea,
.cyber-input,
.cyber-select,
.cyber-textarea {
  color-scheme: dark;
  background-color: rgba(15, 19, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13.5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.cyber-input:focus,
.cyber-select:focus,
.cyber-textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background-color: rgba(20, 26, 56, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

select,
.cyber-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.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 14px center;
  background-size: 14px;
  padding-right: 38px;
}

/* ==========================================================================
   SERVER OVERVIEW BANNER & HIGH-TECH METRICS
   ========================================================================== */
.server-overview-banner {
  background: linear-gradient(135deg, rgba(20, 24, 52, 0.85) 0%, rgba(11, 14, 30, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.server-overview-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, #06b6d4, transparent);
}

.server-meta-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-ring-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
  flex-shrink: 0;
}

.server-meta-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f1329;
  display: block;
}

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

.server-title-row h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.verified-guild-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.server-meta-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-chip code {
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
}

.meta-chip-owner strong {
  color: #fde047;
  font-weight: 600;
}

.meta-chip-shard {
  color: #a78bfa;
}

.server-quick-counters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.q-counter-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  min-width: 110px;
  transition: all 0.25s ease;
}

.q-counter-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.q-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

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

.q-val {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  font-family: 'Outfit', sans-serif;
}

.q-lbl {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-top: 2px;
}

/* ==========================================================================
   MODERN SERVER SETTINGS GRID & FEATURE CARDS
   ========================================================================== */
.server-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.setting-feature-card {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(13, 17, 36, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.setting-feature-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.setting-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.card-icon-badge.cyan {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.15);
}

.card-icon-badge.purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.15);
}

.card-icon-badge.amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

.card-icon-badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}

.card-icon-badge.indigo {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.15);
}

.setting-card-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.setting-card-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.card-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.card-pill.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.card-pill.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.card-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.card-pill.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.setting-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Adorned Inputs & Selects */
.input-with-adornment,
.select-with-adornment {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-adornment .adornment-badge,
.select-with-adornment .adornment-badge {
  position: absolute;
  left: 14px;
  color: #8b5cf6;
  font-size: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

.input-with-adornment input,
.select-with-adornment select {
  padding-left: 42px;
}

.btn-reset-adornment {
  position: absolute;
  right: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-reset-adornment:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* Prefix Preview & Presets */
.prefix-preview-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 8px 12px;
}

.preview-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

.preview-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-cmd {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 2px 7px;
  border-radius: 5px;
}

.prefix-presets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.preset-label {
  font-size: 11.5px;
  color: #94a3b8;
}

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

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
  transform: translateY(-1px);
}

.input-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.hint-text {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.char-counter {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #a78bfa;
}

/* ==========================================================================
   RULES & COMMUNITY GUIDELINES STUDIO
   ========================================================================== */
.rules-management-card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.85) 0%, rgba(11, 14, 30, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.rules-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.rules-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rules-title-wrap h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
}

.rules-title-wrap p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

.rules-channel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-channel-bar label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rules-target-select {
  min-width: 240px;
}

.rules-editor-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .rules-editor-layout {
    grid-template-columns: 1fr;
  }
}

.rules-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

.toolbar-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-rule-format {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.btn-rule-format:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

.btn-rule-template {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rule-template:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fff;
}

.rules-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 190px;
}

.rules-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.rules-char-count {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.btn-publish-rules-glow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-publish-rules-glow:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

/* Discord Mockup Container */
.discord-preview-card {
  background: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.discord-preview-header {
  background: #111214;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2d31;
}

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

.discord-preview-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.discord-preview-dot.dot-red { background: #ed4245; }
.discord-preview-dot.dot-yellow { background: #faa81a; }
.discord-preview-dot.dot-green { background: #57f287; }

.discord-preview-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #949ba4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.discord-message-mock {
  padding: 16px;
  display: flex;
  gap: 14px;
}

.discord-mock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.discord-mock-content {
  flex: 1;
}

.discord-mock-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #f2f3f5;
}

.bot-tag {
  background: #5865f2;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.discord-mock-author .timestamp {
  font-size: 11px;
  color: #949ba4;
}

.discord-embed-box.rules-embed-box {
  background: #2b2d31;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 4px;
}

.discord-embed-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-embed-desc {
  font-size: 12.5px;
  color: #dbdee1;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.discord-embed-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #949ba4;
}

.embed-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* ==========================================================================
   ULTIMATE SERVER BACKEND CONTROLS (UPGRADED)
   ========================================================================== */
.backend-controls-panel {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.85) 0%, rgba(10, 13, 28, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-icon-title h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px 0;
}

.backend-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.backend-tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.backend-tool-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-card-head .tool-icon {
  margin-bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tool-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.tool-badge.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.tool-badge.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tool-badge.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.backend-tool-card .tool-meta h5 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.backend-tool-card .tool-meta p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.btn-backend-action {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-sync-cache {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.35);
}

.btn-sync-cache:hover {
  background: #06b6d4;
  color: #000;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.btn-export-backup {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.btn-export-backup:hover {
  background: #10b981;
  color: #000;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-check-health {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.btn-check-health:hover {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   CUSTOM EMBED BUILDER & DISCORD LIVE PREVIEW
   ========================================================================== */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker-input {
  width: 48px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.color-presets {
  display: flex;
  gap: 8px;
}

.btn-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-color-dot:hover {
  transform: scale(1.2);
  border-color: #fff;
}

.fields-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embed-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px;
  border-radius: 8px;
}

.embed-field-row input[type="text"] {
  flex: 1;
  padding: 6px 10px;
  font-size: 12.5px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.btn-field-del {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.btn-field-del:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-sm-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm-action:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

.discord-embed-card {
  background: #2b2d31;
  border-left: 4px solid #7059fe;
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 8px;
  max-width: 520px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f3f5;
}

.embed-author-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.embed-title {
  font-size: 15px;
  font-weight: 700;
  color: #00a8fc;
  margin-bottom: 6px;
  word-break: break-word;
}

.embed-desc {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.45;
  white-space: pre-wrap;
  margin-bottom: 8px;
}

.embed-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.embed-field-item {
  display: flex;
  flex-direction: column;
}

.embed-field-item .field-title {
  font-size: 12px;
  font-weight: 700;
  color: #f2f3f5;
  margin-bottom: 2px;
}

.embed-field-item .field-val {
  font-size: 12px;
  color: #dbdee1;
  word-break: break-word;
}

.embed-thumbnail-img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  float: right;
  margin-left: 12px;
  margin-bottom: 8px;
}

.embed-banner-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 8px;
}

.embed-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #949ba4;
  margin-top: 8px;
}

.embed-footer-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.embed-footer-bullet {
  font-weight: bold;
}

/* ==========================================================================
   AUTO REACT & SELF ROLES
   ========================================================================== */
.self-role-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 14px;
  border-radius: 10px;
}

.self-role-info-card .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.self-role-info-card .meta-wrap h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.self-role-info-card .meta-wrap p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.add-rule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 10px;
}

/* ==========================================================================
   SLIDER CONTROLS & RANGE BARS
   ========================================================================== */
.slider-control-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
}

.slider-val-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-purple);
  margin-top: 8px;
  cursor: pointer;
}

/* ==========================================================================
   GIVEAWAYS & LEADERBOARDS
   ========================================================================== */
.btn-gold-glow {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4) !important;
  color: #fff !important;
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
}

.empty-state-box {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
  opacity: 0.5;
}

.rank-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
}

.rank-1 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.rank-2 { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.rank-3 { background: rgba(180, 83, 9, 0.2); color: #d97706; border: 1px solid rgba(180, 83, 9, 0.4); }

.lb-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.badge-level {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.lb-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.lb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 4px;
}

/* ==========================================================================
   SLASH COMMANDS PERMISSIONS MATRIX
   ========================================================================== */
.select-sm-perm {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 12px;
}

.badge-cat {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.badge-cat.music { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-cat.ai { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-cat.mod { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-cat.support { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-cat.fun { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-cat.exp { background: rgba(16, 185, 129, 0.2); color: #34d399; }

/* ==========================================================================
   SUGGESTION SYSTEM PREVIEW
   ========================================================================== */
.suggestion-preview-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.sp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.sp-body {
  font-size: 13.5px;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.sp-reactions {
  display: flex;
  gap: 8px;
}

.sp-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   WELCOME & GOODBYE CANVA STUDIO TITLEBAR & ACTION BUTTONS UI
   ========================================================================== */
.welcome-studio-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(20, 22, 38, 0.9) 0%, rgba(29, 32, 54, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.welcome-studio-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-title-flex {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.28);
}

.welcome-studio-heading h2 {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-studio-heading p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* Action Buttons Container Hub */
.canva-studio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 15, 26, 0.75);
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  flex-wrap: nowrap;
}

/* Base Canva Action Button */
.btn-canva-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.25px;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  user-select: none;
}

.btn-canva-action i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.btn-canva-action:active {
  transform: scale(0.97) translateY(0);
}

/* 1. Export PNG Button (Sleek Glassmorphic Cyan/Slate) */
.btn-canva-export {
  background: rgba(30, 41, 59, 0.75);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn-canva-export i {
  color: #38bdf8;
}

.btn-canva-export:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.btn-canva-export:hover i {
  transform: translateY(1.5px);
}

/* 2. Send Test to Discord Button (Official Blurple Gradient) */
.btn-canva-test {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.42);
}

.btn-canva-test i {
  color: #ffffff;
}

.btn-canva-test:hover {
  background: linear-gradient(135deg, #6875f5 0%, #4e5bd3 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.6);
}

.btn-canva-test:hover i {
  transform: scale(1.15) rotate(-6deg);
}

/* 3. Save Studio Card Button (Royal Purple/Violet Neon Glow) */
.btn-canva-save {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.42);
}

.btn-canva-save i {
  color: #f1f5f9;
}

.btn-canva-save:hover {
  background: linear-gradient(135deg, #9b6cf8 0%, #7073f3 100%);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.65);
}

.btn-canva-save:hover i {
  transform: translateY(-1px) scale(1.1);
}

@media (max-width: 900px) {
  .welcome-studio-titlebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .canva-studio-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 6px;
  }
  .btn-canva-action {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   TEMP VOICE & VOICE HUBS (JOIN-TO-CREATE, PRESETS, DISCORD PREVIEW)
   ========================================================================== */
.btn-deploy-hub {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-deploy-hub:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  border-color: rgba(52, 211, 153, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.55);
}

.voice-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.voice-preset-card {
  background: rgba(15, 19, 41, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.voice-preset-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.18);
}

.voice-preset-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
}

.voice-preset-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.voice-preset-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.voice-preset-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

/* Discord Mockup Container matching user's screenshot */
.discord-mockup-wrapper {
  background: #313338;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #232428;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  margin-top: 20px;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.discord-bot-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.discord-embed-card {
  background: #2b2d31;
  border-left: 4px solid #5865f2;
  border-radius: 6px;
  padding: 18px 20px;
  max-width: 600px;
}

.discord-embed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.discord-embed-author {
  font-size: 13px;
  font-weight: 600;
  color: #dbdee1;
}

.discord-embed-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.discord-embed-desc {
  font-size: 13px;
  color: #dbdee1;
  line-height: 1.5;
  white-space: pre-line;
}

.discord-matrix-table {
  background: #1e1f22;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #949ba4;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}

.discord-matrix-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #f2f3f5;
  letter-spacing: 0.5px;
}

.discord-buttons-matrix {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  max-width: 600px;
}

.discord-btn-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.discord-interactive-btn {
  background: #4e5058;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.discord-interactive-btn:hover {
  background: #6d6f78;
  transform: translateY(-1px);
}

.discord-interactive-btn.danger {
  background: #da373c;
}
.discord-interactive-btn.danger:hover {
  background: #a1282c;
}

.discord-footer-note {
  font-size: 12px;
  color: #949ba4;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =================================================================== */
/* UNIVERSAL MODAL OVERLAY & BACKDROP STYLING                         */
/* =================================================================== */
.modal,
.modal.fade {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.modal.active,
.modal.show,
.modal.fade.active,
.modal.fade.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.kira-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.kira-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.kira-modal-dialog {
  background: linear-gradient(135deg, rgba(20, 24, 46, 0.98), rgba(12, 14, 28, 0.99));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.15);
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kira-modal-backdrop.active .kira-modal-dialog {
  transform: translateY(0) scale(1);
}

.kira-modal-dialog.modal-sm {
  max-width: 520px;
}

.kira-modal-header {
  padding: 24px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kira-modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.kira-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.kira-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.kira-modal-body {
  padding: 28px;
}

/* Pricing Grid */
.premium-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .premium-plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.plan-tier-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.plan-tier-card.tier-starter {
  border-color: rgba(168, 85, 247, 0.3);
}

.plan-tier-card.tier-pro {
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.07) 0%, rgba(15, 23, 42, 0.4) 100%);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

.plan-tier-card.tier-ultimate {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, rgba(15, 23, 42, 0.4) 100%);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.plan-tier-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-tier-ribbon.cyan {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.plan-tier-ribbon.gold {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.plan-header {
  margin-bottom: 16px;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.plan-tag.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.plan-tag.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.plan-tag.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.plan-subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.plan-pricing-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.plan-currency {
  font-size: 20px;
  font-weight: 600;
  color: #94a3b8;
}

.plan-amount {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.plan-period {
  font-size: 12px;
  color: #64748b;
}

.plan-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.plan-perks-list li {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.plan-perks-list li i {
  margin-top: 3px;
  font-size: 13px;
  flex-shrink: 0;
}

.plan-perks-list li i.fa-circle-check {
  color: #10b981;
}

.plan-btn-buy {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.plan-btn-buy.btn-starter {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.plan-btn-buy.btn-starter:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateY(-2px);
}

.plan-btn-buy.btn-pro {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}
.plan-btn-buy.btn-pro:hover {
  background: linear-gradient(135deg, #0369a1, #0891b2);
  transform: translateY(-2px);
}

.plan-btn-buy.btn-ultimate {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.plan-btn-buy.btn-ultimate:hover {
  background: linear-gradient(135deg, #b45309, #d97706);
  transform: translateY(-2px);
}

/* License Redeem Box */
.license-redeem-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.license-redeem-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-redeem-info i {
  font-size: 22px;
  color: #fbbf24;
}

.license-redeem-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.license-redeem-info p {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.license-redeem-input-wrap {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 360px;
}

.license-redeem-input-wrap input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.license-redeem-input-wrap button {
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Celebration / Congrats Modal */
.congrats-modal-content {
  text-align: center;
  padding: 12px 10px;
}

.congrats-animation-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.congrats-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #ffffff;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
  animation: pulseSuccess 2s infinite;
}

@keyframes pulseSuccess {
  0% { transform: scale(0.95); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(16, 185, 129, 0.7); }
  100% { transform: scale(0.95); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
}

.congrats-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

.congrats-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 20px;
}

.congrats-details-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.congrats-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.congrats-detail-row:last-child {
  border-bottom: none;
}

.congrats-license-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.congrats-license-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #a78bfa;
}

.congrats-dm-notice {
  font-size: 12px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

/* Feature Request Modal */
.form-feature-request .form-group {
  margin-bottom: 16px;
}

.form-feature-request label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-feature-request input,
.form-feature-request select,
.form-feature-request textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.form-feature-request input:focus,
.form-feature-request select:focus,
.form-feature-request textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}

.form-feature-request textarea {
  resize: vertical;
  min-height: 90px;
}

/* Custom Bot Profile Live Preview */
.bot-preview-card {
  background: #111214;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 380px;
  margin-top: 12px;
}

.bot-preview-banner {
  height: 90px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  background-size: cover;
  background-position: center;
}

.bot-preview-body {
  padding: 0 16px 16px;
  position: relative;
}

.bot-preview-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 4px solid #111214;
  margin-top: -32px;
  background: #2b2d31;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
}

.bot-preview-name-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-preview-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.bot-preview-tag {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ==========================================================================
   SETTINGS TAB & SETTINGS CARDS
   ========================================================================== */
.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  position: relative;
}

.settings-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.settings-card .card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-card .card-head i {
  font-size: 20px;
  color: var(--accent-purple);
}

.settings-card .card-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.settings-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Dashboard Accent Themes */
body.theme-midnight {
  --bg-main: #05060a;
  --bg-sidebar: #07090f;
  --bg-card: #0b0e18;
  --bg-card-hover: #101524;
  --bg-topbar: rgba(7, 9, 15, 0.9);
  --accent-purple: #3b82f6;
  --accent-purple-glow: rgba(59, 130, 246, 0.35);
}

body.theme-emerald {
  --bg-main: #040d0a;
  --bg-sidebar: #061410;
  --bg-card: #0a1f19;
  --bg-card-hover: #0e2a22;
  --bg-topbar: rgba(6, 20, 16, 0.9);
  --accent-purple: #10b981;
  --accent-purple-glow: rgba(16, 185, 129, 0.35);
}

/* ========================================================================== */
/* TOPBAR EXTRA BUTTONS                                                       */
/* ========================================================================== */
.topbar-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.topbar-admin-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.45) 100%);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.topbar-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.topbar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: translateY(-1px);
}

/* ========================================================================== */
/* LOGIN WALL / SECURITY GATE OVERLAY                                         */
/* ========================================================================== */
.login-wall-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.12) 0%, rgba(10, 14, 28, 0.85) 70%);
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: 10px 0 30px 0;
  position: relative;
  overflow: hidden;
}

.login-wall-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.login-wall-card {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  text-align: center;
  padding: 44px 36px;
  background: linear-gradient(145deg, rgba(18, 22, 38, 0.95) 0%, rgba(11, 14, 24, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.login-wall-shield-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 2px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.4), inset 0 0 15px rgba(88, 101, 242, 0.3);
  font-size: 34px;
  color: #a78bfa;
}

.login-wall-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.login-wall-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 28px;
}

.login-wall-subtitle strong {
  color: #f1f5f9;
}

.login-wall-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 28px;
}

.login-perk-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.login-perk-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(3px);
}

.login-perk-item i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.login-perk-item strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  font-weight: 600;
  margin-bottom: 2px;
}

.login-perk-item span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.login-perk-item em {
  font-style: normal;
  color: #a78bfa;
}

.login-wall-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.btn-login-discord-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 14px;
  text-decoration: none;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  transition: all 0.25s ease;
}

.btn-login-discord-large:hover {
  background: linear-gradient(135deg, #4752c4 0%, #3a44a6 100%);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
}

.btn-login-dev-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-dev-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
  transform: translateY(-1px);
}

.login-wall-footer-note {
  margin-top: 22px;
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-wall-footer-note i {
  color: #10b981;
}

/* ========================================================================== */
/* PREMIUM FEATURE LOCK BANNER & PSYCHOLOGICAL PRICING BADGES               */
/* ========================================================================== */
.premium-feature-lock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  animation: fadeInBanner 0.3s ease-out;
}

.premium-feature-lock-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f43f5e 0%, #a855f7 100%);
  border-radius: 4px 0 0 4px;
}

.lock-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 260px;
}

.lock-icon-halo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fb7185;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.28);
}

.lock-text-meta h4 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.lock-text-meta p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.lock-text-meta strong {
  color: #f1f5f9;
}

.btn-claim-offer-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
  color: #ffffff !important;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.btn-claim-offer-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.65);
  filter: brightness(1.1);
}

.plan-old-price {
  font-size: 18px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: 8px;
  opacity: 0.75;
  font-weight: 600;
}

.discount-tag-hero {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.input-locked {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}

/* ==========================================================================
   ULTRA AUTOMATION STUDIO — REFERENCE RECREATION STYLES
   Cyberpunk dark navy theme with neon purple, blue, green, and amber accents
   ========================================================================== */

.badge-nav-new {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
  letter-spacing: 0.5px;
}

.automation-studio-wrapper {
  padding: 8px 4px;
}

/* Top Studio Header */
.studio-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

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

.studio-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
  flex-shrink: 0;
}

.studio-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.studio-main-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 2px 0 0;
  max-width: 680px;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-create-automation {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.btn-create-automation:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.6);
  color: #ffffff;
}

.btn-ai-assistant-launch {
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-ai-assistant-launch:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #ffffff;
  border-color: #a855f7;
}

/* Active Workflow Control Bar */
.studio-workflow-bar {
  background: #0f1329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.studio-workflow-bar .bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wf-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wf-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.status-pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: capitalize;
}

.status-pill-badge.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-pill-badge.badge-inactive {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-pill-badge.badge-blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.wf-description {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.bar-right-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-enabled-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.custom-switch-input {
  display: none;
}

.custom-switch-slider {
  width: 44px;
  height: 24px;
  background: #1e2640;
  border-radius: 24px;
  position: relative;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 3px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-switch-input:checked + .custom-switch-slider {
  background: #3b82f6;
  border-color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.custom-switch-input:checked + .custom-switch-slider::before {
  transform: translateX(19px);
}

.toggle-label-text {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.btn-studio-save {
  background: #6366f1;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-studio-save:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-studio-more {
  background: #161b36;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-studio-more:hover {
  color: #ffffff;
  background: #1e2648;
}

.btn-studio-test {
  background: transparent;
  color: #c084fc;
  border: 1.5px solid #a855f7;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-studio-test:hover {
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
  color: #ffffff;
}

/* Studio Workspace Grid */
.studio-workspace-grid {
  display: grid;
  grid-template-columns: 160px 1fr 390px;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .studio-workspace-grid {
    grid-template-columns: 150px 1fr 340px;
  }
}

@media (max-width: 1200px) {
  .studio-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Palette Dock */
.studio-palette-dock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-tool-btn {
  background: #0f1329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.studio-tool-btn i {
  font-size: 16px;
  margin-bottom: 2px;
}

.studio-tool-btn .tool-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.studio-tool-btn .tool-sub {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.2;
}

.btn-tool-trigger i { color: #c084fc; }
.btn-tool-condition i { color: #60a5fa; }
.btn-tool-action i { color: #a855f7; }
.btn-tool-delay i { color: #38bdf8; }
.btn-tool-branch i { color: #c084fc; }
.btn-tool-end i { color: #f472b6; }

.studio-tool-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: #141a38;
}

/* Canvas Area */
.studio-canvas-card {
  background: #090d1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  min-height: 640px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
}

.canvas-zoom-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  background: rgba(15, 19, 41, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 4px 6px;
  gap: 6px;
  z-index: 20;
}

.btn-canvas-ctrl {
  background: none;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
}

.btn-canvas-ctrl:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.zoom-indicator-text {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  min-width: 42px;
  text-align: center;
}

.canvas-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 640px;
}

.canvas-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.canvas-nodes-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* Workflow Node Cards */
.workflow-node-card {
  position: absolute;
  width: 220px;
  border-radius: 14px;
  cursor: grab;
  user-select: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}

.workflow-node-card.dragging {
  cursor: grabbing;
  z-index: 100 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.workflow-node-card.selected {
  box-shadow: 0 0 0 2px #a855f7, 0 10px 28px rgba(168, 85, 247, 0.4);
}

.workflow-node-card.color-purple {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f1329 100%);
  border-color: rgba(168, 85, 247, 0.45);
}

.workflow-node-card.color-blue {
  background: linear-gradient(180deg, #172554 0%, #0f1329 100%);
  border-color: rgba(59, 130, 246, 0.45);
}

.workflow-node-card.color-green {
  background: linear-gradient(180deg, #064e3b 0%, #0f1329 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

.workflow-node-card.color-orange {
  background: linear-gradient(180deg, #451a03 0%, #0f1329 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.workflow-node-card.color-cyan {
  background: linear-gradient(180deg, #083344 0%, #0f1329 100%);
  border-color: rgba(6, 182, 212, 0.45);
}

.workflow-node-card.color-magenta {
  background: linear-gradient(180deg, #4a044e 0%, #0f1329 100%);
  border-color: rgba(217, 70, 239, 0.45);
}

.node-inner {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.node-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.color-purple .node-icon-wrap { color: #c084fc; }
.color-blue .node-icon-wrap { color: #60a5fa; }
.color-green .node-icon-wrap { color: #34d399; }
.color-orange .node-icon-wrap { color: #fbbf24; }
.color-cyan .node-icon-wrap { color: #38bdf8; }
.color-magenta .node-icon-wrap { color: #f472b6; }

.node-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.node-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-sublabel {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-status-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.node-actions-overlay {
  display: none;
  position: absolute;
  top: -12px;
  right: 6px;
  gap: 4px;
  background: #1e1b4b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.workflow-node-card:hover .node-actions-overlay,
.workflow-node-card.selected .node-actions-overlay {
  display: flex;
}

.btn-node-opt {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  padding: 2px 5px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-node-opt:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-node-opt.btn-del:hover {
  color: #ef4444;
}

/* SVG Line Connectors & Badges */
.branch-pill-badge rect {
  stroke-width: 1.5;
}

.branch-pill-badge text {
  font-size: 10.5px;
  font-weight: 800;
  fill: #ffffff;
  alignment-baseline: middle;
}

.branch-pill-badge.pill-yes rect {
  fill: #10b981;
  stroke: #34d399;
}

.branch-pill-badge.pill-no rect {
  fill: #ef4444;
  stroke: #f87171;
}

.canvas-insert-handle {
  cursor: pointer;
}

.canvas-insert-handle circle {
  fill: #3b82f6;
  stroke: #60a5fa;
  stroke-width: 1.5;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.canvas-insert-handle text {
  font-size: 12px;
  font-weight: 900;
  fill: #ffffff;
  alignment-baseline: middle;
  pointer-events: none;
}

.canvas-insert-handle:hover circle {
  fill: #7c3aed;
  stroke: #a855f7;
}

/* Right Configuration / Guide Panel */
.studio-side-panel {
  background: #0f1329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.studio-panel-tabs-bar {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 27, 0.6);
}

.studio-panel-tab {
  flex: 1;
  padding: 12px 10px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.studio-panel-tab:hover {
  color: #ffffff;
}

.studio-panel-tab.active {
  color: #c084fc;
  border-bottom-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
}

.studio-panel-content-body {
  padding: 16px;
  overflow-y: auto;
  max-height: 720px;
}

/* Details View Styling */
.workflow-details-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.details-avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.details-meta {
  flex: 1;
}

.details-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.details-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 8px;
  line-height: 1.35;
}

.details-author-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #64748b;
}

.details-author-row strong {
  color: #cbd5e1;
}

.details-spec-block {
  margin-bottom: 14px;
}

.spec-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-item-box {
  background: #141933;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.spec-item-box strong {
  font-size: 13px;
  color: #ffffff;
}

.spec-item-box small {
  font-size: 11px;
  color: #94a3b8;
}

.spec-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-action-row {
  background: #141933;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-num {
  font-size: 12px;
  font-weight: 700;
  color: #a855f7;
}

.action-desc {
  display: flex;
  flex-direction: column;
}

.action-desc strong {
  font-size: 12.5px;
  color: #ffffff;
}

.action-desc small {
  font-size: 11px;
  color: #94a3b8;
}

.details-actions-bar {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn-edit-automation {
  flex: 1;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-edit-automation:hover {
  background: #6d28d9;
}

.btn-more-options {
  background: #161b38;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 40px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-more-options:hover {
  color: #ffffff;
}

/* Stats Card in Right Panel */
.stats-overview-card {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}

.stats-card-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

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

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.m-label {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-val {
  font-weight: 700;
  color: #ffffff;
}

/* Guide Panel List (Image 1/2/3) */
.guide-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brain-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.guide-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.guide-subtitle {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 2px 0 0;
  line-height: 1.3;
}

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

.guide-item-card {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-trigger-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-trigger-col strong {
  font-size: 12.5px;
  color: #ffffff;
  display: block;
}

.item-trigger-col small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.btn-sim-badge {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.btn-sim-badge.btn-blue { background: #3b82f6; }
.btn-sim-badge.btn-green { background: #10b981; }
.btn-sim-badge.btn-red { background: #ef4444; }
.btn-sim-badge.btn-cyan { background: #06b6d4; }
.btn-sim-badge.btn-violet { background: #a855f7; }
.btn-sim-badge.btn-magenta { background: #d946ef; }
.btn-sim-badge.btn-purple { background: #6366f1; }
.btn-sim-badge.btn-gray { background: #475569; }

.item-ai-col {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 6px 8px;
}

.ai-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #c084fc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.item-ai-col p {
  font-size: 11px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

.guide-tip-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: #fcd34d;
}

.guide-tip-banner i {
  font-size: 16px;
  margin-top: 2px;
}

.guide-tip-banner strong {
  display: block;
  color: #ffffff;
}

/* Bottom Grid Cards */
.view-switch-pills {
  display: inline-flex;
  background: #0f1329;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
}

.btn-view-pill {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-view-pill.active {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

.card-title-label {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Actions Library Grid */
.action-search-bar-wrap {
  position: relative;
  width: 190px;
}

.action-search-input {
  width: 100%;
  background: #141933;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px 6px 28px;
  font-size: 12px;
  color: #ffffff;
}

.search-icon {
  position: absolute;
  left: 9px;
  top: 9px;
  font-size: 11px;
  color: #94a3b8;
}

.actions-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.action-lib-item {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-lib-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  background: #161e40;
}

.lib-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.lib-text strong {
  font-size: 12.5px;
  color: #ffffff;
  display: block;
}

.lib-text small {
  font-size: 10.5px;
  color: #94a3b8;
  display: block;
}

/* Popular Templates */
.templates-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.template-item-row {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tpl-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.tpl-desc {
  flex: 1;
}

.tpl-desc strong {
  font-size: 13px;
  color: #ffffff;
  display: block;
}

.tpl-desc small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.btn-use-tpl {
  background: #6366f1;
  color: #ffffff;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-use-tpl:hover {
  background: #4f46e5;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Overview Mode Elements */
.overview-info-block .ov-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #121833;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ov-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #5865f2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.ov-sub {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.ov-main {
  font-size: 13.5px;
  color: #ffffff;
}

.recent-exec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-exec-item {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exec-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exec-left strong {
  font-size: 12.5px;
  color: #ffffff;
  display: block;
}

.exec-left small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.workflow-action-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wf-action-row {
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wf-action-row:hover {
  background: #161e40;
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(3px);
}

.wf-action-row.row-danger:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.wf-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.wf-text {
  flex: 1;
}

.wf-text strong {
  font-size: 13px;
  color: #ffffff;
  display: block;
}

.wf-text small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.chevron-arr {
  font-size: 11px;
  color: #64748b;
}

/* Modals */
.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.studio-modal-card {
  background: #0f1329;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-modal-card.modal-lg {
  max-width: 720px;
}

@keyframes modalPop {
  0% { transform: scale(0.96); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.studio-modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.studio-modal-foot {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

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

.prompt-suggestions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.prompt-chip {
  background: #141933;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #cbd5e1;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-chip:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: #a855f7;
}

.ai-preview-box {
  background: #141933;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 14px;
}

.simulation-banner {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.step-card-trace {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #121833;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-card-trace.step-success {
  border-left: 3px solid #10b981;
}

.step-card-trace.step-failed {
  border-left: 3px solid #ef4444;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #7c3aed;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.duration-badge {
  font-size: 10.5px;
  color: #10b981;
  font-family: monospace;
}

/* ========================================================
   LIVE ALERTS STUDIO STYLING (Kick, YouTube, Twitch, Custom)
   ======================================================== */
.badge-nav-live {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.live-studio-wrapper {
  padding: 8px 4px;
}

.live-header-icon {
  background: linear-gradient(135deg, #ef4444 0%, #53fc18 100%) !important;
  box-shadow: 0 4px 18px rgba(83, 252, 24, 0.35) !important;
}

/* Platform Selectors */
.platform-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.platform-card-btn {
  background: rgba(18, 24, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.platform-card-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  color: #ffffff;
}

.platform-card-btn.active.platform-kick {
  border-color: #53fc18;
  background: rgba(83, 252, 24, 0.1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(83, 252, 24, 0.25);
}

.platform-card-btn.active.platform-youtube {
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.25);
}

.platform-card-btn.active.platform-twitch {
  border-color: #9146ff;
  background: rgba(145, 70, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(145, 70, 255, 0.25);
}

.platform-card-btn.active.platform-custom {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.platform-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.platform-kick .platform-icon-wrap { background: rgba(83, 252, 24, 0.15); color: #53fc18; }
.platform-youtube .platform-icon-wrap { background: rgba(255, 0, 0, 0.15); color: #ff0000; }
.platform-twitch .platform-icon-wrap { background: rgba(145, 70, 255, 0.15); color: #9146ff; }
.platform-custom .platform-icon-wrap { background: rgba(0, 240, 255, 0.15); color: #00f0ff; }

/* Discord Simulated Preview Box */
.discord-preview-box {
  background: #313338;
  border-radius: 12px;
  padding: 18px;
  color: #dbdee1;
  font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-msg-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.discord-bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.discord-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.discord-user-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
}

.discord-bot-badge {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.discord-msg-timestamp {
  font-size: 12px;
  color: #949ba4;
}

.discord-msg-body {
  font-size: 14.5px;
  line-height: 1.45;
  margin-bottom: 12px;
  word-break: break-word;
  white-space: pre-wrap;
}

.discord-mention-tag {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.discord-embed-card {
  background: #2b2d31;
  border-radius: 4px;
  border-left: 4px solid #53fc18;
  padding: 14px 16px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discord-embed-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.discord-embed-author img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.discord-embed-title {
  font-size: 15px;
  font-weight: 700;
  color: #00a8fc;
  text-decoration: none;
  display: block;
}

.discord-embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.discord-embed-field-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #b5bac1;
  font-weight: 700;
}

.discord-embed-field-value {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
}

.discord-embed-banner {
  width: 100%;
  border-radius: 6px;
  max-height: 220px;
  object-fit: cover;
  background: #1e1f22;
}

.discord-btn-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.discord-component-btn {
  background: #4e5058;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.discord-component-btn:hover {
  background: #6d6f78;
}

/* Variable Chips */
.var-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.var-chip {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.var-chip:hover {
  background: #7c3aed;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Color Presets */
.color-presets-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.color-swatch-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.color-swatch-circle:hover, .color-swatch-circle.active {
  transform: scale(1.15);
  border-color: #ffffff;
}

/* Streamers Table / Card List */
.streamers-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.streamer-card-item {
  background: #141b36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.streamer-card-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.streamer-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.streamer-avatar-box {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.streamer-avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.streamer-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #141b36;
}

.streamer-status-dot.online { background: #53fc18; box-shadow: 0 0 6px #53fc18; }
.streamer-status-dot.offline { background: #64748b; }

.streamer-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-streamer-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-streamer-action:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-streamer-test {
  background: rgba(83, 252, 24, 0.15);
  border-color: rgba(83, 252, 24, 0.35);
  color: #53fc18;
}

.btn-streamer-test:hover {
  background: #53fc18;
  color: #0b0f19;
}

.btn-streamer-delete {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  margin-left: auto;
}

.btn-streamer-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   SERVER BACKUP & RESTORE — STORAGE QUOTA & PREMIUM STYLES
   ========================================================================== */

.backup-module-container {
  width: 100%;
}

/* 1. Hero Banner */
.backup-hero-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.95) 50%, rgba(26, 16, 60, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  padding: 30px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.backup-hero-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.backup-hero-content {
  max-width: 65%;
  position: relative;
  z-index: 2;
}

.backup-hero-badge-title {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.backup-hero-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  flex-shrink: 0;
}

.backup-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.badge-v2-feature {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.backup-hero-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 6px 0 0;
  line-height: 1.5;
}

.backup-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.backup-hero-graphic {
  position: relative;
  z-index: 2;
}

.server-rack-illustration {
  width: 170px;
  height: 140px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.rack-unit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.rack-leds {
  display: flex;
  gap: 4px;
}

.rack-leds span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.rack-leds span:nth-child(2) {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.rack-leds span:nth-child(3) {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
}

.rack-neon-tag {
  position: absolute;
  right: -24px;
  bottom: 10px;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.1;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.5);
  text-align: center;
}

/* 2. Top Metrics Grid */
.backup-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .backup-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .backup-metrics-grid {
    grid-template-columns: 1fr;
  }
  .backup-hero-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .backup-hero-content {
    max-width: 100%;
  }
}

.backup-metric-card {
  background: #101528;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.backup-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.metric-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 12px;
}

.metric-icon-circle.violet {
  background: rgba(124, 58, 237, 0.15);
  color: #a855f7;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.metric-icon-circle.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.metric-icon-circle.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.metric-icon-circle.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.metric-icon-circle.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.metric-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.metric-val {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 2px;
}

.metric-val.date-val,
.metric-val.sched-val {
  font-size: 15px;
  font-weight: 700;
}

.metric-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* 3. Four Quick Action Cards */
.backup-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .backup-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .backup-actions-grid {
    grid-template-columns: 1fr;
  }
}

.backup-action-card {
  background: #101528;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.backup-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.backup-action-card.action-create:hover {
  border-color: rgba(168, 85, 247, 0.6);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(16, 21, 40, 0.95));
}

.backup-action-card.action-view:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 21, 40, 0.95));
}

.backup-action-card.action-schedule:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 21, 40, 0.95));
}

.backup-action-card.action-restore:hover {
  border-color: rgba(236, 72, 153, 0.6);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(16, 21, 40, 0.95));
}

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

.action-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.action-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.action-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-icon.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.action-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.action-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0;
}

.action-arrow {
  color: #64748b;
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.backup-action-card:hover .action-arrow {
  color: #ffffff;
  transform: translateX(4px);
}

/* 4. Subtabs Navigation Bar */
.backup-subtabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  overflow-x: auto;
}

.backup-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.backup-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.backup-subtab-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c4b5fd;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
}

/* 5. Backup Table & Elements */
.backup-table {
  color: #ffffff;
  margin-bottom: 0;
}

.backup-table thead th {
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
}

.backup-table tbody td {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.backup-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn-table-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

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

.backup-element-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.backup-element-row:last-child {
  border-bottom: none;
}

/* 6. Alert Banners */
.storage-alert-banner {
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}

.storage-alert-banner.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.storage-alert-banner.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.alert-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.storage-alert-banner.alert-warning .alert-icon-box {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.storage-alert-banner.alert-danger .alert-icon-box {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

/* 7. Plan Cards */
.storage-plan-card {
  transition: all 0.25s ease;
}

.storage-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.active-plan-card {
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* ========================================================================== */
/* TEMPLATE CLONER (VIP SUITE)                                                */
/* ========================================================================== */
.cloner-hero-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  padding: 26px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.cloner-hero-banner::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cloner-metric-card {
  background: rgba(18, 24, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.cloner-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cloner-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.cloner-preset-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cloner-preset-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.cloner-preset-card.active,
.cloner-preset-card.selected {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1.5px solid #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.cloner-preset-card .preset-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.cloner-terminal-box {
  background: #090d16;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
}

.cloner-terminal-header {
  background: #0e1424;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.cloner-terminal-log {
  background: #060911;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a5f3fc;
  padding: 18px 20px;
  max-height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.cloner-terminal-log::-webkit-scrollbar {
  width: 8px;
}
.cloner-terminal-log::-webkit-scrollbar-track {
  background: #090d16;
}
.cloner-terminal-log::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

.cloner-locked-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.cloner-terms-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
}

.cloner-terms-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cloner-terms-card p,
.cloner-terms-card li {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ==========================================================================
   SERVER CONFIGURATION TEMPLATES DASHBOARD
   ========================================================================== */

.server-templates-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16) 0%, rgba(6, 182, 212, 0.12) 100%), #101528;
  border: 1.5px solid rgba(139, 92, 246, 0.28);
  border-radius: 18px;
  padding: 26px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.server-templates-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.template-hero-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  flex-shrink: 0;
}

.template-hero-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.badge-template-new {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.template-hero-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 4px 0 0 0;
  max-width: 680px;
  line-height: 1.5;
}

.template-hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-pill-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 18px;
  text-align: center;
}

.stat-pill-box .stat-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.stat-pill-box .stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.template-highlights-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Category Filter Tabs & Search Bar */
.template-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.template-cat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.template-cat-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.template-search-box {
  position: relative;
  min-width: 280px;
}

.template-search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}

.template-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  font-size: 12.5px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.template-search-input:focus {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

/* Template Cards */
.server-template-card {
  background: #101528;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  position: relative;
}

.server-template-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.15);
}

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

.template-category-badge {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  font-weight: 700;
  display: block;
}

.template-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.template-pill-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid;
  letter-spacing: 0.5px;
}

.template-card-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  min-height: 38px;
}

.template-features-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
}

.template-features-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.template-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.template-feature-item {
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-apply-template {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.btn-apply-template:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .server-templates-hero {
    padding: 18px 20px;
  }
  .template-hero-title {
    font-size: 18px;
  }
  .template-search-box {
    width: 100%;
    min-width: unset;
  }
}

/* ==========================================================================
   SECURITY SUITE & AUTO-MOD HUB — MODERN ENTERPRISE STYLING
   ========================================================================== */
.sec-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
}

.sec-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: secPulse 2s infinite;
}

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

.sec-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sec-metric-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.sec-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sec-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sec-metric-icon.purple { background: rgba(124, 58, 237, 0.2); color: #a855f7; }
.sec-metric-icon.blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.sec-metric-icon.cyan { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.sec-metric-icon.rose { background: rgba(244, 63, 94, 0.2); color: #f43f5e; }
.sec-metric-icon.amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.sec-metric-info h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sec-metric-info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.sec-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.sec-three-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}

.sec-card-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.sec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sec-card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-filter-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sec-filter-item:last-child {
  border-bottom: none;
}

.sec-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sec-filter-head h4 {
  margin: 0 0 3px 0;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.sec-filter-head p {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.sec-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sec-tag-pill {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: #c4b5fd;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.sec-tag-remove {
  cursor: pointer;
  color: #94a3b8;
  font-size: 10px;
}

.sec-tag-remove:hover {
  color: #f87171;
}

.sec-btn-add-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.sec-btn-add-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.sec-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.sec-preset-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sec-preset-card:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.sec-preset-card.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: #a855f7;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.sec-preset-card i {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}

.sec-preset-card h5 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.sec-preset-card span {
  font-size: 10.5px;
  color: #94a3b8;
}

/* AI SENTINEL CARD */
.sec-ai-sentinel-box {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.sec-ai-badge {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sec-ai-rule-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #a855f7;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sec-log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sec-log-item:last-child {
  border-bottom: none;
}

.sec-log-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sec-log-avatar.warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.sec-log-avatar.info { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.sec-log-content {
  flex: 1;
  min-width: 0;
}

.sec-log-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  justify-content: space-between;
}

.sec-log-title span {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.sec-log-desc {
  font-size: 11px;
  color: #94a3b8;
  margin: 1px 0 0;
}

@media (max-width: 1200px) {
  .sec-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .sec-three-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sec-metric-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   ADVANCED SUPPORT TICKET SYSTEM — PIXEL-PERFECT STYLING
   ========================================================================== */
.tkt-three-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.15fr;
  gap: 16px;
  margin-top: 16px;
}

.tkt-card-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.tkt-card-box:hover {
  border-color: rgba(124, 58, 237, 0.28);
}

.tkt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tkt-card-header h3,
.tkt-card-header h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tkt-card-header p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.tkt-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.tkt-cat-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.tkt-cat-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(168, 85, 247, 0.3);
}

.tkt-cat-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.tkt-cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.tkt-cat-text {
  min-width: 0;
}

.tkt-cat-text strong {
  display: block;
  font-size: 12.5px;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tkt-cat-text small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.tkt-cat-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  border-radius: 4px;
  transition: color 0.15s;
}

.tkt-cat-btn:hover {
  color: #fff;
}

.tkt-cat-btn.delete:hover {
  color: #ef4444;
}

.badge-default {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  text-transform: uppercase;
}

/* Discord Mockup Preview */
.tkt-preview-wrap {
  background: #313338;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.tkt-discord-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.tkt-discord-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.tkt-discord-bot-badge {
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 4px;
}

.tkt-discord-embed {
  background: #2b2d31;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 6px;
}

.tkt-discord-embed h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
}

.tkt-discord-embed p {
  margin: 0;
  font-size: 12px;
  color: #dbdee1;
  line-height: 1.4;
}

.tkt-btn-primary-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.15s;
}

.tkt-btn-primary-discord:hover {
  background: #4752c4;
}

.tkt-preview-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tkt-preview-pill {
  background: #4e5058;
  color: #f2f3f5;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Statistics Grid */
.tkt-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.tkt-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.tkt-stat-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.tkt-stat-card p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #94a3b8;
}

.tkt-stat-delta {
  font-size: 9.5px;
  font-weight: 700;
  display: inline-block;
  margin-top: 2px;
}
.tkt-stat-delta.up { color: #34d399; }
.tkt-stat-delta.down { color: #f87171; }

/* Recent Tickets Table */
.tkt-recent-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 11.5px;
}

.tkt-recent-table th {
  text-align: left;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tkt-recent-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  vertical-align: middle;
}

.tkt-user-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tkt-user-cell img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.tkt-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
}

.tkt-status-pill.open { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tkt-status-pill.in_progress { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tkt-status-pill.waiting { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.tkt-status-pill.closed { background: rgba(100, 116, 139, 0.18); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

/* Category Modal */
.tkt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.tkt-modal-backdrop.active {
  display: flex;
}
.tkt-modal-dialog {
  background: #0f172a;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1280px) {
  .tkt-three-col {
    grid-template-columns: 1fr;
  }
  .tkt-stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}


