/* =========================================================
   FactOffers Light Theme V1
   Visual override only — no layout / JS / functionality
   ========================================================= */

body.light{
  color-scheme:light !important;

  --bg:#f2f5fa !important;
  --surface:rgba(255,255,255,.92) !important;
  --border:rgba(32,55,90,.13) !important;

  --text:#152238 !important;
  --text2:#52657f !important;
  --text3:#7b8ba2 !important;

  background:
    radial-gradient(circle at 12% 0%,
      rgba(139,92,246,.07),
      transparent 30%),
    radial-gradient(circle at 90% 15%,
      rgba(6,182,212,.06),
      transparent 28%),
    linear-gradient(180deg,#f7f9fc 0%,#eef3f8 100%)
    !important;

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


/* ---------- MAIN APP / PAGES ---------- */

body.light #page-home,
body.light #page-home.active,
body.light #nh-frame{
  background:#f3f6fa !important;
  color:var(--text) !important;
}

body.light .page,
body.light .page.active,
body.light .home-wrap{
  color:var(--text);
}


/* ---------- HEADER ---------- */

body.light .header{
  background:rgba(255,255,255,.90) !important;
  border-bottom-color:#dde4ee !important;

  box-shadow:
    0 6px 24px rgba(29,48,78,.06) !important;
}

body.light .h-title{
  color:#17243a !important;
}

body.light .h-sub{
  color:#71829a !important;
}


/* ---------- BASIC SURFACES ---------- */

body.light .pg-header,
body.light .fsec,
body.light .summary-item,
body.light .sp-cat,
body.light .sp-prod{
  background:rgba(255,255,255,.94) !important;

  border-color:#dce3ec !important;

  color:#17243a !important;

  box-shadow:
    0 5px 18px rgba(30,50,80,.045) !important;
}

body.light .pg-sub,
body.light label,
body.light .stat-name,
body.light .summary-item .lbl,
body.light .music-artist,
body.light .vault-text{
  color:#53667f !important;
}

body.light .fsec-title,
body.light .stat-unit,
body.light .list-item-meta,
body.light .vault-date,
body.light .gdate{
  color:#7a8ba2 !important;

  border-color:#e0e6ee !important;
}


/* ---------- FORMS ---------- */

body.light input,
body.light select,
body.light textarea{
  background:#ffffff !important;
  color:#17243a !important;

  border-color:#ccd6e3 !important;

  box-shadow:
    inset 0 1px 2px rgba(20,35,55,.025) !important;
}

body.light input::placeholder,
body.light textarea::placeholder{
  color:#98a5b6 !important;
  opacity:1;
}

body.light input:focus,
body.light select:focus,
body.light textarea:focus{
  background:#ffffff !important;

  border-color:#8b5cf6 !important;

  box-shadow:
    0 0 0 3px rgba(139,92,246,.09) !important;
}

body.light select option{
  background:#ffffff !important;
  color:#17243a !important;
}

body.light td input{
  background:#fff !important;
  color:#17243a !important;
}


/* ---------- TABLES ---------- */

body.light table{
  color:#26364d !important;
}

body.light th{
  background:#edf2f7 !important;
  color:#65758c !important;

  border-color:#dce3ec !important;
}

body.light td{
  border-color:#e2e7ee !important;
}

body.light tr.dup td{
  background:#fff8e8 !important;
}

body.light tr.has-err td{
  background:#fff1f1 !important;
}


/* ---------- STATUS COLORS ---------- */

body.light .result.ok,
body.light .age-fresh,
body.light .badge-ok{
  background:#e9f8f0 !important;

  color:#147a4d !important;

  border-color:#bde8d0 !important;
}

body.light .result.err,
body.light .age-stale,
body.light .badge-err{
  background:#fff0f0 !important;

  color:#b63d3d !important;

  border-color:#f1c5c5 !important;
}

body.light .result.info{
  background:#f0ebff !important;

  color:#6546b8 !important;

  border-color:#d5c8fa !important;
}

body.light .badge-dup{
  background:#fff6df !important;
  color:#946317 !important;
  border-color:#efd69b !important;
}


/* ---------- ORIGINAL COLOR CARDS -> LIGHT ---------- */

body.light .c-purple{
  background:linear-gradient(145deg,#f4efff,#ebe3ff) !important;
  border-color:#d7c8f7 !important;
  box-shadow:0 7px 20px rgba(109,40,217,.08) !important;
}

body.light .c-green{
  background:linear-gradient(145deg,#edf9f3,#dff5e9) !important;
  border-color:#bae5cd !important;
  box-shadow:0 7px 20px rgba(5,150,105,.07) !important;
}

body.light .c-blue{
  background:linear-gradient(145deg,#edf4ff,#dfebff) !important;
  border-color:#bfd2f4 !important;
  box-shadow:0 7px 20px rgba(37,99,235,.07) !important;
}

body.light .c-cyan,
body.light .c-sky{
  background:linear-gradient(145deg,#edfafd,#def4f8) !important;
  border-color:#bde2e9 !important;
  box-shadow:0 7px 20px rgba(6,182,212,.07) !important;
}

body.light .c-teal{
  background:linear-gradient(145deg,#eefaf8,#dcf3ef) !important;
  border-color:#bee3dc !important;
}

body.light .c-pink{
  background:linear-gradient(145deg,#fbf0ff,#f2e4fb) !important;
  border-color:#dfc7ed !important;
}

body.light .c-orange{
  background:linear-gradient(145deg,#fff7ea,#ffedcf) !important;
  border-color:#f0d5a8 !important;
}

body.light .c-red{
  background:linear-gradient(145deg,#fff2f2,#fde3e3) !important;
  border-color:#efc8c8 !important;
}

body.light .c-indigo{
  background:linear-gradient(145deg,#f0f1ff,#e5e7ff) !important;
  border-color:#cdd1f2 !important;
}

body.light .c-dark{
  background:linear-gradient(145deg,#ffffff,#f1f4f8) !important;
  border-color:#d9dfe8 !important;
  box-shadow:0 7px 20px rgba(30,40,60,.06) !important;
}


/* ---------- HOME ULTRA CURRENT UI ---------- */

body.light .uh-glass{
  background:
    linear-gradient(145deg,
      rgba(255,255,255,.96),
      rgba(244,248,253,.94))
    !important;

  border-color:#dbe3ed !important;

  box-shadow:
    0 10px 28px rgba(36,52,80,.07),
    inset 0 1px 0 rgba(255,255,255,.95)
    !important;
}

body.light .uh-tile{
  background:
    linear-gradient(145deg,#ffffff,#f3f6fa)
    !important;

  border-color:#dce3ec !important;

  box-shadow:
    0 8px 22px rgba(33,49,76,.065),
    inset 0 1px 0 #fff
    !important;

  color:#17243a !important;
}

body.light .uh-tile .uh-tn{
  color:#18263c !important;
}

body.light .uh-tile .uh-td{
  color:#718198 !important;
}

body.light .uh-tile .uh-em,
body.light .uh-kpi .uh-ico,
body.light .uh-moon{
  background:#eef2f7 !important;

  border-color:#dce3ec !important;

  color:#25364f !important;
}

body.light .uh-tag{
  background:#f1ebff !important;
  border-color:#d7c8f7 !important;
  color:#694ab4 !important;
}

body.light .uh-online{
  background:#e9f8f0 !important;
  border-color:#bde8d0 !important;
  color:#147a4d !important;
}

body.light .uh-focus{
  background:
    linear-gradient(135deg,#fff9e9,#fff4d9)
    !important;

  border-color:#efdcae !important;

  color:#27364c !important;
}

body.light .uh-focus .uh-cup{
  background:#fff1c9 !important;
  border-color:#efd9a3 !important;
}


/* ---------- NIGHT HOME CARDS ---------- */

body.light .nh-card{
  background:
    linear-gradient(158deg,#ffffff,#f3f7fb)
    !important;

  border-color:#d4e0eb !important;

  box-shadow:
    0 7px 20px rgba(31,48,75,.065),
    inset 0 1px 0 #ffffff
    !important;

  color:#17243a !important;
}

body.light .nh-lbl{
  color:#25364d !important;
}

body.light .nh-title{
  color:#18273d !important;
}

body.light .nh-title b{
  background:
    linear-gradient(115deg,#147e91,#5864c7)
    !important;

  -webkit-background-clip:text !important;
  background-clip:text !important;

  color:transparent !important;
}

body.light .nh-chip{
  background:
    radial-gradient(circle at 30% 25%,
      rgba(14,165,180,.14),
      rgba(14,165,180,.04))
    !important;

  border-color:#bcdfe4 !important;
}

body.light .nh-card.p .nh-chip{
  background:
    radial-gradient(circle at 30% 25%,
      rgba(139,92,246,.13),
      rgba(139,92,246,.035))
    !important;

  border-color:#d4c7ee !important;
}

body.light .nh-star{
  opacity:.15 !important;
}


/* ---------- HOME KPI / CHIPS ---------- */

body.light .hw-orders{
  background:#edf9f3 !important;
  border-color:#c3e7d2 !important;
}

body.light .hw-wallet{
  background:#edf4ff !important;
  border-color:#c4d8f4 !important;
}

body.light .hw-card .hwl{
  color:#718198 !important;
}

body.light .hw-best{
  background:#fff7e8 !important;
  border-color:#efd8aa !important;
}

body.light .hw-best .hwbt{
  color:#26364d !important;
}


/* ---------- DAILY CARDS ---------- */

body.light .fo-daily-card.c-money{
  background:linear-gradient(135deg,#e4f5ec,#d4eddf) !important;
  color:#175a3b !important;
}

body.light .fo-daily-card.c-crypto{
  background:linear-gradient(135deg,#fff1e8,#fee2d5) !important;
  color:#874022 !important;
}

body.light .fo-daily-card.c-weather{
  background:linear-gradient(135deg,#e7f6fb,#d8eef5) !important;
  color:#225e74 !important;
}

body.light .fo-daily-card.c-news{
  background:linear-gradient(135deg,#eeeefe,#e2e3fb) !important;
  color:#43469b !important;
}


/* ---------- BOTTOM NAV ---------- */

body.light .bnav{
  background:rgba(255,255,255,.90) !important;

  border-color:#d8e0ea !important;

  box-shadow:
    0 12px 34px rgba(35,51,78,.13),
    inset 0 1px 0 rgba(255,255,255,.98)
    !important;
}

body.light .bnav-item{
  color:#76859a !important;
}

body.light .bnav-item.active{
  color:#6642b4 !important;

  background:
    linear-gradient(145deg,#eee7ff,#f5f1ff)
    !important;

  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 12px rgba(109,40,217,.10)
    !important;
}


/* ---------- BUTTONS ---------- */

body.light .btn-ghost{
  background:#f0f3f7 !important;
  color:#53667f !important;
  border-color:#d7dfe9 !important;
}

body.light .btn-copy,
body.light .action-btn{
  background:#f1ebff !important;
  color:#6748b3 !important;
  border-color:#d8cafa !important;
}


/* ---------- VAULT / LOCK ---------- */

body.light .lock-key{
  background:#ffffff !important;

  border-color:#d9e0e9 !important;

  color:#1c2b40 !important;

  box-shadow:0 4px 12px rgba(32,48,75,.04);
}

body.light .lock-dot{
  background:#e6eaf0 !important;
  border-color:#cdd5df !important;
}


/* ---------- MODAL ---------- */

body.light #uiModalOv{
  background:rgba(35,46,62,.28) !important;
}

body.light .uiModal{
  background:rgba(255,255,255,.98) !important;

  border-color:#d9e0ea !important;

  box-shadow:
    0 22px 55px rgba(29,42,62,.18)
    !important;
}

body.light .uiModal-msg{
  color:#1c2c42 !important;
}

body.light .uiModal-no{
  background:#eef2f6 !important;

  color:#53657c !important;

  border-color:#d9e0e8 !important;
}


/* ---------- TOAST ---------- */
/* Toast intentionally remains dark for strong readability */

body.light #uiToast{
  background:rgba(31,41,55,.95) !important;

  color:#ffffff !important;

  border-color:rgba(255,255,255,.15) !important;

  box-shadow:
    0 14px 38px rgba(25,35,50,.20)
    !important;
}


/* ---------- GENERAL READABILITY ---------- */

body.light .info-text{
  color:#25364d !important;
}

body.light textarea.cap-out{
  background:#fff !important;
  color:#25364d !important;
  border-color:#d4ddea !important;
}

body.light hr{
  border-color:#dde4ed !important;
}

body.light ::selection{
  background:#ded5ff;
  color:#1f1640;
}

