/* ==========================================================================
   BuzzyOS 2.0 — BigBear360 Premium TV Theme
   Drop-in replacement for /v2/assets/css/app.css
   ========================================================================== */

:root {
  --bg: #0b0806;
  --bg-deep: #050403;
  --panel: rgba(23, 16, 11, 0.94);
  --panel-light: rgba(39, 27, 18, 0.94);
  --panel-hover: rgba(58, 39, 24, 0.98);
  --panel-soft: rgba(255, 255, 255, 0.055);

  --border: rgba(255, 176, 102, 0.16);
  --border-strong: rgba(255, 138, 31, 0.34);
  --border-focus: rgba(255, 138, 31, 0.98);

  --text: #ffffff;
  --muted: #c9bfae;
  --muted-dark: #8f8374;

  --accent: #ff8a1f;
  --accent-deep: #ff5f00;
  --accent-light: #ffb066;
  --accent-pale: #ffd7b0;

  --danger: #ff6666;
  --success: #52d890;

  --focus-scale: 1.045;
  --radius: 24px;
  --radius-small: 18px;

  --shadow:
    0 28px 90px rgba(0, 0, 0, 0.44),
    0 8px 28px rgba(0, 0, 0, 0.28);

  --focus-shadow:
    0 0 0 4px rgba(255, 138, 31, 0.23),
    0 0 42px rgba(255, 95, 0, 0.28),
    0 24px 66px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Reset and base
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/* --------------------------------------------------------------------------
   App shell and atmosphere
   -------------------------------------------------------------------------- */

.app-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 960px;
  min-height: 540px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 78% 4%,
      rgba(255, 138, 31, 0.13),
      transparent 30%
    ),
    radial-gradient(
      circle at 17% 78%,
      rgba(255, 95, 0, 0.08),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #050403 0%,
      #0d0906 42%,
      #17100b 100%
    );
}

.background-layer,
.background-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-one {
  opacity: 0.26;
  background-image:
    url("/v2/bigbear-assets/img/heroes/optimized/lake-wide.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) brightness(0.35) sepia(0.16);
  transform: scale(1.045);
}

.background-two {
  background:
    linear-gradient(
      90deg,
      rgba(5, 4, 3, 0.98) 0%,
      rgba(10, 7, 5, 0.91) 38%,
      rgba(17, 11, 7, 0.84) 100%
    );
}

.background-vignette {
  z-index: 1;
  box-shadow:
    inset 0 0 210px rgba(0, 0, 0, 0.62),
    inset 0 -125px 180px rgba(0, 0, 0, 0.45),
    inset 0 90px 130px rgba(0, 0, 0, 0.22);
}

.topbar,
.main-stage,
.footer {
  position: relative;
  z-index: 5;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.topbar {
  height: 14vh;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.1vh 2vw 1.1vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-icon {
  width: clamp(54px, 4.15vw, 74px);
  height: clamp(54px, 4.15vw, 74px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 215, 176, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 35% 24%,
      rgba(255, 255, 255, 0.28),
      transparent 30%
    ),
    linear-gradient(145deg, #ff9f35, #ff6708);
  font-size: clamp(26px, 2.25vw, 41px);
  box-shadow:
    0 12px 38px rgba(255, 95, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.35);
}

.brand-title {
  font-size: clamp(30px, 2.8vw, 50px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.brand-tagline {
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(14px, 1.12vw, 21px);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.1vw, 38px);
}

.header-weather {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: clamp(20px, 1.8vw, 31px);
  font-weight: 780;
}

.header-weather span:first-child {
  filter: drop-shadow(0 6px 14px rgba(255, 138, 31, 0.26));
}

.clock-block {
  text-align: right;
}

.current-time {
  font-size: clamp(32px, 3.4vw, 62px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.current-date {
  margin-top: 9px;
  color: var(--muted);
  font-size: clamp(14px, 1.14vw, 22px);
}

/* --------------------------------------------------------------------------
   Main screens
   -------------------------------------------------------------------------- */

.main-stage {
  height: 76vh;
  min-height: 410px;
  padding: 0 2vw;
}

.screen {
  width: 100%;
  height: 100%;
  display: none;
}

.screen.active {
  display: flex;
  animation: screenIn 360ms cubic-bezier(0.2, 0.82, 0.28, 1);
}

.home-screen {
  gap: 1.45vw;
}

/* --------------------------------------------------------------------------
   Welcome / hero panel
   -------------------------------------------------------------------------- */

.welcome-panel {
  position: relative;
  flex: 0 0 37.5%;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 2.35vw, 48px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(28, 18, 11, 0.95),
      rgba(13, 9, 6, 0.97)
    );
  box-shadow: var(--shadow);
}

.welcome-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.32)
    ),
    url("/v2/bigbear-assets/img/heroes/optimized/lake-wide.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: saturate(0.7) sepia(0.2);
  pointer-events: none;
}

.welcome-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -165px;
  top: -190px;
  border-radius: 50%;
  background: rgba(255, 138, 31, 0.12);
  filter: blur(10px);
  pointer-events: none;
}

.welcome-content,
.welcome-footer {
  position: relative;
  z-index: 2;
}

.eyebrow,
.content-eyebrow {
  color: var(--accent-light);
  font-size: clamp(13px, 1.02vw, 20px);
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.welcome-content h1 {
  margin: 17px 0 16px;
  font-size: clamp(43px, 4.2vw, 77px);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.welcome-content h1 span {
  color: var(--accent);
  background: linear-gradient(135deg, #ffb066, #ff6a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-content p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.48vw, 27px);
  line-height: 1.46;
}

/* Fixes the cropped “Buzzy Bear’s Art Retreat” card */
.welcome-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.42fr);
  gap: 13px;
  margin-top: 24px;
  align-items: stretch;
}

.property-card {
  min-width: 0;
  min-height: 146px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 19px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 138, 31, 0.055)
    );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.property-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: clamp(12px, 0.88vw, 17px);
  line-height: 1.25;
}

.property-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: break-word;
  color: var(--text);
  font-size: clamp(16px, 1.22vw, 23px);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Home tiles
   -------------------------------------------------------------------------- */

.tile-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 0.95vw, 19px);
  padding: clamp(12px, 1vw, 19px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(21, 14, 9, 0.9),
      rgba(9, 7, 5, 0.92)
    );
  box-shadow: var(--shadow);
}

.menu-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(15px, 1.3vw, 25px);
  overflow: hidden;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 19px;
  outline: none;
  background:
    radial-gradient(
      circle at 92% 108%,
      rgba(255, 138, 31, 0.08),
      transparent 40%
    ),
    linear-gradient(
      145deg,
      rgba(52, 35, 22, 0.96),
      rgba(27, 20, 15, 0.97)
    );
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.045),
    0 14px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform-origin: center;
  transition:
    transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 190ms ease,
    box-shadow 190ms ease,
    background 190ms ease,
    filter 190ms ease;
}

.menu-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(
      135deg,
      rgba(255, 176, 102, 0.11),
      transparent 50%
    );
  transition: opacity 190ms ease;
  pointer-events: none;
}

.menu-tile::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -54px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 138, 31, 0.14),
      rgba(255, 95, 0, 0.03) 62%,
      transparent 72%
    );
  transition:
    transform 230ms ease,
    opacity 230ms ease;
}

.menu-tile.focused,
.menu-tile:focus-visible {
  z-index: 3;
  transform: scale(var(--focus-scale)) translateY(-2px);
  border-color: var(--border-focus);
  background:
    radial-gradient(
      circle at 86% 110%,
      rgba(255, 138, 31, 0.2),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(68, 43, 25, 0.99),
      rgba(36, 25, 18, 0.99)
    );
  box-shadow: var(--focus-shadow);
  filter: brightness(1.08);
}

.menu-tile.focused::before,
.menu-tile:focus-visible::before {
  opacity: 1;
}

.menu-tile.focused::after,
.menu-tile:focus-visible::after {
  transform: scale(1.32);
  opacity: 1;
}

.tile-icon {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: clamp(9px, 0.75vw, 15px);
  font-size: clamp(28px, 2.15vw, 42px);
  line-height: 1;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, 0.28));
}

.tile-title {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(20px, 1.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tile-description {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(12px, 0.92vw, 18px);
  line-height: 1.26;
}

.tile-value {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 18px;
  color: var(--accent-light);
  font-size: clamp(12px, 0.8vw, 16px);
  font-weight: 850;
}

/* --------------------------------------------------------------------------
   Content screen
   -------------------------------------------------------------------------- */

.content-screen {
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(
      145deg,
      rgba(24, 16, 11, 0.97),
      rgba(9, 7, 5, 0.98)
    );
  box-shadow: var(--shadow);
}

.content-header {
  min-height: 125px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 21px 27px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(
      90deg,
      rgba(255, 138, 31, 0.05),
      transparent 44%
    );
}

.back-button,
.action-button,
.ask-chip,
.camera-card,
.content-card {
  outline: none;
}

.back-button {
  min-width: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.075);
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.back-button.focused,
.back-button:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 138, 31, 0.16);
  transform: scale(1.045);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12);
}

.content-heading {
  flex: 1;
}

.content-heading h2 {
  margin: 4px 0 2px;
  font-size: clamp(31px, 2.8vw, 52px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.content-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.03vw, 20px);
}

.screen-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 138, 31, 0.19);
  border-radius: 23px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 138, 31, 0.16),
      rgba(255, 95, 0, 0.07)
    );
  font-size: 40px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.screen-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 38px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 31, 0.62) transparent;
}

.screen-body::-webkit-scrollbar {
  width: 8px;
}

.screen-body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(255, 138, 31, 0.62);
}

/* --------------------------------------------------------------------------
   Loading / empty / error states
   -------------------------------------------------------------------------- */

.loading-state,
.empty-state,
.error-state {
  min-height: 310px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 20px;
}

.loading-spinner {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border: 6px solid rgba(255, 255, 255, 0.11);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

/* --------------------------------------------------------------------------
   Generic content cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 17px;
}

.card-grid.two-column {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.content-card {
  position: relative;
  min-height: 155px;
  padding: 21px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 94% 112%,
      rgba(255, 138, 31, 0.09),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(52, 35, 22, 0.95),
      rgba(27, 20, 15, 0.97)
    );
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.content-card.focused,
.content-card:focus-visible {
  z-index: 2;
  transform: scale(1.028) translateY(-1px);
  border-color: var(--accent);
  background:
    radial-gradient(
      circle at 92% 110%,
      rgba(255, 138, 31, 0.18),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(69, 44, 26, 0.99),
      rgba(36, 25, 18, 0.99)
    );
  box-shadow:
    0 0 0 4px rgba(255, 138, 31, 0.13),
    0 18px 52px rgba(0, 0, 0, 0.36);
}

.content-card h3 {
  margin: 0 0 9px;
  font-size: clamp(20px, 1.45vw, 28px);
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.98vw, 18px);
  line-height: 1.43;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 780;
}

/* --------------------------------------------------------------------------
   Weather
   -------------------------------------------------------------------------- */

.weather-hero {
  display: grid;
  grid-template-columns: minmax(310px, 0.85fr) 1.6fr;
  gap: 20px;
}

.current-weather-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid rgba(255, 176, 102, 0.17);
  border-radius: 21px;
  background:
    radial-gradient(
      circle at 76% 20%,
      rgba(255, 176, 83, 0.25),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(70, 43, 23, 0.98),
      rgba(31, 22, 16, 0.99)
    );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.weather-now-icon {
  font-size: 64px;
  filter: drop-shadow(0 12px 22px rgba(255, 138, 31, 0.2));
}

.weather-now-temperature {
  margin-top: 8px;
  font-size: clamp(68px, 6vw, 108px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.weather-now-condition {
  margin-top: 10px;
  color: var(--accent-light);
  font-size: clamp(20px, 1.55vw, 29px);
  font-weight: 820;
}

.weather-now-details,
.weather-details {
  color: var(--muted);
}

.forecast-grid,
.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 15px;
}

.forecast-card,
.weather-forecast-card {
  min-height: 150px;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.forecast-card.focused,
.forecast-card:focus-visible,
.weather-forecast-card.focused,
.weather-forecast-card:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 138, 31, 0.12);
}

/* --------------------------------------------------------------------------
   Cameras, actions and Ask Buzzy
   -------------------------------------------------------------------------- */

.camera-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 17px;
}

.camera-card {
  position: relative;
  min-height: 205px;
  padding: 21px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 19px;
  background:
    linear-gradient(
      145deg,
      rgba(53, 35, 22, 0.96),
      rgba(24, 18, 14, 0.98)
    );
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.camera-card.focused,
.camera-card:focus-visible {
  z-index: 2;
  transform: scale(1.03);
  border-color: var(--accent);
  box-shadow: var(--focus-shadow);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
}

.action-button,
.ask-chip {
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.action-button.focused,
.action-button:focus-visible,
.ask-chip.focused,
.ask-chip:focus-visible {
  transform: scale(1.045);
  border-color: var(--accent);
  background: rgba(255, 138, 31, 0.17);
}

.ask-layout,
.ask-buzzy-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) 1.5fr;
  gap: 20px;
}

.ask-panel,
.ask-response,
.ask-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.ask-input,
.search-input {
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 16px;
  outline: none;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.ask-input:focus,
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.12);
}

/* --------------------------------------------------------------------------
   Footer / remote hints
   -------------------------------------------------------------------------- */

.footer {
  height: 10vh;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vh 2vw 1.3vh;
  color: var(--muted);
  font-size: clamp(13px, 1.02vw, 19px);
}

.footer strong {
  color: var(--text);
}

.footer-hints,
.remote-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 1.2vw, 24px);
}

.footer-hint,
.remote-hint {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key,
.remote-key,
.footer-key,
kbd {
  min-width: 48px;
  min-height: 43px;
  display: inline-grid;
  place-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 13px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(232, 226, 216, 0.92)
    );
  color: #16100b;
  font-weight: 900;
  box-shadow:
    0 7px 18px rgba(0, 0, 0, 0.25),
    inset 0 -2px rgba(0, 0, 0, 0.08);
}

.online-status,
.status-online {
  display: flex;
  align-items: center;
  gap: 10px;
}

.online-dot,
.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px rgba(82, 216, 144, 0.75);
}

/* --------------------------------------------------------------------------
   Utility styles used by dynamic content
   -------------------------------------------------------------------------- */

.badge,
.status-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 138, 31, 0.22);
  border-radius: 999px;
  background: rgba(255, 138, 31, 0.1);
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
}

.warning,
.alert,
.danger {
  color: var(--danger);
}

.success,
.open,
.good {
  color: var(--success);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes focusPulse {
  0%,
  100% {
    box-shadow: var(--focus-shadow);
  }

  50% {
    box-shadow:
      0 0 0 4px rgba(255, 138, 31, 0.28),
      0 0 52px rgba(255, 95, 0, 0.34),
      0 26px 70px rgba(0, 0, 0, 0.52);
  }
}

/* --------------------------------------------------------------------------
   TV-size refinements
   -------------------------------------------------------------------------- */

@media (max-width: 1366px) {
  .topbar {
    padding-left: 1.8vw;
    padding-right: 1.8vw;
  }

  .main-stage {
    padding-left: 1.8vw;
    padding-right: 1.8vw;
  }

  .welcome-panel {
    flex-basis: 36%;
    padding: 25px 28px;
  }

  .welcome-content h1 {
    font-size: clamp(40px, 4vw, 63px);
  }

  .welcome-content p {
    font-size: clamp(15px, 1.38vw, 22px);
  }

  .property-card {
    min-height: 136px;
    padding: 15px 16px;
  }

  .property-card strong {
    font-size: clamp(15px, 1.16vw, 20px);
  }

  .menu-tile {
    padding: 15px 18px;
  }
}

@media (max-height: 760px) {
  .topbar {
    height: 13vh;
    min-height: 74px;
  }

  .main-stage {
    height: 77vh;
  }

  .footer {
    height: 10vh;
  }

  .welcome-panel {
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .welcome-content h1 {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .welcome-content p {
    line-height: 1.38;
  }

  .welcome-footer {
    margin-top: 16px;
  }

  .property-card {
    min-height: 126px;
  }

  .tile-icon {
    margin-bottom: 7px;
  }

  .tile-description {
    margin-top: 4px;
  }
}

@media (min-width: 1800px) {
  .welcome-footer {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  }

  .property-card {
    min-height: 154px;
  }
}

/* Respect reduced motion where supported */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
