:root {
  --bg: #040911;
  --surface: rgba(8, 18, 32, 0.92);
  --card: #091423;
  --border: #173452;
  --accent: #00ff9d;
  --accent2: #00e5ff;
  --amber: #ffb800;
  --red: #ff3b5c;
  --text: #eaf6ff;
  --muted: #8aa6c4;
}

body[data-theme="cyber"]  { --bg: #030a18; --card: #07162e; --border: #184275; --accent: #00e5ff; --accent2: #38bdf8; }
body[data-theme="aurora"] { --bg: #090616; --card: #130c29; --border: #3d246c; --accent: #ff4da6; --accent2: #00e5ff; }
body[data-theme="matrix"] { --bg: #020a05; --card: #06180d; --border: #134e2a; --accent: #00ff66; --accent2: #34d399; }
body[data-theme="oled"]   { --bg: #000000; --card: #0a0a0a; --border: #222222; --accent: #00ff9d; --accent2: #00e5ff; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  font-family: inherit;
  user-select: text;
  -webkit-user-select: text;
}

/* SPLASH */
#argusSplash {
  position: fixed;
  inset: 0;
  background: #040911;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.25s ease;
}
body:not(.argus-booting) #argusSplash {
  opacity: 0;
  pointer-events: none;
}
.splash-box { text-align: center; }
.splash-ico { font-size: 46px; margin-bottom: 10px; }
.splash-txt { color: #00ff9d; font-size: 15px; font-weight: bold; letter-spacing: 1.5px; }

/* FUNDO MATRIX E PAPEL DE PAREDE */
#argusMatrixCanvas, #argusWallpaperLayer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#argusWallpaperLayer {
  background-size: cover;
  background-position: center;
  opacity: 0;
}

/* HOME SCREEN */
#argusHome {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.argus-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: bold;
  color: var(--accent);
  background: rgba(4, 9, 17, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.argus-hero {
  text-align: center;
  padding: 18px 12px 10px 12px;
  flex-shrink: 0;
}
#argusBigClock {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
  line-height: 1;
}
#argusBigDate {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: capitalize;
}
.argus-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(0, 255, 157, 0.1);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* GRADE DE ÍCONES */
.argus-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 16px 10px;
  align-content: start;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.app-tile:active { transform: scale(0.9); }

.app-sq {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  border: 2px solid var(--accent);
  background: linear-gradient(145deg, #0c1f36, #061726);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.app-lbl {
  font-size: 11px;
  color: var(--text);
  text-align: center;
  line-height: 1.15;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px #000;
}

/* DOCK INFERIOR */
.argus-dock {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 22px 14px 22px;
  background: rgba(4, 10, 19, 0.82);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.dock-btn {
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: inherit;
}
.dock-btn:active { transform: scale(0.94); }
.dock-sq {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1.5px solid var(--accent);
  background: rgba(0, 255, 157, 0.12);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.22);
}
.dock-apps {
  border-color: var(--accent2);
  background: rgba(0, 229, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}
.dock-lbl { font-size: 11px; font-weight: bold; }

/* OVERLAYS (GAVETA E LAYOUT) */
.argus-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(4, 9, 17, 0.96);
  backdrop-filter: blur(10px);
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.argus-overlay.open { display: flex; }

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--border);
  background: #07111f;
  flex-shrink: 0;
}
.sheet-title { font-size: 13.5px; font-weight: bold; color: var(--accent); }
.sheet-top-acts { display: flex; gap: 6px; }

.drawer-search-wrap { padding: 10px 14px 4px 14px; flex-shrink: 0; }
.drawer-hint { padding: 4px 14px 6px 14px; font-size: 10.5px; color: var(--muted); text-align: center; }

.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px 30px 14px;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 12px;
}
.panel-h {
  font-size: 12.5px;
  font-weight: bold;
  color: var(--accent2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-desc { font-size: 12px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }

input[type="text"], input[type="url"], input[type="search"], input[type="password"], select {
  width: 100%;
  background: #040a12;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px;
  font-size: 13.5px;
  margin-bottom: 8px;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent); }
.field-lbl { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
input[type="range"] { width: 100%; margin-bottom: 12px; accent-color: var(--accent); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.btn-chip, .theme-btn {
  background: #0c1a2c;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 7px 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.btn-chip.green { border-color: #00ff9d; color: #00ff9d; background: rgba(0, 255, 157, 0.12); }
.btn-chip.cyan  { border-color: #00e5ff; color: #00e5ff; background: rgba(0, 229, 255, 0.12); }
.btn-chip.amber { border-color: #ffb800; color: #ffb800; background: rgba(255, 184, 0, 0.12); }
.btn-chip.red   { border-color: #ff3b5c; color: #ff3b5c; background: rgba(255, 59, 92, 0.15); }
.theme-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(0, 255, 157, 0.14); }

.btn-main {
  width: 100%;
  padding: 11px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #0e1e33;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: bold;
  cursor: pointer;
}
.btn-main:active { transform: scale(0.97); }
.btn-main.green { background: #072e1f; border-color: #00ff9d; color: #00ff9d; }
.btn-main.cyan  { background: #072436; border-color: #00e5ff; color: #00e5ff; }
.btn-main.amber { background: #2d1e07; border-color: #ffb800; color: #ffb800; }
.btn-main.red   { background: #2e0a14; border-color: #ff3b5c; color: #ff6b81; }

.shortcut-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #050d17;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

/* MODAIS */
.argus-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(2, 6, 14, 0.9);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.argus-modal.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 16px;
}

/* PALCO DOS APPS MODULARES */
#argusAppStage {
  position: relative;
  z-index: 1000;
}
 