*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--twm-bg);color:var(--twm-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit}.twm-header{background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid #e8edf4;z-index:100}.twm-header.is-sticky{position:sticky;top:0}.twm-header-inner{max-width:var(--twm-max);height:76px;margin:auto;padding:0 22px;display:flex;align-items:center;justify-content:space-between}.twm-brand{display:flex;align-items:center;gap:11px;text-decoration:none}.twm-logo-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,var(--twm-primary),#0b3f9d);color:#fff;display:grid;place-items:center;font-weight:900}.twm-brand strong{display:block;font-size:15px;line-height:1.1}.twm-brand small{display:block;color:var(--twm-muted);font-size:10px;margin-top:3px}.twm-header-profile{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:13px;font-weight:700}.twm-avatar{border-radius:50%;object-fit:cover}.twm-login-btn,.twm-primary-btn{background:var(--twm-primary);color:#fff;text-decoration:none;border-radius:12px;padding:11px 17px;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center}.twm-secondary-btn{padding:10px 16px;border:1px solid #dce3ec;border-radius:12px;text-decoration:none;background:#fff;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center}.twm-main{min-height:calc(100vh - 150px)}.twm-shell{max-width:var(--twm-max);margin:0 auto;padding:30px 22px}.twm-eyebrow{display:inline-block;color:var(--twm-primary);font-weight:900;font-size:11px;letter-spacing:.15em}.twm-page-title{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:5px 0 24px}.twm-page-title h1{margin:5px 0 0;font-size:clamp(28px,4vw,40px);line-height:1.08;letter-spacing:-.045em}.twm-page-title p{color:var(--twm-muted);margin:7px 0 0}.twm-profile-id,.twm-code-pill{padding:7px 11px;border-radius:10px;background:#eef4ff;color:#195cc9;border:1px solid #d9e7ff;font-size:12px;font-weight:800}.twm-footer{border-top:1px solid #e8edf4;background:#fff}.twm-footer-inner{max-width:var(--twm-max);margin:auto;padding:25px 22px;display:flex;justify-content:space-between;color:var(--twm-muted);font-size:12px}.twm-bottom-nav{display:none}
/* Public masterplan */
.twm-public-hero{background:linear-gradient(135deg,#071d42 0%,#0b3d83 55%,#071d42 100%);color:#fff}.twm-public-hero-inner{max-width:var(--twm-max);margin:auto;padding:clamp(38px,6vw,70px) 22px;display:flex;align-items:center;justify-content:space-between;gap:30px}.twm-public-hero .twm-eyebrow{color:#5edcff}.twm-public-hero h1{font-size:clamp(32px,5vw,58px);letter-spacing:-.05em;margin:9px 0}.twm-public-hero h1 i{font-style:normal;opacity:.45}.twm-public-hero p{margin:0;color:#c7d7ee;font-size:clamp(15px,2vw,19px)}.twm-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.twm-public-hero .twm-secondary-btn{background:transparent;border-color:#5876a2;color:#fff}.twm-masterplan-wrap{max-width:var(--twm-max);margin:auto;padding:clamp(28px,5vw,60px) 22px}.twm-masterplan-heading{text-align:center;max-width:760px;margin:0 auto 28px}.twm-masterplan-heading h1,.twm-masterplan-heading h2{font-size:clamp(27px,4vw,40px);letter-spacing:-.045em;margin:7px 0}.twm-masterplan-heading p{color:var(--twm-muted);margin:0}.twm-master-visual{display:grid;grid-template-columns:minmax(360px,.88fr) minmax(480px,1.12fr);gap:14px;border-radius:28px;overflow:hidden;background:#061b3c;box-shadow:0 25px 70px rgba(7,29,66,.18)}.twm-first-level-panel{padding:24px;min-height:720px;background:radial-gradient(circle at 20% 0%,rgba(74,192,255,.2),transparent 32%),linear-gradient(155deg,#eaf5ff 0%,#d7eaff 45%,#eef8ff 100%);position:relative;overflow:hidden}.twm-first-level-panel:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;border:1px solid rgba(20,92,180,.12);right:-180px;bottom:-170px}.twm-twm-brand{display:flex;align-items:center;gap:10px;color:#06275a}.twm-twm-brand>span:last-child{margin-left:auto;font-size:8px;font-weight:900;letter-spacing:.23em;white-space:nowrap}.twm-globe-logo{width:46px;height:46px;border-radius:50%;background:#082f76;color:#55dfff;display:grid;place-items:center;border:2px solid #55dfff}.twm-globe-logo svg,.twm-card-icon svg,.twm-action-icon svg,.twm-bottom-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.twm-twm-brand b{display:block;font-size:26px;line-height:1}.twm-twm-brand small{font-size:8px;letter-spacing:.2em}.twm-level-title{margin:24px auto 20px;max-width:390px;background:linear-gradient(145deg,#082b69,#0d438f);color:#fff;border-radius:24px;padding:18px 20px;text-align:center;font-size:clamp(19px,2.5vw,30px);font-weight:950;letter-spacing:-.03em;box-shadow:0 15px 30px rgba(7,47,116,.18)}.twm-you-node{width:110px;height:110px;border-radius:50%;background:linear-gradient(145deg,#0d4bb0,#0b2d68);border:6px solid #2184ff;color:#fff;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 10px 25px rgba(13,75,176,.22)}.twm-person-icon{font-size:32px;line-height:1}.twm-you-node b{background:#092d68;border-radius:20px;padding:3px 24px;font-size:12px;margin-top:3px}.twm-branch{height:58px;position:relative;margin:0 auto;width:78%;}.twm-branch:before{content:"";position:absolute;left:50%;top:0;bottom:28px;border-left:3px solid #123e77}.twm-branch:after{content:"";position:absolute;left:16.5%;right:16.5%;top:27px;border-top:3px solid #123e77}.twm-branch span{position:absolute;width:12px;height:12px;border-right:3px solid #123e77;border-bottom:3px solid #123e77;transform:rotate(45deg);top:23px}.twm-branch span:nth-child(1){left:15%;}.twm-branch span:nth-child(2){left:calc(50% - 6px)}.twm-branch span:nth-child(3){right:15%}.twm-three-members{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}.twm-member-circle{width:70px;height:70px;margin:auto;border-radius:50%;background:linear-gradient(145deg,#079447,#075f32);border:4px solid #25e88a;color:#fff;display:grid;place-items:center;font-size:24px}.twm-three-members strong{display:block;color:#071f43;margin-top:7px;font-size:16px}.twm-three-members small,.twm-reward-box small,.twm-invest-box small{font-size:.6em}.twm-reward-box{margin:22px auto 12px;max-width:430px;border-radius:18px;background:linear-gradient(145deg,#063b21,#08713e);border:4px solid #1bff8a;color:#fff;padding:13px 18px;text-align:center;box-shadow:0 10px 30px rgba(0,120,66,.18)}.twm-reward-box span{display:block;font-weight:900;font-size:14px;letter-spacing:.05em}.twm-reward-box strong{display:block;font-size:48px;line-height:1.05;color:#8bffbd;letter-spacing:-.04em}.twm-invest-box{display:flex;align-items:center;gap:14px;max-width:430px;margin:auto;border-radius:16px;background:#d6eaff;padding:14px 18px;color:#0a3470}.twm-coin{width:46px;height:46px;border-radius:50%;background:#083b8e;color:#fff;display:grid;place-items:center;font-size:26px}.twm-invest-box b{display:block;font-size:12px;letter-spacing:.04em}.twm-invest-box strong{display:block;font-size:28px;line-height:1.05}.twm-level-table-card{background:linear-gradient(160deg,#052252,#071b3b);padding:20px;display:flex;flex-direction:column;min-width:0}.twm-table-head,.twm-level-row{display:grid;grid-template-columns:.55fr 1.4fr 1.1fr;align-items:center;text-align:center}.twm-table-head{min-height:74px;background:#08285a;color:#fff;border-radius:18px 18px 0 0;font-weight:900;font-size:13px;letter-spacing:.03em}.twm-level-row{min-height:49px;font-size:16px;border-bottom:1px solid rgba(255,255,255,.5);color:#061b3c}.twm-level-row b{font-size:18px}.twm-level-row strong{font-size:16px}.twm-level-row.level-1{background:linear-gradient(90deg,#9cf76b,#d5f7bd)}.twm-level-row.level-2{background:linear-gradient(90deg,#71f28e,#bff3cf)}.twm-level-row.level-3{background:linear-gradient(90deg,#57e4d0,#bcefea)}.twm-level-row.level-4{background:linear-gradient(90deg,#5bc9ef,#bde5f7)}.twm-level-row.level-5{background:linear-gradient(90deg,#9db2ff,#d9e0ff)}.twm-level-row.level-6{background:linear-gradient(90deg,#cda6ff,#f2ccff)}.twm-level-row:last-child{border-radius:0 0 18px 18px}
/* App dashboard / cards */
.twm-dashboard-hero{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;background:linear-gradient(145deg,#071f49,#0a3d82);color:#fff;border-radius:24px;padding:22px;margin-bottom:15px;box-shadow:0 20px 50px rgba(5,33,77,.15)}.twm-dashboard-identity{display:flex;align-items:center;gap:14px}.twm-dashboard-identity b{font-size:18px}.twm-dashboard-identity small{display:block;color:#c9d8ed;margin-top:3px}.twm-dashboard-balance{text-align:right}.twm-dashboard-balance span{display:block;color:#b8cae4;font-size:12px}.twm-dashboard-balance strong{font-size:30px;letter-spacing:-.04em}.twm-dashboard-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.twm-stat-card,.twm-section-card,.twm-profile-hero,.twm-referral-card,.twm-team-panel,.twm-transaction-panel{background:#fff;border:1px solid #e4eaf2;border-radius:var(--twm-radius);box-shadow:0 8px 28px rgba(16,36,66,.045)}.twm-stat-card{padding:17px}.twm-stat-card span{display:block;color:var(--twm-muted);font-size:12px}.twm-stat-card strong{display:block;font-size:22px;margin-top:5px}.twm-stat-card small{display:block;color:var(--twm-muted);margin-top:3px;font-size:11px}.status-positive{color:#07966d!important}.status-warning{color:#d98a00!important}.status-danger{color:#d9344a!important}.twm-section-head{margin:28px 0 12px}.twm-section-head h2,.twm-section-card h2{font-size:19px;margin:0}.twm-action-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.twm-action-grid a{background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:17px;text-decoration:none;display:grid;grid-template-columns:42px 1fr;column-gap:11px;align-items:center}.twm-action-grid b{font-size:14px}.twm-action-grid small{grid-column:2;color:var(--twm-muted);font-size:11px}.twm-action-icon{width:42px;height:42px;border-radius:13px;background:#edf4ff;color:var(--twm-primary);display:grid;place-items:center;grid-row:span 2}.twm-transaction-panel{padding:15px;overflow:hidden}.twm-transaction-panel table,.twm-wallet-plugin table{width:100%;border-collapse:separate;border-spacing:0}.twm-transaction-panel td,.twm-transaction-panel th,.twm-wallet-plugin td,.twm-wallet-plugin th{padding:12px 10px;border-bottom:1px solid #edf1f5;text-align:left}.twm-transaction-panel th,.twm-wallet-plugin th{font-size:11px;color:var(--twm-muted);font-weight:800}.twm-transaction-panel td,.twm-wallet-plugin td{font-size:12px}.twm-profile-hero{padding:22px;background:linear-gradient(145deg,#071f49,#0a3e84);color:#fff;margin-bottom:15px}.twm-profile-identity{display:flex;align-items:center;gap:14px;margin-bottom:18px}.twm-profile-identity h2{margin:0;font-size:24px}.twm-profile-identity p{margin:4px 0 7px;color:#c8d7ec;font-size:13px}.twm-verified-badge{font-size:11px;color:#40efb1;border:1px solid rgba(64,239,177,.45);padding:4px 8px;border-radius:99px;vertical-align:middle}.twm-profile-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.twm-profile-stat-grid>div{border:1px solid rgba(255,255,255,.15);background:rgba(0,0,0,.08);border-radius:17px;padding:15px}.twm-profile-stat-grid span{display:block;color:#b6c9e2;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.twm-profile-stat-grid strong{display:block;font-size:21px;margin:6px 0 2px}.twm-profile-stat-grid small{display:block;color:#c5d3e6;font-size:11px}.twm-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.twm-section-card{padding:20px}.twm-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.twm-card-icon{width:38px;height:38px;border-radius:12px;background:#edf4ff;color:var(--twm-primary);display:grid;place-items:center}.twm-detail-list{margin:0}.twm-detail-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid #edf1f5}.twm-detail-list>div:last-child{border-bottom:0}.twm-detail-list dt{color:var(--twm-muted);font-size:12px}.twm-detail-list dd{margin:0;font-size:12px;font-weight:800;text-align:right;overflow-wrap:anywhere}.twm-profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.twm-danger-link{color:#c62845}.twm-muted{color:var(--twm-muted)}
/* Wallet */
.twm-wallet-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.twm-wallet-actions>a{background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:17px;text-decoration:none;display:grid;grid-template-columns:46px 1fr;grid-template-rows:auto auto;column-gap:12px}.twm-wallet-actions .twm-action-icon{grid-row:1/3;width:46px;height:46px}.twm-wallet-actions b{align-self:end}.twm-wallet-actions small{color:var(--twm-muted);font-size:11px}.twm-wallet-plugin{margin-top:15px}.twm-wallet-plugin>*,.twm-wallet-plugin .twm-section-card{max-width:100%}.twm-wallet-plugin form{max-width:100%}.twm-request-processing{padding:12px 14px;border-radius:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;margin:0 0 14px}
/* Team */
.twm-team-summary{margin-bottom:15px}.twm-referral-card{padding:20px;margin-bottom:15px;display:flex;align-items:center;justify-content:space-between;gap:20px}.twm-referral-card h2{margin:5px 0}.twm-referral-link-row{max-width:520px;width:100%;overflow:hidden}.twm-capacity-badge{background:#eef4ff;color:#1769ff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900}.twm-team-panel{padding:20px;margin-top:15px;overflow:hidden}.twm-team-panel table{width:100%;border-collapse:collapse}.twm-team-panel td,.twm-team-panel th{padding:12px 8px;border-bottom:1px solid #edf1f5;font-size:12px}.twm-team-panel th{color:var(--twm-muted);font-size:11px;text-align:left}
/* Auth */
.twm-auth-shell{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:45px 16px}.twm-auth-card{width:min(100%,540px);background:#fff;border:1px solid #e1e7ef;border-radius:24px;padding:clamp(22px,4vw,34px);box-shadow:0 25px 80px rgba(16,36,66,.08)}.twm-auth-brand{display:flex;align-items:center;gap:11px;margin-bottom:25px}.twm-auth-brand strong{display:block;font-size:15px}.twm-auth-brand small{display:block;color:var(--twm-muted);font-size:11px}.twm-auth-card h1{font-size:clamp(27px,5vw,34px);letter-spacing:-.04em;margin:0 0 4px}.twm-auth-sub{color:var(--twm-muted);margin:0 0 22px}.twm-auth-form{display:flex!important;flex-direction:column!important;gap:8px!important}.twm-auth-form label{font-size:12px;font-weight:800;margin-top:7px}.twm-auth-form input:not([type=checkbox]){width:100%!important;min-height:46px;padding:12px 13px;border:1px solid #dce3ec;border-radius:11px;background:#fff;color:var(--twm-text);outline:none}.twm-auth-form input:focus{border-color:var(--twm-primary);box-shadow:0 0 0 3px rgba(23,105,255,.1)}.twm-auth-submit{border:0;width:100%;cursor:pointer;margin-top:10px}.twm-auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px}.twm-auth-row a,.twm-auth-footer a{color:var(--twm-primary);font-weight:800;text-decoration:none}.twm-check{display:flex!important;align-items:center;gap:6px;font-weight:500!important}.twm-check input{width:auto!important}.twm-auth-footer{text-align:center;border-top:1px solid #edf0f3;margin-top:22px;padding-top:18px;font-size:12px;color:var(--twm-muted)}.twm-auth-error{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;padding:11px 13px;border-radius:11px;font-size:12px;margin-bottom:15px}.twm-auth-success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;padding:11px 13px;border-radius:11px;font-size:12px;margin-bottom:15px}.twm-password-wrap{position:relative;display:flex;align-items:center}.twm-password-wrap input{padding-right:48px!important}.twm-password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:38px;height:36px;border:0;background:transparent!important;color:var(--twm-muted);cursor:pointer;font-size:16px}.twm-referral-live{font-size:11px;margin-top:4px;color:var(--twm-muted)}.twm-referral-live.ok{color:#047857}.twm-referral-live.error{color:#be123c}.twm-referral-live.checking{color:#6b7280}
.twm-empty-state{text-align:center;padding:60px 20px;background:#fff;border:1px solid #e4eaf2;border-radius:var(--twm-radius)}.twm-error-code{font-size:72px;font-weight:950;letter-spacing:-.06em;color:var(--twm-primary)}
@media(max-width:900px){.twm-master-visual{grid-template-columns:1fr}.twm-first-level-panel{min-height:auto}.twm-dashboard-grid,.twm-profile-stat-grid{grid-template-columns:repeat(2,1fr)}.twm-action-grid{grid-template-columns:repeat(2,1fr)}.twm-wallet-actions{grid-template-columns:repeat(2,1fr)}.twm-wallet-actions>a:last-child{grid-column:1/-1}.twm-profile-grid{grid-template-columns:1fr}.twm-referral-card{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.twm-header-inner{height:68px;padding:0 16px}.twm-brand small,.twm-header-profile span{display:none}.twm-shell{padding:22px 16px}.twm-page-title{align-items:flex-start;flex-direction:column}.twm-page-title h1{font-size:30px}.twm-footer-inner{padding-bottom:92px;display:block}.twm-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(6,1fr);left:9px;right:9px;bottom:9px;min-height:64px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);border:1px solid #dfe6ef;border-radius:20px;z-index:200;box-shadow:0 15px 45px rgba(0,0,0,.14);padding-bottom:env(safe-area-inset-bottom)}.twm-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;font-size:9px;color:#66758b;font-weight:800}.twm-bottom-nav a[aria-current=page],.twm-bottom-nav a:hover{color:var(--twm-primary)}.twm-bottom-nav svg{width:21px;height:21px}.twm-public-hero-inner{display:block;padding:38px 16px}.twm-public-hero h1{font-size:clamp(30px,9vw,45px)}.twm-public-hero .twm-hero-actions{margin-top:22px}.twm-masterplan-wrap{padding:28px 12px}.twm-master-visual{border-radius:22px}.twm-first-level-panel{padding:18px 14px}.twm-twm-brand>span:last-child{display:none}.twm-level-title{font-size:21px;margin-top:18px}.twm-table-head,.twm-level-row{grid-template-columns:.5fr 1.3fr 1fr}.twm-table-head{font-size:9px}.twm-level-row{min-height:43px;font-size:12px}.twm-level-row strong{font-size:12px}.twm-dashboard-hero{grid-template-columns:1fr}.twm-dashboard-balance{text-align:left}.twm-dashboard-balance strong{font-size:28px}.twm-profile-identity h2{font-size:20px}.twm-profile-stat-grid{gap:8px}.twm-profile-stat-grid>div{padding:12px}.twm-profile-stat-grid strong{font-size:17px}.twm-wallet-actions{grid-template-columns:1fr 1fr}.twm-wallet-actions>a:last-child{grid-column:auto}.twm-wallet-actions>a{padding:14px 12px;grid-template-columns:38px 1fr}.twm-wallet-actions .twm-action-icon{width:38px;height:38px}.twm-transaction-panel,.twm-wallet-plugin{overflow-x:hidden}.twm-transaction-panel table,.twm-wallet-plugin table{display:block}.twm-transaction-panel thead,.twm-wallet-plugin thead{display:none}.twm-transaction-panel tbody,.twm-wallet-plugin tbody{display:grid;gap:8px}.twm-transaction-panel tr,.twm-wallet-plugin tr{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#f8fafc;border:1px solid #e7edf4;border-radius:14px;padding:10px}.twm-transaction-panel td,.twm-wallet-plugin td{border:0;padding:4px;font-size:11px}.twm-transaction-panel td:nth-child(2),.twm-wallet-plugin td:nth-child(2){text-align:right}.twm-auth-shell{padding-top:25px;padding-bottom:35px}.twm-auth-card{border-radius:20px}}
@media(max-width:430px){.twm-dashboard-grid,.twm-profile-stat-grid{grid-template-columns:1fr 1fr}.twm-action-grid{gap:8px}.twm-action-grid a{padding:13px;grid-template-columns:36px 1fr}.twm-action-icon{width:36px;height:36px}.twm-three-members strong{font-size:14px}.twm-member-circle{width:60px;height:60px}.twm-reward-box strong{font-size:40px}.twm-invest-box strong{font-size:24px}.twm-table-head{min-height:62px}.twm-level-row{min-height:39px}}

.twm-password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}.twm-password-toggle:hover{color:var(--twm-primary)}.twm-password-toggle.is-visible{color:var(--twm-primary)}

/* TWM Premium 2.2.0 refinement layer */
.twm-user-avatar{display:inline-flex;width:var(--avatar-size,42px);height:var(--avatar-size,42px);flex:0 0 auto;border-radius:50%;overflow:hidden;background:#edf4ff;border:2px solid rgba(255,255,255,.9);box-shadow:0 5px 16px rgba(8,45,100,.12)}
.twm-user-avatar .twm-avatar{width:100%;height:100%;display:block}
.twm-theme-toggle{width:38px;height:38px;border:1px solid #dbe4ef;border-radius:12px;background:#fff;color:#233b5d;display:inline-grid;place-items:center;cursor:pointer;font-size:17px;margin-right:9px}.twm-theme-toggle .twm-theme-moon{display:none}.twm-header-right{display:flex;align-items:center}
.twm-title-icon{display:inline-grid;vertical-align:middle;margin-right:8px;color:#62e8ff}.twm-title-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.twm-invitee-label{display:flex;justify-content:center;align-items:center;gap:6px;margin:-7px auto 0;color:#0a397c;font-size:10px;font-weight:950;letter-spacing:.18em}.twm-invitee-label svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.twm-you-node .twm-person-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.twm-you-node small{font-size:8px;letter-spacing:.13em;color:#b8d6ff;margin-top:2px}.twm-member-circle svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.twm-invest-box-featured{max-width:500px;margin:25px auto 0;padding:17px 20px;box-shadow:0 10px 25px rgba(10,62,132,.08)}.twm-invest-box-featured em{display:block;font-style:normal;color:#547095;font-size:10px;margin-top:3px}.twm-invest-box-featured .twm-coin svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.twm-team-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:15px}.premium-team-summary>div{background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:17px;box-shadow:0 8px 28px rgba(16,36,66,.045)}.premium-team-summary span{display:block;color:var(--twm-muted);font-size:11px}.premium-team-summary strong{display:block;font-size:22px;margin-top:5px}.premium-team-summary small{display:block;color:var(--twm-muted);font-size:10px;margin-top:3px}.twm-capacity-badge.is-full{background:#fff1f2;color:#be123c}.twm-direct-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.twm-member-card{border:1px solid #e3eaf3;background:#fbfdff;border-radius:17px;padding:15px}.twm-member-card-top{display:flex;align-items:center;gap:10px}.twm-member-card-top>div{min-width:0;flex:1}.twm-member-card-top strong,.twm-member-card-top span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.twm-member-card-top span{font-size:10px;color:var(--twm-muted);margin-top:2px}.twm-status-pill{display:inline-flex;align-items:center;gap:3px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}.twm-status-pill.verified{background:#e8fbf3;color:#07865f}.twm-status-pill.pending{background:#fff6db;color:#a66a00}.twm-member-meta{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding-top:10px;border-top:1px solid #e9eef4;color:var(--twm-muted);font-size:10px;overflow-wrap:anywhere}.twm-member-card.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:118px;text-align:center;color:var(--twm-muted)}.twm-slot-plus{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#edf4ff;color:var(--twm-primary);font-size:24px;font-weight:500;margin-bottom:7px}.twm-member-card.empty strong{color:var(--twm-text);font-size:13px}.twm-member-card.empty span{font-size:10px;margin-top:2px}.twm-level-network{display:grid;gap:8px}.twm-network-level{border:1px solid #e5ebf2;border-radius:15px;overflow:hidden;background:#fff}.twm-network-level summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:12px;padding:13px 14px}.twm-network-level summary::-webkit-details-marker{display:none}.twm-network-level summary .level-number{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#edf4ff;color:var(--twm-primary);font-weight:950}.twm-network-level summary strong{display:block;font-size:13px}.twm-network-level summary small{display:block;color:var(--twm-muted);font-size:10px;margin-top:2px}.twm-network-level summary>b{font-size:12px;color:#087e5b}.twm-network-members{border-top:1px solid #e8edf3;padding:8px 12px;background:#fafcff}.twm-network-member{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 3px;border-bottom:1px solid #edf1f5}.twm-network-member:last-child{border-bottom:0}.twm-network-member>div{display:flex;align-items:center;gap:8px;min-width:0}.twm-network-member strong,.twm-network-member small{display:block}.twm-network-member strong{font-size:11px}.twm-network-member small{font-size:9px;color:var(--twm-muted)}.twm-empty-team-level{padding:14px;color:var(--twm-muted);font-size:11px}.twm-wallet-support{margin:-5px 0 15px;padding:10px 13px;border-radius:11px;background:#f5f9ff;border:1px solid #dbe9ff;color:#5d718c;font-size:11px}.twm-wallet-plugin .twm-request-card>small{display:none}.twm-activity-panel{background:#fff;border:1px solid #e4eaf2;border-radius:var(--twm-radius);box-shadow:0 8px 28px rgba(16,36,66,.045);padding:16px;overflow:hidden}.twm-activity-panel .twm-wallet-box{border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important;padding:0!important}.twm-activity-panel .twm-wallet-box h2{font-size:16px}.twm-activity-panel .twm-wallet-box+.twm-wallet-box{border-top:1px solid #e8edf3!important;margin-top:14px!important;padding-top:14px!important}.twm-section-head p{margin:4px 0 0;font-size:11px}
.twm-reward-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.twm-reward-overview>div{background:#fff;border:1px solid #e4eaf2;border-radius:18px;padding:17px}.twm-reward-overview span,.twm-reward-overview small{display:block;color:var(--twm-muted);font-size:11px}.twm-reward-overview strong{display:block;font-size:22px;margin:4px 0}.twm-rewards-premium{padding:20px}.twm-reward-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.twm-reward-card{border:1px solid #e4eaf2;border-radius:16px;padding:14px;background:#fff}.twm-reward-card-head{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center}.twm-reward-card-head strong{display:block;font-size:13px}.twm-reward-card-head small{display:block;color:var(--twm-muted);font-size:10px;margin-top:2px}.twm-reward-card-head>b{font-size:12px}.twm-reward-level-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-size:15px;font-weight:950}.twm-reward-card.qualified{border-color:#a7ebd2;background:linear-gradient(180deg,#f5fffb,#fff)}.twm-reward-card.qualified .twm-reward-level-icon{background:#dff8ed;color:#07865f}.twm-reward-card.progress{border-color:#f3dfaa}.twm-reward-card.progress .twm-reward-level-icon{background:#fff5d6;color:#a66a00}.twm-reward-card.planned{border-color:#e2e6ec;background:#f8fafc}.twm-reward-card.planned .twm-reward-level-icon{background:#edf0f4;color:#718096}.twm-reward-progress{height:7px;background:#e9eef4;border-radius:999px;overflow:hidden;margin:12px 0 8px}.twm-reward-progress i{display:block;height:100%;background:linear-gradient(90deg,var(--twm-primary),var(--twm-accent));border-radius:inherit}.twm-reward-card.qualified .twm-reward-progress i{background:#17b978}.twm-reward-card.planned .twm-reward-progress i{background:#cbd5e1}.twm-reward-status{display:flex;justify-content:space-between;align-items:center;font-size:10px}.twm-reward-status span{font-weight:800}.twm-reward-card.qualified .twm-reward-status{color:#07865f}.twm-reward-card.progress .twm-reward-status{color:#a66a00}.twm-reward-card.planned .twm-reward-status{color:#718096}
.twm-wallet-address-form{display:flex;flex-direction:column;gap:8px}.twm-wallet-address-form label{font-size:11px;font-weight:800;color:var(--twm-text)}.twm-wallet-address-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dce3ec;border-radius:11px;background:#fff;color:var(--twm-text);margin-top:4px}.twm-wallet-address-form .twm-primary-btn{border:0;cursor:pointer;margin-top:5px}.twm-dashboard-avatar .twm-user-avatar{border-color:rgba(255,255,255,.7)}
/* Status treatment for combined activity and wallet tables */
.twm-activity-panel tr.is-approved td:last-child,.twm-activity-panel tr.is-completed td:last-child{color:#07865f;font-weight:900}.twm-activity-panel tr.is-pending td:last-child,.twm-activity-panel tr.is-processing td:last-child{color:#a66a00;font-weight:900}.twm-activity-panel tr.is-rejected td:last-child{color:#be123c;font-weight:900}.twm-request-processing{background:#fff6db;border-color:#f3dfaa;color:#9a6500}
/* Dark mode */
html[data-theme="dark"]{--twm-bg:#07111f;--twm-surface:#0e1c2e;--twm-text:#e7eef8;--twm-muted:#93a6bd}html[data-theme="dark"] body{background:#07111f;color:#e7eef8}html[data-theme="dark"] .twm-header{background:rgba(7,17,31,.92);border-color:#1d3048}html[data-theme="dark"] .twm-footer{background:#0b1727;border-color:#1d3048}html[data-theme="dark"] .twm-theme-toggle{background:#122238;border-color:#2a405c;color:#ffe58a}html[data-theme="dark"] .twm-theme-toggle .twm-theme-sun{display:none}html[data-theme="dark"] .twm-theme-toggle .twm-theme-moon{display:inline}html[data-theme="dark"] .twm-secondary-btn,html[data-theme="dark"] .twm-stat-card,html[data-theme="dark"] .twm-section-card,html[data-theme="dark"] .twm-profile-hero,html[data-theme="dark"] .twm-referral-card,html[data-theme="dark"] .twm-team-panel,html[data-theme="dark"] .twm-transaction-panel,html[data-theme="dark"] .twm-action-grid a,html[data-theme="dark"] .twm-wallet-actions>a,html[data-theme="dark"] .twm-auth-card,html[data-theme="dark"] .twm-empty-state,html[data-theme="dark"] .twm-activity-panel,html[data-theme="dark"] .twm-reward-overview>div,html[data-theme="dark"] .twm-reward-card,html[data-theme="dark"] .premium-team-summary>div{background:#0e1c2e;border-color:#243a55;color:#e7eef8}html[data-theme="dark"] .twm-auth-form input:not([type=checkbox]),html[data-theme="dark"] .twm-wallet-address-form input{background:#0a1625;border-color:#2a405c;color:#e7eef8}html[data-theme="dark"] .twm-profile-id,html[data-theme="dark"] .twm-code-pill,html[data-theme="dark"] .twm-capacity-badge,html[data-theme="dark"] .twm-card-icon,html[data-theme="dark"] .twm-slot-plus{background:#122943;border-color:#294463;color:#7db0ff}html[data-theme="dark"] .twm-detail-list>div,html[data-theme="dark"] .twm-member-meta,html[data-theme="dark"] .twm-network-member,html[data-theme="dark"] .twm-activity-panel .twm-wallet-box+.twm-wallet-box{border-color:#23374e}html[data-theme="dark"] .twm-member-card,html[data-theme="dark"] .twm-network-level,html[data-theme="dark"] .twm-network-members{background:#0b1727;border-color:#263c57}html[data-theme="dark"] .twm-wallet-support{background:#0d2139;border-color:#264666;color:#9db2cb}html[data-theme="dark"] .twm-auth-error{background:#3a1420;border-color:#6d2438;color:#ffb3c1}html[data-theme="dark"] .twm-auth-success{background:#0c3027;border-color:#1f735c;color:#8df0ce}html[data-theme="dark"] .twm-public-hero{background:linear-gradient(135deg,#030b17,#092653,#030b17)}html[data-theme="dark"] .twm-first-level-panel{background:radial-gradient(circle at 20% 0%,rgba(74,192,255,.13),transparent 32%),linear-gradient(155deg,#0d2138,#0c1d31 45%,#10283f)}html[data-theme="dark"] .twm-twm-brand,html[data-theme="dark"] .twm-three-members strong,html[data-theme="dark"] .twm-invitee-label{color:#e4efff}html[data-theme="dark"] .twm-invest-box-featured{background:#102d4a;color:#dcecff}html[data-theme="dark"] .twm-invest-box-featured em{color:#91a9c3}html[data-theme="dark"] .twm-level-table-card{background:#030d1d}html[data-theme="dark"] .twm-table-head{background:#0b2b59}html[data-theme="dark"] .twm-level-row{color:#071a31}html[data-theme="dark"] .twm-bottom-nav{background:rgba(10,24,40,.96);border-color:#29415d}html[data-theme="dark"] .twm-bottom-nav a{color:#9eb0c5}html[data-theme="dark"] .twm-bottom-nav a[aria-current=page],html[data-theme="dark"] .twm-bottom-nav a:hover{color:#65a3ff}
@media(max-width:900px){.twm-team-summary{grid-template-columns:repeat(2,1fr)}.twm-direct-grid{grid-template-columns:1fr}.twm-reward-grid{grid-template-columns:1fr}}
@media(max-width:700px){.twm-theme-toggle{width:34px;height:34px;margin-right:6px}.twm-bottom-nav{grid-template-columns:repeat(4,1fr);min-height:72px;left:12px;right:12px;bottom:10px;border-radius:22px;padding-top:5px}.twm-bottom-nav a{font-size:10px;gap:3px}.twm-bottom-nav svg{width:24px;height:24px}.twm-team-summary{grid-template-columns:1fr 1fr}.twm-reward-overview{grid-template-columns:1fr}.twm-network-level summary{grid-template-columns:34px 1fr auto}.twm-wallet-support{margin-top:-1px}.twm-first-level-panel{padding-bottom:24px}}
@media(max-width:430px){.twm-team-summary{gap:8px}.premium-team-summary>div{padding:13px}.premium-team-summary strong{font-size:18px}.twm-reward-card-head{grid-template-columns:32px 1fr auto}.twm-reward-card-head>b{font-size:10px}.twm-masterplan-heading p{font-size:12px}.twm-invest-box-featured{padding:14px}.twm-invest-box-featured strong{font-size:23px}}

/* ===== TWM 2.3.0 responsive + status hardening ===== */
.twm-profile-password-form{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:end}.twm-profile-password-form label{display:block;font-size:11px;font-weight:800;margin-bottom:5px}.twm-profile-password-form .twm-primary-btn{min-height:46px;border:0;cursor:pointer}.twm-profile-settings .twm-profile-actions{margin-top:12px}.twm-wallet-balance-wrap .twm-wallet-actions{display:none!important}.twm-wallet-support{display:block;margin:8px 0 18px!important;line-height:1.55}.twm-wallet-plugin{scroll-margin-top:90px}
/* Status pills stay readable in both themes, including markup supplied by wallet plugins. */
.twm-status-approved,.twm-status-completed,.twm-status-available,.twm-status-verified{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;padding:5px 9px!important;border-radius:999px!important;font-weight:900!important;background:#dcfce7!important;color:#15803d!important;border:1px solid #bbf7d0!important;white-space:nowrap}.twm-status-pending,.twm-status-processing,.twm-status-hold{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;padding:5px 9px!important;border-radius:999px!important;font-weight:900!important;background:#fef3c7!important;color:#a16207!important;border:1px solid #fde68a!important;white-space:nowrap}.twm-status-rejected,.twm-status-failed{display:inline-flex!important;align-items:center;justify-content:center;gap:4px;padding:5px 9px!important;border-radius:999px!important;font-weight:900!important;background:#fee2e2!important;color:#b91c1c!important;border:1px solid #fecaca!important;white-space:nowrap}.twm-activity-panel .is-approved,.twm-activity-panel .is-completed{color:#15803d}.twm-activity-panel .is-pending,.twm-activity-panel .is-processing{color:#a16207}.twm-activity-panel .is-rejected{color:#b91c1c}
html[data-theme="dark"] .twm-status-approved,html[data-theme="dark"] .twm-status-completed,html[data-theme="dark"] .twm-status-available,html[data-theme="dark"] .twm-status-verified{background:#123326!important;color:#69e6a8!important;border-color:#235c43!important}html[data-theme="dark"] .twm-status-pending,html[data-theme="dark"] .twm-status-processing,html[data-theme="dark"] .twm-status-hold{background:#3a2b0b!important;color:#ffd66b!important;border-color:#69500e!important}html[data-theme="dark"] .twm-status-rejected,html[data-theme="dark"] .twm-status-failed{background:#3a151a!important;color:#ff9da8!important;border-color:#6d2833!important}
html[data-theme="dark"] .twm-wallet-plugin tr{background:#0b1727;border-color:#263c57}html[data-theme="dark"] .twm-wallet-plugin td,html[data-theme="dark"] .twm-wallet-plugin th,html[data-theme="dark"] .twm-transaction-panel td,html[data-theme="dark"] .twm-transaction-panel th{border-color:#263c57;color:#e7eef8}html[data-theme="dark"] .twm-wallet-plugin input,html[data-theme="dark"] .twm-wallet-plugin select,html[data-theme="dark"] .twm-wallet-plugin textarea{background:#0a1625!important;color:#e7eef8!important;border-color:#2a405c!important}html[data-theme="dark"] .twm-profile-password-form input{background:#0a1625;border-color:#2a405c;color:#e7eef8}
@media(max-width:900px){.twm-profile-password-form{grid-template-columns:1fr}.twm-profile-password-form .twm-primary-btn{width:100%}}
@media(max-width:700px){.twm-bottom-nav{grid-template-columns:repeat(4,1fr)!important;min-height:70px!important}.twm-bottom-nav a{font-size:10px!important}.twm-bottom-nav svg{width:23px!important;height:23px!important}.twm-header-profile{width:38px;height:38px;justify-content:center}.twm-header-profile .twm-user-avatar{display:flex}.twm-page-title h1{font-size:clamp(27px,8vw,34px)}.twm-profile-hero{padding:17px}.twm-profile-identity{gap:10px}.twm-profile-identity .twm-user-avatar{--avatar-size:60px!important}.twm-profile-identity h2{font-size:18px}.twm-profile-stat-grid strong{font-size:16px}.twm-wallet-plugin{margin-top:12px}.twm-wallet-support{font-size:11px;padding:10px 12px!important}.twm-action-grid a{min-width:0}.twm-masterplan-heading h1,.twm-masterplan-heading h2{font-size:clamp(25px,7vw,34px)}}
@media(max-width:430px){.twm-profile-stat-grid{grid-template-columns:1fr 1fr}.twm-profile-stat-grid>div{min-width:0}.twm-profile-stat-grid span{font-size:9px}.twm-profile-stat-grid strong{font-size:15px;overflow-wrap:anywhere}.twm-profile-stat-grid small{font-size:9px}.twm-bottom-nav{left:10px;right:10px;bottom:8px}.twm-bottom-nav a{gap:2px}.twm-bottom-nav svg{width:22px!important;height:22px!important}}

.twm-profile-settings-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.twm-profile-settings-actions .twm-primary-btn,.twm-profile-settings-actions .twm-secondary-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.twm-danger-link{color:#b42318}.dark-mode .twm-danger-link{color:#ff8a80}@media(max-width:640px){.twm-profile-settings-actions{flex-direction:column;align-items:stretch}.twm-profile-settings-actions>*{width:100%;box-sizing:border-box}}


/* ===== TWM 2.3.2 wallet + password hardening ===== */
.twm-password-toggle{z-index:3;appearance:none;-webkit-appearance:none;display:grid;place-items:center;padding:0!important;line-height:1}.twm-password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.twm-password-toggle:focus-visible{outline:2px solid var(--twm-primary);outline-offset:2px;border-radius:8px}
.twm-wallet-plugin label,.twm-wallet-plugin legend{color:var(--twm-text)!important;font-weight:700}.twm-wallet-plugin p,.twm-wallet-plugin .description,.twm-wallet-plugin small{color:var(--twm-muted)}
.twm-wallet-plugin input:not([type="checkbox"]):not([type="radio"]),.twm-wallet-plugin select,.twm-wallet-plugin textarea{width:100%;max-width:100%;min-height:46px;padding:11px 13px;border:1px solid #dce3ec;border-radius:11px;background:#fff;color:var(--twm-text);outline:none;box-shadow:none}.twm-wallet-plugin textarea{min-height:110px;resize:vertical}.twm-wallet-plugin input:focus,.twm-wallet-plugin select:focus,.twm-wallet-plugin textarea:focus{border-color:var(--twm-primary);box-shadow:0 0 0 3px rgba(23,105,255,.10)}.twm-wallet-plugin input[type="checkbox"],.twm-wallet-plugin input[type="radio"]{accent-color:var(--twm-primary)}
.twm-wallet-plugin button,.twm-wallet-plugin input[type="submit"],.twm-wallet-plugin input[type="button"]{min-height:44px;border:0;border-radius:11px;background:var(--twm-primary);color:#fff;font-weight:800;cursor:pointer;padding:10px 16px}.twm-wallet-plugin button:hover,.twm-wallet-plugin input[type="submit"]:hover{filter:brightness(.96)}
.twm-wallet-plugin form{color:var(--twm-text)}.twm-wallet-plugin fieldset{border-color:#dce3ec}.twm-wallet-plugin hr{border-color:#e5ebf2}.twm-wallet-plugin ::placeholder{color:#8b9aaf;opacity:1}
html[data-theme="dark"] .twm-wallet-plugin label,html[data-theme="dark"] .twm-wallet-plugin legend,html[data-theme="dark"] .twm-wallet-plugin form{color:#e7eef8!important}html[data-theme="dark"] .twm-wallet-plugin input:not([type="checkbox"]):not([type="radio"]),html[data-theme="dark"] .twm-wallet-plugin select,html[data-theme="dark"] .twm-wallet-plugin textarea{background:#091625!important;color:#e7eef8!important;border-color:#304761!important;caret-color:#fff!important}html[data-theme="dark"] .twm-wallet-plugin input:focus,html[data-theme="dark"] .twm-wallet-plugin select:focus,html[data-theme="dark"] .twm-wallet-plugin textarea:focus{border-color:#4e91ff!important;box-shadow:0 0 0 3px rgba(78,145,255,.16)!important}html[data-theme="dark"] .twm-wallet-plugin ::placeholder{color:#8095ad!important}html[data-theme="dark"] .twm-wallet-plugin fieldset{border-color:#304761!important}html[data-theme="dark"] .twm-wallet-plugin hr{border-color:#263d57!important}html[data-theme="dark"] .twm-wallet-plugin button,html[data-theme="dark"] .twm-wallet-plugin input[type="submit"],html[data-theme="dark"] .twm-wallet-plugin input[type="button"]{background:#1769ff;color:#fff}html[data-theme="dark"] .twm-wallet-plugin .twm-request-card,html[data-theme="dark"] .twm-wallet-plugin .twm-wallet-box,html[data-theme="dark"] .twm-wallet-plugin .twm-form-card,html[data-theme="dark"] .twm-wallet-plugin .twm-card,html[data-theme="dark"] .twm-wallet-plugin .twm-form-wrap{background:#0e1c2e!important;color:#e7eef8!important;border-color:#263f5a!important}html[data-theme="dark"] .twm-wallet-plugin .twm-request-card p,html[data-theme="dark"] .twm-wallet-plugin .twm-wallet-box p,html[data-theme="dark"] .twm-wallet-plugin .twm-form-card p{color:#93a6bd!important}
/* Rewards page: only levels 1–3 are exposed to members. */
.twm-reward-card:nth-child(n+4){display:none!important}
/* ===== TWM 2.3.3 referral + avatar library ===== */
.twm-library-avatar{display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;flex:0 0 var(--avatar-size,42px);background:#eef3f9}.twm-library-avatar svg{width:100%;height:100%;display:block}.twm-avatar-settings{margin-top:16px}.twm-avatar-picker{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.twm-avatar-options{display:flex;gap:10px;flex-wrap:wrap}.twm-avatar-option{position:relative;cursor:pointer}.twm-avatar-option input{position:absolute;opacity:0;pointer-events:none}.twm-avatar-option span{display:grid;width:58px;height:58px;border-radius:50%;padding:2px;border:2px solid transparent;transition:.18s}.twm-avatar-option span svg{width:100%;height:100%}.twm-avatar-option:hover span{transform:translateY(-2px)}.twm-avatar-option.is-selected span{border-color:var(--twm-primary);box-shadow:0 0 0 3px rgba(37,99,235,.13)}.twm-referral-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.twm-referral-link-design{margin-top:18px;display:grid;gap:12px}.twm-referral-code-box{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid #dfe7f1;border-radius:16px;background:#f8fafc}.twm-referral-code-box span{font-size:11px;font-weight:800;text-transform:uppercase;color:var(--twm-muted);letter-spacing:.05em}.twm-referral-code-box strong{font-size:18px;letter-spacing:.04em}.twm-copy-ref,.twm-share-ref{border:0;border-radius:11px;background:var(--twm-primary);color:#fff;font-weight:800;padding:10px 14px;cursor:pointer}.twm-share-ref{justify-self:start}.twm-referral-plugin-output{padding:12px 14px;border:1px solid #dfe7f1;border-radius:16px;background:var(--twm-surface);overflow:hidden}.twm-referral-plugin-output input,.twm-referral-plugin-output textarea,.twm-referral-plugin-output .twm-referral-link,.twm-referral-plugin-output code{max-width:100%;overflow-wrap:anywhere}.twm-referral-feedback{min-height:18px;font-size:12px;font-weight:800;color:#15803d}.twm-avatar-settings .twm-secondary-btn{min-height:42px}@media(max-width:600px){.twm-referral-code-box{grid-template-columns:1fr}.twm-copy-ref,.twm-share-ref{width:100%}.twm-avatar-picker{align-items:stretch;flex-direction:column}.twm-avatar-picker .twm-secondary-btn{width:100%}}
html[data-theme="dark"] .twm-referral-code-box,html[data-theme="dark"] .twm-referral-plugin-output{background:#0e1c2e;border-color:#263f5a;color:#e7eef8}html[data-theme="dark"] .twm-avatar-option.is-selected span{box-shadow:0 0 0 3px rgba(101,163,255,.2)}
/* Masterplan is a reusable component: same visual/data source on homepage and Rewards. */
.twm-rewards-masterplan{margin-top:22px}.twm-rewards-masterplan .twm-masterplan-heading{text-align:left;margin-bottom:14px}.twm-rewards-masterplan .twm-masterplan-heading h2{font-size:clamp(24px,4vw,34px);margin:5px 0}.twm-rewards-masterplan .twm-masterplan-heading p{max-width:680px}

/* TWM 2.3.4 — Invite & Earn equal action buttons */
.twm-invite-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.twm-invite-action{appearance:none;border:1px solid rgba(37,99,235,.16);background:linear-gradient(180deg,rgba(37,99,235,.10),rgba(37,99,235,.04));color:var(--twm-text);border-radius:16px;min-height:92px;padding:14px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease}
.twm-invite-action:hover{transform:translateY(-2px);border-color:var(--twm-primary);box-shadow:0 8px 22px rgba(37,99,235,.12)}
.twm-invite-action:active{transform:translateY(0)}
.twm-invite-icon{width:32px;height:32px;border-radius:10px;background:var(--twm-primary);color:#fff;display:grid;place-items:center}
.twm-invite-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.twm-invite-action strong{font-size:14px;line-height:1.2}
.twm-invite-action small{font-size:11px;color:var(--twm-muted);line-height:1.2}
.twm-referral-preview{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;padding:14px 16px;border:1px solid rgba(100,116,139,.14);border-radius:14px;background:rgba(100,116,139,.045)}
.twm-referral-preview span{font-size:11px;color:var(--twm-muted);text-transform:uppercase;letter-spacing:.06em}
.twm-referral-preview strong{font-size:18px}
.twm-referral-preview .twm-referral-url{grid-column:1/-1;font-size:12px;overflow-wrap:anywhere}
.twm-avatar-settings,.twm-avatar-picker,.twm-avatar-options{display:none!important}
@media(max-width:640px){.twm-invite-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.twm-invite-action{min-height:86px;padding:10px 6px;border-radius:13px}.twm-invite-action strong{font-size:12px}.twm-invite-action small{display:none}.twm-invite-icon{width:28px;height:28px}.twm-referral-preview{grid-template-columns:1fr}.twm-referral-preview .twm-referral-url{grid-column:auto}}
[data-theme="dark"] .twm-invite-action{background:rgba(37,99,235,.16);border-color:rgba(147,197,253,.18);color:#f8fafc}
[data-theme="dark"] .twm-referral-preview{background:rgba(15,23,42,.45);border-color:rgba(148,163,184,.2)}


/* TWM 2.3.5 — responsive polish: clean invite actions, compact mobile masterplan, reliable icons */
.twm-invite-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
.twm-invite-action{width:100%!important;min-width:0!important;height:96px!important;min-height:96px!important;max-height:110px!important;box-sizing:border-box!important;overflow:hidden!important}
.twm-invite-action .twm-invite-icon{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important}
.twm-invite-action .twm-invite-icon svg{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;max-height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;overflow:visible!important}
.twm-invite-action strong{display:block!important;font-size:13px!important;white-space:normal!important;line-height:1.2!important}
.twm-invite-action small{display:block!important;font-size:10px!important;white-space:nowrap!important;line-height:1.15!important}
.twm-master-visual{min-width:0}
.twm-first-level-panel,.twm-level-table-card{min-width:0}
.twm-table-head span{line-height:1.2}
@media(max-width:700px){
  .twm-masterplan-wrap{padding:22px 10px!important}
  .twm-masterplan-heading{margin-bottom:16px!important;padding:0 6px}
  .twm-masterplan-heading h2{font-size:25px!important;line-height:1.12!important}
  .twm-masterplan-heading p{font-size:12px!important;line-height:1.45!important}
  .twm-master-visual{gap:8px!important;border-radius:18px!important}
  .twm-first-level-panel{padding:14px 12px!important}
  .twm-twm-brand{gap:7px!important}
  .twm-globe-logo{width:38px!important;height:38px!important}
  .twm-twm-brand b{font-size:21px!important}
  .twm-twm-brand small{font-size:7px!important}
  .twm-level-title{margin:13px auto 12px!important;padding:12px 10px!important;border-radius:17px!important;font-size:17px!important;line-height:1.18!important}
  .twm-title-icon{margin-right:4px!important}
  .twm-title-icon svg{width:18px!important;height:18px!important}
  .twm-you-node{width:82px!important;height:82px!important;border-width:4px!important}
  .twm-you-node .twm-person-icon svg{width:27px!important;height:27px!important}
  .twm-you-node b{padding:2px 18px!important;font-size:10px!important}
  .twm-you-node small{font-size:7px!important}
  .twm-invitee-label{margin:-2px auto 0!important;font-size:8px!important;letter-spacing:.13em!important}
  .twm-invitee-label svg{width:13px!important;height:13px!important}
  .twm-branch{height:39px!important;width:74%!important}
  .twm-branch:before{bottom:18px!important;border-width:2px!important}
  .twm-branch:after{top:20px!important;border-width:2px!important}
  .twm-branch span{width:9px!important;height:9px!important;border-width:2px!important;top:16px!important}
  .twm-three-members{gap:5px!important}
  .twm-member-circle{width:54px!important;height:54px!important;border-width:3px!important}
  .twm-member-circle svg{width:24px!important;height:24px!important}
  .twm-three-members strong{font-size:12px!important;margin-top:4px!important}
  .twm-invest-box-featured{margin:13px auto 0!important;padding:11px 12px!important;border-radius:13px!important;gap:9px!important}
  .twm-invest-box-featured .twm-coin{width:38px!important;height:38px!important;font-size:18px!important}
  .twm-invest-box-featured strong{font-size:22px!important}
  .twm-invest-box-featured b{font-size:10px!important}
  .twm-invest-box-featured em{font-size:8px!important}
  .twm-level-table-card{padding:10px!important}
  .twm-table-head{min-height:50px!important;border-radius:13px 13px 0 0!important;font-size:8px!important}
  .twm-level-row{min-height:38px!important;font-size:11px!important}
  .twm-level-row b,.twm-level-row strong{font-size:11px!important}
  .twm-level-row:last-child{border-radius:0 0 13px 13px!important}
  .twm-invite-actions{gap:7px!important}
  .twm-invite-action{height:78px!important;min-height:78px!important;max-height:82px!important;padding:7px 4px!important;border-radius:12px!important}
  .twm-invite-action .twm-invite-icon{width:27px!important;height:27px!important;min-width:27px!important;flex-basis:27px!important;border-radius:8px!important}
  .twm-invite-action .twm-invite-icon svg{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important}
  .twm-invite-action strong{font-size:10px!important}
  .twm-invite-action small{display:none!important}
  .twm-referral-preview{padding:11px 12px!important}
  .twm-referral-preview strong{font-size:16px!important}
  .twm-referral-preview .twm-referral-url{font-size:10px!important;line-height:1.35!important}
}
@media(max-width:390px){
  .twm-invite-actions{gap:5px!important}
  .twm-invite-action{height:74px!important;min-height:74px!important;padding:6px 2px!important}
  .twm-invite-action strong{font-size:9px!important}
  .twm-first-level-panel{padding-left:10px!important;padding-right:10px!important}
  .twm-table-head{font-size:7px!important}
}

/* Monthly Referral Reward plan - added beneath the existing Masterplan on Rewards page */
.twm-monthly-plan{margin-top:22px}
.twm-monthly-intro{margin:7px 0 0;color:#64748b;font-size:14px;line-height:1.55}
.twm-monthly-how{margin:0 0 16px;padding:16px 18px;border:1px solid #d7e7f8;border-radius:14px;background:linear-gradient(110deg,#f3f8ff,#f8fbff);color:#17365d}
.twm-monthly-how-title{display:inline-block;margin-bottom:7px;padding:7px 13px;border-radius:9px;background:#0c2d50;color:#fff;font-weight:800;font-size:12px;letter-spacing:.04em}
.twm-monthly-how p{margin:0;line-height:1.6;font-size:14px}
.twm-monthly-table-wrap{width:100%;overflow-x:auto;border-radius:14px;border:1px solid #d9e5f3}
.twm-monthly-table{width:100%;min-width:620px;border-collapse:separate;border-spacing:2px;background:#f5f9ff;font-size:15px;text-align:center}
.twm-monthly-table th,.twm-monthly-table td{padding:11px 9px;background:#edf5fd;color:#12345b;font-weight:700}
.twm-monthly-table thead th{background:#b9dcfb;color:#10345d;font-size:13px;line-height:1.3}
.twm-monthly-table thead th:first-child{background:#0c4268;color:#fff;border-radius:9px 0 0 9px}
.twm-monthly-table thead th:nth-child(3){background:#10a957;color:#fff}
.twm-monthly-table thead th:nth-child(4){background:#b8ddff;color:#123f86}
.twm-monthly-table thead th:last-child{background:#8746e8;color:#fff;border-radius:0 9px 9px 0}
.twm-monthly-table thead small{display:block;font-size:11px;font-weight:500;margin-top:3px}
.twm-monthly-table tbody tr:nth-child(even) td,.twm-monthly-table tbody tr:nth-child(even) th{background:#e5f5f7}
.twm-monthly-table tbody tr:nth-child(3n) td,.twm-monthly-table tbody tr:nth-child(3n) th{background:#fff0e5}
.twm-monthly-table .twm-monthly-amount{background:#eee4ff!important;color:#5720bd;font-size:20px;font-weight:850;white-space:nowrap}
.twm-series-number{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;border-radius:50%;background:#139bdc;color:white;font-size:18px;box-shadow:inset 0 -3px 0 #0002}
.twm-series-number.s2{background:#00a6a6}.twm-series-number.s3{background:#f47b08}.twm-series-number.s4{background:#8544e8}.twm-series-number.s5{background:#e63b59}.twm-series-number.s6{background:#174a73}
.twm-monthly-note{display:flex;gap:14px;align-items:center;margin-top:14px;padding:13px 16px;border-radius:12px;background:#e5f1ff;color:#153b70;font-size:13px;line-height:1.5}
.twm-monthly-note strong{font-weight:800}.twm-monthly-note span{border-left:1px solid #9ebce0;padding-left:14px}
@media(max-width:700px){.twm-monthly-plan{margin-top:16px}.twm-monthly-how{padding:12px}.twm-monthly-how p{font-size:12px}.twm-monthly-table{min-width:570px;font-size:13px}.twm-monthly-table th,.twm-monthly-table td{padding:9px 6px}.twm-monthly-table .twm-monthly-amount{font-size:17px}.twm-monthly-note{display:block;font-size:12px}.twm-monthly-note span{display:block;border-left:0;border-top:1px solid #9ebce0;margin-top:8px;padding:8px 0 0}}

/* TWM Rewards page — colorful coded Monthly Reward Plan (no image) */
.twm-monthly-plan{margin-top:24px!important;padding:22px!important;border:1px solid #d8e7f8!important;border-radius:20px!important;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;box-shadow:0 8px 26px rgba(20,65,120,.08)!important;overflow:hidden}
.twm-monthly-plan .twm-card-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:18px!important;padding:16px 18px!important;border-radius:15px!important;background:linear-gradient(105deg,#082747,#0d4778)!important;color:#fff!important}
.twm-monthly-plan .twm-card-heading .twm-eyebrow{display:block!important;color:#8ccaff!important;font-size:11px!important;font-weight:900!important;letter-spacing:.14em!important;margin-bottom:5px!important}
.twm-monthly-plan .twm-card-heading h2{margin:0!important;color:#fff!important;font-size:24px!important;font-weight:850!important;line-height:1.2!important}
.twm-monthly-plan .twm-monthly-intro{margin:8px 0 0!important;color:#e0edff!important;font-size:14px!important;line-height:1.55!important}
.twm-monthly-plan .twm-card-icon{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;height:44px!important;border-radius:13px!important;background:rgba(255,255,255,.13)!important;color:#fff!important}
.twm-monthly-plan .twm-monthly-how{margin:0 0 18px!important;padding:18px!important;border:1px solid #d4e7fc!important;border-radius:15px!important;background:linear-gradient(110deg,#eff7ff,#f7fbff)!important;color:#14345d!important}
.twm-monthly-plan .twm-monthly-how-title{display:inline-block!important;margin:0 0 10px!important;padding:8px 14px!important;border-radius:9px!important;background:#10385f!important;color:#fff!important;font-size:13px!important;font-weight:900!important;letter-spacing:.05em!important}
.twm-monthly-plan .twm-monthly-how p{margin:0!important;color:#17385f!important;font-size:14px!important;line-height:1.7!important}
.twm-monthly-plan .twm-monthly-how strong{color:#08783b!important;font-weight:900!important}
.twm-monthly-plan .twm-monthly-table-wrap{width:100%!important;overflow-x:auto!important;border:0!important;border-radius:14px!important;background:#fff!important;box-shadow:0 3px 14px rgba(21,60,110,.08)!important}
.twm-monthly-plan table.twm-monthly-table{width:100%!important;min-width:600px!important;margin:0!important;border:0!important;border-collapse:separate!important;border-spacing:3px!important;table-layout:auto!important;background:#edf5ff!important;text-align:center!important;font-size:15px!important}
.twm-monthly-plan .twm-monthly-table th,.twm-monthly-plan .twm-monthly-table td{padding:12px 10px!important;border:0!important;color:#112f59!important;text-align:center!important;vertical-align:middle!important;font-weight:750!important;line-height:1.3!important;background:#edf5ff!important}
.twm-monthly-plan .twm-monthly-table thead th{background:#b9dcfb!important;color:#123d70!important;font-size:14px!important;font-weight:900!important}
.twm-monthly-plan .twm-monthly-table thead th:first-child{background:linear-gradient(135deg,#10466f,#0b2e51)!important;color:#fff!important;border-radius:10px 0 0 10px!important}
.twm-monthly-plan .twm-monthly-table thead th:nth-child(3){background:linear-gradient(135deg,#13b65d,#078743)!important;color:#fff!important}
.twm-monthly-plan .twm-monthly-table thead th:nth-child(4){background:linear-gradient(135deg,#bfe4ff,#8cc9ff)!important;color:#12448a!important}
.twm-monthly-plan .twm-monthly-table thead th:last-child{background:linear-gradient(135deg,#9b5af5,#7135d5)!important;color:#fff!important;border-radius:0 10px 10px 0!important}
.twm-monthly-plan .twm-monthly-table thead small{display:block!important;margin-top:4px!important;color:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1.3!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(1) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(1) th{background:#eaf5ff!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(2) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(2) th{background:#e5f8f6!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(3) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(3) th{background:#fff1e5!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(4) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(4) th{background:#f0eaff!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(5) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(5) th{background:#ffedf2!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(6) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(6) th{background:#e6eef8!important}
.twm-monthly-plan .twm-monthly-table tbody td:nth-child(3){color:#087a35!important;font-weight:900!important}
.twm-monthly-plan .twm-monthly-table tbody td:nth-child(4){color:#164b91!important;font-weight:900!important}
.twm-monthly-plan .twm-monthly-table .twm-monthly-amount{background:#eee4ff!important;color:#5b21c6!important;font-size:21px!important;font-weight:950!important;white-space:nowrap!important}
.twm-monthly-plan .twm-series-number{display:inline-flex!important;width:36px!important;height:36px!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:linear-gradient(145deg,#23b7ed,#087bd2)!important;color:#fff!important;font-size:18px!important;font-weight:900!important;box-shadow:inset 0 -3px 0 rgba(0,0,0,.13)!important}
.twm-monthly-plan .twm-series-number.s2{background:linear-gradient(145deg,#18c7b3,#008e9b)!important}.twm-monthly-plan .twm-series-number.s3{background:linear-gradient(145deg,#ffad24,#ed6b00)!important}.twm-monthly-plan .twm-series-number.s4{background:linear-gradient(145deg,#a46aff,#6523d7)!important}.twm-monthly-plan .twm-series-number.s5{background:linear-gradient(145deg,#ff6382,#dc1746)!important}.twm-monthly-plan .twm-series-number.s6{background:linear-gradient(145deg,#245a86,#082e52)!important}
.twm-monthly-plan .twm-monthly-note{display:flex!important;gap:14px!important;align-items:center!important;margin-top:16px!important;padding:15px 17px!important;border:1px solid #d8e9ff!important;border-radius:13px!important;background:linear-gradient(100deg,#e5f1ff,#f0f7ff)!important;color:#173f77!important;font-size:13px!important;line-height:1.55!important}
.twm-monthly-plan .twm-monthly-note strong{color:#123e79!important;font-weight:900!important}.twm-monthly-plan .twm-monthly-note span{border-left:1px solid #a7c5e8!important;padding-left:14px!important;color:#315d93!important}
@media(max-width:700px){.twm-monthly-plan{padding:13px!important;border-radius:16px!important}.twm-monthly-plan .twm-card-heading{padding:13px!important;align-items:flex-start!important}.twm-monthly-plan .twm-card-heading h2{font-size:20px!important}.twm-monthly-plan .twm-monthly-intro{font-size:12px!important}.twm-monthly-plan .twm-monthly-how{padding:12px!important}.twm-monthly-plan .twm-monthly-how p{font-size:12px!important}.twm-monthly-plan table.twm-monthly-table{min-width:570px!important;font-size:13px!important}.twm-monthly-plan .twm-monthly-table th,.twm-monthly-plan .twm-monthly-table td{padding:9px 6px!important}.twm-monthly-plan .twm-monthly-table .twm-monthly-amount{font-size:17px!important}.twm-monthly-plan .twm-monthly-note{display:block!important;font-size:12px!important}.twm-monthly-plan .twm-monthly-note span{display:block!important;border-left:0!important;border-top:1px solid #a7c5e8!important;margin-top:8px!important;padding:8px 0 0!important}}

/* v2.3.5.3 hotfix: force colorful monthly plan styling on Rewards page */
.twm-monthly-plan{display:block!important;margin-top:24px!important;padding:22px!important;border:1px solid #d8e7f8!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#f6faff)!important;box-shadow:0 8px 26px rgba(20,65,120,.08)!important;overflow:hidden!important;color:#102b50!important}
.twm-monthly-plan .twm-card-heading{background:linear-gradient(105deg,#082747,#0d4778)!important;color:#fff!important;border-radius:15px!important;padding:16px 18px!important}
.twm-monthly-plan .twm-card-heading h2,.twm-monthly-plan .twm-card-heading .twm-eyebrow,.twm-monthly-plan .twm-card-heading p{color:#fff!important}
.twm-monthly-plan .twm-monthly-how{background:linear-gradient(120deg,#e9f6ff,#f7fbff)!important;border:1px solid #cfe4fa!important;border-radius:15px!important;padding:16px!important;margin:0 0 18px!important}
.twm-monthly-plan .twm-monthly-how-title{display:block!important;color:#0b3a69!important;font-weight:900!important;margin-bottom:8px!important}
.twm-monthly-plan .twm-monthly-table-wrap{width:100%!important;overflow-x:auto!important}
.twm-monthly-plan table.twm-monthly-table{width:100%!important;min-width:570px!important;border-collapse:separate!important;border-spacing:3px!important;background:transparent!important}
.twm-monthly-plan .twm-monthly-table th,.twm-monthly-plan .twm-monthly-table td{padding:12px 10px!important;text-align:center!important;vertical-align:middle!important;border:0!important;border-radius:8px!important;font-weight:800!important;color:#112f59!important}
.twm-monthly-plan .twm-monthly-table thead th{background:#b9dcfb!important;color:#123d70!important}
.twm-monthly-plan .twm-monthly-table thead th:first-child{background:#10466f!important;color:#fff!important}
.twm-monthly-plan .twm-monthly-table thead th:nth-child(3){background:#0a9b4b!important;color:#fff!important}
.twm-monthly-plan .twm-monthly-table thead th:nth-child(4){background:#a9d7ff!important;color:#12448a!important}
.twm-monthly-plan .twm-monthly-table thead th:last-child{background:#813ee4!important;color:#fff!important}
.twm-monthly-plan .twm-monthly-table thead small{display:block!important;font-size:11px!important;color:inherit!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(1) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(1) th{background:#eaf5ff!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(2) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(2) th{background:#e5f8f6!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(3) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(3) th{background:#fff1e5!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(4) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(4) th{background:#f0eaff!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(5) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(5) th{background:#ffedf2!important}
.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(6) td,.twm-monthly-plan .twm-monthly-table tbody tr:nth-child(6) th{background:#e6eef8!important}
.twm-monthly-plan .twm-monthly-table tbody td:nth-child(3){color:#087a35!important}
.twm-monthly-plan .twm-monthly-table tbody td:nth-child(4){color:#164b91!important}
.twm-monthly-plan .twm-monthly-table .twm-monthly-amount{background:#eee4ff!important;color:#5b21c6!important;font-size:21px!important;font-weight:950!important}
.twm-monthly-plan .twm-series-number{display:inline-flex!important;width:36px!important;height:36px!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:linear-gradient(145deg,#23b7ed,#087bd2)!important;color:#fff!important}
.twm-monthly-plan .twm-series-number.s2{background:linear-gradient(145deg,#18c7b3,#008e9b)!important}.twm-monthly-plan .twm-series-number.s3{background:linear-gradient(145deg,#ffad24,#ed6b00)!important}.twm-monthly-plan .twm-series-number.s4{background:linear-gradient(145deg,#a46aff,#6523d7)!important}.twm-monthly-plan .twm-series-number.s5{background:linear-gradient(145deg,#ff6382,#dc1746)!important}.twm-monthly-plan .twm-series-number.s6{background:linear-gradient(145deg,#245a86,#082e52)!important}
.twm-monthly-plan .twm-monthly-note{display:flex!important;gap:14px!important;align-items:center!important;margin-top:16px!important;padding:15px 17px!important;border-radius:13px!important;background:linear-gradient(100deg,#e5f1ff,#f0f7ff)!important;color:#173f77!important}
@media(max-width:700px){.twm-monthly-plan{padding:13px!important}.twm-monthly-plan .twm-card-heading h2{font-size:20px!important}.twm-monthly-plan table.twm-monthly-table{min-width:570px!important}.twm-monthly-plan .twm-monthly-table th,.twm-monthly-plan .twm-monthly-table td{padding:9px 6px!important}.twm-monthly-plan .twm-monthly-note{display:block!important}}
