/* ============================================================
   KR Dev X — Layout (Taskbar, Dashboard Grid, Sidebar, Stats,
   Hero, Banners, Dock, Panels, Footer, Toast, Background)
   ============================================================ */

/* ── Dashboard Container ── */
.dashboard-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.banner-row {
  width: 100%;
}

.content-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--spacing-md);
  align-items: start;
}

/* ── Main Content ── */
.main-content {
  min-width: 0;
}

.content-body {
  min-width: 0;
}

/* ============================================================
   TOP TASKBAR / HEADER — fiveleaks pill-glass
   ============================================================ */
.top-taskbar {
  position: sticky;
  top: 12px;
  z-index: var(--z-header);
  width: calc(100% - 24px);
  max-width: 1120px;
  margin: 12px auto 0;
  height: 56px;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25);
}

.taskbar-inner {
  max-width: none;
  margin: 0;
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Brand */
.taskbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-word {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-word strong {
  color: var(--accent-primary);
  font-weight: 700;
}

/* Primary Nav */
.taskbar-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
}

.taskbar-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.taskbar-link i {
  font-size: 0.85rem;
}

.taskbar-link:hover {
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 10px rgba(139,92,246,0.08);
}

.taskbar-link.active {
  color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
}

/* Per-link hover/active colors */
.taskbar-nav-toolkit:hover,
.taskbar-nav-toolkit.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}
.taskbar-nav-toolkit .nav-underline { background: #22c55e; }

.taskbar-nav-shame:hover,
.taskbar-nav-shame.active {
  color: #f97316;
  background: rgba(249, 115, 22, 0.08);
}
.taskbar-nav-shame .nav-underline { background: #f97316; }

.taskbar-nav-guides:hover,
.taskbar-nav-guides.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}
.taskbar-nav-guides .nav-underline { background: #38bdf8; }

.taskbar-nav-leaderboard:hover,
.taskbar-nav-leaderboard.active {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.10);
}
.taskbar-nav-leaderboard .nav-underline { background: #fbbf24; }

/* ── Toolkit dropdown (fiveleaks Tools menu) ── */
.toolkit-menu-wrap {
  position: relative;
}

.toolkit-chevron {
  font-size: 0.62rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.toolkit-menu-wrap.open .toolkit-chevron {
  transform: rotate(180deg);
}

.toolkit-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  padding: 8px;
  background: rgba(14, 14, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 300;
}

.toolkit-menu-wrap.open .toolkit-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.toolkit-dd-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 6px 10px 8px;
}

.toolkit-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-family: var(--font-family);
  cursor: pointer;
  opacity: 1;
  text-align: start;
  transition: background 0.15s ease, color 0.15s ease;
}

.toolkit-dd-item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.toolkit-dd-item:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.toolkit-dd-item:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

.toolkit-dd-item i {
  width: 18px;
  text-align: center;
  color: #a78bfa;
}

.toolkit-dd-name {
  flex: 1;
}

.toolkit-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  white-space: nowrap;
}

.toolkit-dd-divider {
  height: 1px;
  margin: 6px 4px;
  background: rgba(255, 255, 255, 0.08);
}

.toolkit-dd-support {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}

.toolkit-dd-support:hover {
  background: rgba(88, 101, 242, 0.12);
  color: #bfdbfe;
}

.nav-underline {
  display: none;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.taskbar-link:hover .nav-underline,
.taskbar-link.active .nav-underline {
  display: block;
  width: 65%;
}

/* Taskbar Actions */
.taskbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.taskbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-family);
}

.taskbar-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 10px rgba(139,92,246,0.08);
}

.taskbar-pill i {
  font-size: 0.85rem;
}

.upload-pill {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.25);
  color: #a78bfa;
}

.upload-pill:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 10px rgba(139,92,246,0.12);
}

/* Notification Badge */
.notif-count {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-full);
  line-height: 1;
  min-width: 16px;
  text-align: center;
}

/* Guest Discord Login Button */
.guest-discord-login-btn {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.35);
  color: #5865F2;
}

.guest-discord-login-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
  color: #7289DA;
}

/* ============================================================
   LOCALE SWITCHER
   ============================================================ */
.locale-switcher-wrap {
  position: relative;
}

.locale-pill {
  font-size: 0.78rem;
}

.locale-chevron {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.locale-switcher-wrap.open .locale-chevron {
  transform: rotate(180deg);
}

.locale-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: var(--z-dropdown);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.locale-switcher-wrap.open .locale-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.locale-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.locale-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.locale-option.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-primary);
}

.locale-flag {
  font-size: 1rem;
  line-height: 1;
}

.locale-name {
  flex: 1;
  text-align: left;
}

.locale-check {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.locale-option.active .locale-check {
  opacity: 1;
  color: var(--accent-primary);
}

/* ============================================================
   USER MENU (pill trigger + rich dropdown)
   ============================================================ */
.user-menu-wrap {
  position: relative;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-family);
  color: var(--text-primary);
  max-width: 160px;
}

.user-menu-trigger:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.user-trigger-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34, 197, 94, 0.55);
  flex-shrink: 0;
  display: block;
}

.user-trigger-name {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.user-trigger-chevron {
  font-size: 0.6rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.user-menu-wrap.open .user-trigger-chevron {
  transform: rotate(180deg);
}

/* Legacy circular avatar trigger (still used on small screens) */
.user-avatar,
.taskbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.4);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: transparent;
  padding: 0;
}

.user-avatar:hover,
.taskbar-avatar:hover {
  border-color: var(--accent-primary);
}

.user-avatar img,
.taskbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Icon-only circular taskbar pills */
.taskbar-icon-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-family);
  flex-shrink: 0;
}

.taskbar-icon-pill i {
  font-size: 0.85rem;
}

.taskbar-icon-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.taskbar-icon-pill .notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
}

/* User dropdown (reference-style card) */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: rgba(15, 15, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: var(--z-dropdown);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-menu-wrap.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.65rem 0.55rem;
}

.user-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34, 197, 94, 0.5);
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.user-dropdown-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-role {
  font-size: 0.72rem;
  font-weight: 600;
}

/* Stats row: Downloads / Level / XP */
.user-dropdown-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0.35rem 0.4rem 0.55rem;
}

.uds-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-align: center;
}

.uds-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.uds-num.uds-xp {
  color: #fbbf24;
}

.uds-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-dropdown-section {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  padding: 0.45rem 0.65rem 0.3rem;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.3rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.58rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-family);
  text-align: start;
  text-decoration: none;
  box-sizing: border-box;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.user-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.user-dropdown-item:hover i {
  color: #a78bfa;
}

.user-dropdown-link {
  color: #38bdf8;
}

.user-dropdown-link i {
  color: #5865f2 !important;
}

.user-dropdown-link:hover {
  background: rgba(88, 101, 242, 0.12);
  color: #7dd3fc;
}

.user-dropdown-logout {
  color: #f87171;
}

.user-dropdown-logout i {
  color: #f87171 !important;
}

.user-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

/* Legacy logout color remnant kept for safety */
.user-dropdown-logout {
  color: #ef4444;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar,
.fv-sidebar {
  position: sticky;
  top: calc(var(--taskbar-height) + var(--spacing-md));
  max-height: calc(100vh - var(--taskbar-height) - var(--spacing-xl));
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.sidebar::-webkit-scrollbar,
.fv-sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb,
.fv-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.sidebar-filters {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-block {
  padding: 0.6rem 0;
}

.fl-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Search */
.fl-search-wrap {
  position: relative;
}

.fl-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.fl-search-input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: var(--font-family);
}

.fl-search-input::placeholder {
  color: var(--text-muted);
}

.fl-search-input:focus {
  border-color: rgba(139, 92, 246, 0.4);
}

/* Custom Select */
.fl-custom-select {
  position: relative;
}

.fl-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  font-family: var(--font-family);
}

.fl-custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.fl-custom-select-value {
  font-weight: 500;
}

.fl-custom-select-chevron {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.fl-custom-select.open .fl-custom-select-chevron {
  transform: rotate(180deg);
}

.fl-custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: var(--z-dropdown);
  max-height: 200px;
  overflow-y: auto;
}

.fl-custom-select.open .fl-custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fl-custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  text-align: left;
}

.fl-custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.fl-custom-select-option.selected {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-primary);
}

.fl-custom-select-option svg {
  display: none;
  margin-left: auto;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.fl-custom-select-option.selected svg {
  display: block;
}

/* Pricing Grid */
.fl-pricing-grid {
  display: flex;
  gap: 0.35rem;
}

.fl-pricing-btn {
  flex: 1;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  text-align: center;
}

.fl-pricing-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.fl-pricing-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-primary);
}

/* Tag / Theme Grid */
.fl-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.fl-tag-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  text-align: center;
  justify-content: center;
}

.fl-tag-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.fl-tag-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-primary);
}

.fl-tag-count {
  font-size: 0.65rem;
  opacity: 0.5;
  margin-left: auto;
}

/* Category List */
.fl-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fl-cat-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-family);
  text-align: left;
  position: relative;
}

.fl-cat-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 16px rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.3);
}

.fl-cat-btn.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
}

.fl-cat-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.fl-cat-btn.active .fl-cat-bar {
  opacity: 1;
}

.fl-cat-icon {
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.fl-cat-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-cat-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}

.fl-cat-btn.active .fl-cat-count {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
}

.fl-cat-shimmer {
  display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.fl-hero {
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.fl-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.fl-hero-gradient {
  background: linear-gradient(135deg, var(--accent-primary), #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fl-hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.fl-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.75rem;
  padding: 0.75rem 0;
  align-items: center;
}

.fl-stat-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.fl-stat-tile:hover,
.fl-stat-tile.is-open,
.fl-stat-tile:focus-visible {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 18px rgba(139,92,246,0.14);
  z-index: 40;
}

/* Hover dropdown panel (fiveleaks-style) */
.fl-stats-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.97);
  min-width: 260px;
  max-width: min(320px, 90vw);
  background: rgba(12, 12, 16, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.22s;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 350;
}

.fl-stat-tile.is-open .fl-stats-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fl-sp-head {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.45rem 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.25rem;
}

.fl-sp-body {
  padding: 0.2rem 0;
}

.fl-sp-scroll {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.fl-sp-group {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  padding: 0.4rem 0.55rem 0.2rem;
}

.fl-sp-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 9px;
  transition: background 0.15s ease;
}

.fl-sp-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fl-sp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fl-sp-guest {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
}

.fl-sp-thumb {
  width: 36px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.fl-sp-dl-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.fl-sp-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-sp-note {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-sp-empty,
.fl-sp-loading {
  padding: 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.fl-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.fl-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fl-stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.fl-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  width: 100%;
  text-align: center;
}

/* Premium Callout */
.premium-callout-new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.premium-callout-new:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.14));
  border-color: rgba(245, 158, 11, 0.4);
}

.premium-left-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-icon-new {
  font-size: 1rem;
  color: #f59e0b;
}

.premium-text-new {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.premium-text-new strong {
  color: #fbbf24;
}

.premium-btn-new {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ============================================================
   BANNERS
   ============================================================ */
.dashboard-top-banner {
  width: 100%;
}

.ads-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ads-label-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.ads-label-text {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.small-ads-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dashboard-small-ad {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.dashboard-small-ad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
  transition: none;
}

.dashboard-small-ad:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 18px rgba(139, 92, 246, 0.12);
}

.dashboard-small-ad:hover img {
  transform: none;
}

/* ============================================================
   PRODUCT GRID / TOOLBAR / PAGINATION
   ============================================================ */
.fv-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.fv-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.fv-toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.fv-toolbar-center .fv-pagination {
  margin: 0;
}

.fv-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.fv-releases-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fv-releases-count strong {
  color: var(--text-primary);
}

.fv-show-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.fv-show-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.fv-show-btn {
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.fv-show-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.fv-show-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Scripts Grid */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Bottom Toolbar */
.fv-bottom-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fv-bottom-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fv-bottom-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fv-pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.fv-page-btn {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-family);
}

.fv-page-btn:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 10px rgba(139,92,246,0.08);
}

.fv-page-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--accent-primary);
}

.fv-page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.fv-page-ellipsis {
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0 0.25rem;
}

.fv-page-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fv-show-buttons {
  display: flex;
  gap: 0.25rem;
}

/* ============================================================
   FLOATING DOCK (Right Side)
   ============================================================ */
.fl-rail-root {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--z-panel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fl-rail-bar {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.fl-rail-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.fl-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.fl-rail-btn.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
}

.fl-rail-expanded {
  display: none;
  width: 280px;
  max-height: 70vh;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.fl-rail-root.expanded .fl-rail-expanded {
  display: flex;
  flex-direction: column;
}

.fl-rail-expanded-icons {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem;
  background: rgba(10, 10, 14, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.fl-rail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.fl-rail-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fl-rail-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fl-rail-panel-close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.fl-rail-panel-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.fl-rail-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.fl-rail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fl-rail-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fl-rail-item.highlight {
  border-left: 2px solid var(--accent-primary);
  padding-left: calc(0.65rem - 2px);
}

.fl-rail-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.fl-rail-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fl-rail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

/* ============================================================
   SIDE PANELS (Notifications, Saved)
   ============================================================ */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background: rgba(8, 8, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: var(--z-panel);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.right-panel.active {
  transform: translateX(0);
}

.right-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-panel) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.right-panel-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.close-panel {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.close-panel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  background: rgba(139, 92, 246, 0.06);
}

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

.notif-icon.success {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.notif-icon.upload {
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
}

.notif-icon.comment {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.notif-icon.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.saved-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.saved-item-info {
  flex: 1;
  min-width: 0;
}

.saved-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-item-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.global-site-footer {
  margin-top: 3rem;
  padding: 2rem var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer-nav-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--text-primary);
}

.footer-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-full);
  color: #5865F2;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.footer-discord-btn:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

.footer-sub-link {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toastContainer {
  position: fixed;
  top: calc(var(--taskbar-height) + 12px);
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  max-width: 360px;
}

.toast.info    { border-left: 3px solid #3b82f6; }
.toast.success { border-left: 3px solid #22c55e; }
.toast.warn,
.toast.warning { border-left: 3px solid #f59e0b; }
.toast.error   { border-left: 3px solid #ef4444; }

.toast i {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.toast.info i    { color: #3b82f6; }
.toast.success i { color: #22c55e; }
.toast.warn i,
.toast.warning i { color: #f59e0b; }
.toast.error i   { color: #ef4444; }

.toast-out {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

/* ============================================================
   BACKGROUND EFFECTS
   ============================================================ */
.stellar-comets {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.comet {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.6), transparent);
  border-radius: 2px;
  animation: cometFall linear infinite;
  opacity: 0;
}

.comet:nth-child(1)  { left: 5%;  animation-duration: 4s; animation-delay: 0s; }
.comet:nth-child(2)  { left: 12%; animation-duration: 5s; animation-delay: 1s; }
.comet:nth-child(3)  { left: 22%; animation-duration: 4.5s; animation-delay: 0.5s; }
.comet:nth-child(4)  { left: 35%; animation-duration: 5.5s; animation-delay: 2s; }
.comet:nth-child(5)  { left: 45%; animation-duration: 4s; animation-delay: 1.5s; }
.comet:nth-child(6)  { left: 55%; animation-duration: 5s; animation-delay: 0.8s; }
.comet:nth-child(7)  { left: 65%; animation-duration: 4.5s; animation-delay: 2.5s; }
.comet:nth-child(8)  { left: 75%; animation-duration: 5.5s; animation-delay: 0.3s; }
.comet:nth-child(9)  { left: 82%; animation-duration: 4s; animation-delay: 1.8s; }
.comet:nth-child(10) { left: 88%; animation-duration: 5s; animation-delay: 3s; }
.comet:nth-child(11) { left: 93%; animation-duration: 4.5s; animation-delay: 0.7s; }
.comet:nth-child(12) { left: 97%; animation-duration: 5.5s; animation-delay: 2.2s; }

@keyframes cometFall {
  0%   { top: -100px; opacity: 0; transform: rotate(15deg); }
  10%  { opacity: 0.7; }
  80%  { opacity: 0.3; }
  100% { top: calc(100vh + 100px); opacity: 0; transform: rotate(15deg); }
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Spin animation (used by loading spinners) */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .scripts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-shell {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 900px) {
  .taskbar-nav {
    display: none;
  }
  .content-shell {
    grid-template-columns: 1fr;
  }
  .sidebar,
  .fv-sidebar {
    position: static;
    max-height: none;
  }
  .fl-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .premium-callout-new {
    grid-column: 1 / -1;
  }
  .small-ads-grid {
    grid-template-columns: 1fr;
  }
  .fv-toolbar-center {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
  }
}

@media (max-width: 600px) {
  .scripts-grid {
    grid-template-columns: 1fr;
  }
  .fl-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .premium-callout-new {
    grid-column: 1 / -1;
  }
  .taskbar-actions .taskbar-pill span {
    display: none;
  }
  .right-panel {
    width: 100%;
  }
}

/* ============================================================
   RTL SUPPORT — Arabic Language Layout
   ============================================================ */

[dir="rtl"] {
  /* Taskbar */
  .taskbar-brand {
    margin-right: 0;
    margin-left: 0.5rem;
  }

  .taskbar-nav {
    margin-left: 0;
    margin-right: 0.5rem;
  }

  .taskbar-actions {
    margin-left: 0;
    margin-right: auto;
  }

  /* Sidebar */
  .sidebar {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .fl-cat-btn {
    text-align: right;
  }

  .fl-cat-bar {
    left: auto;
    right: 0;
  }

  /* Footer */
  .global-site-footer [style*="text-transform: uppercase"] {
    text-align: right;
  }

  /* Card badges */
  .card-badges {
    right: auto;
    left: 0.5rem;
  }

  /* Modal */
  .sm-header {
    flex-direction: row-reverse;
  }

  /* Panels */
  .left-panel {
    left: auto;
    right: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .right-panel {
    right: auto;
    left: 0;
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Pagination */
  .fv-page-btn i {
    transform: scaleX(-1);
  }

  /* Nav underline positioning is centered, no change needed */
  .nav-underline {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Chevron icon in locale dropdown */
  .locale-chevron {
    transform: scaleX(-1);
  }

  /* Directional icons that should flip in RTL */
  [dir="rtl"] .fa-arrow-right,
  [dir="rtl"] .fa-chevron-right,
  [dir="rtl"] .fa-angle-right,
  [dir="rtl"] .fa-caret-right,
  [dir="rtl"] .fa-chevron-left {
    transform: scaleX(-1);
  }

  /* Directional icons that should NOT flip */
  [dir="rtl"] .fa-discord,
  [dir="rtl"] .fa-globe,
  [dir="rtl"] .fa-bell,
  [dir="rtl"] .fa-bookmark,
  [dir="rtl"] .fa-upload,
  [dir="rtl"] .fa-crown,
  [dir="rtl"] .fa-fire,
  [dir="rtl"] .fa-layer-group,
  [dir="rtl"] .fa-wrench,
  [dir="rtl"] .fa-book-open,
  [dir="rtl"] .fa-sign-out-alt,
  [dir="rtl"] .fa-shield-halved,
  [dir="rtl"] .fa-search,
  [dir="rtl"] .fa-calendar,
  [dir="rtl"] .fa-download {
    transform: none;
  }

  /* Content shell grid reorder */
  .content-shell {
    direction: rtl;
  }

  /* Product grid */
  .scripts-grid {
    direction: rtl;
  }

  /* Hero section */
  .hero-section {
    text-align: right;
  }

  /* Stats bar */
  .fl-stats-bar {
    direction: rtl;
  }

  /* Floating dock */
  .floating-dock {
    right: auto;
    left: 1rem;
  }

  /* Mobile responsive RTL overrides */
  @media (max-width: 1024px) {
    .taskbar-nav {
      gap: 0.1rem;
    }
    .taskbar-link {
      padding: 0.4rem 0.5rem;
      font-size: 0.75rem;
    }
  }
}
