:root{
  --bg: #0d0d0d;
  --panel: #121212;
  --panel2:#161616;
  --text:#eaeaea;
  --muted:#a8a8a8;
  --border:#202020;
  --border2:#2a2a2a;
  --accent:#00ff9d;
  --accent-weak: rgba(0,255,157,.14);
}

/* --------------------------------------------------------------------------------
   Global dark mode (no white anywhere)
-------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
}

.ui-panel-content-wrap
{
	background: var(--bg) !important;
}
/* Text selection + scrollbar (dark) */
::selection { background: rgba(0,255,157,.28); color:#07120e; }
::-moz-selection { background: rgba(0,255,157,.28); color:#07120e; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 8px; }
::-webkit-scrollbar-track { background: #111; }

/* --------------------------------------------------------------------------------
   jQuery Mobile overrides to keep everything dark
-------------------------------------------------------------------------------- */
.ui-page, .ui-content,
.ui-page-theme-a, .ui-page-theme-b, .ui-page-theme-c,
.ui-overlay-a, .ui-overlay-b, .ui-overlay-c {
  background: var(--bg) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}

/* Header / Footer */
.ui-header, .ui-footer {
  background: #0f1115 !important;
  border: none !important;
  color: #fff !important;
  text-shadow: none !important;
}
.ui-header .ui-title, .ui-footer .ui-title { color:#fff !important; }

/* Panels (menus) */
.ui-panel, .ui-panel-inner {
  background: var(--panel) !important;
  border-color: var(--border) !important;
}

/* Lists */
.ui-listview, .ui-listview > li {
  background: transparent !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}
.ui-listview > li a {
  background: transparent !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}
.ui-listview > li a.ui-btn-active,
.ui-listview > li a:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: var(--accent) !important;
  color: #cffff0 !important;
}

/* Buttons (generic jQM) */
.ui-btn, .ui-btn-up-a, .ui-btn-up-b, .ui-btn-hover-a, .ui-btn-hover-b {
  background: var(--panel2) !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  text-shadow: none !important;
  background-image: none !important;
}
.ui-btn:hover {
  border-color: var(--accent) !important;
  background: rgba(0,255,157,.08) !important;
  color: #cffff0 !important;
}

/* Inputs / fields (jQM-enhanced) */
.ui-input-text, textarea, select {
  background: #0f0f0f !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  text-shadow: none !important;
  box-shadow: none !important;
}
input:focus, textarea:focus, select:focus, .ui-focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-weak) !important;
}

/* Checkboxes / controlgroups (jQM) */
.ui-checkbox .ui-btn, .ui-controlgroup-controls .ui-btn {
  background: #101010 !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}

/* Links */
a, .ui-link-inherit {
  color: #7dd3fc !important;
  text-shadow: none !important;
}
a:hover { color: #bfe7ff !important; }

/* Body containers */
.ui-bar-a, .ui-bar-b, .ui-body-a, .ui-body-b {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}

/* Full height page */
#page { min-height: 100svh !important; background: var(--bg) !important; }

/* Dialog / Popup / Loader (stop white flashes) */
.ui-dialog, .ui-popup, .ui-popup-container, .ui-corner-all {
  background: var(--panel) !important;
  color: var(--text) !important;
  border: 1px solid var(--border2) !important;
  text-shadow: none !important;
}
.ui-loader {
  background: #0f1115 !important;
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}
.ui-loader .ui-icon-loading {
  background-color: #00ff9d !important; /* tint spinner */
  background-image: none !important;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------------
   Centering wrapper for login card
-------------------------------------------------------------------------------- */
.wrap-in {
  display: grid;
  place-items: center;
  padding: 24px 12px;
  min-height: calc(100svh - 90px); /* room for fixed header if present */
  position: relative;
}
.wrap-in::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 320px;
  background: radial-gradient(680px 240px at 50% -60px, var(--accent-weak), transparent 60%);
  pointer-events: none;
  filter: blur(1px);
}

/* --------------------------------------------------------------------------------
   Card + Brand (Ano style)
-------------------------------------------------------------------------------- */
.card.anobox-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background:
    radial-gradient(800px 300px at 50% -120px, rgba(0,255,157,0.08), transparent 60%),
    linear-gradient(180deg, rgba(24,24,24,0.95), rgba(12,12,12,0.95));
  box-shadow:
    0 10px 35px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 22px;
  color: var(--text);
}
.brand {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.brand-box {
  display: grid;
  place-items: center;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
  background:
    radial-gradient(900px 220px at 50% -140px, rgba(0,255,157,0.10), transparent 60%),
    linear-gradient(180deg, rgba(18,18,18,0.95), rgba(14,14,14,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.brand img {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Titles */
.centered-title {
  font-size: 20px;
  margin: 14px 0 6px;
  text-align: center;
  letter-spacing: 0.2px;
}
.sub {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------------
   Form fields (for data-role="none" plain inputs)
-------------------------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: #cfcfcf; }
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: #0e0e0e;
  color: var(--text);
  padding: 0 14px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input[type="email"]::placeholder,
.field input[type="password"]::placeholder { color: #8b8b8b; }
.field input[type="email"]:focus,
.field input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,255,157,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  background: #101010;
}
.hint { font-size: 12px; color: var(--muted); margin-top: -2px; }

/* Checkbox (plain, data-role="none") */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dcdcdc;
  font-size: 13px;
  user-select: none;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border2);
  border-radius: 5px;
  background: #0f0f0f;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.check input:checked {
  border-color: #00f293;
  background: linear-gradient(180deg, #00ff9d, #00e78f);
  box-shadow: 0 0 0 4px rgba(0,255,157,0.12);
}
.check input:checked::after {
  content: "✓";
  font-weight: 700;
  color: #000;
  font-size: 12px;
  line-height: 1;
}

/* --------------------------------------------------------------------------------
   Buttons (primary pill for plain button)
-------------------------------------------------------------------------------- */
/* Hacker button - flat rectangle */
.btn-primary {
  width: 100%;
  display: block;
  height: 48px;
  border-radius: 6px; /* small corner radius */
  border: 1px solid #00f293;
  background: linear-gradient(180deg, #00ff9d, #00e78f);
  color: #06140f;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,255,157,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.06s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(0,255,157,0.28), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Labels - add breathing room */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px; /* space below label */
  margin-top: 12px; /* space above label */
  color: var(--text);
}

/* --------------------------------------------------------------------------------
   Footer links
-------------------------------------------------------------------------------- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, #222, transparent); margin: 14px 0; }
.footer-links {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 13px;
}
.footer-links a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(22,22,22,0.7), rgba(15,15,15,0.7));
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.footer-links a:hover {
  border-color: var(--accent);
  background: rgba(0,255,157,0.08);
  color: #cffff0;
}

/* --------------------------------------------------------------------------------
   Tight screens
-------------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .card.anobox-card { padding: 18px; }
  .brand img { width: 160px; }
}

/* Autofill: keep dark background, bright text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  /* Paint the field dark, overriding the yellow */
  -webkit-box-shadow: 0 0 0px 1000px #0f0f0f inset !important;
  box-shadow: 0 0 0px 1000px #0f0f0f inset !important;
}

/* Firefox */
input:autofill,
input:-moz-autofill {
  box-shadow: 0 0 0 1000px #0f0f0f inset !important;
  -moz-text-fill-color: var(--text) !important;
}

  -moz-text-fill-color: var(--text) !important;
}

3) Force dark after login (all jQM pages)

You already have most overrides; add these “catch-alls” to cover other jQM theme buckets and overlays that can still flash white:

/* Force all common jQM themes/overlays to dark */
.ui-body, .ui-body-a, .ui-body-b, .ui-body-c,
.ui-page-theme-a, .ui-page-theme-b, .ui-page-theme-c,
.ui-overlay-a, .ui-overlay-b, .ui-overlay-c,
.ui-page, .ui-content {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}

/* Tables, list containers, panes that jQM sets to white by default */
.ui-grid-a, .ui-grid-b, .ui-block-a, .ui-block-b,
.ui-corner-all, .ui-panel, .ui-panel-inner,
.ui-btn-inner, .ui-header, .ui-footer, .ui-bar {
  background-color: transparent !important;
  color: var(--text) !important;
  border-color: var(--border2) !important;
}

/* Popups / dialogs / loader */
.ui-popup, .ui-dialog, .ui-popup-container, .ui-loader {
  background-color: #121212 !important;
  color: var(--text) !important;
  border: 1px solid var(--border2) !important;
  text-shadow: none !important;
}




/******************
 * SEARCH BAR (top)
 ******************/
.ui-listview-filter {
  background: transparent !important;
  border:0 !important;
  padding: 0 !important;
  margin-bottom: 10px !important;
}
.ui-input-search {
  background:#0f0f0f !important;
  border:1px solid var(--border2) !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}
.ui-input-search input {
  color: var(--text) !important;
}
.ui-input-clear {
  background: transparent !important;
  border:1px solid var(--border2) !important;
}
.ui-input-clear:hover {
  border-color: var(--accent) !important;
}

/****************
 * INBOX LIST UI
 ****************/

/* Apply to your UL with id="mailList" */
#mailList.ui-listview {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the default chrome on each li/button block */
#mailList .ui-btn {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* Each row as a sleek card */
#mailList .ui-li {
  margin-bottom: 10px !important;
  border: 1px solid var(--border2) !important;
  background: linear-gradient(180deg, rgba(22,22,22,.9), rgba(12,12,12,.9)) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: border-color .15s ease, transform .06s ease, background .15s ease !important;
}
#mailList .ui-li:hover {
  border-color: var(--accent) !important;
  background: radial-gradient(800px 200px at 60% -80px, var(--accent-weak), rgba(12,12,12,.9) 55%) !important;
  transform: translateY(-1px);
}

/* Inner text container */
#mailList .ui-li .ui-btn-text, 
#mailList .ui-li .ui-btn-inner {
  padding: 12px 14px !important;
}

/* Time on the right */
#mailList .ui-li .ui-li-aside {
  color: #a0f0cf !important;
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* Sender / Subject / Preview */
#mailList .ui-li-heading {
  color: #e8fff7 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin: 0 0 4px 0 !important;
}
#mailList .ui-li-desc {
  color: #b6d8cc !important;
  font-size: 13px !important;
}

/* Hide default arrow chevron & thumbnail chrome */
#mailList .ui-icon,
#mailList .ui-li-has-arrow .ui-btn-inner::after {
  display: none !important;
}
#mailList .ui-li-icon,
#mailList .ui-li-thumb {
  width: 18px !important;
  height: 18px !important;
  border-radius: 4px !important;
  opacity: .9;
  margin-right: 8px !important;
}

/* Unread state (add class 'unread' to the <li> server-side if possible) */
#mailList .unread .ui-li-heading { color:#fff !important; }
#mailList .unread { border-color: #1e8f6a !important; }

/**************
 * PAGINATION? (if you have next/prev buttons styled as list items)
 **************/
#mailList .pager {
  text-align: center;
  border-radius: 10px !important;
  background: #131313 !important;
  border: 1px dashed var(--border2) !important;
  color: #cfeee4 !important;
}

/*****************************
 * COMPOSE / HEADER BUTTONS
 *****************************/
.ui-btn-up-a, .ui-btn-hover-a, .ui-btn-down-a {
  background: transparent !important;
  border: 1px solid var(--border2) !important;
  color: #d9fff0 !important;
}
.ui-btn-up-a:hover {
  border-color: var(--accent) !important;
  color: #cffff0 !important;
}

.login-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Optional: Add padding so it's not glued to other elements */
.login-ad {
    margin: 1rem 0;
}

/*********************
 * SCROLLBAR (webkit)
 *********************/
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; border: 2px solid #0f0f0f; }
::-webkit-scrollbar-thumb:hover { background: #2d2d2d; }

/* CTA row */
.get-mail-cta {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

/* Secondary button -> dark pill with neon hover */
.btn.btn-secondary {
  padding: .7rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .03s ease, background .15s ease;
}
.btn.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  background: rgba(0,0,0,.6);
}
.btn.btn-secondary:active {
  transform: translateY(1px);
}

/* Hide when aria-hidden */
.getmail-overlay[aria-hidden="true"] { display: none; }

/* Overlay container */
.getmail-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Backdrop → darker with soft vignette */
.getmail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 300px at 50% -10%, var(--accent-weak), transparent 60%)
    , rgba(0,0,0,.65);
}

/* Dialog card */
.getmail-dialog {
  position: relative;
  width: min(92vw, 560px);
  background: linear-gradient(180deg, rgba(22,22,22,0.95), rgba(12,12,12,0.95));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.48);
  padding: 1.25rem 1.25rem 1rem;
  z-index: 1;
  color: var(--text);
}

/* Close (X) */
.getmail-close {
  position: absolute;
  top: .5rem;
  right: .6rem;
  border: 1px solid var(--border2);
  background: #0f0f0f;
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  border-radius: 8px;
  padding: .35rem .5rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .03s ease, background .15s ease;
}
.getmail-close:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
  background: rgba(0,0,0,.6);
}
.getmail-close:active { transform: translateY(1px); }

/* Headings / text inside dialog */
.getmail-dialog h3,
.getmail-dialog h4 {
  margin: 0 0 .5rem 0;
  font-weight: 600;
  color: #cffff0;
}
.getmail-dialog p {
  margin: .5rem 0;
  color: var(--text);
}

/* Status + errors */
.getmail-status {
  margin: .75rem 0 .25rem;
  font-style: italic;
  color: var(--muted);
}
.getmail-error {
  margin-top: .75rem;
  color: #ff8484; /* readable on dark */
  font-weight: 600;
  white-space: pre-wrap;
  border-left: 3px solid #ff4f4f;
  padding-left: .5rem;
}

/* Result block */
.getmail-result p { margin: .25rem 0; }

/* Inputs in the dialog (if you have any) */
.getmail-dialog input[type="text"],
.getmail-dialog input[type="email"],
.getmail-dialog input[type="password"],
.getmail-dialog select,
.getmail-dialog textarea {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: #0f0f0f;
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 14px;
}
.getmail-dialog textarea { height: auto; padding: .75rem 12px; min-height: 100px; }
.getmail-dialog input:focus,
.getmail-dialog select:focus,
.getmail-dialog textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}

/* Primary action inside dialog (if needed) */
.getmail-dialog .btn-primary {
  width: 100%;
  height: 48px;
  border-radius: 8px;            /* squared-ish hacker vibe */
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .03s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
  margin-top: .75rem;
}
.getmail-dialog .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.getmail-dialog .btn-primary:active { transform: translateY(1px); }

/* Links inside dialog */
.getmail-dialog a {
  color: #7dd3fc;
  text-decoration: none;
}
.getmail-dialog a:hover { color: #bfe7ff; }

/* Small screens polish */
@media (max-width: 420px) {
  .getmail-dialog { padding: 1rem; width: min(94vw, 560px); }
  .btn.btn-secondary { width: 100%; text-align: center; }
}

/* Optional: match heading and subtle hint color inside the dialog */
.getmail-dialog h2 {
  margin: 0 0 .5rem 0;
  color: #cffff0;
  letter-spacing: .2px;
}
.getmail-hint { color: var(--muted); }

/* Optional: small spinner vibe while waiting */
.getmail-status::before {
  content: "⏳";
  margin-right: .5rem;
  opacity: .9;
}

/* Optional: ensure overlay always sits above jQM header/footer */
.getmail-overlay { z-index: 9999; }
.ui-header, .ui-footer { z-index: 1000 !important; }