/* ============================================================
   MEESHO PRO — Premium SaaS Design System
   Dark/Light Theme | Stripe/Notion Quality UI
   ============================================================ */

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

/* ===== LIGHT THEME (DEFAULT) ===== */
:root {
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --border: #E5E7EB;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --accent: #FF5722;
  --accent-hover: #E64A19;
  --accent-2: #673AB7;
  --accent-2-hover: #5E35B1;
  --hover: #FFD54F;
  --success: #16A34A;
  --error: #DC2626;
  --warning: #F59E0B;

  /* Semantic aliases for backward compat */
  --bg-body: #F5F6FA;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F3F4F6;
  --bg-elevated: #FFFFFF;
  --bg-inset: #F1F3F9;
  --bg-muted: #EEF1F6;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;
  --border-default: #E5E7EB;
  --border-strong: #D1D5DB;
  --border-focus: #FF5722;
  --primary: #FF5722;
  --primary-hover: #E64A19;
  --primary-soft: rgba(255,87,34,0.08);
  --success-soft: rgba(22,163,74,0.08);
  --success-text: #15803D;
  --danger: #DC2626;
  --danger-soft: rgba(220,38,38,0.08);
  --danger-text: #B91C1C;
  --warning-soft: rgba(245,158,11,0.08);
  --warning-text: #92400E;
  --sidebar-bg: #F8F9FA;          /* Light surface color */
  --sidebar-surface: #FFFFFF;     /* Pure white for items container */
  --sidebar-text: #111827;        /* Dark gray text for visibility */
  --sidebar-text-muted: #6B7280;  /* Muted text for subtle elements */
  --sidebar-border: #E5E7EB;      /* Light border line */
  --sidebar-hover: rgba(0,0,0,0.04); /* Soft gray on hover */
  --sidebar-active-bg: rgba(255,87,34,0.08);
  --sidebar-active-text: #FF5722;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Legacy compat */
  --color-primary: #FF5722;
  --color-primary-hover: #E64A19;
  --color-secondary: #673AB7;
  --color-accent: #673AB7;
  --color-text: #111827;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --border-thick: 2px solid #E5E7EB;
  --border-thin: 1px solid #E5E7EB;
  --shadow-hard: var(--shadow-md);
  --shadow-hard-hover: var(--shadow-lg);
  --transition: all var(--transition-base);
  --bg-main: #F5F6FA;
  --bg-card: #FFFFFF;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #181818;
  --surface: #232323;
  --border: #2C2C2C;
  --text-primary: #F7F7F7;
  --text-secondary: #B0B0B0;
  --accent: #FF5722;
  --accent-hover: #E64A19;
  --accent-2: #673AB7;
  --accent-2-hover: #5E35B1;
  --hover: #FFEB3B;
  --success: #4CAF50;
  --error: #F44336;
  --warning: #FFC107;

  --bg-body: #181818;
  --bg-surface: #232323;
  --bg-surface-hover: #2A2A2A;
  --bg-elevated: #2C2C2C;
  --bg-inset: #1A1A1A;
  --bg-muted: #2A2A2A;
  --text-muted: #888888;
  --text-inverse: #181818;
  --border-default: #2C2C2C;
  --border-strong: #3A3A3A;
  --border-focus: #FF5722;
  --primary: #FF5722;
  --primary-hover: #E64A19;
  --primary-soft: rgba(255,87,34,0.12);
  --success-soft: rgba(76,175,80,0.12);
  --success-text: #81C784;
  --danger: #F44336;
  --danger-soft: rgba(244,67,54,0.12);
  --danger-text: #EF9A9A;
  --warning-soft: rgba(255,193,7,0.12);
  --warning-text: #FFD54F;
  --sidebar-bg: #0D0D0D;
  --sidebar-surface: #1A1A1A;
  --sidebar-text: #CCCCCC;
  --sidebar-text-muted: #777777;
  --sidebar-border: #2C2C2C;
  --sidebar-hover: rgba(255,255,255,0.05);
  --sidebar-active-bg: rgba(255,87,34,0.12);
  --sidebar-active-text: #FF5722;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6), 0 8px 10px -6px rgba(0,0,0,0.5);

  --color-primary: #FF5722;
  --color-primary-hover: #E64A19;
  --color-secondary: #673AB7;
  --color-accent: #673AB7;
  --color-text: #F7F7F7;
  --color-muted: #B0B0B0;
  --color-border: #2C2C2C;
  --border-thick: 2px solid #2C2C2C;
  --border-thin: 1px solid #2C2C2C;
  --bg-main: #181818;
}

/* ===== GLOBAL RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition-slow), color var(--transition-slow);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-hover); }

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* ===== HEADER / NAVBAR ===== */
header {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] header {
  background: rgba(24,24,24,0.85);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
}
.logo svg {
  border-radius: var(--radius-sm);
  background: var(--accent);
  padding: 3px;
}
.logo span {
  background: var(--accent);
  color: #FFFFFF;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  margin-left: 2px;
  font-size: 14px;
  font-weight: 900;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-item {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--bg-inset);
}
.nav-item.active {
  color: var(--accent);
  background: var(--primary-soft);
  font-weight: 700;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px !important;
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-border) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  z-index: 1000 !important;
  padding: 24px 14px !important;
  box-sizing: border-box !important;
}
.sidebar-brand {
  font-size: 20px;
  font-weight: 900;
  color: var(--sidebar-text);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.sidebar-brand span {
  background: var(--accent);
  color: #FFFFFF;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 900;
}
.sidebar-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex-grow: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  background: transparent;
  transition: all var(--transition-fast);
  position: relative;
}
.sidebar-item .icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}
.sidebar-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-weight: 700;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}
.sidebar-item .badge-count {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: auto;
}
.sidebar-footer {
  border-top: 1px solid var(--sidebar-border) !important;
  padding-top: 16px !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: var(--sidebar-bg) !important;
}
.user-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.avatar-letter {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #FFFFFF;
  flex-shrink: 0;
}
.user-details {
  overflow: hidden;
  min-width: 0;
}
.user-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--sidebar-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-email {
  font-size: 11px;
  color: var(--sidebar-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-topup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--accent);
  border: none;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.btn-topup:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.link-signout {
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  padding: 6px 4px;
  transition: color var(--transition-fast);
  display: inline-block;
}
.link-signout:hover { color: var(--danger); }

.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sidebar-text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  user-select: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-theme-toggle:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}
.theme-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--sidebar-border);
  border-radius: 10px;
  margin-left: auto;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.theme-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: var(--sidebar-text);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
[data-theme="dark"] .theme-switch {
  background: var(--accent);
}
[data-theme="dark"] .theme-switch::after {
  transform: translateX(16px);
  background: var(--sidebar-bg);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex-grow: 1;
  margin-left: 260px;
  padding: 36px 44px;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}
.main-content h1 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}
.main-content p.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255,87,34,0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px rgba(255,87,34,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.btn-accent {
  background: var(--accent-2);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(103,58,183,0.25);
}
.btn-accent:hover {
  background: var(--accent-2-hover);
  box-shadow: 0 4px 16px rgba(103,58,183,0.35);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* ===== FORMS & INPUTS ===== */
input, select, textarea {
  width: 100%;
  padding: 9px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-success {
  background: var(--success-soft);
  color: var(--success-text);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger-text);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning-text);
}

/* ===== TABLES ===== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  margin-bottom: 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: var(--bg-inset);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-surface-hover); }
.table-wrapper tr:nth-child(even) td { background: var(--bg-inset); }
.table-wrapper tr:nth-child(even):hover td { background: var(--bg-surface-hover); }

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span {
  background: var(--accent);
  color: #FFFFFF;
  padding: 2px 14px;
  border-radius: var(--radius-md);
  display: inline-block;
}
.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 30px;
  font-weight: 500;
  line-height: 1.7;
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--sidebar-bg);
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee-content {
  display: inline-block;
  animation: marquee 35s linear infinite;
  padding-left: 20%;
}
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ===== HIGHLIGHT BLOCK ===== */
.highlight-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateY(0); }

/* ===== METRIC CARDS ===== */
.metric-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.metric-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.metric-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.metric-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}
.metric-stat-card.orange::after { background: var(--accent-2); }
.metric-stat-card.green::after { background: var(--success); }
.metric-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
}
.metric-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.metric-stat-desc {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-stat-icon {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 28px;
  opacity: 0.12;
}

/* ===== DASHBOARD STATS STRIP ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-strip-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}
.stat-strip-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-strip-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}
.stat-strip-item.orange::after { background: var(--accent-2); }
.stat-strip-item.green::after { background: var(--success); }
.stat-strip-details { display: flex; flex-direction: column; text-align: left; }
.stat-strip-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.stat-strip-value { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; letter-spacing: -0.03em; }
.stat-strip-desc { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.stat-strip-icon { font-size: 24px; opacity: 0.15; }

/* ===== STEPS CHECKLIST ===== */
.steps-checklist { display: flex; flex-direction: column; gap: 12px; }
.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.step-number {
  width: 32px;
  height: 32px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.step-card.completed {
  background: var(--success-soft);
  border-color: var(--success);
}
.step-card.completed .step-number {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.step-title { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 2px; }
.step-desc { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ===== PROGRESS CIRCLE ===== */
.progress-container { display: flex; align-items: center; justify-content: center; position: relative; width: 70px; height: 70px; }
.progress-circle-bg { fill: none; stroke: var(--border-default); stroke-width: 8; }
.progress-circle-bar { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.35s; }
.progress-text { position: absolute; font-size: 13px; font-weight: 800; color: var(--text-primary); }

/* ===== PRICING / TOPUP CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.topup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-base);
}
.topup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.topup-card.pro-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.topup-card.pro-featured::before {
  content: '★ MOST POPULAR';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
.pack-header { font-weight: 700; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.pack-title { font-size: 1.5rem; font-weight: 900; color: var(--text-primary); margin-bottom: 12px; letter-spacing: -0.03em; }
.pack-title span { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.pack-price { font-size: 2rem; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -0.03em; }
.pack-per-credit { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 20px; }
.pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.pack-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}
.pack-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  font-size: 13px;
}
.buy-pack-btn {
  width: 100%;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
}
.buy-pack-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== EDITOR LAYOUT ===== */
.editor-layout { display: block; }
.editor-grid-container { display: flex; flex-direction: column; justify-content: space-between; }
.group-row { background: var(--bg-inset); border-bottom: 2px solid var(--border-strong) !important; font-weight: 700; }
.group-row:hover td { background: var(--bg-surface-hover) !important; }
.expand-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--border-default);
  background: var(--primary-soft); cursor: pointer; font-weight: 900; font-size: 13px;
  margin-right: 8px; user-select: none; border-radius: var(--radius-sm);
  transition: all var(--transition-fast); color: var(--accent);
}
.expand-toggle:active { transform: scale(0.95); }
.variant-row td { padding: 8px 14px; background: var(--bg-surface); font-size: 13px; color: var(--text-secondary); vertical-align: middle !important; }
.variant-row:hover td { background: var(--bg-surface-hover); }
.price-input {
  width: 90px; padding: 6px 10px; border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 13px;
  outline: none; transition: all var(--transition-fast); display: inline-block !important;
  vertical-align: middle; background: var(--bg-surface); color: var(--text-primary);
}
.price-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--primary-soft); }
.price-input.input-error { border-color: var(--danger) !important; background: var(--danger-soft) !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important; }
.group-input { border-color: var(--accent-2) !important; }
.img-cell img {
  width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--border-default);
  cursor: zoom-in; transition: transform var(--transition-fast); border-radius: var(--radius-sm);
}
.img-cell img:hover { transform: scale(1.08); }
.img-placeholder {
  width: 44px; height: 44px; background: var(--bg-inset); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: var(--radius-sm);
}
.status-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  border: 1px solid var(--border-default); font-size: 10px; font-weight: 700;
  text-transform: uppercase; border-radius: var(--radius-sm); letter-spacing: 0.03em;
}
.badge-active { background: var(--success-soft); color: var(--success-text); border-color: var(--success); }
.badge-oos { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning); }
.badge-paused { background: var(--bg-muted); color: var(--text-muted); }
.badge-manual { background: rgba(103,58,183,0.1); color: var(--accent-2); }
.style-id-badge {
  font-family: var(--font-mono); background: var(--bg-inset);
  border: 1px solid var(--border-default); padding: 2px 8px;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
}
.calc-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 700; border-bottom: 1px dashed var(--border-default); padding-bottom: 6px; }
.calc-row.total { font-size: 16px; font-weight: 800; background: var(--accent); border: none; border-radius: var(--radius-md); padding: 8px 12px; color: #FFFFFF; }
.bulk-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--primary-soft); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); margin-bottom: 16px;
  animation: slideDown 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bulk-input {
  width: 100px; border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 6px 8px; font-weight: 600; font-size: 12px; outline: none;
  background: var(--bg-surface); color: var(--text-primary);
}
.bulk-input:focus { box-shadow: 0 0 0 3px var(--primary-soft); border-color: var(--accent); }
.filter-btn {
  padding: 6px 12px; background: var(--bg-surface); border: 1px solid transparent;
  font-weight: 700; cursor: pointer; font-family: inherit; transition: all var(--transition-fast);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text-secondary);
}
.filter-btn:hover { background: var(--bg-inset); }
.filter-btn.active { background: var(--accent); color: #FFFFFF; font-weight: 800; }
input[type="checkbox"] {
  appearance: none; width: 16px; height: 16px; background: var(--bg-surface);
  border: 1px solid var(--border-strong); cursor: pointer; border-radius: 4px;
  position: relative; transition: all var(--transition-fast);
}
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: '✓'; position: absolute; top: -2px; left: 2px; color: #FFFFFF; font-weight: 900; font-size: 12px; }

/* ===== IMAGE MODAL ===== */
.img-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); display: none; align-items: center;
  justify-content: center; z-index: 1000; padding: 20px;
}
.img-modal.show { display: flex; }
.img-modal img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); background: var(--bg-surface); }
.img-modal-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px;
  background: var(--bg-elevated); color: var(--text-primary); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); font-size: 24px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.img-modal-close:hover { background: var(--danger); color: #fff; }

/* ===== CALCULATOR ===== */
.calculator-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px;
  padding: 30px; text-align: left; margin-top: 30px;
}
.calculator-input-group { margin-bottom: 20px; }
.calculator-input-group label { display: block; font-weight: 700; font-size: 12px; text-transform: uppercase; margin-bottom: 8px; color: var(--text-secondary); letter-spacing: 0.04em; }
.calculator-input-group input[type="number"],
.calculator-input-group select { width: 100%; padding: 11px; font-size: 14px; font-weight: 600; border: 1px solid var(--border-default); background: var(--bg-surface); border-radius: var(--radius-md); }
.calculator-results {
  background: var(--accent); border: none; border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.result-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid rgba(255,255,255,0.15); padding: 12px 0; font-weight: 600; font-size: 14px; color: #FFFFFF; }
.result-row:last-child { border-bottom: none; }
.result-total { font-size: 1.25rem; font-weight: 900; border-top: 2px solid rgba(255,255,255,0.2); padding-top: 16px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; color: #FFFFFF; }

/* ===== FAQ ===== */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  margin-bottom: 12px; border-radius: var(--radius-lg); transition: all var(--transition-base);
  overflow: hidden;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-trigger {
  width: 100%; padding: 18px 20px; display: flex; justify-content: space-between;
  align-items: center; background: none; border: none; font-family: var(--font-sans);
  font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; color: var(--text-primary);
}
.faq-trigger span.faq-icon { font-size: 18px; transition: transform var(--transition-fast); color: var(--text-muted); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 20px; font-weight: 500; color: var(--text-secondary); font-size: 13px; line-height: 1.7;
}
.faq-item.active .faq-content { max-height: 1000px; padding: 0 20px 20px 20px; border-top: 1px solid var(--border-default); }
.faq-item.active .faq-trigger span.faq-icon { transform: rotate(45deg); }

/* ===== TIMELINE ===== */
.timeline-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.timeline-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 28px 24px 24px; text-align: left;
  position: relative; box-shadow: var(--shadow-sm); transition: all var(--transition-base);
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.timeline-card .step-number {
  position: absolute; top: -12px; left: 20px; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: var(--radius-sm);
}
.timeline-card h3 { font-size: 15px; margin: 12px 0 8px; }
.timeline-card p { font-size: 12px; color: var(--text-muted); font-weight: 500; line-height: 1.6; }

/* ===== SUPPORT ===== */
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; margin-bottom: 40px; }
.status-indicator-box {
  display: flex; align-items: center; gap: 12px; background: var(--bg-surface);
  border: 1px solid var(--border-default); padding: 12px 16px; border-radius: var(--radius-md);
  margin-bottom: 20px; font-weight: 600; font-size: 13px;
}
.pulse-dot {
  width: 10px; height: 10px; background-color: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(22,163,74,0.7); animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22,163,74,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.solution-item { padding: 14px 0; border-bottom: 1px dashed var(--border-default); }
.solution-item:last-child { border-bottom: none; }
.solution-q { font-weight: 700; font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.solution-a { font-size: 12px; font-weight: 500; color: var(--text-secondary); line-height: 1.6; }
.chat-support-btn {
  width: 100%; color: #ffffff; font-weight: 700; font-size: 13px;
  text-transform: uppercase; padding: 12px; border: none; border-radius: var(--radius-md);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; transition: all var(--transition-fast);
}
.chat-support-btn:hover { transform: translateY(-1px); color: #fff; }
.btn-tg { background: #2563EB; }
.btn-tg:hover { background: #1D4ED8; }
.btn-wa { background: #16A34A; }
.btn-wa:hover { background: #15803D; }
.btn-diagnostics {
  width: 100%; background: var(--bg-surface); color: var(--text-primary);
  font-weight: 700; font-size: 12px; text-transform: uppercase; padding: 10px;
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 14px; transition: all var(--transition-fast);
}
.btn-diagnostics:hover { background: var(--bg-inset); }
.emergency-actions-box { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

/* ===== TUTORIAL ===== */
.tutorial-container { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
.lang-selector-wrapper {
  background: var(--accent); border: none; padding: 16px 24px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  margin-bottom: 24px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.lang-dropdown {
  padding: 10px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-md);
  font-weight: 600; font-size: 13px; font-family: inherit; background: var(--bg-surface);
  cursor: pointer; outline: none; min-width: 220px; color: var(--text-primary);
}
.card-box {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: 16px; font-weight: 800; border-bottom: 1px solid var(--border-default);
  padding-bottom: 12px; margin-top: 0; margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.section-subtitle { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-top: 20px; margin-bottom: 8px; text-transform: uppercase; }
.pro-tip {
  background: var(--warning-soft); border: 1px solid var(--warning);
  padding: 14px; border-radius: var(--radius-md); font-size: 12px;
  font-weight: 600; margin-top: 14px; color: var(--warning-text);
}
.highlight-badge {
  background: var(--bg-inset); border: 1px solid var(--border-default);
  padding: 2px 6px; border-radius: var(--radius-sm); font-family: var(--font-mono);
  font-weight: 700; font-size: 12px;
}
.rule-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-weight: 600; font-size: 13px; line-height: 1.6; }
.rule-item span.star { color: var(--accent); font-size: 18px; line-height: 1; }
.lang-content { display: none; }
.lang-content.active { display: block; margin-bottom: 20px; animation: fadeIn 0.25s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== USAGE METRICS ===== */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 28px; }
.metric-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all var(--transition-base);
}
.metric-card.highlighted { background: var(--accent); color: #FFFFFF; }
.metric-card.highlighted .metric-label { color: rgba(255,255,255,0.8); }
.metric-card.highlighted .metric-val { color: #FFFFFF; }
.metric-card.highlighted .metric-subtext { color: rgba(255,255,255,0.7); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.metric-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.metric-val { font-size: 2rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; letter-spacing: -0.03em; }
.metric-subtext { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; }

/* ===== ADMIN PANEL ===== */
.admin-layout {
  display: flex !important;
  min-height: 100vh !important;
}
.admin-sidebar {
  width: 260px !important;
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--sidebar-border) !important;
  padding: 24px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 100vh !important;
  z-index: 100 !important;
  box-sizing: border-box !important;
}
.admin-menu { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0; list-style: none; flex-grow: 1; }
.admin-menu-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; color: var(--sidebar-text-muted) !important;
  text-decoration: none; border-radius: var(--radius-md); background: transparent;
  transition: all var(--transition-fast); position: relative;
}
.admin-menu-link:hover, .admin-menu-link.active {
  background: var(--sidebar-active-bg) !important; color: var(--sidebar-active-text) !important;
}
.admin-menu-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 0 4px 4px 0;
}
.admin-content {
  flex-grow: 1 !important;
  margin-left: 260px !important;
  padding: 36px 44px !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

/* ===== FOOTER ===== */
footer {
  background: var(--sidebar-bg); color: var(--sidebar-text); border-top: 1px solid var(--sidebar-border);
  padding: 40px 0; text-align: center;
}

/* ===== EDITOR RESPONSIVE ===== */
@media (max-width: 768px) {
  .editor-main { padding: 16px 12px 80px; }
  .editor-header { flex-direction: column; }
  .editor-actions { flex-wrap: wrap; }
  .editor-actions .btn { padding: 6px 12px; font-size: 11px; }
  .editor-toolbar { flex-direction: column; }
  .toolbar-search { min-width: 0; }
  .toolbar-sort { border-left: none; padding-left: 0; flex-wrap: wrap; }
  .editor-footer { left: 0; padding: 10px 16px; }
  .editor-footer-stats { font-size: 11px; }
  .editor-footer-actions { gap: 8px; }
  .editor-footer-actions .btn { padding: 6px 10px; font-size: 11px; }
  .status-filter-bar { gap: 8px; padding: 8px 12px; }
  .editor-table-container { border-radius: var(--radius-sm); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tutorial-container { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; padding: 28px 28px; }
  .admin-sidebar { width: 220px !important; }
  .admin-content { margin-left: 220px !important; padding: 28px; }
}
@media (max-width: 992px) {
  .sidebar { width: 220px !important; }
  .main-content { margin-left: 220px !important; padding: 28px 28px; }
  .editor-footer { left: 220px !important; }
}

@media (max-width: 768px) {
  .dashboard-layout { flex-direction: column !important; }
  
  .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-default) !important;
    padding: 16px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .sidebar-brand { margin-bottom: 8px !important; width: 100% !important; }
  
  .sidebar-menu {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow-y: visible !important;
  }
  
  .sidebar-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
  }
  
  .sidebar-footer {
    width: 100% !important;
    border-top: 1px dashed var(--border-default) !important;
    padding-top: 16px !important;
    margin-top: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .main-content { margin-left: 0 !important; padding: 20px 16px !important; }
  .editor-footer { left: 0 !important; padding: 12px 16px; }

  .hero h1 { font-size: 1.75rem; }
  .nav-links { display: none; }
  .metric-grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .stats-strip { grid-template-columns: 1fr; }
  .calculator-card { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column !important; }
  .admin-sidebar { position: relative !important; width: 100% !important; top: auto !important; left: auto !important; bottom: auto !important; height: auto !important; }
  .admin-content { margin-left: 0 !important; padding: 20px !important; }
}

/* ===== DARK MODE OVERRIDES FOR INLINE STYLES ===== */
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"] {
  background: var(--bg-surface) !important;
}
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: #111"],
[data-theme="dark"] [style*="color:#111"],
[data-theme="dark"] [style*="color: black"],
[data-theme="dark"] [style*="color:black"] {
  color: var(--text-primary) !important;
}
[data-theme="dark"] [style*="background: #faf9f5"],
[data-theme="dark"] [style*="background:#faf9f5"],
[data-theme="dark"] [style*="background: #fafaf9"],
[data-theme="dark"] [style*="background:#fafaf9"],
[data-theme="dark"] [style*="background: #f5f6fa"],
[data-theme="dark"] [style*="background:#f5f6fa"] {
  background: var(--bg-body) !important;
}
[data-theme="dark"] [style*="background: #f3f4f6"],
[data-theme="dark"] [style*="background:#f3f4f6"],
[data-theme="dark"] [style*="background: #f8fafc"],
[data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background: #f1f5f9"],
[data-theme="dark"] [style*="background:#f1f5f9"] {
  background: var(--bg-inset) !important;
}
[data-theme="dark"] [style*="background: #ecfdf5"],
[data-theme="dark"] [style*="background:#ecfdf5"] {
  background: var(--success-soft) !important;
}
[data-theme="dark"] [style*="background: #fffbeb"],
[data-theme="dark"] [style*="background:#fffbeb"] {
  background: var(--warning-soft) !important;
}
[data-theme="dark"] [style*="background: #fee2e2"],
[data-theme="dark"] [style*="background:#fee2e2"] {
  background: var(--danger-soft) !important;
}
[data-theme="dark"] [style*="border: 2px solid #000"],
[data-theme="dark"] [style*="border:2px solid #000"],
[data-theme="dark"] [style*="border: 2px solid #000;"] {
  border-color: var(--border-strong) !important;
}
[data-theme="dark"] [style*="border: 2px solid #10b981"] {
  border-color: var(--success) !important;
}
[data-theme="dark"] [style*="box-shadow: 4px 4px 0px #000"],
[data-theme="dark"] [style*="box-shadow:4px 4px 0px #000"],
[data-theme="dark"] [style*="box-shadow: 4px 4px 0 #000"],
[data-theme="dark"] [style*="box-shadow:4px 4px 0 #000"],
[data-theme="dark"] [style*="box-shadow: 4px 4px 0px #000;"],
[data-theme="dark"] [style*="box-shadow: 6px 6px 0px #000"],
[data-theme="dark"] [style*="box-shadow:6px 6px 0px #000"],
[data-theme="dark"] [style*="box-shadow: 6px 6px 0 #000"],
[data-theme="dark"] [style*="box-shadow:6px 6px 0 #000"],
[data-theme="dark"] [style*="box-shadow: 3px 3px 0px #000"],
[data-theme="dark"] [style*="box-shadow:3px 3px 0px #000"],
[data-theme="dark"] [style*="box-shadow: 3px 3px 0 #000"],
[data-theme="dark"] [style*="box-shadow:3px 3px 0 #000"],
[data-theme="dark"] [style*="box-shadow: 2px 2px 0px #000"],
[data-theme="dark"] [style*="box-shadow:2px 2px 0px #000"],
[data-theme="dark"] [style*="box-shadow: 2px 2px 0 #000"],
[data-theme="dark"] [style*="box-shadow:2px 2px 0 #000"],
[data-theme="dark"] [style*="box-shadow: 5px 5px 0px #000"],
[data-theme="dark"] [style*="box-shadow: 2px 2px 0px #10b981"] {
  box-shadow: var(--shadow-md) !important;
}
[data-theme="dark"] [style*="background: #000"],
[data-theme="dark"] [style*="background:#000"],
[data-theme="dark"] [style*="background: #111"],
[data-theme="dark"] [style*="background:#111"] {
  background: var(--bg-surface) !important;
}
[data-theme="dark"] [style*="border-bottom: 2px solid #000"],
[data-theme="dark"] [style*="border-bottom:2px solid #000"] {
  border-bottom-color: var(--border-strong) !important;
}
[data-theme="dark"] [style*="border-top: 2px solid #000"],
[data-theme="dark"] [style*="border-top:2px solid #000"] {
  border-top-color: var(--border-strong) !important;
}
[data-theme="dark"] [style*="color: var(--color-muted)"],
[data-theme="dark"] [style*="color: var(--color-muted);"] {
  color: var(--text-muted) !important;
}
[data-theme="dark"] [style*="background: var(--color-primary)"],
[data-theme="dark"] [style*="background: var(--color-primary);"] {
  background: var(--accent) !important;
}
[data-theme="dark"] [style*="color: var(--color-accent)"],
[data-theme="dark"] [style*="color: var(--color-accent);"] {
  color: var(--accent-2) !important;
}
[data-theme="dark"] [style*="color: #10b981"] {
  color: var(--success) !important;
}

/* Light mode overrides */
[data-theme="light"] [style*="background: #000"],
[data-theme="light"] [style*="background:#000"],
[data-theme="light"] [style*="background: #111"],
[data-theme="light"] [style*="background:#111"] {
  background: var(--text-primary) !important;
}

/* ===== PREMIUM UTILITY CLASSES ===== */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.page-header-text h1 { font-size: 1.75rem; margin-bottom: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; letter-spacing: 0.04em; }
.status-pill-success { background: var(--success-soft); color: var(--success-text); }
.card-section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-default); }
.card-section h3 { font-size: 15px; font-weight: 700; margin: 0; }
.card-section-link { font-size: 12px; font-weight: 700; color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
.card-section-link:hover { color: var(--accent-hover); }
.card-divider { border: none; border-top: 1px dashed var(--border-default); margin: 20px 0; }
.card-divider-solid { border: none; border-top: 1px solid var(--border-default); margin: 20px 0; }
.dashboard-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 28px; align-items: stretch; }
.dashboard-flex-row { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.dashboard-flex-col { display: flex; flex-direction: column; gap: 24px; }
.credits-card { background: var(--accent); color: #FFFFFF; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.credits-card .credits-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); margin-bottom: 6px; }
.credits-card .credits-value { font-size: 2.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 4px; letter-spacing: -0.03em; }
.credits-card .credits-desc { font-size: 11px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.api-key-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; display: block; }
.api-key-box { display: flex; gap: 8px; align-items: center; }
.api-key-code { flex: 1; font-family: var(--font-mono); background: var(--bg-inset); border: 1px solid var(--border-default); padding: 8px 12px; font-size: 12px; font-weight: 600; border-radius: var(--radius-md); word-break: break-all; user-select: all; color: var(--text-primary); }
.api-key-copy-btn { padding: 8px 14px; border: 1px solid var(--border-default); background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 11px; cursor: pointer; border-radius: var(--radius-md); white-space: nowrap; transition: all var(--transition-fast); font-family: var(--font-sans); }
.api-key-copy-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.api-key-url { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.api-key-url code { font-family: var(--font-mono); font-size: 10px; background: var(--bg-inset); padding: 2px 6px; border-radius: 4px; }
.calc-card { width: 340px; flex-shrink: 0; }
.calc-card-inner { background: var(--accent); border-radius: var(--radius-lg); padding: 20px; color: #FFFFFF; }
.calc-card-title { font-size: 15px; font-weight: 700; margin: 0 0 16px 0; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.calc-input-group { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.calc-input-label { display: block; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.calc-input { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; outline: none; background: var(--bg-surface); color: var(--text-primary); font-family: var(--font-sans); transition: all var(--transition-fast); }
.calc-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--primary-soft); }
.calc-details-box { margin-bottom: 16px; cursor: pointer; background: var(--bg-surface); padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.calc-details-summary { font-size: 12px; font-weight: 700; user-select: none; }
.calc-details-grid { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px dashed var(--border-default); padding-top: 10px; }
.calc-results-box { background: rgba(0,0,0,0.15); color: #FFFFFF; padding: 16px; border-radius: var(--radius-md); }
.calc-results-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.calc-results-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-results-value { font-size: 1.5rem; font-weight: 900; color: #FFFFFF; }
.calc-results-divider { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 8px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.calc-results-pill { font-size: 13px; font-weight: 800; background: #FFFFFF; color: var(--accent); padding: 2px 8px; border-radius: var(--radius-sm); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-state-desc { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 20px; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.empty-state-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.card-accent-top { border-top: 3px solid var(--accent); }
.section-gap { margin-bottom: 28px; }
.section-gap-lg { margin-bottom: 36px; }
.inline-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 20px; }
.inline-tag-success { background: var(--success-soft); color: var(--success-text); }
.inline-tag-warning { background: var(--warning-soft); color: var(--warning-text); }
.card-footer-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--border-default); }

/* Smooth scrollbar */
.sidebar::-webkit-scrollbar, .main-content::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track, .main-content::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb, .main-content::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 4px; }

/* === THEME TRANSITION ===== */
body, .sidebar, .card, .btn, input, select, textarea,
header, .topup-card, .metric-stat-card, .stat-strip-item,
.table-wrapper, .faq-item, .timeline-card, .card-box,
.step-card, .metric-card, .status-indicator-box, footer {
  transition: background var(--transition-slow), color var(--transition-slow),
              border-color var(--transition-slow), box-shadow var(--transition-slow);
}

/* ============================================================
   EDITOR COMPONENT SYSTEM — Premium SaaS Design
   ============================================================ */

/* --- Editor Main Area --- */
.editor-main { padding: 20px 28px 80px; max-width: 100%; }

/* --- Editor Header --- */
.editor-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.editor-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editor-title { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; margin: 0; }
.scan-badge { display: none; background: var(--bg-inset); border: 1px solid var(--border-default); padding: 2px 10px; font-size: 11px; font-weight: 800; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.scan-time { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-top: 4px; }

/* --- Editor Action Buttons --- */
.editor-actions { display: flex; gap: 10px; }
.editor-actions .btn { font-size: 12px; padding: 8px 16px; box-shadow: var(--shadow-md); font-weight: 800; transition: all var(--transition-fast); }
.editor-actions .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.editor-actions .btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.editor-actions .btn-tour { background: var(--warning-soft); color: var(--warning-text); border: 1px solid var(--border-default); }
.editor-actions .btn-help-editor { background: var(--primary-soft); color: var(--accent-2); border: 1px solid var(--border-default); }
.editor-actions .btn-clear-editor { background: var(--bg-surface); border: 1px solid var(--border-default); }
.editor-actions .btn-export { padding: 8px 18px; }

/* --- Status Filter Bar --- */
.status-filter-bar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 10px 16px; box-shadow: var(--shadow-md); transition: all var(--transition-base); }
.status-filter-item { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; padding: 6px 10px; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.status-filter-item:hover { background: var(--bg-inset); }
.status-filter-item.active { background: var(--bg-inset); }
.status-dot { width: 10px; height: 10px; border: 1px solid var(--border-default); display: inline-block; border-radius: 50%; flex-shrink: 0; }
.status-dot-success { background: var(--success); }
.status-dot-warning { background: var(--warning); }
.status-dot-muted { background: var(--bg-muted); }
.status-filter-label { font-size: 13px; font-weight: 800; }
.status-filter-params { display: none; margin-left: auto; gap: 20px; flex-wrap: wrap; }
.param-label { font-size: 11px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.param-input { width: 60px !important; padding: 3px 6px !important; border: 1px solid var(--border-default) !important; border-radius: var(--radius-sm) !important; font-weight: 700 !important; font-size: 12px !important; background: var(--bg-surface) !important; color: var(--text-primary) !important; }
.param-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--primary-soft) !important; }

/* --- Editor Toolbar --- */
.editor-toolbar { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar-search { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.toolbar-search-input { width: 100% !important; padding: 8px 14px !important; border: 1px solid var(--border-default) !important; border-radius: var(--radius-sm) !important; font-weight: 700 !important; font-size: 13px !important; }
.toolbar-search-input:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--primary-soft) !important; }
.toolbar-dynamic-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar-filters { display: flex; gap: 0; }
.toolbar-sort { display: flex; align-items: center; gap: 8px; padding-left: 16px; border-left: 1px solid var(--border-default); }
.toolbar-sort-select { padding: 6px !important; border: 1px solid var(--border-default) !important; border-radius: var(--radius-sm) !important; font-weight: 700 !important; font-size: 12px !important; background: var(--bg-surface) !important; cursor: pointer !important; width: auto !important; }
.toolbar-auto-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; cursor: pointer; }
.toolbar-offset-label { font-size: 11px; font-weight: 800; color: var(--text-secondary); }
.toolbar-offset-input { width: 55px !important; padding: 4px 6px !important; text-align: center !important; border: 1px solid var(--border-default) !important; border-radius: var(--radius-sm) !important; font-weight: 700 !important; }

/* --- Editor Table Container --- */
.editor-table-container { border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); transition: box-shadow var(--transition-base); }
.editor-table-container:hover { box-shadow: var(--shadow-xl); }
.editor-table-scroll { overflow: auto; max-height: calc(100vh - 340px); }
.editor-table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.editor-thead { position: sticky; top: 0; z-index: 10; background: var(--accent); color: #fff; }
.editor-thead th { background: var(--accent); color: #fff; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.editor-thead th:first-child { text-align: center; width: 36px; }
.editor-thead th.th-image { text-align: center; width: 60px; }
.editor-thead th.th-product { padding: 10px 12px; text-align: left; }
.editor-thead th.th-narrow { width: 90px; text-align: center; }
.editor-thead th.th-medium { width: 100px; text-align: center; }
.editor-thead th.th-price { width: 95px; text-align: center; }
.editor-thead th.th-action { width: 100px; text-align: center; }
.editor-tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border-default); font-size: 13px; font-weight: 500; color: var(--text-primary); background: var(--bg-surface); transition: background var(--transition-fast); }
.editor-tbody tr:hover td { background: var(--bg-surface-hover); }
.editor-tbody td.td-check { text-align: center; width: 36px; }
.editor-tbody td.td-image { padding: 6px; }
.editor-tbody td.td-stock { font-weight: 700; color: var(--text-secondary); text-align: center; }

/* --- Cell Components --- */
.product-name { font-weight: 800; font-size: 13px; color: var(--text-primary); }
.product-variant { font-size: 11px; color: var(--text-secondary); font-weight: 700; }
.catalog-id { font-weight: 700; }
.catalog-name { font-size: 11px; color: var(--text-secondary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.price-value { font-weight: 700; color: var(--text-primary); }
.price-secondary { font-weight: 700; color: var(--text-secondary); }
.max-safe-label { font-size: 10px; color: var(--success-text); margin-top: 2px; font-weight: 800; }

/* --- Editor Footer Bar --- */
.editor-footer { position: fixed; bottom: 0; left: 220px; right: 0; background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; z-index: 50; border-top: 2px solid var(--accent); transition: background var(--transition-slow); }
.editor-footer-stats { font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.editor-footer-stats strong { color: var(--accent); }
.editor-footer-actions { display: flex; gap: 12px; }
.editor-footer-actions .btn { font-size: 12px; padding: 7px 16px; border-radius: var(--radius-sm); font-weight: 800; transition: all var(--transition-fast); }
.editor-footer-actions .btn:hover { transform: translateY(-1px); }
.editor-footer-actions .btn:active { transform: translateY(0); }
.editor-footer-actions .btn-clear { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-default); }
.editor-footer-actions .btn-generate { background: var(--accent); color: #fff; border: 1px solid var(--accent); padding: 7px 20px; font-weight: 900; box-shadow: var(--shadow-sm); }
.editor-footer-actions .btn-generate:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

/* --- Editor Modal --- */
.editor-modal-content { background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-xl); border-radius: var(--radius-lg); padding: 24px; max-width: 500px; width: 90%; position: relative; }
.editor-modal-content h2, .editor-modal-content h3 { border-bottom: 1px solid var(--border-default); padding-bottom: 8px; margin-top: 0; }
.modal-close-btn { position: absolute; top: -15px; right: -15px; width: 32px; height: 32px; font-size: 20px; }
.summary-grid { margin-top: 16px; font-size: 14px; display: grid; gap: 12px; }
.summary-row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border-default); padding-bottom: 6px; }
.summary-row span { font-weight: 700; }
.summary-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.summary-note { text-align: center; font-size: 11px; color: var(--text-secondary); font-weight: 700; margin-top: 4px; }

/* --- Hover Lift Transitions (Global) --- */
.btn, .sidebar-item, .status-filter-item, .editor-actions .btn,
.editor-footer-actions .btn, .metric-stat-card, .stat-strip-item,
.topup-card, .timeline-card, .faq-item, .metric-card,
.step-card, .buy-pack-btn, .api-key-copy-btn, .btn-topup {
  transition: all 0.2s ease;
}
.btn:hover, .sidebar-item:hover, .topup-card:hover,
.timeline-card:hover, .faq-item:hover, .metric-card:hover,
.step-card:hover, .buy-pack-btn:hover, .api-key-copy-btn:hover, .btn-topup:hover {
  transform: translateY(-2px);
}
.btn:active, .sidebar-item:active,
.topup-card:active, .timeline-card:active, .faq-item:active,
.metric-card:active, .step-card:active {
  transform: translateY(0);
}
/* Filter buttons: transition but NO hover lift to prevent layout shift */
.filter-btn { transition: all 0.2s ease; }
.filter-btn:hover { background: var(--bg-inset); transform: none; }

/* --- Dynamic MSP Filter Labels --- */
.msp-filter-label {
  cursor: pointer; padding: 4px 8px; background: var(--bg-inset);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 800; user-select: none;
  transition: all var(--transition-fast);
}
.msp-filter-label:hover { background: var(--bg-surface-hover); border-color: var(--border-strong); }
.msp-filter-label.checked { background: var(--accent); color: #fff; border-color: var(--accent); }
.msp-filter-label input[type="checkbox"] { display: none; }

/* --- Misc Utility Classes --- */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.btn-full { width: 100%; padding: 10px; font-size: 13px; font-weight: 800; }
.btn-full:hover { transform: translateY(-1px); }
.btn-full:active { transform: translateY(0); }
.modal-body { margin-top: 16px; }

/* --- Bulk Bar Enhancements --- */
.bulk-count-label { font-weight: 800; font-size: 12px; border-right: 1px solid var(--border-default); padding-right: 12px; margin-right: 8px; }
.bulk-action-btn { padding: 6px 12px !important; font-size: 11px !important; }
.bulk-plus20-btn { padding: 6px 12px !important; font-size: 11px !important; background: var(--warning) !important; color: var(--text-primary) !important; margin-left: 10px !important; font-weight: 800 !important; }
.bulk-info-btn { cursor: pointer; background: var(--primary-soft); color: var(--accent-2); font-weight: 900; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-default); font-size: 12px; transition: all var(--transition-fast); flex-shrink: 0; }
.bulk-info-btn:hover { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }

/* --- Table Row Thumbnail --- */
.row-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); transition: transform var(--transition-fast); }
.row-thumb:hover { transform: scale(1.08); }
.row-thumb-placeholder { width: 40px; height: 40px; font-size: 14px; }
