/* DAILY 2K Mobile UI V2 — 2026-09-05
   Typography, responsive containment, profile cleanup and light/dark/system theming.
   This file intentionally overrides the existing styles without changing finance/business logic. */

:root{
  --d2k-page:#f7f8f2;
  --d2k-surface:#ffffff;
  --d2k-surface-soft:#f2f5ef;
  --d2k-text:#0b2038;
  --d2k-muted:#6f7f96;
  --d2k-line:#e1e7df;
  --d2k-navy:#0b2038;
  --d2k-navy-soft:#1b3148;
  --d2k-lime:#b6ed49;
  --d2k-lime-dark:#6fa60d;
  --d2k-warning-bg:#fff4d8;
  --d2k-warning-text:#73581b;
  --d2k-danger:#c94747;
  --d2k-control:#ffffff;
  --d2k-shadow:0 12px 32px rgba(11,32,56,.08);
  --d2k-body:16px;
  --d2k-small:15px;
  --d2k-caption:13px;
}

html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  background:var(--d2k-page);
}

body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  background:var(--d2k-page);
  color:var(--d2k-text);
  font-size:var(--d2k-body);
  line-height:1.45;
}

*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{max-width:100%}

.app-shell{
  width:100%;
  max-width:480px;
  min-width:0;
  min-height:100dvh;
  overflow-x:hidden;
  background:var(--d2k-page);
  color:var(--d2k-text);
}

.screen{
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:100dvh;
  padding:24px 22px calc(112px + env(safe-area-inset-bottom));
  overflow-x:hidden;
}

.screen > *,
.page-content,
.page-content > *,
.account-page,
.home-content,
.app-header > *,
.inner-header > *,
.settings > *,
.settings button > *,
.settings-link > *,
.next-card > *,
.circle-top > *,
.payout-grid > *,
.member-row > *,
.managed-circle > *,
.directory-identity > *,
.support-links > *,
.support-links a > *{
  min-width:0;
}

/* Core readable type scale */
.eyebrow{
  font-size:13px;
  line-height:1.25;
  letter-spacing:.14em;
  margin:26px 0 9px;
}

.lead,
.screen-copy p,
.payout-head p,
.form-intro,
.field-help,
.notice,
.policy-card p,
.turn-card p,
.emergency-card p,
.support-card p,
.faq-list details p,
.timeline-card p{
  font-size:16px;
  line-height:1.55;
}

.inner-header{
  grid-template-columns:46px minmax(0,1fr) 46px;
  gap:6px;
  margin-bottom:28px;
}
.inner-header h3{font-size:21px;line-height:1.2;letter-spacing:-.35px}
.inner-header .back,.back{font-size:44px;min-width:44px;min-height:44px;display:grid;place-items:center}

.page-content h2,
.screen-copy h2,
.browser-auth-page h2{
  font-size:clamp(28px,7.8vw,34px);
  line-height:1.08;
  letter-spacing:-1.15px;
  overflow-wrap:anywhere;
}

.hero h1{
  font-size:clamp(38px,10vw,46px);
  line-height:1;
  letter-spacing:-2px;
}

.home-content h2{
  font-size:clamp(36px,9.5vw,44px);
  line-height:1.02;
  letter-spacing:-1.8px;
  margin-bottom:24px;
}

.app-header{height:auto;min-height:72px;margin-bottom:28px;gap:13px}
.app-header .logo{width:48px;height:48px}
.app-header strong{font-size:18px;line-height:1.2;letter-spacing:.02em}
.app-header small{font-size:15px;line-height:1.35;margin-top:4px}
.avatar{width:46px;height:46px;font-size:15px}

.button{
  min-height:54px;
  padding:13px 18px;
  border-radius:16px;
  font-size:17px;
  line-height:1.2;
}
.text-button,.text-link{font-size:16px;min-height:44px}

/* Forms */
.account-form label,
.browser-auth-form label,
#payout .page-content > label,
#payment label{
  font-size:16px;
  line-height:1.35;
}

.account-form input,
.account-form select,
.account-form textarea,
.browser-auth-form input,
#payout select,
#payment select,
#payment input,
#payout-account input,
#payout-account select{
  width:100%;
  min-width:0;
  min-height:52px;
  padding:12px 14px;
  border-radius:14px;
  font-size:16px;
  line-height:1.25;
}

.account-form fieldset{min-width:0;max-width:100%;padding:16px;border-radius:16px}
.account-form legend{font-size:16px;font-weight:800;padding:0 6px}
.account-form small,.browser-auth-form label small{font-size:14px;line-height:1.45}
.check-row{font-size:15px;line-height:1.5}
.check-row.consent span,.signup-confirm span{font-size:15px;line-height:1.5}
.form-section-label{
  margin:28px 0 12px;
  color:var(--d2k-lime-dark);
  font-size:13px;
  line-height:1.2;
  letter-spacing:.14em;
  font-weight:900;
}
.account-form > .form-section-label:first-child{margin-top:12px}
.field-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}

/* Home */
.circle-slot-summary{font-size:16px!important;line-height:1.4;margin-bottom:14px!important}
.circle-pot-carousel{max-width:100%;overscroll-behavior-x:contain}
.circle-pot-card{
  min-width:min(88%,370px)!important;
  max-width:100%;
  padding:22px!important;
  border-radius:24px!important;
}
.circle-pot-card h3,.circle-pot-detail h3{font-size:22px!important;line-height:1.2}
.circle-pot-card .handle,.circle-pot-detail .handle{font-size:15px!important;line-height:1.4}
.circle-pot-label{font-size:14px!important;line-height:1.25;margin-top:22px!important}
.circle-pot-money{font-size:38px!important;line-height:1.05!important;margin-top:8px!important}
.circle-pot-breakdown,.circle-pot-stats{gap:12px!important}
.circle-pot-breakdown span,.circle-pot-stats span{min-width:0;padding:13px!important}
.circle-pot-breakdown small,.circle-pot-stats small{font-size:14px!important;line-height:1.35;margin-bottom:6px!important}
.circle-pot-breakdown b,.circle-pot-stats b{font-size:16px!important;line-height:1.25;overflow-wrap:anywhere}
.member-dots{gap:9px!important}
.member-chip{font-size:14px!important;line-height:1.25;padding:8px 11px!important;max-width:100%;overflow-wrap:anywhere}
.daily-ring{width:62px!important;height:62px!important;flex-basis:62px!important}
.daily-ring b{font-size:14px!important}.daily-ring i{transform:rotate(calc(var(--i)*90deg)) translateY(-34px)!important}

.next-card{padding:17px 16px;border-radius:19px;gap:13px}
.next-card small,.circle-card small{font-size:13px;line-height:1.25}
.next-card strong{font-size:17px;line-height:1.3;margin:4px 0}
.next-card p,.circle-card p{font-size:15px;line-height:1.45}
.icon-round{width:42px;height:42px;flex:0 0 42px;font-size:20px}

.section-title{gap:16px;margin:32px 0 14px;align-items:flex-end}
.section-title h3{font-size:24px;line-height:1.15;letter-spacing:-.7px}
.section-title button{font-size:15px;min-height:38px}

.circle-card{padding:20px;border-radius:20px}
.circle-card h3{font-size:20px;line-height:1.25;margin:18px 0 5px}
.status,.verified{font-size:13px;line-height:1.2;padding:7px 10px}

nav{height:92px;padding:10px 8px calc(9px + env(safe-area-inset-bottom));background:var(--d2k-surface)}
nav button{font-size:12px;line-height:1.2;gap:5px;min-width:58px}
nav button span{font-size:22px}
nav .deposit span{width:60px;height:60px;font-size:36px}

/* Circle details / directory */
.circle-hero p:last-child{font-size:15px;line-height:1.45}
.circle-symbol{width:72px;height:72px;font-size:21px}
.metrics{gap:8px;padding:16px 10px}
.metrics small{font-size:12px;line-height:1.3;letter-spacing:.03em}
.metrics b{font-size:15px;line-height:1.25;margin-top:6px}
.timeline-card,.payout-preview{padding:18px;border-radius:18px}
.payout-preview h3{font-size:19px}
.payout-preview div,.breakdown div,.fee-panel div{font-size:15px;line-height:1.4;gap:14px}
.amount-box strong{font-size:40px}.amount-box span{font-size:26px}
.quick-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.quick-amounts button{min-width:0;padding:11px 8px;font-size:15px}
.method{min-height:58px;padding:15px;font-size:16px}
.fee-panel p{font-size:15px;line-height:1.45}
.receipt{font-size:15px;line-height:1.4;gap:16px}

.managed-circle{
  width:100%;
  max-width:100%;
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr) auto!important;
  align-items:center;
  gap:14px!important;
  min-height:112px;
  padding:16px!important;
  border-radius:18px!important;
}
.managed-circle .circle-avatar{width:64px!important;height:64px!important;font-size:18px!important}
.managed-circle strong{font-size:18px!important;line-height:1.25}
.managed-circle small{font-size:14px!important;line-height:1.4;margin-top:5px!important}
.managed-circle > b{font-size:13px!important;letter-spacing:.08em;white-space:nowrap}

.directory-circle{padding:20px!important;border-radius:20px!important;max-width:100%}
.directory-identity{display:flex!important;align-items:center;gap:14px!important}
.directory-identity .circle-avatar{width:60px!important;height:60px!important;flex:0 0 60px!important;font-size:18px!important}
.directory-identity h3{font-size:22px!important;line-height:1.2;margin:0 0 4px!important}
.directory-circle .handle{font-size:15px!important;line-height:1.35;overflow-wrap:anywhere}
.directory-circle .slogan{font-size:16px!important;line-height:1.45;margin:16px 0!important}
.track-record{display:flex;flex-wrap:wrap;gap:8px!important}
.track-record span{font-size:13px!important;line-height:1.2;padding:7px 10px!important}

.member-group-title{font-size:13px!important;letter-spacing:.12em;font-weight:900;color:var(--d2k-lime-dark);margin:22px 0 6px!important}
.member-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  width:100%;
  max-width:100%;
  padding:18px 0!important;
}
.member-row > span{display:block;min-width:0}
.member-row strong{font-size:18px!important;line-height:1.3;overflow-wrap:anywhere}
.member-row small{display:block;font-size:15px!important;line-height:1.4;margin-top:4px!important;overflow-wrap:anywhere}
.member-row > b{justify-self:start;font-size:13px!important;letter-spacing:.08em}
.member-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;justify-content:flex-start!important;max-width:100%}
.member-actions button{min-height:44px!important;padding:10px 14px!important;border-radius:12px!important;font-size:15px!important;line-height:1.2;white-space:normal!important}
.case-row{font-size:15px;line-height:1.45;max-width:100%}

/* Payout: money is the hero; long labels can never widen the page. */
.payout-head{padding:4px 0 8px}
.payout-head h2{font-size:clamp(29px,8vw,34px)!important;line-height:1.08!important;letter-spacing:-1.2px!important;margin-bottom:18px;overflow-wrap:anywhere}
#payout .page-content > label{display:grid;gap:8px;font-weight:800}
#payout-circle-select{width:100%;min-height:52px;padding:12px 14px;border-radius:14px}
.payout-card{padding:22px;border-radius:22px;margin:20px 0 26px}
.payout-card span,.payout-card small{font-size:15px;line-height:1.4}
.payout-card strong{font-size:clamp(38px,11vw,48px);line-height:1.05;letter-spacing:-1.8px;margin:12px 0}
.payout-grid{gap:0!important;margin:14px 0!important;max-width:100%}
.payout-grid > div{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(118px,42%);
  gap:16px!important;
  align-items:start;
  padding:17px 0!important;
  max-width:100%;
}
.payout-grid span{font-size:16px;line-height:1.4;min-width:0}
.payout-grid b{font-size:17px;line-height:1.35;min-width:0;text-align:right!important;overflow-wrap:anywhere;word-break:normal}
.notice{padding:15px 16px;border-radius:15px;margin:20px 0}

/* Profile */
.profile-page{padding-bottom:8px}
.profile-head{margin:8px 0 30px}
.profile-avatar{width:82px;height:82px;font-size:30px}
.profile-head h2{font-size:30px!important;line-height:1.12;letter-spacing:-1px;margin:16px 0 5px;overflow-wrap:anywhere}
.profile-head p{font-size:16px;line-height:1.4;margin-bottom:14px}
.settings-section-label{
  margin:30px 0 8px;
  color:var(--d2k-muted);
  font-size:13px;
  line-height:1.2;
  letter-spacing:.14em;
  font-weight:900;
}
.settings-section-label:first-of-type{margin-top:0}
.profile-settings{border-top:1px solid var(--d2k-line)}
.settings button,.settings .settings-link{
  min-height:78px;
  gap:14px;
  padding:17px 2px;
  color:var(--d2k-text);
  border-color:var(--d2k-line);
}
.settings button > span:first-child,.settings .settings-link > span:first-child{
  width:36px;
  flex:0 0 36px;
  text-align:center;
  font-size:23px;
}
.settings strong,.settings .settings-link strong{font-size:17px;line-height:1.3}
.settings small,.settings .settings-link small{font-size:15px;line-height:1.38;margin-top:4px}
.settings button>b,.settings .settings-link>b{font-size:28px;line-height:1;color:var(--d2k-muted)}
.logout{min-height:52px;margin:28px 0 4px;font-size:16px}

/* Appearance */
.theme-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0 18px}
.theme-preview-card{display:block;height:116px;border-radius:20px;background:#f7f8f2;border:1px solid #dce4d9;padding:17px;box-shadow:var(--d2k-shadow)}
.theme-preview-card.dark{background:#0d1927;border-color:#25384b}
.theme-preview-card i,.theme-preview-card b{display:block;border-radius:999px;background:#cfd8c8}
.theme-preview-card i:first-child{width:60%;height:11px;margin-bottom:10px}.theme-preview-card i:nth-child(2){width:82%;height:8px;margin-bottom:22px}.theme-preview-card b{height:31px;background:#0b2038}
.theme-preview-card.dark i{background:#516276}.theme-preview-card.dark b{background:#b6ed49}
.theme-options button[aria-checked="true"]{background:rgba(182,237,73,.10)}
.theme-options button[aria-checked="true"]>b{color:var(--d2k-lime-dark)}

/* Support / legal / browser auth */
.support-card{padding:18px;border-radius:18px}
.support-card h3{font-size:22px;line-height:1.2}
.support-links a{min-height:58px;padding:13px 14px;font-size:16px;line-height:1.3;flex-wrap:wrap}
.support-links a small{font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.faq-list summary{font-size:17px;line-height:1.35;padding:16px 30px 16px 0}
.legal-consent-card{padding:18px}
.legal-consent-card h3{font-size:20px}
.legal-fee-summary{gap:10px}
.legal-fee-summary b{font-size:20px}.legal-fee-summary small{font-size:13px;line-height:1.35}
.email-login-card{padding:18px}.email-login-card h3{font-size:20px}.email-login-state{font-size:15px;line-height:1.45}
.browser-landing h1{font-size:clamp(34px,9vw,42px);line-height:1.03;letter-spacing:-1.7px}
.browser-access-status,.browser-new-member,.browser-alt-link,.browser-preview-code,.browser-existing-warning{font-size:15px;line-height:1.5}
.auth-splash-status{font-size:15px;line-height:1.5}.auth-splash h1{font-size:32px}

/* Dark theme */
html[data-theme="dark"]{
  --d2k-page:#0a1522;
  --d2k-surface:#111f2f;
  --d2k-surface-soft:#162536;
  --d2k-text:#f2f6fa;
  --d2k-muted:#a8b4c4;
  --d2k-line:#29394a;
  --d2k-lime-dark:#a9dc43;
  --d2k-warning-bg:#352a14;
  --d2k-warning-text:#ecd28c;
  --d2k-control:#152638;
  --d2k-shadow:none;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] .screen{background:var(--d2k-page)!important;color:var(--d2k-text)!important}
html[data-theme="dark"] .auth-splash{background:linear-gradient(180deg,#0a1522 0%,#0e1b29 100%)!important}
html[data-theme="dark"] .auth-splash h1,
html[data-theme="dark"] .browser-auth-page h2,
html[data-theme="dark"] .page-content h2,
html[data-theme="dark"] .section-title h3,
html[data-theme="dark"] .profile-head h2,
html[data-theme="dark"] .settings strong,
html[data-theme="dark"] .settings .settings-link strong,
html[data-theme="dark"] .faq-list summary,
html[data-theme="dark"] .directory-identity h3,
html[data-theme="dark"] .managed-circle strong,
html[data-theme="dark"] .member-row strong,
html[data-theme="dark"] .account-form label,
html[data-theme="dark"] .browser-auth-form label{color:var(--d2k-text)!important}

html[data-theme="dark"] .lead,
html[data-theme="dark"] .screen-copy p,
html[data-theme="dark"] .payout-head p,
html[data-theme="dark"] .form-intro,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .profile-head p,
html[data-theme="dark"] .settings small,
html[data-theme="dark"] .settings .settings-link small,
html[data-theme="dark"] .app-header small,
html[data-theme="dark"] .directory-circle .slogan,
html[data-theme="dark"] .member-row small,
html[data-theme="dark"] .support-card p,
html[data-theme="dark"] .faq-list details p{color:var(--d2k-muted)!important}

html[data-theme="dark"] :is(
  .next-card,.circle-card,.metrics,.timeline-card,.payout-preview,.amount-box,.method,.breakdown,.receipt,
  .policy-card,.turn-card,.emergency-card,.support-card,.support-links a,.faq-list details,.legal-consent-card,
  .email-login-card,.payment-circle-card,.ledger-row,.staff-summary article,.directory-circle,.managed-circle,
  .circle-pot-empty,.settlement-preview
){background:var(--d2k-surface)!important;color:var(--d2k-text)!important;border-color:var(--d2k-line)!important}

html[data-theme="dark"] .email-login-card,
html[data-theme="dark"] .telegram-link-card{background:var(--d2k-surface-soft)!important}
html[data-theme="dark"] .notice,
html[data-theme="dark"] .browser-existing-warning,
html[data-theme="dark"] .browser-preview-code{background:var(--d2k-warning-bg)!important;color:var(--d2k-warning-text)!important}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:var(--d2k-control)!important;
  color:var(--d2k-text)!important;
  border-color:#38506a!important;
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8090a4}
html[data-theme="dark"] option{background:#152638;color:#f2f6fa}

html[data-theme="dark"] .settings button,
html[data-theme="dark"] .settings .settings-link{color:var(--d2k-text)!important;border-color:var(--d2k-line)!important}
html[data-theme="dark"] nav{background:#0f1d2b!important;border-color:var(--d2k-line)!important}
html[data-theme="dark"] nav button{color:#9ba8b9!important}
html[data-theme="dark"] nav .selected{color:var(--d2k-lime)!important}
html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .avatar{background:#29402d!important;color:#dfffa2!important}
html[data-theme="dark"] .verified,.status{border-color:transparent}

/* Keep branded navy financial surfaces navy in both themes. */
html[data-theme="dark"] :is(.balance-card,.payout-card,.circle-pot-card,.circle-pot-detail,.celebration-card,.button.primary){background:var(--d2k-navy)!important;color:#fff!important}
html[data-theme="dark"] .completion-ring::after{background:var(--d2k-navy)!important}
html[data-theme="dark"] .turn-row{background:var(--d2k-surface-soft)!important;color:var(--d2k-text)!important}
html[data-theme="dark"] .turn-row .turn-number{background:var(--d2k-navy)!important;color:#fff!important}
html[data-theme="dark"] .button.outline{color:var(--d2k-text)!important;border-color:#8ea0b5!important}
html[data-theme="dark"] .theme-preview-card{box-shadow:none}

/* Responsive fallbacks */
@media(max-width:380px){
  .screen{padding-left:18px;padding-right:18px}
  .field-grid{grid-template-columns:1fr}
  .legal-fee-summary{grid-template-columns:1fr}
  .managed-circle{grid-template-columns:62px minmax(0,1fr)!important}
  .managed-circle > b{grid-column:2;justify-self:start}
  .managed-circle .circle-avatar{width:54px!important;height:54px!important}
  .payout-grid > div{grid-template-columns:1fr;gap:5px!important}
  .payout-grid b{text-align:left!important}
  .circle-pot-breakdown,.circle-pot-stats{grid-template-columns:1fr 1fr!important}
  .settings button > span:first-child,.settings .settings-link > span:first-child{width:30px;flex-basis:30px}
}

@media(min-width:650px){
  body{padding:20px}
  .app-shell{border-radius:30px;box-shadow:0 30px 80px rgba(35,55,43,.14)}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

/* Native-sized toggles/checkboxes: do not inherit text-input height. */
input[type="checkbox"],input[type="radio"]{
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  padding:0!important;
  margin-top:2px;
  flex:0 0 20px;
}
html[data-theme="dark"] .back,
html[data-theme="dark"] .inner-header .back{color:var(--d2k-text)!important}
#payout .button + .button{margin-top:10px}
.check-row{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:9px 0}
.check-row input{margin-top:2px!important}

/* DAILY 2K Mobile UI V2.1 — dark-mode contrast hotfix — 2026-09-05
   Explicitly themes light-only legacy surfaces and text so no content becomes
   white-on-white or navy-on-navy when the app is in dark mode. */
html[data-theme="dark"]{color-scheme:dark}

html[data-theme="dark"] :is(
  .protection-card,.invite-card,.trust-card,.fee-panel,.breakdown,
  .amount-box,.method,.receipt,.metrics,.timeline-card,.payout-preview,
  .next-card,.circle-card,.legal-consent-card,.email-login-card,
  .telegram-link-card,.staff-summary article
){
  background:var(--d2k-surface)!important;
  color:var(--d2k-text)!important;
  border-color:var(--d2k-line)!important;
}

html[data-theme="dark"] .account-form fieldset{
  background:var(--d2k-surface)!important;
  color:var(--d2k-text)!important;
  border-color:var(--d2k-line)!important;
}
html[data-theme="dark"] .account-form fieldset legend,
html[data-theme="dark"] .account-form fieldset label,
html[data-theme="dark"] .account-form .check-row,
html[data-theme="dark"] .check-row.consent span,
html[data-theme="dark"] .signup-confirm span,
html[data-theme="dark"] .legal-consent-card h3,
html[data-theme="dark"] .protection-card h3,
html[data-theme="dark"] .turn-card h3,
html[data-theme="dark"] .invite-card strong,
html[data-theme="dark"] .fee-panel b,
html[data-theme="dark"] .breakdown b,
html[data-theme="dark"] .amount-box strong{
  color:var(--d2k-text)!important;
}

html[data-theme="dark"] :is(
  .protection-card p,.invite-card p,.turn-card p,.fee-panel span,
  .breakdown span,.receipt span,.timeline-card p,.payout-preview span,
  .checklist small,.method small,.legal-version-note,.email-login-state
){color:var(--d2k-muted)!important}

html[data-theme="dark"] .legal-fee-summary span,
html[data-theme="dark"] .quick-amounts button{
  background:var(--d2k-surface-soft)!important;
  color:var(--d2k-text)!important;
  border-color:var(--d2k-line)!important;
}
html[data-theme="dark"] .legal-fee-summary b{color:var(--d2k-text)!important}
html[data-theme="dark"] .legal-fee-summary small{color:var(--d2k-muted)!important}

html[data-theme="dark"] .button.outline.danger-action,
html[data-theme="dark"] .danger-action{
  color:#ff7d72!important;
  border-color:#ff7d72!important;
}
html[data-theme="dark"] .button.primary.danger-action{
  background:#5a211f!important;
  color:#ffd9d5!important;
  border-color:#ff7d72!important;
}

html[data-theme="dark"] .check-row.consent a,
html[data-theme="dark"] .browser-alt-link,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] a:not(.button):not(.settings-link){color:#b8ef4d}

html[data-theme="dark"] .status,
html[data-theme="dark"] .verified{
  background:#263a21!important;
  color:#c8f678!important;
}
html[data-theme="dark"] .form-status.success{background:#e8f2dc!important;color:#0b2038!important;border:1px solid #9dcc42!important;font-weight:800!important;text-shadow:none!important}
html[data-theme="dark"] .form-status.error{color:#ff9b94!important}
html[data-theme="dark"] .form-status:not(.success):not(.error){color:var(--d2k-muted)!important}

/* Circle invite status: keep the loaded-invite notice readable in both themes. */
#circle-join-status.form-status:not(.success):not(.error){
  background:var(--d2k-warning-bg)!important;
  color:var(--d2k-warning-text)!important;
  border:1px solid rgba(115,88,27,.22)!important;
  border-radius:14px;
  padding:13px 15px;
  font-weight:700;
  line-height:1.45;
}
html[data-theme="dark"] #circle-join-status.form-status:not(.success):not(.error){
  background:#3a2d15!important;
  color:#f2d68d!important;
  border-color:#6a5425!important;
}

html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"]{accent-color:#86b918}
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"]{color-scheme:dark}

/* Legacy-token bridge: some older component rules still consume the original
   design tokens. Map them too so dark mode is consistent everywhere. */
html[data-theme="dark"]{
  --ink:var(--d2k-text);
  --muted:var(--d2k-muted);
  --cream:var(--d2k-page);
  --line:var(--d2k-line);
  --card:var(--d2k-surface);
  --lime-dark:var(--d2k-lime-dark);
  --danger:#ff7d72;
}
html[data-theme="dark"] :is(
  .circle-slot-summary,.next-card p,.circle-card p,.payout-grid span,
  .payment-circle-card small,.support-links a small,.account-mask,
  .staff-summary small,.staff-ops-card p,.staff-ops-card small
){color:var(--d2k-muted)!important}
html[data-theme="dark"] .icon-round{
  background:#223426!important;
  color:#b8ef4d!important;
}
html[data-theme="dark"] #staff-dashboard button:not(.back){
  background:var(--d2k-surface-soft)!important;
  color:var(--d2k-text)!important;
  border-color:var(--d2k-line)!important;
}
html[data-theme="dark"] #staff-dashboard .eyebrow{color:var(--d2k-lime-dark)!important}
html[data-theme="dark"] nav .deposit span{background:var(--d2k-lime)!important;color:var(--d2k-navy)!important}

/* DAILY 2K Mobile UI V2.2 — Home first-impression refresh — 2026-09-05
   Compact no-scroll home, swipeable circle cards, per-member paid-today indicators,
   invite sharing, pagination cues and filled-color navigation icons. */

#home{
  --home-nav-height:82px;
  height:calc(100dvh - var(--d2k-home-banner-offset, 0px));
  min-height:0;
  padding:14px 20px calc(var(--home-nav-height) + env(safe-area-inset-bottom));
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 24%,rgba(182,237,73,.055),transparent 26%),
    radial-gradient(circle at 88% 54%,rgba(49,150,255,.045),transparent 27%),
    var(--d2k-page);
}
#home .home-app-header{
  min-height:52px;
  height:52px;
  margin:0 0 8px;
  gap:11px;
  flex:0 0 52px;
}
#home .home-app-header .logo{width:42px;height:42px;border-radius:13px}
#home .home-app-header strong{font-size:17px}
#home .home-app-header small{font-size:13px;margin-top:2px}
#home .home-app-header .avatar{width:42px;height:42px;flex:0 0 42px}

#home .home-refresh-content{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
#home .home-hero-block{flex:0 0 auto}
#home .home-hero-block .eyebrow{
  margin:5px 0 5px;
  font-size:11px;
  letter-spacing:.18em;
}
#home .home-hero-block h2{
  font-size:clamp(31px,8.3vw,38px);
  line-height:.98;
  letter-spacing:-1.6px;
  margin:0 0 7px;
}
#home .home-hero-block h2 em{color:var(--d2k-lime-dark)}
#home .circle-slot-summary{
  margin:0 0 9px!important;
  font-size:13px!important;
  line-height:1.3;
  color:var(--d2k-muted)!important;
}

#home .home-circle-carousel{
  display:flex;
  gap:12px;
  width:calc(100% + 20px);
  max-width:none;
  min-height:0;
  height:clamp(316px,43dvh,360px);
  flex:0 1 auto;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  padding:0 20px 0 0;
  margin:0;
  -webkit-overflow-scrolling:touch;
}
#home .home-circle-carousel::-webkit-scrollbar{display:none}
#home .home-pot-card{
  position:relative;
  isolation:isolate;
  min-width:calc(100% - 42px)!important;
  width:calc(100% - 42px);
  height:100%;
  flex:0 0 calc(100% - 42px);
  scroll-snap-align:start;
  scroll-snap-stop:always;
  padding:15px!important;
  border:1px solid rgba(116,255,125,.72)!important;
  border-radius:23px!important;
  background:
    radial-gradient(circle at 8% 12%,rgba(116,255,125,.13),transparent 25%),
    linear-gradient(145deg,#0a2036 0%,#0b2038 62%,#081a2d 100%)!important;
  box-shadow:0 15px 35px rgba(5,22,38,.20),inset 0 0 0 1px rgba(255,255,255,.015)!important;
  color:#f6f9fc!important;
  overflow:hidden;
  text-align:left;
}
#home .home-pot-card:nth-child(3n+2){
  border-color:rgba(59,154,255,.78)!important;
  background:radial-gradient(circle at 8% 12%,rgba(58,147,255,.15),transparent 25%),linear-gradient(145deg,#0a2036 0%,#0b2038 62%,#081a2d 100%)!important;
}
#home .home-pot-card:nth-child(3n){
  border-color:rgba(170,105,255,.76)!important;
  background:radial-gradient(circle at 8% 12%,rgba(168,104,255,.14),transparent 25%),linear-gradient(145deg,#0a2036 0%,#0b2038 62%,#081a2d 100%)!important;
}
#home .home-pot-card::after{
  content:'';
  position:absolute;
  inset:auto -45px -55px auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(182,237,73,.08),transparent 68%);
  z-index:-1;
  pointer-events:none;
}
#home .home-pot-top{align-items:center!important;gap:10px!important}
#home .home-pot-identity{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
#home .home-circle-avatar{
  width:50px;
  height:50px;
  flex:0 0 50px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#a6ff6e,#42d5ff);
  color:#092038;
  font-size:15px;
  font-weight:950;
  box-shadow:0 0 0 2px rgba(182,237,73,.8),0 0 18px rgba(94,255,122,.18);
}
#home .home-pot-card:nth-child(3n+2) .home-circle-avatar{background:linear-gradient(145deg,#61c8ff,#5573ff);color:#fff;box-shadow:0 0 0 2px rgba(70,165,255,.8)}
#home .home-pot-card:nth-child(3n) .home-circle-avatar{background:linear-gradient(145deg,#e26cff,#7a75ff);color:#fff;box-shadow:0 0 0 2px rgba(180,107,255,.8)}
#home .home-circle-copy{display:block;min-width:0;flex:1}
#home .home-pot-card h3{font-size:20px!important;line-height:1.1;margin:0!important;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .home-pot-card .handle{display:block;margin-top:3px;font-size:13px!important;color:#9fb2c7!important;opacity:1!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .home-circle-state{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:5px;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(46,201,111,.18);
  color:#83f79d;
  font-size:11px;
  line-height:1.15;
  font-weight:800;
}
#home .home-circle-state::before{content:'';width:6px;height:6px;border-radius:50%;background:#6dff89;box-shadow:0 0 7px rgba(109,255,137,.7)}
#home .home-daily-ring{width:58px!important;height:58px!important;flex:0 0 58px!important}
#home .home-daily-ring::after{inset:7px!important;background:#0a2036!important}
#home .home-daily-ring b{display:block;font-size:14px!important;line-height:1;position:relative;z-index:3;color:#fff}
#home .home-daily-ring small{position:absolute;z-index:3;top:34px;font-size:8px;color:#9fb2c7;line-height:1}
#home .home-daily-ring i{transform:rotate(calc(var(--i)*90deg)) translateY(-31px)!important}
#home .home-daily-ring i.on{background:#8eff62!important;box-shadow:0 0 7px rgba(142,255,98,.8)!important}

#home .home-pot-money-row{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  margin-top:9px;
}
#home .home-pot-money-row > span{min-width:0}
#home .circle-pot-label{margin:0 0 2px!important;font-size:10px!important;color:#94aac1!important;opacity:1!important;letter-spacing:.1em}
#home .circle-pot-money{margin:0!important;font-size:31px!important;letter-spacing:-1.5px;color:#fff!important}
#home .home-circle-slogan{
  max-width:56%;
  margin:0 1px 1px auto;
  color:#9eb2c9!important;
  font-size:10px!important;
  line-height:1.28!important;
  font-style:italic;
  text-align:right;
}
#home .home-members-label{
  display:block;
  margin:8px 0 5px;
  color:#8ea6bf;
  font-size:9px;
  font-weight:850;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#home .home-member-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 7px}
#home .home-member-chip{
  min-width:0;
  min-height:28px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.07);
  color:#d9e3ed;
}
#home .home-member-chip b{min-width:0;font-size:10.5px;line-height:1.2;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .home-paid-dot{width:10px;height:10px;flex:0 0 10px;border-radius:50%;border:1.4px solid #7890a8;background:transparent}
#home .home-member-chip.paid .home-paid-dot{border-color:#80ff5f;background:#80ff5f;box-shadow:0 0 8px rgba(128,255,95,.62)}
#home .home-member-chip.paid{background:rgba(128,255,95,.075);border-color:rgba(128,255,95,.14);color:#fff}
#home .home-member-chip.open{opacity:.54}
#home .home-member-chip.open .home-paid-dot{border-style:dotted}

#home .home-circle-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:8px;
}
#home .home-circle-stats > span{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  min-height:54px;
  padding:7px 7px;
  border-radius:13px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.075);
}
#home .home-circle-stats > span > span{display:block;min-width:0}
#home .home-circle-stats small{display:block;color:#9fb2c7!important;font-size:8.5px!important;line-height:1.18!important;margin:0 0 3px!important}
#home .home-circle-stats b{display:block;color:#fff!important;font-size:11.5px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .stat-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:9px;
  font-style:normal;
  font-size:12px;
  font-weight:900;
}
#home .verified-icon{background:rgba(116,255,125,.15);color:#7fff8b}
#home .people-icon{background:rgba(69,157,255,.14);color:#65adff;font-size:7px;letter-spacing:-2px}
#home .coin-icon{background:rgba(182,237,73,.13);color:#b6ed49;font-size:16px}

#home .circle-carousel-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:18px;
  flex:0 0 18px;
  padding:5px 0 3px;
}
#home .circle-carousel-pagination[hidden]{display:block!important;visibility:hidden}
#home .circle-page-dot{
  width:7px;
  height:7px;
  min-width:7px;
  min-height:7px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#41576e;
  transition:width .16s ease,background .16s ease,box-shadow .16s ease;
}
#home .circle-page-dot.active{width:17px;border-radius:999px;background:var(--d2k-lime);box-shadow:0 0 10px rgba(182,237,73,.35)}

#home .home-invite-card{
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:54px;
  flex:0 0 54px;
  padding:7px 9px 7px 10px;
  margin:2px 0 0;
  border:1px solid color-mix(in srgb,var(--d2k-lime-dark) 38%,var(--d2k-line));
  border-radius:16px;
  background:color-mix(in srgb,var(--d2k-surface) 94%,var(--d2k-lime) 6%);
  color:var(--d2k-text);
}
#home .home-invite-card[hidden]{display:block!important;visibility:hidden}
#home .home-invite-icon{
  width:34px;height:34px;border-radius:12px;display:grid;place-items:center;
  background:rgba(182,237,73,.16);color:var(--d2k-lime-dark)
}
#home .home-invite-icon svg{width:20px;height:20px;fill:currentColor}
#home .home-invite-copy{min-width:0}
#home .home-invite-copy small{display:block;font-size:8px;letter-spacing:.12em;font-weight:900;color:var(--d2k-lime-dark);line-height:1.1}
#home .home-invite-copy strong{display:block;font-size:12px;line-height:1.2;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .home-invite-copy p{margin:0;font-size:9px!important;line-height:1.2!important;color:var(--d2k-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .home-share-invite{
  min-height:34px;
  padding:7px 9px;
  border:1px solid rgba(111,166,13,.42);
  border-radius:12px;
  background:rgba(182,237,73,.15);
  color:var(--d2k-lime-dark);
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
#home .home-share-invite span{font-size:16px;line-height:0;margin-left:2px;vertical-align:-1px}
#home .home-motto{
  flex:0 0 14px;
  margin:5px 0 0!important;
  text-align:center;
  color:var(--d2k-muted)!important;
  font-size:7.5px!important;
  line-height:1!important;
  letter-spacing:.2em;
  white-space:nowrap;
}

#home .home-nav{
  height:var(--home-nav-height);
  padding:8px 7px calc(7px + env(safe-area-inset-bottom));
  background:color-mix(in srgb,var(--d2k-surface) 96%,transparent);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
#home .home-nav button{font-size:10px;gap:3px;min-width:52px;color:#8d9db0}
#home .home-nav .nav-icon{display:grid;place-items:center;width:26px;height:26px;font-size:22px;line-height:1;color:currentColor}
#home .home-nav .nav-icon svg{width:25px;height:25px;fill:currentColor}
#home .home-nav .nav-home{color:#76a714}
#home .home-nav .nav-circle{color:#6eaef2}
#home .home-nav .nav-payout{color:#8f75ee}
#home .home-nav .nav-profile{color:#9aaabe}
#home .home-nav .selected{color:#79b214!important}
#home .home-nav .selected .nav-icon{filter:drop-shadow(0 0 7px rgba(182,237,73,.35))}
#home .home-nav .deposit{margin-top:-24px;color:#0b2038}
#home .home-nav .deposit .fund-plus{
  width:54px!important;
  height:54px!important;
  border-radius:50%;
  background:var(--d2k-lime)!important;
  color:#0b2038!important;
  font-size:34px!important;
  font-weight:400;
  box-shadow:0 8px 22px rgba(132,190,44,.27),0 0 0 4px color-mix(in srgb,var(--d2k-surface) 90%,transparent);
}

html[data-theme="dark"] #home{
  background:
    radial-gradient(circle at 10% 22%,rgba(110,255,105,.07),transparent 27%),
    radial-gradient(circle at 90% 50%,rgba(55,140,255,.06),transparent 30%),
    #071727;
}
html[data-theme="dark"] #home .home-hero-block h2{color:#f7f9fc}
html[data-theme="dark"] #home .home-hero-block h2 em{color:#82b80d}
html[data-theme="dark"] #home .circle-slot-summary{color:#788aa1!important}
html[data-theme="dark"] #home .home-invite-card{
  background:#0c1f31;
  border-color:#2c485e;
  color:#eef4fa;
}
html[data-theme="dark"] #home .home-invite-copy p{color:#91a4ba!important}
html[data-theme="dark"] #home .home-invite-copy small,
html[data-theme="dark"] #home .home-share-invite{color:#a9df3e}
html[data-theme="dark"] #home .home-invite-icon{background:#1b3525;color:#b6ed49}
html[data-theme="dark"] #home .home-share-invite{background:#173625;border-color:#3e6a31}
html[data-theme="dark"] #home .home-nav{background:rgba(7,23,39,.94)!important;border-color:#24394d!important}
html[data-theme="dark"] #home .home-nav .nav-home{color:#9ce642!important}
html[data-theme="dark"] #home .home-nav .nav-circle{color:#7bb8f7!important}
html[data-theme="dark"] #home .home-nav .nav-payout{color:#9d82f5!important}
html[data-theme="dark"] #home .home-nav .nav-profile{color:#9aadc1!important}
html[data-theme="dark"] #home .home-nav .deposit .fund-plus{box-shadow:0 8px 22px rgba(149,213,55,.28),0 0 0 4px #071727}

@media(max-height:760px){
  #home{--home-nav-height:76px;padding-top:9px;padding-left:18px;padding-right:18px}
  #home .home-app-header{height:46px;min-height:46px;flex-basis:46px;margin-bottom:4px}
  #home .home-app-header .logo{width:38px;height:38px}
  #home .home-app-header .avatar{width:38px;height:38px;flex-basis:38px}
  #home .home-hero-block .eyebrow{margin:2px 0 3px}
  #home .home-hero-block h2{font-size:30px;margin-bottom:4px}
  #home .circle-slot-summary{font-size:12px!important;margin-bottom:6px!important}
  #home .home-circle-carousel{height:300px}
  #home .home-pot-card{padding:12px!important}
  #home .home-circle-avatar{width:43px;height:43px;flex-basis:43px}
  #home .home-daily-ring{width:51px!important;height:51px!important;flex-basis:51px!important}
  #home .home-daily-ring small{top:30px}
  #home .home-pot-money-row{margin-top:6px}
  #home .home-members-label{margin-top:5px}
  #home .home-member-chip{min-height:25px;padding:4px 7px}
  #home .home-circle-stats{margin-top:5px}
  #home .home-circle-stats > span{min-height:47px;padding:5px}
  #home .home-invite-card{min-height:48px;flex-basis:48px}
  #home .home-motto{display:none}
  #home .home-nav .deposit{margin-top:-21px}
  #home .home-nav .deposit .fund-plus{width:48px!important;height:48px!important}
}

@media(max-width:380px){
  #home{padding-left:16px;padding-right:16px}
  #home .home-hero-block h2{font-size:30px}
  #home .home-circle-carousel{width:calc(100% + 16px)}
  #home .home-pot-card{min-width:calc(100% - 34px)!important;width:calc(100% - 34px);flex-basis:calc(100% - 34px)}
  #home .home-circle-slogan{display:none}
  #home .home-circle-stats small{font-size:8px!important}
  #home .home-circle-stats b{font-size:10.5px!important}
  #home .home-invite-copy p{display:none}
}

/* V2.2 contrast polish: keep navigation icons colorful while labels remain readable. */
#home .home-hero-block h2 em{color:#5f9304}
#home .home-hero-block .eyebrow,
#home .home-invite-copy small,
#home .home-share-invite{color:#4f7f0c}
#home .home-nav button{color:#66758a!important}
#home .home-nav .nav-home .nav-icon{color:#6fa60d!important}
#home .home-nav .nav-circle .nav-icon{color:#357fce!important}
#home .home-nav .nav-payout .nav-icon{color:#7254d8!important}
#home .home-nav .nav-profile .nav-icon{color:#71849a!important}
#home .home-nav .selected{color:#527e0f!important}
#home .home-nav .selected .nav-icon{color:#75ad13!important}
html[data-theme="dark"] #home .home-hero-block h2 em{color:#82b80d}
html[data-theme="dark"] #home .home-hero-block .eyebrow{color:#9ed63d!important}
html[data-theme="dark"] #home .home-nav button{color:#9ba8b9!important}
html[data-theme="dark"] #home .home-nav .nav-home .nav-icon{color:#9ce642!important}
html[data-theme="dark"] #home .home-nav .nav-circle .nav-icon{color:#6fb3ff!important}
html[data-theme="dark"] #home .home-nav .nav-payout .nav-icon{color:#9d82f5!important}
html[data-theme="dark"] #home .home-nav .nav-profile .nav-icon{color:#a7b7c9!important}
html[data-theme="dark"] #home .home-nav .selected{color:#a6e84c!important}

/* Use the available first-view height on modern phones instead of leaving dead space. */
#home .home-circle-carousel{height:clamp(340px,46.5dvh,392px)}
#home .home-pot-card{
  min-width:calc(100% - 28px)!important;
  width:calc(100% - 28px);
  flex-basis:calc(100% - 28px);
  display:flex;
  flex-direction:column;
}
#home .home-circle-stats{margin-top:auto}
#home .home-app-header small,
#home .circle-slot-summary,
#home .home-invite-copy p,
#home .home-motto{color:#58697e!important}
#home .home-nav button{color:#58697e!important}
html[data-theme="dark"] #home .home-app-header small,
html[data-theme="dark"] #home .circle-slot-summary,
html[data-theme="dark"] #home .home-invite-copy p,
html[data-theme="dark"] #home .home-motto{color:#91a4ba!important}
html[data-theme="dark"] #home .home-nav button{color:#9ba8b9!important}
@media(max-height:760px){
  #home .home-circle-carousel{height:300px}
  #home .home-pot-card{display:flex}
}
@media(max-width:380px){
  #home .home-pot-card{min-width:calc(100% - 24px)!important;width:calc(100% - 24px);flex-basis:calc(100% - 24px)}
}

/* ========================================================================== */
/* Mobile UI V2.3 — profile photo + initials contrast refinement              */
/* ========================================================================== */

/* Circle initials: keep the lime identity without the glare of white-on-lime. */
.managed-circle .circle-avatar,
.directory-identity .circle-avatar{
  background:linear-gradient(145deg,#b8ef49 0%,#91dc55 100%)!important;
  color:#0b2038!important;
  border:1px solid rgba(11,32,56,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -8px 18px rgba(26,93,53,.06)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.28)!important;
  font-weight:950!important;
}

/* User avatars support either initials or a real profile photo. */
.avatar,
.profile-avatar,
.profile-photo-preview,
.member-photo-avatar{
  overflow:hidden;
  background-position:center;
  background-size:cover;
}
.avatar.has-photo,
.profile-avatar.has-photo,
.profile-photo-preview.has-photo,
.member-photo-avatar.has-photo{
  padding:0!important;
  color:transparent!important;
  text-shadow:none!important;
}
.avatar img,
.profile-avatar img,
.profile-photo-preview img,
.member-photo-avatar img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.profile-avatar-edit{
  position:relative;
  display:inline-grid;
  place-items:center;
  width:92px;
  height:92px;
  margin:0 auto;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font:inherit;
}
.profile-avatar-edit .profile-avatar{margin:0!important}
.profile-avatar-edit-badge{
  position:absolute;
  right:0;
  bottom:2px;
  width:29px;
  height:29px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--d2k-lime);
  color:#0b2038;
  border:3px solid var(--d2k-page);
  font-size:14px;
  line-height:1;
  font-weight:950;
  box-shadow:0 5px 13px rgba(11,32,56,.18);
}
.profile-avatar-edit:focus-visible{outline:3px solid rgba(58,142,255,.45);outline-offset:4px;border-radius:50%}

.profile-photo-editor{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:15px;
  align-items:center;
  width:100%;
  margin:0 0 20px;
  padding:15px;
  border:1px solid var(--d2k-line);
  border-radius:18px;
  background:var(--d2k-surface-soft);
}
.profile-photo-preview{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,#b8ef49,#86d85a);
  color:#0b2038;
  border:2px solid rgba(11,32,56,.08);
  font-size:24px;
  font-weight:950;
}
.profile-photo-editor-copy{min-width:0}
.profile-photo-editor-copy > strong{display:block;font-size:17px;line-height:1.25;color:var(--d2k-text)}
.profile-photo-editor-copy > small{display:block;margin-top:4px;font-size:13px!important;line-height:1.45;color:var(--d2k-muted)}
.profile-photo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}
.profile-photo-actions .button{width:auto;min-height:42px;padding:9px 13px;font-size:14px}
.profile-photo-remove{width:auto;min-height:40px;padding:6px 8px;color:#a33131}
.profile-photo-editor .form-status{grid-column:1/-1;margin:0}

/* Circle membership verification: pair the user's face/initials with identity text. */
.member-person{
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-width:0;
  width:100%;
}
.member-photo-avatar{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  flex:0 0 50px;
  border-radius:50%;
  background:linear-gradient(145deg,#b8ef49,#86d85a);
  color:#0b2038;
  border:1px solid rgba(11,32,56,.12);
  font-size:15px;
  font-weight:950;
}
.member-person > span{min-width:0}

html[data-theme="dark"] .managed-circle .circle-avatar,
html[data-theme="dark"] .directory-identity .circle-avatar,
html[data-theme="dark"] .profile-photo-preview:not(.has-photo),
html[data-theme="dark"] .member-photo-avatar:not(.has-photo){
  background:linear-gradient(145deg,#9fdf42,#68bf58)!important;
  color:#071b2f!important;
  border-color:rgba(190,255,100,.25)!important;
}
html[data-theme="dark"] .profile-photo-editor{background:#102233!important;border-color:#2d4358!important}
html[data-theme="dark"] .profile-avatar-edit-badge{border-color:#0a1724}
html[data-theme="dark"] .profile-photo-remove{color:#ff9b9b}

@media(max-width:380px){
  .profile-photo-editor{grid-template-columns:64px minmax(0,1fr);gap:12px;padding:13px}
  .profile-photo-preview{width:64px;height:64px;font-size:21px}
  .member-person{grid-template-columns:44px minmax(0,1fr);gap:10px}
  .member-photo-avatar{width:44px;height:44px;flex-basis:44px;font-size:14px}
}

/* V2.8 — creator approval button contrast.
   Keep the Daily2K lime action surface, but use the same deep navy foreground
   as the circle/member initials so the label remains readable in both themes. */
.member-actions button.approve{
  background:var(--d2k-lime)!important;
  color:#0b2038!important;
  border-color:color-mix(in srgb,var(--d2k-lime) 72%,#0b2038 28%)!important;
  font-weight:900!important;
  text-shadow:none!important;
}
.member-actions button.approve:hover:not(:disabled),
.member-actions button.approve:focus-visible:not(:disabled){
  color:#0b2038!important;
}
.member-actions button.approve:disabled{
  color:rgba(11,32,56,.62)!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .member-actions button.approve{
  background:var(--d2k-lime)!important;
  color:#0b2038!important;
  text-shadow:none!important;
}


/* V2.9 — member-controlled funding reminder schedules. */
.funding-reminder-fieldset,.other-notification-fieldset{display:block}
.funding-reminder-toggle span,.service-notification-row>span:last-child,.other-notification-fieldset .check-row span{display:grid;gap:4px;min-width:0}
.funding-reminder-toggle strong,.service-notification-row strong,.other-notification-fieldset .check-row strong{font-size:15px;line-height:1.35}
.funding-reminder-toggle small,.service-notification-row small,.other-notification-fieldset .check-row small{color:var(--d2k-muted);font-weight:500}
#funding-reminder-schedule{margin-top:16px;padding-top:15px;border-top:1px solid var(--d2k-line)}
.reminder-setting-title{margin:0 0 10px;font-size:14px;font-weight:900;letter-spacing:.04em;color:var(--d2k-text)}
.reminder-presets{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.reminder-preset-card{position:relative;display:grid!important;grid-template-columns:20px minmax(0,1fr);align-items:flex-start!important;gap:9px!important;margin:0!important;padding:12px!important;border:1px solid var(--d2k-line);border-radius:14px;background:var(--d2k-surface);cursor:pointer}
.reminder-preset-card:has(input:checked){border-color:var(--d2k-lime);box-shadow:0 0 0 1px color-mix(in srgb,var(--d2k-lime) 65%,transparent);background:color-mix(in srgb,var(--d2k-lime) 9%,var(--d2k-surface))}
.reminder-preset-card span{display:grid;gap:4px;min-width:0}
.reminder-preset-card strong{font-size:14px;line-height:1.25;color:var(--d2k-text)}
.reminder-preset-card strong em{display:inline-block;margin-left:3px;padding:2px 5px;border-radius:999px;background:color-mix(in srgb,var(--d2k-lime) 20%,transparent);color:var(--d2k-lime-dark);font-size:9px;font-style:normal;letter-spacing:.05em;text-transform:uppercase;vertical-align:1px}
.reminder-preset-card small{font-size:12px!important;line-height:1.35!important;color:var(--d2k-muted)!important}
.custom-reminder-slots{margin-top:14px;padding:13px;border:1px solid var(--d2k-line);border-radius:14px;background:color-mix(in srgb,var(--d2k-surface) 88%,var(--d2k-bg) 12%)}
.custom-reminder-slots>p{margin:0 0 9px;font-size:13px;font-weight:800}
.reminder-time-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.reminder-time-chips label{position:relative;display:block!important;margin:0!important;cursor:pointer}
.reminder-time-chips input{position:absolute!important;opacity:0;pointer-events:none}
.reminder-time-chips span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:7px 5px;border:1px solid var(--d2k-line);border-radius:12px;background:var(--d2k-surface);font-size:12px;font-weight:850;text-align:center;color:var(--d2k-text)}
.reminder-time-chips input:checked+span{background:var(--d2k-lime);border-color:var(--d2k-lime);color:#0b2038}
.reminder-stop-copy{margin:12px 0 0!important}
.service-notification-row{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:flex-start;margin:9px 0 15px;padding-bottom:14px;border-bottom:1px solid var(--d2k-line)}
.service-notification-icon{display:flex!important;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:var(--d2k-lime);color:#0b2038;font-weight:950;line-height:1}
html[data-theme="dark"] .reminder-preset-card,html[data-theme="dark"] .custom-reminder-slots,html[data-theme="dark"] .reminder-time-chips span{background:var(--d2k-surface)!important;color:var(--d2k-text)!important;border-color:var(--d2k-line)!important}
html[data-theme="dark"] .reminder-preset-card:has(input:checked){border-color:var(--d2k-lime)!important;background:color-mix(in srgb,var(--d2k-lime) 10%,var(--d2k-surface))!important}
html[data-theme="dark"] .reminder-time-chips input:checked+span{background:var(--d2k-lime)!important;color:#0b2038!important;border-color:var(--d2k-lime)!important}
@media(max-width:390px){.reminder-presets{grid-template-columns:1fr}.reminder-time-chips{grid-template-columns:1fr 1fr}}

/* DAILY 2K V2.13.1 — browser auth + profile success contrast */
/* Browser welcome: pale signup button must use a dark foreground. */
#welcome #browser-signup-entry{color:#0b2038!important;text-shadow:none!important}
#welcome #browser-signup-entry span{color:#5f8d0d!important;text-shadow:none!important}
html[data-theme="dark"] #welcome .browser-access-status.ready{color:#c8f678!important;font-weight:800!important;text-shadow:none!important}
/* Profile photo success banner: the surface is pale, so keep its text dark in every theme. */
#profile-photo-status.form-status.success{color:#0b2038!important;background:#e8f2dc!important;border-color:#9dcc42!important;font-weight:800!important;text-shadow:none!important}
html[data-theme="dark"] #profile-photo-status.form-status.success{color:#0b2038!important;background:#e8f2dc!important;border-color:#9dcc42!important;text-shadow:none!important}

/* DAILY 2K V2.13.2 — mobile browser signup state contrast */
/* Browser auth/profile status banners: light surfaces always get dark, readable text. */
#browser-signup-status.form-status:not(.success):not(.error),
#browser-signup-otp-status.form-status:not(.success):not(.error),
#browser-login-status.form-status:not(.success):not(.error),
#browser-otp-status.form-status:not(.success):not(.error),
#account-form-status.form-status:not(.success):not(.error),
#profile-email-status.form-status:not(.success):not(.error),
#telegram-link-status.form-status:not(.success):not(.error){background:#fff4db!important;color:#24384c!important;border:1px solid #ead9aa!important;border-radius:14px!important;padding:14px 16px!important;font-weight:700!important;line-height:1.45!important;text-shadow:none!important}
#browser-signup-status.form-status.success,
#browser-signup-otp-status.form-status.success,
#browser-login-status.form-status.success,
#browser-otp-status.form-status.success,
#account-form-status.form-status.success,
#profile-email-status.form-status.success,
#telegram-link-status.form-status.success,
#profile-photo-status.form-status.success{background:#e8f2dc!important;color:#0b2038!important;border:1px solid #9dcc42!important;border-radius:14px!important;padding:14px 16px!important;font-weight:800!important;line-height:1.45!important;text-shadow:none!important}
#browser-signup-status.form-status.error,
#browser-signup-otp-status.form-status.error,
#browser-login-status.form-status.error,
#browser-otp-status.form-status.error,
#account-form-status.form-status.error,
#profile-email-status.form-status.error,
#telegram-link-status.form-status.error{background:#ffe7e4!important;color:#7a2420!important;border:1px solid #e7a9a2!important;border-radius:14px!important;padding:14px 16px!important;font-weight:700!important;line-height:1.45!important;text-shadow:none!important}
/* Disabled/loading CTAs stay clearly disabled without making their labels disappear. */
#browser-signup-form .button.primary:disabled,
#browser-signup-otp-form .button.primary:disabled,
#browser-login-form .button.primary:disabled,
#browser-otp-form .button.primary:disabled,
#account-form .button.primary:disabled{opacity:1!important;background:#17304a!important;color:#c9d4df!important;border-color:#17304a!important;box-shadow:none!important;cursor:not-allowed!important;text-shadow:none!important}
#browser-signup-form .button.primary:disabled span,
#browser-signup-otp-form .button.primary:disabled span,
#browser-login-form .button.primary:disabled span,
#browser-otp-form .button.primary:disabled span,
#account-form .button.primary:disabled span{color:#a8c76b!important;opacity:1!important;text-shadow:none!important}

/* DAILY 2K V2.14.1 — post-login guided signup */
/* Email → code → inside. Everything else belongs after authentication. */
.guided-signup-page{padding-bottom:max(28px,env(safe-area-inset-bottom))}
.signup-progress{display:grid;grid-template-columns:34px 1fr 34px;grid-template-rows:34px auto;align-items:center;gap:0 8px;margin:4px 0 24px;max-width:190px}
.signup-progress span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid #52667a;color:#9fb0c2;font-weight:900;background:#102235}
.signup-progress span.active,.signup-progress span.done{background:#b6ed49;color:#0b2038;border-color:#b6ed49}
.signup-progress i{height:2px;background:#42576b}.signup-progress i.done{background:#b6ed49}
.signup-progress small{font-size:11px;font-weight:800;color:#91a1b3;text-align:center;margin-top:6px}.signup-progress small:first-of-type{grid-column:1}.signup-progress small:last-of-type{grid-column:3}
.signup-existing-note{margin:18px 0 8px;padding:12px 14px;border:1px solid #33495e;border-radius:14px;color:#aebaca;font-size:13px;line-height:1.45}
.signup-existing-note strong{color:#eef4fa}
.guided-primary span{display:inline-block;animation:d2kGuideArrow 1.45s ease-in-out infinite}
@keyframes d2kGuideArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
.home-new-member-guide{position:relative;margin:0 0 20px;padding:20px;border:1px solid #3b5368;border-radius:22px;background:linear-gradient(145deg,#12283b,#0d2032);box-shadow:0 14px 34px rgba(0,0,0,.16)}
.home-new-member-guide h3{margin:6px 32px 8px 0;font-size:24px;color:#f5f8fb}.home-new-member-guide>p:not(.eyebrow){margin:0;color:#adbac9;line-height:1.55}
.home-guide-dismiss{position:absolute;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:#1a344a;color:#cdd8e3;font-size:22px}
.home-guide-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.home-guide-actions .button{margin:0;min-height:48px;padding:11px 12px;font-size:14px}
.account-setup-requirement{margin:0 0 18px;padding:14px 16px;border-radius:16px;background:#eef6db;color:#0b2038;border:1px solid #b6ed49;display:grid;gap:4px;line-height:1.4}
.account-setup-requirement strong{font-size:14px}.account-setup-requirement span{font-size:13px;color:#334659}
.form-section-label small{font-size:10px;letter-spacing:.08em;margin-left:6px;color:#9aae75}.goal-optional-note{margin-top:-4px;margin-bottom:10px}
.nav-profile.needs-attention .nav-icon{position:relative}.nav-profile.needs-attention .nav-icon:after{content:'';position:absolute;right:-5px;top:-4px;width:8px;height:8px;border-radius:50%;background:#b6ed49;box-shadow:0 0 0 0 rgba(182,237,73,.55);animation:d2kGuidePulse 1.8s infinite}
@keyframes d2kGuidePulse{0%{box-shadow:0 0 0 0 rgba(182,237,73,.55)}70%{box-shadow:0 0 0 8px rgba(182,237,73,0)}100%{box-shadow:0 0 0 0 rgba(182,237,73,0)}}
@media(max-width:360px){.home-guide-actions{grid-template-columns:1fr}}
html[data-theme="light"] .home-new-member-guide{background:#f7faef;border-color:#d5e6ad;box-shadow:0 12px 28px rgba(31,55,40,.10)}
html[data-theme="light"] .home-new-member-guide h3{color:#0b2038}html[data-theme="light"] .home-new-member-guide>p:not(.eyebrow){color:#56677a}html[data-theme="light"] .home-guide-dismiss{background:#e7efdc;color:#20364a}

/* DAILY 2K V2.14.2 — notification control clarity */
/* Make optional-vs-required notification behavior obvious instead of looking broken. */
.optional-control-pill,.required-control-pill{display:inline-flex;align-items:center;vertical-align:middle;margin-left:7px;padding:3px 7px;border-radius:999px;font-size:9px!important;line-height:1!important;font-style:normal;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.optional-control-pill{background:#20384b;color:#b9c7d5;border:1px solid #40596e}.required-control-pill{background:#dff4a9;color:#1b3310;border:1px solid #b6ed49}
.funding-reminder-toggle input:disabled{opacity:.42;cursor:not-allowed}.funding-reminder-toggle:has(input:disabled){opacity:.78}
.funding-reminder-link-button{width:100%;margin:12px 0 4px;border:1px solid #b6ed49;border-radius:14px;background:#142b3d;color:#eef5f9;padding:12px 14px;font:inherit;font-size:13px;font-weight:850;text-align:center;cursor:pointer}
.funding-reminder-link-button span{display:inline-block;margin-left:5px;color:#b6ed49}.funding-reminder-link-button[hidden]{display:none!important}
.required-service-row{position:relative}.required-service-row .service-notification-icon{flex:0 0 38px;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#dff4a9!important;color:#17320e!important;font-weight:1000;border:1px solid #b6ed49}
.required-service-row strong{display:flex;align-items:center;flex-wrap:wrap;gap:1px}.required-service-row small{display:block;margin-top:5px}
html[data-theme="light"] .optional-control-pill{background:#edf2f6;color:#506274;border-color:#cad5df}
html[data-theme="light"] .funding-reminder-link-button{background:#f8fbf1;color:#0b2038}
