/**
 * Neon Teal theme — #00E6FF site-wide
 * Loaded LAST. Dark ink on light surfaces for clear text.
 */
:root {
  --nt: #00E6FF;
  --nt-deep: #00b8d4;
  --nt-dark: #0090a8;
  --nt-soft: #b8f9ff;
  --nt-mist: #e6fcff;
  --nt-glow: rgba(0, 230, 255, 0.45);
  --nt-ink: #021820;
  --nt-ink2: #042a33;
  --nt-mute: #0d4a55;
  --nt-line: #7aeffa;
  --nt-chip: #e6fcff;
  --nt-white: #ffffff;

  /* Zarmaya / clear aliases */
  --bg: #b8f9ff;
  --bg2: #e6fcff;
  --surface: #ffffff;
  --ink: #021820;
  --ink2: #042a33;
  --mute: #0d4a55;
  --line: #7aeffa;
  --teal: #0090a8;
  --sun: #00E6FF;
  --sunink: #021820;
  --chip: #e6fcff;
  --gold: #021820;
  --glass: linear-gradient(145deg, #ffffff 0%, #e6fcff 100%);
  --rim: linear-gradient(135deg, #00E6FF, #7aeffa 50%, #00b8d4);
  --shadow: 0 14px 36px rgba(0, 144, 168, 0.14);

  /* RX / OT aliases */
  --ot-white: #ffffff;
  --ot-page: #e6fcff;
  --ot-soft: #b8f9ff;
  --ot-ink: #021820;
  --ot-muted: #0d4a55;
  --ot-blue: #0090a8;
  --ot-blue2: #00E6FF;
  --ot-green: #00E6FF;
  --ot-green2: #b8f9ff;
  --rx-primary: #00E6FF;
  --rx-primary-dark: #0090a8;
  --rx-secondary: #00b8d4;
  --rx-accent: #00E6FF;
  --rx-accent-2: #7aeffa;
  --rx-bg: #e6fcff;
  --rx-bg-soft: #b8f9ff;
  --rx-surface: #ffffff;
  --rx-border: rgba(0, 230, 255, 0.35);
  --rx-border-strong: rgba(0, 144, 168, 0.4);
  --rx-text: #021820;
  --rx-text-muted: #0d4a55;
  --rx-text-light: #0d4a55;
  --rx-success: #00b8d4;
  --rx-gradient-brand: linear-gradient(180deg, #00E6FF, #00b8d4);
  --rx-gradient-card: linear-gradient(180deg, #00b8d4, #0090a8);
  --rx-gradient-soft: linear-gradient(180deg, #ffffff 0%, #e6fcff 100%);

  /* Admin */
  --adm-primary: #0090a8;
  --adm-primary-light: #00b8d4;
  --adm-accent: #00E6FF;
  --adm-accent-2: #7aeffa;
  --adm-bg: #e6fcff;
  --adm-surface: #ffffff;
  --adm-border: #7aeffa;
  --adm-text: #021820;
  --adm-muted: #0d4a55;
  --adm-gradient: linear-gradient(135deg, #00E6FF, #00b8d4);
  --adm-shadow: 0 8px 24px rgba(0, 230, 255, 0.18);

  /* Home / gx */
  --gx-ink: #021820;
  --gx-ink-soft: #0d4a55;
  --gx-bg: #e6fcff;
  --gx-bg-soft: #b8f9ff;
  --gx-surface: #ffffff;
  --gx-purple-deep: #0090a8;
  --gx-purple: #00b8d4;
  --gx-purple-mid: #00E6FF;
  --gx-blue: #00E6FF;
  --gx-blue-light: #b8f9ff;

  color-scheme: light;
}

/* ── Page atmosphere ── */
html,
body,
body.zy-landing,
body.zy-auth,
body.zy-app,
body.rx-body,
body.rx-auth-body,
body.rx-landing,
body.gx-app,
body.adm-body,
html:has(body.zy-app),
html:has(body.zy-landing) {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(900px 500px at 110% 20%, rgba(0, 230, 255, 0.35), transparent 50%),
    linear-gradient(165deg, #f0fdff 0%, #b8f9ff 42%, #7aeffa 100%) !important;
  color: var(--nt-ink) !important;
  -webkit-text-fill-color: var(--nt-ink);
}

body.gx-app .gx-shell {
  background: #e6fcff !important;
}

#sky {
  opacity: 0.18 !important;
  mix-blend-mode: soft-light;
}

meta[name="theme-color"] {
  content: #00E6FF;
}

/* ── Global readable text ── */
body,
body.zy-app,
body.zy-landing,
body.zy-auth,
.rx-main-content,
.pagehead,
.card,
.stat,
.sheet,
.wrap,
.login-card,
.zy-auth-card,
.ah-card,
.overview-showcase,
.dx,
.ex-page {
  color: var(--nt-ink) !important;
}

h1, h2, h3, h4, h5, h6,
.pagehead h2,
.pagehead p,
.bal,
.bal-sub,
.sub,
.lead,
.note,
.sec-h h3,
.sec-h span,
.zy-auth-brand,
.zy-auth-card h1,
.rx-header-brand,
.rx-header-title,
.rx-item-text span,
.rx-bnav-item span,
.land h1,
.land .lead,
.app-promo-info p,
.app-promo-info h3,
label,
label.f,
small,
.mute,
.tx-eta,
.wd-pagination-info {
  color: var(--nt-ink) !important;
  -webkit-text-fill-color: var(--nt-ink) !important;
  background: none !important;
  text-shadow: none !important;
}

p, li, td, th, .in, input, select, textarea {
  color: var(--nt-ink2) !important;
  -webkit-text-fill-color: var(--nt-ink2) !important;
}

a.link,
.link,
.rx-user-link {
  color: var(--nt-dark) !important;
  -webkit-text-fill-color: var(--nt-dark) !important;
}

/* Muted but still readable */
.bal-sub,
.sub,
.fine,
.hint,
.rx-text-muted,
.row {
  color: var(--nt-mute) !important;
  -webkit-text-fill-color: var(--nt-mute) !important;
  opacity: 1 !important;
}

/* ── Headers / chrome ── */
body.zy-app .rx-shell-header,
.rx-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(0, 230, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(0, 144, 168, 0.1) !important;
}

.rx-header::after {
  background: linear-gradient(90deg, transparent, #00E6FF, #7aeffa, #00E6FF, transparent) !important;
}

.rx-menu-btn,
.ibtn.prof,
.logo {
  background: linear-gradient(145deg, #00E6FF, #00b8d4) !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
  border-color: rgba(0, 230, 255, 0.5) !important;
  box-shadow: 0 4px 14px rgba(0, 230, 255, 0.4) !important;
}

.rx-header-pill {
  background: var(--nt-chip) !important;
  border: 1px solid var(--nt-line) !important;
  color: var(--nt-ink2) !important;
}

.rx-live-dot {
  background: #00E6FF !important;
  box-shadow: 0 0 8px rgba(0, 230, 255, 0.7) !important;
}

/* ── Sidebar ── */
.rx-sidebar {
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(0, 230, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #e6fcff 0%, #b8f9ff 48%, #7aeffa 100%) !important;
  border-right: 1px solid rgba(0, 144, 168, 0.25) !important;
}

.rx-user-box {
  background: linear-gradient(145deg, #00E6FF 0%, #00b8d4 100%) !important;
  color: #021820 !important;
  border-color: rgba(0, 144, 168, 0.3) !important;
}

.rx-user-name,
.rx-user-badge,
.rx-user-go,
.rx-menu-label,
.rx-item-text span,
.rx-sidebar-logo,
.rx-brand-name {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

.rx-item {
  background: #ffffff !important;
  border-color: rgba(0, 230, 255, 0.35) !important;
}

.rx-item.is-active {
  background: linear-gradient(90deg, rgba(0, 230, 255, 0.45), rgba(184, 249, 255, 0.5)) !important;
  border-color: #00E6FF !important;
}

.rx-item.is-active::before {
  background: linear-gradient(180deg, #00E6FF, #00b8d4) !important;
}

.rx-icon {
  background: linear-gradient(145deg, #00E6FF, #00b8d4) !important;
  color: #021820 !important;
  border-color: rgba(0, 144, 168, 0.25) !important;
}

.rx-item.is-active .rx-item-arrow,
.rx-item:hover .rx-item-arrow,
.rx-bnav-item:hover,
.rx-bnav-item.is-active {
  color: #0090a8 !important;
}

.rx-bnav-item.is-active span {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

.rx-bottom-inner {
  background: #ffffff !important;
  border: 1px solid rgba(0, 230, 255, 0.35) !important;
  box-shadow: 0 10px 28px rgba(0, 144, 168, 0.12) !important;
}

.rx-bnav-item.is-active .rx-bnav-icon {
  box-shadow: 0 0 0 3px rgba(0, 230, 255, 0.45), 0 4px 12px rgba(0, 144, 168, 0.2) !important;
}

/* ── Buttons / CTAs — neon fill + dark text (clear on #00E6FF) ── */
.btn,
.btn.sun,
.btn.glow,
.btn.sm,
.cta .btn,
.ex-collect,
.ex-empty__cta,
.zy-ref-row button,
a.btn,
button.btn,
.zl-bar .btn,
.zl-bar a.btn,
.land .cta a.btn,
.land .cta .btn,
.hero-actions .btn,
.app-promo-cta,
.gx-oil-btn--register,
.gx-cta a.primary,
.fpill.on,
a.btn.glow,
button.btn.glow {
  background: linear-gradient(135deg, #00E6FF, #00b8d4) !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
  border-color: #00E6FF !important;
  box-shadow: 0 8px 22px rgba(0, 230, 255, 0.35) !important;
  text-shadow: none !important;
}

.btn *,
.btn.glow *,
a.btn *,
button.btn * {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

/* Beat zarmaya-clear white-on-btn rules */
body.zy-landing .btn,
body.zy-landing .btn.sm,
body.zy-landing .btn.glow,
body.zy-landing a.btn,
body.zy-landing a.btn.glow,
body.zy-auth .btn,
body.zy-auth .btn.glow,
body.zy-app .btn,
body.zy-app .btn.sun,
body.zy-app .btn.glow {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
  text-shadow: none !important;
}

.btn.ghost,
.gx-oil-btn--login,
.zl-bar a:not(.btn),
.land .cta a.btn.ghost {
  background: #ffffff !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
  border: 1.5px solid #00E6FF !important;
}

.btn.plain,
.fpill,
.chip,
.swap,
.demo-tag {
  background: var(--nt-chip) !important;
  color: var(--nt-ink) !important;
  -webkit-text-fill-color: var(--nt-ink) !important;
  border-color: var(--nt-line) !important;
}

/* ── Cards / surfaces ── */
.card,
.stat,
.sheet,
.login-card,
.zy-auth-card,
.hero-card-3d,
.app-promo-card,
.ah-card,
.tx-card,
.plan-card,
.face.fr {
  background: #ffffff !important;
  border-color: #7aeffa !important;
  color: #021820 !important;
  box-shadow: 0 10px 28px rgba(0, 144, 168, 0.12) !important;
}

.face.fr {
  background: linear-gradient(135deg, #00E6FF, #00b8d4 55%, #0090a8) !important;
  color: #021820 !important;
}

.face.fr .cn,
.face.fr .ctop,
.face.fr * {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

.face.bk {
  background: linear-gradient(135deg, #003844, #001a22) !important;
  border-color: #00E6FF !important;
  color: #e6fcff !important;
}

.face.bk p,
.face.bk * {
  color: #e6fcff !important;
  -webkit-text-fill-color: #e6fcff !important;
}

.chip-ic {
  background: linear-gradient(135deg, #e6fcff, #00E6FF) !important;
  border-color: rgba(0, 144, 168, 0.45) !important;
}

.coin {
  background: radial-gradient(circle at 30% 30%, #ffffff, #00E6FF 55%, #0090a8) !important;
  color: #021820 !important;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 230, 255, 0.45) !important;
}

/* Inputs */
.in,
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
  background: #f5feff !important;
  border-color: #7aeffa !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

.in:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: #00E6FF !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 255, 0.28) !important;
}

/* Spark / charts */
.spark path.line { stroke: #00E6FF !important; }
.ah-bar i,
.overview-showcase .ah-bar i {
  background: linear-gradient(90deg, #00b8d4, #00E6FF) !important;
}

.overview-showcase .ah-card {
  background: #fff !important;
  border: 1.5px solid #7aeffa !important;
}
.overview-showcase .ah-card small,
.overview-showcase .ah-card b,
.overview-showcase .ah-tag {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}
.overview-showcase .ah-tag,
.ah-tag.ok {
  background: rgba(0, 230, 255, 0.18) !important;
  border: 1px solid #7aeffa !important;
  color: #007a8f !important;
  -webkit-text-fill-color: #007a8f !important;
}
.overview-showcase .ah-icon,
.ah-icon {
  background: #00E6FF !important;
  box-shadow: 0 4px 12px rgba(0, 230, 255, 0.35) !important;
}

/* Landing Zarmaya */
.zl-bar,
.land h1 em {
  background: linear-gradient(90deg, #00E6FF, #7aeffa 55%, #00b8d4) !important;
}
.land h1 em {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.zl-logo .logo,
header.top {
  background: rgba(230, 252, 255, 0.85) !important;
  border-color: #7aeffa !important;
}

/* Badges / status — keep error readable */
.st-badge.bad,
.tx-eta.is-done {
  color: #9a3412 !important;
  -webkit-text-fill-color: #9a3412 !important;
}

.st-badge.ok,
.tx-ic.in {
  background: rgba(0, 230, 255, 0.2) !important;
  color: #021820 !important;
}

.note,
.tx-eta {
  background: #e6fcff !important;
  border-color: #7aeffa !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

.fpill {
  background: #e6fcff !important;
  border: 1.5px solid #00b8d4 !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}
.fpill.on {
  background: linear-gradient(135deg, #00E6FF, #00b8d4) !important;
  border-color: #0090a8 !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}

/* Bottom nav active tint */
.rx-bnav-item.is-active {
  color: #0090a8 !important;
}

/* Logout stays red */
.rx-logout-btn,
.rx-logout button {
  background: #fee2e2 !important;
  color: #991b1b !important;
  -webkit-text-fill-color: #991b1b !important;
  box-shadow: 0 0 0 0.5px #f43f5e !important;
}

/* Admin */
#sidebar {
  background: linear-gradient(180deg, #0090a8 0%, #00b8d4 100%) !important;
}
.adm-header-bar {
  background: linear-gradient(90deg, #0090a8, #00E6FF) !important;
}
.adm-sidebar-brand .adm-site-name { color: #021820 !important; }
.adm-sidebar-brand .adm-site-tag { color: rgba(2, 24, 32, 0.7) !important; }
.rx-user-link { color: #0090a8 !important; }
.rx-user-link:hover { color: #007a8f !important; }

/* Earning / timer page accents */
.ex-intro,
.ex-mid__k,
.ex-vip {
  background: linear-gradient(135deg, #00E6FF, #7aeffa) !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
  border-color: #00b8d4 !important;
}
.ex-seal {
  background: linear-gradient(160deg, #0090a8 0%, #00b8d4 50%, #00E6FF 100%) !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 255, 0.45), 0 12px 28px rgba(0, 184, 212, 0.35) !important;
}
.ex-digit {
  background: linear-gradient(160deg, #0090a8 0%, #00b8d4 55%, #00E6FF 100%) !important;
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}
.ex-card {
  border-color: rgba(0, 230, 255, 0.55) !important;
}

/* Dashboard action tiles */
.zy-act,
.zy-act span {
  color: #021820 !important;
  -webkit-text-fill-color: #021820 !important;
}
.zy-act {
  background: linear-gradient(145deg, #fff, #e6fcff) !important;
  border-color: #7aeffa !important;
}
.zy-act .ic {
  background: #00E6FF !important;
}

/* Force dark readable text inside white cards (avoid washed neon text) */
.card *:not(.btn):not(.btn *):not(svg):not(path):not(.face.fr *):not(.face.bk *),
.ah-card *:not(svg):not(path),
.login-card *:not(.btn):not(.btn *),
.zy-auth-card *:not(.btn):not(.btn *):not(a.btn) {
  /* keep inherited ink — don't blanket override buttons */
}

/* Hard kill leftover green fills that hurt contrast */
[style*="#0a9a5c"],
[style*="#12b56e"],
[style*="#14bc76"],
[style*="#34d399"] {
  /* inline styles can't be remapped — pages patched separately where needed */
}
