/* ==========================================================================
   OPERATING / STAFF PANEL - CORE STYLESHEET
   Matching Exchange Staff Panel Design Specification
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #f4f6fa;
  --bg-surface: #ffffff;
  --bg-sidebar: #111827;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #252e42;
  --bg-header: #111827;

  /* Accent & Gradients */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-purple: #8b5cf6;
  --accent-blue: #2563eb;
  --accent-cyan: #0891b2;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-slate: #475569;
  --accent-dark: #1e293b;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  --text-sidebar: #cbd5e1;
  --text-sidebar-muted: #64748b;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-card: #e5e7eb;
  --border-dark: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.03);

  /* Dimensions */
  --header-height: 60px;
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   LOGIN SCREEN (Screen 1 Exact Replica)
   ========================================================================== */
.login-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafbfc;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(217, 70, 239, 0.06) 0%, transparent 40%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.login-card-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 2;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-box {
  width: 52px;
  height: 52px;
  background: var(--primary-gradient);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
  margin-bottom: 12px;
  transition: transform var(--transition-normal);
}

.login-logo-box:hover {
  transform: scale(1.05) rotate(3deg);
}

.login-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.09), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  padding: 38px 34px 28px;
}

/* Gradient decorative bar on top of card */
.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899, #10b981);
}

.login-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-card-subtitle {
  font-size: 13.5px;
  color: #64748b;
  text-align: center;
  margin-bottom: 28px;
}

.login-input-group {
  margin-bottom: 18px;
  position: relative;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.login-input-wrapper:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.login-input-icon {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.login-input-wrapper:focus-within .login-input-icon {
  color: #6366f1;
}

.login-input {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  padding-right: 12px;
}

.login-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.login-password-toggle {
  padding: 8px 14px;
  color: #94a3b8;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.login-password-toggle:hover {
  color: #475569;
}

.login-submit-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b55eb 0%, #a855f7 60%, #c026d3 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.45);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -5px rgba(124, 58, 237, 0.55);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-secured-badge {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.footer-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6366f1;
}

.footer-badge-item.realtime {
  color: #059669;
}

.footer-badge-item.twofa {
  color: #8b5cf6;
}

/* Quick credentials helper badge */
.quick-cred-hint {
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
}

.quick-cred-btn {
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  transition: background var(--transition-fast);
}

.quick-cred-btn:hover {
  background: #cbd5e1;
}

/* ==========================================================================
   APP MAIN SHELL LAYOUT
   ========================================================================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
  position: relative;
}

/* HEADER BAR */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.hamburger-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

.header-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: #cbd5e1;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

.header-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
}

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

.header-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

.header-action-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.badge-counter {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* User Profile Badge in Header */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.user-profile-badge:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6366f1;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.user-profile-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.profile-dropdown-arrow {
  color: #94a3b8;
  font-size: 12px;
}

/* User Profile Menu Dropdown */
.profile-dropdown-menu {
  position: absolute;
  top: calc(var(--header-height) + 4px);
  right: 20px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  width: 220px;
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
  overflow: hidden;
}

.profile-dropdown-menu.active {
  display: block;
}

.dropdown-user-info {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-user-info .name {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}

.dropdown-user-info .role {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #cbd5e1;
  font-size: 13px;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.dropdown-item.logout {
  color: #f87171;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   ========================================================================== */
.app-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width var(--transition-normal), transform var(--transition-normal);
}

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

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.sidebar-nav-container {
  padding: 16px 12px 24px;
}

.sidebar-group {
  margin-bottom: 22px;
}

.sidebar-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-sidebar-muted);
  text-transform: uppercase;
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-nav-list {
  list-style: none;
}

.sidebar-nav-item {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-sidebar);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-link-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  color: var(--text-sidebar-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: var(--bg-sidebar-hover);
  color: #ffffff;
}

.sidebar-link:hover .sidebar-icon {
  color: #ffffff;
}

.sidebar-link.active {
  background: var(--bg-sidebar-active);
  color: #ffffff;
  font-weight: 600;
  position: relative;
}

.sidebar-link.active .sidebar-icon {
  color: #818cf8;
}

.sidebar-active-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}

.sidebar-collapse-caret {
  transition: transform var(--transition-normal);
  color: var(--text-sidebar-muted);
  font-size: 12px;
}

.sidebar-link.collapsed .sidebar-collapse-caret {
  transform: rotate(-90deg);
}

.sidebar-subnav {
  list-style: none;
  padding-left: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-subnav.hidden {
  display: none;
}

.sidebar-sublink {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-sidebar-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-sublink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-sublink.active {
  color: #818cf8;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
}

/* Sidebar Footer User Info */
.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.03em;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
}

.sidebar-user-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sidebar-user-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #818cf8;
  text-transform: uppercase;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.app-main {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 20px 24px 60px;
  min-height: calc(100vh - var(--header-height));
  transition: margin-left var(--transition-normal);
}

.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .sidebar-group-title,
.sidebar-collapsed .sidebar-link span,
.sidebar-collapsed .sidebar-active-indicator,
.sidebar-collapsed .sidebar-collapse-caret,
.sidebar-collapsed .sidebar-subnav,
.sidebar-collapsed .sidebar-user-details {
  display: none;
}

.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: 12px 0;
}

.sidebar-collapsed .sidebar-user-card {
  justify-content: center;
}

/* Page Section View Wrapper */
.view-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view-panel.active {
  display: block;
}

/* Page Title & Breadcrumb */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.page-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   DASHBOARD SCREEN SPECIFICS (Matches Screenshot 2 & 3)
   ========================================================================== */

/* Sports Category Pills Tab Bar */
.sports-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sports-tab-bar::-webkit-scrollbar {
  display: none;
}

.sport-tab-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sport-tab-pill:hover {
  background: #f1f5f9;
  color: #1e293b;
}

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

.sport-pill-icon {
  font-size: 14px;
}

/* Filter / Actions Bar (Market ID, Event ID, Match Name, Inplay, Buttons) */
.filter-action-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-input {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff;
  color: #1e293b;
  outline: none;
  transition: border-color var(--transition-fast);
}

.filter-input:focus {
  border-color: #6366f1;
}

.filter-input.market-id {
  width: 140px;
}

.filter-input.event-id {
  width: 140px;
}

.filter-input.match-name {
  flex: 1;
  min-width: 180px;
}

.filter-select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: #1e293b;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: #6366f1;
}

.btn-filter-submit {
  height: 38px;
  padding: 0 22px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.btn-filter-submit:hover {
  background: #4338ca;
}

.btn-save-inplay {
  height: 38px;
  padding: 0 20px;
  background: #0891b2;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.btn-save-inplay:hover {
  background: #0e7490;
}

.btn-auto-decision {
  height: 38px;
  padding: 0 20px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.btn-auto-decision:hover {
  background: #6d28d9;
}

/* ==========================================================================
   MATCHES DATA TABLE (Screenshot 2 & 3 Matching)
   ========================================================================== */
.matches-table-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.matches-table-header {
  display: grid;
  grid-template-columns: 48px 56px 140px 1fr 410px;
  align-items: center;
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-header-cell {
  display: flex;
  align-items: center;
}

.table-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  accent-color: #4f46e5;
}

.matches-table-body {
  display: flex;
  flex-direction: column;
}

.match-row-item {
  display: grid;
  grid-template-columns: 48px 56px 140px 1fr 410px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background-color var(--transition-fast);
}

.match-row-item:hover {
  background-color: #f8fafc;
}

.match-row-item:last-child {
  border-bottom: none;
}

/* INFO Circle Button */
.btn-match-info {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
  transition: transform var(--transition-fast);
}

.btn-match-info:hover {
  transform: scale(1.1);
  background: #d97706;
}

/* IDS Column */
.match-ids-col {
  display: flex;
  flex-direction: column;
}

.match-market-id {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.match-event-id {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* MATCH Column */
.match-details-col {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
}

.match-title-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.match-title-text:hover {
  color: #2563eb;
}

.match-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}

.match-series-name {
  color: #64748b;
  font-weight: 500;
}

.match-time-badge {
  color: #ef4444;
  font-weight: 600;
  font-size: 11px;
}

.match-sport-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.inplay-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ACTIONS Column (5 Buttons) */
.match-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.action-btn svg {
  width: 12px;
  height: 12px;
}

.action-btn.decision {
  background: #1e293b;
}
.action-btn.decision:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.action-btn.fancy {
  background: #2563eb;
}
.action-btn.fancy:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.action-btn.fbet {
  background: #475569;
}
.action-btn.fbet:hover {
  background: #334155;
  transform: translateY(-1px);
}

.action-btn.obet {
  background: #d97706;
}
.action-btn.obet:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.action-btn.refresh {
  background: #8b5cf6;
}
.action-btn.refresh:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.action-btn.refresh.spinning svg {
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   OTHER VIEWS (Cards, Tables, Grids)
   ========================================================================== */

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.metric-card.purple::before { background: #8b5cf6; }
.metric-card.emerald::before { background: #10b981; }
.metric-card.blue::before { background: #3b82f6; }
.metric-card.rose::before { background: #f43f5e; }

.metric-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-info .value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.metric-info .change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.metric-info .change.positive { color: #059669; }
.metric-info .change.negative { color: #dc2626; }

.metric-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-icon-box.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.metric-icon-box.emerald { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.metric-icon-box.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.metric-icon-box.rose { background: rgba(244, 63, 94, 0.12); color: #f43f5e; }

/* Generic Panel Card */
.panel-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.panel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.panel-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

/* Settings Form Grid */
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  background: #ffffff;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group textarea {
  height: 80px;
  padding: 10px 14px;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-helper {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Switch Toggle */
.toggle-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.switch-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.switch-input {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

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

.switch-input input:checked + .switch-slider {
  background-color: #4f46e5;
}

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

/* Standard Table Styles */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.custom-table th {
  background: #111827;
  color: #ffffff;
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success { background: #dcfce7; color: #15803d; }
.status-badge.warning { background: #fef3c7; color: #b45309; }
.status-badge.danger { background: #fee2e2; color: #b91c1c; }
.status-badge.info { background: #e0f2fe; color: #0369a1; }

/* ==========================================================================
   CASINO & MATKA GRIDS
   ========================================================================== */
.casino-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.casino-game-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.casino-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.casino-game-thumb {
  height: 120px;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
}

.casino-badge-live {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.casino-game-details {
  padding: 14px;
}

.casino-game-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.casino-round-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

.casino-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Matka Bazaar Card */
.matka-bazaar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.matka-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

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

.matka-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.matka-score-display {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.matka-score-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.1em;
}

.matka-timing {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

/* ==========================================================================
   HEALTH ROUTES & LOG TERMINAL
   ========================================================================== */
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.health-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.health-info .service-name {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.health-info .latency {
  font-size: 12px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

.log-terminal-container {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: #e2e8f0;
  height: 480px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.log-terminal-container::-webkit-scrollbar {
  width: 6px;
}

.log-terminal-container::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.log-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
}

.log-time {
  color: #64748b;
}

.log-badge {
  font-weight: 700;
  font-size: 11px;
  padding: 0 4px;
  border-radius: 3px;
}

.log-badge.info { background: #1e3a8a; color: #93c5fd; }
.log-badge.warn { background: #78350f; color: #fde68a; }
.log-badge.error { background: #7f1d1d; color: #fca5a5; }
.log-badge.success { background: #14532d; color: #86efac; }

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

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

.modal-dialog.large {
  max-width: 860px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #111827;
  color: #ffffff;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
}

.modal-close-btn {
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: background var(--transition-fast);
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-primary {
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: #4338ca;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: auto;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid #6366f1;
}

.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }
.toast.info { border-left-color: #3b82f6; }
.toast.warning { border-left-color: #f59e0b; }

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   DECISION MODAL MULTI-TAB NAVIGATION & CONTROLS
   ========================================================================== */
.decision-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.decision-tab-btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.decision-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

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

.decision-tab-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.decision-tab-pane.active {
  display: block;
}

/* Fancy Decision Sub-Tabs & Status Bar */
.fancy-session-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.session-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
}

.session-stat-pill strong {
  color: #0f172a;
}

.fancy-mode-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.fancy-mode-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  transition: all var(--transition-fast);
}

.fancy-mode-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.fancy-mode-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

/* Rollback History Summary Grid */
.rollback-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.rollback-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.rollback-stat-box .label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.rollback-stat-box .val {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
}

/* Fancy Bet History Filter Grid */
.fbet-history-filter-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.fbet-amount-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fbet-amount-range-row input {
  flex: 1;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
}

/* Info Tooltip Popover */
.match-info-popover {
  position: absolute;
  background: #111827;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  box-shadow: var(--shadow-xl);
  z-index: 500;
  min-width: 220px;
  display: none;
  animation: fadeIn 0.15s ease;
}

.match-info-popover.active {
  display: block;
}

.match-info-popover .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.match-info-popover .row:last-child {
  margin-bottom: 0;
}

.match-info-popover .row .key {
  color: #94a3b8;
}

.match-info-popover .row .val {
  font-weight: 700;
  color: #ffffff;
}

/* Fancy Bet History Summary & Action Toolbar (Points 13, 14, 15, 16, 17) */
.fbet-summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.fbet-stat-cards-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.fbet-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 140px;
}

.fbet-summary-box .label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.fbet-summary-box .val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}

.fbet-summary-box.nc-highlight {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.fbet-summary-box.nc-highlight .label {
  color: #047857;
}

.fbet-summary-box.nc-highlight .val {
  color: #065f46;
}

.fbet-action-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-danger-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger-action:hover:not(:disabled) {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.btn-danger-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-restore-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-restore-action:hover:not(:disabled) {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-restore-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 14-Column Table Formatting (Point 14) */
.fbet-history-table {
  min-width: 1300px;
  white-space: nowrap;
}

.fbet-history-table th {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 2px solid #cbd5e1;
}

.fbet-history-table td {
  padding: 10px 12px;
  font-size: 12.5px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.fbet-history-table tr:hover td {
  background: #f8fafc;
}

.fbet-history-table tr.row-deleted td {
  background: #fff8f8;
  color: #94a3b8;
}

.fbet-history-table tr.row-deleted td strong {
  color: #64748b;
}

.fbet-history-table tr.row-selected td {
  background: #eff6ff !important;
}

/* Pagination Bar (Point 19) */
.fbet-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-top: 14px;
}

.pagination-info {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-current-page {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.spinner-small {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Decision Action Selector Modal (User Screenshot Match) */
.decision-action-dialog {
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.decision-selector-header {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: #ffffff;
}

.decision-selector-title {
  font-size: 15.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.decision-selector-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
  font-weight: 500;
}

.decision-selector-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.decision-selector-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.decision-selector-body {
  padding: 24px;
  background: #ffffff;
}

.decision-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.decision-action-card {
  height: 76px;
  border: none;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.decision-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  filter: brightness(1.07);
}

.decision-action-card:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.decision-action-card.card-market {
  background: #d32f2f;
}

.decision-action-card.card-match {
  background: #3f51b5;
}

.decision-action-card.card-toss {
  background: #00897b;
}

.decision-action-card.card-fancy {
  background: #1e88e5;
}

.decision-action-card.card-daywise {
  background: #8e24aa;
}

.decision-action-card.card-commission {
  background: #00838f;
}

.action-card-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  stroke: #ffffff;
}

.action-card-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

/* Bala99 Confirm Modals (Market & Commission Confirm) */
.bala-confirm-dialog {
  max-width: 380px;
  border-radius: 14px;
  background: #ffffff;
  padding: 30px 24px 24px 24px;
  text-align: center;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.confirm-modal-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.bala-confirm-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bala-confirm-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 24px;
  line-height: 1.45;
}

.bala-confirm-btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-bala-cancel {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-bala-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-bala-confirm {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  padding: 9px 22px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.25);
}

.btn-bala-confirm:hover {
  background: #4338ca;
  box-shadow: 0 6px 10px -1px rgba(79, 70, 229, 0.35);
}

/* Bala99 Form Modals (Match Decision, Toss Decision, Ledger Decision) */
.bala-form-dialog {
  max-width: 460px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  padding: 0;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.bala-dialog-header {
  background: #282561;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.bala-dialog-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.bala-dialog-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.bala-dialog-close-btn:hover {
  opacity: 1;
}

.bala-dialog-body {
  padding: 24px 20px;
  background: #ffffff;
}

.bala-form-label {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.bala-form-select {
  width: 100%;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}

.bala-form-select:focus {
  border-color: #4f46e5;
}

.bala-btn-submit {
  background: #1e1b4b;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  height: 42px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bala-btn-submit:hover:not(:disabled) {
  background: #0f172a;
}

.bala-btn-submit:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

@media (max-width: 992px) {
  .app-sidebar {
    transform: translateX(-100%);
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-main {
    margin-left: 0 !important;
  }
  .matches-table-header {
    display: none;
  }
  .match-row-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .match-actions-col {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ============================================================================
   MATCH EDIT PAGE STYLING (Bala99 /app/matchEdit/:id)
   ============================================================================ */
.match-edit-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.btn-match-edit-back {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1e293b;
  transition: all 0.15s ease;
}

.btn-match-edit-back:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.match-edit-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.02em;
}

.match-edit-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
}

.btn-match-edit-save {
  background: #4f46e5;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  transition: all 0.15s ease;
}

.btn-match-edit-save:hover {
  background: #4338ca;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

.match-edit-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.match-edit-section {
  margin-bottom: 28px;
}

.edit-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.edit-section-bar {
  color: #4f46e5;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
}

.edit-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.match-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edit-form-group label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.edit-input, .edit-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.edit-input:focus, .edit-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.btn-edit-set-url {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-edit-set-url:hover {
  background: #4338ca;
}

.file-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
}

.btn-file-choose {
  background: #6366f1;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-file-choose:hover {
  background: #4f46e5;
}

.file-picker-label {
  font-size: 12px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Accordions */
.edit-accordion-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.edit-accordion-header {
  background: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.edit-accordion-header:hover {
  background: #f8fafc;
}

.accordion-chevron {
  font-size: 12px;
  color: #64748b;
  transition: transform 0.2s ease;
}

.edit-accordion-box.collapsed .accordion-chevron {
  transform: rotate(180deg);
}

.edit-accordion-content {
  padding: 20px 18px;
  background: #ffffff;
}

.edit-accordion-box.collapsed .edit-accordion-content {
  display: none;
}

.stake-inputs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.delay-inputs-grid, .profit-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Permissions Toggles */
.permissions-toggles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.permission-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.perm-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.switch-bala {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

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

.slider-bala {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 22px;
}

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

.switch-bala input:checked + .slider-bala {
  background-color: #4f46e5;
}

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

.perm-actions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.perm-actions-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-perm-danger {
  background: #dc2626;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-perm-danger:hover {
  background: #b91c1c;
}

.btn-perm-primary {
  background: #4f46e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-perm-primary:hover {
  background: #4338ca;
}

.btn-perm-success {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-perm-success:hover {
  background: #047857;
}

.btn-perm-purple {
  background: #9333ea;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-perm-purple:hover {
  background: #7e22ce;
}

/* Other Market Table & Controls */
.other-market-batch-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.batch-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-field-group label {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
}

.btn-batch-apply {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
  padding: 0 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-batch-apply:hover {
  background: #047857;
}

.other-market-table-container {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.other-market-table {
  width: 100%;
  border-collapse: collapse;
}

.other-market-table th {
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  letter-spacing: 0.03em;
}

.other-market-table td {
  padding: 10px 14px;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.other-market-table tr:hover td {
  background: #f8fafc;
}

.btn-market-show {
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.15s ease;
}

.btn-market-show:hover {
  background: #0f172a;
}

.btn-market-decision {
  background: #4f46e5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-market-decision:hover {
  background: #4338ca;
}

.btn-update-market {
  background: #4f46e5;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
  transition: all 0.15s ease;
}

.btn-update-market:hover {
  background: #4338ca;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.4);
}

@media (max-width: 1200px) {
  .match-edit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stake-inputs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .permissions-toggles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .match-edit-grid, .stake-inputs-grid, .delay-inputs-grid, .profit-inputs-grid, .permissions-toggles-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   UNDECLARE BET LIST STYLING (Bala99 /app/undeclareMatchBetList)
   ============================================================================ */
.und-header-banner {
  background: #111625;
  padding: 16px 22px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.und-banner-bar {
  color: #f59e0b;
  font-size: 20px;
  font-weight: 900;
  margin-right: 10px;
}

.und-banner-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.btn-und-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-und-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.und-filter-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 20px 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 22px;
}

.und-filters-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.und-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.und-filter-field label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.und-input, .und-select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  font-weight: 500;
  width: 100%;
}

.und-input:focus, .und-select:focus {
  border-color: #2563eb;
}

.und-action-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-und-apply {
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 0 28px;
  height: 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}

.btn-und-apply:hover {
  background: #1d4ed8;
}

.und-pills-row {
  display: flex;
  gap: 12px;
}

.und-pill-btn {
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.und-pill-btn.odds-pill {
  background: #e0f2fe;
  color: #0284c7;
}

.und-pill-btn.odds-pill.active {
  background: #0284c7;
  color: #ffffff;
}

.und-pill-btn.fancy-pill {
  background: #ede9fe;
  color: #7c3aed;
}

.und-pill-btn.fancy-pill.active {
  background: #7c3aed;
  color: #ffffff;
}

.und-pill-badge {
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10.5px;
}

.und-pill-btn.active .und-pill-badge {
  background: #ffffff;
  color: #1e293b;
}

.und-table-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 22px;
}

.und-table-header-title {
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.und-count-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.und-count-badge.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.und-count-badge.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.und-data-table {
  width: 100%;
  border-collapse: collapse;
}

.und-data-table th {
  background: #111827;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.und-data-table td {
  padding: 12px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.und-empty-state {
  text-align: center;
  padding: 45px 20px;
}

.und-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.und-empty-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.und-table-footer {
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.und-pagination {
  display: flex;
  gap: 6px;
}

.btn-und-page {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 13px;
  transition: all 0.15s ease;
}

.btn-und-page:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ============================================================================
   WEBSITE MANAGEMENT STYLING (Bala99 /app/website)
   ============================================================================ */
.web-page-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.web-icon-badge {
  background: #4f46e5;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: 0.02em;
}

.web-page-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.btn-web-add {
  background: #6366f1;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: background 0.15s ease;
}

.btn-web-add:hover {
  background: #4f46e5;
}

.web-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.web-kpi-card {
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
}

.web-kpi-card.purple {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.web-kpi-card.white {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.web-kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}

.web-kpi-card.purple .web-kpi-top {
  color: rgba(255, 255, 255, 0.85);
}

.web-kpi-top.green {
  color: #059669;
}

.web-kpi-top.blue {
  color: #2563eb;
}

.web-kpi-top.orange {
  color: #d97706;
}

.web-kpi-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #1e293b;
}

.web-kpi-card.purple .web-kpi-val {
  color: #ffffff;
}

.web-kpi-val.green {
  color: #059669;
}

.web-kpi-val.blue {
  color: #2563eb;
}

.web-kpi-val.orange {
  color: #d97706;
}

.web-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.web-status-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.web-tab-btn {
  background: transparent;
  border: none;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.web-tab-btn.active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.web-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
  height: 38px;
  width: 320px;
}

.web-search-box input {
  border: none;
  outline: none;
  font-size: 12.5px;
  width: 100%;
  color: #1e293b;
}

.web-results-count {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.web-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.web-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #6366f1;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.web-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.web-card-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-card-globe-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.web-card-name {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.web-card-domain-link {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.web-card-domain-link:hover {
  color: #4f46e5;
}

.web-card-badge-active {
  background: #ecfdf5;
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.web-card-badge-deleted {
  background: #fef2f2;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.web-card-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 10px 0 14px 0;
}

.web-card-props-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.web-prop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.web-prop-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

.web-prop-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.web-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.web-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
}

.web-tag.highlight-blue {
  background: #dbeafe;
  color: #2563eb;
  font-weight: 700;
}

.web-tag.highlight-orange {
  background: #ffedd5;
  color: #ea580c;
  font-weight: 700;
}

.web-card-assignment {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 8px;
}

.web-card-withdraw {
  font-size: 12.5px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 18px;
}

.web-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.web-card-dates {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.web-card-actions {
  display: flex;
  gap: 8px;
}

.btn-web-settings {
  background: #2563eb;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s ease;
}

.btn-web-settings:hover {
  background: #1d4ed8;
}

.btn-web-delete {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-web-delete:hover {
  background: #fca5a5;
  color: #b91c1c;
}

@media (max-width: 1200px) {
  .und-filters-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .web-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .web-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .und-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .web-kpi-grid {
    grid-template-columns: 1fr;
  }
  .web-sub-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .web-search-box {
    width: 100%;
  }
  .ed-grid-2, .ed-toggle-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================================
   ADD WEBSITE MODAL (Screenshot 1)
   ============================================================================ */
.web-add-modal-dialog {
  max-width: 440px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
}

.web-add-modal-header {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #8b5cf6 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.web-add-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.web-add-globe-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.web-add-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.web-add-sub {
  font-size: 12px;
  margin: 2px 0 0 0;
  color: rgba(255, 255, 255, 0.85);
}

.web-add-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s ease;
}

.web-add-close-btn:hover {
  color: #ffffff;
}

.web-add-modal-body {
  padding: 22px 24px 10px 24px;
  background: #ffffff;
}

.web-add-form-group {
  margin-bottom: 16px;
}

.web-add-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.web-add-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  transition: border 0.15s ease, background 0.15s ease;
}

.web-add-input:focus {
  border-color: #6366f1;
  background: #ffffff;
}

.web-add-modal-footer {
  padding: 16px 24px 24px 24px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-web-add-cancel {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}

.btn-web-add-cancel:hover {
  background: #e2e8f0;
}

.btn-web-add-submit {
  background: #5046e5;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(80, 70, 229, 0.35);
  transition: opacity 0.15s ease;
}

.btn-web-add-submit:hover {
  opacity: 0.95;
}

/* ============================================================================
   EDIT DOMAIN VIEW & TABS (Screenshots 2, 3, 4, 5)
   ============================================================================ */
#view-edit-domain {
  padding-top: 4px;
}

.ed-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.btn-ed-back {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ed-back:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.ed-title-box {
  display: flex;
  flex-direction: column;
}

.ed-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: 0.01em;
}

.ed-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

.btn-ed-save {
  background: #5046e5;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 3px 10px rgba(80, 70, 229, 0.35);
  transition: opacity 0.15s ease;
}

.btn-ed-save:hover {
  opacity: 0.95;
}

.ed-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ed-tab-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.ed-tab-btn:hover {
  color: #1e293b;
  border-color: #cbd5e1;
}

.ed-tab-btn.active {
  background: #5046e5;
  color: #ffffff;
  border-color: #5046e5;
  box-shadow: 0 2px 6px rgba(80, 70, 229, 0.25);
}

.ed-tab-content {
  display: none;
}

.ed-tab-content.active {
  display: block;
}

.ed-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ed-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.ed-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ed-field-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-input, .ed-select, .ed-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #1e293b;
  font-family: inherit;
  outline: none;
  transition: border 0.15s ease, background 0.15s ease;
}

.ed-input:focus, .ed-select:focus, .ed-textarea:focus {
  border-color: #5046e5;
  background: #ffffff;
}

.ed-uploads-row {
  display: flex;
  gap: 36px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.ed-upload-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-ed-upload {
  background: #5046e5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.15s ease;
}

.btn-ed-upload:hover {
  opacity: 0.95;
}

.ed-upload-info {
  font-size: 11.5px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.ed-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.btn-ed-save-changes {
  background: #5046e5;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(80, 70, 229, 0.35);
  letter-spacing: 0.02em;
  transition: opacity 0.15s ease;
}

.btn-ed-save-changes:hover {
  opacity: 0.95;
}

.ed-sec-heading {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 14px;
}

.ed-toggle-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.ed-toggle-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ed-switch-row:hover {
  background: #f8fafc;
}

.ed-switch-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.ed-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #cbd5e1;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.ed-switch.on {
  background: #5046e5;
}

.ed-switch-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ed-switch-knob::after {
  content: "✕";
  font-size: 9px;
  color: #94a3b8;
  font-weight: 800;
  line-height: 1;
}

.ed-switch.on .ed-switch-knob {
  left: 23px;
}

.ed-switch.on .ed-switch-knob::after {
  content: "✓";
  font-size: 10px;
  color: #5046e5;
  font-weight: 900;
  line-height: 1;
}

/* ============================================================================
   THEME TAB STYLING (Screenshots 1, 2, 3, 4, 5)
   ============================================================================ */
.theme-sec-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.theme-sec-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 16px;
}

/* 1. Presets */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.theme-preset-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.theme-preset-card:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.12);
}

.theme-preset-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.preset-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.theme-preset-name {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.theme-preset-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

/* 2. Color Cards Grid */
.theme-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.theme-color-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.15s ease;
}

.theme-color-card:hover {
  border-color: #cbd5e1;
}

.theme-color-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-color-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-bar-indicator {
  width: 6px;
  height: 22px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.theme-hex-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #1e293b;
  outline: none;
  text-transform: uppercase;
  min-width: 0;
}

.theme-native-picker {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  flex-shrink: 0;
}

.theme-card-bottom-line {
  height: 3px;
  border-radius: 2px;
  margin-top: 2px;
  width: 100%;
  transition: background-color 0.15s ease;
}

/* 3. Typography & Sizing */
.theme-typo-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.theme-field-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.theme-select, .theme-text-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-select:focus, .theme-text-input:focus {
  border-color: #5046e5;
  background: #ffffff;
}

/* 8. Live Preview Box (Mockup) */
.theme-live-preview-box {
  border: 1px solid #0f172a;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-top: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.prev-navbar {
  background: #1a1a2e;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prev-nav-title {
  font-size: 12px;
  font-weight: 700;
}

.prev-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
}

.prev-btn-login, .prev-btn-reg {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.prev-btn-login {
  background: #3b82f6;
  color: #ffffff;
}

.prev-btn-reg {
  background: #6366f1;
  color: #ffffff;
}

.prev-body-wrap {
  display: flex;
  min-height: 400px;
}

.prev-sidebar {
  width: 130px;
  background: #111625;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.prev-side-item {
  font-size: 11px;
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 4px;
}

.prev-side-item.active {
  background: #5356f1;
  color: #ffffff;
  font-weight: 700;
}

.prev-content {
  flex: 1;
  background: #ffffff;
  padding: 16px 20px;
}

.prev-content-heading {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.prev-match-card {
  background: #111625;
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  margin-bottom: 12px;
}

.prev-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
}

.prev-live-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.prev-odds-teams-row {
  display: flex;
  justify-content: space-around;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 6px;
}

.prev-odds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.prev-odds-box {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 6px 4px;
  border-radius: 4px;
}

.prev-odds-box.back {
  background: #72bbef;
  color: #0f172a;
}

.prev-odds-box.lay {
  background: #faa9ba;
  color: #0f172a;
}

.prev-sample-text-wrap {
  margin-top: 10px;
}

.prev-muted-text {
  font-size: 10.5px;
  color: #94a3b8;
}

.prev-sample-link {
  font-size: 10.5px;
  color: #3b82f6;
  text-decoration: underline;
  display: inline-block;
  margin: 2px 0 8px 0;
}

.prev-btn-badges-row {
  display: flex;
  gap: 6px;
}

.prev-badge-btn {
  font-size: 9.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  color: #ffffff;
}

.prev-badge-btn.primary {
  background: #6366f1;
}

.prev-badge-btn.success {
  background: #22c55e;
}

.prev-badge-btn.danger {
  background: #ef4444;
}

.prev-badge-btn.warning {
  background: #f59e0b;
}

.prev-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.prev-login-card {
  background: #111625;
  padding: 12px;
  border-radius: 6px;
  color: #ffffff;
}

.prev-sub-heading {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #94a3b8;
}

.prev-login-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  color: #ffffff;
  margin-bottom: 6px;
  outline: none;
}

.prev-btn-signin {
  width: 100%;
  background: #6366f1;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.prev-casino-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 10px;
  border-radius: 6px;
}

.prev-casino-table {
  width: 100%;
  font-size: 10px;
}

.prev-casino-th {
  background: #1e293b;
  color: #ffffff;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 4px 4px 0 0;
}

.prev-casino-tr {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.prev-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

/* 9. Segmented Control & Footer */
.theme-footer-config-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.theme-segmented-group {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.theme-seg-btn {
  flex: 1;
  background: #ffffff;
  border: none;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-seg-btn.active {
  background: #5046e5;
  color: #ffffff;
}

@media (max-width: 1200px) {
  .theme-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theme-colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .theme-presets-grid {
    grid-template-columns: 1fr;
  }
  .theme-colors-grid {
    grid-template-columns: 1fr;
  }
  .theme-typo-row, .theme-footer-config-row {
    flex-direction: column;
  }
  .prev-split-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   SOCIAL TAB STYLING (Screenshot 1)
   ============================================================================ */
.ed-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ed-social-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ed-social-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ed-social-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ed-social-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  flex-shrink: 0;
}

.ed-social-label {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-social-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
  outline: none;
  transition: all 0.15s ease;
}

.ed-social-input:focus {
  border-color: #5046e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(80, 70, 229, 0.08);
}

/* ============================================================================
   BANNERS TAB STYLING (Screenshot 2)
   ============================================================================ */
.ed-banners-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.ed-banners-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.btn-ed-add-banner {
  background: #10b981;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-ed-add-banner:hover {
  background: #059669;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.ed-banners-container {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ed-banners-empty {
  text-align: center;
  padding: 48px 24px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}

.ed-banner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.15s ease;
}

.ed-banner-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ed-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ed-banner-thumb {
  width: 72px;
  height: 44px;
  border-radius: 6px;
  background: #f1f5f9;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.ed-banner-info-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.ed-banner-info-meta {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

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

.btn-banner-delete {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-banner-delete:hover {
  background: #e11d48;
  color: #ffffff;
}

/* ============================================================================
   BONUS TAB STYLING (Screenshot 3)
   ============================================================================ */
.ed-bonus-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.ed-bonus-card.card-deposit {
  border: 1.5px solid #d1fae5;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 18%);
}

.ed-bonus-card.card-signup {
  border: 1.5px solid #ede9fe;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 22%);
}

.ed-bonus-card.card-referral {
  border: 1.5px solid #e0e7ff;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 22%);
}

.ed-bonus-header {
  margin-bottom: 16px;
}

.ed-bonus-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ed-bonus-title.text-green {
  color: #059669;
}

.ed-bonus-title.text-purple {
  color: #6366f1;
}

.ed-bonus-title.text-blue {
  color: #4338ca;
}

.ed-bonus-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.ed-bonus-switch-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.ed-bonus-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  row-gap: 16px;
}

.ed-bonus-split-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .ed-social-grid, .ed-bonus-split-row, .ed-bonus-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   SEO TAB STYLING (Screenshots 1, 2, 3)
   ============================================================================ */
.ed-sec-heading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ed-sec-indicator {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ed-sec-indicator.green {
  background: #10b981;
}

.ed-sec-indicator.blue {
  background: #3b82f6;
}

.ed-sec-indicator.purple {
  background: #6366f1;
}

.ed-sec-indicator.orange {
  background: #f59e0b;
}

.ed-sec-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ed-sec-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 14px;
}

/* Social Share Preview Card */
.ed-share-preview-wrapper {
  margin-top: 24px;
}

.ed-share-preview-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  max-width: 480px;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.ed-share-img-box {
  height: 160px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.ed-share-img-placeholder {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
}

.ed-share-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ed-share-content {
  padding: 16px 18px;
}

.ed-share-domain {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ed-share-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.ed-share-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Indexing & Robots Cards */
.ed-robot-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ed-robot-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.ed-robot-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

/* ============================================================================
   PAGES TAB STYLING (Screenshots 1-5, 12 Page Editor Cards)
   ============================================================================ */
.ed-pages-main-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ed-page-editor-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.ed-page-editor-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ed-page-editor-card.fullscreen-active {
  position: fixed;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 1200;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

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

.ed-page-card-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ed-page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-page-icon {
  font-size: 16px;
}

.ed-page-title-text {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
}

.ed-page-subtitle-text {
  font-size: 11.5px;
  color: #64748b;
}

.btn-page-expand {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-page-expand:hover {
  color: #1e293b;
  background: #f1f5f9;
}

/* Toolbar Styling */
.ed-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.ed-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ed-toolbar-divider {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 4px;
}

.ed-toolbar-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  color: #334155;
  font-weight: 500;
  outline: none;
  height: 26px;
}

.ed-toolbar-btn {
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: #334155;
  cursor: pointer;
  transition: all 0.1s ease;
}

.ed-toolbar-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Content Editable Area */
.ed-editor-content {
  min-height: 110px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
  outline: none;
  font-family: inherit;
}

.ed-editor-content:focus {
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.ed-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

/* ==========================================================================
   USER EXPOSURE (view-user-exposure)
   ========================================================================== */
.ue-top-header {
  background: #111a2e;
  border-radius: 6px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

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

.ue-gold-bar {
  width: 3.5px;
  height: 22px;
  background: #f59e0b;
  border-radius: 2px;
  display: inline-block;
}

.ue-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.ue-btn-back {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ue-btn-back:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #64748b;
}

.ue-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ue-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.ue-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
}

.ue-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ue-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.ue-btn-apply {
  height: 38px;
  padding: 0 26px;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s ease;
}

.ue-btn-apply:hover {
  background: #2563eb;
}

.ue-list-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ue-card-header {
  margin-bottom: 16px;
}

.ue-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.ue-card-subtitle {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.ue-table-responsive {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.ue-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.ue-table thead tr {
  background: #101827;
}

.ue-table th {
  padding: 12px 14px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid #1f293d;
  white-space: nowrap;
}

.ue-table th:last-child {
  border-right: none;
}

.ue-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 12.5px;
  border-right: 1px solid #f1f5f9;
  white-space: nowrap;
}

.ue-table td:last-child {
  border-right: none;
}

.ue-table tbody tr:hover {
  background: #f8fafc;
}

.ue-no-data {
  text-align: center;
  padding: 42px 16px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  background: #ffffff;
}

/* ==========================================================================
   USER ANALYTICS (view-user-analytics)
   ========================================================================== */
.ua-page-header {
  margin-bottom: 20px;
}

.ua-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.ua-page-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.ua-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px 24px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ua-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 260px;
}

.ua-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ua-label-sub {
  text-transform: none;
  font-weight: 500;
  color: #94a3b8;
}

.ua-input {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.ua-input:focus {
  border-color: #5046e5;
  box-shadow: 0 0 0 2px rgba(80, 70, 229, 0.15);
}

.ua-btn-search {
  height: 40px;
  padding: 0 36px;
  background: #5046e5;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s ease;
}

.ua-btn-search:hover {
  background: #4338ca;
}

.ua-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-height: 380px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ua-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.ua-avatar-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ua-empty-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}

/* User Analytics Report Cards */
.ua-profile-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ua-profile-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ua-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ua-profile-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ua-profile-id {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
  margin-top: 2px;
}

.ua-profile-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ua-profile-stat-item {
  text-align: right;
}

.ua-profile-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.ua-profile-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.ua-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ua-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.ua-stat-card.blue { border-left: 4px solid #2563eb; }
.ua-stat-card.emerald { border-left: 4px solid #10b981; }
.ua-stat-card.purple { border-left: 4px solid #8b5cf6; }
.ua-stat-card.amber { border-left: 4px solid #f59e0b; }

.ua-stat-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ua-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.ua-stat-sub {
  font-size: 11.5px;
  font-weight: 600;
}

.ua-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.ua-breakdown-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.ua-breakdown-card.b-cricket { border-left: 4px solid #4f46e5; }
.ua-breakdown-card.b-fancy { border-left: 4px solid #2563eb; }
.ua-breakdown-card.b-casino { border-left: 4px solid #0891b2; }
.ua-breakdown-card.b-matka { border-left: 4px solid #d97706; }

.ua-breakdown-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.ua-breakdown-val {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.ua-breakdown-sub {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.ua-history-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.ua-history-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CASINO & MATKA SUB-TABS NAVIGATION
   ========================================================================== */
.section-tab-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 10px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.section-tab-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.section-tab-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}

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

.section-subpanel {
  display: none;
}

.section-subpanel.active {
  display: block;
}

/* ==========================================================================
   DIAMOND CASINO SCREENSHOT DESIGNS
   ========================================================================== */
.dc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dc-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.dc-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.dc-kpi-icon.blue { background: #eff6ff; color: #3b82f6; }
.dc-kpi-icon.green { background: #ecfdf5; color: #10b981; }
.dc-kpi-icon.purple { background: #f5f3ff; color: #8b5cf6; }

.dc-kpi-num {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.dc-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dc-filter-toolbar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dc-search-field {
  flex: 1;
  min-width: 220px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  color: #1e293b;
  outline: none;
}

.dc-search-field:focus {
  border-color: #3b82f6;
}

.dc-pill-box {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.dc-pill-btn {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.dc-pill-btn.active-blue {
  background: #3b82f6;
  color: #ffffff;
}

.dc-pill-btn.active-purple {
  background: #6366f1;
  color: #ffffff;
}

.btn-table-edit {
  background: #1e293b;
  color: #ffffff;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}

.btn-table-edit:hover {
  background: #334155;
}

/* Bet List Specific Row Styling */
.bet-row-won {
  background: #f0fdf4 !important;
}

.bet-row-lost {
  background: #fef2f2 !important;
}

.badge-pnl-pos {
  background: #22c55e;
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-pnl-neg {
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.winner-badge-green {
  color: #15803d;
  font-weight: 800;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   INT. CASINO SCREENSHOT STYLING (Screenshots 1 - 5)
   ========================================================================== */
.int-kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.int-kpi-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.int-kpi-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .int-kpi-grid-4, .int-kpi-grid-3, .int-kpi-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 550px) {
  .int-kpi-grid-4, .int-kpi-grid-3, .int-kpi-grid-2 {
    grid-template-columns: 1fr;
  }
}

.int-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.int-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.int-kpi-icon.blue { background: #6366f1; color: #ffffff; }
.int-kpi-icon.green { background: #10b981; color: #ffffff; }
.int-kpi-icon.red { background: #ef4444; color: #ffffff; }
.int-kpi-icon.purple { background: #8b5cf6; color: #ffffff; }
.int-kpi-icon.amber { background: #f59e0b; color: #ffffff; }

.int-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.int-kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.int-empty-box {
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.int-empty-icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.int-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.int-empty-sub {
  font-size: 12px;
  color: #94a3b8;
}

/* ==========================================================================
   SYSTEM & ADMINISTRATION STYLES
   ========================================================================== */
.pulsing-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.pulsing-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}
.pulsing-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-amber 2s infinite;
}
.pulsing-dot.offline {
  background: #ef4444;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-amber {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.health-grid-8 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.health-card-modern {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.health-card-modern:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.health-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.health-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.health-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.health-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.health-card-port {
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.health-card-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  font-size: 11.5px;
}

.health-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.btn-ping-service {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-ping-service:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.cf-banner-attack {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  animation: pulse-banner 3s infinite;
}

@keyframes pulse-banner {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}

.cf-quick-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.cf-quick-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.cf-quick-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.cf-quick-btn.danger-active {
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.perm-table th, .perm-table td {
  padding: 10px 12px !important;
  font-size: 12px;
}

.perm-category-row {
  background: #f1f5f9 !important;
  font-weight: 800;
  font-size: 11.5px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perm-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #4f46e5;
}

.log-filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  transition: all 0.15s;
}

.log-filter-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.log-filter-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.log-filter-pill.active.info { background: #3b82f6; border-color: #3b82f6; }
.log-filter-pill.active.warn { background: #f59e0b; border-color: #f59e0b; }
.log-filter-pill.active.error { background: #ef4444; border-color: #ef4444; }
.log-filter-pill.active.success { background: #10b981; border-color: #10b981; }

.log-line-entry {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.log-line-time {
  color: #64748b;
  flex-shrink: 0;
}

.log-tag-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.log-tag-info { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.log-tag-warn { background: rgba(245, 158, 11, 0.2); color: #fde68a; }
.log-tag-error { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.log-tag-success { background: rgba(16, 185, 129, 0.2); color: #86efac; }
.log-tag-debug { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }

/* ==========================================================================
   REACTIVE UI & REAL-TIME CONTROLS
   ========================================================================== */

/* Header Feed Sync Controls */
.feed-sync-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(165, 180, 252, 0.2);
}

.feed-sync-icon-btn:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  transform: scale(1.1);
}

.feed-sync-icon-btn.spinning svg {
  animation: spinSync 0.75s linear infinite;
}

@keyframes spinSync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.status-dot-pulse.paused {
  background-color: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

/* Notifications Dropdown Panel */
.notifications-dropdown-menu {
  position: absolute;
  top: calc(var(--header-height) + 6px);
  right: 65px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  width: 340px;
  max-width: calc(100vw - 24px);
  z-index: 1000;
  display: none;
  animation: fadeInDown 0.2s ease;
  overflow: hidden;
}

.notifications-dropdown-menu.active {
  display: block;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-header-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
  margin-right: 6px;
}

.notif-badge-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #4f46e5;
  color: #ffffff;
}

.notif-clear-btn {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s;
}

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

.notifications-list {
  max-height: 350px;
  overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
  width: 4px;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
  cursor: pointer;
}

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

.notif-item.unread {
  background: rgba(99, 102, 241, 0.08);
}

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

.notif-item-icon.inplay { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.notif-item-icon.bet { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.notif-item-icon.alert { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.notif-item-icon.system { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
}

.notif-item-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

.notif-item-time {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 4px;
}

.notif-empty {
  padding: 30px 20px;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
}

/* Floating Reactive Bulk Action Bar */
.bulk-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 900;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.bulk-action-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bulk-action-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-count-badge {
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-label {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
}

.bulk-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-bulk {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-bulk-save {
  background: #059669;
  color: #ffffff;
}

.btn-bulk-save:hover {
  background: #10b981;
  transform: translateY(-1px);
}

.btn-bulk-auto {
  background: #4f46e5;
  color: #ffffff;
}

.btn-bulk-auto:hover {
  background: #6366f1;
  transform: translateY(-1px);
}

.btn-bulk-clear {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.btn-bulk-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Floating Scroll-To-Top Button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.6);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 950;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  padding: 0 6px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 10px;
  transition: all 0.2s ease;
  border-radius: 8px;
  flex: 1;
  min-height: 48px;
}

.mobile-nav-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.mobile-nav-btn.active {
  color: #818cf8;
}

.mobile-nav-btn.active svg {
  transform: translateY(-2px);
  color: #818cf8;
}

.mobile-nav-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Laptop / Desktop Compact (<= 1280px) */
@media screen and (max-width: 1280px) {
  .app-sidebar {
    width: 220px;
  }

  .app-main {
    margin-left: 220px;
    padding: 18px 20px 60px;
  }

  .matches-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .matches-table-header,
  .match-row-item {
    min-width: 980px;
  }
}

/* Tablet Landscape / Medium Screens (<= 1024px) */
@media screen and (max-width: 1024px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    max-width: 85vw;
    z-index: 1200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .app-main {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 18px 16px 80px;
  }

  .filter-action-card {
    flex-wrap: wrap;
    gap: 10px;
  }

  .filter-action-card .filter-input,
  .filter-action-card .filter-select {
    flex: 1 1 140px;
    width: auto !important;
  }

  .btn-filter-submit,
  .btn-save-inplay,
  .btn-auto-decision {
    flex: 1 1 auto;
  }
}

/* Tablet Portrait & Mobile Screens (<= 768px) */
@media screen and (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .app-main {
    padding: 14px 12px 90px !important;
  }

  .bulk-action-bar {
    bottom: 70px;
  }

  .scroll-to-top-btn {
    bottom: 72px;
    right: 16px;
  }

  /* Header mobile optimization */
  .app-header {
    padding: 0 12px;
  }

  .brand-text {
    font-size: 16px;
  }

  .header-clock {
    display: none;
  }

  .header-status-pill {
    padding: 3px 8px;
    font-size: 11px;
    gap: 5px;
  }

  .user-profile-name {
    display: none;
  }

  .user-profile-badge {
    padding: 4px;
    border-radius: 50%;
  }

  .profile-dropdown-arrow {
    display: none;
  }

  .profile-dropdown-menu {
    right: 10px;
    width: 200px;
  }

  .notifications-dropdown-menu {
    right: 10px;
    left: 10px;
    width: auto;
  }

  /* Filter form stacking */
  .filter-action-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-action-card .filter-input,
  .filter-action-card .filter-select {
    grid-column: span 1;
    width: 100% !important;
  }

  .filter-action-card .filter-input.match-name {
    grid-column: span 2;
  }

  .btn-filter-submit,
  .btn-save-inplay,
  .btn-auto-decision {
    grid-column: span 2;
    height: 42px;
  }

  /* Sports pill bar horizontal swipe */
  .sports-tab-bar {
    padding: 8px;
    gap: 6px;
  }

  .sport-tab-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Fancy bet history filter card */
  .fbet-history-filter-card {
    grid-template-columns: 1fr !important;
  }

  /* Table horizontal scroll wrapper with subtle indicator */
  .matches-table-container {
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .matches-table-header,
  .match-row-item {
    min-width: 940px;
  }

  /* Modals on mobile */
  .modal-dialog {
    max-width: 95vw !important;
    margin: 16px auto;
    border-radius: 16px;
  }

  .modal-dialog.large {
    max-width: 96vw !important;
  }

  /* Stats grid responsive */
  .analytics-kpi-grid,
  .exposure-kpi-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Extra Small Phones (<= 480px) */
@media screen and (max-width: 480px) {
  .login-card-wrapper {
    padding: 10px;
  }

  .login-card {
    padding: 24px 16px 20px;
    border-radius: 16px;
  }

  .login-card-title {
    font-size: 19px;
  }

  .login-footer-badges {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-title {
    font-size: 18px;
  }

  .filter-action-card {
    grid-template-columns: 1fr;
  }

  .filter-action-card .filter-input,
  .filter-action-card .filter-select {
    grid-column: span 1 !important;
  }

  .bulk-action-bar {
    flex-direction: column;
    border-radius: 16px;
    gap: 8px;
    padding: 10px 14px;
    bottom: 68px;
  }

  .bulk-action-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .btn-bulk {
    flex: 1;
    text-align: center;
  }
}


