/* === GLOBAL LOCKED LAYOUT FOUNDATION === */
html {
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

body {
  margin: 0;
  padding: 12px 10px 14px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Cairo', sans-serif;
  background: radial-gradient(circle at center, #0d0d1f, #101820 90%);
  color: white;
  line-height: 1.45;
  text-wrap: pretty;
}

body.dark-theme {
  color: #fff;
}

body.light-theme {
  color: #0f1722;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === CARD === */
.card {
  width: min(calc(100vw - 20px), 460px);
  max-width: 460px;
  margin: clamp(60px, 7vh, 84px) auto 20px;
  background: rgba(15, 15, 25, 0.95);
  border-radius: 30px;
  padding: clamp(1rem, 3vw, 2rem);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.1), 0 0 12px #000;
  position: relative;
  overflow: hidden;
}

body.light-theme .card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(239,243,248,0.97) 46%, rgba(225,231,239,0.98) 100%);
  color: #0f1722;
  border: 1px solid rgba(142, 156, 176, 0.55);
  box-shadow:
    0 18px 34px rgba(15, 23, 34, 0.12),
    0 2px 0 rgba(255,255,255,0.95) inset,
    0 -8px 16px rgba(144, 154, 170, 0.08) inset;
}

/* === LOGO === */
.logo {
  font-size: 5.5rem;
  font-weight: bold;
  background: linear-gradient(to top right, #fff8b8, gold, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px gold, 0 0 10px #ffd700;
}
body.light-theme .logo {
  background: linear-gradient(to top right, #fff8b8, #ffcc00, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.8), 0 0 10px rgba(255, 204, 0, 0.6), 0 0 4px #b8860b;
}
/* === INPUTS + BUTTONS === */
input,
button,
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem;
  margin: 0.6rem 0;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.35;
  border: none;
  outline: none;
  font-family: inherit;
}

input,
select,
textarea {
  background: #1e1e30;
  color: white;
  border: 1px solid #555;
}

button {
  background: linear-gradient(to right, #d4af37, #00c6ff);
  color: white;
  font-weight: bold;
  box-shadow: 0 0 8px rgba(0,123,255,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  cursor: pointer;
}

button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0,123,255,0.7);
}

body.light-theme button {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 30%, #cfd6de 62%, #a4afbc 100%);
  color: #0f1722;
  border: 1px solid #7f8c9e;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    inset 0 -2px 4px rgba(68, 79, 96, 0.22),
    0 8px 18px rgba(31, 41, 55, 0.12),
    0 0 10px rgba(183, 194, 207, 0.38);
  font-weight: bold;
}

body.light-theme button:hover {
  transform: scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(65, 75, 92, 0.26),
    0 10px 20px rgba(31, 41, 55, 0.15),
    0 0 16px rgba(205, 214, 224, 0.55);
}

/* === SPEED OPTIONS === */
.speed-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.speed-options button {
  min-height: 46px;
}

.speed-options button.selected {
  background: #00ffc3;
  color: #000;
  font-weight: bold;
}

.speed-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

/* === TOGGLES === */
.theme-toggle,
.lang-toggle {
  position: fixed !important;
  top: 10px !important;
  width: 72px !important;
  min-width: 72px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: #292944;
  color: white;
  border-radius: 12px !important;
  cursor: pointer;
  z-index: 1000;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.theme-toggle {
  left: 10px !important;
  right: auto !important;
}

.lang-toggle {
  right: 10px !important;
  left: auto !important;
}

#lang-toggle {
  color: #d4af37 !important;
}

#theme-icon {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  font-size: 1.08rem;
  line-height: 1 !important;
}

.theme-toggle > *,
.lang-toggle > * {
  margin: 0 !important;
  align-self: center !important;
  justify-self: center !important;
}

/* === NEWS TICKER === */
.news-ticker {
  width: 100%;
  max-width: 100%;
  background: #222;
  color: #00ffc3;
  padding: 0.5rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

body.light-theme .news-ticker {
  background: linear-gradient(180deg, #f9fbfd 0%, #e8edf3 100%);
  color: #314255;
  border: 1px solid rgba(146, 160, 178, 0.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 4px 10px rgba(31,41,55,0.06);
}

/* === PROMO SLIDER === */
.promo-slider {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
  position: relative;
  aspect-ratio: 16 / 6;
  min-height: 140px;
  overflow: hidden;
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}

.promo-img.hidden {
  opacity: 0;
  z-index: 0;
}

.promo-img:not(.hidden) {
  opacity: 1;
  z-index: 1;
}

/* === TRIAL AREA === */
.trial-btn,
.trial-btn-inline,
.trial-below .trial-btn {
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--text-color);
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.trial-btn:hover,
.trial-btn-inline:hover,
.trial-below .trial-btn:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

input[name="username"] {
  width: 100%;
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(124, 139, 159, 0.36);
  background: linear-gradient(180deg, #fbfdff 0%, #edf2f7 100%);
  color: #111827;
  text-align: center;
  box-shadow:
    inset 0 2px 5px rgba(38, 48, 60, 0.08),
    0 1px 0 rgba(255,255,255,0.95);
}

.username-trial-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.username-trial-row > * {
  min-width: 0;
}

/* === BOTTOM BUTTONS === */
.button-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.button-row > *,
.button-row a {
  flex: 1 1 180px;
  min-width: 0;
}

.button-row a {
  display: flex;
  text-decoration: none;
}

.button-row button {
  width: 100%;
  height: 100%;
  padding: 0.6rem;
  font-size: 0.9rem;
  margin: 0;
}

/* === STATUS PAGE STYLES === */
.app-card {
  width: 100%;
  max-width: 100%;
  background-color: #1a1a2d;
  color: white;
  padding: 1rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
  transition: 0.3s ease;
  overflow-wrap: anywhere;
}

body.light-theme .app-card {
  background: linear-gradient(180deg, #fbfdff 0%, #e8edf3 100%);
  color: #0f1722;
  border: 1px solid rgba(146, 160, 178, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 6px 14px rgba(31,41,55,0.06);
}

.app-sub {
  font-size: 0.85rem;
  color: #ccc;
  overflow-wrap: anywhere;
}

body.light-theme .app-sub {
  color: #46576b;
}

.extras-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.8rem 0;
}

.extras-panel > * {
  min-width: 0;
}

.extras-panel button {
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background-color: #2a2a44;
  color: #ffd700;
  font-weight: bold;
  border: none;
  transition: background 0.3s, transform 0.2s;
}

body.light-theme .extras-panel button {
  background: linear-gradient(180deg, #ffffff 0%, #edf2f7 100%);
  color: #182433;
  border: 1px solid #9aa8ba;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 10px rgba(31,41,55,0.08);
}

.zone-tile {
  width: 100%;
  max-width: 100%;
  background: #0f0f1f;
  color: white;
  padding: 0.8rem;
  border-radius: 12px;
  margin: 0.4rem 0;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  overflow-wrap: anywhere;
}

body.light-theme .zone-tile {
  background: linear-gradient(180deg, #fbfdff 0%, #e7ecf2 100%);
  color: #0f1722;
  border: 1px solid rgba(146, 160, 178, 0.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 5px 12px rgba(31,41,55,0.06);
}

.zone-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.ticker-bar {
  margin: 1rem auto;
  padding: 8px 12px;
  text-align: center;
  display: inline-block;
  max-width: 80%;
  background: #333;
  color: gold;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

body.light-theme .ticker-bar {
  background: linear-gradient(180deg, #f8fbfd 0%, #e8edf3 100%);
  color: #34475a;
  border: 1px solid rgba(146, 160, 178, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 10px rgba(31,41,55,0.06);
}

.logout-btn-full,
.logout-btn-soft {
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: bold;
  background: #d4af37;
  color: black;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
  border: none;
  cursor: pointer;
}

body.dark-theme .logout-btn-full {
  color: white;
}

.logout-btn-full:hover,
.logout-btn-soft:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  background-color: rgba(255, 215, 0, 0.08);
  transition: 0.3s ease;
}

/* === Smart Contact NOON Panel === */
.support-toggle {
  margin-top: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-block {
  width: 100%;
  max-width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.05);
  overflow-wrap: anywhere;
}

body.light-theme .support-block {
  background: linear-gradient(180deg, #fbfdff 0%, #e7edf3 100%);
  color: #0f1722;
  border: 1px solid rgba(146, 160, 178, 0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 8px 16px rgba(31,41,55,0.06);
}

.support-call {
  display: inline-block;
  margin: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #444;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.support-call:hover {
  background-color: #555;
}

body.light-theme .support-call {
  background: linear-gradient(180deg, #fdfefe 0%, #dce3eb 100%);
  color: #13202d;
  border: 1px solid rgba(134, 149, 169, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96), 0 5px 10px rgba(31,41,55,0.08);
}

body.light-theme .support-call:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e5ebf2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.98), 0 8px 14px rgba(31,41,55,0.12);
}

.support-call-group a {
  display: block;
  margin-bottom: 0.3rem;
}

.support-btn {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
  white-space: normal;
  overflow-wrap: anywhere;
}

.support-btn.green {
  background-color: #25d366;
}

.support-btn.red {
  background-color: #d32625;
}

.support-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

body.light-theme .support-btn.green {
  background-color: #c9f7d6;
  color: #075e54;
}

body.light-theme .support-btn.red {
  background-color: #fcd6d6;
  color: #841010;
}

.whatsapp-note {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 0.7rem;
  color: #00ffc3;
  overflow-wrap: anywhere;
}

body.light-theme .whatsapp-note {
  color: #435669;
}

.smart-tip {
  margin: 10px auto;
  padding: 0.6rem;
  font-size: 0.85rem;
  border-radius: 8px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  display: none;
  overflow-wrap: anywhere;
}

/* Dark Theme Tip Style */
body.dark-theme .smart-tip {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* Day Theme Tip Style */
body:not(.dark-theme) .smart-tip {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(236,242,247,0.96) 100%);
  color: #12202f;
  border: 1px solid rgba(146, 160, 178, 0.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 8px 16px rgba(31,41,55,0.08);
}

/* 🟥 RTL-FRIENDLY STYLE FOR STOP AUTO UPDATE CHECKBOX */
.checkbox-wrapper {
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  direction: rtl;
}

.checkbox-wrapper label {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.4;
  color: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

.checkbox-wrapper input[type="checkbox"] {
  flex: 0 0 auto;
  transform: scale(1.2);
  accent-color: gold;
}

/* 🟥 Error Message Box */
.smart-tip.error-alert {
  background: rgba(200, 0, 0, 0.95);
  color: #fff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 10px;
  max-width: 480px;
  margin: 20px auto;
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.4);
  line-height: 1.6;
  text-align: center;
  cursor: pointer;
}

/* 🌞 Light Theme Override */
body.light-theme .smart-tip.error-alert {
  background: #ffecec;
  color: #b30000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* 🕓 TIME/DATE BAR */
.datetime-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 13px;
  text-align: center;
  margin-top: 18px;
  margin-bottom: -2px;
  font-weight: bold;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
  max-width: calc(100% - 120px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-theme .datetime-bar {
  color: #f8f8f8;
  background: transparent;
}

body.light-theme .datetime-bar {
  color: #202020;
  background: transparent;
}

/* 🅿️ COPYRIGHT FOOTER */
.noon-footer {
  text-align: center;
  font-size: 12px;
  color: gray;
  margin-top: 30px;
  padding-bottom: 10px;
  overflow-wrap: anywhere;
}

body.light-theme .noon-footer {
  color: #5b6b7c;
}

/* 🟧 Username inline error style */
.username-error {
  text-align: center;
  color: red;
  font-weight: bold;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* === MEDIA / FIT LAYER === */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.poster-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.poster-label,
.section-title {
  text-align: center;
  overflow-wrap: anywhere;
}

.poster-label {
  padding-top: 8px;
}

.packages-grid {
  width: 100%;
  padding-inline: clamp(10px, 2.5vw, 2rem);
}

@media (max-width: 900px) {
  body {
    padding: 10px 8px 14px;
  }

  .card {
    width: min(calc(100vw - 16px), 460px);
  }

  .promo-slider {
    min-height: 130px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 8px 6px 12px;
  }

  .card {
    width: min(calc(100vw - 12px), 460px);
    margin-top: 58px;
    border-radius: 24px;
    padding: 1rem;
  }

  .promo-slider {
    min-height: 120px;
  }

  .button-row {
    gap: 10px;
  }

  .poster-grid {
    gap: 12px;
  }

  .packages-grid {
    padding-inline: 8px;
  }
}

@media (max-width: 420px) {
  .theme-toggle,
  .lang-toggle {
    top: 8px !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    border-radius: 11px !important;
  }

  .theme-toggle {
    left: 8px !important;
  }

  .lang-toggle {
    right: 8px !important;
  }

  .card {
    width: min(calc(100vw - 8px), 460px);
    margin-top: 54px;
    padding: 1rem 0.95rem;
    border-radius: 20px;
  }

  .promo-slider {
    min-height: 110px;
  }

  .promo-img {
    object-fit: contain;
    background: rgba(0, 0, 0, 0.08);
  }

  body.light-theme .promo-img {
    background: rgba(0, 0, 0, 0.03);
  }

  .button-row {
    gap: 8px;
  }

  .speed-options {
    gap: 0.45rem;
  }

  .poster-grid {
    gap: 10px;
  }

  .datetime-bar {
    max-width: calc(100% - 136px);
    font-size: 12px;
  }
}
/* ========================= */
/* NOON LOCKED UI FIXES */
/* ========================= */

/* 1. LIGHT THEME REFINEMENT */
body.light-theme {
  background:
    radial-gradient(circle at top, #ffffff 0%, #f2f6fa 38%, #dde4ec 100%) !important;
}

body.light-theme .card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(239,243,248,0.97) 48%, rgba(226,232,239,0.98) 100%) !important;
  border: 1px solid rgba(140,154,174,0.48) !important;
  box-shadow:
    0 10px 24px rgba(16,24,38,0.10),
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 -10px 18px rgba(139,151,168,0.08) inset !important;
}

/* 2. BUTTON + TOGGLE CLEANUP */
body.light-theme button,
body.light-theme .theme-toggle,
body.light-theme .lang-toggle {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 34%, #ccd4dd 100%) !important;
  border: 1px solid rgba(127,140,158,0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(67,78,95,0.20),
    0 6px 14px rgba(16,24,38,0.10),
    0 0 12px rgba(210,218,227,0.42) !important;
  color: #13202d !important;
}

body.light-theme button:active,
body.light-theme .theme-toggle:active,
body.light-theme .lang-toggle:active {
  transform: scale(0.97);
  box-shadow:
    inset 0 2px 5px rgba(66,76,92,0.22),
    0 2px 6px rgba(16,24,38,0.08) !important;
}

/* 3. REMOVE MESSY EDGE EFFECTS */
body.light-theme * {
  outline: none;
}

/* 4. DATETIME BAR — LOCKED COLOR (VERY IMPORTANT) */
.datetime-bar {
  color: #d4af37 !important; /* gold */
  background: transparent !important;
}

/* prevent theme override */
body.light-theme .datetime-bar,
body.dark-theme .datetime-bar {
  color: #d4af37 !important;
}

/* 5. TEXT SAFETY (NO OVERFLOW) */
.card,
button,
.tile,
.info-tile {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* 6. MOBILE-FIRST TEXT CONTROL */
button,
.tile,
.info-tile {
  font-size: clamp(12px, 2.8vw, 15px);
}

.card {
  font-size: clamp(13px, 3vw, 16px);
}

/* ========================= */
/* NOON STATUS LOCK FIXES */
/* ========================= */

.dashboard {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

.user-card {
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.info-grid {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.info-tile {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.fixed-zones {
  width: 100%;
  max-width: 450px;
}

.fixed-zones .zone-tile,
.zone-tile {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.logout-btn-full,
.logout-btn-soft {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

@media (max-width: 600px) {
  .info-tile {
    flex: 1 1 calc(50% - 10px);
    width: auto;
  }

  .fixed-zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ========================= */
/* NOON LIGHT FIX (PLATINUM TWIN) */
/* ========================= */

body.light-theme .card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(242,246,250,0.98) 44%, rgba(227,233,240,0.99) 100%) !important;
  border: 1px solid rgba(139,152,171,0.48) !important;
  box-shadow:
    0 14px 28px rgba(16,24,38,0.10),
    0 1px 0 rgba(255,255,255,0.98) inset,
    0 -10px 18px rgba(138,149,166,0.08) inset !important;
}

body.light-theme .theme-toggle,
body.light-theme .lang-toggle {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 34%, #cfd7e0 100%) !important;
  color: #152231 !important;
  border: 1px solid rgba(127,140,158,0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(67,78,95,0.20),
    0 6px 14px rgba(16,24,38,0.10) !important;
}

body.light-theme .theme-toggle:hover,
body.light-theme .lang-toggle:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -2px 4px rgba(67,78,95,0.22),
    0 8px 16px rgba(16,24,38,0.12),
    0 0 12px rgba(208,216,225,0.45) !important;
}




/* ========================= */
/* NOON PLATINUM LIGHT THEME MASTER OVERRIDE */
/* ========================= */

body.light-theme {
  color: #0f1722 !important;
  background:
    radial-gradient(circle at top, #ffffff 0%, #f2f6fa 40%, #dce3eb 100%) !important;
}

body.light-theme .logo,
body.light-theme .logo span {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fbfd 7%,
    #e9eef4 18%,
    #cdd5de 31%,
    #ffffff 43%,
    #b8c2cf 56%,
    #8d98a8 73%,
    #e2e7ed 86%,
    #6f7a89 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.98),
    0 2px 0 rgba(255,255,255,0.62),
    0 4px 8px rgba(63,74,91,0.18),
    0 10px 18px rgba(32,42,56,0.20),
    0 0 10px rgba(230,236,243,0.42),
    0 0 2px rgba(255,255,255,0.9) !important;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background: linear-gradient(180deg, #fbfdff 0%, #ebf0f5 100%) !important;
  color: #111827 !important;
  border: 1px solid rgba(125, 139, 159, 0.34) !important;
  box-shadow:
    inset 0 2px 5px rgba(37, 47, 59, 0.08),
    0 1px 0 rgba(255,255,255,0.96) !important;
}

body.light-theme button,
body.light-theme .logout-btn-full,
body.light-theme .logout-btn-soft,
body.light-theme .extras-panel button,
body.light-theme .support-call {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 34%, #cfd6de 64%, #aab4c1 100%) !important;
  color: #13202d !important;
  border: 1px solid rgba(123, 136, 154, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(67,78,95,0.22),
    0 8px 16px rgba(16,24,38,0.10),
    0 0 12px rgba(209,217,226,0.42) !important;
}

body.light-theme button:hover,
body.light-theme .logout-btn-full:hover,
body.light-theme .logout-btn-soft:hover,
body.light-theme .extras-panel button:hover,
body.light-theme .support-call:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -2px 4px rgba(67,78,95,0.26),
    0 10px 20px rgba(16,24,38,0.14),
    0 0 16px rgba(217,224,232,0.56) !important;
}

body.light-theme .theme-toggle,
body.light-theme .lang-toggle {
  color: #152231 !important;
}

body.light-theme #lang-toggle,
body.light-theme #theme-icon {
  color: #152231 !important;
}

body.light-theme .news-ticker,
body.light-theme .app-card,
body.light-theme .zone-tile,
body.light-theme .support-block,
body.light-theme .ticker-bar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(233,238,244,0.98) 100%) !important;
  color: #12202f !important;
  border: 1px solid rgba(142,156,176,0.40) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    0 8px 16px rgba(16,24,38,0.06) !important;
}

body.light-theme .app-sub,
body.light-theme .whatsapp-note,
body.light-theme .noon-footer {
  color: #526273 !important;
}

body.light-theme .support-btn.green {
  background: linear-gradient(180deg, #ecf2f7 0%, #d4dde7 100%) !important;
  color: #1a2a39 !important;
  border: 1px solid rgba(122,136,155,0.64) !important;
}

body.light-theme .support-btn.red {
  background: linear-gradient(180deg, #f7edf0 0%, #e7d9df 100%) !important;
  color: #5a2430 !important;
  border: 1px solid rgba(159,128,138,0.52) !important;
}

body.light-theme .smart-tip.error-alert {
  background: linear-gradient(180deg, #fff6f8 0%, #eddde3 100%) !important;
  color: #8a273a !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 8px 16px rgba(114,49,64,0.10) !important;
}

body.light-theme .speed-options button.selected {
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ef 48%, #aeb9c6 100%) !important;
  color: #0f1722 !important;
  border: 1px solid rgba(112,125,143,0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 16px rgba(205,214,224,0.62) !important;
}

/* ========================= */
/* NOON FINAL METAL + DARK POLISH REFINEMENTS */
/* ========================= */

/* 3) LIGHT LOGO EXTRA DEPTH + GLOW */
body.light-theme .logo,
body.light-theme .logo span {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 6%,
    #eef3f7 14%,
    #cad3de 27%,
    #ffffff 39%,
    #9aa6b6 55%,
    #f4f8fb 66%,
    #727f90 82%,
    #dbe3ea 91%,
    #586474 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,1),
    0 2px 0 rgba(255,255,255,0.82),
    0 4px 0 rgba(255,255,255,0.28),
    0 6px 10px rgba(70,81,97,0.26),
    0 12px 22px rgba(28,38,50,0.22),
    0 0 8px rgba(255,255,255,0.92),
    0 0 16px rgba(224,232,240,0.88),
    0 0 28px rgba(194,205,217,0.60),
    0 0 40px rgba(157,171,187,0.34) !important;
}

/* 4) DARK THEME CORE CONTROLS REBUILT TO MATCH THEME */
body.dark-theme button,
body.dark-theme .logout-btn-full,
body.dark-theme .logout-btn-soft,
body.dark-theme .extras-panel button,
body.dark-theme .support-call {
  background: linear-gradient(
    135deg,
    #15365b 0%,
    #0f2743 30%,
    #183b63 58%,
    #d4af37 130%
  ) !important;
  color: #f6e7a3 !important;
  border: 1px solid rgba(212,175,55,0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,200,0.20),
    inset 0 -2px 6px rgba(0,0,0,0.26),
    0 8px 18px rgba(0,0,0,0.22),
    0 0 10px rgba(212,175,55,0.14) !important;
}

body.dark-theme button:hover,
body.dark-theme .logout-btn-full:hover,
body.dark-theme .logout-btn-soft:hover,
body.dark-theme .extras-panel button:hover,
body.dark-theme .support-call:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,248,214,0.28),
    inset 0 -2px 6px rgba(0,0,0,0.28),
    0 10px 22px rgba(0,0,0,0.26),
    0 0 14px rgba(212,175,55,0.28) !important;
}

body.dark-theme .speed-options button.selected {
  background: linear-gradient(180deg, #e9d887 0%, #d4af37 52%, #866306 100%) !important;
  color: #08111d !important;
  border: 1px solid rgba(255,225,135,0.62) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,247,205,0.72),
    0 0 16px rgba(212,175,55,0.42) !important;
}

/* 5) DARK USERNAME FIELD + FORM SURFACE */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme input[name="username"] {
  background: linear-gradient(180deg, #13253a 0%, #0c1828 100%) !important;
  color: #f2e6b4 !important;
  border: 1px solid rgba(212,175,55,0.34) !important;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.34),
    0 1px 0 rgba(255,235,170,0.08) !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: rgba(231,218,163,0.72) !important;
}

/* 6) DARK TITLE / LABEL / FOOTER TONE */
body.dark-theme .section-title,
body.dark-theme .poster-label,
body.dark-theme label,
body.dark-theme .noon-footer,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme strong {
  color: #e7d591 !important;
}

body.dark-theme .noon-footer {
  text-shadow:
    0 0 6px rgba(212,175,55,0.18),
    0 1px 0 rgba(255,243,196,0.12) !important;
}

/* 7) LIGHT FOOTER AND GLOW CONSISTENCY */
body.light-theme .noon-footer {
  color: #7d8997 !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.86),
    0 0 8px rgba(222,230,238,0.45) !important;
}

/* ========================= */
/* NOON STATUS PAGE FINAL POLISH */
/* ========================= */

.card.dashboard {
  width: min(calc(100vw - 16px), 478px);
  max-width: 478px;
  padding: clamp(1rem, 2.8vw, 1.35rem);
}

.dashboard {
  gap: 14px;
  padding: 0;
}

.user-card {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.info-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.info-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 94px;
  padding: 14px 12px;
  border-radius: 18px;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.info-tile strong {
  display: block;
  margin-top: 4px;
}

.fixed-zones {
  width: 100%;
  max-width: 100%;
  gap: 12px;
}

.fixed-zones .zone-tile,
.zone-tile {
  border-radius: 18px;
}

.logout-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.logout-panel form {
  display: block !important;
  width: 100%;
  margin: 0;
}

.logout-btn-full,
.logout-btn-soft {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 340px) !important;
  min-height: 52px;
  margin: 0 auto !important;
}

body.dark-theme .user-card {
  background: linear-gradient(135deg, rgba(18,27,46,0.98) 0%, rgba(17,39,67,0.98) 56%, rgba(122,92,16,0.94) 138%) !important;
  color: #f4e6b0 !important;
  border: 1px solid rgba(212,175,55,0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.10),
    0 14px 28px rgba(0,0,0,0.22),
    0 0 14px rgba(212,175,55,0.12) !important;
}

body.dark-theme .info-tile {
  background: linear-gradient(180deg, rgba(17,26,44,0.96) 0%, rgba(13,22,37,0.98) 100%) !important;
  border: 1px solid rgba(212,175,55,0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.08),
    0 8px 16px rgba(0,0,0,0.20),
    0 0 10px rgba(212,175,55,0.08) !important;
}

body.light-theme .card.dashboard {
  border: 1px solid rgba(145,157,176,0.42) !important;
  box-shadow:
    0 18px 34px rgba(15,23,34,0.11),
    0 2px 0 rgba(255,255,255,0.98) inset,
    0 -10px 18px rgba(138,149,166,0.08) inset !important;
}

body.light-theme .user-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,246,251,0.98) 42%, rgba(224,231,239,0.99) 100%) !important;
  color: #12202f !important;
  border: 1px solid rgba(139,152,171,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 10px 18px rgba(16,24,38,0.08),
    0 0 12px rgba(207,216,226,0.26) !important;
}

body.light-theme .user-card h2,
body.light-theme .user-card p,
body.light-theme .user-card strong,
body.light-theme .user-card span,
body.light-theme .user-card div {
  color: inherit !important;
}

body.light-theme .info-tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(239,244,249,0.98) 52%, rgba(225,232,240,0.99) 100%) !important;
  color: #112031 !important;
  border: 1px solid rgba(130,145,166,0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(118,130,147,0.10),
    0 10px 18px rgba(16,24,38,0.07),
    0 0 10px rgba(212,219,227,0.28) !important;
}

body.light-theme .info-tile strong {
  color: #213246 !important;
}

body.light-theme .fixed-zones .zone-tile,
body.light-theme .zone-tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(238,244,249,0.98) 100%) !important;
  border: 1px solid rgba(131,145,165,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    0 10px 18px rgba(16,24,38,0.07) !important;
}

body.light-theme .logout-panel {
  border-top: 1px dashed rgba(128,141,161,0.32) !important;
}

@media (max-width: 600px) {
  .card.dashboard {
    width: min(calc(100vw - 10px), 478px);
    padding: 0.95rem 0.85rem 1rem;
  }

  .info-grid {
    gap: 10px;
  }

  .info-tile {
    min-height: 88px;
    border-radius: 16px;
  }

  .logout-btn-full,
  .logout-btn-soft {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .card.dashboard {
    width: min(calc(100vw - 6px), 478px);
    padding: 0.9rem 0.75rem 0.95rem;
  }

  .info-grid {
    gap: 9px;
  }

  .info-tile {
    min-height: 84px;
    padding: 12px 10px;
  }

  .fixed-zones {
    gap: 9px;
  }

  .fixed-zones .zone-tile,
  .zone-tile {
    border-radius: 16px;
  }
}

/* ========================= */
/* NOON LIGHT DEPTH SYSTEM REBUILD */
/* ========================= */

body.light-theme {
  background:
    radial-gradient(circle at top, #ffffff 0%, #f4f7fb 34%, #e1e7ee 68%, #d6dde6 100%) !important;
}

body.light-theme .card {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.99) 0%,
      rgba(242,246,250,0.985) 45%,
      rgba(228,234,242,0.99) 100%) !important;
  border: 1px solid rgba(125, 140, 160, 0.55) !important;
  box-shadow:
    0 22px 42px rgba(15, 23, 34, 0.14),
    0 3px 0 rgba(255,255,255,1) inset,
    0 -14px 24px rgba(130,145,165,0.12) inset,
    0 0 18px rgba(205,214,224,0.25) !important;
}

body.light-theme .card.dashboard {
  background:
    linear-gradient(180deg, rgba(253,254,255,0.995) 0%, rgba(242,246,251,0.99) 42%, rgba(227,233,241,0.99) 100%) !important;
  border: 1px solid rgba(125, 140, 161, 0.48) !important;
  box-shadow:
    0 22px 42px rgba(15, 23, 34, 0.13),
    0 3px 0 rgba(255,255,255,0.99) inset,
    0 -14px 24px rgba(130, 143, 160, 0.10) inset,
    0 0 18px rgba(205, 214, 224, 0.28) !important;
}

body.light-theme .user-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(246,249,253,0.995) 38%, rgba(230,236,244,0.995) 100%) !important;
  border: 1px solid rgba(122, 137, 158, 0.42) !important;
  box-shadow:
    0 12px 24px rgba(15, 23, 34, 0.09),
    0 2px 0 rgba(255,255,255,0.99) inset,
    0 -8px 14px rgba(129, 142, 160, 0.08) inset,
    0 0 12px rgba(215, 223, 232, 0.24) !important;
}

body.light-theme .info-grid {
  gap: 14px !important;
}

body.light-theme .info-tile {
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(245,248,252,0.995) 46%, rgba(230,236,243,0.995) 100%) !important;
  color: #112031 !important;
  border: 1px solid rgba(120, 136, 157, 0.52) !important;
  border-radius: 18px !important;
  box-shadow:
    0 10px 20px rgba(15, 23, 34, 0.08),
    0 1px 0 rgba(255,255,255,0.99) inset,
    0 -3px 8px rgba(123, 136, 154, 0.08) inset,
    0 0 10px rgba(214, 221, 229, 0.22) !important;
}

body.light-theme .info-tile strong,
body.light-theme .info-tile span,
body.light-theme .info-tile {
  color: #1a2b3f !important;
}

body.light-theme .fixed-zones,
body.light-theme .zones {
  gap: 14px !important;
}

body.light-theme .fixed-zones .zone-tile,
body.light-theme .zone-tile {
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,248,252,0.995) 50%, rgba(228,234,242,0.995) 100%) !important;
  color: #132232 !important;
  border: 1px solid rgba(120, 136, 157, 0.48) !important;
  border-radius: 20px !important;
  box-shadow:
    0 12px 24px rgba(15, 23, 34, 0.08),
    0 2px 0 rgba(255,255,255,0.99) inset,
    0 -5px 10px rgba(126, 139, 157, 0.08) inset,
    0 0 10px rgba(214, 221, 229, 0.20) !important;
  transform: none !important;
}

body.light-theme .fixed-zones .zone-tile:hover,
body.light-theme .zone-tile:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 16px 28px rgba(15, 23, 34, 0.10),
    0 2px 0 rgba(255,255,255,1) inset,
    0 -5px 10px rgba(126, 139, 157, 0.10) inset,
    0 0 14px rgba(214, 221, 229, 0.24) !important;
}

body.light-theme .app-card,
body.light-theme .support-block,
body.light-theme .ticker-bar,
body.light-theme .news-ticker {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(241,246,251,0.99) 100%) !important;
  border: 1px solid rgba(125, 140, 161, 0.40) !important;
  box-shadow:
    0 10px 18px rgba(15, 23, 34, 0.06),
    0 1px 0 rgba(255,255,255,0.98) inset,
    0 -4px 8px rgba(130, 143, 160, 0.05) inset !important;
}

body.light-theme .logout-panel {
  gap: 12px !important;
  border-top: 1px dashed rgba(122, 137, 158, 0.30) !important;
}

body.light-theme .logout-btn-full,
body.light-theme .logout-btn-soft {
  width: min(100%, 340px) !important;
}

@media (max-width: 600px) {
  body.light-theme .info-grid,
  body.light-theme .fixed-zones,
  body.light-theme .zones {
    gap: 10px !important;
  }

  body.light-theme .info-tile {
    border-radius: 16px !important;
    min-height: 90px !important;
  }

  body.light-theme .fixed-zones .zone-tile,
  body.light-theme .zone-tile {
    border-radius: 16px !important;
  }
}

@media (max-width: 420px) {
  body.light-theme .info-tile {
    min-height: 86px !important;
  }
}
/* ========================= */
/* NOON DARK STATUS PREMIUM ISOLATION REFINEMENT */
/* ========================= */

/* Keep the dark card identical to the original master surface */
body.dark-theme .card,
body.dark-theme .card.dashboard {
  background: rgba(15, 15, 25, 0.95) !important;
  background-image: none !important;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.1),
    0 0 12px #000 !important;
  border: none !important;
  backdrop-filter: blur(10px) !important;
}

/* Keep the status inner card premium, but without repainting the main card */
body.dark-theme .user-card {
  background: rgba(18, 24, 44, 0.92) !important;
  background-image: none !important;
  color: #f4e6b0 !important;
  border: 1px solid rgba(212, 175, 55, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 196, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 12px rgba(212, 175, 55, 0.08) !important;
}

/* Restore dark tiles as structured surfaces instead of painted gradients */
body.dark-theme .info-tile,
body.dark-theme .zone-tile,
body.dark-theme .app-card {
  background: rgba(20, 28, 50, 0.90) !important;
  background-image: none !important;
  color: #f1e3af !important;
  border: 1px solid rgba(212, 175, 55, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 196, 0.05),
    0 6px 16px rgba(0, 0, 0, 0.34),
    0 0 10px rgba(212, 175, 55, 0.05) !important;
}

body.dark-theme .info-tile strong,
body.dark-theme .zone-tile strong,
body.dark-theme .app-card strong,
body.dark-theme .info-tile span,
body.dark-theme .zone-tile span,
body.dark-theme .app-card span {
  color: inherit !important;
}

/* Premium interactive feel on dark status tiles without changing the base card */
body.dark-theme .zone-tile:hover,
body.dark-theme .info-tile:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 196, 0.07),
    0 10px 20px rgba(0, 0, 0, 0.40),
    0 0 12px rgba(212, 175, 55, 0.08) !important;
}

/* ========================= */
/* NOON DARK BUTTONS — FINAL MATERIAL (TESLA GRADE) */
/* ========================= */

body.dark-theme button,
body.dark-theme .logout-btn-full,
body.dark-theme .logout-btn-soft,
body.dark-theme .extras-panel button,
body.dark-theme .support-call {

  background:
    linear-gradient(180deg,
      #1a2f4a 0%,
      #11243a 55%,
      #0a1828 100%) !important;

  border: 1px solid rgba(212,175,55,0.42) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,240,200,0.18),
    inset 0 -4px 8px rgba(0,0,0,0.65),
    0 10px 22px rgba(0,0,0,0.45),
    0 0 14px rgba(212,175,55,0.22) !important;

  color: #f5e6a3 !important;

  transition: all 0.18s ease;
}

body.dark-theme button:hover,
body.dark-theme .logout-btn-full:hover,
body.dark-theme .logout-btn-soft:hover,
body.dark-theme .extras-panel button:hover,
body.dark-theme .support-call:hover {

  transform: translateY(-2px);

  box-shadow:
    inset 0 1px 0 rgba(255,248,214,0.25),
    inset 0 -4px 8px rgba(0,0,0,0.7),
    0 14px 28px rgba(0,0,0,0.5),
    0 0 18px rgba(212,175,55,0.32) !important;
}

body.dark-theme button:active {
  transform: scale(0.965);

  box-shadow:
    inset 0 4px 10px rgba(0,0,0,0.75),
    0 4px 10px rgba(0,0,0,0.4) !important;
}

body.dark-theme button,
body.dark-theme .logout-btn-full,
body.dark-theme .logout-btn-soft,
body.dark-theme .extras-panel button,
body.dark-theme .support-call {
  background: linear-gradient(
    135deg,
    #143255 0%,
    #0f2743 42%,
    #17385c 72%,
    #d4af37 125%
  ) !important;
  color: #f6e7a3 !important;
  border: 1px solid rgba(212, 175, 55, 0.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 200, 0.16),
    inset 0 -2px 6px rgba(0, 0, 0, 0.24),
    0 6px 14px rgba(0, 0, 0, 0.24),
    0 0 8px rgba(212, 175, 55, 0.12) !important;
}

body.dark-theme button:hover,
body.dark-theme .logout-btn-full:hover,
body.dark-theme .logout-btn-soft:hover,
body.dark-theme .extras-panel button:hover,
body.dark-theme .support-call:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 214, 0.22),
    inset 0 -2px 6px rgba(0, 0, 0, 0.26),
    0 10px 18px rgba(0, 0, 0, 0.28),
    0 0 12px rgba(212, 175, 55, 0.20) !important;
}

/* Dark inputs should match the login-page family without brightening the card */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme input[name="username"] {
  background: linear-gradient(180deg, #13253a 0%, #0c1828 100%) !important;
  color: #f2e6b4 !important;
  border: 1px solid rgba(212, 175, 55, 0.28) !important;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.30),
    0 1px 0 rgba(255, 235, 170, 0.06) !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: rgba(231, 218, 163, 0.72) !important;
}

/* Keep dark text premium but not overpowering */
body.dark-theme .section-title,
body.dark-theme .poster-label,
body.dark-theme label,
body.dark-theme .noon-footer,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4 {
  color: #e7d591 !important;
}

body.dark-theme .noon-footer {
  text-shadow:
    0 0 6px rgba(212, 175, 55, 0.16),
    0 1px 0 rgba(255, 243, 196, 0.10) !important;
}


/* ========================= */
/* NOON FINAL LOGIN LIGHT + STATUS SCROLL STABILIZER */
/* ========================= */

/* Give login light card the same visible body and edge separation as status,
   while leaving the status dashboard-specific card overrides untouched. */
body.light-theme .card:not(.dashboard) {
  background:
    linear-gradient(180deg,
      rgba(255,255,255,0.995) 0%,
      rgba(244,248,252,0.99) 44%,
      rgba(229,235,243,0.995) 100%) !important;
  border: 1px solid rgba(126, 141, 161, 0.56) !important;
  box-shadow:
    0 24px 44px rgba(15,23,34,0.15),
    0 3px 0 rgba(255,255,255,1) inset,
    0 -14px 24px rgba(131,145,165,0.12) inset,
    0 0 18px rgba(205,214,224,0.28) !important;
}

body.light-theme .card:not(.dashboard)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.94),
    inset 0 -1px 0 rgba(128,142,161,0.14);
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background:
    linear-gradient(180deg, #ffffff 0%, #eef3f8 100%) !important;
  border: 1px solid rgba(120,135,155,0.35) !important;
  box-shadow:
    inset 0 2px 6px rgba(30,40,55,0.08),
    0 1px 0 rgba(255,255,255,0.95) !important;
}

body.light-theme .speed-options button {
  background:
    linear-gradient(180deg, #ffffff 0%, #e7edf4 60%, #cfd7e0 100%) !important;
  border: 1px solid rgba(120,135,155,0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 6px 14px rgba(15,23,34,0.10) !important;
}

/* Keep fixed toggles above everything, but move the status card down enough
   so the connection indicator never sits underneath them while scrolling. */
.theme-toggle,
.lang-toggle {
  z-index: 9999 !important;
}

.card.dashboard {
  margin-top: clamp(84px, 10vh, 108px) !important;
}

@media (max-width: 600px) {
  .card.dashboard {
    margin-top: 74px !important;
  }
}

@media (max-width: 420px) {
  .card.dashboard {
    margin-top: 70px !important;
  }
}


/* ========================= */
/* NOON DARK MATERIAL DEPTH FINAL PASS */
/* ========================= */

/* Keep the original dark card color identity while adding subtle material depth only */
body.dark-theme .card,
body.dark-theme .card.dashboard {
  background: rgba(15, 15, 25, 0.95) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -10px 20px rgba(0,0,0,0.36),
    0 0 30px rgba(255, 215, 0, 0.10),
    0 0 12px #000 !important;
}

/* Dark buttons should feel like real controls, not painted gradients */
body.dark-theme button,
body.dark-theme .logout-btn-full,
body.dark-theme .logout-btn-soft,
body.dark-theme .extras-panel button,
body.dark-theme .support-call {
  background:
    linear-gradient(180deg,
      #17385c 0%,
      #12304f 12%,
      #0f2743 56%,
      #0a1c31 100%) !important;
  color: #f5e6a3 !important;
  border: 1px solid rgba(212, 175, 55, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,200,0.22),
    inset 0 -4px 9px rgba(0,0,0,0.52),
    0 8px 18px rgba(0,0,0,0.34),
    0 0 10px rgba(212,175,55,0.12) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease !important;
}

body.dark-theme button:hover,
body.dark-theme .logout-btn-full:hover,
body.dark-theme .logout-btn-soft:hover,
body.dark-theme .extras-panel button:hover,
body.dark-theme .support-call:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212, 175, 55, 0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,248,214,0.28),
    inset 0 -5px 10px rgba(0,0,0,0.58),
    0 12px 24px rgba(0,0,0,0.40),
    0 0 14px rgba(212,175,55,0.22) !important;
}

body.dark-theme button:active,
body.dark-theme .logout-btn-full:active,
body.dark-theme .logout-btn-soft:active,
body.dark-theme .extras-panel button:active,
body.dark-theme .support-call:active {
  transform: translateY(0) scale(0.975) !important;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.62),
    inset 0 1px 0 rgba(255,240,200,0.14),
    0 4px 10px rgba(0,0,0,0.28),
    0 0 8px rgba(212,175,55,0.12) !important;
}

/* Speed buttons keep the same palette but gain real button structure */
body.dark-theme .speed-options button {
  background:
    linear-gradient(180deg,
      #163654 0%,
      #12304c 14%,
      #0e2640 60%,
      #091a2c 100%) !important;
  color: #f5e6a3 !important;
  border: 1px solid rgba(212,175,55,0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,200,0.16),
    inset 0 -4px 8px rgba(0,0,0,0.54),
    0 7px 16px rgba(0,0,0,0.34) !important;
}

body.dark-theme .speed-options button.selected {
  background: linear-gradient(180deg, #f0df96 0%, #d4af37 54%, #8a6910 100%) !important;
  color: #091321 !important;
  border: 1px solid rgba(255,225,135,0.64) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,247,205,0.76),
    inset 0 -3px 6px rgba(120,87,5,0.22),
    0 0 16px rgba(212,175,55,0.34),
    0 10px 20px rgba(0,0,0,0.34) !important;
}

/* Tiles should keep the same dark-blue family but read as shaped boxes */
body.dark-theme .info-tile,
body.dark-theme .zone-tile,
body.dark-theme .app-card {
  background:
    linear-gradient(180deg,
      rgba(21,32,56,0.96) 0%,
      rgba(16,28,49,0.96) 18%,
      rgba(13,23,40,0.98) 100%) !important;
  color: #f1e3af !important;
  border: 1px solid rgba(212,175,55,0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.08),
    inset 0 -6px 12px rgba(0,0,0,0.38),
    0 8px 18px rgba(0,0,0,0.34),
    0 0 10px rgba(212,175,55,0.06) !important;
}

body.dark-theme .info-tile:hover,
body.dark-theme .zone-tile:hover,
body.dark-theme .app-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212,175,55,0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.10),
    inset 0 -7px 14px rgba(0,0,0,0.42),
    0 12px 24px rgba(0,0,0,0.40),
    0 0 12px rgba(212,175,55,0.10) !important;
}

/* Inner status card gets depth, not recolor */
body.dark-theme .user-card {
  background: rgba(18, 24, 44, 0.92) !important;
  background-image: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.08),
    inset 0 -8px 16px rgba(0,0,0,0.34),
    0 12px 24px rgba(0,0,0,0.26),
    0 0 12px rgba(212,175,55,0.08) !important;
}

/* Inputs stay in-family but gain clearer physical inset */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme input[name="username"] {
  background: linear-gradient(180deg, #13253a 0%, #0c1828 100%) !important;
  color: #f2e6b4 !important;
  border: 1px solid rgba(212,175,55,0.26) !important;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,235,170,0.06),
    0 1px 0 rgba(255,235,170,0.03) !important;
}
/* =========================================================
   NOON ULTRA FINISH — TESLA / APPLE GRADE MASTER OVERRIDE
   Paste at the END of noon.css
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --noon-radius-card: 30px;
  --noon-radius-panel: 22px;
  --noon-radius-tile: 18px;
  --noon-radius-btn: 16px;
  --noon-radius-input: 16px;

  --noon-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --noon-fast: 0.18s;
  --noon-mid: 0.28s;
  --noon-slow: 0.42s;

  --noon-dark-bg-1: #0b1020;
  --noon-dark-bg-2: #101a2b;
  --noon-dark-surface: rgba(15, 15, 25, 0.95);
  --noon-dark-panel: rgba(18, 24, 44, 0.92);
  --noon-dark-tile-top: rgba(23, 35, 60, 0.96);
  --noon-dark-tile-bottom: rgba(12, 21, 37, 0.98);
  --noon-gold: #d4af37;
  --noon-gold-soft: #f2df97;
  --noon-gold-line: rgba(212, 175, 55, 0.30);

  --noon-light-bg-1: #ffffff;
  --noon-light-bg-2: #f3f7fb;
  --noon-light-bg-3: #dbe3ec;
  --noon-light-card-top: rgba(255, 255, 255, 0.995);
  --noon-light-card-mid: rgba(244, 248, 252, 0.99);
  --noon-light-card-bottom: rgba(229, 235, 243, 0.995);
  --noon-light-border: rgba(123, 138, 158, 0.46);
  --noon-light-border-strong: rgba(118, 134, 155, 0.58);
  --noon-light-text: #132132;
  --noon-light-text-soft: #5a6877;
}

/* ---------- GLOBAL PREMIUM MOTION ---------- */
html {
  scroll-behavior: smooth;
}

body,
.card,
button,
input,
select,
textarea,
.app-card,
.info-tile,
.zone-tile,
.support-block,
.support-call,
.theme-toggle,
.lang-toggle,
.smart-tip,
.user-card {
  transition:
    background var(--noon-mid) var(--noon-ease),
    color var(--noon-mid) var(--noon-ease),
    border-color var(--noon-mid) var(--noon-ease),
    box-shadow var(--noon-mid) var(--noon-ease),
    transform var(--noon-fast) var(--noon-ease),
    opacity var(--noon-mid) var(--noon-ease);
}

button,
a,
.theme-toggle,
.lang-toggle,
.zone-tile,
.support-call {
  -webkit-tap-highlight-color: transparent;
}

/* ---------- BODY SYSTEM ---------- */
body.dark-theme {
  background:
    radial-gradient(circle at 50% 0%, #16233b 0%, #0d1422 42%, #090e18 100%) !important;
  color: #ffffff !important;
}

body.light-theme {
  background:
    radial-gradient(circle at 50% 0%, var(--noon-light-bg-1) 0%, var(--noon-light-bg-2) 38%, var(--noon-light-bg-3) 100%) !important;
  color: var(--noon-light-text) !important;
}

/* ---------- MAIN CARD ---------- */
.card,
.card.dashboard {
  border-radius: var(--noon-radius-card) !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate;
}

body.dark-theme .card,
body.dark-theme .card.dashboard {
  background: var(--noon-dark-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 -14px 26px rgba(0,0,0,0.36),
    0 18px 34px rgba(0,0,0,0.32),
    0 0 26px rgba(212,175,55,0.08),
    0 0 8px rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(14px) !important;
}

body.light-theme .card,
body.light-theme .card.dashboard {
  background:
    linear-gradient(
      180deg,
      var(--noon-light-card-top) 0%,
      var(--noon-light-card-mid) 46%,
      var(--noon-light-card-bottom) 100%
    ) !important;
  border: 1px solid var(--noon-light-border) !important;
  box-shadow:
    0 24px 48px rgba(15,23,34,0.14),
    0 3px 0 rgba(255,255,255,1) inset,
    0 -16px 26px rgba(132,146,166,0.10) inset,
    0 0 18px rgba(209,218,228,0.26) !important;
}

body.light-theme .card::before,
body.light-theme .card.dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(126,141,160,0.10);
}

/* ---------- LOGO ---------- */
body.light-theme .logo,
body.light-theme .logo span {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 7%,
    #eef3f7 16%,
    #c9d2dc 28%,
    #ffffff 40%,
    #9ba8b8 56%,
    #f6f9fc 68%,
    #758395 82%,
    #d9e1e9 92%,
    #5b6777 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow:
    0 1px 0 rgba(255,255,255,1),
    0 2px 0 rgba(255,255,255,0.86),
    0 5px 10px rgba(73,84,101,0.22),
    0 12px 24px rgba(29,39,52,0.18),
    0 0 10px rgba(255,255,255,0.88),
    0 0 22px rgba(214,222,231,0.62),
    0 0 36px rgba(180,192,206,0.36) !important;
}

/* ---------- INPUTS ---------- */
input,
select,
textarea {
  border-radius: var(--noon-radius-input) !important;
  font-weight: 600;
}

body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea,
body.dark-theme input[name="username"] {
  background: linear-gradient(180deg, #14263c 0%, #0b1828 100%) !important;
  color: #f3e9bc !important;
  border: 1px solid rgba(212,175,55,0.24) !important;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.44),
    inset 0 1px 0 rgba(255,240,190,0.06),
    0 1px 0 rgba(255,240,190,0.03) !important;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
  color: rgba(231,218,163,0.68) !important;
}

body.light-theme input,
body.light-theme select,
body.light-theme textarea,
body.light-theme input[name="username"] {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%) !important;
  color: #111827 !important;
  border: 1px solid rgba(120,135,155,0.34) !important;
  box-shadow:
    inset 0 2px 6px rgba(30,40,55,0.08),
    0 1px 0 rgba(255,255,255,0.96) !important;
}

input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  border-color: rgba(212,175,55,0.46) !important;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.46),
    0 0 0 3px rgba(212,175,55,0.10),
    0 0 16px rgba(212,175,55,0.12) !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
  border-color: rgba(116,132,153,0.58) !important;
  box-shadow:
    inset 0 2px 6px rgba(30,40,55,0.08),
    0 0 0 3px rgba(179,192,207,0.22),
    0 8px 14px rgba(15,23,34,0.08) !important;
}

/* ---------- BUTTONS ---------- */
button,
.logout-btn-full,
.logout-btn-soft,
.extras-panel button,
.support-call,
.support-btn,
.theme-toggle,
.lang-toggle {
  border-radius: var(--noon-radius-btn) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
}

body.dark-theme button,
body.dark-theme .logout-btn-full,
body.dark-theme .logout-btn-soft,
body.dark-theme .extras-panel button,
body.dark-theme .support-call,
body.dark-theme .theme-toggle,
body.dark-theme .lang-toggle {
  background:
    linear-gradient(
      180deg,
      #18395c 0%,
      #12304f 14%,
      #0f2743 58%,
      #091a2c 100%
    ) !important;
  color: #f6e7a3 !important;
  border: 1px solid rgba(212,175,55,0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,200,0.22),
    inset 0 -4px 9px rgba(0,0,0,0.52),
    0 10px 20px rgba(0,0,0,0.34),
    0 0 10px rgba(212,175,55,0.12) !important;
}

body.dark-theme button:hover,
body.dark-theme .logout-btn-full:hover,
body.dark-theme .logout-btn-soft:hover,
body.dark-theme .extras-panel button:hover,
body.dark-theme .support-call:hover,
body.dark-theme .theme-toggle:hover,
body.dark-theme .lang-toggle:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212,175,55,0.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,248,214,0.28),
    inset 0 -5px 10px rgba(0,0,0,0.58),
    0 14px 26px rgba(0,0,0,0.42),
    0 0 16px rgba(212,175,55,0.18) !important;
}

body.dark-theme button:active,
body.dark-theme .logout-btn-full:active,
body.dark-theme .logout-btn-soft:active,
body.dark-theme .extras-panel button:active,
body.dark-theme .support-call:active,
body.dark-theme .theme-toggle:active,
body.dark-theme .lang-toggle:active {
  transform: translateY(0) scale(0.975) !important;
  box-shadow:
    inset 0 4px 10px rgba(0,0,0,0.66),
    inset 0 1px 0 rgba(255,240,200,0.10),
    0 5px 10px rgba(0,0,0,0.28) !important;
}

body.light-theme button,
body.light-theme .logout-btn-full,
body.light-theme .logout-btn-soft,
body.light-theme .extras-panel button,
body.light-theme .support-call,
body.light-theme .theme-toggle,
body.light-theme .lang-toggle {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f0f4f9 28%,
      #dce4ec 64%,
      #b8c3d0 100%
    ) !important;
  color: #132132 !important;
  border: 1px solid var(--noon-light-border-strong) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.98),
    inset 0 -2px 4px rgba(73,84,101,0.18),
    0 8px 18px rgba(16,24,38,0.10),
    0 0 10px rgba(210,218,227,0.38) !important;
}

body.light-theme button:hover,
body.light-theme .logout-btn-full:hover,
body.light-theme .logout-btn-soft:hover,
body.light-theme .extras-panel button:hover,
body.light-theme .support-call:hover,
body.light-theme .theme-toggle:hover,
body.light-theme .lang-toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -2px 4px rgba(73,84,101,0.22),
    0 12px 22px rgba(16,24,38,0.12),
    0 0 14px rgba(212,220,229,0.52) !important;
}

body.light-theme button:active,
body.light-theme .logout-btn-full:active,
body.light-theme .logout-btn-soft:active,
body.light-theme .extras-panel button:active,
body.light-theme .support-call:active,
body.light-theme .theme-toggle:active,
body.light-theme .lang-toggle:active {
  transform: translateY(0) scale(0.978) !important;
  box-shadow:
    inset 0 3px 6px rgba(73,84,101,0.18),
    0 4px 10px rgba(16,24,38,0.08) !important;
}

/* ---------- TOGGLES ---------- */
.theme-toggle,
.lang-toggle {
  backdrop-filter: blur(10px);
}

body.dark-theme #lang-toggle,
body.dark-theme #theme-icon {
  color: #f3dd8d !important;
}

body.light-theme #lang-toggle,
body.light-theme #theme-icon {
  color: #1b2a3b !important;
}

/* ---------- SPEED BUTTONS ---------- */
.speed-options {
  gap: 0.65rem !important;
}

.speed-options button {
  min-height: 48px !important;
}

body.dark-theme .speed-options button {
  background:
    linear-gradient(
      180deg,
      #163654 0%,
      #12304c 16%,
      #0d2640 60%,
      #09192a 100%
    ) !important;
  border: 1px solid rgba(212,175,55,0.26) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,245,200,0.15),
    inset 0 -4px 8px rgba(0,0,0,0.54),
    0 8px 16px rgba(0,0,0,0.30) !important;
}

body.dark-theme .speed-options button.selected {
  background: linear-gradient(180deg, #f3e29e 0%, #d4af37 54%, #8a6910 100%) !important;
  color: #091321 !important;
  border: 1px solid rgba(255,225,135,0.66) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,247,205,0.76),
    inset 0 -3px 6px rgba(120,87,5,0.22),
    0 0 18px rgba(212,175,55,0.34),
    0 10px 20px rgba(0,0,0,0.32) !important;
}

body.light-theme .speed-options button {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #eef3f8 36%,
      #d9e1ea 72%,
      #bec9d5 100%
    ) !important;
  color: #162435 !important;
  border: 1px solid rgba(118,134,155,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 8px 16px rgba(15,23,34,0.08) !important;
}

body.light-theme .speed-options button.selected {
  background: linear-gradient(180deg, #ffffff 0%, #e3ebf2 48%, #aeb9c6 100%) !important;
  color: #0f1722 !important;
  border: 1px solid rgba(108,123,142,0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 16px rgba(205,214,224,0.54),
    0 10px 18px rgba(15,23,34,0.08) !important;
}

/* ---------- PANELS / TILES ---------- */
.user-card,
.info-tile,
.zone-tile,
.app-card,
.support-block,
.news-ticker,
.ticker-bar {
  overflow: hidden;
}

body.dark-theme .user-card {
  background: var(--noon-dark-panel) !important;
  color: #f3e6b1 !important;
  border: 1px solid rgba(212,175,55,0.20) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.08),
    inset 0 -8px 16px rgba(0,0,0,0.34),
    0 12px 24px rgba(0,0,0,0.26),
    0 0 12px rgba(212,175,55,0.08) !important;
}

body.dark-theme .info-tile,
body.dark-theme .zone-tile,
body.dark-theme .app-card,
body.dark-theme .support-block,
body.dark-theme .news-ticker,
body.dark-theme .ticker-bar {
  background:
    linear-gradient(
      180deg,
      var(--noon-dark-tile-top) 0%,
      rgba(16,28,49,0.96) 20%,
      var(--noon-dark-tile-bottom) 100%
    ) !important;
  color: #f1e3af !important;
  border: 1px solid rgba(212,175,55,0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.08),
    inset 0 -6px 12px rgba(0,0,0,0.38),
    0 8px 18px rgba(0,0,0,0.34),
    0 0 10px rgba(212,175,55,0.06) !important;
}

body.dark-theme .info-tile:hover,
body.dark-theme .zone-tile:hover,
body.dark-theme .app-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(212,175,55,0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,243,196,0.10),
    inset 0 -7px 14px rgba(0,0,0,0.42),
    0 12px 24px rgba(0,0,0,0.40),
    0 0 12px rgba(212,175,55,0.10) !important;
}

body.light-theme .user-card,
body.light-theme .info-tile,
body.light-theme .zone-tile,
body.light-theme .app-card,
body.light-theme .support-block,
body.light-theme .news-ticker,
body.light-theme .ticker-bar {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.995) 0%,
      rgba(243,247,251,0.99) 48%,
      rgba(229,235,243,0.995) 100%
    ) !important;
  color: var(--noon-light-text) !important;
  border: 1px solid rgba(122,137,158,0.40) !important;
  box-shadow:
    0 10px 20px rgba(15,23,34,0.07),
    0 1px 0 rgba(255,255,255,0.98) inset,
    0 -4px 8px rgba(130,143,160,0.06) inset !important;
}

body.light-theme .info-tile:hover,
body.light-theme .zone-tile:hover,
body.light-theme .app-card:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 14px 24px rgba(15,23,34,0.10),
    0 1px 0 rgba(255,255,255,1) inset,
    0 -4px 8px rgba(130,143,160,0.08) inset,
    0 0 12px rgba(212,220,229,0.22) !important;
}

.user-card,
.support-block {
  border-radius: var(--noon-radius-panel) !important;
}

.info-tile,
.zone-tile,
.app-card {
  border-radius: var(--noon-radius-tile) !important;
}

/* ---------- STATUS PAGE GRID FINISH ---------- */
.info-grid {
  gap: 12px !important;
}

.fixed-zones,
.zones {
  gap: 12px !important;
}

.info-tile {
  min-height: 96px !important;
}

.logout-panel {
  gap: 12px !important;
}

/* ---------- TEXT POLISH ---------- */
body.dark-theme .section-title,
body.dark-theme .poster-label,
body.dark-theme label,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme strong,
body.dark-theme .noon-footer {
  color: #e7d591 !important;
}

body.light-theme .app-sub,
body.light-theme .whatsapp-note,
body.light-theme .noon-footer,
body.light-theme .poster-label {
  color: var(--noon-light-text-soft) !important;
}

body.dark-theme .noon-footer {
  text-shadow:
    0 0 6px rgba(212,175,55,0.15),
    0 1px 0 rgba(255,243,196,0.08) !important;
}

body.light-theme .noon-footer {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.82),
    0 0 8px rgba(222,230,238,0.42) !important;
}

/* ---------- SMART TIPS / ERRORS ---------- */
.smart-tip {
  border-radius: 14px !important;
}

body.dark-theme .smart-tip {
  background: rgba(10, 14, 24, 0.92) !important;
  border: 1px solid rgba(212,175,55,0.12) !important;
}

body.light-theme .smart-tip {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(238,243,248,0.97) 100%) !important;
  border: 1px solid rgba(133,147,167,0.30) !important;
}

body.dark-theme .smart-tip.error-alert {
  background: linear-gradient(180deg, rgba(120, 8, 18, 0.95) 0%, rgba(74, 0, 8, 0.95) 100%) !important;
  border: 1px solid rgba(255, 115, 115, 0.20) !important;
}

body.light-theme .smart-tip.error-alert {
  background: linear-gradient(180deg, #fff7f8 0%, #ecdfe4 100%) !important;
  color: #8a273a !important;
  border: 1px solid rgba(168, 126, 136, 0.34) !important;
}

/* ---------- DATETIME ---------- */
.datetime-bar,
body.dark-theme .datetime-bar,
body.light-theme .datetime-bar {
  color: #d4af37 !important;
  text-shadow:
    0 0 8px rgba(212,175,55,0.18),
    0 1px 0 rgba(255,243,196,0.08) !important;
}

/* ---------- PROMO ---------- */
.promo-slider {
  border-radius: 18px;
  overflow: hidden;
}

.promo-img {
  border-radius: 18px !important;
}

body.dark-theme .promo-img:not(.hidden) {
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

body.light-theme .promo-img:not(.hidden) {
  box-shadow: 0 14px 24px rgba(15,23,34,0.10);
}

/* ---------- ACCESSIBILITY / PREMIUM FOCUS ---------- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.theme-toggle:focus-visible,
.lang-toggle:focus-visible {
  outline: none !important;
}

body.dark-theme button:focus-visible,
body.dark-theme a:focus-visible,
body.dark-theme .theme-toggle:focus-visible,
body.dark-theme .lang-toggle:focus-visible {
  box-shadow:
    0 0 0 3px rgba(212,175,55,0.18),
    0 0 18px rgba(212,175,55,0.18) !important;
}

body.light-theme button:focus-visible,
body.light-theme a:focus-visible,
body.light-theme .theme-toggle:focus-visible,
body.light-theme .lang-toggle:focus-visible {
  box-shadow:
    0 0 0 3px rgba(186,198,212,0.30),
    0 10px 20px rgba(15,23,34,0.10) !important;
}

/* ---------- MOBILE REFINEMENT ---------- */
@media (max-width: 600px) {
  .card,
  .card.dashboard {
    border-radius: 24px !important;
  }

  .user-card,
  .support-block {
    border-radius: 18px !important;
  }

  .info-tile,
  .zone-tile,
  .app-card,
  .promo-img {
    border-radius: 16px !important;
  }

  .info-grid,
  .fixed-zones,
  .zones,
  .button-row {
    gap: 10px !important;
  }

  .info-tile {
    min-height: 88px !important;
  }

  button,
  .logout-btn-full,
  .logout-btn-soft {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .card,
  .card.dashboard {
    border-radius: 20px !important;
  }

  .info-grid,
  .fixed-zones,
  .zones {
    gap: 9px !important;
  }

  .info-tile {
    min-height: 84px !important;
    padding: 12px 10px !important;
  }

  .theme-toggle,
  .lang-toggle {
    backdrop-filter: blur(8px);
  }
}
