/* ==========================================================================
   PROHORI - GREED BOT DASHBOARD THEME
   Pixel-perfect match to Greed Discord Bot Web Dashboard
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Cinzel+Decorative:wght@700&family=Faster+One&family=Fredoka:wght@600;700&family=Kaushan+Script&family=Metal+Mania&family=Press+Start+2P&family=Rubik+Bubbles&family=Special+Elite&family=Syne:wght@700;800&family=UnifrakturMaguntia&family=VT323&family=Zilla+Slab:ital,wght@1,700&family=Cherry+Bomb+One&family=Chicle&family=MuseoModerno:wght@800&family=Pixelify+Sans:wght@700&display=swap');

:root {
  --bg-primary: #050506;
  --bg-secondary: #0a0a0c;
  --bg-sidebar: #0a0a0d;
  --bg-card: #0a0a0c;
  --bg-card-hover: #111114;
  --bg-input: rgba(0, 0, 0, 0.45);
  --bg-elevated: #16161a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.24);
  --text-primary: #ececee;
  --text-secondary: #ececee9e;
  --text-muted: #ececee6b;
  --accent-green: #23a55a;
  --accent-green-bg: rgba(35, 165, 90, 0.15);
  --accent-blue: #5865f2;
  --accent-purple: #9b59b6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Greed.best Exact Animation Timing & Curves */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-glide: cubic-bezier(.32, .72, 0, 1);
  --dur-press: .12s;
  --dur-hover: .18s;
  --dur-exit: .16s;
  --dur-enter: .28s;
  --dur-glide: .36s;
  --tile-glow: radial-gradient(120% 90% at 30% 0%, #ffffff17, transparent 60%);
  --tile-edge: linear-gradient(145deg, #ffffff38, #ffffff0a 45%, #ffffff05 70%, #ffffff1a);
  --lift: 0 24px 60px -20px #000000d9;
  --lift-tile: 0 8px 20px -8px #000c;
  --dash-card-lift: 0 1px 0 #ffffff0a, 0 8px 22px -8px #000000b3;
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Sidebar Styles */
.greed-sidebar {
  width: 295px;
  min-width: 295px;
  max-width: 295px;
  flex-shrink: 0;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 40;
}

.greed-sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px 16px;
}

.greed-server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.greed-server-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-default);
}

.greed-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin: 10px 0 14px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 12px;
  transition: all 0.15s ease;
}
.greed-search-bar:hover {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.05);
}

.greed-nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 12px 10px 4px;
  letter-spacing: 0.02em;
}

.greed-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  transition: all 0.15s ease;
}
.greed-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.greed-nav-link.active {
  color: #ffffff !important;
  background: #1c1c21 !important;
  font-weight: 600;
}

.greed-nav-link svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  flex-shrink: 0;
}
.greed-nav-link.active svg {
  opacity: 1;
}

/* User Profile footer in sidebar */
.greed-user-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.01);
  flex-shrink: 0;
}

/* Top Breadcrumb Header */
.greed-top-bar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 30;
}

.greed-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.greed-breadcrumbs .crumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Main Content Area */
.greed-main-content {
  flex: 1;
  padding: 32px 48px;
  max-width: 1400px;
  width: 100%;
}

.greed-page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.greed-page-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

/* Pill Tabs */
.greed-tab-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 28px;
}

.greed-tab-btn {
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.greed-tab-btn:hover {
  color: var(--text-primary);
}
.greed-tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Section Titles */
.greed-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 10px;
}

/* Standard Greed Settings Card */
.greed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease;
}
.greed-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.greed-card-header {
  margin-bottom: 14px;
}
.greed-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.greed-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Form Controls */
.greed-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease;
}
.greed-input:focus {
  border-color: var(--border-focus);
}

.greed-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e929b' 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 12px center;
  padding-right: 36px;
}
.greed-select:focus {
  border-color: var(--border-focus);
}

/* Buttons */
.greed-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.greed-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.greed-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  cursor: pointer;
  transition: all 0.15s ease;
}
.greed-btn-primary:hover {
  opacity: 0.9;
}

/* Empty State Card */
.greed-empty-box {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 44px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.greed-empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.greed-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.greed-empty-desc {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 360px;
}

/* Stat Metrics Card (Overview) */
.greed-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 16px 18px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}
.greed-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}
.greed-stat-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0 2px;
}
.greed-stat-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9999px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Server Switcher Modal / Dropdown */
.greed-switcher-dropdown {
  position: absolute;
  top: 110px;
  left: 12px;
  right: 12px;
  width: auto;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85);
  z-index: 100;
  display: none;
}
.greed-switcher-dropdown.show {
  display: block;
  animation: greedFadeDown 0.22s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes greedFadeDown {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sidebar Header Top Banner & Ambient Backdrop (Images 1 & 2) */
.greed-sidebar-banner-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 145px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.greed-sidebar-banner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) contrast(1.15) saturate(1.2);
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.greed-sidebar-banner-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, rgba(88, 101, 242, 0.22) 0%, rgba(18, 18, 22, 0) 80%),
              linear-gradient(180deg, rgba(7, 7, 9, 0.1) 0%, rgba(7, 7, 9, 0.6) 50%, #070709 100%);
  z-index: 2;
}

/* Authentic, crisp dot grid matching Greed (Screenshots 5, 6, 8) */
.greed-sidebar-header-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.25px, transparent 1.25px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 3;
}

/* Ambient header background and dots for main content viewport (Screenshot 1) */
.greed-main-viewport-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 70% 200px at 15% 0%, rgba(88, 101, 242, 0.18) 0%, transparent 80%),
              linear-gradient(180deg, rgba(14, 15, 20, 0.6) 0%, #070709 100%);
}
.greed-main-viewport-header-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.25px, transparent 1.25px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Squircle Back Button (Images 3, 4, 5) */
.greed-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(.22, 1, .36, 1);
}
.greed-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

/* User Popover Menu (Images 1 & 2) */
.greed-user-popover {
  position: absolute;
  bottom: 72px;
  left: 12px;
  right: 12px;
  width: auto;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.85);
  z-index: 100;
}
.greed-user-popover.show {
  display: block !important;
  animation: greedSlideUp 0.22s cubic-bezier(.22, 1, .36, 1) forwards;
}
.user-popover-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e4e4e7;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.user-popover-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
.user-popover-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 6px;
}

.user-lang-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}
.user-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}
.user-lang-dropdown {
  margin-top: 6px;
  padding: 8px;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  animation: greedFadeDown 0.18s cubic-bezier(.22, 1, .36, 1) forwards;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  color: #8e929b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.lang-option.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
}
.lang-sub {
  font-size: 10px;
  color: #525660;
}

/* Switch Toggle (iOS / Greed style) */
.greed-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.greed-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.greed-switch-slider,
.greed-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #27272a;
  transition: .2s ease;
  border-radius: 9999px;
}
.greed-switch-slider:before,
.greed-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s ease;
  border-radius: 50%;
}
.greed-switch input:checked + .greed-switch-slider,
.greed-switch input:checked + .greed-slider {
  background-color: #ffffff;
}
.greed-switch input:checked + .greed-switch-slider:before,
.greed-switch input:checked + .greed-slider:before {
  transform: translateX(16px);
  background-color: #000000;
}

/* Discord Profile Card Preview */
.greed-discord-preview-card {
  width: 290px;
  background: #111216;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.greed-discord-banner {
  height: 96px;
  background: #202228;
  position: relative;
  background-size: cover;
  background-position: center;
}
.greed-discord-avatar-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 5px solid #111216;
  margin-top: -34px;
  margin-left: 14px;
  background: #18191c;
  overflow: hidden;
  position: relative;
}
.greed-discord-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #5865f2;
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Utilities */
.hidden {
  display: none;
}

/* ==========================================================================
   GREED.BEST AUTHENTIC ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* 1. Keyframes */
@keyframes greedFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes greedScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes greedSaveBarSlide {
  0% {
    transform: translate(-50%, 120%);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes greedShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes greedPulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(35, 165, 90, 0);
  }
}

@keyframes greedToastSlide {
  0% {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 2. Staggered Entrance Utility Classes */
.greed-animate-in {
  animation: greedFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.greed-stagger-1 { animation-delay: 0.04s; }
.greed-stagger-2 { animation-delay: 0.08s; }
.greed-stagger-3 { animation-delay: 0.12s; }
.greed-stagger-4 { animation-delay: 0.16s; }
.greed-stagger-5 { animation-delay: 0.20s; }

/* 3. Enhanced Card Micro-Interactions */
.greed-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.greed-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background-color: rgba(20, 21, 27, 0.85) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(88, 101, 242, 0.04);
}

/* 4. Enhanced Spring Switch Toggle (Pixel-Perfect Greed Style) */
.greed-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.greed-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.greed-switch-slider,
.greed-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-radius: 9999px;
}
.greed-switch-slider:before,
.greed-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}
.greed-switch input:checked + .greed-switch-slider,
.greed-switch input:checked + .greed-slider {
  background-color: #ffffff;
  border-color: #ffffff;
}
.greed-switch input:checked + .greed-switch-slider:before,
.greed-switch input:checked + .greed-slider:before {
  transform: translateX(18px);
  background-color: #070709;
}

/* 5. Floating Save Bar (Unsaved Changes) */
.greed-save-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: rgba(15, 16, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  animation: greedSaveBarSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.greed-save-bar.hidden {
  display: none;
}

/* 6. Buttons & Inputs Active States */
.greed-btn-primary, .greed-btn-outline {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.greed-btn-primary:active, .greed-btn-outline:active {
  transform: scale(0.97);
}
.greed-input:focus, .greed-select:focus, textarea.greed-input:focus {
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

/* 7. Skeleton Shimmer Loader */
.greed-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: greedShimmer 2s infinite ease-in-out;
  border-radius: 8px;
}

/* 8. Modern Toast Notification */
#greed-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(16, 17, 21, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}


/* ==========================================================================
   VIDEO-MATCHED GREED SMOOTHNESS & SERVER SELECTION ENHANCEMENTS
   ========================================================================== */

.server-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #8e929b;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.server-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.server-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}
.server-tab span {
  font-size: 11px;
  color: #8e929b;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 10px;
}
.server-tab.active span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.greed-server-select-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #101115;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}
.greed-server-select-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px -8px rgba(0, 0, 0, 0.7);
}
.greed-server-card-banner {
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.1) 100%);
  position: relative;
}
.greed-server-card-body {
  padding: 0 20px 20px;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.greed-btn-open-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: #ffffff;
  color: #070709;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}
.greed-btn-open-dashboard:hover {
  background: #f0f0f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}
.greed-btn-add-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.greed-btn-add-bot:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}

.greed-content-transition {
  animation: greedFadeInUp 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Pill Tabs matching Greed Image 4 */
.greed-pill-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.greed-pill-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #717682;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  outline: none;
  text-decoration: none;
}

.greed-pill-tab:hover {
  color: #ffffff;
}

.greed-pill-tab.active {
  background: #18191e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Smooth tab content cross-fade */
.settings-tab-content,
.customise-tab-content {
  animation: greedTabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes greedTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Greed Profile Customization Specific Styles */
.surprise-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.surprise-me-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
  background: linear-gradient(135deg, #6875f5 0%, #5865F2 100%);
}
.surprise-me-btn:active {
  transform: translateY(1px) scale(0.98);
}
.surprise-me-btn .dice-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.surprise-me-btn:hover .dice-icon {
  transform: rotate(180deg) scale(1.15);
}

.font-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}
.font-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.font-card.active {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
.font-card .font-check-badge {
  display: none !important;
}

.effect-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}
.effect-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.effect-card.active {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}
.effect-card .effect-check-badge {
  display: none !important;
}

.color-swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  outline: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.color-swatch-circle:hover {
  transform: scale(1.08);
}
.color-swatch-circle.active {
  box-shadow: 0 0 0 2px #0a0a0c, 0 0 0 4px rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}
.color-swatch-circle.is-none::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 2px;
  width: 24px;
  height: 2px;
  background: #717682;
  transform: rotate(-45deg);
}

.effect-card[data-effect="gradient"]:hover .effect-sample-text {
  animation: gradShift 1.2s ease infinite alternate;
}
@keyframes gradShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(60deg); }
}

.effect-card[data-effect="neon"]:hover .effect-sample-text {
  animation: neonHoverPulse 0.5s ease-in-out infinite alternate;
}
@keyframes neonHoverPulse {
  0% { text-shadow: 0 0 6px #c084fc, 0 0 12px rgba(192,132,252,0.5); }
  100% { text-shadow: 0 0 14px #e879f9, 0 0 24px rgba(232,121,249,0.8); }
}

.effect-card[data-effect="toon"]:hover .effect-sample-text {
  animation: toonHoverBounce 0.4s ease-in-out infinite alternate;
}
@keyframes toonHoverBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2px); }
}

.effect-card[data-effect="pop"]:hover .effect-sample-text {
  animation: popHoverWiggle 0.4s ease-in-out infinite alternate;
}
@keyframes popHoverWiggle {
  0% { transform: translate(0, 0); }
  100% { transform: translate(1.5px, 1.5px); }
}

.effect-card[data-effect="gummy"]:hover .effect-sample-text {
  animation: gummyHoverBounce 0.4s ease-in-out infinite alternate;
}
@keyframes gummyHoverBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.effect-card[data-effect="prism"]:hover .effect-sample-text {
  animation: prismHoverWave 1.5s linear infinite;
}
@keyframes prismHoverWave {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Gradient Stop Pins (1:1 with Discord Gradient Editor) */
.gradient-stop-pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid #2b2d31;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 5;
}
.gradient-stop-pin:hover {
  transform: translateY(-50%) scale(1.15);
}
.gradient-stop-pin.active {
  border-color: #5865F2 !important;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.45), 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-50%) scale(1.2) !important;
}
.stop-pin-indicator {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #06B6D4;
}

/* Name Display Effects */
.name-effect-solid {
  color: #ffffff;
}
.name-effect-gradient {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.name-effect-neon {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.8), 0 0 20px rgba(168, 85, 247, 0.5);
}
.name-effect-toon {
  color: #fb7185;
  text-shadow: 2px 2px 0px #881337, 3px 3px 0px #000;
}
.name-effect-pop {
  color: #2dd4bf;
  text-shadow: -1px -1px 0 #0f766e, 1px -1px 0 #0f766e, -1px 1px 0 #0f766e, 1px 1px 0 #0f766e;
}

/* Authentic Discord Nitro Effect Animations on Hover */
@keyframes toonHoverBounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(-1.5deg); }
}

@keyframes popHoverWiggle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.04); }
}

@keyframes neonHoverPulse {
  0%, 100% { filter: drop-shadow(0 0 4px #c084fc); }
  50% { filter: drop-shadow(0 0 12px #c084fc); }
}

.effect-card[data-effect="toon"]:hover {
  animation: toonHoverBounce 0.4s ease-in-out infinite;
}

.effect-card[data-effect="pop"]:hover {
  animation: popHoverWiggle 0.4s ease-in-out infinite;
}

.effect-card[data-effect="neon"]:hover {
  animation: neonHoverPulse 0.6s ease-in-out infinite;
}

/* ==========================================================================
   Greed Authentic Smooth Slide & Modal Animations (cubic-bezier(.22, 1, .36, 1))
   ========================================================================== */
@keyframes greedSlideUp {
  0% {
    transform: translate(-50%, 40px) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

@keyframes greedModalEnter {
  0% {
    transform: scale(0.94) translateY(12px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#customise-save-bar {
  animation: greedSlideUp 0.28s cubic-bezier(.22, 1, .36, 1) forwards;
  transition: transform 0.28s cubic-bezier(.22, 1, .36, 1), opacity 0.28s cubic-bezier(.22, 1, .36, 1);
}

.greed-modal-content,
#autopfp-modal > div,
#add-channel-modal > div {
  animation: greedModalEnter 0.24s cubic-bezier(.22, 1, .36, 1) forwards;
}

.greed-nav-link {
  transition: all 0.18s cubic-bezier(.22, 1, .36, 1) !important;
}

.customise-tab-btn,
.server-tab,
.greed-pill-tab {
  transition: all 0.18s cubic-bezier(.22, 1, .36, 1) !important;
}

/* Color Circle Swatches */
.color-swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  border: 2px solid transparent;
}
.color-swatch-circle:hover {
  transform: scale(1.1);
}
.color-swatch-circle.active {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   FULL RESPONSIVE & MOBILE OPTIMIZATION (Phones, Tablets, Any Screen)
   ========================================================================== */
.greed-mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.greed-mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.greed-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
}
.greed-sidebar-backdrop.show {
  display: block;
}

@media (max-width: 1024px) {
  .greed-mobile-menu-btn {
    display: inline-flex !important;
  }

  .greed-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100 !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 16px 0 48px rgba(0, 0, 0, 0.85);
  }
  .greed-sidebar.open {
    transform: translateX(0);
  }

  .greed-top-bar {
    padding: 0 16px !important;
    gap: 10px;
  }

  .greed-main-content {
    padding: 20px 18px 80px !important;
  }

  /* Collapse 2-column & customizer/welcomer grids on tablet/mobile */
  .greed-main-content [style*="grid-template-columns:1fr 340px"],
  .greed-main-content [style*="grid-template-columns: 1fr 340px"],
  .greed-main-content [style*="grid-template-columns:1fr 380px"],
  .greed-main-content [style*="grid-template-columns: 1fr 380px"],
  .greed-main-content [style*="grid-template-columns:1fr 400px"],
  .greed-main-content [style*="grid-template-columns: 1fr 400px"],
  .greed-main-content [style*="grid-template-columns:1fr 420px"],
  .greed-main-content [style*="grid-template-columns: 1fr 420px"],
  .greed-main-content [style*="grid-template-columns:1.3fr 1fr"],
  .greed-main-content [style*="grid-template-columns: 1.3fr 1fr"],
  .greed-main-content [style*="grid-template-columns:1.5fr 1fr"],
  .greed-main-content [style*="grid-template-columns: 1.5fr 1fr"],
  .greed-main-content [style*="grid-template-columns:1fr 1.5fr auto"],
  .greed-main-content [style*="grid-template-columns: 1fr 1.5fr auto"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .greed-main-content [style*="position:sticky"],
  .greed-main-content [style*="position: sticky"] {
    position: static !important;
  }
}

@media (max-width: 768px) {
  .greed-main-content {
    padding: 16px 14px 90px !important;
  }

  .greed-main-content h1,
  .greed-page-title {
    font-size: 24px !important;
  }

  .greed-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }

  /* Collapse 2-col and multi-col grids on phones */
  .greed-main-content [style*="grid-template-columns:1fr 1fr"],
  .greed-main-content [style*="grid-template-columns: 1fr 1fr"],
  .greed-main-content [style*="grid-template-columns:repeat(4"],
  .greed-main-content [style*="grid-template-columns: repeat(4"],
  .greed-main-content [style*="grid-template-columns:repeat(3"],
  .greed-main-content [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Horizontal scroll for tabs */
  .greed-pill-tabs,
  .greed-tab-group {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .greed-pill-tabs::-webkit-scrollbar,
  .greed-tab-group::-webkit-scrollbar {
    display: none;
  }
  .greed-pill-tab,
  .greed-tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Responsive tables (Automod, Antinuke Modules) */
  .greed-card > table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Logging pickers full width on mobile */
  .logging-channel-picker {
    width: 100% !important;
  }

  /* Emoji picker full width on mobile */
  #emoji-picker-dropdown {
    min-width: 0 !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Discord profile preview card */
  .greed-discord-preview-card {
    width: 100% !important;
    max-width: 340px;
    margin: 0 auto;
  }

  /* Modals fit any phone screen */
  #an-add-modal > div,
  #modal-add-ar > div,
  #add-channel-modal > div,
  #autopfp-modal > div {
    width: calc(100vw - 24px) !important;
    max-width: 440px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 18px !important;
  }

  /* Floating save bars */
  #an-save-bar,
  #save-bar,
  #customise-save-bar,
  #welcome-save-bar {
    width: calc(100vw - 24px) !important;
    max-width: 460px !important;
    padding: 10px 14px !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* Compact topbar breadcrumbs */
  .greed-breadcrumbs {
    font-size: 11px !important;
    gap: 4px !important;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .greed-sidebar {
    width: 84vw !important;
    min-width: 0 !important;
    max-width: 300px !important;
  }

  .greed-top-bar a span,
  .greed-top-bar .greed-pill-tabs {
    display: none !important;
  }
}



