/* CoinPops — refreshed public and member shell. Admin assets are intentionally untouched. */
:root{
  --cp-bg:#080d18;--cp-bg-2:#0d1524;--cp-panel:#111d30;--cp-panel-2:#17263b;
  --cp-line:rgba(173,198,231,.13);--cp-line-strong:rgba(173,198,231,.24);
  --cp-text:#f2f6fc;--cp-muted:#9eafc6;--cp-dim:#70839d;
  --cp-mint:#a8f06b;--cp-mint-2:#c9ff92;--cp-mint-dark:#152d20;
  --cp-cyan:#72e5e5;--cp-pink:#fa83bd;--cp-orange:#ffb86b;
  --cp-radius:22px;--cp-shadow:0 22px 60px rgba(0,0,0,.28);
  --color-page:var(--cp-bg);--color-surface:var(--cp-panel);--color-surface-raised:var(--cp-panel-2);
  --color-surface-hover:#20334d;--color-border:var(--cp-line);--color-border-strong:var(--cp-line-strong);
  --color-text:var(--cp-text);--color-text-heading:#fff;--color-text-muted:var(--cp-muted);--color-text-subtle:var(--cp-dim);
  --color-primary:var(--cp-mint);--color-primary-hover:var(--cp-mint-2);--color-primary-active:#8bd64e;
  --color-primary-soft:rgba(168,240,107,.12);--color-link:var(--cp-cyan);--color-link-hover:#b4ffff;
  --color-button-primary-bg:var(--cp-mint);--color-button-primary-text:#14220c;--color-button-primary-hover:var(--cp-mint-2);--color-button-primary-active:#8bd64e;
  --color-button-secondary-bg:#21324a;--color-button-secondary-text:var(--cp-text);--color-button-secondary-hover:#2c425f;--color-button-secondary-active:#1a2940;
  --color-button-quiet-bg:transparent;--color-button-quiet-text:var(--cp-muted);--color-button-quiet-hover:rgba(255,255,255,.06);
  --color-button-danger-bg:#d94f69;--color-button-danger-text:#fff;--color-button-danger-hover:#f0667f;
  --color-success:#a8f06b;--color-warning:#ffca7a;--color-danger:#ff8199;--color-info:#72e5e5;--color-focus-ring:#c9ff92;--color-overlay:rgba(3,8,16,.78);
}
*{box-sizing:border-box}
html{background:var(--cp-bg);color:var(--cp-text);scroll-behavior:smooth}
body.site-body{margin:0;min-height:100vh;color:var(--cp-text);font-family:"DM Sans",system-ui,-apple-system,sans-serif;background:radial-gradient(ellipse at 80% -15%,rgba(72,111,142,.18),transparent 40%),radial-gradient(ellipse at 0% 45%,rgba(168,240,107,.045),transparent 30%),var(--cp-bg);font-size:15px;line-height:1.6}
.site-body :where(h1,h2,h3,h4){font-family:Manrope,"DM Sans",sans-serif;letter-spacing:-.035em;line-height:1.2;color:#fff}
.site-body h1{font-size:clamp(1.75rem,4vw,2.55rem);font-weight:800}
.site-body h2{font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:750}
.site-body p{color:var(--cp-muted)}
.site-body a{color:var(--cp-cyan);text-decoration:none;transition:color .18s ease}
.site-body a:hover{color:#c2ffff}

.site-main{width:min(1200px,calc(100% - 40px));min-height:calc(100vh - 170px);margin:0 auto;padding:36px 0 72px}

.cp-public-shell{width:min(1200px,calc(100% - 40px));margin:0 auto}
.cp-public-header{display:flex;align-items:center;justify-content:space-between;padding:24px 0}
.cp-logo{display:flex;align-items:center;gap:10px;color:#fff;font:800 1.15rem Manrope,sans-serif}
.cp-logo-coin{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:var(--cp-mint);color:#17220d;font-size:12px}
.cp-back-home{color:var(--cp-muted);font-weight:650}
.cp-auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);align-items:center;gap:clamp(30px,7vw,90px);padding:42px 0 72px}
.cp-auth-promo h1{max-width:660px;font-size:clamp(2.5rem,6vw,5rem);line-height:1.04}
.cp-auth-promo h1 em{color:var(--cp-mint);font-style:normal}
.cp-auth-promo>p{max-width:520px;font-size:1.1rem}
.cp-auth-art{position:relative;display:grid;place-items:center;width:min(100%,380px);height:260px;margin:30px 0}
.auth-orbit{position:absolute;width:260px;height:260px;border:1px solid rgba(168,240,107,.22);border-radius:50%;box-shadow:0 0 0 28px rgba(168,240,107,.025),0 0 0 58px rgba(168,240,107,.018)}
.auth-big-coin{display:grid;place-items:center;width:150px;height:150px;border:8px solid #d7ffa9;border-radius:50%;background:linear-gradient(145deg,#caff8b,#6da73c);color:#17220d;font:900 2.6rem Manrope,sans-serif;box-shadow:0 24px 60px rgba(168,240,107,.2),inset 0 3px 5px rgba(255,255,255,.55)}
.auth-mini-coin, .auth-gamepad{position:absolute;display:grid;place-items:center;width:58px;height:58px;border:1px solid var(--cp-line-strong);border-radius:18px;background:var(--cp-panel-2);font-size:26px;box-shadow:var(--cp-shadow)}
.auth-mini-coin{top:24px;right:42px;color:var(--cp-mint)}
.auth-gamepad{bottom:25px;left:38px}
.cp-auth-points{display:flex;gap:22px;flex-wrap:wrap;color:var(--cp-muted);font-size:.9rem}
.cp-auth-card{padding:clamp(24px,4vw,38px);border:1px solid var(--cp-line-strong);border-radius:28px;background:linear-gradient(145deg,rgba(22,35,54,.98),rgba(12,20,33,.98));box-shadow:var(--cp-shadow)}
.cp-auth-card-head{text-align:center;margin-bottom:26px}
.cp-auth-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 15px;border-radius:17px;background:rgba(168,240,107,.12);color:var(--cp-mint);font-size:25px}
.cp-auth-card-head h2{margin:0 0 8px;font-size:1.65rem}
.cp-auth-card-head p{margin:0}
.cp-auth-form{display:grid;gap:17px}
.cp-auth-form label, .site-body form label{display:grid;gap:8px;color:var(--cp-muted);font-size:.88rem;font-weight:650}
.cp-auth-options{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--cp-dim);font-size:.82rem}
.cp-auth-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:14px 17px;border:0;border-radius:15px;background:var(--cp-mint);color:#16230d;font-weight:850}
.cp-auth-submit:hover{background:var(--cp-mint-2);color:#16230d}
.cp-auth-switch{text-align:center;margin-top:22px;color:var(--cp-muted);font-size:.9rem}
.cp-auth-secure{text-align:center;margin-top:16px;color:var(--cp-dim);font-size:.78rem}
.cp-password-field{position:relative;display:flex}
.cp-password-field input{padding-right:76px}
.cp-password-toggle{position:absolute;right:6px;top:6px;min-height:34px;padding:6px 10px;border-radius:9px;background:rgba(255,255,255,.06);color:var(--cp-muted);font-size:.78rem}

@media(max-width:980px){.cp-auth-layout{grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:32px}.cp-auth-promo h1{font-size:clamp(2.4rem,5vw,4rem)}}
@media(max-width:760px){.site-main{width:calc(100% - 28px);padding:24px 0}.cp-auth-layout{grid-template-columns:1fr;padding:16px 0 45px}.cp-auth-promo{display:none}.cp-auth-card{border-radius:24px}.cp-public-header{padding:17px 0}.cp-public-shell{width:calc(100% - 28px)}}
@media(prefers-reduced-motion:reduce){*, *::before, *::after{scroll-behavior:auto;animation-duration:.01ms;transition-duration:.01ms}}

/* Public landing page */

.cp-home .cp-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);align-items:center;gap:clamp(25px,6vw,80px);padding:54px 0 70px}
.cp-home .cp-hero-copy h1{max-width:700px;margin:0 0 22px;font-size:clamp(2.8rem,7vw,5.8rem);line-height:1.02;letter-spacing:-.07em}
.cp-home .cp-hero-copy p{max-width:570px;font-size:1.12rem;line-height:1.8}
.cp-home .cp-main-cta{display:inline-flex;align-items:center;gap:20px;margin-top:20px;padding:15px 20px;border-radius:16px;background:var(--cp-mint);color:#17220d;font-weight:900;box-shadow:0 12px 30px rgba(168,240,107,.15)}
.cp-home .cp-main-cta b{font-size:1.25rem}
.cp-home .cp-trust-row{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px;color:var(--cp-muted);font-size:.8rem}
.cp-home .cp-hero-art{position:relative;display:grid;place-items:center;min-height:410px}
.cp-home .cp-art-glow{position:absolute;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(168,240,107,.18),rgba(114,229,229,.06) 45%,transparent 70%);filter:blur(5px)}
.cp-home .cp-art-phone{position:relative;width:205px;height:330px;padding:30px 19px;border:2px solid rgba(221,239,255,.25);border-radius:34px;background:linear-gradient(145deg,#243650,#101a2a);box-shadow:0 30px 75px rgba(0,0,0,.45),inset 0 0 0 5px rgba(255,255,255,.025);transform:rotate(-7deg)}
.cp-home .cp-phone-notch{position:absolute;top:9px;left:50%;width:65px;height:13px;border-radius:20px;background:#080d18;transform:translateX(-50%)}
.cp-home .cp-phone-crown{display:grid;place-items:center;width:58px;height:58px;margin:22px auto;border-radius:19px;background:rgba(168,240,107,.13);color:var(--cp-mint);font-size:27px}
.cp-home .cp-phone-line{height:14px;margin:14px 0;border-radius:10px;background:rgba(255,255,255,.09)}
.cp-home .cp-phone-line.short{width:60%}
.cp-home .cp-phone-check{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--cp-mint);color:#18250e;font-weight:900}
.cp-home .cp-phone-check.second{background:var(--cp-cyan)}
.cp-home .cp-gamepad{position:absolute;left:0;bottom:65px;padding:17px 20px;border:1px solid var(--cp-line-strong);border-radius:22px;background:#1a2a40;color:var(--cp-cyan);font-size:27px;box-shadow:var(--cp-shadow);transform:rotate(8deg)}
.cp-home .cp-gamepad b{font-size:13px}
.cp-home .cp-coin-stack{position:absolute;right:10px;bottom:48px;display:grid;place-items:center;width:92px;height:92px;border:6px solid #d6ffa9;border-radius:50%;background:linear-gradient(145deg,#d0ff9b,#76b743);color:#1b2c10;font:900 1.7rem Manrope;box-shadow:0 18px 40px rgba(168,240,107,.2);transform:rotate(12deg)}
.cp-home .cp-spark{position:absolute;color:var(--cp-mint);font-size:36px}.cp-home .spark-one{top:45px;right:25px}.cp-home .spark-two{bottom:30px;left:50px;color:var(--cp-cyan)}
.cp-home .cp-how{padding:48px 0 60px;border-top:1px solid var(--cp-line)}
.cp-home .cp-section-title{text-align:center;margin-bottom:30px}.cp-home .cp-section-title h2{font-size:clamp(1.8rem,4vw,2.7rem);margin:0 0 10px}
.cp-home .cp-step-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cp-home .cp-step-card{padding:24px;border:1px solid var(--cp-line);border-radius:22px;background:linear-gradient(145deg,#152238,#101a2a)}
.cp-home .cp-step-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.cp-home .cp-step-visual{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:rgba(168,240,107,.1);font-size:25px}
.cp-home .cp-step-number{color:var(--cp-dim);font:800 1rem Manrope}
.cp-home .cp-step-card h3{margin:0 0 10px}.cp-home .cp-step-card p{margin:0}
.cp-home .cp-how-cta{display:flex;justify-content:space-between;align-items:center;max-width:420px;margin:28px auto 0;padding:14px 18px;border:1px solid var(--cp-line-strong);border-radius:15px;color:#fff;font-weight:800}
.cp-home .cp-how-cta b{color:var(--cp-mint);font-size:1.2rem}
.cp-home .cp-feature-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0 58px;padding:20px;border:1px solid var(--cp-line);border-radius:22px;background:rgba(255,255,255,.025)}
.cp-home .cp-feature-strip>div{display:grid;grid-template-columns:42px 1fr;align-items:center;column-gap:12px}
.cp-home .cp-feature-strip>div>span{grid-row:span 2;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(114,229,229,.1);font-size:21px}
.cp-home .cp-feature-strip b{color:#fff;font-size:.9rem}.cp-home .cp-feature-strip small{color:var(--cp-muted)}
.cp-home .cp-last-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,5vw,42px);border:1px solid rgba(168,240,107,.2);border-radius:26px;background:radial-gradient(ellipse at 90% 0,rgba(168,240,107,.12),transparent 40%),#132235}
.cp-home .cp-last-cta h2{margin:10px 0}.cp-home .cp-last-cta p{margin:0}
.cp-home .cp-mini-label{color:var(--cp-mint);font-size:.75rem;font-weight:850;letter-spacing:.12em}
.cp-home .cp-last-cta>a{display:inline-flex;gap:12px;align-items:center;min-width:max-content;padding:14px 18px;border-radius:14px;background:var(--cp-mint);color:#17220d;font-weight:850}

@media(max-width:760px){.cp-home .cp-hero{grid-template-columns:1fr;padding:35px 0 45px}.cp-home .cp-hero-art{min-height:330px}.cp-home .cp-step-grid{grid-template-columns:1fr}.cp-home .cp-feature-strip{grid-template-columns:1fr}.cp-home .cp-last-cta{align-items:flex-start;flex-direction:column}.cp-home .cp-last-cta>a{width:100%;justify-content:space-between}}
@media(max-width:440px){.cp-home .cp-hero-art{min-height:280px}.cp-home .cp-art-phone{transform:scale(.86) rotate(-7deg)}.cp-home .cp-coin-stack{right:0;width:76px;height:76px}}

/* Mobile layout hardening: prevent nested flex/grid content from forcing page overflow. */
.site-body{overflow-x:clip}

.site-body :where(img,iframe,video,canvas,svg){max-width:100%}
.site-body :where(p,small,b,strong,a,td,th,code){overflow-wrap:anywhere}
.site-body :where(.table-scroll){width:100%;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.site-body :where(form){min-width:0;max-width:100%}
.site-body :where(button,.button,.btn){max-width:100%;touch-action:manipulation}
.site-body :where(input,select,textarea){min-width:0}
.site-body :where(.cp-history-row>strong,.wallet-balance){font-variant-numeric:tabular-nums}
@media(max-width:760px){

 .site-body .cp-section-heading{flex-wrap:wrap}
 .site-body .cp-history-row{align-items:flex-start;flex-wrap:wrap}
 .site-body .cp-history-row>strong{margin-left:auto}
 .site-body .cp-public-shell{width:calc(100% - 28px)}
 .site-body .cp-auth-layout{width:100%}
}

/* Keep reasonable clearance for the fixed mobile dock without creating a large page-end gap. */
@media(max-width:760px){

 .site-body :where(.cp-dashboard,.wallet-page,.cp-notifications-page,.profile-page-wrap){min-width:0;width:100%}
}
@media(max-width:420px){
 .site-body .site-main{width:calc(100% - 24px)}
 .site-body :where(.cp-auth-card,.profile-card,.wallet-hero,.wallet-withdraw-cta,.cp-history,.notifications-hero,.notification-item){max-width:100%;min-width:0}
 .site-body :where(.cp-history,.notifications-list,.notification-item){overflow-wrap:anywhere}
}

/* Landing page mobile refinement: keep the hero compact, readable and inside the viewport. */
.cp-home{overflow-x:clip}
.cp-home .cp-public-header{min-width:0;gap:12px}
.cp-home .cp-logo{min-width:0;max-width:55%;gap:10px}
.cp-home .cp-logo>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.cp-home .cp-hero{min-width:0}
.cp-home .cp-hero-copy{min-width:0;width:100%;max-width:100%}
.cp-home .cp-hero-copy h1{max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
.cp-home .cp-hero-copy p{max-width:100%;overflow-wrap:anywhere}
.cp-home .cp-main-cta{max-width:100%;white-space:normal}
.cp-home .cp-trust-row{width:100%;max-width:100%;align-items:flex-start;gap:10px 14px}
.cp-home .cp-trust-row span{min-width:0;overflow-wrap:anywhere}
.cp-home .cp-hero-art{min-width:0;max-width:100%;overflow:hidden}
.cp-home .cp-how, .cp-home .cp-feature-strip, .cp-home .cp-last-cta{min-width:0;max-width:100%}
.cp-home .cp-step-card, .cp-home .cp-last-cta>div{min-width:0}
@media(max-width:760px){
 .cp-home .cp-hero{display:flex;flex-direction:column;align-items:stretch;gap:18px;padding:28px 0 36px}
 .cp-home .cp-hero-copy h1{font-size:clamp(2.15rem,9.2vw,3.25rem);line-height:1.04;letter-spacing:-.065em;margin-bottom:16px}
 .cp-home .cp-hero-copy p{font-size:1rem;line-height:1.65;margin:0}
 .cp-home .cp-main-cta{display:flex;width:max-content;max-width:100%;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:14px 18px;border-radius:16px}
 .cp-home .cp-trust-row{margin-top:18px;font-size:.78rem;line-height:1.45}
 .cp-home .cp-hero-art{width:100%;min-height:270px;height:270px;margin:0 auto}
 .cp-home .cp-art-phone{width:180px;height:290px;transform:scale(.84) rotate(-6deg)}
 .cp-home .cp-gamepad{left:4%;bottom:34px;transform:scale(.82) rotate(7deg);transform-origin:left bottom}
 .cp-home .cp-coin-stack{right:4%;bottom:24px;width:72px;height:72px;border-width:5px;font-size:1.35rem}
 .cp-home .cp-spark.spark-one{top:22px;right:9%}
 .cp-home .cp-spark.spark-two{bottom:12px;left:18%}
 .cp-home .cp-how{padding:34px 0 42px}
 .cp-home .cp-section-title{text-align:left}
 .cp-home .cp-section-title>p{line-height:1.65}
 .cp-home .cp-step-card{padding:20px;border-radius:20px}
 .cp-home .cp-feature-strip{padding:16px;border-radius:20px}
 .cp-home .cp-last-cta{padding:22px;border-radius:22px}
}
@media(max-width:390px){
 .cp-home .cp-public-header{gap:7px}
 .cp-home .cp-logo{gap:7px;font-size:1rem}
 .cp-home .cp-logo .cp-logo-coin{width:36px;height:36px;flex:0 0 36px}

 .cp-home .cp-hero-copy h1{font-size:clamp(2rem,9.1vw,2.55rem)}
 .cp-home .cp-trust-row{gap:8px 11px}
}

/* Landing page mobile cleanup: one content gutter, no duplicate template framing. */
body.cp-home-page .site-main{width:100%;max-width:none;margin:0;padding:0;min-height:0}
.cp-home .cp-public-shell{width:min(1200px,calc(100% - 40px));margin-inline:auto}
.cp-home .cp-trust-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.cp-home .cp-trust-row span{flex:0 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere}
.cp-home .cp-last-cta h2{color:var(--mono-fg,#fff)}
.cp-home .cp-last-cta .cp-mini-label{color:var(--theme-accent-2,var(--cp-mint))}
@media(max-width:760px){
 .cp-home .cp-public-shell{width:calc(100% - 28px)}
 .cp-home .cp-hero{padding:28px 0 34px;gap:18px}
 .cp-home .cp-hero-copy h1{font-size:clamp(2rem,8.4vw,3rem);line-height:1.06;letter-spacing:-.06em;overflow-wrap:normal;word-break:normal}
 .cp-home .cp-hero-copy p{font-size:1rem;line-height:1.6}
 .cp-home .cp-trust-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
 .cp-home .cp-trust-row span{font-size:.78rem}
 .cp-home .cp-last-cta{gap:18px}
 .cp-home .cp-last-cta>a{min-width:0}
}
@media(max-width:390px){
 .cp-home .cp-public-shell{width:calc(100% - 24px)}
 .cp-home .cp-trust-row{grid-template-columns:minmax(0,1fr)}
}

/* Landing page theme consistency: honor the active light/dark palette and remove
   the extra page-level footer (layout_end renders the shared footer). */
.cp-home .cp-last-cta{
  background:linear-gradient(135deg,color-mix(in srgb,var(--theme-accent-1) 7%,var(--theme-surface)),color-mix(in srgb,var(--theme-accent-3) 6%,var(--theme-surface)));
  border:1px solid color-mix(in srgb,var(--theme-accent-1) 28%,var(--theme-accent-3) 28%,var(--mono-border));
  color:var(--mono-fg);
}
.cp-home .cp-last-cta h2{color:var(--mono-fg)}
.cp-home .cp-last-cta p{color:var(--mono-muted)}
.cp-home .cp-last-cta .cp-mini-label{color:var(--theme-accent-1)}
.cp-home .cp-last-cta>a{
  background:var(--theme-gradient);
  color:var(--theme-on-accent);
  border:1px solid transparent;
  box-shadow:0 8px 22px color-mix(in srgb,var(--theme-accent-1) 22%,transparent);
}
.cp-home .cp-feature-strip{
  background:var(--theme-surface);
  border-color:var(--mono-border);
}
.cp-home .cp-feature-strip>div>span{
  background:color-mix(in srgb,var(--theme-accent-1) 10%,var(--theme-surface-2));
}
.cp-home .cp-feature-strip b{color:var(--mono-fg)}
.cp-home .cp-feature-strip small{color:var(--mono-muted)}
.cp-home .cp-step-card{
  background:var(--theme-surface);
  border-color:var(--mono-border);
}
.cp-home .cp-step-visual{
  background:color-mix(in srgb,var(--theme-accent-1) 10%,var(--theme-surface-2));
}
.cp-home .cp-step-number{color:var(--mono-muted)}
.cp-home .cp-step-card h3{color:var(--mono-fg)}
.cp-home .cp-step-card p{color:var(--mono-muted)}
.cp-home .cp-how-cta{
  border-color:var(--mono-border);
  background:var(--theme-surface);
  color:var(--mono-fg);
}
.cp-home .cp-how-cta b{color:var(--theme-accent-1)}
.cp-home .cp-how{border-top-color:var(--mono-border)}
.cp-home .cp-public-header{border-color:var(--mono-border)}

/* Mobile member pages end at their content; the fixed dock overlays without
   reserving a full viewport or leaving a blank tail after the footer. */
@media(max-width:760px){
 html[data-cp-theme] body.site-body:not(.public-experience){
  min-height:0;
  height:auto;
 }
 html[data-cp-theme] body.site-body:not(.public-experience) .site-main{
  min-height:0;
  padding-bottom:0;
  margin-bottom:0;
 }
 html[data-cp-theme] body.site-body.cp-page-dashboard .site-main{
  padding-bottom:2px;
 }
}
