/* ==========================================================================
   LeadsMaster - custom CSS (white luxury, flat solid colors, no gradients).
   Tailwind utilities handle layout; this file holds the bespoke pieces.
   ========================================================================== */

:root{
  --ink:#0e1726; --ink-soft:#475569; --ink-faint:#94a3b8;
  --mist:#f4f7fc; --surface:#ffffff; --line:#e6ebf3;
  --brand:#1d4ed8; --brand-600:#2563eb; --navy:#14245f;
  --emerald:#16a34a; --amber:#ea580c;
  --radius:18px;
}

*{ -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; }
body{ background:var(--mist); color:var(--ink); font-family:'Plus Jakarta Sans',system-ui,sans-serif; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:#cfd9ea; border-radius:20px; border:2px solid var(--mist); }
::-webkit-scrollbar-thumb:hover{ background:#b6c4dc; }

/* Selection */
::selection{ background:var(--brand); color:#fff; }

/* --- Reusable surfaces ---------------------------------------------------- */
.lm-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 1px 0 rgba(16,23,38,.03), 0 18px 40px -24px rgba(16,23,38,.18); }
.lm-card-flat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.lm-divider{ height:1px; background:var(--line); }

/* --- Buttons -------------------------------------------------------------
   NOTE: selectors are intentionally compounded (.btn.btn-primary) so they
   out-rank Tailwind Preflight's `[type='submit']{background-color:transparent}`
   reset, which otherwise ties on specificity and wins by source order. */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem; font-weight:600; border-radius:12px; padding:.7rem 1.15rem; transition:transform .12s cubic-bezier(.16,1,.3,1), background .15s, box-shadow .15s; cursor:pointer; border:1px solid transparent; font-size:.93rem; line-height:1.2; }
.btn:active{ transform:translateY(1px) scale(.985); }
.btn.btn-primary{ background:var(--brand); color:#fff; box-shadow:0 10px 24px -14px rgba(29,78,216,.85); }
.btn.btn-primary:hover{ background:#1a45c0; }
.btn.btn-ink{ background:var(--ink); color:#fff; }
.btn.btn-ink:hover{ background:#1b2940; }
.btn.btn-emerald{ background:var(--emerald); color:#fff; }
.btn.btn-emerald:hover{ background:#15803d; }
.btn.btn-amber{ background:var(--amber); color:#fff; }
.btn.btn-amber:hover{ background:#c2410c; }
.btn.btn-outline{ background:#fff; color:var(--ink); border-color:var(--line); }
.btn.btn-outline:hover{ border-color:#cdd8ea; background:#fbfdff; }
.btn.btn-ghost{ background:transparent; color:var(--ink-soft); }
.btn.btn-ghost:hover{ background:#eef2f9; color:var(--ink); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

/* Pills / chips */
.chip{ display:inline-flex; align-items:center; gap:.35rem; font-size:.72rem; font-weight:700; padding:.28rem .6rem; border-radius:999px; }
.chip-blue{ background:#e8eeff; color:#1d4ed8; }
.chip-green{ background:#e6f6ec; color:#15803d; }
.chip-amber{ background:#fdecdf; color:#c2410c; }
.chip-gray{ background:#eef2f7; color:#475569; }

/* --- Forms --------------------------------------------------------------- */
.field-label{ display:block; font-size:.82rem; font-weight:600; color:var(--ink-soft); margin-bottom:.35rem; }
.field{ width:100%; background:#fff; border:1px solid var(--line); border-radius:12px; padding:.78rem .9rem; font-size:.95rem; color:var(--ink); transition:border .15s, box-shadow .15s; }
.field:focus{ outline:none; border-color:#9cb6f5; box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.field::placeholder{ color:#aab6c8; }
.field-icon{ position:relative; }
.field-icon .field{ padding-left:2.6rem; }
.field-icon > i{ position:absolute; left:.9rem; top:50%; transform:translateY(-50%); color:#9aa7bd; font-size:1.05rem; }
.pw-toggle{ position:absolute; right:.7rem; top:50%; transform:translateY(-50%); color:#9aa7bd; cursor:pointer; padding:.25rem; }
.pw-toggle:hover{ color:var(--ink); }
input[type=checkbox], input[type=radio]{ accent-color:var(--brand); width:1rem; height:1rem; }
select.field{ appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%239aa7bd'%20stroke-width='2'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .8rem center; background-size:1.1rem; padding-right:2.4rem; }

/* --- App shell (mobile-app feel) ----------------------------------------- */
.app-shell{ min-height:100dvh; }
.app-main{ padding-bottom:6.5rem; } /* room for floating bottom nav */
@media(min-width:1024px){ .app-main{ padding-bottom:2rem; } }

/* Bottom floating glass nav (mobile/tablet) */
.bottom-nav{
  position:fixed; left:50%; transform:translateX(-50%); bottom:14px; z-index:60;
  width:min(560px, calc(100% - 24px));
  background:rgba(255,255,255,.72);
  -webkit-backdrop-filter:saturate(180%) blur(18px); backdrop-filter:saturate(180%) blur(18px);
  border:1px solid rgba(255,255,255,.6); box-shadow:0 -1px 0 rgba(16,23,38,.04), 0 20px 45px -20px rgba(16,23,38,.35);
  border-radius:22px; padding:.5rem; display:flex; justify-content:space-around; align-items:center;
}
.bottom-nav a{ position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; color:#7c8aa3; font-size:.62rem; font-weight:600; padding:.35rem .5rem; border-radius:14px; transition:color .15s, background .15s; flex:1; }
.bottom-nav a i{ font-size:1.35rem; }
.bottom-nav a.active{ color:var(--brand); }
.bottom-nav a.active::before{ content:''; position:absolute; top:-6px; width:26px; height:3px; border-radius:999px; background:var(--brand); }
.bottom-nav .fab{ background:var(--brand); color:#fff; width:48px; height:48px; border-radius:16px; margin-top:-22px; box-shadow:0 12px 24px -8px rgba(29,78,216,.7); }
.bottom-nav .fab i{ font-size:1.5rem; }
.bottom-nav .fab span{ display:none; }
@media(min-width:1024px){ .bottom-nav{ display:none; } }

/* Desktop sidebar (legacy / mobile drawer) */
.side{ width:264px; }
.side-link{ display:flex; align-items:center; gap:.75rem; padding:.7rem .85rem; border-radius:12px; color:var(--ink-soft); font-weight:600; font-size:.92rem; transition:background .15s,color .15s; }
.side-link i{ font-size:1.25rem; color:#8a98b0; transition:color .15s; }
.side-link:hover{ background:#eef2fb; color:var(--ink); }
.side-link.active{ background:linear-gradient(100deg,#2563eb 0%,#7c3aed 100%); color:#fff; }
.side-link.active i{ color:#fff; }

/* ===== Collapsible rail sidebar (TurboMax style: rail + hover-expand + pin) ===== */
:root{ --rail:86px; --side-open:268px; }
.lm-side-spacer{ flex:none; width:var(--rail); transition:width .3s cubic-bezier(.22,1,.36,1); }
html[data-side="open"] .lm-side-spacer{ width:var(--side-open); }
.lm-side{
  position:fixed; top:0; left:0; height:100dvh; z-index:75; width:var(--rail);
  background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column;
  overflow:hidden; transition:width .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
html[data-side="open"] .lm-side{ width:var(--side-open); }
html[data-side="rail"] .lm-side:hover{ width:var(--side-open); box-shadow:20px 0 60px -24px rgba(16,23,38,.4); }
@media(max-width:1023px){ .lm-side,.lm-side-spacer{ display:none !important; } }

/* logo area (cross-fade mark <-> full lockup) */
.lm-side-logo{ height:64px; flex:none; position:relative; border-bottom:1px solid var(--line); }
.lm-side-logo a{ position:absolute; inset:0; display:block; }
.lm-side-logo .lm-logo-mark { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); width: 59px; height: 59px; object-fit: contain; transition: opacity .2s; }
.lm-side-logo .lm-logo-full{ position:absolute; top:50%; left:20px; transform:translateY(-50%); height:60px; width:auto; max-width:200px; object-fit:contain; opacity:0; transition:opacity .2s; }
html[data-side="open"] .lm-side .lm-logo-full,
html[data-side="rail"] .lm-side:hover .lm-logo-full{ opacity:1; }
html[data-side="open"] .lm-side .lm-logo-mark,
html[data-side="rail"] .lm-side:hover .lm-logo-mark{ opacity:0; }

/* nav scroller */
.lm-side nav{ flex:1; overflow-y:auto; overflow-x:hidden; padding:10px 15px 96px; }
.lm-side nav::-webkit-scrollbar{ width:0; }

/* category header: text by default, centered divider line only in collapsed rail */
.lm-cat{ position:relative; height:30px; display:flex; align-items:center; padding:0 12px; margin-top:10px; }
.lm-cat span{ font-size:.64rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#9aa7bd; white-space:nowrap; opacity:1; transition:opacity .2s; }
.lm-cat::after{ content:''; position:absolute; left:26px; right:26px; top:50%; height:1px; background:var(--line); opacity:0; transition:opacity .2s; }
html[data-side="rail"] .lm-side .lm-cat span{ opacity:0; }
html[data-side="rail"] .lm-side .lm-cat::after{ opacity:1; }
html[data-side="rail"] .lm-side:hover .lm-cat span{ opacity:1; }
html[data-side="rail"] .lm-side:hover .lm-cat::after{ opacity:0; }
/* subtle group separator above each non-first category (expanded only) */
.lm-side nav .lm-cat:not(:first-of-type)::before{ content:''; position:absolute; left:14px; right:16px; top:-2px; height:1px; background:var(--line); opacity:0; transition:opacity .2s; }
html[data-side="open"] .lm-side .lm-cat:not(:first-of-type)::before,
html[data-side="rail"] .lm-side:hover .lm-cat:not(:first-of-type)::before{ opacity:1; }

/* rail links: fixed icon slot + clipped fading label */
.lm-side .side-link{ position:relative; height:46px; padding:0; gap:0; margin:3px 0; border-radius:13px; }
.lm-side .side-link .ic{ position:relative; width:56px; flex:none; display:flex; align-items:center; justify-content:center; }
.lm-side .side-link .ic i{ font-size:1.32rem; }
.lm-side .side-link .lm-lbl{ white-space:nowrap; opacity:1; transition:opacity .2s; font-size: 0.9rem; }
html[data-side="rail"] .lm-side .side-link .lm-lbl{ opacity:0; }
html[data-side="rail"] .lm-side:hover .side-link .lm-lbl{ opacity:1; }
.lm-side .side-link.active{ box-shadow:0 12px 24px -12px rgba(124,58,237,.85); }
.lm-side .side-link.active .ic i{ color:#fff; }
/* hover dot indicator on the right (expanded), like the concept's Dashboard row */
.lm-side .side-link::after{ content:''; position:absolute; right:16px; top:50%; transform:translateY(-50%); width:7px; height:7px; border-radius:50%; background:var(--brand); opacity:0; transition:opacity .15s; }
html[data-side="open"] .lm-side .side-link:hover:not(.active)::after,
html[data-side="rail"] .lm-side:hover .side-link:hover:not(.active)::after{ opacity:1; }
/* collapsed rail: compact gradient square behind the active icon (instead of a full pill) */
html[data-side="rail"] .lm-side:not(:hover) .side-link.active{ background:transparent; box-shadow:none; }
html[data-side="rail"] .lm-side:not(:hover) .side-link.active .ic::before{ content:''; position:absolute; left:50%; top:50%; width:44px; height:44px; transform:translate(-50%,-50%); border-radius:13px; background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 8px 18px -8px rgba(124,58,237,.85); }
html[data-side="rail"] .lm-side:not(:hover) .side-link.active .ic i{ position:relative; z-index:1; }

/* pin / collapse toggle */
.lm-side-foot{ flex:none; border-top:1px solid var(--line); padding:10px 15px; }
.lm-pin{ width:100%; height:44px; display:flex; align-items:center; border-radius:13px; color:var(--ink-soft); cursor:pointer; transition:background .15s; }
.lm-pin:hover{ background:#eef2fb; color:var(--ink); }
.lm-pin .ic{ width:56px; flex:none; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.lm-pin .lm-lbl{ white-space:nowrap; font-weight:600; font-size:.9rem; opacity:0; transition:opacity .2s; }
html[data-side="open"] .lm-pin .lm-lbl,
html[data-side="rail"] .lm-side:hover .lm-pin .lm-lbl{ opacity:1; }
.lm-pin .when-open{ display:none; } .lm-pin .when-rail{ display:inline-block; }
html[data-side="open"] .lm-pin .when-open{ display:inline-block; }
html[data-side="open"] .lm-pin .when-rail{ display:none; }

/* Upgrade card (bottom of expanded sidebar) */
.lm-upcard{ position:relative; display:flex; align-items:center; gap:.6rem; margin-bottom:10px; padding:.65rem .7rem; border-radius:16px; background:linear-gradient(135deg,#eef2ff 0%,#f3edff 100%); border:1px solid #e6e9ff; transition:opacity .2s, transform .15s, box-shadow .2s, height .2s, margin .2s, padding .2s; }
.lm-upcard:hover{ box-shadow:0 14px 26px -14px rgba(99,102,241,.6); transform:translateY(-1px); }
.lm-upcard-ic{ width:34px; height:34px; flex:none; border-radius:10px; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.05rem; box-shadow:0 6px 14px -6px rgba(124,58,237,.85); }
.lm-upcard-tx{ min-width:0; flex:1; }
.lm-upcard-tx b{ display:block; font-size:.8rem; font-weight:800; color:var(--ink); line-height:1.15; }
.lm-upcard-tx small{ display:block; font-size:.68rem; color:var(--ink-soft); line-height:1.2; margin-top:1px; white-space:normal; }
.lm-upcard-go{ width:28px; height:28px; flex:none; border-radius:9px; background:#fff; color:var(--brand); display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(16,23,38,.1); }
html[data-side="rail"] .lm-side:not(:hover) .lm-upcard{ opacity:0; height:0; margin:0; padding:0; border-width:0; pointer-events:none; overflow:hidden; }

/* ===== Topbar search (Facebook style) ===== */
.lm-search{ position:relative; width:100%; max-width:30rem; }
.lm-search-box{ display:flex; align-items:center; gap:.6rem; height:42px; padding:0 .9rem; border-radius:999px; background:#eef2f9; border:1px solid transparent; transition:background .15s, border-color .15s, box-shadow .15s; }
.lm-search-box:focus-within{ background:#fff; border-color:#9cb6f5; box-shadow:0 0 0 4px rgba(37,99,235,.12); }
.lm-search-box i{ color:#8a98b0; font-size:1.15rem; flex:none; }
.lm-search-box input{ flex:1; background:transparent; border:0; outline:0; font-size:.85rem; font-weight:400; letter-spacing:.005em; color:var(--ink); min-width:0; }
.lm-search-box input::placeholder{ color:#9aa7bd; font-weight:400; }
.lm-search-kbd{ font-size:.68rem; font-weight:700; color:#9aa7bd; border:1px solid var(--line); border-radius:6px; padding:.05rem .35rem; flex:none; }
.lm-search-panel{ position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 24px 60px -20px rgba(16,23,38,.4); padding:.5rem; max-height:70vh; overflow-y:auto; z-index:50; display:none; }
.lm-search-panel.show{ display:block; animation:pop .18s cubic-bezier(.22,1,.36,1); }
.lm-sr-group{ font-size:.64rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9aa7bd; padding:.6rem .7rem .25rem; }
.lm-sr{ display:flex; align-items:center; gap:.75rem; padding:.6rem .7rem; border-radius:11px; cursor:pointer; color:var(--ink); }
.lm-sr:hover,.lm-sr.sel{ background:#eef2fb; }
.lm-sr .ic{ width:34px; height:34px; flex:none; border-radius:9px; background:#eef4ff; color:var(--brand); display:flex; align-items:center; justify-content:center; font-size:1.05rem; }
.lm-sr b{ font-weight:700; font-size:.9rem; }
.lm-sr small{ display:block; color:var(--ink-faint); font-size:.74rem; }
.lm-sr mark{ background:#dbe6ff; color:inherit; border-radius:3px; padding:0 1px; }
.lm-search-empty{ text-align:center; color:var(--ink-faint); font-size:.85rem; padding:1.4rem; }

/* Mobile drawer (hamburger menu) */
.drawer-backdrop{ position:fixed; inset:0; background:rgba(8,15,30,.42); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); opacity:0; pointer-events:none; transition:opacity .3s; z-index:80; }
.drawer-backdrop.open{ opacity:1; pointer-events:auto; }
.drawer{ position:fixed; top:0; left:0; height:100dvh; width:min(84vw,320px); background:#fff; z-index:90; transform:translateX(-100%); transition:transform .42s cubic-bezier(.22,1,.36,1); box-shadow:14px 0 48px rgba(16,23,38,.18); display:flex; flex-direction:column; }
.drawer.open{ transform:translateX(0); }
.drawer .side-link{ font-size:1rem; }

/* Mobile drawer redesign (concept) */
.dr-head{ display:flex; align-items:center; justify-content:space-between; padding:1.05rem 1.2rem .7rem; flex:none; }
.dr-x{ width:40px; height:40px; border-radius:12px; background:#f1f5f9; display:flex; align-items:center; justify-content:center; color:#0e1726; font-size:1.3rem; transition:transform .12s, background .15s; }
.dr-x:hover{ background:#e7edf5; } .dr-x:active{ transform:scale(.93); }
.dr-body{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:.2rem 1rem 1.2rem; }
.dr-user{ display:flex; align-items:center; gap:.8rem; padding:.7rem .85rem; border:1px solid var(--line); border-radius:16px; margin-bottom:.3rem; }
.dr-user:active{ background:#f7f9fc; }
.dr-ava{ position:relative; width:44px; height:44px; flex:none; border-radius:50%; background:var(--brand); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; font-size:1.05rem; }
.dr-dot{ position:absolute; right:-1px; bottom:-1px; width:12px; height:12px; border-radius:50%; background:#22c55e; border:2.5px solid #fff; }
.dr-user-tx{ flex:1; min-width:0; }
.dr-user-tx b{ display:block; font-weight:800; color:#0e1726; font-size:.98rem; line-height:1.15; }
.dr-user-tx small{ display:block; color:#9aa7bd; font-size:.82rem; }
.dr-user-ch{ color:#9aa7bd; font-size:1.2rem; flex:none; }
.dr-cat{ font-size:.7rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; color:#9aa7bd; margin:.95rem 0 .3rem .55rem; }
.dr-nav{ display:flex; flex-direction:column; gap:.05rem; }
.dr-item{ display:flex; align-items:center; gap:.85rem; padding:.68rem .85rem; border-radius:14px; color:#0e1726; transition:background .15s; }
.dr-item .ic{ width:26px; flex:none; display:flex; align-items:center; justify-content:center; color:#5b6b86; font-size:1.3rem; }
.dr-item .tx{ flex:1; font-weight:500; font-size:0.9rem; }
.dr-item .ch{ color:#c3ccdb; font-size:1.05rem; flex:none; }
.dr-item .ch-grid{ display:none; }
.dr-item:active{ background:#f4f6fb; }
.dr-item.active{ background:linear-gradient(100deg,#2563eb 0%,#7c3aed 100%); color:#fff; box-shadow:0 12px 24px -12px rgba(124,58,237,.8); }
.dr-item.active .ic{ color:#fff; }
.dr-item.active .ch{ display:none; }
.dr-item.active .ch-grid{ display:block; color:#fff; opacity:.85; font-size:1.15rem; flex:none; }
.dr-div{ height:1px; background:var(--line); margin:.7rem .55rem; }
.dr-upcard{ display:flex; align-items:center; gap:.7rem; margin-top:1.1rem; padding:.85rem; border-radius:18px; background:linear-gradient(135deg,#eef2ff,#f3edff); border:1px solid #e6e9ff; }
.dr-upcard:active{ transform:scale(.99); }
.dr-upcard-ic{ width:46px; height:46px; flex:none; border-radius:14px; background:#fff; color:#7c3aed; display:flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:0 6px 14px -6px rgba(124,58,237,.4); }
.dr-upcard-tx{ flex:1; min-width:0; }
.dr-upcard-tx b{ display:block; font-weight:800; color:#0e1726; font-size:.95rem; line-height:1.15; }
.dr-upcard-tx small{ display:block; color:#56627a; font-size:.78rem; line-height:1.3; margin-top:2px; }
.dr-upcard-go{ width:40px; height:40px; flex:none; border-radius:50%; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 18px -6px rgba(124,58,237,.7); }
.dr-foot{ flex:none; display:flex; align-items:stretch; border-top:1px solid var(--line); }
.dr-foot-link{ flex:1; display:flex; align-items:center; gap:.45rem; justify-content:center; padding:1rem .6rem; color:#0e1726; font-weight:700; font-size:.92rem; transition:background .15s; }
.dr-foot-link:active{ background:#f4f6fb; }
.dr-foot-link i:first-child{ color:#5b6b86; font-size:1.2rem; }
.dr-foot-link .ch{ color:#c3ccdb; font-size:.9rem; }
.dr-foot-link + .dr-foot-link{ border-left:1px solid var(--line); }

/* Grid (9-dot) menu button */
.lm-grid-btn { width: 42px; height: 42px; flex: none; border-radius: 13px; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 8px -6px rgb(16 23 38 / 18%); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.lm-grid-btn:hover{ box-shadow:0 6px 16px -6px rgba(16,23,38,.28); }
.lm-grid-btn:active{ transform:scale(.95); }
.lm-grid-dots{ display:grid; grid-template-columns:repeat(3,1fr); gap:3.5px; }
.lm-grid-dots i{ width:4.5px; height:4.5px; border-radius:50%; background:var(--brand); display:block; }

/* Animated hamburger */
.hamb{ width:26px; height:20px; position:relative; cursor:pointer; }
.hamb span{ position:absolute; left:0; height:2.5px; width:100%; background:var(--ink); border-radius:3px; transition:transform .35s cubic-bezier(.22,1,.36,1), opacity .25s, top .35s; }
.hamb span:nth-child(1){ top:0; }
.hamb span:nth-child(2){ top:8.5px; }
.hamb span:nth-child(3){ top:17px; }
.hamb.active span:nth-child(1){ top:8.5px; transform:rotate(45deg); }
.hamb.active span:nth-child(2){ opacity:0; }
.hamb.active span:nth-child(3){ top:8.5px; transform:rotate(-45deg); }

/* --- Loading / processing overlay --------------------------------------- */
.lm-overlay{ position:fixed; inset:0; z-index:120; display:none; align-items:center; justify-content:center; background:rgba(244,247,252,.72); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.lm-overlay.show{ display:flex; }
.lm-spinner{ width:54px; height:54px; border-radius:50%; border:4px solid #dbe4f3; border-top-color:var(--brand); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* --- Animations ---------------------------------------------------------- */
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-8px); } }
.floaty{ animation:floaty 4s ease-in-out infinite; }
@keyframes pulse-ring{ 0%{ box-shadow:0 0 0 0 rgba(22,163,74,.5);} 70%{ box-shadow:0 0 0 12px rgba(22,163,74,0);} 100%{ box-shadow:0 0 0 0 rgba(22,163,74,0);} }
.pulse-dot{ animation:pulse-ring 2s infinite; }
@keyframes shimmer{ 100%{ transform:translateX(100%);} }
.skeleton{ position:relative; overflow:hidden; background:#eef2f7; border-radius:10px; }
.skeleton::after{ content:''; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent); animation:shimmer 1.4s infinite; }
.reveal{ opacity:0; transform:translateY(18px); }
.reveal.in{ opacity:1; transform:none; transition:opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }

/* Count-up numbers use monospace tabular feel */
.tnum{ font-variant-numeric:tabular-nums; }

/* --- Mining coin --------------------------------------------------------- */
.coin{ width:120px; height:120px; position:relative; }
.coin-face{ width:100%; height:100%; border-radius:50%; background:#f5b417; border:6px solid #e29c0b; display:flex; align-items:center; justify-content:center; color:#7a4d05; box-shadow:0 14px 30px -10px rgba(234,150,11,.6), inset 0 -8px 14px rgba(0,0,0,.12), inset 0 6px 10px rgba(255,255,255,.4); }
.coin-face i{ font-size:3rem; }
@keyframes coin-pop{ 0%{ transform:scale(.6) translateY(10px); opacity:0; } 60%{ transform:scale(1.1); opacity:1; } 100%{ transform:scale(1) translateY(0); opacity:1; } }
.coin-pop{ animation:coin-pop .5s cubic-bezier(.22,1,.36,1); }
@keyframes coin-fly{ 0%{ transform:translate(0,0) scale(1); opacity:1; } 100%{ transform:translate(var(--fx,0),var(--fy,-160px)) scale(.4); opacity:0; } }
.coin-fly{ animation:coin-fly .9s cubic-bezier(.22,1,.36,1) forwards; }
.coin-spin{ animation:coinspin 6s linear infinite; }
@keyframes coinspin{ to{ transform:rotateY(360deg); } }

/* Floating coin particles for publish button */
.fly-coin{ position:absolute; width:30px; height:30px; border-radius:50%; background:#f5b417; border:3px solid #e29c0b; display:flex; align-items:center; justify-content:center; color:#7a4d05; pointer-events:none; z-index:50; }

/* --- 3D spinning coin (real metallic depth) ----------------------------- */
.coin3d{ position:relative; perspective:520px; }
.coin3d .disc{ position:absolute; inset:0; transform-style:preserve-3d; animation:coin3dspin 4.6s cubic-bezier(.55,.12,.45,.9) infinite; }
@keyframes coin3dspin{ 0%{ transform:rotateY(0) rotateZ(-6deg);} 100%{ transform:rotateY(360deg) rotateZ(-6deg);} }
.coin3d .cface{ position:absolute; inset:0; border-radius:50%; backface-visibility:hidden; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 33% 27%, #fff0bd 0%, #fbcb43 36%, #eda51a 62%, #c9810a 100%);
  box-shadow: inset 0 0 0 3px rgba(255,236,170,.55), inset 0 7px 12px rgba(255,255,255,.55), inset 0 -12px 18px rgba(120,66,4,.55), 0 16px 30px -10px rgba(214,138,11,.65);
}
.coin3d .cface::after{ content:''; position:absolute; inset:11%; border-radius:50%; border:2px dashed rgba(140,82,6,.35); }
.coin3d .cface.back{ transform:rotateY(180deg); }
.coin3d .cface i{ font-size:2.4rem; color:#8a5206; filter:drop-shadow(0 1px 0 rgba(255,255,255,.6)); position:relative; z-index:1; }
.coin3d .rim{ position:absolute; inset:0; border-radius:50%; transform:translateZ(-5px); background:#a96f08; box-shadow:0 0 0 1px #91600a; }

/* --- Dashboard stat cards: mouse-follow glow + sequential top sweep ----- */
.lm-stat{ position:relative; overflow:hidden; isolation:isolate; transition:transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s, border-color .2s; }
.lm-stat::before{ content:''; position:absolute; top:0; left:-42%; width:42%; height:2px; border-radius:2px; pointer-events:none; z-index:2;
  background:linear-gradient(90deg, transparent, var(--accent,#2563eb), transparent); opacity:0; animation:lmTopSweep 8s linear infinite; }
.lm-stat:nth-child(1)::before{ animation-delay:0s; } .lm-stat:nth-child(2)::before{ animation-delay:2s; }
.lm-stat:nth-child(3)::before{ animation-delay:4s; } .lm-stat:nth-child(4)::before{ animation-delay:6s; }
@keyframes lmTopSweep{ 0%{ left:-42%; opacity:0; } 2%{ opacity:1; } 22%{ opacity:1; } 25%{ left:100%; opacity:0; } 100%{ left:100%; opacity:0; } }
.lm-stat::after{ content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:0; opacity:0; transition:opacity .25s;
  background:radial-gradient(170px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--accent,#2563eb) 18%, transparent), transparent 60%); }
.lm-stat:hover::after{ opacity:1; }
.lm-stat:hover{ transform:translateY(-3px); border-color:color-mix(in srgb, var(--accent,#2563eb) 45%, var(--line)); box-shadow:0 22px 44px -24px color-mix(in srgb, var(--accent,#2563eb) 65%, transparent); }
.lm-stat > *{ position:relative; z-index:1; }
@media (prefers-reduced-motion: reduce){ .lm-stat::before{ animation:none; } .coin3d .disc{ animation:none; } }

/* --- Interactive org chart --------------------------------------------- */
@keyframes lmspin{ to{ transform:rotate(360deg); } }
.org-scroll{ overflow-x:auto; padding:6px 4px 18px; -webkit-overflow-scrolling:touch; }
.orgtree{ display:inline-block; min-width:100%; text-align:center; --org-line:#d8e0ec; }
.orgtree ul{ position:relative; padding-top:26px; display:inline-flex; justify-content:center; margin:0; list-style:none; }
.orgtree li{ position:relative; padding:26px 12px 0; display:flex; flex-direction:column; align-items:center; list-style:none; }
.orgtree li::before, .orgtree li::after{ content:''; position:absolute; top:0; width:50%; height:26px; border-top:2px solid var(--org-line); }
.orgtree li::before{ right:50%; }
.orgtree li::after{ left:50%; border-left:2px solid var(--org-line); }
.orgtree li:only-child::before, .orgtree li:only-child::after{ display:none; }
.orgtree li:first-child::before, .orgtree li:last-child::after{ border:0 none; }
.orgtree li:last-child::before{ border-right:2px solid var(--org-line); border-radius:0 8px 0 0; }
.orgtree li:first-child::after{ border-radius:8px 0 0 0; }
.orgtree ul ul::before{ content:''; position:absolute; top:0; left:50%; width:0; height:26px; border-left:2px solid var(--org-line); }
.orgtree > ul{ padding-top:0; }
.orgtree > ul > li{ padding-top:0; }
.orgtree > ul > li::before, .orgtree > ul > li::after{ display:none; }
.org-children[hidden]{ display:none; }

.org-node{ position:relative; background:#fff; border:1px solid var(--line,#e6ebf3); border-radius:16px; padding:12px 14px; min-width:190px; max-width:200px; text-align:left; box-shadow:0 10px 26px -18px rgba(16,23,38,.35); transition:transform .15s, box-shadow .15s, border-color .15s; animation:orgpop .26s cubic-bezier(.22,1,.36,1) both; }
@keyframes orgpop{ from{ opacity:0; transform:translateY(8px) scale(.96); } to{ opacity:1; transform:none; } }
.org-node:hover{ transform:translateY(-2px); border-color:color-mix(in srgb,var(--nc,#2563eb) 45%, var(--line)); box-shadow:0 18px 36px -20px color-mix(in srgb,var(--nc,#2563eb) 60%, transparent); }
.org-node.is-root{ border-color:color-mix(in srgb,var(--nc,#2563eb) 55%, var(--line)); box-shadow:0 16px 36px -18px color-mix(in srgb,var(--nc,#2563eb) 55%, transparent); }
.org-node .on-top{ display:flex; align-items:center; gap:10px; }
.org-node .on-ava{ width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; color:#fff; background:var(--nc,#2563eb); flex:none; }
.org-node .on-name{ font-weight:800; font-size:13px; color:var(--ink,#0e1726); line-height:1.15; }
.org-node .on-user{ font-size:11px; color:#94a3b8; }
.org-node .on-meta{ display:flex; align-items:center; gap:6px; margin-top:8px; flex-wrap:wrap; }
.org-node .on-rank{ font-size:11px; font-weight:700; color:#475569; }
.org-node .on-stats{ display:flex; gap:14px; margin-top:8px; font-size:11px; color:#94a3b8; }
.org-node .on-stats b{ color:#0e1726; }
.org-node .on-toggle{ margin-top:10px; width:100%; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; font-weight:800; color:var(--nc,#2563eb); background:color-mix(in srgb,var(--nc,#2563eb) 10%, #fff); border:1px solid color-mix(in srgb,var(--nc,#2563eb) 22%, transparent); border-radius:10px; padding:6px; cursor:pointer; transition:background .15s; }
.org-node .on-toggle:hover{ background:color-mix(in srgb,var(--nc,#2563eb) 16%, #fff); }
.org-node .on-toggle i{ transition:transform .2s; }
.org-node .on-toggle.open i{ transform:rotate(180deg); }
.org-node .on-toggle.loading i{ animation:lmspin .9s linear infinite; }
.org-node .on-leaf{ margin-top:10px; display:block; text-align:center; font-size:11px; color:#cbd5e1; font-weight:700; }

/* --- Premium agent cards (member /packages) ---------------------------- */
.lm-grad-ai{ background:linear-gradient(95deg,#2563eb,#7c3aed); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pk-card{ position:relative; overflow:hidden; border-radius:24px; background:#fff; border:1px solid #eef2f7; box-shadow:0 24px 56px -38px rgba(16,23,38,.45); transition:transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s; }
.pk-card::before{ content:''; position:absolute; inset:0; background:radial-gradient(120% 80% at 85% 0%, color-mix(in srgb,var(--ac,#2563eb) 14%, transparent), transparent 60%); pointer-events:none; }
.pk-card:hover{ transform:translateY(-8px); border-color:color-mix(in srgb,var(--ac,#2563eb) 40%, #eef2f7); box-shadow:0 40px 76px -34px color-mix(in srgb,var(--ac,#2563eb) 50%, transparent); }
.pk-card.is-current{ border-color:color-mix(in srgb,var(--ac,#2563eb) 60%, #eef2f7); box-shadow:0 30px 66px -34px color-mix(in srgb,var(--ac,#2563eb) 55%, transparent); }
.pk-illo{ position:absolute; top:2px; right:2px; width:108px; height:108px; object-fit:contain; mix-blend-mode:multiply; pointer-events:none; }
.pk-badge{ display:inline-flex; align-items:center; gap:.3rem; font-size:.66rem; font-weight:800; letter-spacing:.06em; padding:.28rem .65rem; border-radius:999px; color:#fff; background:var(--ac,#2563eb); box-shadow:0 8px 18px -8px var(--ac,#2563eb); }
.pk-badge.live{ background:#16a34a; box-shadow:0 8px 18px -8px #16a34a; }
.pk-cta{ display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; font-weight:800; color:#fff; background:var(--ac,#2563eb); border-radius:14px; padding:.8rem; transition:filter .15s, transform .15s; box-shadow:0 14px 28px -12px var(--ac,#2563eb); cursor:pointer; }
.pk-cta:hover{ filter:brightness(1.07); transform:translateY(-1px); }
.pk-cta[disabled]{ filter:grayscale(.2) brightness(.98); opacity:.7; cursor:default; box-shadow:none; transform:none; }
.pk-cta-soft{ display:flex; align-items:center; justify-content:center; gap:.5rem; width:100%; font-weight:800; color:#64748b; background:#f1f5f9; border-radius:14px; padding:.8rem; cursor:default; }

/* --- Marquee ------------------------------------------------------------- */
.marquee{ display:flex; gap:2.5rem; width:max-content; animation:marquee 26s linear infinite; }
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* --- Progress ------------------------------------------------------------ */
.track{ height:10px; background:#e9eef7; border-radius:999px; overflow:hidden; }
.track > span{ display:block; height:100%; background:var(--brand); border-radius:999px; transition:width .8s cubic-bezier(.22,1,.36,1); }
.track.green > span{ background:var(--emerald); }
.track.amber > span{ background:var(--amber); }

/* --- Step checklist ------------------------------------------------------ */
.step{ display:flex; gap:.85rem; align-items:flex-start; padding:.85rem; border-radius:14px; border:1px solid var(--line); background:#fff; transition:border .15s; }
.step.done{ border-color:#bfe6cc; background:#f4fbf6; }
.step .tick{ width:28px; height:28px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center; border:2px solid #d6deeb; color:#aab6c8; }
.step.done .tick{ background:var(--emerald); border-color:var(--emerald); color:#fff; }

/* --- Hero (1:1 with provided design, restyled for white) ------------------ */
.hero-video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-heading{ font-family:'Helvetica Now Display Bold','Plus Jakarta Sans',sans-serif; line-height:1.05; letter-spacing:-.01em; color:#0e1726; }
.hero-sub{ font-family:'Inter',system-ui,sans-serif; }

/* Public translate toggle (white themed) */
.lm-lang-dd{ box-shadow:0 18px 50px -20px rgba(16,23,38,.4); }

/* --- Modals -------------------------------------------------------------- */
.lm-modal-backdrop{ position:fixed; inset:0; z-index:110; display:none; align-items:center; justify-content:center; padding:1rem; background:rgba(8,15,30,.5); -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
.lm-modal-backdrop.show{ display:flex; animation:fade .2s ease; }
.lm-modal{ background:#fff; border-radius:20px; width:100%; max-width:420px; padding:1.5rem; box-shadow:0 30px 70px -20px rgba(16,23,38,.5); animation:pop .28s cubic-bezier(.22,1,.36,1); }
@keyframes fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes pop{ from{ opacity:0; transform:translateY(16px) scale(.97); } to{ opacity:1; transform:none; } }

/* Utility */
.no-scrollbar::-webkit-scrollbar{ display:none; }
.no-scrollbar{ -ms-overflow-style:none; scrollbar-width:none; }
.glass{ background:rgba(255,255,255,.72); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border:1px solid rgba(255,255,255,.6); }
