:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-subtle: #0d0f17;
  --surface: #11141e;
  --surface-hover: #171b28;
  --card: #141824;
  --card-elevated: #1a1f2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --accent: #ec4899;
  --accent-glow: rgba(236, 72, 153, 0.2);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.3);
  --danger: #f43f5e;
  --danger-bg: rgba(244, 63, 94, 0.12);
  --danger-border: rgba(244, 63, 94, 0.3);
  --info: #06b6d4;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px -5px var(--primary-glow);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern sleek custom scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) rgba(17, 20, 30, 0.5);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 20, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Background Ambient Lighting */
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(236, 72, 153, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fff;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
}

/* Utility Classes */
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  user-select: none;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-light), #9d74ff);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}
.btn-telegram {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(42, 171, 238, 0.35);
}
.btn-telegram:hover:not(:disabled) {
  background: linear-gradient(135deg, #3bb8f5, #2AABEE);
  box-shadow: 0 6px 18px rgba(42, 171, 238, 0.45);
  color: #ffffff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.btn-outline:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--primary-light);
  color: #fff;
}
.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: var(--radius);
}
.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon-danger {
  color: var(--text-muted);
}
.btn-icon-danger:hover {
  background: var(--danger-surface) !important;
  color: var(--danger) !important;
  border-color: var(--danger-border) !important;
}

/* Cards & Surfaces */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card-hover:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-glow {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}
.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}
.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}
.badge-dim {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge-dl-enabled {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-dl-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
  font-weight: 600;
}

.text-primary { color: var(--primary-light) !important; }
.text-success { color: #34d399 !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

/* Form Controls */
.field {
  margin-bottom: 18px;
}
.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea, .form-input, .field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}
select, .field select, .form-select, .sort-select, .page-size-select {
  color-scheme: dark;
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
}
select option, .field select option, .form-select option, .sort-select option, .page-size-select option {
  background-color: #141824;
  color: #f8fafc;
  padding: 8px 12px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
.field input:focus, .field select:focus, .field textarea:focus, .form-input:focus, .field-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: var(--surface-hover);
}
.field input::placeholder, .field textarea::placeholder, .form-input::placeholder, .field-input::placeholder {
  color: var(--text-dim);
}
.field input:disabled, .field textarea:disabled, .field select:disabled, .form-input:disabled, .field-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Input action groups (input + button inline) */
.input-action-group,
.share-link-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.input-action-group .field-input,
.input-action-group .form-input,
.share-link-input-group .field-input,
.share-link-input-group .form-input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 580px) {
  .input-action-group,
  .share-link-input-group {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Input with icon / actions */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input {
  padding-right: 42px;
}
.input-icon-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  padding: 4px;
}
.input-icon-btn:hover {
  color: var(--text);
}

/* Alerts & Notices */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 14px 0;
}
.alert-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.err {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: #ff8a99;
}
.ok {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #6ee7b7;
}
.notice {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
}

/* Tables */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  box-sizing: border-box;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: none;
}
.table tbody tr {
  transition: var(--transition);
}
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(16px);
}
.toast-ok { border-color: var(--success-border); border-left: 4px solid var(--success); }
.toast-err { border-color: var(--danger-border); border-left: 4px solid var(--danger); }
.toast-info { border-color: rgba(99, 102, 241, 0.4); border-left: 4px solid var(--primary); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Dialog */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  width: min(500px, 94vw);
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
dialog::backdrop {
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(6px);
}
.dlg-body {
  padding: 24px;
}
.dlg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dlg-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.dlg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Dropzone & Upload Progress */
.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.03);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}
.dropzone-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
  display: grid;
  place-items: center;
}
.dropzone-icon svg {
  width: 26px;
  height: 26px;
}
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ec4899);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.progress-card-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.progress-stats-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}
.progress-stats-text strong {
  color: var(--text);
}
.progress-stats-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.progress-stats-vertical .stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.progress-stats-vertical .stat-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}
.progress-stats-vertical .stat-value {
  font-weight: 600;
  color: #fff;
  font-family: var(--font-mono, monospace);
  text-align: right;
}
.progress-stats-vertical .stat-value strong {
  color: #c084fc;
}
.progress-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.progress-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-light, #ec4899);
  border-right-color: rgba(168, 85, 247, 0.8);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Marketing Landing Page Styles */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(9, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
  object-fit: contain;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-logo:hover .brand-mark {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.brand-mark-lg {
  width: 64px;
  height: 64px;
  background: #ffffff;
  padding: 7px;
  border-radius: 16px;
  box-sizing: border-box;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.sidebar-brand .brand-mark {
  width: 38px;
  height: 38px;
}
.topbar-mobile .brand-mark {
  width: 34px;
  height: 34px;
  padding: 3.5px;
  border-radius: 9px;
}
.mkt-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.mkt-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.mkt-links a:hover {
  color: #fff;
}

.mkt-hero {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 88px 24px 56px;
  text-align: center;
  z-index: 1;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px var(--primary-glow);
}
.mkt-hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}
.mkt-hero h1 span.gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mkt-hero p.hero-lead {
  color: var(--text-muted);
  font-size: clamp(16px, 2.5vw, 19px);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Metric / Ticker Bar */
.metrics-bar {
  max-width: 940px;
  margin: 40px auto 0;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.metric-item .val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
}
.metric-item .lbl {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Step Cards */
.section-wrap {
  max-width: 1080px;
  margin: 80px auto;
  padding: 0 24px;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.step-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Earnings Calculator Widget */
.calc-card {
  background: linear-gradient(145deg, var(--surface), #171c2b);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-glow);
}
@media (max-width: 768px) {
  .calc-card { grid-template-columns: 1fr; gap: 24px; }
}
.calc-output {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.calc-output .est-val {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  color: #34d399;
  font-family: var(--font-mono);
  margin: 6px 0;
}

/* Payment options */
.payments-panel {
  background: linear-gradient(145deg, var(--surface), #141824);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.payment-option:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.25);
}
.payment-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.payment-icon svg {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  display: block;
}
.payment-icon-phonepe {
  background: linear-gradient(135deg, #5f259f, #7b3fbf);
  box-shadow: 0 4px 16px rgba(95, 37, 159, 0.35);
}
.payment-icon-gpay {
  background: linear-gradient(135deg, #1a73e8, #34a853);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.3);
}
.payment-icon-upi {
  background: linear-gradient(135deg, #097939, #0ea05e);
  box-shadow: 0 4px 16px rgba(9, 121, 57, 0.3);
}
.payment-icon-paypal {
  background: linear-gradient(135deg, #003087, #009cde);
  box-shadow: 0 4px 16px rgba(0, 48, 135, 0.35);
}
.payment-icon-bank {
  background: linear-gradient(135deg, #475569, #64748b);
  box-shadow: 0 4px 16px rgba(71, 85, 105, 0.35);
}
.payment-icon-crypto,
.payment-icon-usdt {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35);
}
.payment-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.payments-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.payments-secure svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .payments-panel {
    padding: 24px 18px;
  }
  .payments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.faq-q > span:first-child {
  flex: 1;
  min-width: 0;
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-light);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s ease;
}
.faq-item.open .faq-toggle {
  transform: rotate(180deg);
  background: rgba(99, 102, 241, 0.2);
}
.faq-a {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 22px;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a {
  max-height: 240px;
  opacity: 1;
  padding: 0 22px 18px;
}

/* Footer */
.mkt-footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  background: var(--bg-subtle);
}
.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13.5px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ——— Home page animations & interactivity ——— */
.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mkt-nav.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(9, 10, 15, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.mkt-links a.active {
  color: #fff;
  position: relative;
}
.mkt-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.hero-orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: 50%;
  margin-left: -210px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
  animation: floatOrb 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 280px;
  height: 280px;
  top: 120px;
  right: 8%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  animation: floatOrb 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 200px;
  height: 200px;
  bottom: 40px;
  left: 10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
  animation: floatOrb 12s ease-in-out infinite 2s;
}
.hero-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.05); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.mkt-hero h1 span.gradient.shimmer {
  background-size: 200% auto;
  animation: shimmerText 6s linear infinite;
}
@keyframes shimmerText {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 80%, 100% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

.step-card,
.feature-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.step-card:hover,
.feature-card:hover {
  box-shadow: 0 16px 40px -12px rgba(99, 102, 241, 0.25);
}
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  font-size: 22px;
  line-height: 1;
}

.calc-output.pulse {
  animation: calcPulse 0.45s ease;
}
@keyframes calcPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.calc-output .est-val {
  transition: color 0.3s ease;
}
.calc-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-orb,
  .hero-grid,
  .pill-dot,
  .mkt-hero h1 span.gradient.shimmer,
  .btn-glow::after {
    animation: none !important;
  }
  .step-card,
  .feature-card,
  .calc-card {
    transform: none !important;
  }
}

/* Auth Page */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active {
  background: var(--card-elevated);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Creator Dashboard Shell */
.dash {
  display: block;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}
.topbar-mobile {
  display: none !important;
}
.sidebar-backdrop {
  display: none !important;
}
.sidebar-close-btn {
  display: none !important;
}
.desktop-only-table {
  display: block !important;
}
.mobile-only-cards,
.user-card-list,
.media-card-list,
.ticket-card-list,
.report-card-list,
.withdrawal-card-list,
.file-card-list {
  display: none !important;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
  box-sizing: border-box;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
}
.dash .main {
  margin-left: 260px;
  width: calc(100% - 260px);
  max-width: calc(100% - 260px);
  min-width: 0;
  box-sizing: border-box;
  padding: 24px 28px 48px;
  transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-brand {
  padding: 4px 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-brand-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.sidebar-collapse-btn svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.back-link svg {
  transition: transform 0.2s ease;
}
.back-link:hover svg {
  transform: translateX(-3px);
}

@media (min-width: 961px) {
  .dash.sidebar-collapsed .sidebar {
    width: 78px;
    padding: 16px 10px;
    align-items: center;
    box-sizing: border-box;
  }
  .dash.sidebar-collapsed .main {
    margin-left: 78px;
    width: calc(100% - 78px);
    max-width: calc(100% - 78px);
  }
  .dash.sidebar-collapsed .sidebar-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0 14px !important;
    width: 100%;
  }
  .dash.sidebar-collapsed .brand-title {
    display: none !important;
  }
  .dash.sidebar-collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
  }
  .dash.sidebar-collapsed .sidebar-nav {
    width: 100%;
    align-items: center;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-x: hidden !important;
    overflow-y: auto;
  }
  .dash.sidebar-collapsed .sidebar-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  .dash.sidebar-collapsed .sidebar a.nav {
    justify-content: center;
    padding: 10px 0;
    width: 46px;
    height: 42px;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    position: relative;
  }
  .dash.sidebar-collapsed .sidebar a.nav span:not(.nav-badge) {
    display: none !important;
  }
  .dash.sidebar-collapsed .sidebar a.nav .nav-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
    padding: 1px 4px;
    font-size: 9px;
    line-height: 1.2;
  }
  .dash.sidebar-collapsed .sidebar-telegram {
    padding: 6px 0 10px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .dash.sidebar-collapsed .sidebar-telegram .btn-telegram {
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }
  .dash.sidebar-collapsed .sidebar-telegram .btn-telegram span {
    display: none !important;
  }
  .dash.sidebar-collapsed .sidebar-user {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    width: 100%;
  }
  .dash.sidebar-collapsed .sidebar-user .user-info {
    display: none !important;
  }
  .dash.sidebar-collapsed .sidebar-user #logout-btn {
    margin-top: 2px;
  }
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
  height: 0;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
.sidebar a.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.sidebar a.nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.7;
}
.sidebar a.nav:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.sidebar a.nav.active {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-light);
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.sidebar a.nav.active svg {
  opacity: 1;
  fill: var(--primary-light);
}

.sidebar button.nav.nav-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: #f87171;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.sidebar button.nav.nav-logout svg {
  width: 18px;
  height: 18px;
  fill: #f87171;
  opacity: 0.85;
}
.sidebar button.nav.nav-logout:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}
.sidebar button.nav.nav-logout:hover svg {
  fill: #fca5a5;
  opacity: 1;
}
.dash.sidebar-collapsed .sidebar button.nav.nav-logout {
  justify-content: center;
  padding: 10px 0;
}
.dash.sidebar-collapsed .sidebar button.nav.nav-logout span {
  display: none !important;
}

.sidebar-telegram {
  padding: 6px 0 10px;
  flex-shrink: 0;
}
.sidebar-telegram .btn-telegram {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
}

.sidebar-user {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.user-info {
  flex: 1;
  min-width: 0;
}
.user-name {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 11.5px;
  color: var(--text-dim);
}

.topbar-mobile {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 20, 30, 0.95);
  backdrop-filter: blur(12px);
}
.topbar-mobile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.btn-topbar-telegram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  background: #229ed9;
  color: #ffffff !important;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(34, 158, 217, 0.25);
  flex-shrink: 0;
}
.btn-topbar-telegram:hover {
  background: #1d88bb;
  transform: translateY(-1px);
}
.btn-topbar-telegram svg {
  flex-shrink: 0;
}

.main {
  padding: 24px 28px 48px;
  max-width: 1400px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.main-header {
  margin-bottom: 28px;
}
.main h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Stat Cards */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.stat-info .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.stat-info .value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-top: 4px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.stat-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Dashboard analytics */
.dash-section {
  margin-top: 22px;
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dash-section-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.period-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.period-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.period-toggle button.active {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.chart-card {
  min-height: 280px;
}
.chart-card h3 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 4px;
}
.chart-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.chart-container {
  position: relative;
  width: 100%;
  height: 210px;
}
.chart-svg {
  width: 100%;
  height: 210px;
  display: block;
  cursor: crosshair;
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 6px 12px;
  z-index: 20;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  transition: opacity 0.12s ease;
  opacity: 0;
}
.chart-tooltip.visible {
  opacity: 1;
}
.chart-tooltip .tt-label {
  color: var(--text-dim, #94a3b8);
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 500;
}
.chart-tooltip .tt-value {
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.chart-hover-line {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-dasharray: 4 3;
  stroke-width: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.chart-hover-line.visible {
  opacity: 1;
}
.chart-hover-dot {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.chart-hover-dot.visible {
  opacity: 1;
}
.chart-empty {
  height: 210px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.insight-card .label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.insight-card .value {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpm-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #34d399);
}
.file-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-mini strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.file-earn {
  color: #34d399;
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

/* Search / Filter Toolbar */
.toolbar, .admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 0;
}
.search-input-wrap > svg,
.search-input-wrap .search-icon > svg,
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  color: var(--text-dim);
  pointer-events: none;
  flex-shrink: 0;
  z-index: 2;
}
.search-input-wrap input {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9.5px 14px 9.5px 38px !important;
  color: var(--text);
  font-size: 13.5px;
  appearance: none;
  -webkit-appearance: none;
}
.search-input-wrap input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.75);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: var(--surface-hover);
}
.search-input-wrap input::placeholder {
  color: var(--text-dim);
}
.search-input-wrap input[type="search"]::-webkit-search-decoration,
.search-input-wrap input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  max-width: 100%;
}
.toolbar-meta #count-display {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  min-width: 120px;
  max-width: 200px;
}

/* ——— Table Pagination, Footers, and Sorting ——— */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 13px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.table-footer-info {
  color: var(--text-muted);
  font-size: 13px;
}
.table-footer-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page-size-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12.5px;
  padding: 5px 8px;
  cursor: pointer;
}
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.pg-btn:hover:not(:disabled) {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
.pg-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--primary);
  color: var(--primary-light);
}
.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

#videos-pagination:not(:empty),
#folders-pagination:not(:empty) {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

#videos-pagination:not(:empty) .table-footer,
#folders-pagination:not(:empty) .table-footer {
  border-top: none;
}

/* Sortable Table Columns */
th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
th.sortable:hover {
  color: #fff;
}
th.sortable .sort-ind {
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.45;
  vertical-align: middle;
}
th.sortable.sort-asc .sort-ind {
  opacity: 1;
  color: var(--primary-light);
}
th.sortable.sort-desc .sort-ind {
  opacity: 1;
  color: var(--primary-light);
}
.date-cell, .nowrap, td.nowrap {
  white-space: nowrap !important;
}
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.table th.sortable:hover {
  color: #fff;
}
.table th.sortable .sort-ind {
  margin-left: 4px;
  opacity: 0.4;
  font-size: 11px;
}
.table th.sortable.active {
  color: var(--primary-light);
}
.table th.sortable.active .sort-ind {
  opacity: 1;
}

/* Code Snippet Box */
.code-box {
  position: relative;
  background: #06070a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  overflow-x: auto;
}
.code-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}
.code-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.code-tab.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

/* ——— My Files & Video Presentation Components ——— */
.video-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.video-cell .muted {
  white-space: nowrap;
}
.video-thumb {
  width: 46px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-thumb-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
}

/* Action button states */
.btn-act-dl {
  transition: var(--transition);
}
.btn-act-dl.active {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}
.btn-act-dl.inactive {
  color: var(--text-dim);
}
.btn-act-dl.inactive:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile File Cards View */
.file-card-list {
  display: none;
  flex-direction: column;
  gap: 14px;
}
.file-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.file-card:hover {
  border-color: var(--border-hover);
}
.file-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.file-card-thumb {
  width: 68px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.file-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-card-main {
  flex: 1;
  min-width: 0;
}
.file-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}
.file-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.file-card-code-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.file-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.file-card-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-card-stat .lbl {
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.file-card-stat .val {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.file-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.file-card-actions .btn {
  flex: 1;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
  justify-content: center;
}

/* Toggle Switch Control */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.toggle-field-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toggle-field-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.toggle-field-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: 0.25s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}
input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), #10b981);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Custom Thumbnail Upload Component */
.thumb-upload-card {
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.03);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.thumb-upload-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.thumb-preview-box {
  width: 80px;
  height: 52px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.thumb-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-preview-placeholder {
  color: var(--text-dim);
  font-size: 20px;
}
.thumb-upload-meta {
  flex: 1;
  min-width: 0;
}
.thumb-upload-meta h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
}
.thumb-upload-meta p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.thumb-upload-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .insight-grid,
  .cpm-banner,
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .dash {
    display: block;
    width: 100%;
  }
  .sidebar {
    display: flex !important;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(290px, 86vw);
    z-index: 100;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .sidebar-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-brand {
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    padding: 4px 8px 16px !important;
  }
  .sidebar-collapse-btn {
    display: none !important;
  }
  .sidebar-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: none;
    cursor: pointer;
  }
  .sidebar-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }
  .topbar-mobile {
    display: flex !important;
  }
  .dash .main,
  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px 48px;
    min-width: 0;
  }
  .chart-grid,
  .insight-grid,
  .cpm-banner,
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .search-input-wrap {
    flex: 1 1 100%;
    max-width: none;
  }
  .toolbar-meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .mkt-nav {
    padding: 14px 18px;
  }
  .mkt-links {
    display: none;
  }

  /* Transition tables to responsive cards on <=960px viewports */
  .desktop-only-table {
    display: none !important;
  }
  .mobile-only-cards,
  .user-card-list,
  .media-card-list,
  .ticket-card-list,
  .report-card-list,
  .withdrawal-card-list,
  .file-card-list {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .main-header .row-actions,
  .main-header .btn {
    width: 100%;
    justify-content: center;
  }
  .main-header h1 {
    font-size: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 14px 12px;
  }
  .stat-info .value {
    font-size: 20px;
  }
  dialog {
    width: calc(100vw - 20px);
    max-height: 94vh;
  }
  .dlg-body {
    padding: 16px 14px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .progress-actions-row {
    flex-direction: column;
    width: 100%;
  }
  .progress-actions-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-info .label {
    font-size: 11px;
  }
  .stat-info .value {
    font-size: 18px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .stat-icon svg {
    width: 15px;
    height: 15px;
  }
  .toolbar-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sort-select {
    width: 100%;
  }
  .file-card {
    padding: 14px 12px;
  }
  .file-card-header {
    gap: 10px;
  }
  .file-card-thumb {
    width: 60px;
    height: 42px;
  }
  .file-card-title {
    font-size: 14px;
  }
  .file-card-stats {
    padding: 8px 10px;
    gap: 6px;
  }
  .file-card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .file-card-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-height: 38px;
    font-size: 11.5px;
    padding: 6px 8px;
  }
  .table-footer {
    padding: 12px 10px;
    gap: 10px;
    justify-content: center;
  }
  .table-footer-info {
    width: 100%;
    text-align: center;
    font-size: 12px;
  }
  .table-footer-controls {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .pagination-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pg-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD ENHANCEMENTS
   ========================================================================== */

.nav-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.4;
}
.nav-badge.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.nav-badge.badge-rose {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.nav-badge.badge-sky {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-pill.active {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}
.filter-pill .count {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.filter-pill.active .count {
  background: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.metric-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.metric-summary-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.metric-summary-item .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.metric-summary-item .val {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.2;
}
.metric-summary-item .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.triage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.triage-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.triage-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.triage-card-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.triage-list {
  padding: 8px 0;
  flex: 1;
}
.triage-item {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease;
}
.triage-item:last-child {
  border-bottom: none;
}
.triage-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.triage-item-main {
  min-width: 0;
  flex: 1;
}
.triage-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.triage-item-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dest-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #e2e8f0;
  max-width: 260px;
}
.dest-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dest-copy-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.dest-copy-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.user-card-list {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.user-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.user-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.user-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.settings-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.settings-card p.sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   Comprehensive Loading System (Progress Bar, Full-Page Loader, Table & Card Spinners)
   ========================================================================== */

/* Top Slim Progress Bar */
#mizo-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #34d399 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.7), 0 0 5px rgba(52, 211, 153, 0.5);
  z-index: 999999;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.3s ease;
  opacity: 0;
}

/* Full Page Initial Loader Overlay */
.mizo-full-loader {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(7, 9, 15, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
  pointer-events: all;
}
.mizo-full-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mizo-loader-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mizo-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(99, 102, 241, 0.15);
  border-top-color: #6366f1;
  border-right-color: #a855f7;
  animation: mizo-spin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.mizo-loader-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mizo-pulse 1.8s ease-in-out infinite;
}
.mizo-loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mizo-loader-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim, #94a3b8);
  letter-spacing: 0.02em;
}

/* Inline Spinner Rings */
.mizo-spinner-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(99, 102, 241, 0.18);
  border-top-color: #6366f1;
  border-right-color: #a855f7;
  animation: mizo-spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
}

.mizo-spinner-sm {
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.mizo-spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

/* Inline Loading Row for Tables */
.table-loader-cell {
  padding: 56px 20px !important;
  text-align: center;
  background: transparent !important;
}
.mizo-inline-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim, #94a3b8);
  font-size: 13.5px;
  font-weight: 500;
}

/* Card / Section Loading Box */
.mizo-card-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 20px;
  color: var(--text-dim, #94a3b8);
  font-size: 13.5px;
  font-weight: 500;
  width: 100%;
}

/* Button Spinner */
.btn-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: mizo-spin 0.65s linear infinite;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-right: 6px;
}

@keyframes mizo-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes mizo-pulse {
  0%, 100% { opacity: 0.8; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

