*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f7fb;color:#142238}
a{color:inherit}
.section-inner{width:100%;max-width:1120px;margin:0 auto}
.auth-page,.legal-page{min-height:100svh;background:#f5f7fb;display:flex;flex-direction:column;overflow-x:hidden}
.site-topbar{background:#071b3a;color:#d8e5ff;font-size:13px}
.site-topbar-inner{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.site-topbar a{color:#fff;text-decoration:none;font-weight:800}
.auth-header{background:#fff;border-bottom:1px solid #e7edf6}
.header-inner{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.brand-mini{display:flex;align-items:center;gap:12px;color:#142238;text-decoration:none;font-size:22px;font-weight:900;letter-spacing:-.2px;line-height:1.05}
.brand-icon{width:42px;height:42px;border-radius:12px;background:#0b5bd3;position:relative;box-shadow:0 10px 22px rgba(11,91,211,.18);flex:0 0 auto}
.brand-icon:before{content:"";position:absolute;left:10px;right:9px;top:13px;bottom:11px;border:2px solid #fff;border-radius:7px}
.brand-icon:after{content:"";position:absolute;right:10px;top:18px;width:7px;height:7px;background:#fff;border-radius:50%}
.auth-header nav{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.auth-header nav a{color:#5f6f86;text-decoration:none;font-size:15px;font-weight:900;padding:9px 15px;border-radius:999px}
.auth-header nav a.active{background:#0b5bd3;color:#fff;box-shadow:0 10px 22px rgba(11,91,211,.18)}
.auth-hero{padding:28px 22px 14px}
.hero-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:24px;align-items:center;background:#fff;border:1px solid #e6edf7;border-radius:22px;padding:28px;box-shadow:0 18px 44px rgba(20,34,56,.08);position:relative;overflow:hidden}
.hero-panel:before{content:"";position:absolute;inset:0 0 auto auto;width:38%;height:100%;background:linear-gradient(135deg,rgba(11,91,211,.1),rgba(20,184,166,.12));clip-path:polygon(24% 0,100% 0,100% 100%,0 100%)}
.hero-copy,.stats-row{position:relative;z-index:1}
.eyebrow{margin:0 0 10px;font-size:12px;letter-spacing:1.3px;text-transform:uppercase;font-weight:900;color:#0b5bd3}
.auth-hero h1{margin:0;color:#142238;font-size:34px;line-height:1.12;font-weight:900;letter-spacing:-.4px;max-width:640px}
.hero-text{margin:12px 0 0;color:#65748a;font-size:16px;line-height:1.55;max-width:560px}
.stats-row{display:grid;grid-template-columns:1fr;gap:10px}
.stats-row div{background:#f8fbff;border:1px solid #e3ebf6;border-radius:16px;padding:14px 16px}
.stats-row strong{display:block;color:#142238;font-size:21px;font-weight:900;line-height:1.1}
.stats-row span{display:block;margin-top:4px;color:#64748b;font-size:13px;font-weight:800}
.auth-card-wrap{width:100%;padding:0 22px 22px}
.auth-card{width:100%;max-width:540px;margin:0 auto;background:#fff;border:1px solid #e6edf7;border-radius:22px;padding:26px;box-shadow:0 18px 44px rgba(20,34,56,.08)}
.brand{display:none}
.title{font-size:30px;margin:0 0 8px;color:#142238;line-height:1.12;letter-spacing:-.2px}
.subtitle{margin:0 0 20px;color:#64748b;font-size:16px;line-height:1.5}
.field{margin-bottom:15px}
.field label{display:block;font-size:14px;font-weight:900;margin-bottom:8px;color:#26374f}
.field input{width:100%;height:52px;border:1px solid #d9e2ef;border-radius:14px;padding:0 15px;font-size:16px;outline:none;background:#fbfdff;color:#142238}
.field input:focus{border-color:#0b5bd3;box-shadow:0 0 0 4px rgba(11,91,211,.1)}
.field.has-error input{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.08)}
.field-error{display:block;margin-top:7px;color:#b42318;font-size:13px;font-weight:800}
.form-error{padding:12px 13px;border-radius:12px;margin-bottom:14px;background:#fff0f0;color:#a62323;border:1px solid #ffd2d2;font-size:14px;font-weight:800}
.btn{width:100%;height:52px;border:0;border-radius:14px;background:#0b5bd3;color:#fff;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 12px 22px rgba(11,91,211,.2)}
.btn:hover{background:#094bb0}
.link-row{margin-top:16px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}
.link-row a,.text-link{color:#0b5bd3;text-decoration:none;font-weight:900}
.auth-footer{margin-top:auto;width:100%;background:#fff;border-top:1px solid #e7edf6;color:#64748b}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;font-size:13px;font-weight:700}
.auth-footer nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.auth-footer a{color:#142238;text-decoration:none;font-weight:900}
.alert{padding:12px 13px;border-radius:12px;margin-bottom:14px;font-size:14px;line-height:1.45}
.alert.error{background:#fff0f0;color:#a62323;border:1px solid #ffd2d2}
.alert.success{background:#ecfff4;color:#15703a;border:1px solid #bdf0d0}
.alert.info{background:#eef6ff;color:#174a86;border:1px solid #cde4ff}
.legal-card{width:calc(100% - 44px);max-width:820px;margin:26px auto;background:#fff;border:1px solid #e6edf7;border-radius:20px;padding:28px;box-shadow:0 18px 44px rgba(20,34,56,.08);line-height:1.65;color:#31435f}
.legal-card h1{margin:0 0 14px;color:#142238;font-size:30px;line-height:1.15}
.legal-card p{margin:0 0 14px}
.app-shell{min-height:100vh;padding:18px 16px 92px;max-width:560px;margin:0 auto;background:#f5f7fb}
.dash-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.dash-kicker{display:block;color:#0b5bd3;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.8px;margin-bottom:5px}
.dash-header h1{margin:0;color:#142238;font-size:26px;line-height:1.1}
.dash-header p{margin:5px 0 0;color:#64748b;font-size:14px}
.avatar{width:42px;height:42px;border-radius:50%;background:#0b5bd3;color:#fff;display:grid;place-items:center;font-weight:800}
.balance-card{background:#0b5bd3;color:#fff;border-radius:18px;padding:22px;margin-bottom:16px;box-shadow:0 18px 35px rgba(11,91,211,.22)}
.balance-card span{opacity:.86;font-size:13px}
.balance-card strong{display:block;font-size:34px;margin-top:7px}
.balance-card small{display:block;margin-top:6px;color:rgba(255,255,255,.78);font-weight:700}
.status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.status-box{background:#fff;border:1px solid #e4ebf5;border-radius:15px;padding:14px;box-shadow:0 10px 22px rgba(16,42,87,.05)}
.status-box span{display:block;color:#64748b;font-size:12px;font-weight:800;margin-bottom:5px}
.status-box strong{color:#142238;font-size:16px}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.dashboard-grid{margin-bottom:14px}
.quick-box{background:#fff;border:1px solid #e4ebf5;border-radius:14px;padding:16px;text-decoration:none;color:#122033;box-shadow:0 10px 22px rgba(16,42,87,.06)}
.quick-box b{display:block;margin-bottom:4px}
.quick-box small{color:#6b7890}
.panel{background:#fff;border:1px solid #e4ebf5;border-radius:16px;padding:16px;margin-bottom:14px;box-shadow:0 10px 22px rgba(16,42,87,.05)}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.panel-head h2{margin:0;color:#142238;font-size:17px}
.panel-head span{color:#64748b;font-size:12px;font-weight:800}
.referral-code-box{background:#f8fbff;border:1px solid #e3ebf6;border-radius:14px;padding:14px;margin-bottom:10px}
.referral-code-box span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:5px}
.referral-code-box strong{display:block;color:#0b5bd3;font-size:22px;letter-spacing:1px}
.referral-link-box{background:#fff;border:1px dashed #cbd8ea;border-radius:12px;padding:11px;color:#64748b;font-size:12px;font-weight:800;word-break:break-all}
.empty-state{background:#f8fbff;border:1px dashed #d7e2f0;border-radius:14px;padding:15px}
.empty-state strong{display:block;color:#142238}
.empty-state p{margin:5px 0 0;color:#64748b;font-size:13px;line-height:1.45}
.transaction-list{display:grid;gap:10px}
.transaction-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf2f8;padding-bottom:10px}
.transaction-item:last-child{border-bottom:0;padding-bottom:0}
.transaction-item strong{display:block;color:#142238;font-size:14px}
.transaction-item span{display:block;color:#64748b;font-size:12px;margin-top:3px}
.transaction-item b{font-size:14px;white-space:nowrap}
.transaction-item b.credit{color:#15803d}
.transaction-item b.debit{color:#b42318}
.detail-row{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #edf2f8;padding:10px 0}
.detail-row:last-child{border-bottom:0}
.detail-row span{color:#64748b;font-size:13px;font-weight:800}
.detail-row strong{color:#142238;font-size:13px;text-align:right;word-break:break-word}
.bottom-nav{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);width:calc(100% - 26px);max-width:520px;background:#fff;border:1px solid #e4ebf5;border-radius:18px;display:flex;justify-content:space-around;padding:10px;box-shadow:0 12px 35px rgba(16,42,87,.16)}
.bottom-nav a{text-decoration:none;color:#6b7890;font-size:12px;font-weight:800}
.bottom-nav a.active{color:#0b5bd3}
.dashboard-app{max-width:520px;padding:0 14px 118px;background:#f4f7fb;user-select:none}
.app-hero{margin:0 -14px 14px;padding:18px 14px 22px;background:linear-gradient(135deg,#061f4d,#0b5bd3);border-radius:0 0 28px 28px;color:#fff;box-shadow:0 18px 36px rgba(11,91,211,.22)}
.dashboard-app .dash-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}
.dashboard-app .dash-kicker{color:rgba(255,255,255,.72);font-size:11px}
.dashboard-app .dash-header h1{margin:0;color:#fff;font-size:24px}
.dashboard-app .dash-header p{margin:5px 0 0;color:rgba(255,255,255,.74);font-size:13px}
.dashboard-app .avatar{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28)}
.wallet-card{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:22px;padding:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.16)}
.wallet-main{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.wallet-card span{display:block;color:rgba(255,255,255,.78);font-size:13px;font-weight:800}
.wallet-card strong{display:block;margin-top:7px;color:#fff;font-size:34px;letter-spacing:-.4px}
.wallet-card small{display:block;margin-top:5px;color:rgba(255,255,255,.7);font-weight:700}
.points-pill{min-width:128px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:11px;text-align:right}
.points-pill span{font-size:11px}
.points-pill b{display:block;margin-top:5px;color:#fff;font-size:17px}
.wallet-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.wallet-action{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:13px;background:#fff;color:#0b5bd3;text-decoration:none;font-size:13px;font-weight:900}
.wallet-action.secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.22)}
.exchange-note{margin:12px 0 0;color:rgba(255,255,255,.72);font-size:12px;line-height:1.4;font-weight:700}
.dashboard-app .status-grid{margin-top:-4px}
.dashboard-app .status-box{border-radius:17px;padding:14px;box-shadow:0 12px 28px rgba(20,34,56,.07)}
.app-section{margin-bottom:14px}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:0 2px 10px}
.section-title h2{margin:0;color:#142238;font-size:17px}
.section-title span{color:#64748b;font-size:12px;font-weight:800}
.dashboard-app .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.dashboard-app .quick-box{display:flex;flex-direction:column;align-items:center;text-align:center;padding:13px 7px;border-radius:18px;min-height:104px}
.quick-icon{width:36px;height:36px;border-radius:14px;background:linear-gradient(135deg,#0b5bd3,#14b8a6);display:block;margin-bottom:9px;position:relative;box-shadow:0 10px 20px rgba(11,91,211,.18)}
.quick-icon:before,.quick-icon:after{content:"";position:absolute;border:2px solid #fff}
.earn-i:before{left:9px;top:9px;width:18px;height:18px;border-radius:50%}
.earn-i:after{left:16px;top:12px;width:4px;height:12px;border-top:0;border-bottom:0}
.wallet-i:before{left:8px;top:11px;width:20px;height:14px;border-radius:5px}
.wallet-i:after{right:8px;top:16px;width:4px;height:4px;border-radius:50%;background:#fff}
.withdraw-i:before{left:9px;top:9px;width:18px;height:18px;border-radius:6px}
.withdraw-i:after{left:15px;top:13px;width:6px;height:10px;border-left:0;border-top:0;transform:rotate(45deg)}
.profile-i:before{left:13px;top:8px;width:10px;height:10px;border-radius:50%}
.profile-i:after{left:8px;top:21px;width:20px;height:6px;border-radius:10px 10px 0 0}
.dashboard-app .quick-box b{font-size:13px;margin-bottom:3px}
.dashboard-app .quick-box small{font-size:10px;line-height:1.25}
.dashboard-app .panel{border-radius:18px;box-shadow:0 12px 28px rgba(20,34,56,.07)}
.referral-code-box strong{font-size:20px}
.referral-summary{margin:-4px 0 12px;color:#64748b;font-size:13px;line-height:1.5;font-weight:700}
.share-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-top:11px}
.mini-btn{border:0;border-radius:12px;background:#0b5bd3;color:#fff;min-height:40px;padding:0 10px;font-size:12px;font-weight:900;text-decoration:none;display:flex;align-items:center;justify-content:center;text-align:center}
.mini-btn.secondary{background:#edf5ff;color:#0b5bd3}
.mini-btn.whatsapp{background:#0ea66b;color:#fff}
.referred-list{margin-top:13px;border-top:1px solid #edf2f8;padding-top:12px}
.referred-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.referred-head span{color:#64748b;font-size:12px;font-weight:900}
.referred-head b{background:#edf5ff;color:#0b5bd3;border-radius:999px;padding:4px 9px;font-size:12px}
.muted-small{margin:0;color:#64748b;font-size:13px;font-weight:700}
.referred-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #edf2f8}
.referred-item:last-child{border-bottom:0}
.referred-item strong{display:block;color:#142238;font-size:13px}
.referred-item span{display:block;color:#64748b;font-size:11px;margin-top:3px}
.referred-item b{color:#15803d;font-size:12px}
.app-bottom-nav{position:fixed!important;left:50%!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:calc(100% - 22px);max-width:520px;background:#fff;border:1px solid #e2eaf5;border-radius:22px;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:9px;box-shadow:0 18px 42px rgba(20,34,56,.2);z-index:99999}
.app-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;border-radius:16px;text-decoration:none;color:#64748b;font-size:10px;font-weight:900}
.app-bottom-nav a.active{background:#edf5ff;color:#0b5bd3}
.app-bottom-nav b{font-size:10px}
.nav-icon{width:20px;height:20px;display:block;position:relative}
.nav-icon:before,.nav-icon:after{content:"";position:absolute;border:2px solid currentColor}
.nav-home:before{left:3px;top:7px;width:14px;height:10px;border-radius:3px}
.nav-home:after{left:6px;top:2px;width:8px;height:8px;transform:rotate(45deg);border-right:0;border-bottom:0}
.nav-earn:before{left:3px;top:3px;width:14px;height:14px;border-radius:50%}
.nav-earn:after{left:8px;top:6px;width:4px;height:8px;border-top:0;border-bottom:0}
.nav-wallet:before{left:2px;top:5px;width:16px;height:12px;border-radius:4px}
.nav-wallet:after{right:3px;top:9px;width:4px;height:4px;border-radius:50%;background:currentColor}
.nav-profile:before{left:6px;top:3px;width:8px;height:8px;border-radius:50%}
.nav-profile:after{left:3px;top:13px;width:14px;height:5px;border-radius:8px 8px 0 0}
.nav-logout:before{left:3px;top:4px;width:9px;height:12px;border-radius:3px}
.nav-logout:after{right:2px;top:8px;width:9px;height:4px;border-left:0;border-bottom:0;transform:rotate(45deg)}
@media(max-width:380px){
  .dashboard-app .quick-grid{gap:7px}
  .dashboard-app .quick-box{padding:12px 5px}
  .app-bottom-nav{width:calc(100% - 16px);padding:7px}
  .wallet-main{display:block}
  .points-pill{text-align:left;margin-top:12px}
  .share-row{grid-template-columns:1fr}
}
@media(max-width:760px){
  .site-topbar-inner,.header-inner,.footer-inner{padding-left:16px;padding-right:16px}
  .brand-mini{font-size:18px}
  .brand-icon{width:38px;height:38px}
  .auth-header nav a{font-size:14px;padding:8px 11px}
  .auth-hero{padding:18px 16px 12px}
  .hero-panel{display:block;padding:20px;border-radius:18px}
  .hero-panel:before{width:70%;opacity:.65}
  .auth-hero h1{font-size:24px;line-height:1.18}
  .hero-text{font-size:14px;margin-top:9px}
  .stats-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}
  .stats-row div:last-child{grid-column:1/-1}
  .stats-row div{padding:11px 12px;border-radius:14px}
  .stats-row strong{font-size:18px}
  .stats-row span{font-size:12px}
  .auth-card-wrap{padding:0 16px 18px}
  .auth-card{max-width:none;border-radius:18px;padding:20px}
  .title{font-size:26px}
  .subtitle{font-size:15px;margin-bottom:17px}
  .footer-inner{align-items:flex-start;flex-direction:column}
  .auth-footer nav{justify-content:flex-start}
}
@media(max-width:380px){
  .site-topbar{font-size:12px}
  .brand-mini span:last-child{max-width:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .auth-header nav{gap:4px}
  .auth-header nav a{font-size:13px;padding:8px 9px}
  .auth-hero h1{font-size:22px}
  .stats-row strong{font-size:16px}
  .link-row{font-size:13px}
}
