  @font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/webfonts/PlusJakartaSans[wght].woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../fonts/webfonts/Inter-Regular.woff2') format('woff2'), url('../fonts/webfonts/Inter-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../fonts/webfonts/Inter-SemiBold.woff2') format('woff2'), url('../fonts/webfonts/Inter-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  :root{
    --bg: #000416;
    --sidebar: #000617;
    --surface: #14102980;
    --surface-solid: #171331;
    --card: #070d1a;
    --border: #112034;
    --purple: #591fc3;
    --purple-bright: #A78BFA;
    --purple-deep: #6D28D9;
    --green: #22C55E;
    --blue: #3B82F6;
    --gold: #F5B301;
    --pink: #D946EF;
    --text: #F1EEFB;
    --muted: #8E88A8;
    --muted-dim: #665F82;
  }
  *{ box-sizing:border-box; }
  html { height:100% !important; }
  /* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #060b1d;      /* matches page background */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #10123c;
    border-radius: 10px;
    border: 2px solid #060b1d;
}

::-webkit-scrollbar-thumb:hover {
    background: #181a4e !important;
}

::-webkit-scrollbar-thumb:active {
    background: #25276b !important;
}

::-webkit-scrollbar-thumb:window-inactive {
    background: #10123c;
}

/* Firefox only — scrollbar-color/-width is now also supported by Chrome, and having both
   rule sets active at once makes Chrome fall back to its own OS-driven hover/active colors
   and ignore the ::-webkit-scrollbar-thumb:hover rules above. Gate this out for any browser
   that understands ::-webkit-scrollbar so only Firefox ever sees it. */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: #10123c #060b1d;
  }
}
  body{
    margin:0; background: var(--bg); color: var(--text);
    font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
    display:block;
	min-height: 100vh;
	overflow-x: clip;
	overscroll-behavior-x: none;
  }
  #wholeScreen {
	display: flex;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	letter-spacing: normal;
	font-weight: normal;
	font-family: 'Inter', -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: normal;
  }
  #wholeScreen h1, #wholeScreen h2, #wholeScreen h3, #wholeScreen h4, #wholeScreen h5, #wholeScreen h6, #wholeScreen a, #wholeScreen p, #wholeScreen div, #wholeScreen span {
    letter-spacing: normal;
  }
  
  a{ text-decoration:none; color:inherit; }
  h1, h2, h3, h4, h5, h6{ font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; }
  #wholeScreen h1, #wholeScreen h2, #wholeScreen h3, #wholeScreen h4, #wholeScreen h5, #wholeScreen h6 { color: var(--text); }

  /* sidebar */
  .lt-sidebar{ width:230px; flex:none; background: var(--sidebar); border-right:1px solid var(--border); padding:22px 16px; display:flex; flex-direction:column; }
  .logo{ display:flex; align-items:center; gap:10px; padding:0 6px 22px; }
  .logo-mark{ width:180px; height:64px; border-radius:9px; /*background: linear-gradient(135deg, var(--purple-bright), var(--purple-deep));*/ display:flex; align-items:center; justify-content:center; font-size:16px; z-index: 99999; }
  .logo-name{ position: absolute; font-weight:700; font-size:16px; opacity: .01; }
  nav{ display:flex; flex-direction:column; gap:4px; }
  nav .nav-item{ display:flex; align-items:center; gap:10px; padding:9px 14px; border-radius:10px; font-size:14px; color: var(--muted); cursor:pointer; line-height: 14px; }
  nav .nav-item:hover{ background: var(--card); color: var(--text); }
  nav .nav-item.active{ background: linear-gradient(90deg, var(--purple-deep), var(--purple)); color:#fff; }
  nav .nav-item .ic{ width:18px; text-align:center; }
  nav .nav-item.active .ic img path{ fill: #333; transition: fill 0.3s ease; }
  nav .nav-item.sidebar-lobby-link{ padding:0; }
  nav #dashboardToLobby { display: flex; align-items: center; gap: 10px; width:100%; height:100%; padding:9px 14px; box-sizing:border-box; color:inherit; text-decoration:none; }
  nav #dashboardToLobby:hover { color: var(--text); }
  nav #dashboardToLobby span { width: 20px;; }
  nav #dashboardToLobby:after { content: ""; width: 18px; height: 18px; background: url(https://amnisbeacon.com/legacytracker/wp-content/plugins/legacy-tracker-core/assets/images/gold-checkbox-icon.png); background-size: contain; background-repeat: no-repeat; transform: translateX(-15px); transition: transform .5s ease-in-out; opacity: 0; }
  nav .nav-item.sidebar-lobby:hover #dashboardToLobby:after {opacity: 1; transform: translateX(0px); }

  nav .nav-item.sidebar-lobby-guest{ cursor:pointer; position:relative; }
  nav .nav-item.sidebar-lobby-guest:after { content: ""; width: 18px; height: 18px; background: url(https://amnisbeacon.com/legacytracker/wp-content/plugins/legacy-tracker-core/assets/images/gold-checkbox-icon.png); background-size: contain; background-repeat: no-repeat; transform: translateX(-15px); transition: transform .5s ease-in-out; opacity: 0; }
  nav .nav-item.sidebar-lobby-guest:hover:after {opacity: 1; transform: translateX(0px); }
  .nav-item-tooltip{
    position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%) translateY(4px);
    background: var(--surface-solid); color: var(--text); border:1px solid var(--purple-bright);
    padding:8px 12px; border-radius:8px; font-size:11.5px; font-weight:600; line-height:1.3;
    width:170px; white-space:normal; text-align:center;
    opacity:0; pointer-events:none; transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index:20;
  }
  .nav-item-tooltip::after{
    content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%);
    border:6px solid transparent; border-top-color: var(--surface-solid);
  }
  .sidebar-lobby-guest:hover .nav-item-tooltip,
  .sidebar-lobby-guest.show-tooltip .nav-item-tooltip{
    opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto;
  }

  .sidebar-bottom{ margin-top:auto; display:flex; flex-direction:column; gap:12px; position: sticky; bottom: 0; }
  .profile-card{ display:flex; align-items:center; gap:10px; padding:12px; border-radius:12px; background: var(--card); border:1px solid var(--border); }
  .avatar{ width:38px; height:38px; border-radius:50%; background: linear-gradient(135deg, var(--purple-bright), var(--pink)); flex:none; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
  .avatar-guest{ cursor:pointer; }
  .avatar-tooltip{
    position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%) translateY(4px);
    background: var(--surface-solid); color: var(--text); border:1px solid var(--purple-bright);
    padding:8px 12px; border-radius:8px; font-size:11.5px; font-weight:600; line-height:1.3;
    width:150px; white-space:normal; text-align:center;
    opacity:0; pointer-events:none; transition: opacity .15s ease, transform .15s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,.45); z-index:20;
  }
  .avatar-tooltip::after{
    content:''; position:absolute; top:100%; left:50%; transform:translateX(-50%);
    border:6px solid transparent; border-top-color: var(--surface-solid);
  }
  .avatar-guest:hover .avatar-tooltip,
  .avatar-guest.show-tooltip .avatar-tooltip{
    opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto;
  }
  .profile-meta{ flex:1; min-width:0; }
  .profile-meta .name{ font-size:13.5px; font-weight:600; }
  .profile-meta .lvl{ font-size:11.5px; color: var(--purple-bright); }
  .mini-bar{ height:4px; border-radius:999px; background:#2A2450; margin-top:6px; overflow:hidden; }
  .mini-bar > div{ height:100%; background: var(--purple-bright); }
  .mini-xp{ font-size:10.5px; color: var(--muted); margin-top:4px; }
  
  .streak-card {
    padding: 14px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
	margin-bottom: 22px;
  }
  .streak-card .flame {
    font-size: 20px;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, .65));
  }
  @keyframes flameFlicker {
    0%, 100% { opacity: 1; }
    20% { opacity: .35; }
    40% { opacity: 1; }
    60% { opacity: .35; }
    80% { opacity: 1; }
  }
  .streak-card .flame.flicker {
    animation: flameFlicker .4s ease;
  }
  .streak-card .label {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
  }
  .ranking-title {
    font-size: 26px;
    font-weight: 700;
    margin-top: 2px;
  }
  .tier-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
  }
  .streak-card .num {
    font-size: 26px;
    font-weight: 700;
    margin-top: 2px;
	margin-right: 3px;
    color: var(--purple);
  }
  .streak-card .sub {
    font-size: 11px;
    color: var(--muted-dim);
  }
  .week-row {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 12px;
    align-items: flex-end;
  }
  .week-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .week-col .bar {
    width: 15px;
    height: 38px;
    border-radius: 4px;
    background: #1a2133;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
  }
  .week-col span {
    font-size: 9px;
    color: var(--muted-dim);
  }

  /* tier fill bars: discrete height steps (avoids inline style) + one color per tier */
  .week-col .bar-fill {
    width: 100%;
    border-radius: 4px;
    transition: height .3s ease;
	background: linear-gradient(180deg, #4ADE80, var(--green)) !important;
  }
  .week-col .bar-fill.fill-0   { height: 0%; }
  .week-col .bar-fill.fill-10  { height: 10%; }
  .week-col .bar-fill.fill-20  { height: 20%; }
  .week-col .bar-fill.fill-30  { height: 30%; }
  .week-col .bar-fill.fill-40  { height: 40%; }
  .week-col .bar-fill.fill-50  { height: 50%; }
  .week-col .bar-fill.fill-60  { height: 60%; }
  .week-col .bar-fill.fill-70  { height: 70%; }
  .week-col .bar-fill.fill-80  { height: 80%; }
  .week-col .bar-fill.fill-90  { height: 90%; }
  .week-col .bar-fill.fill-100 { height: 100%; }

  .week-col .bar-fill.tier-S { background: linear-gradient(180deg, #FFE066, #F5B301); box-shadow: 0 0 10px rgba(245, 179, 1, .55); }
  .week-col .bar-fill.tier-A { background: linear-gradient(180deg, #4ADE80, #22C55E); box-shadow: 0 0 10px rgba(34, 197, 94, .55); }
  .week-col .bar-fill.tier-B { background: linear-gradient(180deg, #60A5FA, #3B82F6); box-shadow: 0 0 10px rgba(59, 130, 246, .55); }
  .week-col .bar-fill.tier-C { background: linear-gradient(180deg, #C084FC, #A78BFA); box-shadow: 0 0 10px rgba(167, 139, 250, .55); }
  .week-col .bar-fill.tier-D { background: linear-gradient(180deg, #FDBA74, #FB923C); box-shadow: 0 0 10px rgba(251, 146, 60, .55); }
  .week-col .bar-fill.tier-E { background: linear-gradient(180deg, #94A3B8, #64748B); box-shadow: 0 0 8px rgba(100, 116, 139, .4); }
  .week-col .bar-fill.tier-H { background: linear-gradient(180deg, #FB7185, #E11D48); box-shadow: 0 0 10px rgba(225, 29, 72, .55); }


  /* main */
  main{ flex:1; padding:28px 34px 0px; /*max-width:1080px;*/ display:flex; flex-direction:column; min-width:0; }
  .topbar{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; }
  .topbar-left{ display:flex; align-items:center; gap:12px; }
  .topbar h1{ font-size:24px; margin:0; font-weight: 700; letter-spacing: normal; }
  .topbar p{ margin:4px 0 0; color: var(--muted); font-size:13.5px; letter-spacing: normal; }
  .top-icons{ display:flex; gap:14px; align-items:center; }
  .icon-btn{ width:36px; height:36px; border-radius:10px; background:transparent; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:15px; color:var(--muted); transition: background .15s; }
  .icon-btn:hover{ background: var(--card); }
  .js-export img { width: 28px; height: 28px; }
  .js-import img { width: 28px; height: 28px; }
  .js-settings img { width: 28px; height: 28px; }
  .js-sidebar-toggle{ display:none; flex:none; /*background: #1c1b4eb8;*/ border-radius: 10px 0px 0px 10px; /*position: fixed;*/ top: 76px; right: 0; height: 23px; width: 28px; font-size: 30px; line-height: 16px; padding:0; }
  .js-sidebar-toggle img{ width:23.5px; height:23.5px; }
  #sidebarBackdrop{ display:none; }
  .sticky-topbar{ display:none; }

  .hero{
    border-radius:18px; margin-bottom:25px; display:flex; align-items:center; gap:0px; flex-wrap:wrap;
    background: radial-gradient(120% 180% at 0% 0%, rgba(167,139,250,.35), rgba(109,40,217,.16) 60%, rgba(20,16,41,.4));
    border:1px solid rgba(167,139,250,.4); box-shadow: 0 0 50px -18px rgba(139,92,246,.6);
	background-image: linear-gradient(#351d88, #090b2d);
  }
  .hero-badge{ width:17%; height:100%; flex:none; border-radius:20px; display:flex; align-items:center; justify-content:center; font-size:34px; }
  .hero-badge img{ width: 150px; height: 155px; object-fit: contain;margin-top: -25px; }
  .hero-mid{ flex:1; min-width:220px; padding: 0px 40px 0px 0px; border-right: solid; border-width: 0 2px 0 0; border-image: radial-gradient(circle at right center, #3a3164 0%, #4229fb00 10%, transparent 100%) 1; }
  .hero-mid .stage-tag{ font-size:14.5px; color: #d2cfdd; font-weight:500; }
  .hero-mid h2{ font-size:25px; margin:2px 0 8px; font-weight: 500; }
  .hero-bar{ height:10px; border-radius:999px; background:#2A2450; overflow:hidden; }
  .hero-bar > div{ height:100%; background: linear-gradient(90deg, var(--purple-bright), var(--pink)); }
  .hero-mid .xp-num{ font-size:12px; color: var(--muted); margin-top:6px; }
  .hero-reward{ flex:none; padding: 0px 0px 0px 20px; }
  .hero-reward .lbl{ font-size:13.5px; color: #a390c5; font-weight: 600; }
  .hero-reward .val{ font-size:23px; font-weight:500; color: #ffffff; margin:2px 0; }
  .hero-reward .req{ font-size:13.5px; color: var(--muted); font-weight: 600; }
  
  .hero-reward img { filter: drop-shadow(0 -8px 6px rgba(95, 56, 249, 0.75)); margin-right: 20px; }

  .stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:14px; margin-bottom:30px; }
  .stat-card{ background: var(--card); border:1px solid var(--border); border-radius:14px; padding:16px; min-width:0; }
  .stat-icon{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; margin-bottom:16px; }
  .stat-card:nth-child(1) .stat-icon img {box-shadow: 0 0 5px #0032097d, 0 0 15px #00380d80, 0 0 30px #0056177a;}
  .stat-card:nth-child(2) .stat-icon img {box-shadow: 0 0 5px #001f8778, 0 0 15px #003ab182, 0 0 30px #0041c782;}
  .stat-card:nth-child(3) .stat-icon img {box-shadow: 0 0 5px #40300080, 0 0 15px #2e230182, 0 0 30px #3a2c0185;}
  .stat-card:nth-child(4) .stat-icon img {box-shadow: 0 0 5px #37005085, 0 0 15px #30004680, 0 0 30px #48016880;}
  .stat-icon img{ width: 55px; height: 55px; border-radius: 50%; object-fit: contain; max-width: 55px; }
  .stat-card.task-completed { background-image: linear-gradient(to right, #08141a, #070e1b); }
  .stat-card.total-points { background-image: linear-gradient(to right, #07122a, #070d1d); }
  .stat-card.categories-cleared { background-image: linear-gradient(to right, #161513, #080e1e); }
  .stat-card.milestones-reached { background-image: linear-gradient(to right, #120b2b, #070e1d); }
  #missionList .m-sub { color: #b2bbc9; margin-bottom: 5px; }
  img.green-rook-icon { box-shadow: 0 0 5px #0032097d, 0 0 15px #00380d80, 0 0 30px #0056177a; }
  img.blue-notepad-icon { box-shadow: 0 0 5px #001f5e73, 0 0 15px #001e586e, 0 0 30px #0037a375; }
  img.yellow-pallette-icon { box-shadow: 0 0 5px #2c200080, 0 0 15px #36280080, 0 0 30px #44320180; }
  img.purple-diamond-icon { box-shadow: 0 0 5px #5c006a73, 0 0 15px #74008573, 0 0 30px #7e009173; width: 69px !important; height: 69px !important; border-radius: 50% !important; }
  img.gold-crown-icon { box-shadow: 0 0 5px #a1750080, 0 0 15px #74560080, 0 0 30px #5c440080; width: 69px !important; height: 69px !important; border-radius: 50% !important; }
  img.red-flame-icon { filter: drop-shadow(0 0 15px rgba(241 69 1 / 40%)); }
  #missionList .m-btn { min-width: 114px; min-height: 45px; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
  #focusList .m-btn { min-width: 114px; min-height: 45px; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
  .tasks .m-btn { min-width: 114px; min-height: 45px; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; font-size: 15px; }
  
  .stat-card .num{ font-size:30px; font-weight:700; margin-bottom: 7px; }
  .stat-card .lbl{ font-size:16.5px; color: var(--text); margin-top:2px; margin-bottom: 12px; }
  .stat-card .foot{ font-size:14.5px; margin-top:4px; }
  #wholeScreen #avatarLetter img { opacity: .9; }

  .section-head{ display:flex; align-items:center; justify-content:space-between; margin: 8px 0 15px; }
  .section-head h3{ font-size:17px; margin:0; }
  .tab-group{ display:flex; gap:4px; background: var(--card); border:1px solid var(--border); border-radius:20px; padding:3px; }
  .tab-group .tab{ padding:10px 25px; border-radius:15px; font-size:12.5px; cursor:pointer; color: var(--muted); }
  .tab-group .tab.active{ background: var(--purple); color:#fff; }

  .mission{ display:flex; align-items:center; gap:14px; background: linear-gradient(#0d142b, #00091e) padding-box, linear-gradient(to right, #0f1632, #0d152e) border-box; border:1px solid var(--border); border-radius:13px; padding:14px 16px; margin-bottom:10px; position: relative; z-index: 2; box-shadow:0 0 10px 4px rgb(0 4 22 / 100%); }
  .mission.locked .m-check, .mission.locked .m-icon, .mission.locked .m-body, .mission.locked .m-reward, .mission.locked .start-button-box{ opacity:.4; }
  .m-check{ width:22px; height:22px; border-radius:50%; border:2px solid var(--border); flex:none; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:12px; }
  /* per-category mission-card colors (Dashboard > Today's Missions > #missionList); edit values below to restyle.
     Compliance & Protection shares cat-branding with Branding & Marketing, same as catGlow() elsewhere. */
  .m-check.cat-foundation   { border-color: #41c3718a; }
  .m-check.cat-registration { border-color: #5660a2d4; }
  .m-check.cat-branding     { border-color: #f1c02b85; }
  .m-check.cat-credit       { border-color: #905eed8c; }
  .m-check.cat-maintenance  { border-color: #f16a3082; }
  .m-check.done{ background: var(--green); border-color: var(--green); animation: checkPop .3s ease; }
  .m-check.skipped{ background: var(--muted); border-color: var(--muted); color: var(--bg); }
  .m-icon{ width:69px; /*height:75px;*/ border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center; font-size:19px; }
  .m-icon img{ width: 69px; height: 75px; object-fit: contain; border-radius: 12px; }
  /*.m-icon.cat-registration{ background:rgba(59,130,246,.22); box-shadow:0 0 16px 1px rgba(59,130,246,.45); }*/
  /*.m-icon.cat-branding{ background:rgba(245,179,1,.22); box-shadow:0 0 16px 1px rgba(245,179,1,.5); }*/
  /*.m-icon.cat-credit{ background:rgba(217,70,239,.22); box-shadow:0 0 16px 1px rgba(217,70,239,.45); }*/
  /*.m-icon.cat-maintenance{ background:rgba(251,146,60,.22); box-shadow:0 0 16px 1px rgba(251,146,60,.45); }*/
  .m-body{ flex:1; min-width:0; }
  .m-body .m-title{ font-size:20.5px; font-weight:500; margin-bottom: 8px; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; }
  .m-body .m-sub{ font-size:15.5px; color: var(--muted); margin-top:1px; }
  .m-bar{ height:8px; border-radius:999px; background:#2A2450; margin-top:8px; margin-right:15px; overflow:hidden; width:100%; max-width:45.555%; }
  .m-bar > div{ height:100%; background: var(--green); }
  .m-frac{ font-size:14px; color: var(--muted); margin-top:3px; font-weight: 700; }
  .m-reward{ text-align:right; flex:none; margin-right:12px; min-width: 72px; }
  .m-reward .xp{ color: var(--green); font-size:17px; font-weight:600; margin-top: -10px; margin-bottom: 10px; }
  .m-reward .badges{ font-size:15px; color: #cfc9e3; margin-top:2px; }
  .m-btn{ flex:none; padding:9px 20px; border-radius:999px; font-size:12.5px; font-weight:600; border:1px solid var(--border); background: var(--surface-solid); color: var(--text); cursor:pointer; }
  .m-btn.start{ background: var(--blue); border-color: var(--blue); color:#fff; box-shadow: 0 0 20px -4px rgba(59,130,246,.7); }
  .m-btn.complete{ background: var(--gold); border-color: var(--gold); color:#1a1400; box-shadow: 0 0 20px -4px rgba(245,179,1,.8); }
  .m-btn.done{ background:transparent; border-color: var(--green); color: #a9aebb; }
  .cat-foundation.start-button-box .m-btn.done{ border-color: #069338; }
  .cat-registration.start-button-box .m-btn.done{ border-color: #4c6dcb; }
  .cat-branding.start-button-box .m-btn.done{ border-color: #bc8911; }
  .cat-credit.start-button-box .m-btn.done{ border-color: #8b45a9; }
  .cat-maintenance.start-button-box .m-btn.done{ border-color: #bf4310; }
  .m-btn.skipped{ background: transparent; border-color: var(--muted); border-style: dashed; color: var(--muted); }
  .start-button-box{ position: relative; }
  .m-btn.locked{ opacity:.5; cursor:not-allowed; }
  
  .skip-box { display: flex; position: absolute; min-width: 114px; }
  .skip-text { font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; border: 1px solid; margin: 0 auto; cursor: pointer; border-radius: 10px; }
  .skip-text { background: #6e4d0024; color: #ffffffbd; margin-top: 5px; padding: 1px 15% 2px; font-size: 12px; border-color: #bd8a1159; }
  .skip-text:hover, .skip-text:active { color: #ffffff; background: #70540069; border-color: #bd8a11bd; }
  .skip-box.locked, .skip-box.locked .skip-text{ opacity:.5; cursor:not-allowed; }
  .skip-box.locked .skip-text:hover, .skip-box.locked .skip-text:active { color: #ffffffbd; background: #6e4d0024; border-color: #bd8a1159; }
  .skip-text:before{ display: none; content: '⚠️'; position: absolute; margin-left: -25px; margin-top: -5px; }
  .skip-text:hover:before{ display: block; }
  
  .completion-number { display: flex; }

  /* per-category mission-card colors (Dashboard > Today's Missions > #missionList); edit values below to restyle */
  .m-bar.cat-foundation > div   { background: linear-gradient(90deg, #22C55E, #39b548); }
  .m-bar.cat-registration > div { background: linear-gradient(90deg, #5f96f5, #316df5); }
  .m-bar.cat-branding > div     { background: linear-gradient(90deg, #f5e23b, #f2b809); }
  .m-bar.cat-credit > div       { background: linear-gradient(90deg, #a851f9, #8952ee); }
  .m-bar.cat-maintenance > div  { background: linear-gradient(90deg, #fc8e1d, #ea5312); }

  /* ---------- per-category start button glow ---------- */
  .cat-foundation.start-button-box {
    box-shadow: 0 0 5px #00401dad, 0 0 15px #004419a3, 0 0 30px #01441fa6;
    border-radius: 999px;
  }
  .cat-foundation .m-btn.start {
    border-color: #22c55e;
    color: #fff;
    box-shadow: 0 0 5px #002c0e80, 0 0 15px #00361980, 0 0 30px #01441f80;
    text-shadow: 0px 0px 8px black;
    background: linear-gradient(#1a833a, #006023ad) padding-box, linear-gradient(to right, #00361b, #002611) border-box;
  }

  .cat-registration.start-button-box {
    box-shadow: 0 0 5px #001740cf, 0 0 15px #001144cf, 0 0 30px #011644d1;
    border-radius: 999px;
  }
  .cat-registration .m-btn.start {
    border-color: #236aeb;
    color: #fff;
    box-shadow: 0 0 5px #001a2ce0, 0 0 15px #001f36e3, 0 0 30px #012b44e3;
    text-shadow: 0px 0px 8px black;
    background: linear-gradient(#1e4ebb, #000260ad) padding-box, linear-gradient(to right, #010036, #010026) border-box;
  }

  .cat-branding.start-button-box {
    box-shadow: 0 0 5px #402f00ad, 0 0 15px #443300a3, 0 0 30px #443201a6;
    border-radius: 999px;
  }
  .cat-branding .m-btn.start {
    border-color: #fdc303;
    color: #fff;
    box-shadow: 0 0 5px #2c200080, 0 0 15px #36280080, 0 0 30px #44320180;
    text-shadow: 0px 0px 8px black;
    background: linear-gradient(#83621a, #603b00ad) padding-box, linear-gradient(to right, #362100, #261700) border-box;
  }

  .cat-credit.start-button-box {
    box-shadow: 0 0 5px #2a0040ad, 0 0 15px #310044a3, 0 0 30px #300144a6;
    border-radius: 999px;
  }
  .cat-credit .m-btn.start {
    border-color: #9d03fd;
    color: #fff;
    box-shadow: 0 0 5px #21002c80, 0 0 15px #2c003680, 0 0 30px #34014480;
    text-shadow: 0px 0px 8px black;
    background: linear-gradient(#5b1a83, #400060ad) padding-box, linear-gradient(to right, #210036, #140026) border-box;
  }

  .cat-maintenance.start-button-box {
    box-shadow: 0 0 5px #400000ad, 0 0 15px #440000a3, 0 0 30px #440101a6;
    border-radius: 999px;
  }
  .cat-maintenance .m-btn.start {
    border-color: #fd6b03;
    color: #fff;
    box-shadow: 0 0 5px #2c120080, 0 0 15px #36120080, 0 0 30px #44100180;
    text-shadow: 0px 0px 8px black;
    background: linear-gradient(#83371a, #601300ad) padding-box, linear-gradient(to right, #360700, #260700) border-box;
  }

  .banner{ display:flex; align-items:center; gap:14px; background: linear-gradient(90deg, #0b0e26, #080920); border: 1px solid rgb(27 29 60 / 40%); border-radius:14px; padding:5px 18px; margin: 16px 0; /*box-shadow: 0 0 30px -14px rgba(245,179,1,.7);*/ }
  .banner.show{ display:flex; }
  .banner .trophy{ font-size:26px; filter: drop-shadow(0 0 10px rgba(122, 0, 255, .7)); }
  .banner .txt{ flex:1; min-width:0; }
  .banner .txt .t1{ font-weight:500; font-size:18.5px; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; color: #cbcacf; }
  .banner .txt .t2{ font-size:12.5px; color: var(--muted); }
  .banner button{ background: linear-gradient(90deg, #371578, #241551); color:var(--text); border: solid 1px #4f249a; padding:15px 28px; border-radius:20px; font-size:16px; cursor:pointer; display: flex; align-items: center; }
  .banner button span { margin-top: -5px; margin-left: 20px; font-size: 25px; line-height: 10px; }

  .bottom-grid{ display:grid; grid-template-columns: 1.3fr 1fr; gap:16px; margin-top:8px; }
  .panel{ background: var(--card); border:1px solid var(--border); border-radius:14px; padding:18px; }
  .panel h4{ font-size:18.5px; margin:0 0 4px; letter-spacing: normal;}
  .bottom-grid .panel h4 { margin: 0 0 25px; letter-spacing: normal;}
  .panel .time-left{ font-size:11.5px; color: var(--muted-dim); float:right; }
  .reward-icon { filter: drop-shadow(0 0 25px rgba(86, 0, 255, .5)); float: right; }
  .focus-icon { filter: drop-shadow(0 0 25px rgba(86, 0, 255, .5)); border-radius: 50%; background: linear-gradient(#1a2283, #2c017cad) padding-box, linear-gradient(to right, #0d0036, #010026) border-box; border: solid 1px #7453f573; padding: 5px; }
  .panel .sub{ font-size:12.5px; color: var(--muted); margin-bottom:10px; }
  .panel .reward-line{ font-size:12.5px; margin-top:25px; color: var(--muted); }
  .bottom-grid .hero-bar { width: 80%; }
  .panel .reward-line b{ color: var(--purple-bright); }
  .quote{ font-size:13px; color: var(--muted); line-height:1.5; }
  
  #milestoneNextSub { margin-bottom: 20px; }

  .field{ margin-bottom:12px; }
  .field label{ display:block; font-size:11.5px; color: var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:5px; }
  .field input{ width:100%; background: var(--surface-solid); border:1px solid var(--border); color: var(--text); border-radius:8px; padding:9px 11px; font-size:13.5px; font-family:inherit; }

  .view{ display:none; }
  .view.active{ display:flex; flex-direction:column; flex:1; min-width:0; }

  .cat-block{ border-radius:13px; overflow:hidden; }
  .cat-block.open{ background: linear-gradient(#070d1a, #070d1a) padding-box, linear-gradient(to bottom, #000416, #355378) border-box; border:3px solid transparent; border-top: none; border-bottom: 3px solid #2a476c; border-radius:13px; margin-bottom:12px; position: relative; }
  .cat-block.open::before{ content: ''; position: absolute; width:100%; height:100%; background: #243d6c4a; background-size:100px 100px; background-image: url(../images/track-back_001.svg); background-repeat: repeat; opacity:.9; }
  .cat-block.open > .mission { background: linear-gradient(#0d142b, #00091e) padding-box, linear-gradient(to right, #0f1632, #0d152e) border-box; border:1px solid #1c3656; border-bottom:3px solid #172c46; }
  .cat-block.open > .mission .m-check, .cat-block.open > .mission .m-icon, .cat-block.open > .mission .m-body, .cat-block.open > .mission .m-reward, .cat-block.open > .mission .start-button-box { opacity: .9; }
  .cat-block.open > .mission::before { content: ''; border-radius:13px; position: absolute; left:0px; width:100%; height:100%; box-shadow: inset 0 0 20px 5px #334f7347; }
  #main-missions .cat-block{ background: var(--card); border:1px solid var(--border); border-radius:13px; margin-bottom:12px; overflow:hidden; }
  .cat-block-head{ display:flex; justify-content:space-between; align-items:center; padding:13px 16px; cursor:pointer; position: relative; background: var(--card); }
  .cat-block.open .cat-block-head { border-radius:13px; margin-bottom:12px; }
  .cat-block-head .meta{ font-size:12px; color: var(--muted); }
  .cat-block-head .meta:before{ content: url('../images/dropdown-arrow-white.svg'); float: right; margin-left: 15px; width: 10px; }
  .cat-block.open .meta:before{ transform: scaleY(-1); }
  .cat-block .tasks{ /*border-top:1px solid var(--border)*/; display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s ease-in-out; }
  .cat-block.open .tasks{ display:grid; grid-template-rows:1fr; }
  .cat-block .tasks-inner{ overflow:hidden; margin-top:-10px; }

  .footnote{ text-align:center; color: var(--muted-dim); font-size:11.5px; margin-top:30px; }
  #mainFooter { min-height:30px; width: stretch; display: grid; grid-template-columns: 1fr 1fr; align-items: center; /*position: absolute;*/ /*bottom: 0;*/ color: var(--muted); padding:0px 15px 0px;background: var(--card); margin-top:60px; /*margin-right: 34px;*/ border-top-right-radius:15px; border-top-left-radius:15px; font-size:12px; }
  .left-foot { text-align:left; }
  .right-foot { text-align:right; }
  #confetti-canvas{ position:fixed; inset:0; pointer-events:none; z-index:50; }

  /* ---------- celebration tiers ---------- */
  @keyframes checkPop{ 0%{ transform:scale(.6); } 60%{ transform:scale(1.15); } 100%{ transform:scale(1); } }

  @keyframes xpFlash{ 0%{ color: var(--gold); text-shadow:0 0 8px rgba(245,179,1,.8); } 100%{ color: inherit; text-shadow:none; } }
  .xp-flash{ animation: xpFlash 1s ease; }

  @keyframes barPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(245,179,1,0); } 50%{ box-shadow:0 0 14px 4px rgba(245,179,1,.85); } }
  .hero-bar.pulse-hit, .mini-bar.pulse-hit{ animation: barPulse 1.1s ease 2; }

  @keyframes catFlare{ 0%,100%{ box-shadow:0 0 0 0 rgba(245,179,1,0); } 50%{ box-shadow:0 0 26px 8px rgba(245,179,1,.9); } }
  .m-icon.cat-complete-flare{ animation: catFlare .8s ease 2; }
  .m-icon.cat-locked{ box-shadow:0 0 0 2px var(--gold), 0 0 16px 2px rgba(245,179,1,.6); position:relative; }
  .m-icon.cat-locked::after{
    content:"🏆"; position:absolute; bottom:-6px; right:-6px; font-size:12px; line-height:1;
    background: var(--card); border:1px solid var(--gold); border-radius:50%;
    width:20px; height:20px; display:flex; align-items:center; justify-content:center;
  }
  
  .m-icon.cat-credit.cat-locked{ border-radius: 50%; }
  .m-icon.cat-branding.cat-locked:has(> .gold-crown-icon) { border-radius: 50%; }
  .m-icon.cat-maintenance.cat-locked { border-radius: 50% 50% 0% 0%; }

  .locked-card{ opacity:.4; }

  .cc-modal{ position:fixed; inset:0; background:rgba(0,4,22,.72); display:none; align-items:center; justify-content:center; z-index:80; }
  .cc-modal.show{ display:flex; }
  .cc-card{ position:relative; background: var(--card); border:1px solid rgba(245,179,1,.5); border-radius:18px; padding:0px 36px 32px; text-align:center; max-width:360px; box-shadow:0 0 60px -10px rgba(245,179,1,.6); --electric-color: var(--gold); }
  .cc-card::before{
    content:"";
    position:absolute;
    inset:-4px;
    border:3px solid var(--electric-color);
    border-radius:22px;
    pointer-events:none;
    filter: url(#cc-electric-crackle) drop-shadow(0 0 8px var(--electric-color));
  }
  .cc-icon{ width:120px; height:120px; object-fit:contain; margin-bottom:10px; }
  .cc-title{ font-size:28px; font-weight:700; color: var(--gold); font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; }
  .cc-sub{ font-size:18.5px; color: var(--text); margin-top:6px; margin-bottom:20px; }
  .cc-bonus{ font-size:13px; color: var(--muted); margin-top:10px; }
  .cc-close{ margin-top:18px; background: var(--purple); color:#fff; border:none; padding:10px 22px; border-radius:999px; font-size:15px; cursor:pointer; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; }

  .launch-overlay{ position:fixed; inset:0; background: radial-gradient(120% 120% at 50% 0%, rgba(245,179,1,.25), rgba(0,4,22,.95) 60%); display:none; align-items:center; justify-content:center; z-index:90; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; perspective:1000px; }
  .launch-overlay.show{ display:flex; }
  .launch-card{ text-align:center; max-width:520px; padding:20px; }
  .launch-trophy{ width:200px; height:200px; object-fit:contain; filter: drop-shadow(0 0 30px rgba(245,179,1,.8)); }
  .launch-card h1{ font-size:34px; color: var(--gold); margin:14px 0 4px; }
  .launch-sub{ color: var(--text); font-size:14px; margin-bottom:22px; }
  .launch-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
  .launch-stat{ background: radial-gradient(120% 180% at 0% 0%, rgba(167,139,250,.35), rgba(109,40,217,.16) 60%, rgba(20,16,41,.4)); background-image: linear-gradient(#641d88, #070818); border:1px solid rgb(47 26 110 / 40%); border-radius:12px; padding:14px 8px; }
  .launch-num{ font-size:19px; font-weight:700; color: var(--gold); }
  .launch-lbl{ font-size:10.5px; color: var(--muted); margin-top:3px; }
  .launch-close{ margin-top:26px; background: linear-gradient(90deg, #371578, #241551); color:#fff; border:none; border: solid 1px #4f249a; padding:15px 28px; border-radius:20px; font-size:16.5px; cursor:pointer; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; }

  /*== Legacy Icon - fast 3D fly-in 2s after the launch overlay shows, holds 5s, then flies out the bottom ==*/
  @keyframes legacyFlyIn {
    0% {
      opacity: 0;
      transform: translate3d(0, -300px, -1400px) scale(0.05);
      filter: blur(14px);
    }
    60% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1.15);
      filter: blur(0);
    }
    80% {
      transform: translate3d(0, 0, 0) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
  }
  @keyframes legacyFlyOut {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate3d(0, 120vh, -200px) scale(0.8);
      filter: blur(6px);
    }
  }
  .legacy-icon {
    width: 100%;
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .legacy-icon.play-in {
    animation: legacyFlyIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
  }
  .legacy-icon.play-out {
    animation: legacyFlyOut 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
  }

  @media (max-width: 900px){
    .stats-grid{ grid-template-columns: repeat(2,1fr); }
    .bottom-grid{ grid-template-columns: 1fr; }
    .lt-sidebar{ display:none; }
    .lt-sidebar.mobile-open{
      display:flex;
      position:fixed;
      top:0; left:0;
      height:100%;
      padding: 20px 16px 0px 16px;
      z-index:300;
      box-shadow: 0 10px 40px rgba(0,0,0,.6);
    }
    .js-sidebar-toggle{ display:flex; }
    #sidebarBackdrop.show{
      display:block;
      position:fixed; inset:0;
      background:rgba(0,0,0,.55);
      z-index:290;
    }
    .launch-stats{ grid-template-columns: repeat(2,1fr); }
	.hero{ display: grid; grid-template-columns: .65fr 0.7fr 1fr; padding: 20px 0 20px 5px; gap: 0px; }
	.hero-badge{ width: 34%; justify-content: normal; min-width:0; }
	.hero-mid{ min-width: 0; padding: 0px 9px 0px 0px; }
	.hero-reward{ min-width: 0; padding: 0px 0px 0px 9px; }
	#mainFooter{ grid-template-columns: 2fr 1.3fr; font-size: 9px; padding: 0px 10px 0px; }

    /* sticky topbar: mobile only, hidden at the very top of the page, shown (and pinned) once scrolled down */
    .sticky-topbar.show{
      display:flex;
      position:fixed;
      top:0; left:0; right:0;
      z-index:250;
      background: var(--sidebar);
      border-bottom:1px solid var(--border);
      padding:14px 20px;
      margin:0;
      box-shadow:0 6px 20px rgba(0,0,0,.45);
      animation: stickyTopbarIn .25s ease;
    }
  }
  @keyframes stickyTopbarIn{
    from{ transform:translateY(-100%); opacity:0; }
    to{ transform:translateY(0); opacity:1; }
  }

  /* narrow phones: .m-icon + .m-reward + the start button never fit on one line beside
     .m-body, so the row overflows horizontally (and shifts by a few px every re-render as
     task text length changes). Wrap the reward + action button onto their own line instead. */
  @media (max-width: 540px){
    /* keep the same single-row layout everywhere, just scale it down to fit narrow phones
       instead of wrapping/stacking anything */
    .logo { padding: 0 6px 18px; }
    
    main{ padding:16px 14px 0px; }

    /* topbar (both the in-flow one and the sticky scroll-triggered copy) */
    .topbar{ margin-bottom:14px; }
    .topbar-left{ gap:8px; }
    .topbar h1{ font-size:12px; line-height: 12px; }
    .topbar p{ font-size:11px; margin-top:2px; }
    .top-icons{ gap:4px; }
    .icon-btn{ width:28px; height:28px; border-radius:8px; }
    .top-icons .icon-btn img{ width:18px !important; height:18px !important; }
    .js-sidebar-toggle{ height:20px; width:22px; }
    .js-sidebar-toggle img{ width:18px !important; height:18px !important; }
    .sticky-topbar.show{ padding:8px 12px; }
    
    /* Sidbar Bottom */
    .sidebar-bottom { gap: 9px; }
    .profile-card { padding: 8px 12px; }
    .profile-meta .name { font-size: 12.5px; }
    .profile-meta .lvl { font-size: 10.5px; }
    .mini-xp { font-size: 9.5px; }
    
    .streak-card { padding: 10px 14px; }
    .streak-card .label { font-size: 10.5px; }
    .ranking-title { font-size: 24px; margin-top: 1px; }
    .streak-card .num { font-size: 20px; margin-top: 1px; }
    .week-row { margin-top: 9px; }
    
    

    /* mission rows (Dashboard, Missions, Focus Mode) */
    .mission{ gap:8px; padding:10px 10px; }
    .m-check{ width:18px; height:18px; }
    .m-icon{ width:41px; border-radius: 8px; }
    .m-icon img{ width:44px !important; height:44px !important; border-radius: 8px; }
    .m-body .m-title{ font-size:13px; margin-bottom:4px; }
    .m-body .m-sub{ font-size:10.5px; }
    .m-bar{ margin-right:6px; max-width: 75.555%; }
    .m-frac{ font-size:9px; flex: none; }
    .m-reward{ min-width:50px; margin-right:6px; }
    .m-reward .xp{ font-size:12px; margin-top:0; margin-bottom:4px; }
    .m-reward .badges{ font-size:11px; }
    .m-reward .badges img{ width:12px !important; height:12px !important; }
    .m-btn{ padding:6px 10px; }
    #missionList .m-btn, #focusList .m-btn, .tasks .m-btn{ min-width:70px; min-height:34px; font-size:11px; }
    .icon-btn.js-login-open { padding: 0 10px !important; font-size: 12px !important; }

    nav .nav-item{ padding: 6px 14px; }

    /* section headers (tab group / meta text next to the h3) */
    .section-head{ gap:8px; }
    .section-head h3{ font-size:16px; }
    .section-head .meta{ font-size:10px; }
    .tab-group .tab{ padding:6px 13px; font-size:14px; }

    /* milestone banner */
    .banner{ gap:8px; padding:5px 10px; }
    .banner .trophy img{ width:40px !important; height:40px !important; }
    .banner .txt .t1{ font-size:13px; }
    .banner .txt .t2{ font-size:10.5px; }
    .banner button{ padding:8px 14px; font-size:12px; }
    .banner button span{ margin-left:8px; font-size:16px; }

    /* hero card */
    .hero-badge img{ width:90px !important; height:109px !important; margin-top:-20px !important; position: absolute; }
    .hero-mid .stage-tag{ font-size:11px; }
    .hero-mid h2{ font-size:16px; }
    .hero-mid .xp-num{ font-size:10px; }
    .hero-reward .lbl{ font-size:10px; }
    .hero-reward .val{ font-size:15px; }
    .hero-reward .req{ font-size:10px; }
    .hero-reward img{ width:60px !important; height:60px !important; margin-right:6px !important; }
	
	.skip-box { min-width: 70px; }
	.skip-text { border-radius: 10px; }
	.skip-text { margin-top: 3px; font-size: 8px; }
	.skip-text:before{ margin-left: -16px; margin-top: -6px; }
	.start-button-box:has(.skip-text){ margin-top: -9px; }

    /* stat cards */
    .stat-card{ padding:10px; }
    .stat-icon{ width:28px; height:28px; margin-bottom:8px; float: left; margin-right: 12px; }
    .stat-icon img{ width:34px; height:34px; }
    .stat-card .num{ font-size:20px; margin-bottom:3px; }
    .stat-card .lbl{ font-size:10px; margin-bottom:6px; }
    .stat-card .foot{ font-size:10px; }
    
    #mainFooter { padding: 0px 6px 0px; font-size: 8px; }
  }
  /*== Lighting Effect - triggered 2s after the launch overlay shows, fades away after Legacy Icon fly in animation ends ==*/
  #lightingEffect {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
  }
  #lightingEffect.show {
    opacity: 1;
  }
  #lightingEffect canvas {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* ---------- settings panel (dropdown off the gear icon, both topbars) ---------- */
  .icon-btn.js-settings{ position:relative; }
  .settings-panel{ position:absolute; top:44px; right:0; background:var(--card); border:1px solid var(--border); border-radius:12px; padding:8px; min-width:170px; display:none; flex-direction:column; gap:2px; z-index:70; box-shadow:0 10px 40px -10px rgba(0,0,0,.6); text-align:left; }
  .settings-panel.show{ display:flex; }
  .settings-panel button, .settings-panel a{ background:transparent; border:none; color:var(--text); text-align:left; padding:10px 12px; border-radius:8px; font-size:13.5px; cursor:pointer; font-family:'Inter',-apple-system,"Segoe UI",sans-serif; display:block; }
  .settings-panel button:hover, .settings-panel a:hover{ background:var(--surface-solid); }
  .settings-panel .settings-reset-btn{ color:var(--pink); }

  /* ---------- login trigger button (guests only, replaces export/import spot) ---------- */
  .icon-btn.js-login-open{ width:auto; padding:0 16px; border-radius:999px; background:linear-gradient(214deg, var(--purple-deep), var(--purple)); color:#fff; font-size:13px; font-weight:600; font-family:'Plus Jakarta Sans',-apple-system,"Segoe UI",sans-serif; }
  .icon-btn.js-login-open:hover{ background:var(--purple-deep); }

  /* ---------- reset-confirm modal + login modal: same dim-overlay pattern as .cc-modal,
     but without the electric-crackle card treatment, which is Category-Complete-specific ---------- */
  .reset-confirm-modal, .login-modal{ position:fixed; inset:0; background:rgba(0,4,22,.72); display:none; align-items:center; justify-content:center; z-index:85; }
  .reset-confirm-modal.show, .login-modal.show{ display:flex; }
  .modal-card{ background: var(--card); border:1px solid var(--border); border-radius:18px; padding:28px 32px 32px; text-align:center; max-width:340px; box-shadow:0 0 60px -10px rgba(167,139,250,.35); }
  .modal-card .cc-title{ font-size:22px; display: inline-flex; align-items: center; }
  .cc-title::before { content: ""; width:20px; height:20px; background: url(https://amnisbeacon.com/legacytracker/wp-content/plugins/legacy-tracker-core/assets/images/gold-checkbox-icon.png); background-size: contain; background-repeat: no-repeat; margin-right:6px; margin-bottom:-2px; }
  .modal-card .field{ text-align:left; margin-top:16px; }
  .modal-actions{ display:flex; gap:10px; justify-content:center; margin-top:18px; }
  .modal-card .cc-close.secondary{ background: var(--surface-solid); color:var(--text); }
  .modal-card .cc-close:disabled{ opacity:.4; cursor:not-allowed; }

  #legacyTrackerLoginForm p{ text-align:left; margin:0 0 12px; }
  #legacyTrackerLoginForm label{ display:block; font-size:11.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; margin-bottom:5px; }
  #legacyTrackerLoginForm input.input{ width:100%; background: var(--surface-solid); border:1px solid var(--border); color: var(--text); border-radius:8px; padding:9px 11px; font-size:13.5px; font-family:inherit; }
  #legacyTrackerLoginForm .login-remember label{ display:flex; align-items:center; gap:6px; text-transform:none; font-size:12.5px; margin:0; color:var(--muted); }
  #legacyTrackerLoginForm .login-remember input{ width:auto; }
  #legacyTrackerLoginForm .login-submit{ margin-top:14px; }
  #legacyTrackerLoginForm .button-primary{ background: var(--purple); color:#fff; border:none; padding:10px 22px; border-radius:999px; font-size:15px; cursor:pointer; font-family: 'Plus Jakarta Sans', -apple-system, "Segoe UI", sans-serif; width:100%; }
  .login-register-link{ text-align:center; font-size:12.5px; color:var(--muted); margin-top:14px; }
  .login-register-link a{ color:var(--purple-bright); font-weight:600; text-decoration:underline; }

/* ===  Nextend Social Login ===*/
  div.nsl-container .nsl-button-google { background-color: #343746 !important; box-shadow: inset 0 0 0 1px #32366b !important; color: #ffffff !important; outline-color: #313aba; }
  /* Remember Me row */
.login-remember { margin: 15px 0 20px; }
  /* Checkbox Dark */
  /* Label */
.login-remember label {display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px !important; font-weight: 500; color: #555; line-height: 1; outline: none; }
  /* Checkbox */
.login-remember input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px !important; height: 18px; margin: 0; padding: 0 0 3px 0; border: 1px solid #2d3275; border-radius: 5px; background: #51545f; display: grid; place-content: center; cursor: pointer; transition: all 0.2s ease; margin-top: -2px; outline: none; }
  /* Checkmark */
.login-remember input[type="checkbox"]::before { content: ""; width: 9px; height: 5px; border-left: 2px solid #070d1a; border-bottom: 2px solid #070d1a; transform: rotate(-45deg) scale(0); transition: transform 0.15s ease; }
  /* Checked state */
.login-remember input[type="checkbox"]:checked { background: linear-gradient(45deg, #7e4c03, #ffd100); border-color: #8e5d03 !important; outline: none; }
.login-remember input[type="checkbox"]:checked:hover { border-color: #8e5d03; }
.login-remember input[type="checkbox"]:focus:hover { border-color: #2d3275; }
.login-remember input[type="checkbox"]:checked::before { transform: rotate(-45deg) scale(1); }
  /* Hover */
.login-remember input[type="checkbox"]:hover { border-color: #7078ef; }
  /* Keyboard accessibility */
.login-remember input[type="checkbox"]:focus-visible { outline: 3px solid rgba(17, 17, 17, 0.15); outline-offset: 2px; }
/* Social Login Button eg. Google Login */
#nsl-custom-login-form-main .nsl-container { text-align: center; }
  