:root {
  --premium-bg: #0B0F0E;
  --premium-sidebar: #080B0A;
  --premium-card: rgba(21,26,24,.82);
  --premium-card-solid: #151A18;
  --premium-surface: #1E2421;
  --premium-foreground: #FFFFFF;
  --premium-muted: #A7B0AA;
  --premium-muted-2: #717B75;
  --premium-neon: #8CFF2E;
  --premium-neon-hover: #A6FF4D;
  --premium-purple: #9F67FF;
  --premium-orange: #FFB347;
  --premium-info: #58A6FF;
  --premium-warn: #FFD35A;
  --premium-danger: #FF5E6C;
  --premium-border: rgba(255,255,255,.08);
  --premium-border-strong: rgba(140,255,46,.34);
  --premium-shadow: 0 24px 70px rgba(0,0,0,.45);
  --premium-shadow-soft: 0 14px 40px rgba(0,0,0,.32);
  --premium-radius: .75rem;
  --premium-radius-lg: 1.1rem;
  --premium-content-max: 1600px;

  --green: var(--premium-neon);
  --green-dim: var(--premium-neon-hover);
  --bg: var(--premium-bg);
  --bg2: var(--premium-sidebar);
  --card: var(--premium-card-solid);
  --border: var(--premium-border);
  --border-bright: var(--premium-border-strong);
  --text: var(--premium-foreground);
  --text-dim: var(--premium-muted);
  --text-muted: var(--premium-muted-2);
  --white: var(--premium-foreground);
  --warn: var(--premium-warn);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(140,255,46,.13), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(159,103,255,.12), transparent 34%),
    linear-gradient(135deg, #0B0F0E, #111715 52%, #0B0F0E) !important;
  color: var(--premium-foreground) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body::before {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%) !important;
  opacity: .45 !important;
}

.main,
main {
  color: var(--premium-foreground) !important;
}

.main {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2.2vw, 40px) !important;
}

.main > *,
main > * {
  width: min(100%, var(--premium-content-max));
  max-width: var(--premium-content-max);
  min-width: 0;
  margin-inline: auto;
}

h1,
h2,
h3,
.page-header h1,
.topbar-title h1,
.hero-title,
.section-title {
  color: var(--premium-foreground) !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

h1,
.page-header h1,
.topbar-title h1 {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.12 !important;
}

h1 span,
h2 span,
.page-header h1 span,
.topbar-title h1 span,
.hero-title span,
.current,
.accent,
.highlight {
  color: var(--premium-neon) !important;
}

p,
small,
.subtitle,
.description,
.page-header p,
.topbar-title p,
.breadcrumb,
.table-footer,
.muted {
  color: var(--premium-muted) !important;
}

a {
  color: inherit;
}

a:hover {
  color: var(--premium-neon) !important;
}

.breadcrumb {
  gap: 8px !important;
  font-size: 12px !important;
}

.panel,
.card,
.hero-card,
.support-card,
.stat-card,
.mini-card,
.check-section,
.preview-panel,
.actions-bar,
.login-card,
.machine-card,
.tool-card,
.script-card,
.converter-card,
.upload-card,
.result-card,
.settings-card,
.glass-card {
  border: 1px solid var(--premium-border) !important;
  border-radius: var(--premium-radius-lg) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    var(--premium-card) !important;
  box-shadow: var(--premium-shadow-soft) !important;
  backdrop-filter: blur(18px) saturate(130%) !important;
}

.hero-card:hover,
.support-card:hover,
.mini-card:hover,
.tool-card:hover,
.script-card:hover {
  border-color: var(--premium-border-strong) !important;
  box-shadow: 0 0 0 1px rgba(140,255,46,.08), var(--premium-shadow) !important;
  transform: translateY(-2px);
}

.btn,
button,
.button,
.hero-card-btn,
input[type="button"],
input[type="submit"] {
  border-radius: var(--premium-radius) !important;
  border: 1px solid var(--premium-border) !important;
  background: rgba(30,36,33,.82) !important;
  color: var(--premium-foreground) !important;
  font-weight: 700 !important;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease !important;
}

.btn:hover,
button:hover,
.button:hover,
.hero-card-btn:hover {
  border-color: rgba(140,255,46,.32) !important;
  background: rgba(140,255,46,.10) !important;
  color: var(--premium-foreground) !important;
  transform: translateY(-1px);
}

.btn.primary,
.primary,
.mode-btn.active,
.hero-card-btn,
.cta,
.submit,
button[type="submit"] {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--premium-neon), var(--premium-neon-hover)) !important;
  color: #10170F !important;
  box-shadow: 0 0 28px rgba(140,255,46,.42), 0 12px 28px rgba(0,0,0,.28) !important;
}

.btn.primary:hover,
.primary:hover,
.mode-btn.active:hover,
.hero-card-btn:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, var(--premium-neon-hover), var(--premium-neon)) !important;
  color: #10170F !important;
  box-shadow: 0 0 34px rgba(166,255,77,.52), 0 16px 32px rgba(0,0,0,.34) !important;
}

input,
select,
textarea,
.search-field,
.form-select-trigger,
.status-trigger,
.machine-input,
.field,
.input {
  border: 1px solid var(--premium-border) !important;
  border-radius: var(--premium-radius) !important;
  background: rgba(8,11,10,.72) !important;
  color: var(--premium-foreground) !important;
  outline: none !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(167,176,170,.62) !important;
}

input:focus,
select:focus,
textarea:focus,
.search-field:focus-within,
.form-select-trigger:focus,
.status-trigger:focus,
.machine-input:focus {
  border-color: var(--premium-border-strong) !important;
  box-shadow: 0 0 0 3px rgba(140,255,46,.14) !important;
}

label,
.label,
.badge,
.tag,
.eyebrow,
.panel-title,
.stat-card span,
.support-card small,
th {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.badge,
.tag,
.pill,
.os-pill,
.status-trigger {
  border: 1px solid rgba(140,255,46,.24) !important;
  background: rgba(140,255,46,.09) !important;
  color: var(--premium-neon) !important;
}

.status-inativo,
.danger,
.destructive {
  border-color: rgba(255,94,108,.30) !important;
  background: rgba(255,94,108,.10) !important;
  color: var(--premium-danger) !important;
}

.status-pendente,
.warn,
.pending,
.pending-pill {
  border-color: rgba(255,211,90,.30) !important;
  background: rgba(255,211,90,.10) !important;
  color: var(--premium-warn) !important;
}

.status-em-manutencao,
.info {
  border-color: rgba(88,166,255,.30) !important;
  background: rgba(88,166,255,.10) !important;
  color: var(--premium-info) !important;
}

.table-wrap,
table {
  border-color: var(--premium-border) !important;
  border-radius: var(--premium-radius-lg) !important;
  background: rgba(8,11,10,.68) !important;
}

.table-wrap {
  overflow: auto !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}

th {
  background: rgba(30,36,33,.92) !important;
  color: var(--premium-neon) !important;
  border-bottom: 1px solid var(--premium-border) !important;
}

td {
  color: var(--premium-foreground) !important;
  border-bottom: 1px solid rgba(255,255,255,.055) !important;
}

tbody tr:hover {
  background: rgba(140,255,46,.055) !important;
}

.stat-card strong,
.metric,
.number,
.total,
.value {
  color: var(--premium-foreground) !important;
  font-weight: 700 !important;
}

.stat-card strong {
  text-shadow: 0 0 24px rgba(140,255,46,.18);
}

.toast,
.modal,
.machine-modal {
  backdrop-filter: blur(16px) saturate(130%) !important;
}

.toast {
  border-color: var(--premium-border-strong) !important;
  background: rgba(21,26,24,.92) !important;
  color: var(--premium-foreground) !important;
  box-shadow: var(--premium-shadow) !important;
}

.toast-dot,
.glow-neon {
  box-shadow: 0 0 28px rgba(140,255,46,.48) !important;
}

svg {
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .main {
    padding: 40px !important;
  }
}

@media (max-width: 900px) {
  .stats-grid,
  .support-grid {
    grid-template-columns: 1fr !important;
  }

  .main {
    padding: 24px 16px !important;
  }
}
