:root {
  /* AirConsole Authentic Dark Charcoal Palette */
  --bg-0: #121212;
  --bg-1: #1e1e1e;
  --bg-2: #252528;
  --bg-3: #2f2f34;
  --nav-bg: #0c0c0d;
  --border: #2a2a2c;
  --border-strong: #0084ff;

  /* Typography Ink */
  --text-0: #ffffff;
  --text-1: #e4e4e7;
  --text-2: #b3b3b8;

  /* AirConsole Signature Brand Accents */
  --green: #35c255;
  --green-hover: #2eb34b;
  --green-lime: #7ce823;
  --blue: #0084ff;
  --blue-bright: #0099ff;

  /* Legacy & Host Variable Compatibility */
  --cyan: #0099ff;
  --purple: #8b5cf6;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --magenta: #ef4444;
  --emerald: #35c255;
  --amber: #f59e0b;

  /* Geometry & Typography */
  --radius: 12px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Shared AirConsole Brand Mark */
.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text-0);
  line-height: 1;
  user-select: none;
}

.ac-brand:hover .ac-logo-mark {
  filter: drop-shadow(0 0 10px rgba(53, 194, 85, 0.55));
}

.ac-logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.18s ease;
}

.ac-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ac-wordmark {
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-0);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.18s ease, color 0.16s ease;
}

.btn:hover:not(:disabled) {
  background: var(--bg-3);
  border-color: #3f3f46;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

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

.btn-primary {
  background: var(--green);
  border-color: transparent;
  color: #09180d;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(53, 194, 85, 0.34);
}

.btn-primary:hover:not(:disabled) {
  background: var(--green-hover);
  border-color: transparent;
  color: #061209;
  box-shadow: 0 8px 30px rgba(53, 194, 85, 0.48);
  transform: translateY(-1px);
}

.btn-outline-green {
  background: rgba(53, 194, 85, 0.08);
  border: 1.5px solid var(--green);
  color: var(--text-0);
  font-weight: 700;
  border-radius: 999px;
}

.btn-outline-green:hover:not(:disabled) {
  background: rgba(53, 194, 85, 0.18);
  border-color: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(53, 194, 85, 0.22);
}

.btn-blue {
  background: var(--blue);
  border-color: transparent;
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 132, 255, 0.32);
}

.btn-blue:hover:not(:disabled) {
  background: var(--blue-bright);
  box-shadow: 0 8px 28px rgba(0, 153, 255, 0.44);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.65);
}

.btn-sm {
  padding: 6px 14px;
  min-height: 34px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-lg {
  padding: 14px 28px;
  min-height: 52px;
  font-size: 16.5px;
  border-radius: 999px;
}

/* Status Pills & Indicators */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-1);
  border: 1px solid var(--border);
  color: var(--text-1);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-2);
  display: inline-block;
  flex-shrink: 0;
}

.dot.live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(53, 194, 85, 0.85);
}

.dot.warn {
  background: var(--amber);
}

.dot.err {
  background: var(--magenta);
}

/* Language Toggle (EN | VI) */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-0);
}

.lang-btn.active {
  background: var(--green);
  color: #09180d;
}
