*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f6f7f9;color:#18202b}.container{width:min(1180px,92%);margin:auto}.topbar{background:#070b13;color:#f4d36c;font-size:13px}.topbar-inner{height:38px;display:flex;justify-content:space-between;align-items:center}.topbar-inner div{display:flex;gap:20px}.navbar{background:#fff;position:sticky;top:0;z-index:30;box-shadow:0 8px 30px rgba(0,0,0,.06)}.nav-inner{height:88px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#111;font-weight:800}.brand img{width:58px;height:58px;object-fit:contain}.brand span{font-family:"Playfair Display";font-size:22px}.nav-inner nav{display:flex;align-items:center;gap:26px}.nav-inner nav a{text-decoration:none;color:#18202b;font-weight:700;font-size:14px}.btn{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f4d36c,#b98619);color:#14110a!important;padding:14px 22px;border-radius:12px;font-weight:800;text-decoration:none;box-shadow:0 10px 24px rgba(185,134,25,.28);border:0;cursor:pointer}.btn.dark{background:#111827;color:#fff!important}.btn.outline{background:transparent;border:1px solid rgba(244,211,108,.45);color:#f6df96!important}.btn.small{padding:11px 17px}.hero{background:radial-gradient(circle at 75% 35%,#26364f 0,#0b1220 48%,#05080e 100%);color:#fff;padding:86px 0 76px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:50px;align-items:center}.badge{display:inline-flex;padding:9px 14px;border:1px solid rgba(244,211,108,.45);border-radius:999px;color:#f4d36c;background:rgba(212,175,55,.08);font-weight:700}.hero h1{font-size:58px;line-height:1.04;margin:24px 0 20px;letter-spacing:-2px}.gold{color:#f4d36c}.hero p{font-size:18px;line-height:1.75;color:#cdd5e1;max-width:690px}.hero-actions{display:flex;gap:14px;margin-top:30px}.network-card{position:relative;background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.03));border:1px solid rgba(244,211,108,.28);border-radius:28px;padding:28px;min-height:430px;box-shadow:0 30px 70px rgba(0,0,0,.4)}.network-logo{width:150px;height:150px;object-fit:contain;display:block;margin:0 auto 20px;filter:drop-shadow(0 12px 24px rgba(212,175,55,.25))}.tree{display:flex;flex-direction:column;align-items:center;gap:22px}.node{background:#fff;color:#111;border:2px solid #d4af37;border-radius:14px;padding:12px 18px;font-weight:800;min-width:110px;text-align:center}.tree-row{display:flex;gap:75px;position:relative}.tree-row:before{content:"";position:absolute;left:20%;right:20%;top:-12px;border-top:2px solid rgba(244,211,108,.5)}.float-pill{position:absolute;background:#fff;color:#121722;border-radius:12px;padding:10px 13px;font-weight:800;font-size:12px;box-shadow:0 10px 25px rgba(0,0,0,.25)}.p1{top:24px;right:-20px}.p2{bottom:30px;left:-20px}.section{padding:78px 0}.section.dark{background:#0b1220;color:#fff}.section-title{text-align:center;max-width:760px;margin:0 auto 44px}.section-title h2{font-size:40px;margin:0 0 14px}.section-title p{color:#687384;line-height:1.7}.dark .section-title p{color:#b8c1cf}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border-radius:20px;padding:26px;box-shadow:0 12px 36px rgba(15,23,42,.08);border:1px solid #ece7dc}.dark .card{background:#111a2a;border-color:#29364a;color:#fff}.icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#fff4ce;color:#9f7314;font-size:23px}.stats{margin-top:-32px;position:relative;z-index:2}.stats-grid{background:#fff;border-radius:20px;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 18px 50px rgba(15,23,42,.12);overflow:hidden}.stat{padding:24px;text-align:center;border-right:1px solid #eee}.stat:last-child{border-right:0}.stat strong{display:block;font-size:30px;color:#a77a17}.price-card{position:relative}.price{font-size:42px;font-weight:900;color:#ad7e17}.list{padding:0;list-style:none}.list li{padding:8px 0;border-bottom:1px dashed #e2e2e2}.faq details{background:#fff;border-radius:14px;padding:18px 20px;margin:10px 0;box-shadow:0 7px 22px rgba(0,0,0,.05)}.faq summary{font-weight:800;cursor:pointer}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.form-card{background:#fff;padding:28px;border-radius:20px;box-shadow:0 15px 40px rgba(0,0,0,.07)}input,select,textarea{width:100%;padding:13px 14px;border:1px solid #dfe3ea;border-radius:10px;font:inherit;margin:6px 0 14px;background:#fff}label{font-weight:700;font-size:14px}footer{background:#05080e;color:#cbd3df;padding:55px 0 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer-grid a{display:block;color:#cbd3df;text-decoration:none;margin:10px 0}.footer-logo{width:80px}.copyright{text-align:center;border-top:1px solid #1e2735;margin-top:35px;padding:20px}.menu-toggle{display:none;background:none;border:0;font-size:26px}.auth-wrap{min-height:100vh;background:radial-gradient(circle at top,#202f46,#070b13 60%);display:grid;place-items:center;padding:40px}.auth-card{width:min(460px,100%);background:#fff;border-radius:24px;padding:32px;box-shadow:0 30px 80px rgba(0,0,0,.35)}.auth-logo{width:110px;display:block;margin:auto}.dashboard{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:#080d16;color:#dbe2ee;padding:24px}.sidebar img{width:105px;display:block;margin:auto}.sidebar a{display:block;color:#dbe2ee;text-decoration:none;padding:12px;border-radius:10px;margin:4px 0}.sidebar a:hover{background:#182338;color:#f4d36c}.main{padding:30px}.dash-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.metric{background:#fff;border-radius:16px;padding:20px;box-shadow:0 7px 24px rgba(15,23,42,.07)}.metric b{display:block;font-size:26px;margin-top:8px;color:#a77915}.table-wrap{overflow:auto;background:#fff;border-radius:16px;padding:16px;margin-top:22px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #edf0f4;text-align:left;font-size:14px}.notice{padding:12px 14px;border-radius:10px;margin:12px 0}.notice.ok{background:#dcfce7;color:#166534}.notice.err{background:#fee2e2;color:#991b1b}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.gold-panel{background:linear-gradient(140deg,#fff9df,#fff);border:1px solid #ead89d}
@media(max-width:900px){.hero-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}.hero h1{font-size:42px}.cards{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.nav-inner nav{display:none;position:absolute;top:88px;left:0;right:0;background:#fff;padding:20px;flex-direction:column;align-items:stretch}.menu-open .nav-inner nav{display:flex}.menu-toggle{display:block}.topbar-inner{font-size:11px}.topbar-inner div span:last-child{display:none}.dashboard{grid-template-columns:1fr}.sidebar{position:relative}.dash-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.hero{padding-top:58px}.hero h1{font-size:36px}.hero-actions{flex-direction:column}.network-card{min-height:390px}.stats-grid,.dash-grid{grid-template-columns:1fr}.topbar-inner>span{display:none}.topbar-inner{justify-content:flex-end}.brand span{font-size:18px}.section-title h2{font-size:32px}.main{padding:18px}}

/* ===== My Own Empire Portal UI Upgrade ===== */
:root{--navy:#080d16;--navy2:#111827;--gold:#d5a62b;--gold2:#f4d36c;--paper:#f4f6f9;--line:#e5e7eb;--muted:#6b7280;--danger:#b42318}
.portal-body{background:var(--paper);color:#101828}.portal-dashboard{grid-template-columns:270px minmax(0,1fr)}.portal-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#070b12,#0b1220);padding:22px 18px;display:flex;flex-direction:column;z-index:40}.side-brand{display:flex;align-items:center;gap:12px;padding:2px 8px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.side-brand img{width:54px;height:54px;margin:0;object-fit:contain}.side-brand strong{display:block;color:#fff;font-size:15px}.side-brand span{display:block;color:#d8b655;font-size:11px;margin-top:3px;text-transform:uppercase;letter-spacing:.9px}.side-nav{padding-top:18px;flex:1}.side-nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;margin:4px 0;border:1px solid transparent}.side-nav a:hover,.side-nav a.active{background:linear-gradient(90deg,rgba(213,166,43,.16),rgba(213,166,43,.04));border-color:rgba(213,166,43,.22);color:#f7d875}.nav-ico{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.06);font-weight:900}.side-member{display:flex;gap:10px;align-items:center;padding:13px;border-radius:14px;background:rgba(255,255,255,.055);color:#fff}.side-member .avatar{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--gold2),#9b6c08);color:#1a1405;display:grid;place-items:center;font-weight:900}.side-member b,.side-member small{display:block}.side-member small{font-size:11px;color:#98a2b3;margin-top:2px}.portal-main{min-width:0;padding:34px 38px 50px}.portal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.portal-header h1{margin:4px 0 8px;font-size:32px;letter-spacing:-.8px}.portal-header p{margin:0;color:#667085}.eyebrow{font-size:11px;font-weight:900;letter-spacing:1.6px;color:#a77915}.status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;margin-left:6px;background:#eef2f6;color:#344054}.status-pill.active{background:#dcfae6;color:#067647}.status-pill.inactive{background:#fff4d6;color:#8a6100}.status-pill.blocked{background:#fee4e2;color:#b42318}.premium-metrics .metric{position:relative;border:1px solid #ebe5d7;padding:22px 20px 20px;min-height:132px;overflow:hidden}.premium-metrics .metric:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-35px;bottom:-35px;background:rgba(213,166,43,.08)}.metric-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff5d8;color:#8a6204;font-weight:900;margin-bottom:13px}.metric small{display:block;color:#667085;font-size:13px}.metric em{display:block;color:#98a2b3;font-style:normal;font-size:11px;margin-top:5px}.quick-section{margin-top:26px;background:#fff;border:1px solid #eceff3;border-radius:22px;padding:24px;box-shadow:0 12px 35px rgba(16,24,40,.05)}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:18px}.section-head span{color:#a77915;font-size:10px;letter-spacing:1.4px;font-weight:900}.section-head h2{margin:4px 0 0;font-size:21px}.section-head p{margin:0;color:#98a2b3;font-size:13px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick-card{min-width:0;display:grid;grid-template-columns:50px minmax(0,1fr) 28px;align-items:center;gap:13px;padding:17px;border:1px solid #ebe7dc;border-radius:16px;text-decoration:none;color:#101828;background:linear-gradient(145deg,#fff,#fffcf5);transition:.2s ease;box-shadow:0 5px 14px rgba(16,24,40,.03)}.quick-card:hover{transform:translateY(-3px);border-color:#d8b657;box-shadow:0 12px 25px rgba(122,88,8,.1)}.quick-icon{width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,#fff3c4,#e2b844);display:grid;place-items:center;color:#3f2e04;font-size:20px;font-weight:900}.quick-card h3{margin:0 0 5px;font-size:15px}.quick-card p{margin:0;color:#667085;font-size:12px;line-height:1.45}.quick-arrow{color:#ad7d10;font-size:20px;text-align:center}.premium-table{padding:0;box-shadow:0 10px 32px rgba(16,24,40,.05);border:1px solid #e9edf2}.premium-table .table th{background:#101828;color:#fff;font-size:11px;text-transform:uppercase;letter-spacing:.6px;white-space:nowrap}.premium-table .table td{vertical-align:middle}.subline{display:block;color:#98a2b3;margin-top:4px;font-size:11px}.credit{color:#067647;font-weight:800}.debit{color:#b42318;font-weight:800}.empty-state{padding:34px;text-align:center;color:#667085}.one-metric{grid-template-columns:minmax(240px,360px)}.tree-panel{overflow:auto;background:linear-gradient(160deg,#0b1220,#111b2e);border-radius:22px;padding:38px;min-height:390px;border:1px solid #29354a}.premium-tree{min-width:620px}.tree-node{width:210px;min-height:94px;background:#fff;border:1px solid #dec366;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:13px;box-shadow:0 14px 30px rgba(0,0,0,.18)}.tree-node span{font-size:10px;color:#9c740f;font-weight:900;letter-spacing:1.2px}.tree-node b{margin:5px 0;font-size:14px}.tree-node small{color:#667085}.tree-node.empty{opacity:.72;border-style:dashed}.tree-connect{height:30px;width:2px;background:#c9a23d}.premium-tree .tree-row{width:520px;justify-content:space-between;gap:20px}.premium-tree .tree-row:before{left:105px;right:105px;border-top-color:#c9a23d}.package-premium{display:grid;grid-template-columns:1.5fr .7fr;gap:30px;background:linear-gradient(135deg,#111827,#070b12);color:#fff;padding:34px;border-radius:24px;border:1px solid #3b3118;box-shadow:0 25px 60px rgba(0,0,0,.16)}.package-tag{font-size:10px;font-weight:900;letter-spacing:1.5px;color:#f1cf69}.package-premium h2{font-size:27px}.package-premium p,.package-premium li{color:#cbd5e1}.package-premium li{padding:6px 0}.package-action{display:flex;align-items:center;justify-content:center}.premium-form{max-width:700px;border:1px solid #e8e2d1}.admin-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:16px}.search-box{display:flex;gap:9px;flex:1;max-width:650px}.search-box input{margin:0}.row-actions{display:flex;flex-wrap:wrap;gap:6px}.row-actions form{margin:0}.mini-btn{border:0;padding:7px 9px;border-radius:8px;background:#eef2f6;color:#344054;text-decoration:none;font-size:11px;font-weight:800;cursor:pointer}.mini-btn.edit{background:#fff3d2;color:#79570b}.mini-btn.add{background:#e8f2ff;color:#175cd3}.mini-btn.danger{background:#fee4e2;color:#b42318}.admin-member-form{max-width:none;padding:0;overflow:hidden;border:1px solid #e4e7ec}.form-section{display:grid;grid-template-columns:250px 1fr;gap:34px;padding:28px;border-bottom:1px solid #eaecf0}.form-section h3{margin:0 0 6px}.form-section p{margin:0;color:#667085;font-size:13px;line-height:1.5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}.form-grid label{display:block}.form-grid label small{font-weight:400;color:#667085}.span-2{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 28px;background:#fafafa}.delete-card{max-width:620px;background:#fff;border:1px solid #f0d1ce;border-radius:22px;padding:34px;text-align:center;box-shadow:0 18px 45px rgba(16,24,40,.08)}.danger-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#fee4e2;color:#b42318;font-size:25px;font-weight:900;margin:0 auto 15px}.delete-card p{color:#667085;line-height:1.65}.delete-card form{display:flex;justify-content:center;gap:10px}.danger-btn{background:#b42318!important;color:#fff!important}.mobile-bottom-nav,.admin-mobile-nav{display:none}
@media(max-width:1100px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){body.portal-body{padding-bottom:76px}.portal-dashboard{display:block}.portal-sidebar{display:none}.portal-main{padding:22px 18px 34px}.mobile-bottom-nav,.admin-mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:10px;height:62px;background:rgba(8,13,22,.97);border:1px solid rgba(244,211,108,.18);border-radius:18px;z-index:100;box-shadow:0 15px 40px rgba(0,0,0,.3);padding:6px}.admin-mobile-nav{grid-template-columns:repeat(4,1fr)}.mobile-bottom-nav a,.admin-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#98a2b3;text-decoration:none;border-radius:12px;gap:2px}.mobile-bottom-nav a span,.admin-mobile-nav a span{font-size:18px;font-weight:900}.mobile-bottom-nav a small,.admin-mobile-nav a small{font-size:10px}.mobile-bottom-nav a.active,.mobile-bottom-nav a:hover,.admin-mobile-nav a:hover{background:rgba(213,166,43,.13);color:#f3cf67}.portal-header{align-items:center}.portal-header h1{font-size:26px}.admin-header .header-actions{display:flex;flex-direction:column;gap:6px}.package-premium{grid-template-columns:1fr}.form-section{grid-template-columns:1fr;gap:18px}}
@media(max-width:620px){.portal-main{padding:18px 12px 25px}.portal-header{flex-direction:column;align-items:stretch}.portal-header .btn{align-self:flex-start}.premium-metrics,.dash-grid{grid-template-columns:1fr 1fr}.premium-metrics .metric{min-height:118px;padding:16px}.premium-metrics .metric b{font-size:20px}.quick-section{padding:15px;border-radius:18px}.section-head{align-items:flex-start;flex-direction:column}.section-head p{display:none}.quick-grid{grid-template-columns:1fr}.quick-card{padding:13px;grid-template-columns:44px minmax(0,1fr) 20px}.quick-icon{width:44px;height:44px}.table-wrap{border-radius:14px}.premium-table .table{min-width:760px}.admin-toolbar{align-items:stretch;flex-direction:column}.search-box{max-width:none}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.form-section{padding:20px 16px}.form-actions{padding:16px}.delete-card{padding:24px 16px}.premium-tree{min-width:560px}.premium-metrics .metric em{display:none}}
@media(max-width:410px){.premium-metrics,.dash-grid{grid-template-columns:1fr}.mobile-bottom-nav,.admin-mobile-nav{left:6px;right:6px;bottom:6px}.portal-header h1{font-size:24px}}
/* My Own Empire V3: plans, referral center and mobile app navigation */
.plan-admin-grid,.referral-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px}.commission-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.commission-preview>div{padding:16px;border:1px solid rgba(212,175,55,.25);border-radius:16px;background:linear-gradient(145deg,#fff,#fffaf0)}.commission-preview span{display:block;font-size:12px;color:#6b7280;margin-bottom:5px}.commission-preview b{font-size:20px;color:#9a6900}.plan-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.plan-cards.mini{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-card{background:#fff;border:1px solid #ead9aa;border-radius:24px;padding:24px;box-shadow:0 18px 45px rgba(11,18,32,.08);position:relative;overflow:hidden}.plan-card:before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:linear-gradient(90deg,#8c5b00,#f3ce66,#b17a0b)}.plan-card.current{outline:2px solid #d4af37}.plan-card h2{font-size:34px;margin:12px 0;color:#a06b00}.plan-card ul{padding-left:20px;line-height:1.9}.plan-card small{display:block;color:#667085;margin-top:6px}.ref-card{background:linear-gradient(145deg,#0b1220,#151f32);border:1px solid rgba(212,175,55,.35);color:white;padding:24px;border-radius:24px;box-shadow:0 18px 40px rgba(0,0,0,.14)}.ref-card h3{font-size:24px}.share-link{padding:14px;background:rgba(255,255,255,.08);border:1px dashed rgba(243,206,102,.45);border-radius:12px;word-break:break-all;font-size:13px;margin:14px 0}.share-actions{display:flex;gap:9px;flex-wrap:wrap}.mobile-topbar{display:none}.muted{color:#667085}.referral-form{max-width:920px}.plan-card .package-tag,.ref-card .package-tag{display:inline-flex;padding:7px 11px;border-radius:999px;background:#fff1bf;color:#7a5200;font-size:11px;font-weight:800;letter-spacing:.08em}
@media(max-width:900px){.plan-admin-grid,.referral-grid,.plan-cards,.plan-cards.mini{grid-template-columns:1fr}.mobile-topbar{display:flex;position:sticky;top:0;z-index:20;margin:-18px -16px 18px;padding:10px 12px;background:rgba(11,18,32,.97);align-items:center;justify-content:space-between;gap:8px;box-shadow:0 8px 25px rgba(0,0,0,.12)}.mobile-topbar>a{display:flex;align-items:center;gap:8px;color:#fff;text-decoration:none}.mobile-topbar img{width:34px;height:34px;object-fit:contain}.mobile-topbar>div{display:flex;gap:6px}.mobile-topbar .mini-btn{font-size:11px;padding:8px 9px}.commission-preview{grid-template-columns:1fr 1fr}.plan-card{padding:20px}.portal-main{padding-bottom:86px!important}}
@media(max-width:520px){.commission-preview{grid-template-columns:1fr}.share-actions>*{flex:1;text-align:center}.plan-card h2{font-size:30px}}

/* Sponsor live verification */
.sponsor-field-wrap{position:relative}.sponsor-name-hint{min-height:20px;margin:6px 2px 2px;font-size:12px;line-height:1.35;font-weight:700;letter-spacing:.01em;transition:.2s ease}.sponsor-name-hint.checking{color:#8a6a20}.sponsor-name-hint.valid{color:#15803d}.sponsor-name-hint.invalid{color:#c2413b}.sponsor-field-wrap input{transition:border-color .2s ease,box-shadow .2s ease}.sponsor-field-wrap:has(.sponsor-name-hint.valid) input{border-color:rgba(21,128,61,.5);box-shadow:0 0 0 3px rgba(21,128,61,.08)}.sponsor-field-wrap:has(.sponsor-name-hint.invalid) input{border-color:rgba(194,65,59,.45);box-shadow:0 0 0 3px rgba(194,65,59,.07)}

/* Dynamic public membership plans patch */
.plans-showcase{position:relative;overflow:hidden;background:radial-gradient(circle at 50% 0,rgba(212,175,55,.13),transparent 34%),#09111f}
.plans-showcase:before,.plans-showcase:after{content:"";position:absolute;width:260px;height:260px;border-radius:50%;filter:blur(80px);opacity:.16;pointer-events:none}
.plans-showcase:before{background:#d4af37;left:-100px;top:70px}.plans-showcase:after{background:#5878bb;right:-100px;bottom:40px}
.plans-kicker{display:inline-flex;margin-bottom:13px;padding:7px 12px;border:1px solid rgba(244,211,108,.35);border-radius:999px;color:#f3d470;font-size:11px;font-weight:900;letter-spacing:1.5px}
.public-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;position:relative;z-index:1}
.public-plan-card{display:flex;flex-direction:column;min-width:0;height:100%;padding:26px;border:1px solid rgba(148,163,184,.23);border-radius:22px;background:linear-gradient(155deg,rgba(24,35,55,.98),rgba(13,23,39,.98));box-shadow:0 18px 45px rgba(0,0,0,.22);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.public-plan-card:hover{transform:translateY(-6px);border-color:rgba(244,211,108,.58);box-shadow:0 26px 60px rgba(0,0,0,.34)}
.public-plan-card.featured{border-color:rgba(244,211,108,.5);background:linear-gradient(155deg,rgba(35,38,48,.98),rgba(14,23,37,.98))}
.plan-card-top{min-height:27px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.plan-number{font-size:10px;font-weight:900;letter-spacing:1.6px;color:#9aa8bc}.popular-badge{padding:6px 9px;border-radius:999px;background:linear-gradient(135deg,#f6db7a,#b88518);color:#171107;font-size:9px;font-weight:900;letter-spacing:.8px}
.public-plan-card h3{min-height:56px;margin:0 0 8px;color:#fff;font-size:22px;line-height:1.25}
.public-plan-price{color:#f2c84d;font-size:36px;font-weight:900;letter-spacing:-1px;line-height:1.1}
.plan-bv{margin-top:8px;color:#cbd5e1;font-size:13px;font-weight:700}
.plan-description{margin:18px 0 4px;padding-top:16px;border-top:1px solid rgba(148,163,184,.18);color:#c7d0dd;font-size:13px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.plan-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 22px}
.plan-benefits>div{min-width:0;padding:12px;border:1px solid rgba(244,211,108,.18);border-radius:13px;background:rgba(255,255,255,.035)}
.plan-benefits span{display:block;margin-bottom:5px;color:#9fabbd;font-size:10px;line-height:1.25;text-transform:uppercase;letter-spacing:.45px}
.plan-benefits strong{display:block;color:#f6d56d;font-size:15px;line-height:1.2;overflow-wrap:anywhere}
.plan-join-btn{width:100%;margin-top:auto;padding:13px 16px}
.plans-empty{padding:28px;border:1px dashed rgba(244,211,108,.4);border-radius:18px;text-align:center;color:#cbd5e1;background:rgba(255,255,255,.035)}
@media(max-width:1020px){.public-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.plans-showcase{padding:60px 0}.plans-showcase .section-title{margin-bottom:28px}.plans-showcase .section-title h2{font-size:31px;line-height:1.15}.public-plan-grid{grid-template-columns:1fr;gap:16px}.public-plan-card{padding:21px;border-radius:18px}.public-plan-card h3{min-height:0;font-size:21px}.public-plan-price{font-size:33px}.plan-benefits{gap:8px}.plan-benefits>div{padding:11px 9px}.plan-benefits strong{font-size:14px}}
@media(max-width:380px){.plan-benefits{grid-template-columns:1fr}.public-plan-price{font-size:30px}}

/* MOE leadership, profile management and rich plan content */
.rich-plan-description{white-space:normal;line-height:1.75;font-size:13px;color:#e2e8f0}.rich-plan-description br{display:block;content:"";margin-bottom:7px}.leadership-showcase{background:linear-gradient(180deg,#fff,#f7f3e8)}.profile-slider-shell{position:relative}.profile-slider{display:flex;gap:22px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:12px 4px 28px}.profile-slider::-webkit-scrollbar{display:none}.leader-card{flex:0 0 calc(33.333% - 15px);min-width:290px;background:#fff;border:1px solid #eadcb5;border-radius:24px;overflow:hidden;box-shadow:0 18px 45px rgba(11,18,32,.09);scroll-snap-align:start;position:relative}.leader-card.featured{border-color:#c59522;box-shadow:0 22px 55px rgba(181,132,23,.18)}.leader-photo-wrap{height:270px;background:linear-gradient(145deg,#111827,#25324a);position:relative;overflow:hidden}.leader-photo-wrap img{width:100%;height:100%;object-fit:cover}.leader-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:92px;font-weight:900;color:#f1cf69}.featured-ribbon{position:absolute;top:16px;left:16px;padding:8px 12px;border-radius:999px;background:#f2c94c;color:#1a1407;font-size:10px;font-weight:900;letter-spacing:1px}.leader-body{padding:22px}.leader-role{font-size:11px;font-weight:900;color:#9a6900;letter-spacing:1px;text-transform:uppercase}.leader-body h3{margin:7px 0 5px;font-size:22px}.leader-id{font-size:12px;font-weight:800;color:#475467}.leader-meta{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.leader-meta span{background:#fff7dc;border:1px solid #efd993;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800;color:#6f4d00}.leader-body p{color:#667085;line-height:1.65;font-size:13px}.profile-nav{position:absolute;top:45%;z-index:4;width:44px;height:44px;border-radius:50%;border:0;background:#0b1220;color:#f3cf67;font-size:28px;cursor:pointer;box-shadow:0 10px 25px rgba(0,0,0,.2)}.profile-nav.prev{left:-18px}.profile-nav.next{right:-18px}.profile-admin-grid{display:grid;grid-template-columns:1.5fr .7fr;gap:20px;margin-bottom:22px}.profile-admin-grid .form-card{max-width:none}.member-photo-preview{width:110px;height:110px;border-radius:18px;object-fit:cover;background:#111827;border:2px solid #d4af37}.wallet-admin-box{background:#fffaf0;border:1px solid #ecd899;border-radius:16px;padding:18px}.wallet-admin-box strong{font-size:24px;color:#8a5d00}.profiles-empty{padding:36px;text-align:center;background:#fff;border:1px dashed #d8c690;border-radius:18px;color:#667085}
@media(max-width:900px){.leader-card{flex-basis:calc(50% - 12px)}.profile-admin-grid{grid-template-columns:1fr}.profile-nav{display:none}}
@media(max-width:620px){.leader-card{flex-basis:88%;min-width:88%}.leader-photo-wrap{height:240px}.rich-plan-description{font-size:12px}.profile-slider{gap:14px}}
/* MOE compact professional leadership carousel v2 */
.leadership-showcase{background:linear-gradient(145deg,#f8fafc 0%,#fff 48%,#fbf6e8 100%);overflow:hidden}
.profile-carousel{position:relative;padding:10px 42px 38px;max-width:1120px;margin:0 auto}
.profile-viewport{overflow:hidden;padding:16px 3px 26px}
.profile-track{display:flex;gap:24px;transition:transform .65s cubic-bezier(.22,.61,.36,1);will-change:transform}
.profile-track .leader-card{flex:0 0 calc((100% - 48px)/3);min-width:0;height:430px;background:#111827;border:1px solid rgba(212,175,55,.42);border-radius:22px;overflow:hidden;box-shadow:0 20px 42px rgba(11,18,32,.16);position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;padding:0 20px 22px;transform:translateZ(0)}
.profile-track .leader-card:hover{transform:translateY(-7px);box-shadow:0 28px 58px rgba(11,18,32,.23);transition:.25s ease}
.profile-track .leader-card.featured{border-color:#e4b833;box-shadow:0 22px 55px rgba(181,132,23,.25)}
.leader-accent{position:absolute;inset:0 0 auto;height:110px;background:linear-gradient(135deg,#d4af37,#f3ce63 55%,#ad7a0c);clip-path:polygon(0 0,100% 0,100% 78%,63% 100%,0 72%)}
.profile-track .leader-card:nth-child(3n+2) .leader-accent{background:linear-gradient(135deg,#0b1220,#34435f 55%,#d4af37)}
.profile-track .leader-card:nth-child(3n) .leader-accent{background:linear-gradient(135deg,#b8860b,#f4d06f 55%,#0b1220)}
.profile-track .leader-photo-wrap{width:112px;height:112px;min-height:112px;border-radius:50%;margin-top:43px;background:#1f2937;border:5px solid #fff;box-shadow:0 10px 26px rgba(0,0,0,.3);position:relative;z-index:2;overflow:hidden}
.profile-track .leader-photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.profile-track .leader-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:45px;font-weight:900;color:#d4af37;background:#172033}
.profile-track .leader-body{padding:16px 0 0;width:100%;display:flex;flex-direction:column;align-items:center;min-height:0}
.profile-track .leader-body h3{margin:0 0 5px;color:#fff;font-size:18px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.profile-track .leader-role{display:block;color:#f3c94f;font-size:12px;font-weight:900;letter-spacing:.9px;text-transform:uppercase;margin-bottom:7px}
.profile-track .leader-id{color:#d1d5db;font-size:11px;font-weight:700}
.profile-track .leader-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:10px 0 9px}
.profile-track .leader-meta span{background:rgba(255,255,255,.08);border:1px solid rgba(212,175,55,.28);color:#e5e7eb;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:700}
.profile-track .leader-body p{color:#cbd5e1;font-size:11px;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.profile-track .featured-ribbon{position:absolute;top:13px;right:13px;left:auto;z-index:4;background:#0b1220;color:#f4cf64;border:1px solid rgba(255,255,255,.2);font-size:8px;padding:6px 9px;border-radius:999px;font-weight:900;letter-spacing:.8px}
.profile-carousel .profile-nav{position:absolute;top:47%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border-radius:50%;border:1px solid rgba(212,175,55,.48);background:#0b1220;color:#f3cf67;font-size:26px;line-height:1;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.profile-carousel .profile-nav:hover{background:#d4af37;color:#0b1220}.profile-carousel .profile-nav.prev{left:0}.profile-carousel .profile-nav.next{right:0}
.profile-dots{display:flex;justify-content:center;gap:7px;margin-top:1px}.profile-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#cbd5e1;cursor:pointer}.profile-dots button.active{width:23px;border-radius:999px;background:#d4af37}
@media(max-width:960px){.profile-track .leader-card{flex-basis:calc((100% - 20px)/2)}.profile-track{gap:20px}.profile-carousel{padding-left:34px;padding-right:34px}}
@media(max-width:640px){.profile-carousel{padding:4px 8px 32px}.profile-track{gap:14px}.profile-track .leader-card{flex-basis:100%;height:410px}.profile-carousel .profile-nav{display:none}.profile-viewport{padding-left:1px;padding-right:1px}.profile-track .leader-photo-wrap{width:106px;height:106px;min-height:106px}.profile-dots button:nth-child(n+9){display:none}}

/* MOE profile photo editor */
.moe-photo-editor{border:1px solid #e3e8f0;border-radius:18px;padding:16px;background:#fff}.moe-photo-editor-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.moe-photo-preview-wrap{width:112px;height:112px;border-radius:50%;padding:4px;background:linear-gradient(135deg,#f5cc52,#b98706);box-shadow:0 10px 28px rgba(16,24,40,.16);flex:none}.moe-photo-preview-wrap img{width:100%;height:100%;object-fit:cover;border-radius:50%;background:#eef2f7;display:block}.moe-photo-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.moe-photo-actions button{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.moe-photo-actions .photo-primary{background:#d8a91d;color:#071326}.moe-photo-actions .photo-dark{background:#101a2d;color:#fff}.moe-photo-actions .photo-remove{background:#fff0f0;color:#b42318;border:1px solid #ffd1d1}.moe-photo-note{font-size:12px;color:#667085;margin:8px 0 0}.moe-photo-editor input[type=file]{display:none!important}.moe-crop-modal{position:fixed;inset:0;background:rgba(3,8,18,.82);z-index:99999;display:none;align-items:center;justify-content:center;padding:18px}.moe-crop-modal.open{display:flex}.crop-open{overflow:hidden}.moe-crop-box{width:min(520px,100%);background:#fff;border-radius:22px;padding:18px;box-shadow:0 28px 80px rgba(0,0,0,.35)}.moe-crop-box h3{margin:0 0 5px}.moe-crop-box p{margin:0 0 14px;color:#667085;font-size:13px}.moe-crop-stage{width:min(420px,100%);aspect-ratio:1;margin:auto;border-radius:18px;overflow:hidden;background:#0b1424;touch-action:none;position:relative}.moe-crop-stage:after{content:"";position:absolute;inset:7%;border:4px solid rgba(255,255,255,.95);border-radius:50%;box-shadow:0 0 0 999px rgba(4,10,20,.32);pointer-events:none}.moe-crop-stage canvas{display:block;width:100%;height:100%;cursor:move}.moe-crop-tools{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;margin-top:14px}.moe-crop-tools input{width:100%}.moe-crop-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.moe-crop-foot button{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer}.moe-crop-foot .cancel{background:#eef2f6;color:#162033}.moe-crop-foot .save{background:#d8a91d;color:#071326}.member-profile-summary{display:flex;align-items:center;gap:16px;margin-bottom:20px}.member-profile-summary img{width:84px;height:84px;border-radius:50%;object-fit:cover;border:4px solid #e5b72e}@media(max-width:600px){.moe-photo-editor-row{justify-content:center;text-align:center}.moe-photo-actions{justify-content:center}.moe-photo-preview-wrap{width:104px;height:104px}.moe-crop-box{padding:14px}}

.side-member .avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}

/* ===== MOE Professional Compact Photo Editor + Homepage Builder ===== */
.moe-photo-editor-compact{max-width:760px!important;padding:14px!important;border:1px solid #e4e7ec!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(16,24,40,.05)!important;overflow:hidden!important}
.moe-photo-editor-compact .moe-photo-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.moe-photo-editor-compact .moe-photo-head strong{font-size:14px;color:#101828}.moe-photo-editor-compact .moe-photo-head small{display:block;color:#667085;font-size:11px;margin-top:3px}
.moe-photo-editor-compact .moe-photo-editor-row{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;min-height:82px!important}
.moe-photo-editor-compact .moe-photo-preview-wrap{width:82px!important;height:82px!important;min-width:82px!important;min-height:82px!important;max-width:82px!important;max-height:82px!important;border-radius:50%!important;padding:3px!important;overflow:hidden!important;display:block!important}
.moe-photo-editor-compact .moe-photo-preview-wrap img{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;max-width:76px!important;max-height:76px!important;border-radius:50%!important;object-fit:cover!important;object-position:center!important;display:block!important}
.moe-photo-editor-compact .moe-photo-control{min-width:0}.moe-photo-editor-compact .moe-photo-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.moe-photo-editor-compact .moe-photo-actions button{padding:9px 12px!important;border-radius:9px!important;font-size:12px!important;line-height:1!important}.moe-photo-editor-compact .moe-photo-note{margin:8px 0 0!important;font-size:11px!important;line-height:1.45!important}
.moe-photo-editor-compact .moe-hidden-file,.moe-photo-editor-compact input[type=file]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important}
.moe-crop-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.moe-crop-title h3{margin:0}.moe-crop-title p{margin:4px 0 12px}.crop-x{width:34px;height:34px;border:0;border-radius:50%;font-size:24px;line-height:1;background:#eef2f6;color:#344054;cursor:pointer}.moe-crop-box{width:min(480px,96vw)!important;max-height:94vh;overflow:auto}.moe-crop-stage{width:min(360px,100%)!important}.moe-crop-tools button{border:1px solid #d0d5dd;background:#fff;border-radius:9px;padding:8px 10px;font-weight:700;color:#344054}

.settings-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(135deg,#fff8df,#fff);border:1px solid #ead89d;padding:22px;border-radius:18px;margin-bottom:18px}.settings-intro h2{margin:5px 0 7px;font-size:25px}.settings-intro p{margin:0;color:#667085}.builder-tabs{display:flex;gap:8px;padding:8px;background:#fff;border:1px solid #e4e7ec;border-radius:14px;margin-bottom:18px;position:sticky;top:10px;z-index:15;box-shadow:0 8px 24px rgba(16,24,40,.06)}.builder-tabs button{border:0;background:transparent;padding:11px 16px;border-radius:10px;font-weight:800;color:#475467;cursor:pointer}.builder-tabs button.active{background:#0b1220;color:#f4cf64}.builder-panel{display:none}.builder-panel.active{display:block}.builder-section{margin-bottom:18px}.section-editor-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:14px;border-bottom:1px solid #eaecf0;margin-bottom:16px}.section-editor-head h3{margin:0}.section-editor-head small{color:#667085}.switch{display:flex;align-items:center;gap:8px;font-size:12px}.switch input{width:auto;margin:0}.repeater{display:grid;gap:10px}.repeat-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;background:#f8fafc;border:1px solid #e4e7ec;padding:10px;border-radius:12px}.repeat-row input{margin:0}.remove-row{border:1px solid #fecdca;background:#fff1f0;color:#b42318;border-radius:8px;padding:9px 11px;font-weight:800;cursor:pointer}.mini-add{margin-top:12px;border:1px dashed #c6a33a;background:#fffaf0;color:#7a5600;padding:10px 14px;border-radius:10px;font-weight:800;cursor:pointer}.card-repeater{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.repeat-card{background:#f8fafc;border:1px solid #e4e7ec;border-radius:14px;padding:14px}.repeat-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.repeat-card input,.repeat-card textarea{background:#fff}.builder-note{padding:11px 13px;border-radius:10px;background:#fffaeb;color:#7a5d00;font-size:13px}.builder-note a{font-weight:800;color:#805b00}.sticky-save{position:sticky;bottom:12px;display:flex;justify-content:flex-end;padding:12px;background:rgba(244,246,249,.9);backdrop-filter:blur(8px);border-radius:14px;z-index:12}.dynamic-count{grid-template-columns:repeat(var(--item-count),minmax(0,1fr))}.dynamic-cards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
@media(max-width:900px){.settings-intro{align-items:flex-start;flex-direction:column}.card-repeater{grid-template-columns:1fr}.dynamic-count{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.moe-photo-editor-compact .moe-photo-editor-row{grid-template-columns:68px minmax(0,1fr)!important;text-align:left!important}.moe-photo-editor-compact .moe-photo-preview-wrap{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important}.moe-photo-editor-compact .moe-photo-preview-wrap img{width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important}.moe-photo-editor-compact .moe-photo-actions{justify-content:flex-start!important}.builder-tabs{overflow:auto}.builder-tabs button{white-space:nowrap}.repeat-row{grid-template-columns:1fr}.dynamic-count{grid-template-columns:1fr}.section-editor-head{align-items:flex-start;flex-direction:column}}

/* Compact automatic profile photo upload */
.moe-auto-photo{display:flex;align-items:center;gap:16px;border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fff;max-width:620px}.moe-auto-photo-preview{width:92px;height:92px;min-width:92px;border-radius:50%;padding:4px;background:linear-gradient(135deg,#f4cc57,#a97905);box-shadow:0 8px 22px rgba(15,23,42,.14)}.moe-auto-photo-preview img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover;object-position:center 25%;background:#eef2f7}.moe-auto-photo-info{display:flex;flex-direction:column;gap:5px}.moe-auto-photo-info strong{font-size:14px;color:#101828}.moe-auto-photo-info small{font-size:11px;color:#667085;line-height:1.45}.moe-auto-photo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}.moe-auto-photo-actions button{border:1px solid #d0d5dd;background:#101828;color:#fff;padding:9px 13px;border-radius:9px;font-weight:800;cursor:pointer}.moe-auto-photo-actions button.gold{background:#d5a51a;color:#101828;border-color:#d5a51a}.moe-auto-photo>input[type=file]{display:none!important}@media(max-width:560px){.moe-auto-photo{align-items:flex-start}.moe-auto-photo-preview{width:78px;height:78px;min-width:78px}.moe-auto-photo-actions button{padding:8px 10px;font-size:12px}}
