/* ==========================================================================
   MANIFEST UGC &bull; CONTROL PANEL DESIGN SYSTEM
   Professional Roblox Group & Sales Management UI
   ========================================================================== */

:root {
  /* 90% Deep Dark Backgrounds */
  --bg-base: #07090D;
  --bg-sidebar: #0A0D12;
  --bg-topbar: #0A0D12;
  --bg-card: #0E1219;
  --bg-card-hover: #151A23;
  --bg-card-solid: #0E1219;
  --bg-card-secondary: #111620;
  --bg-input: #0B0F15;
  --bg-hover: #151A23;
  --bg-active: #17121D;

  /* Subtle Borders (60-80% opacity, ~#1C2330) */
  --border-subtle: #1C2330;
  --border-hover: #252C38;
  --border-light: #252C38;
  --border-purple: rgba(139, 53, 214, 0.35);
  --border-pink: rgba(215, 43, 131, 0.35);
  --border-focus: rgba(139, 53, 214, 0.45);

  /* 3% Manifest Accent: Mor-Pembe Gradient */
  --primary-gradient: linear-gradient(135deg, #8B35D6 0%, #D72B83 100%);
  --primary-hover: linear-gradient(135deg, #9d42ee 0%, #e63892 100%);
  --primary-gradient-hover: linear-gradient(135deg, #9d42ee 0%, #e63892 100%);

  --accent-purple: #8B35D6;
  --accent-purple-light: #B85AE8;
  --accent-pink: #D72B83;
  --accent-cyan: #8993A3;
  --accent-green: #5DBB91;
  --accent-amber: #C9A24D;
  --accent-red: #C96A6A;

  /* Typography Hierarchy */
  --text-primary: #F1F3F7;    /* Main headings & active titles */
  --text-secondary: #9AA3B2;  /* Secondary descriptions & body */
  --text-muted: #687386;      /* Metadata, dates, sub-labels */
  --text-dim: #596273;        /* Minor metadata */
  --text-placeholder: #596273;/* Inputs & placeholders */

  /* Semantic Status Colors (Muted Dark, NOT Neon) */
  --badge-success-bg: #10231C;
  --badge-success-text: #6CC49A;
  --badge-success-border: rgba(108, 196, 154, 0.2);

  --badge-warning-bg: #252015;
  --badge-warning-text: #C9A24D;
  --badge-warning-border: rgba(201, 162, 77, 0.2);

  --badge-danger-bg: #261717;
  --badge-danger-text: #C96A6A;
  --badge-danger-border: rgba(201, 106, 106, 0.2);

  --badge-purple-bg: #1A1325;
  --badge-purple-text: #B85AE8;
  --badge-purple-border: rgba(184, 90, 232, 0.2);

  --badge-gray-bg: #151A23;
  --badge-gray-text: #9AA3B2;
  --badge-gray-border: rgba(154, 163, 178, 0.2);

  /* Buttons */
  --btn-secondary-bg: #151A23;
  --btn-secondary-border: #252C38;
  --btn-secondary-text: #E5E7EB;
  --btn-secondary-hover: #1C2330;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow-purple: 0 0 16px rgba(139, 53, 214, 0.2);
  --transition-fast: 0.16s ease;
  --transition-smooth: 0.22s ease;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring-soft: cubic-bezier(0.25, 1.4, 0.5, 1);
  --transition-spring: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background 0.25s ease;
  --transition-spring-fast: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, background 0.2s ease;

  --sidebar-width: 260px;
  --sidebar-collapsed-width: 78px;
  --topbar-height: 66px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Modern Scrollbars (Eliminates ugly Windows default grey scrollbars & arrows) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Living Aurora Ambient Mesh Background */
.ambient-glow {
  display: block !important;
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(110px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.glow-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(139, 53, 214, 0.17) 0%, rgba(139, 53, 214, 0.05) 50%, transparent 70%);
  top: -100px;
  left: 60px;
  animation: auroraFloat1 20s ease-in-out infinite alternate;
}

.glow-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(215, 43, 131, 0.13) 0%, rgba(215, 43, 131, 0.04) 50%, transparent 70%);
  top: 30%;
  right: -80px;
  animation: auroraFloat2 24s ease-in-out infinite alternate;
}

.glow-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(139, 53, 214, 0.03) 50%, transparent 70%);
  bottom: -60px;
  left: 32%;
  animation: auroraFloat3 28s ease-in-out infinite alternate;
}

@keyframes auroraFloat1 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate3d(45px, 35px, 0) scale(1.12); opacity: 0.9; }
  100% { transform: translate3d(-30px, 60px, 0) scale(0.94); opacity: 0.65; }
}

@keyframes auroraFloat2 {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  50% { transform: translate3d(-55px, -45px, 0) scale(1.15); opacity: 0.9; }
  100% { transform: translate3d(35px, -25px, 0) scale(0.92); opacity: 0.55; }
}

@keyframes auroraFloat3 {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.55; }
  50% { transform: translate3d(35px, -35px, 0) scale(1.1); opacity: 0.8; }
  100% { transform: translate3d(-45px, 25px, 0) scale(1); opacity: 0.55; }
}

/* App Layout Grid */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  transition: width var(--transition-smooth);
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.brand-sparkle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.brand-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(120deg, #fff 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Sidebar Navigation Items & Sliding Active Indicator */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.nav-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 10px 4px;
  white-space: nowrap;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1),
              color 160ms ease,
              background-color 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease;
  will-change: transform;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  transform: translateX(2px);
}

/* Active Nav Item: 100% Rock-Solid, Beautifully Centered, Dark Matte + Mor Accent */
.nav-item.active .nav-link {
  background: #17121D !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  border: 1px solid var(--border-subtle) !important;
  border-left: 3px solid #8B35D6 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: none !important;
}

.nav-item.active .nav-link:hover {
  transform: none !important;
}

/* Sidebar Nav Matched Geometry Dynamic Spring Pill */
.sidebar-matched-indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-sm);
  background: #17121D;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #8B35D6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 16px rgba(139, 53, 214, 0.16);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
  will-change: transform, width, height;
  opacity: 0;
}

.sidebar-nav.has-matched-geometry .nav-item {
  position: relative;
  z-index: 2;
}

.sidebar-nav.has-matched-geometry .nav-item .nav-link {
  position: relative;
  z-index: 2;
  transition: color 180ms ease, transform 180ms ease;
}

.sidebar-nav.has-matched-geometry .nav-item.active .nav-link {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--text-primary) !important;
}

.nav-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #8993A3;
  opacity: 0.75;
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1),
              color 160ms ease,
              opacity 160ms ease;
}

.nav-link:hover .nav-icon {
  opacity: 0.95;
  transform: translateX(1px);
}

.nav-item.active .nav-icon {
  color: #B85AE8;
  opacity: 1;
  transform: scale(1.05);
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-badge.warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Sidebar Footer Bot Card */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.bot-account-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.bot-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid var(--accent-purple);
  background: #1e293b;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  display: block !important;
  box-sizing: border-box;
}

.bot-account-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  white-space: nowrap;
}

.bot-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.bot-role-tag {
  font-size: 11px;
  color: #c084fc;
  font-weight: 600;
}

/* Collapsed Sidebar Styles */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .brand-info,
.sidebar.collapsed .nav-group-title,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .bot-account-meta {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .sidebar-collapse-btn {
  transform: rotate(180deg);
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 12px 0;
}

.sidebar.collapsed .bot-account-widget {
  justify-content: center;
  padding: 6px 0;
  border: none;
  background: transparent;
}

/* ==========================================================================
   CONTENT WRAPPER & TOPBAR
   ========================================================================== */
.content-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-smooth);
  overflow-x: hidden;
  max-width: calc(100vw - var(--sidebar-width));
}

.sidebar.collapsed + .content-wrapper {
  margin-left: var(--sidebar-collapsed-width);
  max-width: calc(100vw - var(--sidebar-collapsed-width));
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  background: rgba(12, 15, 23, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Global Search Trigger (Ctrl + K) */
.global-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 280px;
  transition: var(--transition-fast);
}

.global-search-trigger:hover {
  border-color: var(--border-purple);
  color: var(--text-secondary);
}

.search-placeholder {
  font-size: 13px;
  flex: 1;
}

.search-kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted);
}

/* Topbar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.system-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
}

.system-status-badge.online {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.btn-header-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-header-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notif-badge-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-sidebar);
}

/* Notifications Dropdown Panel */
.notification-wrapper {
  position: relative;
}

.notif-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 340px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  z-index: 50;
  overflow: hidden;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-header h4 {
  font-size: 14px;
  font-weight: 700;
}

.notif-clear-btn {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-size: 12px;
  cursor: pointer;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-dim);
}

.notif-item-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   PAGE CONTAINER & VIEWS
   ========================================================================== */
.page-container {
  flex: 1;
  padding: 28px 32px 60px;
  position: relative;
  contain: layout style;
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.page-view {
  display: none;
  position: relative;
  width: 100%;
}

.page-view.active {
  display: block;
}

/* Page Enter (Matched Spring Morph + Subtle Scale + Depth Blur) */
.page-view.view-enter {
  animation: pageViewEnter 340ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform, filter;
}

/* Page Exit (Fast Smooth Soft Morph Out) */
.page-view.view-exit {
  display: block !important;
  animation: pageViewExit 110ms cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
  will-change: opacity, transform;
}

@keyframes pageViewEnter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
    filter: blur(3px);
  }
  65% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pageViewExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.995);
  }
}

/* Stagger System for Elements Inside Active View */
.page-view.view-enter .page-header {
  animation: staggerItemEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 0ms both;
}

.page-view.view-enter .filters-bar,
.page-view.view-enter .stepper-card,
.page-view.view-enter .sync-hero {
  animation: staggerItemEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
}

.page-view.view-enter .stats-grid-6,
.page-view.view-enter .stat-cards-grid,
.page-view.view-enter .prod-kpi-grid,
.page-view.view-enter .sync-stats-summary-row,
.page-view.view-enter .system-diagnostics-grid {
  animation: staggerItemEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 70ms both;
}

/* Micro-stagger for individual stat metric cards */
.page-view.view-enter .metric-card:nth-child(1) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both; }
.page-view.view-enter .metric-card:nth-child(2) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both; }
.page-view.view-enter .metric-card:nth-child(3) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }
.page-view.view-enter .metric-card:nth-child(4) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both; }
.page-view.view-enter .metric-card:nth-child(5) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both; }
.page-view.view-enter .metric-card:nth-child(6) { animation: staggerCardEnter 280ms cubic-bezier(0.22, 1, 0.36, 1) 210ms both; }

/* Stagger for main tables, charts, and grids */
.page-view.view-enter .dashboard-row-split,
.page-view.view-enter .dashboard-sales-vip-row,
.page-view.view-enter .dashboard-row-split-bottom,
.page-view.view-enter .dashboard-activity-status-row,
.page-view.view-enter .table-responsive,
.page-view.view-enter .roles-cards-grid,
.page-view.view-enter .products-grid,
.page-view.view-enter .lookup-layout,
.page-view.view-enter .settings-card,
.page-view.view-enter .pending-alert-card {
  animation: staggerItemEnter 300ms cubic-bezier(0.22, 1, 0.36, 1) 110ms both;
}

@keyframes staggerItemEnter {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggerCardEnter {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reduced Motion Override (A11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .page-view.view-enter,
  .page-view.view-exit,
  .page-view.view-enter * {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .nav-link,
  .nav-icon {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ANALYTICS CHART ANIMATIONS (Ultra-Smooth SaaS Motion)
   ========================================================================== */

/* 1. Line Path: Smooth dynamic draw with exact length */
.chart-line-animated {
  will-change: stroke-dashoffset;
}

/* 2. Area Fill: Soft, premium fade-in */
@keyframes chartAreaFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.chart-area-animated {
  opacity: 0;
  animation: chartAreaFadeIn 650ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards;
  will-change: opacity;
}

/* 3. Data Points: Stay 100% invisible until line finishes, then sequentially pop in */
@keyframes chartPointAppear {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.chart-point-animated {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: chartPointAppear 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity;
}

/* 4. Labels under data points: Fade and slide in synchronously */
@keyframes chartLabelAppear {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-label-animated {
  opacity: 0;
  transform: translateY(4px);
  animation: chartLabelAppear 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

/* 5. Micro-interactions on Hover */
.chart-point-group {
  cursor: pointer;
}

.chart-point-group:hover circle {
  stroke: #C03988 !important;
  stroke-width: 3.5px !important;
  fill: #FFFFFF !important;
  filter: drop-shadow(0 0 8px rgba(192, 57, 136, 0.85));
  transition: all 180ms ease;
}

.chart-point-group:hover text {
  fill: #FFFFFF !important;
  font-weight: 700;
  transition: fill 180ms ease;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   CARDS & COMMON COMPONENTS
   ========================================================================== */
.card, .glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-fast);
}

.card:hover, .glass-card:hover {
  border-color: var(--border-light);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

.link-muted {
  font-size: 12.5px;
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
}

.link-muted:hover {
  color: var(--accent-pink);
}

/* ==========================================================================
   DASHBOARD VIEW: 6 METRICS GRID
   ========================================================================== */
.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

/* Product Overview & Generic 4-Column KPI Grid */
.stat-cards-grid,
.prod-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  .stat-cards-grid,
  .prod-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stat-cards-grid,
  .prod-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease,
              background 0.25s ease;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.metric-card:hover {
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(168, 85, 247, 0.2);
  background: rgba(21, 26, 35, 0.95);
}

.metric-card:active {
  transform: translateY(-2px);
  transition-duration: 0.12s;
}

.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border-subtle);
  color: #8993A3;
}

.metric-icon.purple { color: var(--accent-purple-light); border-color: rgba(184, 90, 232, 0.25); }
.metric-icon.pink { color: var(--accent-pink); border-color: rgba(215, 43, 131, 0.25); }
.metric-icon.green { color: #5DBB91; border-color: rgba(93, 187, 145, 0.25); }
.metric-icon.amber { color: #C9A24D; border-color: rgba(201, 162, 77, 0.25); }
.metric-icon.cyan { color: #8993A3; }

.metric-number {
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.metric-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-trend.positive { color: #5DBB91; }
.metric-trend.neutral { color: var(--text-muted); }
.metric-trend.negative { color: #C96A6A; }
.trend-label { color: var(--text-muted); font-weight: 400; margin-left: 2px; }
.trend-icon { font-size: 11px; }

/* ==========================================================================
   DASHBOARD SPLITS (CHART, QUICK ACTIONS, BANNER)
   ========================================================================== */
.dashboard-row-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
  align-items: stretch;
}

.dashboard-sales-vip-row,
.dashboard-row-split-bottom,
.dashboard-activity-status-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .dashboard-row-split,
  .dashboard-sales-vip-row,
  .dashboard-row-split-bottom,
  .dashboard-activity-status-row {
    grid-template-columns: 1fr;
  }
}

/* Large Sales Analytics Chart Card */
.analytics-chart-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: fit-content;
}

.timeframe-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.timeframe-matched-indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 6px;
  background: var(--primary-gradient);
  box-shadow: 0 2px 14px rgba(139, 53, 214, 0.45), 0 0 10px rgba(215, 43, 131, 0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
  will-change: transform, width, height;
  opacity: 0;
}

.timeframe-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.timeframe-btn:hover {
  color: #fff;
}

.timeframe-btn.active {
  background: var(--primary-gradient);
  color: #fff;
}

.timeframe-selector.has-matched-geometry .timeframe-btn {
  position: relative;
  z-index: 2;
  background: transparent !important;
  transition: color 0.2s ease;
}

.timeframe-selector.has-matched-geometry .timeframe-btn.active {
  background: transparent !important;
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.chart-container {
  width: 100%;
  height: 330px;
  margin: 16px 0 12px;
  position: relative;
}

.analytics-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.chart-stat-item {
  display: flex;
  flex-direction: column;
}

.cs-label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.cs-val {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cs-val.highlight {
  color: var(--accent-pink);
}

/* Dashboard Side Column & Top Products Card */
.dashboard-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.top-products-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.top-products-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  flex: 1;
  justify-content: space-between;
}

.top-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 10px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, background 0.2s;
}

.top-product-item:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.top-product-item.rank-1 {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0.32) 100%);
}
.top-product-item.rank-1 .tp-rank {
  color: #fbbf24;
}

.top-product-item.rank-2 {
  border-color: rgba(226, 232, 240, 0.28);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.09) 0%, rgba(0, 0, 0, 0.32) 100%);
}
.top-product-item.rank-2 .tp-rank {
  color: #e2e8f0;
}

.top-product-item.rank-3 {
  border-color: rgba(249, 115, 22, 0.28);
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.09) 0%, rgba(0, 0, 0, 0.32) 100%);
}
.top-product-item.rank-3 .tp-rank {
  color: #f97316;
}

.tp-rank-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-rank {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-pink);
  width: 22px;
}

.tp-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.tp-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  white-space: nowrap;
}

.tp-sales {
  color: var(--text-muted);
}

.tp-rev {
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Pending Alert Banner */
.pending-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid var(--accent-amber);
  margin-bottom: 24px;
}

.pending-alert-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pending-alert-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.pending-alert-text h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.pending-alert-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 800px) {
  .pending-alert-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Recent Sales Card & VIP Leaderboard */
.recent-sales-card {
  display: flex;
  flex-direction: column;
  min-height: auto;
  height: fit-content;
  min-width: 0;
}

.recent-sales-card .table-responsive {
  margin-top: 6px;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  width: 100%;
}

.recent-sales-card .data-table {
  width: 100% !important;
  table-layout: fixed !important;
}

.recent-sales-card .data-table th,
.recent-sales-card .data-table td {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.recent-sales-card .data-table th:first-child,
.recent-sales-card .data-table td:first-child {
  width: 33% !important;
  min-width: 0 !important;
  max-width: 33% !important;
}

.recent-sales-card .data-table th:nth-child(2),
.recent-sales-card .data-table td:nth-child(2) {
  width: 37% !important;
  min-width: 0 !important;
  max-width: 37% !important;
}

.recent-sales-card .data-table th:nth-child(3),
.recent-sales-card .data-table td:nth-child(3) {
  width: 14% !important;
  min-width: 0 !important;
  max-width: 14% !important;
  text-align: center !important;
}

.recent-sales-card .data-table th:nth-child(4),
.recent-sales-card .data-table td:nth-child(4) {
  width: 16% !important;
  min-width: 0 !important;
  max-width: 16% !important;
  text-align: right !important;
}

.recent-sales-card .data-table td {
  padding: 10px 8px !important;
}

.vip-leaderboard-card {
  min-height: auto;
  height: fit-content;
}

/* VIP Leaderboard Cards: Spring + Hover Scale Animation */
.vip-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform, box-shadow;
  transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.25s ease,
              background 0.25s ease;
  position: relative;
}

.vip-card-item:hover {
  transform: translateY(-4px) scale(1.028);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(245, 158, 11, 0.08)) !important;
  border-color: rgba(168, 85, 247, 0.85) !important;
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.28), 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  z-index: 3;
}

.vip-card-item:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.12s;
}

.vip-card-item .vip-spent-badge {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vip-card-item:hover .vip-spent-badge {
  transform: scale(1.08);
}

.activity-feed-card {
  min-height: auto;
  height: fit-content;
}

.system-status-summary-card {
  min-height: auto;
  height: fit-content;
}

.activity-and-status-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.activity-timeline::-webkit-scrollbar {
  width: 5px;
}
.activity-timeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}
.activity-timeline::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.35);
  border-radius: 4px;
}
.activity-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.6);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.activity-item:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.act-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.act-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  background: #18181b;
  display: block;
}

.act-badge-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #090d16;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 2;
}

.act-badge-dot.has-thumb {
  background: #0f172a;
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 6px rgba(168, 85, 247, 0.35);
  padding: 0;
}

.act-badge-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle, #1e293b 0%, #0b0f19 100%);
  display: block;
}

.act-badge-dot.role-vip {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(245, 158, 11, 0.4));
  border-color: rgba(234, 179, 8, 0.75);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
  font-size: 11.5px;
}

.act-badge-dot.role-destekci {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(147, 51, 234, 0.4));
  border-color: rgba(168, 85, 247, 0.75);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
  font-size: 11.5px;
}

.act-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.act-title {
  font-size: 12.5px;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.35;
  word-break: break-word;
}

.act-buyer {
  font-weight: 700;
  color: #ffffff;
}

.act-item-name {
  color: #38bdf8;
  font-weight: 600;
}

.act-vip-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.35));
  color: #fef08a;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(234, 179, 8, 0.45);
  font-size: 11px;
}

.act-destekci-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(168, 85, 247, 0.45);
  font-size: 11px;
}

.act-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-top: 2px;
}

.act-price-pill {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 11px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.act-sub-text {
  color: var(--text-muted);
  font-size: 11px;
}

.act-time {
  color: var(--text-dim);
  font-size: 11px;
  margin-left: auto;
  white-space: nowrap;
}

/* System Status Summary Card */
.status-online-dot {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
}

.status-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.status-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-dim);
}

.status-footer-meta a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   DATA TABLES & FILTER BARS
   ========================================================================== */
.filters-bar {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: relative;
}

.tab-matched-indicator {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-sm);
  background: rgba(139, 53, 214, 0.22);
  border: 1px solid var(--border-purple);
  box-shadow: 0 0 16px rgba(139, 53, 214, 0.32), inset 0 0 12px rgba(139, 53, 214, 0.15);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
  will-change: transform, width, height;
  opacity: 0;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
  background: rgba(147, 51, 234, 0.15);
  border-color: var(--border-purple);
  color: #fff;
}

.filter-tabs.has-matched-geometry .filter-tab {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border-color: transparent !important;
  transition: color 0.2s ease;
}

.filter-tabs.has-matched-geometry .filter-tab:hover {
  background: transparent !important;
  color: #fff !important;
}

.filter-tabs.has-matched-geometry .filter-tab.active {
  background: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
  text-shadow: 0 0 12px rgba(139, 53, 214, 0.6);
}

.filter-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.custom-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.custom-input:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25);
}

.search-sm {
  min-width: 220px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.table-responsive::-webkit-scrollbar-track {
  background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.55);
}

.table-responsive::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tbody tr {
  transform-origin: center left;
  will-change: transform;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              box-shadow 0.28s ease;
}

.data-table tbody tr:hover {
  transform: scale(1.008) translateX(4px);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.data-table tr:hover td {
  background: rgba(139, 53, 214, 0.08) !important;
  cursor: pointer;
}

.data-table tbody tr:active {
  transform: scale(0.995) translateX(2px);
  transition-duration: 0.1s;
}

/* ==========================================================================
   BUYER & MEMBER PROFILE LAYOUT (PIXEL-PERFECT ALIGNMENT)
   ========================================================================== */

/* Profile cell wrapper: avatar + text side by side inside a <td> */
.buyer-flex {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* Fixed circular avatar container */
.avatar-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  background: #0B0F15 !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}

.avatar-link:hover {
  transform: scale(1.08) !important;
  border-color: #8B35D6 !important;
}

/* Avatar image — fixed px, fills circle container */
.avatar-link img,
.buyer-avatar,
.member-avatar,
.data-table td img.buyer-avatar,
.data-table td img.member-avatar {
  display: block !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Lookup Card Avatar (62px) */
.lookup-avatar-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 62px !important;
  height: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  border: 2px solid var(--accent-pink) !important;
  overflow: hidden !important;
  text-decoration: none !important;
  background: #1e293b !important;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.3) !important;
  box-sizing: border-box !important;
}

.lookup-avatar-link img,
.lookup-avatar-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Slideover Drawer Avatar (76px) */
.drawer-avatar-wrap {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  border: 2px solid var(--accent-pink) !important;
  overflow: hidden !important;
  margin: 0 auto 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1e293b !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35) !important;
  box-sizing: border-box !important;
}

.drawer-avatar-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Profile Text Box */
.buyer-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
}

.buyer-profile-link {
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: inherit !important;
  transition: color 0.15s ease !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.buyer-profile-link:hover .buyer-name-title {
  text-decoration: underline !important;
}

.buyer-profile-link:hover .profile-ext-icon {
  opacity: 1 !important;
}

.buyer-name-title {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.buyer-text strong {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.profile-ext-icon {
  font-size: 10px !important;
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.buyer-text .buyer-meta,
.buyer-meta {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  display: block !important;
  margin-top: 1px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.time-highlight {
  color: var(--text-secondary);
  font-weight: 500;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  font-weight: 700;
  font-size: 12px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pill.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-pill.gray {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.table-footer-info {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.26s ease,
              background 0.2s ease,
              border-color 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.035);
}

.btn:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.1s;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   ROLES & PRODUCTS CARDS GRIDS
   ========================================================================== */
.roles-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-name-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.role-rank-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
}

.role-member-count {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.role-meta-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}

/* 🎰 Lootbox Card Flip & Reveal Animation */
.product-card-lootbox {
  animation: lootboxCardReveal 0.46s cubic-bezier(0.18, 0.9, 0.22, 1.25) both;
  will-change: transform, opacity, filter, box-shadow;
  transform-style: preserve-3d;
}

@keyframes lootboxCardReveal {
  0% {
    opacity: 0;
    transform: rotateY(85deg) scale(0.85);
    filter: brightness(2) drop-shadow(0 0 25px rgba(168, 85, 247, 0.9));
  }
  65% {
    opacity: 1;
    transform: rotateY(-6deg) scale(1.025);
    filter: brightness(1.22) drop-shadow(0 0 14px rgba(168, 85, 247, 0.45));
  }
  85% {
    transform: rotateY(2deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    filter: brightness(1) drop-shadow(0 0 0 transparent);
  }
}

/* Neon Border Trace on Card Unlock */
.card-border-trace {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 0 1.5px rgba(168, 85, 247, 0.85), 0 0 22px rgba(168, 85, 247, 0.55);
  animation: lootboxTraceFade 0.65s cubic-bezier(0.16, 0.85, 0.22, 1) forwards;
}

@keyframes lootboxTraceFade {
  0% {
    opacity: 1;
    transform: scale(1.025);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* 💎 Tok Damga: Kârda / Amorti Mührü */
.status-stamp-slam {
  animation: stampSlamImpact 0.42s cubic-bezier(0.18, 0.9, 0.2, 1.35) both;
}

@keyframes stampSlamImpact {
  0% {
    transform: scale(1.7) rotate(-4deg);
    opacity: 0;
    filter: brightness(2) drop-shadow(0 0 16px rgba(16, 185, 129, 0.9));
  }
  70% {
    transform: scale(0.95) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: none;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transform-origin: center center;
  transition: transform 0.24s cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 0.24s cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 0.2s ease,
              background 0.2s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.25);
  z-index: 2;
}

.product-card:active {
  transform: translateY(-1px) scale(0.995);
  transition-duration: 0.1s;
}

.product-card.card-in-loss {
  border-color: rgba(244, 63, 94, 0.25);
}

.product-card.card-in-loss:hover {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(244, 63, 94, 0.25);
}

.product-card.card-in-profit {
  border-color: rgba(16, 185, 129, 0.25);
}

.product-card.card-in-profit:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.25);
}

.product-card-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.product-category-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-category-pill.cat-emote {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.product-category-pill.cat-hat {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.product-category-pill.cat-clothing {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.product-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.product-status-pill.status-loss {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.product-status-pill.status-profit {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.product-preview {
  height: 125px;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12) 0%, rgba(13, 17, 26, 0.85) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45);
}

.product-preview .product-thumb-img {
  max-height: 114px;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  z-index: 1;
}

.product-card:hover .product-preview .product-thumb-img {
  transform: scale(1.1);
  filter: drop-shadow(0 10px 22px rgba(168, 85, 247, 0.45));
}

.product-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-name a:hover {
  color: #c084fc;
}

.product-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Publish Fee & Profit/Loss Container Box */
.product-publish-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-publish-box.box-loss {
  background: rgba(244, 63, 94, 0.05);
  border-color: rgba(244, 63, 94, 0.25);
}

.product-publish-box.box-profit {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.25);
}

.publish-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.roi-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.roi-progress-bar {
  height: 100%;
  border-radius: 6px;
  transition: width 0.85s cubic-bezier(0.16, 0.85, 0.22, 1);
  position: relative;
  will-change: width;
}

.roi-progress-bar.loss {
  background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.roi-progress-bar.profit {
  background: linear-gradient(90deg, #10b981 0%, #34d399 70%, #6ee7b7 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.roi-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 8px #ffffff;
  opacity: 0.9;
}

.break-even-hint {
  font-size: 11px;
  line-height: 1.4;
  display: block;
}

/* ==========================================================================
   STEPPER & SYNC PROGRESS
   ========================================================================== */
.stepper-card {
  margin-bottom: 24px;
}

.stepper-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}

.stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.node-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.step-node.active .node-circle { background: #34d399; color: #000; box-shadow: 0 0 12px rgba(52, 211, 153, 0.4); }
.step-node.waiting .node-circle { background: #fbbf24; color: #000; box-shadow: 0 0 12px rgba(251, 191, 36, 0.4); }
.step-node.target .node-circle { background: var(--primary-gradient); color: #fff; box-shadow: 0 0 12px rgba(236, 72, 153, 0.4); }

.node-text strong { display: block; font-size: 13px; color: #fff; }
.node-text span { font-size: 11px; color: var(--text-muted); }

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 16px;
}

/* Sync Engine Hero */
.sync-hero {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.sync-hero-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.sync-hero-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.sync-hero-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

.sync-stats-summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.sync-stat-chip {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.chip-label { font-size: 11.5px; color: var(--text-muted); }
.chip-val { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: #fff; }

.sync-stat-chip.highlight .chip-val { color: #34d399; }
.sync-stat-chip.warning .chip-val { color: #fbbf24; }

.sync-action-cta {
  text-align: center;
  padding: 12px 0;
}

/* Progress bar */
.sync-progress-area {
  margin-top: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.progress-status-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

.progress-counts {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* ==========================================================================
   SLIDE-OVER DRAWER (RIGHT PANEL)
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.slideover-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  bottom: 0;
  width: 420px;
  background: var(--bg-card-solid);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
}

.slideover-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ==========================================================================
   GLOBAL COMMAND PALETTE (CTRL + K)
   ========================================================================== */
.palette-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 90;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.palette-modal {
  width: 580px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-purple);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: zoomFade 0.2s ease;
}

@keyframes zoomFade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.palette-search-box {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.palette-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.palette-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}

.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.palette-item:hover, .palette-item.selected {
  background: rgba(147, 51, 234, 0.2);
  color: #fff;
}

/* Confirm Modal */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal {
  width: 480px;
  animation: zoomFade 0.2s ease;
}

.confirm-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon-spark {
  font-size: 26px;
}

.preflight-stats-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

.pf-item strong { color: #fff; }
.pf-item.highlight strong { color: #34d399; }
.pf-item.warning strong { color: #fbbf24; }

.confirm-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: toastIn 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SETTINGS & FORMS
   ========================================================================== */
.settings-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.form-help {
  font-size: 11.5px;
  color: var(--text-muted);
}

.toggle-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--primary-gradient);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Responsive Mobile Drawer & Backdrop System */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .sidebar {
    width: 280px !important;
    background: rgba(10, 13, 18, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100dvh;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.25) !important;
  }

  .content-wrapper {
    margin-left: 0 !important;
    padding-bottom: 75px;
  }

  .mobile-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
  }

  .topbar {
    padding: 0 16px;
  }

  .page-container {
    padding: 16px 14px 75px;
  }

  .slideover-drawer {
    width: 100% !important;
    right: -100%;
  }

  .global-search-trigger {
    min-width: 120px;
  }
}


/* ==========================================================================
   TABLES & BADGES (DARK MINIMAL SAAS)
   ========================================================================== */
.data-table th {
  background: #151A23 !important;
  color: #8993A3 !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 10px 14px !important;
}

.data-table th,
.data-table td {
  white-space: nowrap;
}

.data-table:not(.recent-sales-card .data-table) th:first-child,
.data-table:not(.recent-sales-card .data-table) td:first-child {
  min-width: 165px;
}

.data-table td {
  border-bottom: 1px solid rgba(28, 35, 48, 0.6) !important;
  color: var(--text-secondary) !important;
  padding: 10px 14px !important;
  vertical-align: middle !important;
  height: 52px !important;
  box-sizing: border-box !important;
}

.data-table tr:hover td {
  background: #151A23 !important;
}

/* Status Badges */
.badge-pill.success, .badge.success, .status-badge.success, .badge-success {
  background: var(--badge-success-bg) !important;
  color: var(--badge-success-text) !important;
  border: 1px solid var(--badge-success-border) !important;
}

.badge-pill.warning, .badge.warning, .status-badge.warning, .badge-warning {
  background: var(--badge-warning-bg) !important;
  color: var(--badge-warning-text) !important;
  border: 1px solid var(--badge-warning-border) !important;
}

.badge-pill.danger, .badge-pill.error, .badge.danger, .status-badge.danger, .badge-danger {
  background: var(--badge-danger-bg) !important;
  color: var(--badge-danger-text) !important;
  border: 1px solid var(--badge-danger-border) !important;
}

/* Secondary Button Minimal */
.btn-secondary {
  background: var(--btn-secondary-bg) !important;
  border: 1px solid var(--btn-secondary-border) !important;
  color: var(--btn-secondary-text) !important;
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover) !important;
  border-color: #2E3646 !important;
  color: #fff !important;
}

/* Additional Layout Helpers from index.html */
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lookup-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
}

.input-with-button {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hint-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.system-diagnostics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.diag-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diag-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.diag-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.diag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: var(--bg-card-secondary);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
}

/* Header & Progress Helpers */
.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-title {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.title-with-desc {
  display: flex;
  flex-direction: column;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.progress-stage-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-purple-light);
}

.diag-icon {
  font-size: 18px;
}

.status-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   AUTHENTICATION LOCKSCREEN & SECURITY STYLING
   ========================================================================== */
.auth-lockscreen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 13, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 20px;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.auth-lockscreen.unlocking {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 320ms cubic-bezier(0.2, 0, 0, 1), transform 320ms cubic-bezier(0.2, 0, 0, 1);
}

.auth-card {
  width: 100%;
  max-width: 410px;
  background: #0E1219;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(139, 53, 214, 0.12);
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: authCardEnter 350ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardEnter {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.auth-sparkle-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8B35D6 0%, #C03988 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 20px rgba(192, 57, 136, 0.35);
  margin-bottom: 4px;
}

.auth-brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(120deg, #FFFFFF 50%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-brand-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #B85AE8;
  background: rgba(139, 53, 214, 0.12);
  border: 1px solid rgba(139, 53, 214, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
}

.auth-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 12px 0 16px;
}

/* Administrator Roblox Account Preview in Lockscreen */
.auth-team-container {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.auth-team-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-team-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffd700;
  text-transform: uppercase;
}

.auth-team-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.auth-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-team-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.auth-team-card.highlight-gold {
  border-color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.08) !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25) !important;
  transform: translateY(-2px);
}

.auth-team-card.highlight-purple {
  border-color: #c084fc !important;
  background: rgba(192, 132, 252, 0.08) !important;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.25) !important;
  transform: translateY(-2px);
}

.auth-team-card .auth-admin-avatar-box {
  width: 38px;
  height: 38px;
}

.auth-team-card .auth-admin-avatar-img {
  width: 38px;
  height: 38px;
}

.auth-team-card .auth-admin-user {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-team-card .auth-admin-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

@media (max-width: 480px) {
  .auth-team-grid {
    grid-template-columns: 1fr;
  }
}

.auth-admin-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 15px rgba(255, 215, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 250ms ease;
}

.auth-admin-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.08);
}

.auth-admin-avatar-box {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.auth-admin-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  background: #111622;
  object-fit: cover;
  display: block;
}

.auth-admin-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #0E1219;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.auth-admin-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-admin-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ffd700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.auth-admin-user {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.auth-admin-display {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-admin-note {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Settings Admin Profile Preview Card */
.admin-profile-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  transition: all 200ms ease;
}

.admin-profile-preview-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.03);
}

.admin-profile-preview-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 42px;
  background: #0B0F15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: all 180ms ease;
}

.auth-input:focus {
  outline: none;
  border-color: #8B35D6;
  box-shadow: 0 0 0 3px rgba(139, 53, 214, 0.25);
  background: #0D121A;
}

.auth-eye-btn {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  transition: color 150ms ease;
}

.auth-eye-btn:hover {
  color: var(--text-primary);
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.auth-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.auth-remember-label input {
  accent-color: #8B35D6;
  cursor: pointer;
  width: 15px;
  height: 15px;
}

.auth-error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  font-size: 12.5px;
  font-weight: 500;
  animation: authShake 350ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.btn-auth-submit {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #8B35D6 0%, #C03988 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 53, 214, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 53, 214, 0.45);
  filter: brightness(1.06);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-footer-note {
  margin-top: 22px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Sidebar Logout Button */
.sidebar-logout-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.sidebar-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

#btn-topbar-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
}

/* ==========================================================================
   100X ENHANCEMENTS: DevEx Simulator, Sound Toggle, VIP Whale Cards, Quick Switches
   ========================================================================== */

/* Sound Toggle Button */
.sound-toggle-btn {
  font-size: 15px;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: scale(1.06);
}

.sound-toggle-btn.muted {
  opacity: 0.55;
  filter: grayscale(1);
}

/* DevEx USD Badges on Stat Cards */
.devex-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

.devex-badge-pill.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Quick Auto-Role Live Switch on Dashboard */
.quick-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.quick-toggle-pill:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.06);
}

.qt-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.qt-state {
  font-weight: 700;
  color: #34d399;
  min-width: 32px;
}

.qt-state.off {
  color: var(--text-dim);
}

/* Mini Switch Toggle */
.switch-toggle-mini {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.switch-toggle-mini input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-mini {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.2s;
  border-radius: 18px;
}

.slider-mini:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch-toggle-mini input:checked + .slider-mini {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.switch-toggle-mini input:checked + .slider-mini:before {
  transform: translateX(14px);
}

/* VIP Whale Cards Enhanced */
.vip-whale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-whale-row:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.vip-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.vip-rank-badge.rank-1 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.vip-rank-badge.rank-2 {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  color: #000;
}

.vip-rank-badge.rank-3 {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
}

.vip-rank-badge.rank-other {
  background: rgba(168, 85, 247, 0.2);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.vip-spent-badge {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #22d3ee;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}

.btn-congratulate-vip {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fef08a;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 600;
}

.btn-congratulate-vip:hover {
  background: rgba(234, 179, 8, 0.28);
  border-color: rgba(234, 179, 8, 0.6);
  transform: scale(1.04);
}

/* Outreach Toolkit Card */
.outreach-toolkit-card {
  transition: all 0.2s ease;
}

.outreach-toolkit-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
}

/* ==========================================================================
   ADVANCED MOTION & AESTHETIC ANIMATION SYSTEMS (Linear / Apple Pro Grade)
   ========================================================================== */

/* 1. Holographic Light Sheen & Sharp Anti-Aliased Spring Lift */
.metric-card,
.vip-card-item,
.product-card {
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.26s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.22s ease;
}

.holographic-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle 240px at var(--sheen-x, 50%) var(--sheen-y, 50%),
    rgba(215, 43, 131, 0.16) 0%,
    rgba(139, 53, 214, 0.10) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
  mix-blend-mode: screen;
}

.metric-card:hover .holographic-sheen,
.vip-card-item:hover .holographic-sheen,
.product-card:hover .holographic-sheen {
  opacity: 1;
}

/* 2. Apple / Linear Style Odometer (Rolling Digits) */
.odometer-wrap {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  vertical-align: baseline;
}

.odometer-digit {
  display: inline-block;
  height: 1.18em;
  overflow: hidden;
  position: relative;
  vertical-align: baseline;
}

.odometer-ribbon {
  display: flex;
  flex-direction: column;
  transition: transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  line-height: 1.18em;
}

.odometer-ribbon span {
  height: 1.18em;
  display: block;
  text-align: center;
}

.odometer-static {
  display: inline-block;
  line-height: 1.18em;
  padding: 0 1px;
}

.odometer-suffix {
  margin-left: 3px;
  line-height: 1.18em;
  font-size: 0.85em;
  opacity: 0.9;
}

/* 3. Interactive Magnetic Chart Cursor & Wave Glow */
.chart-container {
  position: relative;
  overflow: visible !important;
}

.chart-wave-glow {
  stroke-dasharray: 45 400;
  animation: chartWaveSweep 4.5s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

@keyframes chartWaveSweep {
  0% {
    stroke-dashoffset: 450;
  }
  100% {
    stroke-dashoffset: -450;
  }
}

.chart-floating-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(14, 18, 25, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 53, 214, 0.4);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(139, 53, 214, 0.25);
  font-size: 12px;
  z-index: 40;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-12px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  white-space: nowrap;
}

.chart-floating-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-12px) scale(1);
}

.chart-floating-tooltip .tt-date {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
}

.chart-floating-tooltip .tt-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
}

.chart-floating-tooltip .tt-rev {
  color: #34d399;
}

/* 4. VIP & Avatar Levitation (Floating) + Neon Rotating Halo */
.bot-avatar,
.vip-avatar-img,
.avatar-floating {
  animation: avatarFloat 4.2s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(139, 53, 214, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
}

.bot-avatar:hover,
.vip-card-item:hover .vip-avatar-img,
.avatar-floating:hover {
  transform: translateY(-3.5px) scale(1.12) rotate(2deg);
  box-shadow: 0 0 24px rgba(215, 43, 131, 0.7), 0 0 10px rgba(245, 158, 11, 0.5) !important;
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-3.5px) rotate(0.8deg);
  }
}

.vip-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vip-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8B35D6, #D72B83, #F59E0B, #8B35D6);
  animation: rotateHalo 6s linear infinite;
  z-index: 0;
  opacity: 0.75;
  filter: blur(1.5px);
}

.vip-card-item:hover .vip-avatar-wrap::before {
  opacity: 1;
  filter: blur(2.5px);
  animation-duration: 2.5s;
}

@keyframes rotateHalo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Customer Drawer Purchases Sorting & Filtering */
.drawer-sort-bar {
  display: flex;
  gap: 6px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.drawer-sort-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  user-select: none;
}

.drawer-sort-btn:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.45);
  color: #fff;
  transform: translateY(-1px);
}

.drawer-sort-btn.active {
  background: linear-gradient(135deg, rgba(139, 53, 214, 0.4), rgba(215, 43, 131, 0.3));
  border-color: rgba(168, 85, 247, 0.7);
  color: #f8fafc;
  box-shadow: 0 2px 10px rgba(139, 53, 214, 0.3);
}

.drawer-purchase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.drawer-purchase-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(2px);
}

/* Mouse Cursor Sale Burst & Floating Ripple Badge */
.mouse-sale-shockwave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  border: 2px solid #F59E0B;
  box-shadow: 0 0 24px #D72B83, inset 0 0 16px #8B35D6;
  transform: translate(-50%, -50%) scale(0.1);
  animation: mouseShockwaveExpand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes mouseShockwaveExpand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.6);
  }
}

.mouse-sale-floating-badge {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(215, 43, 131, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(245, 158, 11, 0.6);
  white-space: nowrap;
  animation: mouseBadgeRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes mouseBadgeRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.65);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -24px) scale(1.15);
  }
  75% {
    opacity: 0.95;
    transform: translate(-50%, -55px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -85px) scale(0.85);
  }
}

/* ==========================================================================
   LIVE SALES TICKER (Twitch / Kick Style Floating Ka-Ching Cards)
   ========================================================================== */
.live-sales-ticker-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 48px);
}

.live-sale-card {
  pointer-events: auto;
  position: relative;
  background: rgba(14, 18, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 53, 214, 0.5);
  border-left: 4px solid #8B35D6;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7),
              0 0 24px rgba(139, 53, 214, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: pointer;
  animation: liveSaleCardEnter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  will-change: transform, opacity;
}

.live-sale-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(215, 43, 131, 0.7);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8),
              0 0 32px rgba(215, 43, 131, 0.35);
}

.live-sale-card.dismissing {
  animation: liveSaleCardExit 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

@keyframes liveSaleCardEnter {
  0% {
    opacity: 0;
    transform: translate3d(120%, 0, 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes liveSaleCardExit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(120%, 0, 0) scale(0.9);
  }
}

.live-sale-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #F59E0B, #D72B83, #8B35D6);
  width: 100%;
  animation: liveSaleProgressShrink 7s linear forwards;
  z-index: 10;
}

@keyframes liveSaleProgressShrink {
  0% { width: 100%; }
  100% { width: 0%; }
}

.live-sale-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
}

.live-sale-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-sale-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8B35D6, #D72B83, #F59E0B, #8B35D6);
  animation: rotateHalo 4s linear infinite;
  filter: blur(1.5px);
}

.live-sale-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1e293b;
}

.live-sale-badge-icon {
  position: absolute;
  bottom: -3px;
  right: -3px;
  font-size: 13px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.live-sale-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-sale-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-sale-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(215, 43, 131, 0.25));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FEF08A;
  padding: 1px 6px;
  border-radius: 4px;
}

.live-sale-time {
  font-size: 10.5px;
  color: var(--text-dim);
}

.live-sale-buyer {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-sale-item {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-sale-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.live-sale-amount {
  font-size: 13.5px;
  font-weight: 800;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 8px;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
  white-space: nowrap;
}

.live-sale-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.live-sale-close:hover {
  color: #fff;
}

/* ==========================================================================
   MEMBERS VIEW: SMOOTH CASCADE IN ANIMATION & SKELETON LOADERS
   ========================================================================== */

@keyframes memberRowCascadeIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.data-table tbody tr.member-row-animated {
  animation: memberRowCascadeIn 0.36s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease;
}

.data-table tbody tr.member-row-animated:hover {
  background: rgba(168, 85, 247, 0.08) !important;
  transform: translateX(4px);
}

.role-card.member-card-cascade {
  animation: memberRowCascadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes memberSkeletonPulse {
  0% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.75;
  }
  100% {
    opacity: 0.25;
  }
}

.member-skeleton-row {
  animation: memberSkeletonPulse 1.3s ease-in-out infinite;
}

.member-skeleton-row td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* ==========================================================================
   100X GROUP MEMBER TRAFFIC RADAR (GİRİŞ & ÇIKIŞ SİSTEMİ)
   ========================================================================== */

.traffic-radar-wrapper {
  background: linear-gradient(145deg, rgba(14, 18, 25, 0.88), rgba(9, 12, 17, 0.95)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 53, 214, 0.12) !important;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.traffic-ambient-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

.traffic-ambient-glow.emerald {
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
}

.traffic-ambient-glow.crimson {
  top: -80px;
  right: -50px;
  background: radial-gradient(circle, #ef4444 0%, transparent 70%);
}

/* Header Flex */
.traffic-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.traffic-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.traffic-radar-icon-frame {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(14, 20, 29, 0.9);
  border: 1px solid rgba(139, 53, 214, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(139, 53, 214, 0.25);
  flex-shrink: 0;
}

.traffic-radar-spinner {
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, transparent 0deg 300deg, #10b981 330deg, #a855f7 360deg);
  animation: trafficSpin 4s linear infinite;
  opacity: 0.7;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 2px;
}

@keyframes trafficSpin {
  to { transform: rotate(360deg); }
}

.traffic-radar-core-emoji {
  font-size: 22px;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}

.traffic-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin: 0;
}

.traffic-live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.radar-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: radarPulse 1.8s ease-in-out infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.radar-live-text {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.traffic-section-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 3 Micro-KPI Grid */
.traffic-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .traffic-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.traffic-kpi-tile {
  background: rgba(16, 21, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.traffic-kpi-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  border-radius: 4px 0 0 4px;
}

.traffic-kpi-tile.join-kpi::before { background: #10b981; }
.traffic-kpi-tile.leave-kpi::before { background: #ef4444; }
.traffic-kpi-tile.growth-kpi::before { background: #a855f7; }

.traffic-kpi-tile:hover {
  transform: translateY(-2px);
  background: rgba(22, 28, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.traffic-kpi-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.traffic-kpi-icon-box.join {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.traffic-kpi-icon-box.leave {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.traffic-kpi-icon-box.growth {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.traffic-kpi-icon-box.total {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.traffic-kpi-info {
  flex: 1;
  min-width: 0;
}

.traffic-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.traffic-kpi-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  margin: 2px 0 3px;
  letter-spacing: -0.5px;
}

.traffic-kpi-val.text-emerald {
  color: #10b981;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
}

.traffic-kpi-val.text-rose {
  color: #f43f5e;
  text-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
}

.traffic-kpi-val.text-purple {
  color: #c084fc;
  text-shadow: 0 0 16px rgba(192, 132, 252, 0.35);
}

.traffic-kpi-val.text-cyan {
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.traffic-kpi-hint {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls Strip (Filter tabs + search) */
.traffic-controls-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.traffic-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 15, 21, 0.8);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.traffic-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.18s ease;
}

.traffic-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.traffic-tab-btn.active {
  color: #ffffff;
  background: rgba(139, 53, 214, 0.28);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 2px 10px rgba(139, 53, 214, 0.25);
}

.traffic-tab-btn .dot-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.traffic-tab-btn .dot-icon.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.traffic-tab-btn .dot-icon.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

.traffic-search-wrap {
  position: relative;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.traffic-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.traffic-search-field {
  width: 100%;
  padding: 8px 90px 8px 34px;
  background: rgba(11, 15, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.traffic-search-field:focus {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.traffic-search-badge {
  position: absolute;
  right: 8px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

/* Traffic Stream Container & List */
.traffic-stream-container {
  max-height: 480px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  background: rgba(8, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px;
  position: relative;
  z-index: 1;
}

.traffic-stream-container::-webkit-scrollbar {
  width: 6px;
}

.traffic-stream-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.traffic-stream-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.traffic-stream-container::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.4);
}

.traffic-stream-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Event Item Card */
.traffic-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(14, 19, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: trafficItemSlideIn 0.3s ease both;
  position: relative;
  overflow: hidden;
}

@keyframes trafficItemSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.traffic-event-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
}

.traffic-event-item.type-join::before {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.traffic-event-item.type-leave::before {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.traffic-event-item:hover {
  background: rgba(20, 26, 38, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Event Item Left (Avatar + Info) */
.traffic-event-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

.traffic-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.traffic-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111827;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.traffic-event-item.type-join .traffic-avatar-img {
  border-color: rgba(16, 185, 129, 0.45);
}

.traffic-event-item.type-leave .traffic-avatar-img {
  border-color: rgba(239, 68, 68, 0.45);
}

.traffic-status-indicator {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #07090D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.traffic-event-item.type-join .traffic-status-indicator {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.traffic-event-item.type-leave .traffic-status-indicator {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.traffic-user-meta {
  min-width: 0;
  flex: 1;
}

.traffic-user-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.traffic-username-link {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.traffic-username-link:hover {
  color: #c084fc;
  text-decoration: underline;
}

.traffic-username-static {
  font-weight: 700;
  font-size: 13.5px;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.traffic-uid-badge {
  font-size: 10.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.traffic-uid-badge.guest {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-family: inherit;
  font-weight: 600;
}

.traffic-event-action-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.traffic-event-action-badge.join {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.traffic-event-action-badge.leave {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.traffic-details-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.traffic-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.traffic-customer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.traffic-customer-pill.alert {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Event Item Right (Time + Actions) */
.traffic-event-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.traffic-time-wrap {
  text-align: right;
}

.traffic-time-rel {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.traffic-time-exact {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.traffic-action-btn {
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.traffic-action-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.traffic-action-btn.customer {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

.traffic-action-btn.customer:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fff;
}

.traffic-action-btn.disabled {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  cursor: default;
  opacity: 0.7;
}

/* Empty State */
.traffic-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}

.traffic-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.6;
}

.traffic-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.traffic-empty-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* =========================================================
   GİRİŞ & ÇIKIŞ ANALİTİĞİ & TRAFİK GRAFİĞİ STYLES
   ========================================================= */
.traffic-analytics-card {
  position: relative;
  overflow: visible;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.traffic-analytics-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.traffic-chart-area-joins {
  opacity: 0;
  animation: trafficAreaFadeIn 650ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards;
  will-change: opacity;
}

.traffic-chart-area-leaves {
  opacity: 0;
  animation: trafficAreaFadeIn 650ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards;
  will-change: opacity;
}

.traffic-chart-line-joins {
  /* Line animation handled by JS getTotalLength() for pixel-perfect sweep */
}

.traffic-chart-line-leaves {
  /* Line animation handled by JS getTotalLength() for pixel-perfect sweep */
}

/* Point pop-in: stay invisible until line sweep finishes, then spring in */
@keyframes trafficPointAppear {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  60% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.traffic-point-animated {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: trafficPointAppear 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  will-change: transform, opacity;
}

/* Label fade and slide in */
@keyframes trafficLabelAppear {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.traffic-label-animated {
  opacity: 0;
  transform: translateY(4px);
  animation: trafficLabelAppear 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

/* Hover micro-interactions on point groups */
.traffic-point-group {
  cursor: pointer;
}

.traffic-point-group:hover .traffic-point-join {
  stroke: #34d399 !important;
  stroke-width: 3.5px !important;
  fill: #0D1117 !important;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.95));
  transition: all 180ms ease;
}

.traffic-point-group:hover .traffic-point-leave {
  stroke: #f87171 !important;
  stroke-width: 3px !important;
  fill: #0D1117 !important;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.95));
  transition: all 180ms ease;
}

.traffic-point-group:hover text {
  fill: #FFFFFF !important;
  font-weight: 700;
  transition: fill 180ms ease;
}

@keyframes trafficAreaFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#traffic-chart-tooltip {
  background: rgba(14, 18, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  border-radius: 9px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.18);
  font-family: var(--font-body);
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.12s ease;
  will-change: transform, left, top;
}

#traffic-chart-tooltip .t-tip-title {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

#traffic-chart-tooltip .t-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 3px 0;
}

#traffic-chart-tooltip .t-tip-label {
  color: var(--text-muted);
}

#traffic-chart-tooltip .t-tip-val {
  font-weight: 600;
  font-family: var(--font-heading);
}

/* =========================================================
   TRAFFIC ROW SPLIT & KATILIM RADARI STYLES
   ========================================================= */
.traffic-row-split {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.traffic-radar-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.traffic-radar-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.traffic-radar-metric-item {
  transition: background 0.2s ease, transform 0.2s ease;
}

.traffic-radar-metric-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  transform: translateX(3px);
}

.radar-last-joiner-card {
  transition: all 0.25s ease;
}

.radar-last-joiner-card:hover {
  background: rgba(16, 185, 129, 0.09) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

.traffic-chart-legend {
  user-select: none;
}

@media (max-width: 1200px) {
  .traffic-row-split {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBILE BOTTOM FLOATING DOCK (APP-LIKE EXPERIENCE FOR PHONES)
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 640px) {
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 12px;
    left: 14px;
    right: 14px;
    height: 62px;
    background: rgba(11, 15, 22, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    z-index: 9990;
    padding: 4px 8px;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(168, 85, 247, 0.2);
  }

  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #8993a3;
    padding: 6px 8px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 3px;
    flex: 1;
    min-width: 0;
  }

  .dock-item:active {
    transform: scale(0.90);
  }

  .dock-item.active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(139, 53, 214, 0.35), rgba(215, 43, 131, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 16px rgba(215, 43, 131, 0.35);
  }

  .dock-icon {
    font-size: 19px;
    line-height: 1;
  }

  .dock-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  /* Mobile KPI Stat Cards Tuning */
  .stats-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
  }

  .metric-number {
    font-size: 18px !important;
  }

  .metric-header .metric-title {
    font-size: 11.5px !important;
  }

  /* Compact Top Bar on Phones */
  .topbar {
    padding: 0 12px !important;
    height: 58px !important;
  }

  .topbar-right .btn-header-action span:not(.btn-icon) {
    display: none !important;
  }

  .topbar-right .btn-header-action {
    padding: 7px 10px !important;
    border-radius: 10px !important;
  }

  #topbar-status-text {
    display: none;
  }

  #topbar-status-badge {
    padding: 6px 10px !important;
  }

  .page-container {
    padding: 14px 12px 90px !important;
  }
}

/* ==========================================================================
   LÜKS GLASSMORPHISM & PARILDAYAN KART GELİŞTİRMELERİ
   ========================================================================== */
.metric-card, .card, .glass-card {
  background: linear-gradient(135deg, rgba(16, 21, 30, 0.8) 0%, rgba(10, 14, 20, 0.9) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease !important;
}

.metric-card::before, .glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
}

.metric-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(168, 85, 247, 0.55) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
}

/* Touch Friendly Table Scrolling with Visual Overflow Hint */
.table-responsive {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(10, 13, 18, 0.6) !important;
  -webkit-overflow-scrolling: touch !important;
}

.data-table th {
  background: rgba(18, 24, 34, 0.95) !important;
  backdrop-filter: blur(12px) !important;
}

.data-table tr {
  transition: background-color 0.18s ease !important;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}






