/* Earning Platform — app.css (Redesign Phase 2)
   Load order in every layout (DO NOT reorder — cascade depends on it):
     1. vendor/bootstrap.min.css   (self-hosted Bootstrap 5.3.3)
     2. fonts.css                  (self-hosted Noto Sans Bengali + Hind Siliguri + Inter)
     3. tokens.css                 (design tokens: §1 palette, light + dark)
     4. admin-tokens.css           (ADMIN LAYOUT ONLY: SaaS token layer)
     5. components.css             (Bootstrap mapping + ep- component library)
     6. app.css                    (this file: small app-wide leftovers)
   The Phase-2 design system lives in tokens.css / components.css —
   see docs/DESIGN-SYSTEM.md. This file intentionally stays tiny. */

/* Nothing app-wide remains here yet: chat transcript + spin hooks moved to
   components.css (section D, legacy hooks). Add only truly global,
   design-system-external rules below this line. */

/* ===== Redesign Phase 3 — public site / landing page (.lp-*) =====
   Page-specific layer for the public layout + landing page only; all
   colours/spacing/radius come from tokens.css variables, and reusable
   blocks use the ep- components. Loaded last per the order above. */
.lp-header { position: sticky; top: 0; z-index: 1030; background: var(--ep-card); border-bottom: 1px solid var(--ep-border); box-shadow: var(--ep-shadow-sm); }
.lp-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ep-text); font-weight: 700; font-size: 1.05rem; }
.lp-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--ep-radius-sm); background: var(--ep-primary); color: #fff; font-weight: 800; }
.lp-brand-logo { height: 44px; width: auto; max-width: 200px; object-fit: contain; display: block; border-radius: var(--ep-radius-sm); }
.lp-nav { gap: 1.1rem; margin-inline-start: 1rem; }
.lp-nav a { color: var(--ep-text-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.lp-nav a:hover { color: var(--ep-primary); }
.lp-main { min-height: 55vh; }
.lp-footer { background: var(--ep-secondary); color: #CBD5E1; margin-top: 2rem; }
.lp-footer .lp-brand { color: #fff; }
.lp-foot-h { color: #fff; font-size: .95rem; margin-bottom: .6rem; }
.lp-foot-muted { color: #94A3B8; }
.lp-foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .92rem; }
.lp-foot-links a { color: #CBD5E1; text-decoration: none; }
.lp-foot-links a:hover { color: #fff; text-decoration: underline; }
.lp-foot-hr { border-color: rgba(255,255,255,.14); margin: 1.5rem 0 1rem; }
.lp-social { border: 1px solid rgba(255,255,255,.25); color: #E2E8F0; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; text-decoration: none; }
.lp-social:hover { background: rgba(255,255,255,.1); color: #fff; }
/* v5 scope 7: footer Payment Partners + social icon buttons */
.lp-partner { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .8rem; color: #E2E8F0; background: rgba(255,255,255,.05); }
.lp-partner-name { font-weight: 700; }
.lp-partner-type { font-size: .78rem; color: #94A3B8; }
/* v9.55: footer payment pills are logo-only — the method logo fills the pill (name shown only when a method has no logo set). */
.lp-partner-logo { height: 26px; width: auto; max-width: 88px; object-fit: contain; display: block; }
/* v9.72 — footer payment pills moved under the company contact: white
 * circular badges for logo pills, white rounded chips for name pills
 * (no logo set). The footer is dark, so the white badges stand out. */
.lp-partner.lp-pay { background: #fff; border-radius: 50%; width: 48px; height: 48px; padding: 0; justify-content: center; border-color: transparent; }
.lp-partner.lp-pay .lp-partner-logo { height: auto; width: auto; max-width: 36px; max-height: 36px; }
.lp-partner.lp-pay-name { background: #fff; color: #1E293B; border-color: transparent; }
.lp-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #E2E8F0; text-decoration: none; font-size: 1rem; line-height: 1; }
.lp-social-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
/* v5 scope 7: deposit wizard (user wallet) */
.dep-steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.dep-step { border: 1px solid var(--ep-border); border-radius: 999px; padding: .2rem .7rem; font-size: .82rem; color: var(--ep-text-2); }
.dep-step.active { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; font-weight: 700; }
.dep-step.done { border-color: var(--ep-success, #16A34A); color: var(--ep-success, #16A34A); }
.dep-method-link { text-decoration: none; color: inherit; }
.dep-receiver { border: 1px dashed var(--ep-primary); border-radius: var(--ep-radius-sm); padding: .8rem; background: rgba(37,99,235,.05); }
.dep-receiver-number { font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; }
.lp-page-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }

.lp-hero { padding: 2.2rem 0 1rem; }
.lp-hero-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.lp-hero-sub { color: var(--ep-text-2); font-size: 1.05rem; margin-top: .8rem; max-width: 34rem; }
.lp-trust { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin-top: 1.2rem; color: var(--ep-text-2); font-size: .88rem; font-weight: 500; }
.lp-preview { height: 100%; }
.lp-preview-rows { display: grid; gap: .5rem; }
.lp-preview-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .7rem; background: var(--ep-surface-2); border-radius: var(--ep-radius-sm); font-size: .92rem; }

.lp-section { padding: 2rem 0 .5rem; scroll-margin-top: 84px; }
.lp-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.1rem; }
.lp-opp { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ep-text); transition: transform var(--ep-transition) ease, box-shadow var(--ep-transition) ease; }
.lp-opp:hover { transform: translateY(-3px); box-shadow: var(--ep-shadow); color: var(--ep-text); }
.lp-opp-icon { font-size: 1.7rem; line-height: 1; }
.lp-opp-title { font-weight: 700; }
.lp-opp-text { color: var(--ep-text-2); font-size: .9rem; }
.lp-step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ep-primary-soft); color: var(--ep-primary); font-weight: 800; margin-bottom: .7rem; }
.lp-step-title { font-size: 1.08rem; font-weight: 700; }
.lp-plan-head { margin-bottom: .8rem; }
.lp-plan-name { font-weight: 700; margin-bottom: .2rem; } /* v9.72: size comes from Bootstrap fs-2 in the view (same as the membership card) */
.lp-plan-price { font-size: 1.5rem; font-weight: 800; color: var(--ep-primary); }
.lp-plan-per { font-size: .85rem; font-weight: 500; color: var(--ep-text-2); }
.lp-plan-feats { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .3rem; font-size: .92rem; }
.lp-plan { display: flex; flex-direction: column; }
.lp-cta { text-align: center; padding: 2.2rem 1rem; }
.lp-cta-title { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 1.1rem; }
@media (max-width: 576px) { .lp-hero { padding-top: 1.2rem; } .lp-section { padding-top: 1.4rem; } }

/* ===== Redesign Phase 4 — user panel (.up-*) =====
   Page/shell layer for the authenticated user panel ONLY (layouts/app.php).
   Admin keeps its own layer (admin-tokens.css); the public site uses .lp-*.
   Colours/spacing/radius/shadows come ONLY from tokens.css variables so
   dark mode ([data-theme="dark"], wired in Phase 6) works with zero
   per-page changes. No fixed pixel widths that can overflow a 360px
   viewport: the shell is minmax(0,1fr), tables live in .table-responsive,
   media is max-width:100%. */

/* --- shell: sidebar + body --- */
/* v9.38: the shell is a COLUMN — .up-row (sidebar + body) on top, the
 * footer as a direct child below it, so the footer spans the FULL
 * page width at the bottom (the sidebar ends above it). */
.up-shell { display: flex; flex-direction: column; min-height: 100vh; }
.up-row { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.up-sidebar {
  flex: 0 0 264px; width: 264px; display: flex; flex-direction: column;
  background: var(--ep-card); border-right: 1px solid var(--ep-border);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1040;
}
/* v7.2: sidebar brand is a vertical STACK — logo on top, site name
   below it, centred. The fallback letter mark matches the logo
   bounds (44px); a configured logo image is bounded the same way
   (max-height 44px, width auto, never wider than the sidebar). */
.up-side-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding: 1.1rem 1.1rem .9rem; }
.up-side-brand .up-side-mark { flex: 0 0 auto; width: 44px; height: 44px; font-size: 1.3rem; border-radius: var(--ep-radius-md); }
.up-side-brand .up-side-logo { max-height: 44px; width: auto; max-width: 100%; display: block; }
.up-side-brand .up-side-name { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.up-side-nav { padding: .2rem .7rem .8rem; display: grid; gap: .1rem; }
.up-side-group { margin-top: .8rem; padding: 0 .45rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ep-text-3); }
.up-side-link {
  display: flex; align-items: center; gap: .6rem; padding: .52rem .65rem;
  border-radius: var(--ep-radius-md); color: var(--ep-text-2); text-decoration: none;
  font-weight: 500; font-size: .94rem; transition: background var(--ep-transition), color var(--ep-transition);
}
.up-side-link:hover { background: var(--ep-primary-soft); color: var(--ep-primary); }
.up-side-link.active { background: var(--ep-primary); color: #fff; box-shadow: var(--ep-shadow-primary); }
.up-side-link .up-side-ico { width: 1.25rem; text-align: center; flex: 0 0 auto; }
/* v8.7: collapsible sidebar groups. The items wrapper stacks the
   group's links with the nav's own gap; the [hidden] state must
   beat the grid display or closed groups would still show. The
   toggle header reuses .up-side-group typography as a full-width
   button (browser button fonts reset to inherit); its chevron
   points down when open (aria-expanded=true, incl. the server-
   rendered current-page group) and right when closed. State is
   never persisted — these rules only paint the server default. */
.up-side-items { display: grid; gap: .1rem; }
.up-side-items[hidden] { display: none; }
.up-side-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.up-side-toggle:hover { color: var(--ep-primary); }
.up-side-toggle .up-side-chevron { font-size: .62rem; line-height: 1; transition: transform var(--ep-transition); }
.up-side-toggle[aria-expanded="false"] .up-side-chevron { transform: rotate(-90deg); }
.up-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.up-main { flex: 1 1 auto; width: 100%; }
.up-backdrop { display: none; }

/* --- topbar --- */
.up-topbar {
  position: sticky; top: 0; z-index: 1030; background: var(--ep-card);
  border-bottom: 1px solid var(--ep-border);
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem;
}
.up-page-title { font-size: 1.02rem; font-weight: 700; margin: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.up-icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--ep-border); background: var(--ep-card);
  color: var(--ep-text-2); text-decoration: none; font-size: 1.05rem; flex: 0 0 auto;
}
.up-icon-btn:hover { color: var(--ep-primary); border-color: var(--ep-primary); }
.up-bell-badge {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--ep-danger); color: #fff; font-size: .68rem;
  font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ep-card);
}
.up-avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; }
.up-dropdown-head { padding: .55rem .65rem .35rem; }
.up-dropdown-head .nm { font-weight: 700; font-size: .95rem; }
.up-dropdown-head .em { font-size: .8rem; color: var(--ep-text-3); word-break: break-all; }

/* --- bottom nav (mobile, §5/§10) --- */
.up-bottom-nav a.active { color: var(--ep-primary); font-weight: 700; }

/* --- page furniture --- */
.up-page-head { margin-bottom: 1.1rem; }
.up-page-head h1, .up-page-head h4 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.up-page-head .sub { color: var(--ep-text-2); font-size: .93rem; margin-top: .3rem; }
.up-section-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; display: flex; align-items: center; gap: .5rem; }
.up-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.up-quick {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
  padding: .95rem .5rem; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-lg);
  background: var(--ep-card); color: var(--ep-text); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: box-shadow var(--ep-transition), transform var(--ep-transition), border-color var(--ep-transition);
}
.up-quick:hover { border-color: var(--ep-primary); color: var(--ep-primary); box-shadow: var(--ep-shadow); transform: translateY(-2px); }
.up-quick .ico { font-size: 1.45rem; line-height: 1; }
.up-acct-rows { display: grid; gap: .15rem; }
.up-acct-row { display: flex; align-items: center; gap: .7rem; padding: .55rem .35rem; border-bottom: 1px dashed var(--ep-border); }
.up-acct-row:last-child { border-bottom: 0; }
.up-acct-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.up-acct-label { color: var(--ep-text-2); font-size: .93rem; }
.up-acct-val { margin-left: auto; font-weight: 700; white-space: nowrap; }
.up-kv { display: grid; gap: 0; }
.up-kv-row { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--ep-border); }
.up-kv-row:last-child { border-bottom: 0; }
.up-kv-row dt { flex: 0 0 42%; color: var(--ep-text-2); font-size: .92rem; font-weight: 500; }
.up-kv-row dd { margin: 0; font-weight: 600; word-break: break-word; min-width: 0; }

/* --- media (video / audio / task) cards + player --- */
.up-media-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.up-thumb { position: relative; aspect-ratio: 16/9; background: var(--ep-surface-2); overflow: hidden; }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem;
  background: linear-gradient(135deg, var(--ep-primary-soft), var(--ep-accent-soft)); }
.up-thumb-chip { position: absolute; right: .5rem; bottom: .5rem; background: rgba(15,23,42,.82); color: #fff;
  font-size: .75rem; font-weight: 600; padding: .18rem .55rem; border-radius: var(--ep-radius-pill); }
.up-thumb-chip.reward { left: .5rem; right: auto; background: var(--ep-accent); }
.up-media-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1 1 auto; }
.up-media-title { font-weight: 700; font-size: 1rem; margin: 0; }

/* v9.1: 5-per-row media grid (was 3) + compact cards + today-stats strip.
 * The grid is a plain CSS grid so all three lists (videos/audios/tasks)
 * share one breakpoint ladder; thumbs stay 16/9 so they shrink with
 * the column instead of dominating the page. */
/* v9.2: UID copy button — transparent + currentColor so it works on
 * light cards and the dark hero alike. */
.up-copy-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; margin-left: .35rem; border: 1px solid currentColor; border-radius: .45rem; background: transparent; color: inherit; font-size: .8rem; line-height: 1; cursor: pointer; opacity: .75; vertical-align: middle; }
.up-copy-btn:hover { opacity: 1; }
.up-media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1280px) { .up-media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 992px) { .up-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .up-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .up-media-grid { grid-template-columns: 1fr; } }
.up-media-grid .up-media-body { padding: .75rem .85rem; gap: .35rem; }
.up-media-grid .up-media-title { font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-media-grid .up-media-body p.small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-media-grid .up-thumb-chip { font-size: .7rem; padding: .12rem .45rem; }
.up-stats-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 1280px) { .up-stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .up-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-stats-strip .ep-stat-value { font-size: 1.2rem; }
.up-stats-strip .ep-stat-icon { width: 38px; height: 38px; font-size: 1.05rem; }
/* v9.51: 4-card variant of the shared stats strip (allowances page). */
.up-stats-strip.up-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .up-stats-strip.up-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-player { background: #000; border-radius: var(--ep-radius-md); overflow: hidden; }
.up-player video { width: 100%; max-height: 440px; display: block; background: #000; }
.up-player .up-embed { position: relative; padding-top: 56.25%; }
.up-player .up-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.up-audio-cover { width: 100%; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--ep-radius-md); display: block; }
.up-progress { height: 10px; border-radius: 999px; background: var(--ep-surface-2); overflow: hidden; }
.up-progress > div { height: 100%; background: var(--ep-accent); border-radius: 999px; transition: width var(--ep-transition-slow); }

/* --- wallet payment-method radio cards --- */
.up-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.up-method { display: block; margin: 0; cursor: pointer; }
.up-method-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.up-method-card {
  display: flex; flex-direction: column; gap: .2rem; height: 100%;
  border: 1.5px solid var(--ep-border); border-radius: var(--ep-radius-lg);
  padding: .8rem .9rem; background: var(--ep-card); transition: border-color var(--ep-transition), background var(--ep-transition), box-shadow var(--ep-transition);
}
.up-method-card .m-name { font-weight: 700; }
.up-method-card .m-sub { font-size: .8rem; color: var(--ep-text-2); word-break: break-all; }
.up-method:hover .up-method-card { border-color: var(--ep-primary); }
.up-method-input:checked + .up-method-card { border-color: var(--ep-primary); background: var(--ep-primary-soft); box-shadow: var(--ep-shadow-xs); }
.up-method-input:focus-visible + .up-method-card { outline: 2px solid var(--ep-primary); outline-offset: 2px; }

/* --- notifications / support --- */
.up-notif { display: flex; gap: .8rem; padding: .85rem .2rem; border-bottom: 1px solid var(--ep-border); }
.up-notif:last-child { border-bottom: 0; }
.up-notif.unread { background: var(--ep-primary-soft); border-radius: var(--ep-radius-md); padding-left: .7rem; padding-right: .7rem; }
.up-notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ep-primary); margin-top: .45rem; flex: 0 0 auto; }
.up-notif-dot.read { background: var(--ep-border); }
.up-bubble { display: inline-block; max-width: 85%; padding: .6rem .8rem; border-radius: var(--ep-radius-lg);
  background: var(--ep-surface-2); border: 1px solid var(--ep-border); text-align: left; }
.up-bubble.me { background: var(--ep-primary); color: #fff; border-color: var(--ep-primary); border-bottom-right-radius: var(--ep-radius-xs); }
.up-bubble:not(.me) { border-bottom-left-radius: var(--ep-radius-xs); }
.up-bubble .meta { font-size: .72rem; opacity: .75; margin-bottom: .2rem; }
.up-bubble .msg { white-space: pre-wrap; word-break: break-word; }

/* --- games --- */
.up-game-tile { width: 100%; min-height: 96px; }
.up-scratch-grid, .up-memory-grid { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 100%; }
.up-cell { width: 100px; max-width: 28vw; }

/* --- responsive shell behaviour (§10) --- */
@media (max-width: 991.98px) {
  .up-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh;
    transform: translateX(-105%); transition: transform var(--ep-transition-slow);
    box-shadow: var(--ep-shadow-lg);
  }
  body.up-nav-open .up-sidebar { transform: none; }
  body.up-nav-open .up-backdrop {
    display: block; position: fixed; inset: 0; background: var(--ep-overlay); z-index: 1035;
  }
}
@media (min-width: 992px) { .up-burger { display: none !important; } .up-topbar-brand { display: none !important; } }
@media (max-width: 575.98px) {
  .up-page-head h1, .up-page-head h4 { font-size: 1.25rem; }
  .up-quick-grid { grid-template-columns: repeat(3, 1fr); }
  .up-bubble { max-width: 92%; }
}

/* ===== v4: clean YouTube player + pending jobs + upload UX ===== */
/* Click-shield: the iframe itself receives NO pointer events, so the
   title/logo/"Watch on YouTube" links inside it can never be clicked;
   the transparent shield swallows every click over the player area. */
.up-player .up-embed iframe { pointer-events: none; }
.up-shield { position: absolute; inset: 0; z-index: 2; background: transparent; cursor: default; }
/* Server-timer progress (watch page) */
.up-progress { height: 10px; border-radius: 999px; background: rgba(127,127,127,.25); overflow: hidden; margin-top: .35rem; }
.up-progress-bar { height: 100%; border-radius: 999px; background: var(--ep-accent, #10B981); transition: width 1s linear; }
/* Full-screen blur loading overlay for image-upload form submits */
.ep-upload-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ep-upload-overlay[hidden] { display: none; }
.ep-upload-box { text-align: center; color: #fff; }
.ep-upload-spinner { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ep-upload-spin .8s linear infinite; }
@keyframes ep-upload-spin { to { transform: rotate(360deg); } }
.ep-upload-text { font-size: 1.05rem; font-weight: 600; }
.ep-upload-alert { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2100;
  background: var(--ep-danger, #dc2626); color: #fff; padding: .65rem 1.1rem; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: min(92vw, 560px); font-size: .95rem; }
.ep-upload-alert[hidden] { display: none; }

/* ===== v4 addendum: notification bell dropdown ===== */
.up-bell-menu { width: min(380px, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.up-bell-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; border-bottom: 1px solid var(--ep-border); }
.up-bell-head-title { font-weight: 700; }
.up-bell-list { max-height: min(430px, 65vh); overflow-y: auto; }
.up-bell-item { display: flex; align-items: flex-start; gap: .35rem; padding: .65rem .75rem; border-bottom: 1px solid var(--ep-border); }
.up-bell-item:last-child { border-bottom: 0; }
.up-bell-item.unread { background: var(--ep-primary-soft); }
.up-bell-menu a.up-bell-main { flex: 1 1 auto; min-width: 0; width: auto; padding: 0; align-items: flex-start; }
.up-bell-menu a.up-bell-main:hover { background: transparent; }
.up-bell-ico { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ep-surface-2); font-size: 1rem; }
.up-bell-text { display: flex; flex-direction: column; gap: .14rem; min-width: 0; }
.up-bell-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.up-bell-time { font-size: .7rem; color: var(--ep-text-3); white-space: nowrap; }
.up-bell-title { font-size: .9rem; font-weight: 650; line-height: 1.3; }
.up-bell-body { font-size: .82rem; color: var(--ep-text-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-bell-dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: .35rem; padding: 0; border: 0; border-radius: 50%; background: var(--ep-primary); cursor: pointer; }
.up-bell-dot:hover { background: var(--ep-danger); }
.up-bell-empty { padding: 1.4rem 1rem; text-align: center; }
.up-bell-empty-icon { font-size: 1.7rem; margin-bottom: .35rem; }
.up-bell-menu a.up-bell-foot { display: block; width: auto; text-align: center; justify-content: center; padding: .65rem .85rem; border-top: 1px solid var(--ep-border); font-weight: 650; }
@media (max-width: 575.98px) {
  .up-bell-menu { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; max-width: none; }
  .up-bell-time { white-space: normal; text-align: right; }
}

/* v5 scope 14: image download protection (casual save paths only —
 * right-click menu / drag / long-press callout on IMAGES; screenshots
 * and dev-tools extraction cannot be prevented on the web).
 * Admin pages (body.ep-admin) are excluded so the site owner can
 * right-click to copy text and save images. */
body:not(.ep-admin) img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }

/* v5 scope 12: referral share row (dark-mode safe via theme tokens) */
.ep-share-row .ep-share-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--ep-border); background: var(--ep-card); color: var(--ep-text); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.ep-share-row .ep-share-btn:hover { border-color: var(--ep-primary); color: var(--ep-primary); }
.ep-share-hint { color: var(--ep-accent); font-weight: 600; }

/* v5 scope 15: profile tabs (Bootstrap tab markup, ep tokens, mobile scroll) */
.ep-profile-tabs { border-bottom: 2px solid var(--ep-border); scrollbar-width: none; }
.ep-profile-tabs::-webkit-scrollbar { display: none; }
.ep-profile-tabs .nav-link { white-space: nowrap; color: var(--ep-muted); font-weight: 600; border: 0; border-bottom: 3px solid transparent; background: transparent; }
.ep-profile-tabs .nav-link:hover { color: var(--ep-primary); }
.ep-profile-tabs .nav-link.active { color: var(--ep-primary); background: transparent; border-bottom-color: var(--ep-primary); }

/* v5 scope 20: withdrawal success popup (auto-open, one-shot) */
.ep-modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.55);backdrop-filter:blur(3px);z-index:1080;display:flex;align-items:center;justify-content:center;padding:1rem}
/* v9.35: this is the DIALOG card style — it must only apply inside a
 * .ep-modal-backdrop. As a bare .ep-modal rule it also hit the standalone
 * .ep-modal OVERLAY (components.css pattern, shown with .show), capping
 * it at 420px wide with a card background — the logout modal opened as
 * a narrow left column instead of a centred dialog. */
.ep-modal-backdrop .ep-modal{background:var(--ep-card,#fff);color:var(--ep-text,#0F172A);border:1px solid var(--ep-border,#E2E8F0);border-radius:16px;max-width:420px;width:100%;padding:1.25rem;box-shadow:0 24px 60px rgba(2,6,23,.35)}
/* v9.75: "Today's limit reached" dialog — glass card (matches the earn glass cards: translucent + blur + soft border + glow shadow), dark-mode aware. Scoped to this dialog only; the other backdrop dialogs keep the solid card above. */
#ep-limit-blocked-modal .ep-modal{background:linear-gradient(165deg,rgba(255,255,255,.92),rgba(238,244,250,.88));-webkit-backdrop-filter:blur(16px) saturate(160%);backdrop-filter:blur(16px) saturate(160%);border:1px solid rgba(255,255,255,.85);border-radius:20px;box-shadow:0 24px 50px -18px rgba(30,64,110,.45),0 4px 14px rgba(30,64,110,.12),inset 0 1px 0 rgba(255,255,255,.9)}
#ep-limit-blocked-modal .ep-modal .ep-limit-shield{width:64px;height:64px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#1E3A8A,#2563EB);border:1px solid rgba(255,255,255,.6);box-shadow:0 0 0 4px rgba(37,99,235,.18),0 10px 24px rgba(37,99,235,.45),inset 0 1px 0 rgba(255,255,255,.5)}
#ep-limit-blocked-modal .ep-modal .ep-limit-shield .ico{width:32px;height:32px}
#ep-limit-blocked-modal .ep-modal p{text-align:center;color:var(--ep-text-2,#64748B)}
[data-theme="dark"] #ep-limit-blocked-modal .ep-modal{background:linear-gradient(165deg,rgba(23,35,64,.78),rgba(13,22,44,.72));-webkit-backdrop-filter:blur(16px) saturate(150%);backdrop-filter:blur(16px) saturate(150%);border:1px solid rgba(125,175,255,.5);box-shadow:0 24px 48px rgba(2,6,18,.55),inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 26px rgba(90,130,255,.08),0 0 32px rgba(88,80,236,.28)}
[data-theme="dark"] #ep-limit-blocked-modal .ep-modal .ep-limit-shield{border-color:rgba(255,255,255,.35);box-shadow:0 0 0 4px rgba(96,165,250,.25),0 10px 28px rgba(59,130,246,.55),inset 0 1px 0 rgba(255,255,255,.35)}
#ep-limit-blocked-modal .ep-modal .ep-limit-nocredit{color:#B45309;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.35);border-radius:10px;padding:.5rem .75rem}
[data-theme="dark"] #ep-limit-blocked-modal .ep-modal .ep-limit-nocredit{color:#FBBF24;background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.4)}
.wd-calc{background:var(--ep-bg,#F8FAFC);border:1px solid var(--ep-border,#E2E8F0)}

/* v5 scope 22 — Team Leader badge (Amendment 5) */
.ep-leader-badge{display:inline-flex;align-items:center;gap:.25rem;background:linear-gradient(90deg,#F59E0B,#FBBF24);color:#1F2937;font-size:.72rem;font-weight:700;border-radius:999px;padding:.1rem .55rem;vertical-align:middle;white-space:nowrap}

/* v5 scope 23 — verified badge */
.ep-verified-badge{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#2563eb;color:#fff;font-size:11px;font-weight:700;vertical-align:middle}

/* v6: click-to-play player — the shield is now the primary control
   (clicks START/toggle through our own controls; the shield still
   swallows every click so nothing reaches YouTube), centred overlay,
   and the file-video wrapper.
   v9.75 (batch 45): the shield is a bare click-blocker only — no
   play/pause button exists, so the cursor is the default one. */
.up-shield{ cursor:default; }
.up-play-overlay{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; pointer-events:none; color:#fff; z-index:3; transition:opacity .2s ease, visibility .2s; }
.up-play-icon{ width:4.25rem; height:4.25rem; border-radius:999px; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; font-size:1.9rem; line-height:1; padding-left:.3rem; box-shadow:0 4px 18px rgba(0,0,0,.35); }
.up-play-text{ background:rgba(0,0,0,.5); border-radius:999px; padding:.15rem .7rem; font-size:.85rem; font-weight:600; }
.up-player.ep-playing .up-play-overlay{ opacity:0; visibility:hidden; }
.up-filewrap{ position:relative; line-height:0; }
.up-filewrap video{ width:100%; }
.up-filewrap .up-play-overlay{ z-index:2; }

/* v7: dashboard profile header card — owner reference layout (identity |
   total balance | জামানত block | stacked actions) on the primary
   gradient. Every colour comes from the design tokens, so the dark
   theme (lifted primary #3B82F6 etc.) inverts it automatically.
   v7.1 polish: bigger avatar FRAME (96px, overflow hidden — the photo
   fills it via the img rule below and can never bleed past the edge),
   a fixed type scale for identity/balance/inset, one centred row
   (align-items:center, 28px column gap) and a 190px actions column
   with two equal 46px buttons.
   v7.2 tweaks (owner): the জামানত block loses its white inset — it
   sits directly on the gradient like the balance block (label 75%
   white, amount solid white, state lines 85% white) — and the whole
   card uses exactly TWO text sizes: PRIMARY lines (name, balance
   amount, জামানত amount) 1.5rem/700 (1.3rem on mobile), every
   SECONDARY line 0.92rem.
   v7.3 (owner): the photo is a FULL-HEIGHT panel on the card's left
   edge — the card carries NO padding (it moved into .ep-dash-main),
   the panel stretches top-to-bottom (align-self:stretch) and the
   card's overflow:hidden clips it to the rounded corners; the
   initials fallback gets the same panel on a deeper gradient tint.
   Balance + জামানত sit in .ep-dash-money, pushed RIGHT against the
   actions via margin-left:auto — the open space lands between the
   identity column and the money group.
   v8.3 (owner): below 992px that flex layout is replaced by the
   named-area grid further down (small square photo tile beside the
   identity, balance | জামানত columns, one button row) — the old
   full-width 120px photo band and float/wrap stacking are gone. */
.ep-dash-hero{ display:flex; align-items:stretch;
  background:linear-gradient(135deg, var(--ep-primary) 0%, var(--ep-primary-dark) 55%, var(--ep-primary-darker) 130%);
  color:#fff; border-radius:var(--ep-radius-xl); box-shadow:var(--ep-shadow-primary); overflow:hidden; }
.ep-dash-avatar{ width:160px; align-self:stretch; flex:0 0 auto; overflow:hidden; display:block; }
.ep-dash-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.ep-dash-avatar-init{ display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg, var(--ep-primary-dark), var(--ep-primary-darker));
  color:#fff; font-size:3rem; font-weight:700; }
.ep-dash-main{ flex:1 1 auto; min-width:0; display:flex; align-items:center; flex-wrap:wrap;
  gap:var(--ep-sp-4) 1.75rem; padding:var(--ep-sp-6); }
.ep-dash-id-text{ min-width:0; }
.ep-dash-money{ display:flex; align-items:center; gap:var(--ep-sp-4) 1.75rem; margin-left:auto; flex-wrap:wrap; }
.ep-dash-name{ font-weight:700; font-size:1.5rem; line-height:1.25; }
.ep-dash-meta{ color:rgba(255,255,255,.85); font-size:.92rem; line-height:1.45; margin-top:3px; }
.ep-dash-balance{ min-width:180px; }
.ep-dash-bal-label{ color:rgba(255,255,255,.75); font-size:.92rem; font-weight:600; }
.ep-dash-bal-value{ font-size:1.5rem; font-weight:700; line-height:1.2; }
.ep-dash-bal-sub{ color:rgba(255,255,255,.9); font-size:.92rem; margin-top:2px; }
.ep-dash-hero .up-acct-row{ border-bottom-color:rgba(255,255,255,.25); padding:.35rem 0; }
.ep-dash-hero .up-acct-label{ color:rgba(255,255,255,.85); font-size:.92rem; }
.ep-dash-hero .up-acct-val{ font-size:.92rem; }
.ep-dash-col{ background:transparent; color:#fff; padding:1rem 1.125rem; min-width:190px; }
.ep-dash-col-label{ color:rgba(255,255,255,.75); font-size:.92rem; font-weight:600; }
.ep-dash-col-value{ font-size:1.5rem; font-weight:700; line-height:1.25; }
.ep-dash-col-line{ color:rgba(255,255,255,.85); font-size:.92rem; margin-top:.3rem; }
.ep-dash-col-line a{ color:#fff; text-decoration:underline; }
.ep-dash-actions{ display:flex; flex-direction:column; gap:var(--ep-sp-2); min-width:190px; }
.ep-dash-btn{ display:inline-flex; align-items:center; justify-content:center; gap:.4rem; font-weight:600;
  border-radius:var(--ep-radius-md); height:46px; padding:0 1.25rem; text-decoration:none; white-space:nowrap;
  box-shadow:0 2px 6px rgba(15,23,42,.22); transition:box-shadow .15s ease, transform .15s ease; }
.ep-dash-btn:hover{ box-shadow:0 4px 10px rgba(15,23,42,.28); }
.ep-dash-btn-dep{ background:#fff; color:var(--ep-primary); }
.ep-dash-btn-dep:hover{ background:var(--ep-primary-soft); color:var(--ep-primary-dark); }
.ep-dash-btn-wd{ background:var(--ep-success); color:#fff; }
.ep-dash-btn-wd:hover{ background:var(--ep-accent-dark); color:#fff; }
/* v9.8 (owner): the hero is NO LONGER a grid below 992px — the v8.3
 * named-area grid (avatar / identity / money / actions) is retired
 * with the split: money + actions live in the WHITE card now, so
 * the blue hero stays a plain flex row (photo + identity) at every
 * width and the ROW wrapper (.ep-dash-hero-row, v9.8 block at the
 * end of this file) does the responsive work. Tablet (768–991px)
 * keeps the one-row layout with a narrower photo panel; phones
 * (<=767px) stack the two cards and shrink the photo to an 88px
 * square tile. */
@media (max-width: 991.98px){
  .ep-dash-hero-row{ gap:var(--ep-sp-3); }
  .ep-dash-avatar{ width:120px; }
  .ep-dash-main{ padding:var(--ep-sp-5); gap:var(--ep-sp-4) 1.25rem; }
  .ep-dash-name{ font-size:1.35rem; }
}
@media (max-width: 767.98px){
  .ep-dash-avatar{ width:88px; height:88px; align-self:start; border-radius:var(--ep-radius-md); }
  .ep-dash-avatar-init{ font-size:2rem; }
  .ep-dash-main{ padding:var(--ep-sp-4); }
  .ep-dash-name{ font-size:1.3rem; }
}

/* v7 change 3 — topbar profile dropdown identity header (avatar +
   name + mobile/email/plan/address lines) and the /wallet#withdraw
   anchor offset so the fixed topbar never covers the withdraw card. */
.up-dropdown-head { display: flex; gap: .6rem; align-items: flex-start; }
.up-dd-avatar { flex: 0 0 auto; width: 40px; height: 40px; font-size: 1.05rem; }
.up-dd-info { min-width: 0; }
.up-dd-info .em { margin-top: .1rem; }
#withdraw { scroll-margin-top: 96px; }

/* --- v8.1: fixed sidebar (desktop) + dashboard tabs + district combobox ---
   Owner report (2026-11-10): dashboard sections slid UNDER the left
   sidebar. Root cause was a markup bug — dashboard.php carried two
   stray </div>s that closed .up-body/.up-shell early, so everything
   after them rendered outside the flex shell at full width (fixed in
   the view; the file's div balance is verified in the smoke). The
   rules below are the structural guarantee on top: on desktop the
   sidebar is IN-FLOW inside .up-row (sticky, capped at the viewport
   height, own overflow scroll) and the body needs NO margin-left —
   so the footer, a direct child of .up-shell, spans the full width
   below both. The mobile drawer (< 992px) is untouched. */
@media (min-width: 992px) {
  .up-sidebar { position: sticky; top: 0; height: auto; max-height: 100vh; max-height: 100dvh; min-height: 0; }
  .up-body { margin-left: 0; min-height: 0; }
}
/* Dashboard tabbed card (v8.1) — W5-tabs (TABS RULE, 2026-11-26): one line,
 * never wraps, never scrolls. Tabs share the row equally (flex:1, min-width:0);
 * the decorative emoji is wrapped in .up-tab-ico by the views and hidden here
 * (emoji are text nodes, no other way to hide them); 11px text, tight padding.
 * The Others dropdown button is a tab too and follows the same sizing. */
.up-dash-tabbar { display: flex; flex-wrap: nowrap; gap: 4px; border-bottom: 1px solid var(--ep-border); padding-bottom: .6rem; margin-bottom: .9rem; }
.up-dash-tab { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; border: 1px solid var(--ep-border); background: var(--ep-card); color: var(--ep-text-2); border-radius: var(--ep-radius-pill); padding: .4rem .45rem; font-size: 11px; font-weight: 600; cursor: pointer; }
.up-dash-tabbar .up-tab-ico { display: none; }
.up-dash-others { flex: 1 1 0; min-width: 0; }
.up-dash-others > .up-dash-tab { width: 100%; }
.up-dash-tab:hover { border-color: var(--ep-primary); color: var(--ep-primary); }
.up-dash-tab.active { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }
.up-dash-others { position: relative; }
.up-dash-others-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; background: var(--ep-card); border: 1px solid var(--ep-border); border-radius: var(--ep-radius-lg); box-shadow: var(--ep-shadow-lg); padding: .35rem; z-index: 1050; }
.up-dash-others-menu button { display: flex; width: 100%; gap: .5rem; align-items: center; padding: .45rem .6rem; border: 0; background: none; color: var(--ep-text); border-radius: var(--ep-radius); cursor: pointer; text-align: left; }
.up-dash-others-menu button:hover { background: var(--ep-bg); }
/* v9.53 — team card text overflow (smaller desktop widths): the text
   column in team.php carries class "min-w-0", but that utility does not
   exist in Bootstrap 5 or in this codebase, so the flex item kept
   min-width:auto and could not shrink below its min-content width
   (the nowrap team name alone is ~245px) — the whole column spilled
   past the card and the page gained up to ~200px of horizontal scroll.
   Define the utility (also fixes the same latent bug in
   notifications.php + membership/index.php, which carry the class too),
   let the badge wrap inside team cards (its nowrap pill is the widest
   unbreakable run), and let the text column break long words. */
.min-w-0 { min-width: 0; }
/* v9.42 — big team cards on /team (photo 96px, stars, address). */
.team-big { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,255,255,.65); border: 1px solid var(--ep-border); border-radius: var(--ep-radius-lg); padding: .9rem; margin-bottom: .6rem; }
.team-big > .flex-grow-1 { min-width: 0; overflow-wrap: break-word; }
.team-big .ep-leader-badge { white-space: normal; }
.team-big-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid #fff; box-shadow: var(--ep-shadow-lg); background: var(--ep-bg); }
.team-big-stars { color: #F59E0B; letter-spacing: 2px; }
.team-big-stars .off { color: var(--ep-border); }
/* v9.53 — below xxl the 1/3-width column leaves the text column almost
   no room (at 1024px the 96px photo + rank pill + gaps already exceed
   the card's inner width), so let the card wrap: rank + photo share
   the first line, the text drops below at full width. Desktop only
   (992–1399.98px) — the mobile layout is untouched. */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .team-big { flex-wrap: wrap; }
  .team-big > .flex-grow-1 { flex: 1 1 100%; }
  .team-big-photo { width: 72px; height: 72px; }
}
/* v9.43 — dashboard banners: one image, never stretched (cover crop);
   mobile 4:3, desktop 21:4. Dots sit on the image. */
.ep-dash-banners { position: relative; }
.ep-dash-banner { display: none; aspect-ratio: 4/3; border-radius: var(--ep-radius-lg); overflow: hidden; box-shadow: var(--ep-shadow-lg); }
.ep-dash-banner.active { display: block; }
.ep-dash-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .ep-dash-banner { aspect-ratio: 21/4; } }
.ep-dash-banner-dots { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); display: flex; gap: .4rem; }
.ep-dash-banner-dots button { width: .6rem; height: .6rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.ep-dash-banner-dots button.on { background: #fff; }
/* v9.43 — admin size-guide crop preview. v9.49: desktop ratio 21:4 (live + preview, matches owner's 1229x235 image); mobile preview stays 8/3 (live 4/3). */
.banner-guide-desktop { aspect-ratio: 21/4; border-radius: var(--ep-radius-lg); overflow: hidden; background: var(--ep-bg); }
.banner-guide-mobile { aspect-ratio: 8/3; border-radius: var(--ep-radius-lg); overflow: hidden; background: var(--ep-bg); }
.banner-guide-desktop img, .banner-guide-mobile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.up-dash-panel[hidden] { display: none; }
/* v8.4 (owner): DASHBOARD tabbed card only — its tab strip is
   restyled to the classic Bootstrap 5 nav-tabs look from the
   owner's reference image: a row of plain links sitting on a
   bottom border line, and the ACTIVE tab boxed (surface
   background, border on top/left/right) with its bottom edge
   merging into the panel area below. Scoped to the
   .up-tabs-bootstrap modifier so the referral / team-leader
   tabbed cards (same .up-dash-tab classes) keep the pill style
   above. Metrics mirror Bootstrap 5.3 .nav-tabs (1px border,
   .5rem 1rem padding, .375rem top corners, -1px bottom overlap).
   Dark mode: the active surface is var(--ep-card) — the exact
   token .ep-card itself uses — so the box never glares white. */
.up-tabs-bootstrap .up-dash-tabbar { gap: 2px; padding-bottom: 0; margin-bottom: 1rem; }
.up-tabs-bootstrap .up-dash-tab { border: 1px solid transparent; border-radius: var(--ep-radius-sm) var(--ep-radius-sm) 0 0; background: transparent; color: var(--ep-primary); padding: .5rem 1rem; margin-bottom: -1px; font-size: .95rem; }
.up-tabs-bootstrap .up-dash-tab:hover { background: var(--ep-surface-2); border-color: var(--ep-border); color: var(--ep-primary); }
.up-tabs-bootstrap .up-dash-tab.active { background: var(--ep-card); border-color: var(--ep-border); border-bottom-color: var(--ep-card); color: var(--ep-text); }
/* Profile district combobox (v8.1) */
.ep-combo { position: relative; }
.ep-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1050; max-height: 260px; overflow-y: auto; background: var(--ep-card); border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); box-shadow: var(--ep-shadow); padding: .3rem; }
.ep-combo-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .45rem .6rem; border-radius: var(--ep-radius-sm); color: var(--ep-text); cursor: pointer; }
.ep-combo-item:hover { background: var(--ep-primary-soft); }

/* --- v8.8: responsive card tables + phone header boxes (owner, 2026-11-10) ---
 * (1) TABLES: the owner's screenshot showed the dashboard's recent-
 * transactions table forcing LEFT-RIGHT scrolling on a phone (long
 * reference codes). From v8.8 every content table in the USER panel
 * carries the opt-in class .ep-table-cards (30 tables, 16 views);
 * app.js copies each column's header text into the cells as
 * data-label and flags the table data-ep-cards="on", and under
 * 768px the rules below render each ROW as a stacked card — header
 * row hidden, every cell a label + value line, long values wrapping
 * with break-all — so no user-panel table can scroll sideways on a
 * phone. Desktop rendering is byte-for-byte the Bootstrap table as
 * before (no rule below applies above 768px). Tables with no usable
 * header row (the two-column membership split tables) never get the
 * data-ep-cards flag and keep the plain rendering — two columns fit
 * any phone. Admin-panel tables are OUT of scope (owner flagged
 * user-facing pages) and carry neither the class nor the flag.
 * (2) PHONE HEADER: below 768px the v8.3 header grid stays, but the
 * two money cells (.ep-dash-box: মোট ব্যালেন্স + আমার জামানত) now
 * render as real BOXES in the stat-card visual language (.ep-stat:
 * --ep-card surface, 1px --ep-border, radius-lg, shadow-xs) inside
 * the 2-column money grid — the owner's phone layout: profile block
 * on top, balance | জামানত boxes in the middle, the two action
 * buttons side by side at the bottom. The inner line colours flip
 * from the on-gradient whites to the text tokens so everything
 * stays readable on the surface; amounts and their sources are
 * untouched. Tablet (768–991px) and desktop keep the v8.3/v7.3
 * presentation exactly.
 * (3) V8.9 POLISH: the owner confirmed the cards work but found
 * the text sizes and alignment inside them untidy — labels and
 * values drifted off a shared grid, the amount row wandered, the
 * vertical rhythm was uneven. The cell rules below are now ONE
 * strict system for every flagged table: the label column is a
 * fixed flex basis (32%, min 92px) so every value starts at the
 * same x; labels are uniformly .8rem/600 in the muted token and
 * values .95rem in the text token on one line-height (1.45),
 * baseline-aligned; cells never wrap under their label
 * (flex-wrap:nowrap — long values wrap INSIDE the value column
 * via break-all, never narrowing the label column); every cell
 * row gets a uniform 10px vertical padding and a hairline
 * divider (the first row has none) and cards a uniform 14px
 * padding; value children lose any auto/left margin so nothing
 * (e.g. an amount pushed right by a utility class) can drift
 * out of the column — an amount may stay bold via its markup,
 * nothing else is special-cased. No per-table exceptions.
 * Desktop (>768px) is untouched, as before. */
@media (max-width: 768px){
  table.ep-table-cards[data-ep-cards="on"]{ display:block; width:100%; }
  table.ep-table-cards[data-ep-cards="on"]>thead{ display:none; }
  table.ep-table-cards[data-ep-cards="on"]>tbody{ display:block; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr{ display:block; background:var(--ep-card);
    border:1px solid var(--ep-border); border-radius:var(--ep-radius-lg);
    box-shadow:var(--ep-shadow-xs); padding:14px; margin:0 0 .6rem; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr:last-child{ margin-bottom:0; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td{ display:flex; align-items:baseline;
    flex-wrap:nowrap; justify-content:flex-start; column-gap:.75rem; border:0;
    padding:10px 0; background:transparent; box-shadow:none; text-align:left;
    font-size:.95rem; line-height:1.45; color:var(--ep-text);
    word-break:break-all; overflow-wrap:anywhere; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td:not(:first-child){
    border-top:1px solid var(--ep-border); }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td>*{ min-width:0;
    margin-left:0; margin-inline-start:0; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td::before{ content:attr(data-label);
    flex:0 0 32%; min-width:92px; font-size:.8rem; font-weight:600; line-height:1.45;
    color:var(--ep-text-2); word-break:normal; overflow-wrap:break-word; }
  table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td:not([data-label])::before{ content:none; }
}
/* --- v9.75 batch 66: history-table headers, BOLD BLUE labels, NO background
 * (owner 2026-11-22 — batch 65's inverted backgrounds removed: no bg in
 * either theme; the header text itself is bold + brand blue via
 * var(--ep-primary): #2563EB light, #3B82F6 dark. Scoped to
 * .ep-history-head so the other card tables keep their current thead.
 * Colours only. */
table.ep-history-head>thead>tr>th{ background:transparent; color:var(--ep-primary); font-weight:700; }
@media (max-width:768px){
  table.ep-history-head[data-ep-cards="on"]>tbody>tr>td::before{ background:transparent; color:var(--ep-primary); font-weight:700; }
  /* Batch 65 — amount alignment: components.css `.ep-user .stacked
   * tbody td.num` (0,3,2) beats the card rule's `justify-content:
   * flex-start` (0,2,4), so the bare amount text node is the only
   * value pushed to the right edge on mobile cards. This (0,3,4)
   * override puts it back onto the shared value edge. */
  table.ep-history-head[data-ep-cards="on"]>tbody>tr>td.text-end{ justify-content:flex-start; }
}
/* --- v9.75 batch 67: td.num alignment, ALL stacked card tables
 * (owner 2026-11-22 — batch 65 fixed this only for the two history
 * tables; the same drift hit every other `.stacked` table — measured
 * on /earn, amount left edge 304 vs shared value edge 164 (+140px).
 * components.css `.ep-user .stacked tbody td.num` (0,3,2) beats the
 * card rule's flex-start, so the bare amount text is pushed to the
 * right edge on mobile cards. This (0,3,3) rule puts every stacked
 * .num cell back onto the shared value edge. Scoped to <=599px to
 * match the components.css rule it overrides; desktop
 * text-align:right is untouched. Layout only, no text sizing. */
@media (max-width:599px){
  .ep-user .stacked tbody tr td.num{ justify-content:flex-start; }
}
@media (max-width: 767.98px){
  .ep-dash-hero .ep-dash-money{ align-items:stretch; }
  .ep-dash-hero .ep-dash-box{ background:var(--ep-card); color:var(--ep-text);
    border:1px solid var(--ep-border); border-radius:var(--ep-radius-lg);
    box-shadow:var(--ep-shadow-xs); padding:.8rem .9rem; min-width:0; }
  .ep-dash-hero .ep-dash-bal-label{ color:var(--ep-text-2); }
  .ep-dash-hero .ep-dash-bal-sub{ color:var(--ep-text-2); }
  .ep-dash-hero .ep-dash-col-label{ color:var(--ep-text-2); }
  .ep-dash-hero .ep-dash-col-line{ color:var(--ep-text-2); }
  .ep-dash-hero .ep-dash-col-line a{ color:var(--ep-primary); }
}

/* --- v9.8: dashboard hero two-card row (owner, 2026-11-10) ---
 * The hero splits: BLUE card = photo + identity only; WHITE card
 * beside it (same row, same height) = মোট ব্যালেন্স + আমানত |
 * আজকের আয় + গতকালের আয় + two smaller Deposit/Withdraw buttons.
 * The row is display:flex with align-items:stretch, so both cards
 * share the taller card's height. The blue card's content is
 * unchanged (same avatar, same identity lines, same padding), so
 * the row is exactly as tall as the old single hero for a full
 * identity; the white card is deliberately compact (1.2rem values,
 * 36px buttons, .85rem padding) so it never stretches the row.
 * Tablet keeps the one-row layout (smaller type); phones stack the
 * cards with the stats in a 2x2 grid and the buttons side by side. */
.ep-dash-hero-row{ display:flex; align-items:stretch; gap:var(--ep-sp-4); }
.ep-dash-hero-row .ep-dash-hero{ flex:1 1 0; min-width:0; }
.ep-dash-white{ flex:1 1 0; min-width:0; display:flex; flex-direction:column;
  background:var(--ep-card); color:var(--ep-text); border:1px solid var(--ep-border);
  border-radius:var(--ep-radius-xl); box-shadow:var(--ep-shadow-xs); padding:.85rem 1rem; }
.ep-dash-white .ep-dash-money{ display:grid; grid-template-columns:1fr 1fr;
  gap:.55rem 1rem; margin-left:0; align-items:start; flex:1 1 auto; }
.ep-dash-white .ep-dash-balance{ min-width:0; }
.ep-dash-white .ep-dash-col{ min-width:0; padding:0; }
.ep-dash-white .ep-dash-bal-label{ color:var(--ep-text-2); font-size:.85rem; font-weight:600; }
.ep-dash-white .ep-dash-bal-value{ color:var(--ep-text); font-size:1.2rem; font-weight:700; line-height:1.2; }
.ep-dash-white .ep-dash-bal-sub{ color:var(--ep-text-2); font-size:.8rem; margin-top:2px; }
.ep-dash-white .ep-dash-col-label{ color:var(--ep-text-2); font-size:.85rem; font-weight:600; }
.ep-dash-white .ep-dash-col-value{ color:var(--ep-text); font-size:1.2rem; font-weight:700; line-height:1.25; }
.ep-dash-white .ep-dash-col-line{ color:var(--ep-text-2); font-size:.8rem; margin-top:.3rem; }
.ep-dash-white .ep-dash-col-line a{ color:var(--ep-primary); }
.ep-dash-white .ep-dash-actions{ flex-direction:row; min-width:0; margin-top:.6rem; }
.ep-dash-white .ep-dash-actions .ep-dash-btn{ flex:1; }
.ep-dash-btn-sm{ height:36px; padding:0 .9rem; font-size:.92rem; }
@media (max-width: 991.98px){
  .ep-dash-white .ep-dash-bal-value{ font-size:1.15rem; }
  .ep-dash-white .ep-dash-col-value{ font-size:1.15rem; }
  .ep-dash-btn-sm{ height:34px; font-size:.85rem; padding:0 .7rem; }
}
@media (max-width: 767.98px){
  .ep-dash-hero-row{ flex-direction:column; }
  .ep-dash-white .ep-dash-bal-value{ font-size:1.3rem; }
  .ep-dash-white .ep-dash-col-value{ font-size:1.3rem; }
}

/* --- v9.10: shared colorful tints (owner, 2026-11-10) ---
 * REUSABLE tint system for the colorful redesign. Dashboard uses it
 * first; later pages (wallet, staff, support, profile) reuse these
 * SAME classes in their views — no new CSS per page. Colors are
 * color-mix() blends of the theme hues over the card surface, so
 * the tints stay clearly visible in light mode and adapt to dark
 * mode automatically. v9.10.1: blends strengthened (16-22% hue) to
 * match the vivid pastels in the owner's screenshots — the first
 * version's soft-token fills were too pale to see. NO text-size
 * rules here — text sizes stay exactly as they are. */
.ep-tint-blue{ background:color-mix(in srgb, var(--ep-primary) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-primary) 38%, transparent); }
.ep-tint-green{ background:color-mix(in srgb, var(--ep-accent) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-accent) 38%, transparent); }
.ep-tint-amber{ background:color-mix(in srgb, var(--ep-warning) 18%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-warning) 42%, transparent); }
.ep-tint-purple{ background:color-mix(in srgb, var(--ep-purple) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-purple) 36%, transparent); }
.ep-tint-rose{ background:color-mix(in srgb, var(--ep-danger) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-danger) 36%, transparent); }
.ep-hero-wash{ background:linear-gradient(135deg, color-mix(in srgb, var(--ep-primary) 18%, var(--ep-card)) 0%, var(--ep-card) 55%, color-mix(in srgb, var(--ep-accent) 18%, var(--ep-card)) 100%); }
/* Stronger icon chips to match (shared .ep-stat-icon variants). */
.ep-stat-icon{ background:color-mix(in srgb, var(--ep-primary) 18%, var(--ep-card)); }
.ep-stat-icon.accent{ background:color-mix(in srgb, var(--ep-accent) 18%, var(--ep-card)); }
.ep-stat-icon.warning{ background:color-mix(in srgb, var(--ep-warning) 22%, var(--ep-card)); }
.ep-stat-icon.danger{ background:color-mix(in srgb, var(--ep-danger) 18%, var(--ep-card)); }
/* Dashboard tabbed card only: the active tab keeps the v8.4 boxed
 * nav-tabs shape, but gets a clearly visible blue fill. Inactive
 * tabs are untouched. */
.up-tabs-bootstrap .up-dash-tab.active{ background:color-mix(in srgb, var(--ep-primary) 16%, var(--ep-card)); color:var(--ep-primary-dark); }
/* --- v9.11: colorful design system + shell (owner brief, 2026-11-10) ---
 * Design-system layer for the full user-panel redesign. Tokens for the
 * brief palette (purple/cyan/pink/orange + five named gradients) live in
 * tokens.css; this block adds the reusable classes every later page
 * reuses: two extra tints, gradient fills, gradient icon chips,
 * gradient + soft buttons, and lightweight animations (150-350ms,
 * disabled under prefers-reduced-motion). The sidebar becomes the
 * brief's dark blue-to-purple gradient; the balance pill becomes a
 * green-to-cyan gradient. No text-size rules here — text sizes stay
 * exactly as they are. */
.ep-tint-cyan{ background:color-mix(in srgb, var(--ep-cyan) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-cyan) 38%, transparent); }
.ep-tint-pink{ background:color-mix(in srgb, var(--ep-pink) 16%, var(--ep-card)); border-color:color-mix(in srgb, var(--ep-pink) 38%, transparent); }
.ep-grad-blue-purple{ background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; }
.ep-grad-cyan-blue{ background:linear-gradient(135deg,#06B6D4,#2563EB); color:#fff; }
.ep-grad-purple-pink{ background:linear-gradient(135deg,#7C3AED,#EC4899); color:#fff; }
.ep-grad-green-cyan{ background:linear-gradient(135deg,#10B981,#06B6D4); color:#fff; }
.ep-grad-orange-yellow{ background:linear-gradient(135deg,#F59E0B,#FACC15); color:#fff; }
.ep-ico-grad{ display:inline-grid; place-items:center; width:44px; height:44px; border-radius:12px; color:#fff; box-shadow:var(--ep-shadow-sm); flex:0 0 auto; }
.ep-ico-grad-blue-purple{ background:linear-gradient(135deg,#2563EB,#7C3AED); }
.ep-ico-grad-cyan-blue{ background:linear-gradient(135deg,#06B6D4,#2563EB); }
.ep-ico-grad-purple-pink{ background:linear-gradient(135deg,#7C3AED,#EC4899); }
.ep-ico-grad-green-cyan{ background:linear-gradient(135deg,#10B981,#06B6D4); }
.ep-ico-grad-orange{ background:linear-gradient(135deg,#F59E0B,#F97316); }
.btn-grad{ background:linear-gradient(135deg,#2563EB,#7C3AED); border-color:transparent; color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.3); transition:transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.btn-grad:hover,.btn-grad:focus{ background:linear-gradient(135deg,#1D4ED8,#6D28D9); color:#fff; transform:translateY(-1px); box-shadow:0 8px 18px rgba(37,99,235,.38); }
.btn-grad-green{ background:linear-gradient(135deg,#10B981,#06B6D4); border-color:transparent; color:#fff; box-shadow:0 4px 12px rgba(16,185,129,.3); transition:transform .2s ease, box-shadow .2s ease; }
.btn-grad-green:hover,.btn-grad-green:focus{ background:linear-gradient(135deg,#059669,#0891B2); color:#fff; transform:translateY(-1px); }
.btn-grad-orange{ background:linear-gradient(135deg,#F59E0B,#F97316); border-color:transparent; color:#fff; box-shadow:0 4px 12px rgba(245,158,11,.3); transition:transform .2s ease, box-shadow .2s ease; }
.btn-grad-orange:hover,.btn-grad-orange:focus{ background:linear-gradient(135deg,#D97706,#EA580C); color:#fff; transform:translateY(-1px); }
.btn-soft-blue{ background:var(--ep-primary-soft); color:var(--ep-primary-dark); border-color:transparent; }
.btn-soft-blue:hover,.btn-soft-blue:focus{ background:#DBEAFE; color:var(--ep-primary-dark); }
@keyframes ep-fade-in{ from{opacity:0} to{opacity:1} }
@keyframes ep-slide-up{ from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none} }
.ep-anim-fade-in{ animation:ep-fade-in .25s ease both; }
.ep-anim-slide-up{ animation:ep-slide-up .3s ease both; }
.ep-hover-lift{ transition:transform .2s ease, box-shadow .2s ease; }
.ep-hover-lift:hover{ transform:translateY(-2px); box-shadow:var(--ep-shadow); }
@media (prefers-reduced-motion: reduce){ .ep-anim-fade-in,.ep-anim-slide-up{ animation:none; } .ep-hover-lift,.btn-grad,.btn-grad-green,.btn-grad-orange,.up-icon-btn{ transition:none; } .ep-hover-lift:hover,.btn-grad:hover,.btn-grad-green:hover,.btn-grad-orange:hover,.up-icon-btn:hover{ transform:none; } }
/* Sidebar: dark blue-to-purple gradient (brief section 4). Links turn
 * soft lavender, hover is a translucent white pill, the active link is
 * a blue-to-purple gradient pill with a glow. Group headings stay
 * muted lavender; the brand mark gets the gradient + glow. */
.up-sidebar{ background:linear-gradient(180deg,#1E3A8A 0%,#1E40AF 42%,#4C1D95 100%); border-right:0; }
.up-side-brand .up-side-name{ color:#fff; }
.up-side-brand .up-side-mark{ background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; box-shadow:0 4px 14px rgba(37,99,235,.5); }
.up-side-group{ color:rgba(219,234,254,.65); }
.up-side-link{ color:#C7D2FE; }
.up-side-link:hover{ background:rgba(255,255,255,.12); color:#fff; }
.up-side-link.active{ background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; box-shadow:0 6px 16px rgba(37,99,235,.45); }
.up-side-toggle{ color:rgba(219,234,254,.65); }
.up-side-toggle:hover{ color:#fff; }
/* Header: wallet pill becomes a green-to-cyan gradient (brief
 * section 5); avatar gets a soft primary ring; topbar gains a
 * soft shadow; header icon buttons lift a touch on hover. */
.up-topbar{ box-shadow:var(--ep-shadow-xs); }
.ep-balance{ background:linear-gradient(135deg,#10B981,#06B6D4); color:#fff; box-shadow:0 4px 12px rgba(16,185,129,.3); }
.ep-balance:hover{ background:linear-gradient(135deg,#059669,#0891B2); color:#fff; }
[data-theme="dark"] .ep-balance{ color:#fff; }
.up-avatar-btn .ep-avatar{ box-shadow:0 0 0 2px var(--ep-card), 0 0 0 4px rgba(37,99,235,.45); }
.up-icon-btn{ transition:transform .2s ease, color var(--ep-transition), border-color var(--ep-transition); }
.up-icon-btn:hover{ transform:translateY(-1px); }

/* --- v9.12: dashboard big-icon redesign (owner, 2026-11-10) ---
 * Icons grow to match the owner's screenshot: sidebar icons scale up,
 * activity chips become 64px gradient tiles, quick-tile icons get
 * 52px chips, the hero gains a coins + up-arrow illustration, the
 * white card's four money boxes become colorful pills, the yellow
 * announcement bar sits under the hero, and the tabbed card's active
 * tab turns into a blue-to-purple gradient. Text sizes are untouched
 * (no size rules in this block -- icons grow via transform scale). */
.ep-dash-hero-art{ flex:0 0 auto; align-self:center; width:140px; height:auto; margin-inline-end:1.1rem; }
@media (max-width: 991.98px){ .ep-dash-hero-art{ display:none; } }
/* v9.75 — site-wide hero art: a built-in SVG rendered in the dash-art slot
 * scales to the slot width (the SVG itself is 130x130). */
.ep-dash-hero-art svg{ width:100%; height:auto; display:block; }
/* v9.75 — hero-art picker (Admin -> Membership -> Settings): radio cards
 * with a live preview of each built-in illustration. */
.ep-hero-pick{ display:inline-flex; flex-direction:column; align-items:center; gap:.25rem; padding:.5rem .6rem; border:1px solid var(--bs-border-color, #dee2e6); border-radius:.75rem; cursor:pointer; }
.ep-hero-pick-on{ border-color:#2563EB; box-shadow:0 0 0 2px rgba(37,99,235,.25); }
.ep-hero-pick svg{ width:56px; height:56px; }
.ep-hero-pick .ep-hero-pick-ph{ width:56px; height:56px; display:flex; align-items:center; justify-content:center; border:1px dashed var(--bs-border-color, #dee2e6); border-radius:.5rem; color:#64748B; }
.ep-hero-pick input{ accent-color:#2563EB; }
.up-side-link .up-side-ico{ width:1.7rem; transform:scale(1.55); }
.ep-dash-white .ep-dash-money > div{ padding:.6rem .75rem; border-radius:12px; border:1px solid transparent; }
.ep-stat-icon-lg{ width:64px; height:64px; border-radius:16px; background:linear-gradient(135deg,#2563EB,#06B6D4); color:#fff; box-shadow:0 4px 12px rgba(37,99,235,.35); }
.ep-stat-icon-lg.accent{ background:linear-gradient(135deg,#7C3AED,#EC4899); box-shadow:0 4px 12px rgba(124,58,237,.35); }
.ep-stat-icon-lg.warning{ background:linear-gradient(135deg,#F59E0B,#F97316); box-shadow:0 4px 12px rgba(245,158,11,.35); }
.ep-stat-icon-lg.danger{ background:linear-gradient(135deg,#F43F5E,#EC4899); box-shadow:0 4px 12px rgba(244,63,94,.35); }
.ep-ico-glyph{ display:inline-block; transform:scale(1.55); line-height:1; }
.up-quick .ico{ width:52px; height:52px; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.8); }
.ep-dash-notice{ display:flex; align-items:center; gap:.6rem; background:linear-gradient(135deg,#FEF3C7,#FDE68A); border:1px solid #F59E0B; border-radius:12px; padding:.7rem .9rem; margin-top:.75rem; }
.ep-dash-notice-ico{ transform:scale(1.35); }
.ep-dash-notice-text{ flex:1 1 auto; min-width:0; }
.ep-dash-notice-x{ flex:0 0 auto; background:none; border:0; cursor:pointer; color:var(--ep-text-2); padding:.2rem .4rem; }
.up-tabs-bootstrap .up-dash-tab.active{ background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; border-color:transparent; }

/* --- v9.12.1: light gradient hero like the owner's reference banner (2026-11-10) ---
 * The solid blue hero is replaced by a light sky-blue gradient with soft
 * diagonal white streaks; hero text goes dark so it reads on the light
 * background. No text-size rules here. */
.ep-dash-hero{ background:
  repeating-linear-gradient(115deg, rgba(255,255,255,.38) 0 18px, rgba(255,255,255,0) 18px 64px),
  linear-gradient(120deg,#BFDBFE 0%,#DBEAFE 30%,#E0F2FE 55%,#BAE6FD 100%);
  color:var(--ep-text); }
.ep-dash-hero .ep-dash-meta{ color:var(--ep-text-2); }
/* --- v9.13: colorful tabs (owner brief, 2026-11-10) ---
 * The history page's server-side tabs get the same colorful active
 * fill as the dashboard's tabbed card (v9.10), through the shared
 * .ep-tabs class — any later page that marks its tab list .ep-tabs
 * gets the same treatment with no new CSS. No text-size rules here. */
.ep-tabs .nav-link.active{ background:color-mix(in srgb, var(--ep-primary) 16%, var(--ep-card)); color:var(--ep-primary-dark); }
/* --- v9.14: games (owner brief, 2026-11-10) ---
 * Gaming pages get the purple/pink identity: the wheel's winning
 * segment glows purple-to-pink instead of plain green. Per-game
 * card tints live in the views (spin purple, lucky box pink,
 * scratch amber, quiz blue, memory green) on the shared classes,
 * so no per-game CSS is needed. No text-size rules here. */
.seg-win{ background:linear-gradient(135deg,#7C3AED,#EC4899) !important; color:#fff !important; box-shadow:0 0 0 .3rem rgba(124,58,237,.3); }
/* --- v9.15: referral tabs (owner brief, 2026-11-10) ---
 * The referral page's tab bar gets the same colorful active fill
 * as the dashboard's tabbed card (v9.10), through its own
 * .up-dash-tabbar hook — the profile tabs reuse the shared
 * .ep-tabs class from v9.13 instead. No text-size rules here. */
.up-dash-tabbar .up-dash-tab.active{ background:color-mix(in srgb, var(--ep-primary) 16%, var(--ep-card)); color:var(--ep-primary-dark); }

/* --- v9.18: games page redesign (owner brief, 2026-11-11) ---
 * Reference-style hub: deep-blue hero with diagonal streaks, pastel
 * game cards carrying the same art pattern on every sector (streaks
 * + dot tile), outline play buttons, summary + income + activity
 * panels. No text-size rules here. */
.ep-games-hero{ background:repeating-linear-gradient(115deg, rgba(255,255,255,.16) 0 18px, rgba(255,255,255,0) 18px 64px), linear-gradient(120deg,#1D4ED8 0%,#2563EB 45%,#3B82F6 100%); border-radius:1rem; color:#fff; overflow:hidden; position:relative; }
.ep-games-hero h4{ color:#fff; }
.ep-games-hero .ep-hero-sub{ color:rgba(255,255,255,.92); }
.ep-hero-cta{ background:#fff; color:#1D4ED8; border-radius:999px; display:inline-block; padding:.5rem 1.1rem; font-weight:700; text-decoration:none; }
.ep-hero-cta:hover{ color:#1E40AF; text-decoration:none; }
.ep-games-hero-art{ width:210px; max-width:44%; height:auto; flex-shrink:0; }
.ep-games-summary{ position:relative; overflow:hidden; }
.ep-games-summary::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 88% 10%, rgba(37,99,235,.10) 0 42px, transparent 43px), radial-gradient(circle, rgba(37,99,235,.09) 1.5px, transparent 1.6px); background-size:auto, 22px 22px; pointer-events:none; }
.ep-games-summary > *{ position:relative; z-index:1; }
.ep-sum-row{ display:flex; justify-content:space-between; gap:.75rem; padding:.45rem 0; border-bottom:1px dashed rgba(100,116,139,.3); }
.ep-sum-row:last-child{ border-bottom:0; }
.ep-gcard{ border-radius:1rem; padding:1rem 1.1rem; position:relative; overflow:hidden; border:1px solid transparent; }
.ep-gcard::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle, rgba(255,255,255,.55) 1.5px, transparent 1.7px); background-size:22px 22px; pointer-events:none; }
.ep-gcard::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:74px; background:repeating-linear-gradient(115deg, rgba(255,255,255,.30) 0 12px, rgba(255,255,255,0) 12px 46px); pointer-events:none; }
.ep-gcard > *{ position:relative; z-index:1; }
.ep-gcard-memory{ background:linear-gradient(160deg,#F3E8FF,#EDE9FE); border-color:#E9D5FF; }
.ep-gcard-quiz{ background:linear-gradient(160deg,#DCFCE7,#ECFDF5); border-color:#BBF7D0; }
.ep-gcard-scratch_card{ background:linear-gradient(160deg,#FFEDD5,#FFF7ED); border-color:#FED7AA; }
.ep-gcard-lucky_box{ background:linear-gradient(160deg,#D9F4EB,#ECFDF5); border-color:#A7F3D0; }
.ep-gcard-spin_wheel{ background:linear-gradient(160deg,#DBEAFE,#EFF6FF); border-color:#BFDBFE; }
.ep-gcard h3{ color:#1E1B4B; }
.ep-gcard .ep-gcard-desc{ color:#475569; }
.ep-games-badge{ background:rgba(255,255,255,.78); border-radius:999px; padding:.1rem .55rem; }
.ep-pool-list{ list-style:none; padding-left:0; columns:2; }
.ep-pool-list li{ break-inside:avoid; }
.ep-gcard-art{ width:118px; height:auto; flex-shrink:0; }
.ep-play-btn{ display:inline-block; background:#fff; border:1.5px solid; border-radius:999px; padding:.42rem 1.15rem; font-weight:700; text-decoration:none; }
.ep-play-btn:hover{ text-decoration:none; }
.ep-gcard-memory .ep-play-btn{ color:#7C3AED; border-color:#7C3AED; }
.ep-gcard-quiz .ep-play-btn{ color:#15803D; border-color:#15803D; }
.ep-gcard-scratch_card .ep-play-btn{ color:#C2410C; border-color:#C2410C; }
.ep-gcard-lucky_box .ep-play-btn{ color:#047857; border-color:#047857; }
.ep-gcard-spin_wheel .ep-play-btn{ color:#1D4ED8; border-color:#1D4ED8; }
.ep-income-chip{ background:var(--ep-card); border:1px solid rgba(100,116,139,.3); border-radius:.85rem; padding:.7rem .8rem; text-align:center; }
.ep-activity-row{ display:flex; gap:.6rem; align-items:flex-start; padding:.5rem 0; border-bottom:1px dashed rgba(100,116,139,.3); }
.ep-activity-row:last-child{ border-bottom:0; }
.ep-panel-pattern{ position:relative; overflow:hidden; }
.ep-panel-pattern::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 92% 8%, rgba(124,58,237,.10) 0 46px, transparent 47px), radial-gradient(circle, rgba(124,58,237,.08) 1.5px, transparent 1.6px); background-size:auto, 22px 22px; pointer-events:none; }
.ep-panel-pattern > *{ position:relative; z-index:1; }

/* --- v9.18.1: games bottom fix (owner report, 2026-11-11) ---
 * Income chips become a balanced flex row (2 per row on phones, 3 per
 * row on desktop, the last row grows to fill); the prize list goes back
 * to a single column so long labels stop wrapping mid-amount.
 * No text-size rules here. */
.ep-income-chips{ display:flex; flex-wrap:wrap; gap:.5rem; }
.ep-income-chip{ flex:1 1 45%; }
@media (min-width:768px){ .ep-income-chip{ flex-basis:28%; } }
.ep-pool-list{ columns:1; }

/* --- v9.18.2: games bottom panels — color + CSS (owner ask, 2026-11-11) ---
 * Income chips take the shared five tints with a matching dark amount;
 * activity rows become soft cards (green for wins, grey for zero plays);
 * each panel gets a colored top border. No text-size rules here. */
.ep-games-income{ border-top:4px solid #2563EB; }
.ep-games-activity{ border-top:4px solid #059669; }
.ep-income-chip.ep-tint-blue{ background:#DCE6FC; border-color:#BFDBFE; }
.ep-income-chip.ep-tint-blue strong{ color:#1E40AF; }
.ep-income-chip.ep-tint-green{ background:#D9F4EB; border-color:#A7F3D0; }
.ep-income-chip.ep-tint-green strong{ color:#065F46; }
.ep-income-chip.ep-tint-amber{ background:#FDEED3; border-color:#FDE68A; }
.ep-income-chip.ep-tint-amber strong{ color:#92400E; }
.ep-income-chip.ep-tint-purple{ background:#EADFFC; border-color:#DDD6FE; }
.ep-income-chip.ep-tint-purple strong{ color:#5B21B6; }
.ep-income-chip.ep-tint-rose{ background:#FCE1E1; border-color:#FECDD3; }
.ep-income-chip.ep-tint-rose strong{ color:#9F1239; }
.ep-activity-row{ border-radius:10px; padding:.55rem .75rem; margin-bottom:.5rem; }
.ep-activity-row:last-child{ margin-bottom:0; }
.ep-activity-row.ep-act-win{ background:#F0FDF4; border:1px solid #BBF7D0; }
.ep-activity-row.ep-act-zero{ background:#F8FAFC; border:1px solid #E2E8F0; }
.ep-act-ico{ display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#DCFCE7; flex:none; }

/* --- v9.19: games bottom panels redesigned to the owner's reference (2026-11-11) ---
 * Income panel: 5 stats in a row (tinted circle icon + label + big value)
 * with a gradient details button; activity panel: one progress row per game
 * with a gradient see-all button. The v9.18.2 colored top borders are
 * dropped to match the reference. Stat values reuse Bootstrap .h4, so no
 * text-size rules are added here. */
.ep-games-income{ border-top:0; }
.ep-games-activity{ border-top:0; }
.ep-stat-ico{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; flex:none; }
.ep-stat-ico.ep-ico-sm{ width:36px; height:36px; }
.ep-games-stats{ display:flex; flex-wrap:wrap; }
.ep-gstat{ flex:1 1 30%; text-align:center; padding:.25rem .5rem; }
@media (min-width:768px){ .ep-gstat{ flex-basis:18%; } .ep-gstat + .ep-gstat{ border-left:1px solid #E2E8F0; } }
.ep-progress-row{ display:flex; align-items:center; gap:.5rem; padding:.55rem 0; border-bottom:1px solid #E2E8F0; }
.ep-progress-row:last-child{ border-bottom:0; }

/* --- v9.20: wide-screen layout (owner ask, 2026-11-11) ---
 * At 1080p/4K the content sat in a 1200px column (components.css
 * .ep-main) with empty gutters on both sides, while 720p filled the
 * width because its viewport was narrower than the cap. The user-panel
 * main is now fluid, so the content uses the full width at every
 * desktop size. The left sidebar is anchored top AND bottom (with
 * height:auto, so the bottom anchor is not ignored) and spans the
 * full left side. No text-size rules are added here. */
.up-main{ max-width:none; }
@media (min-width:992px){ .up-sidebar{ top:0; bottom:0; height:auto; max-height:100vh; max-height:100dvh; } }

/* --- v9.21.1: Games Arena, light theme (owner-approved, 2026-11-11) ---
 * The dark navy + gold arena (v9.21) clashed with the site's light
 * theme once installed, so the SAME layout is recolored to the site
 * palette: light page, gradient title and Play buttons, one pastel
 * tint per game card and per summary stat, white bottom panels.
 * Sizes come from Bootstrap classes, so no text-size rules are
 * added here. */
.ep-arena{ background:transparent; padding:0; color:#0F172A; }
.ep-arena-title{ background:linear-gradient(90deg,#1E40AF,#7C3AED); -webkit-background-clip:text; background-clip:text; color:transparent; letter-spacing:.04em; }
.ep-arena-sub{ color:#64748B; }
.ep-arena-bal{ background:linear-gradient(135deg,#10B981,#06B6D4); border:0; border-radius:999px; padding:.5rem 1rem; font-weight:700; color:#fff; box-shadow:0 4px 12px rgba(16,185,129,.35); }
.ep-arena-tabs{ display:flex; flex-wrap:wrap; gap:.5rem; margin:1rem 0; }
.ep-arena-tab{ border:1px solid #C7D2FE; color:#4338CA; background:#fff; border-radius:999px; padding:.45rem 1rem; text-decoration:none; font-weight:600; }
.ep-arena-tab.on{ background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; border-color:transparent; }
.ep-arena-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin-bottom:1rem; }
.ep-arena-stat{ border-radius:14px; padding:.75rem 1rem; }
.ep-arena-stat .l{ color:#475569; }
.ep-arena-stat .v{ color:#0F172A; font-weight:800; }
.ep-arena-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1rem; }
.ep-arena-card{ border-radius:16px; padding:.9rem; box-shadow:0 4px 16px rgba(15,23,42,.08); border:1px solid rgba(15,23,42,.08); }
.ep-arena-num{ color:#4338CA; font-weight:800; }
.ep-arena-kind{ color:#4338CA; border:1px solid #A5B4FC; background:#fff; border-radius:999px; padding:.15rem .6rem; }
.ep-arena-art{ height:180px; border-radius:12px; background:#fff; border:1px solid #E2E8F0; display:flex; align-items:center; justify-content:center; overflow:hidden; margin:.6rem 0 .8rem; position:relative; }
.ep-arena-meta{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; color:#475569; margin-bottom:.8rem; }
.ep-arena-meta b{ color:#0F172A; }
.ep-arena-play{ display:block; width:100%; text-align:center; background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; font-weight:800; border-radius:999px; padding:.65rem 0; text-decoration:none; box-shadow:0 4px 12px rgba(37,99,235,.3); }
.ep-arena-play:hover{ color:#fff; }
.ep-mem{ display:grid; grid-template-columns:repeat(4,38px); grid-auto-rows:38px; gap:7px; }
.ep-mem-tile{ background:#EFF6FF; border:1px solid #BFDBFE; border-radius:9px; display:flex; align-items:center; justify-content:center; }
.ep-mem-tile.hot{ background:#FEF3C7; border-color:#F59E0B; box-shadow:0 0 10px rgba(245,158,11,.5); }
.ep-matched{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) rotate(-4deg); background:#F59E0B; color:#fff; font-weight:800; padding:.3rem .8rem; border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.2); }
.ep-quiz{ width:88%; background:#fff; border:1px solid #C7D2FE; border-radius:12px; padding:.8rem; }
.ep-quiz-opts{ display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:.6rem; }
.ep-quiz-opt{ border:1px solid #CBD5E1; border-radius:999px; padding:.4rem 0; text-align:center; color:#334155; background:#F8FAFC; }
.ep-quiz-opt.ok{ background:#DCFCE7; border-color:#22C55E; color:#166534; font-weight:700; }
.ep-quiz-ok{ text-align:center; color:#16A34A; font-weight:800; margin-top:.6rem; }
.ep-win{ text-align:center; }
.ep-win-big{ color:#D97706; font-weight:800; letter-spacing:.04em; }
.ep-win-amt{ color:#334155; margin-top:.25rem; }
.ep-win-amt b{ color:#0F172A; }
.ep-chests{ display:flex; gap:14px; align-items:flex-end; }
.ep-chest{ filter:drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.ep-chest.open{ filter:drop-shadow(0 0 16px rgba(245,158,11,.6)); }
.ep-freespin{ position:absolute; top:10px; left:50%; transform:translateX(-50%); background:#F59E0B; color:#fff; font-weight:800; padding:.25rem .8rem; border-radius:999px; }
.ep-wheel{ width:150px; height:150px; border-radius:50%; border:4px solid #2563EB; position:relative; box-shadow:0 0 18px rgba(37,99,235,.3); }
.ep-wheel-hub{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#2563EB,#7C3AED); border:3px solid #fff; }
.ep-wheel-ptr{ position:absolute; left:50%; top:-12px; transform:translateX(-50%); width:0; height:0; border-left:10px solid transparent; border-right:10px solid transparent; border-top:16px solid #2563EB; }
.ep-wheel-lb{ position:absolute; left:50%; top:50%; font-weight:800; color:#fff; text-shadow:0 1px 3px #000; }
.ep-arena-history{ color:#4338CA; }
@media (max-width:640px){ .ep-arena-stats{ grid-template-columns:1fr 1fr; } }

/* --- v9.22: plan serial, auto colour/icon, delete-with-move ---
 * Serial drives the tint + icon (0 blue crown, 1 green star, 2 amber
 * gift, 3 purple diamond, 4 rose rocket, 5 cyan trophy, then cycling).
 * Sizes come from Bootstrap classes; no text-size rules here. */
.ep-plan-ico{ width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex:none; box-shadow:0 2px 6px rgba(0,0,0,.12); vertical-align:middle; }
.ep-plan-ico.i-blue{ background:#DBEAFE; }
.ep-plan-ico.i-green{ background:#D1FAE5; }
.ep-plan-ico.i-amber{ background:#FEF3C7; }
.ep-plan-ico.i-purple{ background:#EDE9FE; }
.ep-plan-ico.i-rose{ background:#FFE4E6; }
.ep-plan-ico.i-cyan{ background:#CFFAFE; }
.ep-plan-serial{ display:inline-block; min-width:26px; text-align:center; background:#111827; color:#fff; border-radius:999px; padding:2px 8px; font-weight:700; }
.ep-plan-row-blue td{ background:#EFF6FF; }
.ep-plan-row-green td{ background:#ECFDF5; }
.ep-plan-row-amber td{ background:#FFFBEB; }
.ep-plan-row-purple td{ background:#F5F3FF; }
.ep-plan-row-rose td{ background:#FFF1F2; }
.ep-plan-row-cyan td{ background:#ECFEFF; }
/* W4 (ui-preview Phase 1): the light pastel fills above stay in dark mode
 * while the table text flips light — white-on-white (~1:1). Dark tints
 * mirror the mp-theme dark pattern below (rgba hue .20–.22), so the rows
 * stay readable in both themes. No user view uses these classes today
 * (0 usages); this only makes the reference correct. */
[data-theme="dark"] .ep-plan-row-blue td{ background:rgba(59,130,246,.22); }
[data-theme="dark"] .ep-plan-row-green td{ background:rgba(16,185,129,.20); }
[data-theme="dark"] .ep-plan-row-amber td{ background:rgba(245,158,11,.20); }
[data-theme="dark"] .ep-plan-row-purple td{ background:rgba(139,92,246,.22); }
[data-theme="dark"] .ep-plan-row-rose td{ background:rgba(236,72,153,.20); }
[data-theme="dark"] .ep-plan-row-cyan td{ background:rgba(6,182,212,.20); }
.ep-plan-del{ display:inline-block; margin-top:.35rem; border:1px dashed #F59E0B; border-radius:10px; padding:.5rem .6rem; background:#FFFBEB; }
.ep-plan-del summary{ cursor:pointer; font-weight:700; color:#B91C1C; list-style:none; }
.ep-plan-del summary::-webkit-details-marker{ display:none; }

/* --- v9.23: Real spin wheel (owner-approved preview, 2026-11-11) ---
 * Replaces the old .seg highlight-cycle with a real rotating wheel:
 * one SVG segment per reward in the pool, a pointer at the top, a
 * round SPIN button in the centre. The server decides the result;
 * the JS only rotates the wheel to the segment the server returned.
 * Sizes come from Bootstrap classes, so no text-size rules are
 * added here. */
.ep-spin-wrap{ position:relative; width:320px; height:320px; margin:.5rem auto .25rem; }
.ep-spin-wheel{ width:100%; height:100%; border-radius:50%; border:6px solid #2563EB; box-shadow:0 0 24px rgba(37,99,235,.3), inset 0 0 0 4px #fff; transition:transform 5s cubic-bezier(.12,.8,.08,1); }
.ep-spin-pointer{ position:absolute; left:50%; top:-6px; transform:translateX(-50%); width:0; height:0; border-left:16px solid transparent; border-right:16px solid transparent; border-top:26px solid #E11D48; z-index:3; filter:drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.ep-spin-btn{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:86px; height:86px; border-radius:50%; border:4px solid #fff; background:linear-gradient(135deg,#2563EB,#7C3AED); color:#fff; font-weight:800; cursor:pointer; z-index:2; box-shadow:0 6px 18px rgba(37,99,235,.45); }
.ep-spin-btn:disabled{ opacity:.6; cursor:default; }
.ep-spin-result{ min-height:52px; margin-top:.6rem; }
@media (max-width:420px){ .ep-spin-wrap{ width:280px; height:280px; } }

/* --- v9.26: membership redesign (Gemini reference) --- */
/* Hero: dark gradient banner with glow blobs + a glass profile card. */
.mp-hero{ position:relative; background:linear-gradient(90deg,#1E3A8A 0%,#312E81 55%,#0F172A 100%); border-radius:1.5rem; padding:1.5rem; color:#fff; box-shadow:0 10px 30px rgba(15,23,42,.25); overflow:hidden; }
.mp-hero-glow{ position:absolute; border-radius:50%; pointer-events:none; }
.mp-hero-glow-a{ right:-3rem; top:-3rem; width:18rem; height:18rem; background:rgba(99,102,241,.25); filter:blur(40px); }
.mp-hero-glow-b{ left:33%; bottom:-4rem; width:16rem; height:16rem; background:rgba(59,130,246,.2); filter:blur(32px); }
.mp-hero-inner{ position:relative; z-index:1; }
.mp-hero-ico{ width:3rem; height:3rem; border-radius:1rem; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.mp-hero-label{ color:#BFDBFE; }
.mp-hero-btn-deposit{ background:#10B981; color:#fff; border:none; }
.mp-hero-btn-deposit:hover{ background:#059669; color:#fff; }
.mp-hero-btn-glass{ background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25); color:#fff; }
.mp-hero-btn-glass:hover{ background:rgba(255,255,255,.25); color:#fff; }
.mp-hero-btn-loan{ background:linear-gradient(90deg,#FBBF24,#F97316); color:#0F172A; border:none; font-weight:700; }
.mp-hero-btn-loan:hover{ background:linear-gradient(90deg,#F59E0B,#EA580C); color:#0F172A; }
.mp-hero-btn-earn{ background:linear-gradient(90deg,#F97316,#EA580C); color:#fff; border:none; font-weight:700; }
.mp-hero-btn-earn:hover{ background:linear-gradient(90deg,#EA580C,#C2410C); color:#fff; }
.mp-profile{ background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); border-radius:1rem; padding:1rem; color:#fff; backdrop-filter:blur(8px); }
.mp-profile-avatar{ width:3rem; height:3rem; border-radius:1rem; background:linear-gradient(135deg,#6366F1,#A855F7); display:flex; align-items:center; justify-content:center; font-weight:700; border:2px solid rgba(255,255,255,.3); flex-shrink:0; }
.mp-float{ animation:mp-float 3.5s ease-in-out infinite; }
@keyframes mp-float{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
/* Plan cards: per-theme variables; the watermark icon + hover lift + reveal. */
.mp-plan{ position:relative; overflow:hidden; border-radius:1rem; padding:1.5rem; display:flex; flex-direction:column; transition:transform .35s cubic-bezier(.25,.8,.25,1), box-shadow .35s; opacity:0; transform:translateY(25px); }
.mp-plan.mp-revealed{ opacity:1; transform:translateY(0); }
.mp-plan:hover{ transform:translateY(-7px); box-shadow:0 20px 35px -10px rgba(0,0,0,.12); }
.mp-watermark{ position:absolute; right:-12px; bottom:-12px; opacity:.08; pointer-events:none; line-height:1; transition:transform .3s ease; }
.mp-plan:hover .mp-watermark{ transform:scale(1.1) rotate(-5deg); }
.mp-theme-blue{ background:linear-gradient(180deg,#EFF6FF,#fff); border:1px solid #BFDBFE; --mp-accent:#1D4ED8; --mp-name:#1E3A8A; --mp-sub:#64748B; --mp-cb-bg:#DBEAFE; --mp-cb-border:#BFDBFE; --mp-cb-text:#1E40AF; --mp-btn:#1E40AF; --mp-btn-hover:#1E3A8A; }
.mp-theme-green{ background:linear-gradient(180deg,#ECFDF5,#fff); border:2px solid #10B981; --mp-accent:#047857; --mp-name:#064E3B; --mp-sub:#047857; --mp-cb-bg:#D1FAE5; --mp-cb-border:#A7F3D0; --mp-cb-text:#065F46; --mp-btn:#059669; --mp-btn-hover:#047857; }
.mp-theme-amber{ background:linear-gradient(180deg,#FFFBEB,#fff); border:1px solid #FCD34D; --mp-accent:#B45309; --mp-name:#78350F; --mp-sub:#64748B; --mp-cb-bg:#FEF3C7; --mp-cb-border:#FDE68A; --mp-cb-text:#92400E; --mp-btn:#F59E0B; --mp-btn-hover:#D97706; }
.mp-theme-purple{ background:linear-gradient(180deg,#FAF5FF,#fff); border:1px solid #DDD6FE; --mp-accent:#7E22CE; --mp-name:#581C87; --mp-sub:#64748B; --mp-cb-bg:#F3E8FF; --mp-cb-border:#E9D5FF; --mp-cb-text:#6B21A8; --mp-btn:#9333EA; --mp-btn-hover:#7E22CE; }
.mp-theme-rose{ background:linear-gradient(180deg,#FFF1F2,#fff); border:1px solid #FDA4AF; --mp-accent:#BE123C; --mp-name:#881337; --mp-sub:#64748B; --mp-cb-bg:#FFE4E6; --mp-cb-border:#FECDD3; --mp-cb-text:#9F1239; --mp-btn:#E11D48; --mp-btn-hover:#BE123C; }
.mp-theme-cyan{ background:linear-gradient(180deg,#ECFEFF,#fff); border:1px solid #67E8F9; --mp-accent:#0E7490; --mp-name:#164E63; --mp-sub:#64748B; --mp-cb-bg:#CFFAFE; --mp-cb-border:#A5F3FC; --mp-cb-text:#155E75; --mp-btn:#0891B2; --mp-btn-hover:#0E7490; }
.mp-theme-dark{ background:linear-gradient(135deg,#0F172A,#1E1B4B,#0F172A); border:2px solid #FBBF24; color:#fff; --mp-accent:#FCD34D; --mp-name:#FCD34D; --mp-sub:#CBD5E1; --mp-cb-bg:rgba(255,255,255,.1); --mp-cb-border:rgba(251,191,36,.3); --mp-cb-text:#FDE68A; --mp-btn:#FBBF24; --mp-btn-hover:#F59E0B; }
/* v9.75: dashboard activity tiles in dark mode — the light pastel
 * gradients stay white on dark, so each theme gets a dark tinted
 * variant (scoped to .act-grid: the membership plan cards keep
 * their light look). */
[data-theme="dark"] .ep-user .act-grid .mp-theme-blue{ background:linear-gradient(180deg,rgba(59,130,246,.22),rgba(59,130,246,.06)); border:1px solid rgba(59,130,246,.45); --mp-accent:#93C5FD; --mp-name:#DBEAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(59,130,246,.22); --mp-cb-border:rgba(59,130,246,.45); --mp-cb-text:#BFDBFE; --mp-btn:#3B82F6; --mp-btn-hover:#2563EB; }
[data-theme="dark"] .ep-user .act-grid .mp-theme-green{ background:linear-gradient(180deg,rgba(16,185,129,.20),rgba(16,185,129,.06)); border:2px solid rgba(16,185,129,.5); --mp-accent:#6EE7B7; --mp-name:#D1FAE5; --mp-sub:#94A3B8; --mp-cb-bg:rgba(16,185,129,.22); --mp-cb-border:rgba(16,185,129,.45); --mp-cb-text:#A7F3D0; --mp-btn:#10B981; --mp-btn-hover:#059669; }
[data-theme="dark"] .ep-user .act-grid .mp-theme-amber{ background:linear-gradient(180deg,rgba(245,158,11,.20),rgba(245,158,11,.06)); border:1px solid rgba(245,158,11,.5); --mp-accent:#FCD34D; --mp-name:#FEF3C7; --mp-sub:#94A3B8; --mp-cb-bg:rgba(245,158,11,.22); --mp-cb-border:rgba(245,158,11,.45); --mp-cb-text:#FDE68A; --mp-btn:#F59E0B; --mp-btn-hover:#D97706; }
[data-theme="dark"] .ep-user .act-grid .mp-theme-purple{ background:linear-gradient(180deg,rgba(139,92,246,.22),rgba(139,92,246,.06)); border:1px solid rgba(139,92,246,.45); --mp-accent:#C4B5FD; --mp-name:#EDE9FE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(139,92,246,.22); --mp-cb-border:rgba(139,92,246,.45); --mp-cb-text:#DDD6FE; --mp-btn:#8B5CF6; --mp-btn-hover:#7C3AED; }
[data-theme="dark"] .ep-user .act-grid .mp-theme-rose{ background:linear-gradient(180deg,rgba(236,72,153,.20),rgba(236,72,153,.06)); border:1px solid rgba(236,72,153,.45); --mp-accent:#F9A8D4; --mp-name:#FDE8EF; --mp-sub:#94A3B8; --mp-cb-bg:rgba(236,72,153,.22); --mp-cb-border:rgba(236,72,153,.45); --mp-cb-text:#FECDD3; --mp-btn:#EC4899; --mp-btn-hover:#DB2777; }
[data-theme="dark"] .ep-user .act-grid .mp-theme-cyan{ background:linear-gradient(180deg,rgba(6,182,212,.20),rgba(6,182,212,.06)); border:1px solid rgba(6,182,212,.45); --mp-accent:#67E8F9; --mp-name:#CFFAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(6,182,212,.22); --mp-cb-border:rgba(6,182,212,.45); --mp-cb-text:#A5F3FC; --mp-btn:#06B6D4; --mp-btn-hover:#0891B2; }
/* v9.75: membership dark theme — plan cards, referral + FAQ. Membership
 * page only: mp-plans-grid / membership-split / mp-loan-card /
 * mp-loan-note live only in resources/views/user/membership/index.php.
 * Same rgba-tint pattern as the dashboard tiles fix. Light theme untouched. */
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-blue{ background:linear-gradient(180deg,rgba(59,130,246,.22),rgba(59,130,246,.06)); border:1px solid rgba(59,130,246,.45); --mp-accent:#93C5FD; --mp-name:#DBEAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(59,130,246,.22); --mp-cb-border:rgba(59,130,246,.45); --mp-cb-text:#BFDBFE; --mp-btn:#3B82F6; --mp-btn-hover:#2563EB; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-green{ background:linear-gradient(180deg,rgba(16,185,129,.20),rgba(16,185,129,.06)); border:2px solid rgba(16,185,129,.5); --mp-accent:#6EE7B7; --mp-name:#D1FAE5; --mp-sub:#94A3B8; --mp-cb-bg:rgba(16,185,129,.22); --mp-cb-border:rgba(16,185,129,.45); --mp-cb-text:#A7F3D0; --mp-btn:#10B981; --mp-btn-hover:#059669; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-amber{ background:linear-gradient(180deg,rgba(245,158,11,.20),rgba(245,158,11,.06)); border:1px solid rgba(245,158,11,.5); --mp-accent:#FCD34D; --mp-name:#FEF3C7; --mp-sub:#94A3B8; --mp-cb-bg:rgba(245,158,11,.22); --mp-cb-border:rgba(245,158,11,.45); --mp-cb-text:#FDE68A; --mp-btn:#F59E0B; --mp-btn-hover:#D97706; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-purple{ background:linear-gradient(180deg,rgba(139,92,246,.22),rgba(139,92,246,.06)); border:1px solid rgba(139,92,246,.45); --mp-accent:#C4B5FD; --mp-name:#EDE9FE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(139,92,246,.22); --mp-cb-border:rgba(139,92,246,.45); --mp-cb-text:#DDD6FE; --mp-btn:#8B5CF6; --mp-btn-hover:#7C3AED; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-rose{ background:linear-gradient(180deg,rgba(236,72,153,.20),rgba(236,72,153,.06)); border:1px solid rgba(236,72,153,.45); --mp-accent:#F9A8D4; --mp-name:#FDE8EF; --mp-sub:#94A3B8; --mp-cb-bg:rgba(236,72,153,.22); --mp-cb-border:rgba(236,72,153,.45); --mp-cb-text:#FECDD3; --mp-btn:#EC4899; --mp-btn-hover:#DB2777; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-theme-cyan{ background:linear-gradient(180deg,rgba(6,182,212,.20),rgba(6,182,212,.06)); border:1px solid rgba(6,182,212,.45); --mp-accent:#67E8F9; --mp-name:#CFFAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(6,182,212,.22); --mp-cb-border:rgba(6,182,212,.45); --mp-cb-text:#A5F3FC; --mp-btn:#06B6D4; --mp-btn-hover:#0891B2; }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-plan-perks{ border-top-color:rgba(255,255,255,.12); }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-tag{ color:#fff; background:color-mix(in srgb, var(--mp-tag,#2563EB) 25%, #0F172A); border-color:color-mix(in srgb, var(--mp-tag,#2563EB) 45%, #0F172A); }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-plan-img::after{ background:linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.92)); }
[data-theme="dark"] .ep-user .mp-plans-grid .mp-plan-glow{ background:radial-gradient(ellipse 75% 55% at 18% 0%, rgba(124,58,237,.30), transparent 65%), radial-gradient(ellipse 55% 50% at 92% 8%, rgba(245,158,11,.32), transparent 65%); }
[data-theme="dark"] .ep-user .membership-split .mp-referral{ background:linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.10),rgba(99,102,241,.05)); border:1px solid rgba(165,180,252,.35); }
[data-theme="dark"] .ep-user .membership-split .mp-faq-btn{ background:rgba(255,255,255,.07); border:1px solid var(--color-border); color:var(--color-text); }
[data-theme="dark"] .ep-user .mp-loan-card{ background:rgba(245,158,11,.16); }
.mp-loan-note{ background:#FFFBEB; border:1px solid #FDE68A; }
[data-theme="dark"] .ep-user .mp-loan-note{ background:rgba(245,158,11,.10); border:1px solid rgba(245,158,11,.45); }
/* v9.75: pre-existing 360px overflow — the FAQ question span was
 * flex:0 0 auto (base rule), so a long question sized the span to its
 * max-content width and pushed the chevron past the viewport (document
 * 434px wide at a 360px viewport, in BOTH themes). Let the question
 * shrink and wrap; the chevron keeps flex:0 0 auto. Membership only. */
.ep-user .membership-split .mp-faq-btn span:first-child{ flex:1 1 auto; min-width:0; }
.mp-plan-name{ color:var(--mp-name); }
.mp-plan-price{ color:var(--mp-accent); }
.mp-plan-sub{ color:var(--mp-sub); }
.mp-cashback{ background:var(--mp-cb-bg); border:1px solid var(--mp-cb-border); border-radius:.75rem; padding:.5rem .75rem; display:flex; align-items:center; justify-content:space-between; }
.mp-cashback-label{ color:var(--mp-cb-text); font-weight:600; }
.mp-cashback-value{ color:var(--mp-cb-text); font-weight:700; }
.mp-plan-btn{ background:var(--mp-btn); color:#fff; border:none; }
.mp-plan-btn:hover{ background:var(--mp-btn-hover); color:#fff; }
.mp-plan-btn-grad{ background:linear-gradient(90deg,#F59E0B,#EA580C); color:#fff; border:none; }
.mp-plan-btn-grad:hover{ background:linear-gradient(90deg,#D97706,#C2410C); color:#fff; }
.mp-theme-dark .mp-plan-btn{ background:linear-gradient(90deg,#FBBF24,#F59E0B); color:#0F172A; font-weight:700; }
.mp-theme-dark .mp-plan-btn:hover{ background:linear-gradient(90deg,#F59E0B,#D97706); color:#0F172A; }
.mp-ribbon{ position:absolute; top:-.75rem; right:1.25rem; z-index:2; border-radius:999px; padding:.25rem .75rem; font-weight:700; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.mp-ribbon-current{ background:#059669; color:#fff; }
.mp-ribbon-special{ background:linear-gradient(90deg,#FBBF24,#F59E0B); color:#0F172A; }
.mp-plan-current{ border-color:#10B981; }
/* v9.75 — membership plan-card income strip (restyled): NO background —
 * transparent, the card's own background shows through. One icon per
 * part (sun / calendar / trophy), bold text, glowing green amounts,
 * extra space above so the strip reads as separate from the rows.
 * No text-size rules here (AGENTS.md: no font-size in app.css) — the
 * view uses Bootstrap fs-6. On a dark card (site dark theme, or a
 * dark-themed plan) the amount uses a lighter green so the glow
 * stays readable. */
.mp-income-strip{ margin-top:20px; background:transparent; border:0; }
.mp-income-l{ display:flex; align-items:center; gap:7px; font-weight:700; }
.mp-income-l svg{ width:22px; height:22px; flex:none; }
.mp-income-a{ font-weight:700; color:#047857; text-shadow:0 0 10px rgba(16,185,129,.55), 0 0 22px rgba(16,185,129,.30); }
[data-theme="dark"] .mp-income-a, .mp-theme-dark .mp-income-a{ color:#34d399; text-shadow:0 0 10px rgba(52,211,153,.55), 0 0 22px rgba(52,211,153,.30); }
.mp-plan-perks{ border-top:1px solid rgba(100,116,139,.15); padding-top:.75rem; }
.mp-theme-dark .mp-plan-perks{ border-top-color:rgba(255,255,255,.12); }
/* v9.68 — big icon / PNG illustration at the icon spot (left of the name),
 * the same image faint as the watermark, the ★ জনপ্রিয় ribbon and the
 * small tag pills under the plan name (plan-theme colour). */
.mp-plan-icon{ line-height:1; flex-shrink:0; margin-top:.1rem; }
.mp-plan-illustration{ width:56px; height:56px; object-fit:contain; flex-shrink:0; margin-top:.1rem; }
.mp-watermark-img{ position:absolute; right:-8px; bottom:-8px; width:120px; height:120px; object-fit:contain; opacity:.1; pointer-events:none; filter:blur(2px); }
.mp-ribbon-popular{ background:#16A34A; color:#fff; }
/* v9.75 — Coming Soon ribbon: amber/grey so it reads as "not yet" at a glance. */
.mp-ribbon-coming-soon{ background:#475569; color:#FDE68A; }
.mp-plan-tags{ display:flex; flex-wrap:wrap; gap:.3rem; }
.mp-tag{ display:inline-block; padding:.1rem .55rem; border-radius:999px; font-weight:600; color:var(--mp-tag,#2563EB); background:color-mix(in srgb, var(--mp-tag,#2563EB) 12%, #fff); border:1px solid color-mix(in srgb, var(--mp-tag,#2563EB) 35%, #fff); }
.mp-theme-dark .mp-tag{ color:#fff; background:color-mix(in srgb, var(--mp-tag,#2563EB) 25%, #0F172A); border-color:color-mix(in srgb, var(--mp-tag,#2563EB) 45%, #0F172A); }
/* v9.70 — animated hero art at the card's top-right (same art as the
 * page hero, so the admin's hero setting drives both), a bigger gradient
 * plan name + a soft purple/gold glow behind the header. No text sizing
 * here (smoke-enforced) — the bigger name/duration use Bootstrap
 * fs and fw utilities in the view. */
.mp-card-art{ position:absolute; top:3.5rem; right:.75rem; width:160px; height:160px; pointer-events:none; }
.mp-card-art svg{ width:160px; height:160px; display:block; }
.mp-plan-name-grad{ background:linear-gradient(90deg,#7C3AED,#DB2777 55%,#F97316); -webkit-background-clip:text; background-clip:text; color:transparent; }
.mp-plan-glow{ position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse 75% 55% at 18% 0%, rgba(124,58,237,.16), transparent 65%), radial-gradient(ellipse 55% 50% at 92% 8%, rgba(245,158,11,.20), transparent 65%); }
.mp-theme-dark .mp-plan-glow{ background:radial-gradient(ellipse 75% 55% at 18% 0%, rgba(124,58,237,.30), transparent 65%), radial-gradient(ellipse 55% 50% at 92% 8%, rgba(245,158,11,.32), transparent 65%); }
.mp-plan .plan-perks{ margin-top:3.5rem; }
/* v9.72 — per-plan card art: a custom PNG URL renders as an <img> in the
 * same top-right spot as the built-in SVG art; the landing card (.lp-plan)
 * is positioned so the absolute art sits inside it. No text sizing here. */
.mp-card-art-img{ position:absolute; top:3.5rem; right:.75rem; width:160px; height:160px; object-fit:contain; pointer-events:none; }
.lp-plan{ position:relative; }
.lp-plan .mp-card-art, .lp-plan .mp-card-art-img{ top:.75rem; }
.lp-plan .plan-perks{ margin-top:3.5rem; }
/* Button shimmer (the reference's animated shine on Buy buttons). */
.mp-shimmer{ position:relative; overflow:hidden; }
.mp-shimmer::after{ content:''; position:absolute; top:0; left:-100%; width:50%; height:100%; background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,.35) 50%,rgba(255,255,255,0) 100%); transform:skewX(-25deg); animation:mp-shimmer 3.5s infinite; }
@keyframes mp-shimmer{ 0%{ left:-100%; } 20%{ left:200%; } 100%{ left:200%; } }
/* FAQ accordion (the reference's max-height accordion + rotating chevron). */
.mp-faq-content{ max-height:0; overflow:hidden; transition:max-height .35s ease-out, padding .35s ease; }
.mp-faq-item.mp-active .mp-faq-content{ max-height:200px; padding-top:.625rem; padding-bottom:.75rem; }
.mp-faq-item.mp-active .mp-faq-icon{ transform:rotate(180deg); }
.mp-faq-icon{ transition:transform .3s ease; }
/* Referral table (indigo header, soft rows). */
.mp-referral{ background:linear-gradient(135deg,#EEF2FF,#F5F3FF,#fff); border:1px solid #C7D2FE; border-radius:1rem; padding:1.5rem; }
.mp-referral table{ background:#fff; border-radius:.75rem; overflow:hidden; }
.mp-referral thead th{ background:#EEF2FF; color:#312E81; text-transform:uppercase; }

/* v9.27: Funds redesign (dark hero + themed fund cards + live preview). Reuses .mp-hero, .mp-theme-* and .mp-faq-* from v9.26. Large text uses Bootstrap heading classes in the view. */
.fd-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:20px}
.fd-stat{background:#fff;border-radius:14px;padding:16px;box-shadow:0 1px 4px rgba(15,23,42,.08)}
.fd-ic{display:block;margin-bottom:2px}
.fd-card{border-radius:16px;padding:20px;box-shadow:0 1px 4px rgba(15,23,42,.08);position:relative;overflow:hidden}
.fd-watermark{position:absolute;right:10px;top:6px;opacity:.14;line-height:1;pointer-events:none}
.fd-preview{background:#F0FDF4;border:1px solid #BBF7D0;border-radius:12px;padding:10px 12px}
.fd-preview strong{color:#065F46}

/* v9.28: Unified Earn page (/earn) + embed modal. Wide modal with an iframe; the embed layout (watch/listen/task inside the modal) goes two-column on desktop — player on one side, details/rules on the other — and stacks on mobile. Large text uses Bootstrap heading classes in the view. */
.ep-earn-dialog{background:var(--ep-card,#fff);color:var(--ep-text,#0F172A);border:1px solid var(--ep-border,#E2E8F0);border-radius:16px;max-width:1100px;width:100%;padding:1rem;box-shadow:0 24px 60px rgba(2,6,23,.35)}
.ep-earn-modal-frame{width:100%;height:78vh;border:0;border-radius:12px;background:var(--ep-card,#fff);display:block}
.ep-embed{background:var(--ep-bg,#F2F5FB)}
.ep-embed-wrap{padding:14px;max-width:1100px;margin:0 auto}
@media(min-width:992px){
 .ep-watch-two-col{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;align-items:start}
 .ep-watch-two-col>.ep-card{margin-top:0!important}
 .ep-watch-two-col>.ep-card:only-child{grid-column:1/-1}
}

/* v9.29: Team page (/team) — the referral page rearranged into two columns (tabs left, teams right). The columns use the Bootstrap grid, so they stack on mobile. Large text uses Bootstrap heading classes in the view. */
.ep-team-side .ep-card{margin-bottom:0}

/* v9.32: a dialog box inside .ep-modal-backdrop must not inherit the hidden-overlay styles of components.css .ep-modal (display:none, position:fixed, inset:0). Without this the support verify modal, the earning limit-blocked modal, the membership loan/buy modals and the withdraw success modal all open an invisible dialog — the button looks dead. The components.css .ep-modal-as-overlay pattern (shown with .show) never sits inside a backdrop, so it is unaffected. */
.ep-modal-backdrop .ep-modal{position:static;display:block}

/* v9.33: header notice ticker — the scrolling notice in the topbar (all user pages, mobile + desktop). The track holds two identical sets and slides from 0 to -50% for a seamless loop; it pauses on hover. On narrow screens the topbar wraps and the ticker takes a full-width second row inside the header. */
.ep-ticker{flex:1 1 0;min-width:0;overflow:hidden;display:flex;align-items:center;background:var(--ep-surface-2,#F1F5F9);border:1px solid var(--ep-border,#E2E8F0);border-radius:999px;padding:.3rem .8rem;margin:0 .6rem} /* v9.34: empty space on both sides so it never touches the neighbouring text */
.ep-ticker-track{display:flex;flex:none;white-space:nowrap;animation:ep-ticker-scroll 40s linear infinite}
.ep-ticker:hover .ep-ticker-track{animation-play-state:paused}
.ep-ticker-set{display:inline-flex;align-items:center;gap:.9rem;padding-right:.9rem}
.ep-ticker-sep{color:var(--ep-primary,#2563EB)}
.ep-ticker a{color:var(--ep-primary,#2563EB);font-weight:600;text-decoration:underline}
@keyframes ep-ticker-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:767px){.up-topbar{flex-wrap:wrap}.ep-ticker{flex:1 1 100%;order:10}}

/* --- v9.35: topbar dropdown + sidebar (owner 2026-11-12) --- */
/* Wider account dropdown so the name + UID + copy button fit on one line. */
.up-account-menu { min-width: 320px; max-width: calc(100vw - 1rem); }
.up-account-menu .up-dd-uid { white-space: nowrap; }
/* Avatar button: the avatar + a ▼ caret beside it. */
.up-avatar-btn { display: inline-flex; align-items: center; gap: .2rem; }
.up-avatar-caret { color: var(--ep-text-2, #64748B); line-height: 1; }
/* Language + theme controls live inside the dropdown now. */
.up-dd-controls { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .65rem; margin-top: .35rem; border-top: 1px solid var(--ep-border, #E2E8F0); }
.up-dd-controls .ep-lang-toggle { display: inline-flex; width: auto; padding: 0; }
.up-dd-controls .ep-theme-toggle { margin: 0; }
/* Big logout button at the bottom of the account dropdown (v9.37):
 * site-blue gradient (was red) + icon + "লগআউট" text. */
.up-logout-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; margin-top: .5rem; padding: .7rem .65rem; border: 0; border-radius: var(--ep-radius-md, .6rem); background: linear-gradient(135deg, #1D4ED8, #2563EB); color: #fff; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px rgba(37, 99, 235, .35); }
.up-logout-btn:hover { background: linear-gradient(135deg, #1E40AF, #1D4ED8); color: #fff; }
/* Banned screen (v9.38): everything behind the card is blurred out — the
 * user sees only this message + Support. */
.ep-banned-wrap { position: relative; }
.ep-banned-blur { filter: blur(9px); opacity: .45; pointer-events: none; user-select: none; }
.ep-banned-bar { height: 18px; border-radius: 999px; background: var(--ep-border); margin: .6rem 0; }
.ep-banned-bar.short { width: 60%; }
.ep-banned-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.ep-banned-grid i { display: block; height: 90px; border-radius: var(--ep-radius-md, .6rem); background: var(--ep-primary-soft, #EAF0FE); }
.ep-banned-card { position: relative; z-index: 2; max-width: 560px; margin: -110px auto 0; padding: 2rem 1.5rem; }
.ep-banned-icon { display: inline-block; transform: scale(2.5); line-height: 1; margin: .8rem 0 .9rem; }
/* NOTE: the big icon is sized with transform on purpose — the user-panel
 * version blocks must carry no text-size rule (the smoke slices each
 * version block to end-of-file and rejects any such declaration). */
/* Sidebar: menu texts a bit bolder; wallet group heading is a link. */
.up-side-link { font-weight: 600; }
.up-side-group-link { display: block; text-decoration: none; cursor: pointer; }
.up-side-group-link:hover { color: #fff; }
.up-side-group-link.active { color: #fff; }
/* Mobile topbar (v9.35): the site-name text is gone — the ticker
 * takes its place in the same row (no second row any more). */
@media (max-width: 991px) { .up-topbar-brand { display: none !important; } }
@media (max-width: 767px) { .up-topbar { flex-wrap: nowrap; } .ep-ticker { flex: 1 1 0; order: 0; } }
/* Tables (v9.35): every user-panel table header gets a soft background +
 * bold text (values stay normal); card labels on phones never wrap —
 * the label column is wide enough for the longest header and stays on
 * one line, keeping the shared value grid. */
.ep-main table th, .up-main table th { background: var(--ep-primary-soft, #EAF0FE); font-weight: 700; }
@media (max-width: 768px) { table.ep-table-cards[data-ep-cards="on"]>tbody>tr>td::before { min-width: 132px; white-space: nowrap; } }
/* User-panel footer (v9.37 dark look, v9.38 full width): same dark
 * look as the landing footer (.lp-footer) — var(--ep-secondary) +
 * the public footer's dark classes, so the two footers match. The
 * footer is a direct child of .up-shell (below .up-row), so it spans
 * the FULL page width at the bottom — the sidebar ends above it.
 * The flex shell (.up-row flex:1) pins it to the viewport bottom on
 * short pages (verified 1280x1080). Mobile: the fixed bottom nav
 * reserves 64px via body.ep-has-bottomnav padding — the footer pulls
 * itself 64px down (margin-bottom:-64px) so its background reaches
 * the document bottom, and its own bottom padding keeps the
 * copyright clear of the nav. */
.up-footer { background: var(--ep-secondary); color: #CBD5E1; margin-top: 0; }
/* v9.38 compact (owner ask 2026-11-12: halve the footer height) — the
 * features list runs in two columns and the hr is tighter; the shared
 * .lp-foot-* rules (landing footer) are untouched, these are .up-footer
 * overrides only. */
.up-footer .lp-foot-links.two-col { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.up-footer .lp-foot-hr { margin: .75rem 0 .5rem; }
.up-footer .lp-brand-name { color: #fff; }
@media (max-width: 767.98px) {
  .up-footer { margin-bottom: -64px; }
  .up-footer > .container-fluid { padding-bottom: 5rem; }
}
/* Funds (v9.35): click-to-open running/history groups. */
.fd-run-head { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; width: 100%; padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.fd-run-chev { margin-left: auto; transition: transform .2s; }
.fd-run.open .fd-run-chev { transform: rotate(180deg); }
.fd-row-hide { display: none !important; }
/* Bonus (v9.35): full-width rewards calendar grid; claimed days green
 * with a tick, the next day to claim highlighted. (The old .is-on
 * class on calendar chips had no CSS at all — now it does.) */
.bn-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.bn-cal-grid .ep-chip { flex-direction: column; gap: 0; justify-content: center; text-align: center; padding: .6rem .5rem; }
.bn-cal-grid .ep-chip.is-claimed { background: #D9F4EB; border-color: #10B981; color: #065F46; font-weight: 700; }
.bn-cal-grid .ep-chip.is-on { background: #DCE6FC; border-color: #2563EB; color: #1E3A8A; font-weight: 700; }

/* v9.43 — dashboard hero: shorter on desktop (padding/gaps only; text sizes
 * unchanged). Placed at the END of the file on purpose: the base hero rules
 * live at ~649/772, and same-specificity later rules win.
 * The 140px hero art squeezes the identity column to ~100px, so the
 * name/UID/email wrap into a tall stack — the card's height driver. */
@media (min-width: 992px) {
  .ep-dash-main { padding: .9rem 1.25rem; gap: .75rem 1.25rem; }
  .ep-dash-col { padding: .7rem 1rem; }
  .ep-dash-money { gap: .75rem 1.25rem; }
  .ep-dash-hero-art { width: 80px; margin-inline-end: .75rem; }
  .ep-dash-white { padding: .6rem 1rem; }
  .ep-dash-white .ep-dash-money { gap: .4rem .75rem; }
  .ep-dash-white .ep-dash-money > div { padding: .35rem .6rem; }
  .ep-dash-white .ep-dash-actions { margin-top: .4rem; }
}

/* v9.43 — bonus FAQ accordion. The /bonus view (v9.35) uses
 * .mp-faq-body + an .open toggle, but the only .mp-faq-* rules in this file
 * were the v9.26 funds-page ones (.mp-faq-content + .mp-active), so the
 * question <button> rendered with raw browser button chrome and every
 * answer showed at once. These rules match the bonus view + its JS. */
.mp-faq-item { margin-bottom: .5rem; }
.mp-faq-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; text-align: left; background: #fff; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); padding: .6rem .8rem; font-weight: 600; color: var(--ep-text); cursor: pointer; }
.mp-faq-btn span { transition: transform .3s ease; flex: 0 0 auto; }
.mp-faq-body { max-height: 0; overflow: hidden; transition: max-height .35s ease-out; }
.mp-faq-item.open .mp-faq-body { max-height: 400px; }
.mp-faq-item.open .mp-faq-btn span { transform: rotate(180deg); }
.mp-faq-body p { padding: .6rem .2rem 0; }
/* v9.44 — account-panel figures (balance + জামানত) in the dropdown head. */
.up-dd-money { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: .3rem; flex: 0 0 auto; }
.up-dd-money-row { display: flex; align-items: baseline; gap: .5rem; justify-content: space-between; white-space: nowrap; }
.up-dd-money-row strong { font-weight: 700; color: var(--ep-text); }
/* v9.45 — deposit guide box + image: full image, natural ratio, never stretched. */
.dep-guide-box { background: var(--ep-bg); border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); padding: .75rem .9rem; }
.dep-guide-img { width: 100%; height: auto; display: block; border-radius: var(--ep-radius-md); }
/* v9.45 — withdrawal number picker: big radio cards + add card. */
.wd-acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.wd-acct-card { display: block; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); padding: .7rem .85rem; cursor: pointer; background: var(--ep-bg); position: relative; }
.wd-acct-card:has(input:checked) { border-color: var(--ep-primary); box-shadow: 0 0 0 1px var(--ep-primary); background: var(--ep-card); }
.wd-acct-card input { position: absolute; opacity: 0; }
.wd-acct-method { display: block; font-weight: 700; }
.wd-acct-holder { display: block; }
.wd-acct-number { display: block; font-weight: 700; }
.wd-acct-add { display: flex; align-items: center; justify-content: center; gap: .35rem; border-style: dashed; text-decoration: none; color: inherit; }
.wd-acct-plus { font-weight: 700; }
/* v9.45 — deposit method logos: full logo, never stretched. */
.up-method-logo { width: 52px; height: 34px; object-fit: contain; align-self: flex-start; display: block; }
/* v9.50 — direct-file video thumb: a <video preload="metadata"> shows the
   video's first frame in the same 16/9 slot as an <img> thumbnail. */
.up-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* v9.57 — deposit step-2 brand cards are icon-only: logo centred, taller card. */
.dep-method-link { align-items: center; justify-content: center; text-align: center; min-height: 68px; }
.dep-method-link .up-method-logo { width: 76px; height: 48px; align-self: center; }
/* v9.58 — withdrawal page: two-column layout (form left, rules right),
 * icon-only method picker, modal add-number, slightly bigger text. */
.wd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; align-items: start; }
@media (max-width: 991.98px) { .wd-layout { grid-template-columns: 1fr; } }
.wd-mth-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.wd-mth { display: flex; align-items: center; justify-content: center; width: 96px; height: 64px; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); background: var(--ep-bg); cursor: pointer; padding: .4rem; }
.wd-mth img { max-width: 76px; max-height: 48px; object-fit: contain; display: block; }
.wd-mth .m-name { font-weight: 700; }
.wd-mth[aria-pressed="true"] { border-color: var(--ep-primary); box-shadow: 0 0 0 1px var(--ep-primary); background: var(--ep-card); }
.wd-acct-card[hidden] { display: none; }
.wd-mth-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-width: 88px; min-height: 64px; border: 1px solid var(--ep-border); border-radius: var(--ep-radius-md); background: var(--ep-bg); cursor: pointer; padding: .45rem .5rem; position: relative; }
.wd-mth-opt img { max-width: 64px; max-height: 36px; object-fit: contain; display: block; }
.wd-mth-opt .m-name { font-weight: 600; }
.wd-mth-opt input { position: absolute; opacity: 0; }
.wd-mth-opt:has(input:checked) { border-color: var(--ep-primary); box-shadow: 0 0 0 1px var(--ep-primary); background: var(--ep-card); }
.ep-modal-backdrop .ep-modal.wd-add-modal { max-width: 520px; }

/* v9.60 — deposit step 3: smaller guide image, FAQ sidebar. The guide
 * image was full card width; the FAQ reuses the .mp-faq-* accordion
 * (v9.43); first two items open.
 * v9.72 — the two-column layout now wraps EVERY step (deposit left,
 * FAQ right), not just step 3: .dep-s3-grid/.dep-s3-side renamed.
 * v9.75 — deposit page is full width like /wallet/withdraw: the v9.60
 * 1180px cap is gone, and .dep-layout mirrors .wd-layout (form left,
 * FAQ right at 420px, stacked below 992px). */
.dep-guide-img { max-width: 420px; margin-left: auto; margin-right: auto; }
.dep-side .dep-faq-card { margin-bottom: 0; }
.dep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; align-items: start; }
@media (max-width: 991.98px) { .dep-layout { grid-template-columns: 1fr; } }

/* v9.75 — allowances page two-column layout, mirroring .wd-layout /
 * .dep-layout (main content left, FAQ + upcoming holidays right at
 * 420px, stacked below 992px). */
.allow-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; align-items: start; }
@media (max-width: 991.98px) { .allow-layout { grid-template-columns: 1fr; } }

/* v9.61: membership plan image + current-plan name + referral paragraphs. */
/* v9.66: plan image is the card BACKGROUND (full card) — the card size never
 * changes when an image is added, because the image is absolutely positioned
 * and the card height comes only from its content. A soft scrim keeps the
 * text readable on busy images (light scrim on light themes, dark on dark). */
.mp-plan-img{ position:absolute; top:0; left:0; right:0; bottom:0; overflow:hidden; }
.mp-plan-img img{ width:100%; height:100%; object-fit:cover; display:block; filter:blur(3px); transform:scale(1.05); }
.mp-plan-img::after{ content:""; position:absolute; top:0; left:0; right:0; bottom:0; background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.92)); }
.mp-theme-dark .mp-plan-img::after{ background:linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.92)); }
.mp-plan .position-relative{ z-index:1; }
.mp-current-tag{ background:#059669; color:#fff; border-radius:999px; padding:.25rem .75rem; font-weight:700; }
.mp-current-name{ background:var(--mp-cb-bg); border:1px solid var(--mp-cb-border); border-radius:.75rem; padding:.25rem .75rem; display:inline-block; }

/* v9.62: video task modal — inside the embed iframe the watch page stacks
 * single-column (video on top, title + description below, timer + Claim
 * at the bottom); the full watch page keeps its two-column layout. */
.ep-embed .ep-watch-two-col{display:block}
.ep-embed .ep-watch-two-col>.ep-card{margin-top:1rem!important}
.ep-embed .ep-watch-two-col>.ep-card:first-child{margin-top:0!important}
/* ==========================================================================
   v9.75 — USER-PANEL REDESIGN, shell (DESIGN.md v1.8-frontend-only §6).
   Overrides for the .up-* user shell, scoped under .ep-user so the
   admin panel (body.ep-admin), public site and auth pages are
   untouched. These rules sit last in the file and carry the extra
   .ep-user class, so they win over the earlier shell rules above.
   Text sizes are NOT set here: the earlier shell rules and the
   Bootstrap size utilities in the markup carry them.
   ========================================================================== */
.ep-user .up-shell { display: flex; flex-direction: column; min-height: 100vh; }
.ep-user .up-row { display: flex; flex: 1 1 auto; min-height: 0; align-items: stretch; }
.ep-user .up-sidebar { flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); background: var(--color-sidebar); color: var(--color-sidebar-text); border-right: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: var(--z-sheet); display: flex; flex-direction: column; }
.ep-user .up-side-brand { border-bottom: 1px solid rgba(255, 255, 255, .14); padding: 24px 16px 16px; }
.ep-user .up-side-brand .up-side-mark { background: rgba(255, 255, 255, .18); color: #fff; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ep-user .up-side-brand .up-side-name { color: #fff; }
.ep-user .up-side-nav { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.ep-user .up-side-group { color: var(--color-sidebar-muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: 16px 12px 8px; margin-top: 0; }
.ep-user .up-side-group-link { display: block; color: var(--color-sidebar-text); font-weight: 600; padding: 8px 12px; border-radius: 12px; text-decoration: none; }
.ep-user .up-side-group-link:hover { background: var(--color-sidebar-active); text-decoration: none; color: #fff; }
.ep-user .up-side-group-link.active { background: var(--color-sidebar-active); color: #fff; }
.ep-user .up-side-link { color: var(--color-sidebar-text); min-height: 44px; padding: 8px 12px; gap: 12px; border-radius: 12px; }
.ep-user .up-side-link:hover { background: var(--color-sidebar-active); color: #fff; }
.ep-user .up-side-link.active { background: var(--color-sidebar-active); color: #fff; font-weight: 600; box-shadow: none; }
.ep-user .up-side-link .up-side-ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; opacity: .92; }
.ep-user .up-side-items { display: grid; gap: 2px; }
.ep-user .up-side-toggle { color: var(--color-sidebar-text); }
.ep-user .up-side-toggle:hover { background: var(--color-sidebar-active); color: #fff; }
.ep-user .up-side-collapse { margin: auto 12px 12px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; color: var(--color-sidebar-text); border: 1px solid rgba(255, 255, 255, .22); background: none; cursor: pointer; }
.ep-user .up-side-collapse:hover { background: var(--color-sidebar-active); }
.ep-user .up-shell.up-collapsed .up-sidebar { flex-basis: var(--sidebar-w-collapsed); width: var(--sidebar-w-collapsed); }
.ep-user .up-shell.up-collapsed .up-side-name, .ep-user .up-shell.up-collapsed .up-side-group, .ep-user .up-shell.up-collapsed .up-side-link .lbl, .ep-user .up-shell.up-collapsed .up-side-collapse .lbl { display: none; }
.ep-user .up-shell.up-collapsed .up-side-link { justify-content: center; padding: 8px; }
.ep-user .up-shell.up-collapsed .up-side-brand { padding: 16px 8px; }
.ep-user .up-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ep-user .up-main { max-width: 1600px; margin: 0 auto; width: 100%; flex: 1 1 auto; }
.ep-user .up-backdrop { display: none; }
.ep-user .up-topbar { position: sticky; top: 0; z-index: var(--z-sticky); height: var(--topbar-h); background: var(--color-surface); border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 8px; padding: 0 12px; }
@media (min-width: 905px) { .ep-user .up-topbar { padding: 0 16px; } }
.ep-user .up-page-title { font-weight: 600; color: var(--color-text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-user .up-icon-btn { width: 44px; height: 44px; min-width: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); position: relative; border: 0; background: none; }
.ep-user .up-icon-btn:hover { background: var(--color-primary-soft); color: var(--color-text); border-color: transparent; }
.ep-user .up-bell-badge { top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--color-danger); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 0; }
.ep-user .up-avatar-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border-radius: 999px; padding: 4px; border: 0; background: none; cursor: pointer; }
.ep-user .up-avatar-btn:hover { background: var(--color-primary-soft); }
.ep-user .up-avatar-btn .ep-avatar { box-shadow: none; }
.ep-user .up-avatar-caret { color: var(--color-text-muted); display: inline-flex; align-items: center; }
.ep-user .ep-avatar { background: var(--color-primary-soft); color: var(--color-primary); width: 36px; height: 36px; }
[data-theme="dark"] .ep-user .ep-avatar { color: #93C5FD; }
.ep-user .up-dropdown-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-bottom: 1px solid var(--color-border); }
.ep-user .up-dd-info { min-width: 0; }
.ep-user .up-dd-info .nm { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ep-user .up-dd-info .em { color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; word-break: break-all; }
.ep-user .up-dd-money { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 0; flex: 0 0 auto; }
.ep-user .up-dd-money-row { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; align-items: flex-end; white-space: nowrap; }
.ep-user .up-dd-money-row span { color: var(--color-text-muted); }
.ep-user .up-dd-money-row strong { font-weight: 700; color: var(--color-text); }
.ep-user .up-dd-controls { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 4px 0; }
.ep-user .up-logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--color-primary); color: #fff; font-weight: 600; cursor: pointer; box-shadow: none; }
.ep-user .up-logout-btn:hover { background: var(--color-primary-hover); color: #fff; }
.ep-user .up-account-menu { min-width: 300px; max-width: calc(100vw - 24px); }
.ep-user .ep-ticker { flex: 1; min-width: 0; overflow: hidden; margin: 0 8px; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border); border-top: 0; border-bottom: 0; border-radius: 0; padding: 0 12px; background: transparent; }
/* v9.75: ticker lives IN the topbar on every width (the below-header
 * mobile strip is gone) and its text is RED in both themes so it
 * catches the eye — #DC2626 on the light topbar, #F87171 on dark. */
.ep-user .ep-ticker-track { color: #DC2626; }
.ep-user .ep-ticker-sep { color: #DC2626; }
.ep-user .ep-ticker a { color: #DC2626; }
[data-theme="dark"] .ep-user .ep-ticker-track { color: #F87171; }
[data-theme="dark"] .ep-user .ep-ticker-sep { color: #F87171; }
[data-theme="dark"] .ep-user .ep-ticker a { color: #F87171; }
/* --- footer: light surface (§30); hidden on phones, see below --- */
.ep-user .up-footer { background: var(--color-surface); color: var(--color-text-muted); margin-top: 24px; border-top: 1px solid var(--color-border); margin-bottom: 0; }
.ep-user .up-footer > .container-fluid { max-width: 1600px; margin: 0 auto; padding-bottom: 1rem; }
.ep-user .up-footer .lp-brand-name { color: var(--color-text); }
.ep-user .up-footer .lp-foot-hr { margin: 16px 0 12px; }
.ep-user .up-footer .lp-foot-links a { color: var(--color-text-muted); }
.ep-user .up-footer .lp-foot-links a:hover { color: var(--color-primary); }
.ep-user .up-footer .lp-foot-muted { color: var(--color-text-muted); }
/* --- footer hidden on phones (§30, owner ask 2026-11-16): after login,
 * mobile users never see the user-panel footer — display:none, so no
 * blank space is left where it was. Desktop footer and the logged-out
 * landing footer are untouched. Breakpoint = Bootstrap md (767.98px),
 * the same boundary the landing footer already uses (d-none d-md-block)
 * and the older .up-footer mobile rules above use. */
@media (max-width: 767.98px) {
  .ep-user .up-footer { display: none; }
}
/* --- bottom nav (§6): 5 items, SVG icons, ≤904px --- */
@media (max-width: 904px) {
  .ep-user .ep-bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bottomnav); height: var(--bottomnav-h); background: var(--color-surface); border-top: 1px solid var(--color-border); padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
  .ep-user .ep-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; color: var(--color-text-muted); font-weight: 600; padding: 0; }
  .ep-user .ep-bottom-nav a.active { color: var(--color-primary); font-weight: 700; }
  body.ep-user.ep-has-bottomnav { padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom)); }
}
@media (min-width: 905px) { .ep-user .ep-bottom-nav { display: none; } }
/* --- mobile drawer (≤991px): off-canvas sidebar + backdrop --- */
@media (max-width: 991.98px) {
  .ep-user .up-sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; transform: translateX(-100%); transition: transform .25s ease-out; box-shadow: var(--shadow-lg); }
  body.ep-user.up-nav-open .up-sidebar { transform: none; }
  body.ep-user.up-nav-open .up-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 350; }
  .ep-user .up-side-collapse { display: none; }
}

/* v9.75 — staff/support fixes: missing design.md utilities (badge, muted text,
   avatar fallback, primary border) + staff purpose toggle checked state. */
.text-ep-muted { color: var(--ep-text-2); }
.ep-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--ep-radius-pill); font-weight: 600; line-height: 1; white-space: nowrap; vertical-align: middle; }
.ep-badge-blue { background: var(--ep-primary-soft); color: var(--ep-primary); }
.ep-badge-green { background: var(--ep-success-soft); color: #15803D; }
[data-theme="dark"] .ep-badge-green { color: #4ADE80; }
.ep-avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ep-surface-2); flex: 0 0 auto; }
.border-primary { border-color: var(--color-primary) !important; }
/* Staff apply: the checked purpose button takes the primary gradient look. */
#staff-apply .btn-check:checked + .btn-outline-secondary { background: linear-gradient(135deg, #2563EB, #7C3AED); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
#staff-apply .btn-check:checked + .btn-outline-secondary:hover, #staff-apply .btn-check:checked + .btn-outline-secondary:focus { background: linear-gradient(135deg, #1D4ED8, #6D28D9); color: #fff; }

/* v9.75: dark-mode fixes — FAQ buttons, referral block, funds cards/stats/preview.
 * Root cause: hardcoded light backgrounds + dark-mode white text. The inputs
 * themselves were already token-driven; these are the light containers and
 * buttons around them. Add-only; no text sizing here (smoke-enforced).
 * Light theme untouched. */
/* 1. FAQ buttons (.mp-faq-btn base is #fff bg + theme text = white-on-white
 * in dark). Same values as the membership-split override (design.md §16.1),
 * generalized to all 6 FAQ pages: bonus, allowances, deposit, funds,
 * promote, membership. */
[data-theme="dark"] .ep-user .mp-faq-btn{ background:rgba(255,255,255,.07); border:1px solid var(--color-border); color:var(--color-text); }
/* 2. Referral block (.mp-referral base is a light indigo gradient; its dark
 * override was scoped to .membership-split only, so /team had none). */
[data-theme="dark"] .ep-user .mp-referral{ background:linear-gradient(135deg,rgba(99,102,241,.18),rgba(139,92,246,.10),rgba(99,102,241,.05)); border:1px solid rgba(165,180,252,.35); }
[data-theme="dark"] .ep-user .mp-referral table{ background:transparent; }
[data-theme="dark"] .ep-user .mp-referral thead th{ background:rgba(99,102,241,.25); color:#C7D2FE; }
/* 3. Funds cards (.fd-card.mp-theme-*): the dark mp-theme-* variants were
 * scoped to .act-grid (dashboard tiles) and .mp-plans-grid (membership
 * plan cards) only — funds cards kept the light pastel gradients. Same
 * rgba-tint values as the .act-grid block. */
[data-theme="dark"] .ep-user .fd-card.mp-theme-blue{ background:linear-gradient(180deg,rgba(59,130,246,.22),rgba(59,130,246,.06)); border:1px solid rgba(59,130,246,.45); --mp-accent:#93C5FD; --mp-name:#DBEAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(59,130,246,.22); --mp-cb-border:rgba(59,130,246,.45); --mp-cb-text:#BFDBFE; --mp-btn:#3B82F6; --mp-btn-hover:#2563EB; }
[data-theme="dark"] .ep-user .fd-card.mp-theme-green{ background:linear-gradient(180deg,rgba(16,185,129,.20),rgba(16,185,129,.06)); border:2px solid rgba(16,185,129,.5); --mp-accent:#6EE7B7; --mp-name:#D1FAE5; --mp-sub:#94A3B8; --mp-cb-bg:rgba(16,185,129,.22); --mp-cb-border:rgba(16,185,129,.45); --mp-cb-text:#A7F3D0; --mp-btn:#10B981; --mp-btn-hover:#059669; }
[data-theme="dark"] .ep-user .fd-card.mp-theme-amber{ background:linear-gradient(180deg,rgba(245,158,11,.20),rgba(245,158,11,.06)); border:1px solid rgba(245,158,11,.5); --mp-accent:#FCD34D; --mp-name:#FEF3C7; --mp-sub:#94A3B8; --mp-cb-bg:rgba(245,158,11,.22); --mp-cb-border:rgba(245,158,11,.45); --mp-cb-text:#FDE68A; --mp-btn:#F59E0B; --mp-btn-hover:#D97706; }
[data-theme="dark"] .ep-user .fd-card.mp-theme-purple{ background:linear-gradient(180deg,rgba(139,92,246,.22),rgba(139,92,246,.06)); border:1px solid rgba(139,92,246,.45); --mp-accent:#C4B5FD; --mp-name:#EDE9FE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(139,92,246,.22); --mp-cb-border:rgba(139,92,246,.45); --mp-cb-text:#DDD6FE; --mp-btn:#8B5CF6; --mp-btn-hover:#7C3AED; }
[data-theme="dark"] .ep-user .fd-card.mp-theme-rose{ background:linear-gradient(180deg,rgba(236,72,153,.20),rgba(236,72,153,.06)); border:1px solid rgba(236,72,153,.45); --mp-accent:#F9A8D4; --mp-name:#FDE8EF; --mp-sub:#94A3B8; --mp-cb-bg:rgba(236,72,153,.22); --mp-cb-border:rgba(236,72,153,.45); --mp-cb-text:#FECDD3; --mp-btn:#EC4899; --mp-btn-hover:#DB2777; }
[data-theme="dark"] .ep-user .fd-card.mp-theme-cyan{ background:linear-gradient(180deg,rgba(6,182,212,.20),rgba(6,182,212,.06)); border:1px solid rgba(6,182,212,.45); --mp-accent:#67E8F9; --mp-name:#CFFAFE; --mp-sub:#94A3B8; --mp-cb-bg:rgba(6,182,212,.22); --mp-cb-border:rgba(6,182,212,.45); --mp-cb-text:#A5F3FC; --mp-btn:#06B6D4; --mp-btn-hover:#0891B2; }
/* 4. Funds stats row (.fd-stat base #fff) + live preview (.fd-preview base
 * light green; only its <strong> had a dark-readable colour). */
[data-theme="dark"] .ep-user .fd-stat{ background:var(--color-surface); border:1px solid var(--color-border); }
[data-theme="dark"] .ep-user .fd-preview{ background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.45); }
[data-theme="dark"] .ep-user .fd-preview strong{ color:#6EE7B7; }
/* 5. Alert links: .ep-user .alert-warning (components.css:786) is dark-themed
 * in dark mode (dark amber bg, light text), but Bootstrap's .alert-link keeps
 * its light-mode dark-brown colour (#664D03) — invisible on the dark alert.
 * Found on /promote (verify alert) by the contrast scan. Light amber reads
 * on every dark alert background, so one rule covers all variants. */
[data-theme="dark"] .ep-user .alert-link{ color:#FDE68A; }
