/* ARISAN RT02 — Fresh Premium V3, purely presentation CSS.
   Functional code app.js, portal.js, finance.js and Cloudflare D1 untouched. */
:root{--fp-navy:#061e38;--fp-deep:#082b4b;--fp-teal:#059b94;--fp-mint:#e5f8f3;--fp-gold:#e9c478;--fp-text:#103148;--fp-border:#e1ebef}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
button,a{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #16b6a5!important;outline-offset:3px}
.fp-role-switch{display:flex;gap:4px;align-items:center;padding:5px;background:#eef4f7;border-radius:14px;margin:0 0 24px;min-height:52px}
.fp-role-switch>*{width:50%;flex:1;text-align:center;display:block;text-decoration:none;color:#426176;font-size:13px;font-weight:850;padding:10px;border-radius:11px}
.fp-role-switch>.active{color:#fff;background:#062a48;box-shadow:0 6px 14px #042e4a21}
.fp-role-switch>a:hover{background:#deebe9;color:#0b5d61}
/* Hero after successful login: bold yet uncluttered */
.fp-dashboard-hero,.fp-participant-hero{isolation:isolate;overflow:hidden;position:relative;background:radial-gradient(circle at 86% -8%,#29b9a46b,transparent 40%),linear-gradient(112deg,#04172c,#0b3f58 62%,#087e78)!important}
.fp-dashboard-hero::before,.fp-participant-hero::before{content:"";position:absolute;width:260px;height:260px;border:1px solid #ffffff1c;border-radius:50%;right:-97px;bottom:-170px;pointer-events:none}
.fp-dashboard-hero::after,.fp-participant-hero::after{content:"";position:absolute;width:170px;height:170px;border:1px solid #ffffff1a;border-radius:50%;right:-39px;bottom:-125px;pointer-events:none}
.fp-dashboard-hero h2,.fp-participant-hero h2{letter-spacing:-.045em!important;line-height:1.13!important}
.fp-dashboard-hero em,.fp-participant-hero em{color:#a4f5de!important;font-style:normal}
.fp-hero-kicker{color:#f2d383!important}
.fp-dashboard-hero .fp-hero-emblem{transform:rotate(-7deg);filter:drop-shadow(0 15px 24px #0003)}
/* Actual bookkeeping figures, never static mockup balances */
.fp-v3-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 19px}
.fp-v3-stat{border:1px solid #dfebef;background:linear-gradient(155deg,#fff,#f9fcfd);border-radius:17px;padding:18px 17px;min-height:139px;box-shadow:0 8px 25px #082e4512}
.fp-v3-stat:nth-child(2){background:linear-gradient(155deg,#fff,#f7fbff)}
.fp-v3-stat:nth-child(3){background:linear-gradient(155deg,#fff,#f6fffa)}
.fp-v3-stat:nth-child(4){background:linear-gradient(155deg,#fff,#fffaf0)}
.fp-stat-row{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:16px}
.fp-stat-row span{font-size:12px;font-weight:720;color:#597083}
.fp-stat-row i{font-size:18px;font-style:normal;background:#dff3ed;color:#078f84;width:35px;height:35px;display:flex;justify-content:center;align-items:center;border-radius:11px}
.fp-v3-stat:nth-child(4) .fp-stat-row i{background:#fcf1d6;color:#aa7e24}
.fp-v3-stat strong{display:block;color:#0a2c49;font-size:30px;letter-spacing:-.05em;font-weight:950;line-height:1.1}
.fp-v3-stat strong.fp-live-value{font-size:17px;color:#078d78;padding-top:6px}
.fp-v3-stat small{display:block;font-size:10px;line-height:1.6;color:#728b99;margin-top:7px}
/* Workspace sidebar added to the already authenticated admin portal */
.fp-workspace-sidebar{display:none}
body[data-mode="admin"].fp-authenticated .fp-workspace-sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:244px;z-index:90;background:linear-gradient(160deg,#051a31,#0a3453 80%,#085f5b);padding:21px 14px;color:#fff;box-shadow:8px 0 29px #07213c14;overflow-y:auto}
.fp-side-brand{display:flex;align-items:center;gap:9px;padding:0 6px 21px;border-bottom:1px solid #ffffff27;margin-bottom:25px}
.fp-side-brand img{width:47px;height:47px;object-fit:cover;border-radius:13px;border:1px solid #e2c98250}
.fp-side-brand strong{font-size:15px;letter-spacing:.07em;line-height:1.1;display:block;color:#fff}
.fp-side-brand small{display:block;font-size:9px;line-height:1.45;letter-spacing:.08em;color:#c1e2e0;margin-top:4px}
.fp-side-caption{font-weight:850;font-size:10px;letter-spacing:.18em;color:#83aab7;margin:0 11px 10px}
.fp-workspace-nav{display:flex;flex-direction:column;gap:7px}
.fp-workspace-nav button{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;padding:13px 12px;border-radius:12px;font-size:13px;font-weight:740;cursor:pointer;text-align:left;color:#d0e4e9;min-height:47px}
.fp-workspace-nav button:hover{background:#ffffff15;color:#fff}
.fp-workspace-nav button.is-active{background:linear-gradient(110deg,#089c9b,#047b86);box-shadow:0 9px 22px #001d3435;color:#fff}
.fp-menu-icon{font-size:19px;width:24px;text-align:center;font-weight:850;line-height:1}
.fp-side-status{margin-top:auto;padding:18px 8px 7px;font-size:11px;color:#cdeae1;font-weight:760;line-height:1.8}
.fp-side-status small{font-size:10px;color:#83b6b7;font-weight:500;display:block;margin-left:16px}
.fp-online-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#18d98e;box-shadow:0 0 0 3px #15c58c20;margin-right:7px}
@media(min-width:1051px){
 body[data-mode="admin"].fp-authenticated main{margin-left:244px;max-width:none!important;width:auto!important;padding-left:30px;padding-right:30px}
 body[data-mode="admin"].fp-authenticated .fp-app-header{margin-left:244px;padding-left:30px;padding-right:30px}
 body[data-mode="admin"].fp-authenticated main>.h{display:none}
 body[data-mode="admin"].fp-authenticated #content>.h{background:#fff;border:1px solid #e0eaf0;border-radius:14px;padding:10px 14px;margin:1px 0 17px}
 body[data-mode="admin"] #adminNav.fp-admin-menu .buttonrow{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1050px){body[data-mode="admin"].fp-authenticated .fp-workspace-sidebar{display:none}}
/* Auth full-page premium field styling */
body[data-mode] .fp-auth-card{max-width:510px;margin:18px auto 35px;box-shadow:0 20px 55px #063d5221!important;overflow:hidden}
body[data-mode] .fp-auth-card .field input{min-height:50px;border-radius:12px}
body[data-mode] .fp-auth-card #connectBtn{min-height:51px!important;width:100%;background:linear-gradient(106deg,#052b4d,#0a4960)!important;color:#fff!important;border-radius:12px!important}
body[data-mode] .fp-auth-card .fp-auth-art{background:linear-gradient(108deg,#05213c,#086d71)!important}
body[data-mode] .fp-auth-card .fp-auth-art strong{font-size:19px}
/* Participant: content is a report, not personal login. */
.fp-participant-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 12px}
.fp-tile{min-width:0;min-height:118px;border:1px solid #dce8ee;box-shadow:0 9px 23px #112f4610;border-radius:17px;background:linear-gradient(150deg,#fff,#f6fbfc);text-align:center;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center;color:#183a52;text-decoration:none;padding:13px 7px}
.fp-tile:hover{border-color:#85ccbd;transform:translateY(-1px)}
.fp-tile span{font-size:27px;color:#0b9f94;display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#e2f7ef;margin-bottom:7px}
.fp-tile:nth-child(2) span{background:#fff4d7;color:#c18e29}
.fp-tile:nth-child(3) span{background:#e7f1ff;color:#4484cc}
.fp-tile strong{font-size:13px;font-weight:850;line-height:1.3}
.fp-tile small{font-size:10px;color:#6c8290;line-height:1.4}
.fp-participant-info{display:flex;gap:6px;align-items:center;background:#effaf6;color:#29725e;font-size:11px;border:1px solid #d0e9dc;border-radius:11px;padding:11px 13px;margin:12px 0 15px;line-height:1.35}
.fp-v3-version{margin-left:auto;color:#698a90;font-weight:850}
body[data-mode="peserta"] #financial>.panel,body[data-mode="peserta"] #financial>.two>.panel{border:1px solid #dfebed;box-shadow:0 7px 24px #0f395313}
body[data-mode="peserta"] #financial>.panel>h2{font-size:18px;color:#0c3954}
body[data-mode="peserta"] #financial #payments table{font-size:12px}
body[data-mode="peserta"] #financial #metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-mode="peserta"] #financial .metric{min-width:0}
body[data-mode="peserta"] #financial .metric strong{font-size:clamp(14px,2vw,20px);overflow-wrap:anywhere}
/* Bookkeeping: maintain data and action semantics; improve mobile hierarchy and legibility. */
body:not([data-mode]) .mobile-brand .fp-brand-app{background:#061b34 url('./assets/icon-192.png') center/cover no-repeat!important;color:transparent}
body:not([data-mode]) .mobile-brand{font-weight:900;color:#092d47;letter-spacing:.02em}
body:not([data-mode]) .sidebar .brand{padding-top:1px}
body:not([data-mode]) .stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body:not([data-mode]) .hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 89% -20%,#22c4aa5c,transparent 40%),linear-gradient(110deg,#041c35,#0a415d 64%,#078980)!important}
body:not([data-mode]) .hero::after{content:"";pointer-events:none;position:absolute;right:-80px;bottom:-150px;width:270px;height:270px;border:1px solid #ffffff2b;border-radius:50%}
body:not([data-mode]) .nav-link .nav-icon{color:#e5d184}
body:not([data-mode]) .stat-card{min-width:0;box-shadow:0 8px 26px #0c334913}
body:not([data-mode]) .page-heading .sub,body:not([data-mode]) .page-heading p{color:#698195}
body:not([data-mode]) .panel .table-wrap{scrollbar-color:#78c8bc #edf8f5}
body:not([data-mode]) .input:focus,body:not([data-mode]) select:focus{border-color:#15b8a4}
body:not([data-mode]) .tag.paid{color:#0b8566}
@media(max-width:900px){
 body[data-mode="peserta"] #financial #metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fp-v3-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body:not([data-mode]) .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 body[data-mode] main{padding:13px 13px 90px!important}
 body[data-mode] .fp-app-header{background:#061e35!important;color:#fff}
 body[data-mode] .fp-app-header a{color:#e5f8ef!important}
 body[data-mode] main>.h{display:none}
 body[data-mode] #content>.h{margin-top:12px!important}
 .fp-dashboard-hero{padding:27px 20px 25px!important;margin-top:0!important;border-radius:20px!important}
 .fp-dashboard-hero h2,.fp-participant-hero h2{font-size:27px!important;max-width:330px}
 .fp-dashboard-hero p,.fp-participant-hero p{font-size:12px!important;line-height:1.55}
 .fp-dashboard-hero .fp-hero-chips{flex-wrap:wrap}
 .fp-v3-stats{margin:0 0 13px}
 .fp-v3-stat{padding:14px 12px 13px;border-radius:14px;min-height:126px}
 .fp-v3-stat strong{font-size:24px}
 .fp-v3-stat strong.fp-live-value{font-size:15px}
 .fp-stat-row{margin-bottom:13px}.fp-stat-row span{font-size:10.5px}.fp-stat-row i{font-size:15px;width:29px;height:29px;border-radius:9px}
 .fp-v3-stat small{font-size:9px}
 body[data-mode] #adminNav.fp-admin-menu{background:#fff!important;padding:16px 13px!important;border-radius:18px!important}
 #adminNav.fp-admin-menu .buttonrow .button{min-height:90px!important;padding:16px 12px 36px!important;font-size:13px!important}
 #adminNav.fp-admin-menu #openBooks,#adminNav.fp-admin-menu #openFinance,#adminNav.fp-admin-menu #openLive{border-top-width:3px!important}
 body[data-mode] .fp-auth-card{margin:6px auto 20px!important}
 body[data-mode] .fp-auth-art{padding:19px 17px!important}
 body[data-mode] .fp-auth-card h2{font-size:23px!important}
 .fp-participant-tiles{gap:8px;margin:13px 0 8px}
 .fp-tile{min-height:106px;padding:10px 4px;border-radius:13px}
 .fp-tile span{width:35px;height:35px;font-size:22px}
 .fp-tile strong{font-size:11px}.fp-tile small{font-size:9px}
 .fp-participant-info{font-size:10px;padding:10px}
 body[data-mode="peserta"] #financial>.panel{padding:14px!important}
 body[data-mode="peserta"] #financial .metric{padding:12px 10px;border-radius:12px}
 body[data-mode="peserta"] #financial .metric strong{font-size:16px}
 body:not([data-mode]) .topbar{height:auto!important;min-height:76px!important;padding:12px 14px!important;align-items:center;flex-wrap:wrap}
 body:not([data-mode]) .topbar-title strong{font-size:17px!important}
 body:not([data-mode]) .topbar-title .eyebrow{font-size:9px!important}
 body:not([data-mode]) .mobile-brand{font-size:12px}
 body:not([data-mode]) .topbar-controls{margin-left:auto;gap:5px}
 body:not([data-mode]) .topbar-controls select{min-height:40px!important;max-width:133px}
 body:not([data-mode]) .page{padding:16px 12px 108px!important}
 body:not([data-mode]) .hero{padding:23px 19px 24px!important;border-radius:19px!important;margin-bottom:15px}
 body:not([data-mode]) .hero h1{font-size:24px!important;max-width:300px}
 body:not([data-mode]) .stat-grid{gap:9px!important;margin-bottom:15px!important}
 body:not([data-mode]) .stat-card{padding:15px 12px!important;border-radius:15px!important;min-height:120px}
 body:not([data-mode]) .stat-card .stat-label{font-size:10.5px!important}
 body:not([data-mode]) .stat-card .stat-value{font-size:20px!important}
 body:not([data-mode]) .stat-card .stat-desc{font-size:10px!important;line-height:1.4}
 body:not([data-mode]) .panel{border-radius:16px!important;margin-bottom:13px}
 body:not([data-mode]) .panel-head{padding:15px 14px 10px!important}
 body:not([data-mode]) .panel-head h2{font-size:15px!important}
 body:not([data-mode]) .panel-body{padding:12px 14px 15px!important}
 body:not([data-mode]) .page-heading h1{font-size:21px!important}
 body:not([data-mode]) .page-heading p{font-size:11px!important}
 body:not([data-mode]) .btn{border-radius:10px!important;min-height:43px!important;font-size:12px!important}
 body:not([data-mode]) .bottom-nav{border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom);background:#fff!important}
 body:not([data-mode]) .bottom-nav button{min-height:61px!important;font-size:10px!important}
 body:not([data-mode]) .bottom-nav .nav-icon svg{width:21px;height:21px}
 body:not([data-mode]) .payment-mobile-row{min-height:68px;padding:11px 0;gap:8px}
 body:not([data-mode]) .payment-mobile-name{font-size:12px!important}
 body:not([data-mode]) .payment-mobile-state{font-size:10px}
 body:not([data-mode]) .payment-mobile-pay{min-height:43px;font-size:11px!important}
}
@media(max-width:360px){.fp-stat-row span{font-size:9px}.fp-participant-tiles{gap:5px}.fp-tile strong{font-size:10px}.fp-v3-stat strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media print{.fp-workspace-sidebar,.fp-v3-stats,.fp-participant-tiles,.fp-participant-info{display:none!important}body[data-mode="admin"].fp-authenticated main,body[data-mode="admin"].fp-authenticated .fp-app-header{margin-left:0}}

/* Keep the full overview on the dashboard, simplify module view. */
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) .fp-dashboard-hero,body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) .fp-v3-stats{display:none!important}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .fp-section-heading{display:none}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu{padding:10px 13px!important;margin:9px 0 15px}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .buttonrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .buttonrow .button{padding:10px 7px!important;min-height:46px!important;font-size:11px!important;line-height:1.3;border-top-width:0!important}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .buttonrow .button:after{display:none}
body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .help,body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu #openAccessSettings{display:none}
@media(max-width:400px){body[data-mode="admin"].fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .buttonrow .button{font-size:10px!important;padding:7px 4px!important}}

/* Approved icon final: no extra outer ring, frame or border. */
.fp-side-brand img,.fp-header-brand img,.fp-hero-emblem img,.fp-auth-art img{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;}

/* V1.5g: talangan is a first-class read-only admin module */
#talanganPanel{background:#fff;overflow:hidden}
.talang-head{display:flex;gap:15px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.talang-eyebrow{letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;font-weight:850;color:#087f80}
.talang-head h2{margin:8px 0!important;font-size:1.35rem!important;color:#0c374d}
.talang-head p{color:#617789;font-size:.88rem;max-width:610px;line-height:1.6}
.talang-pill{display:inline-flex;align-items:center;border:1px solid #cce4e4;background:#effaf7;border-radius:99px;padding:8px 13px;color:#0c7067;font-size:.78rem;font-weight:850}
.talang-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:17px 0}
.talang-kpi article{background:#f2f8fa;border:1px solid #dfeaec;border-radius:15px;padding:14px;min-width:0}
.talang-kpi article.is-talang{background:#fff5e8;border-color:#f4d8aa}
.talang-kpi small{font-size:.75rem;display:block;line-height:1.4;color:#546c7c}
.talang-kpi strong{display:block;font-size:clamp(.98rem,2vw,1.35rem);font-variant-numeric:tabular-nums;margin-top:8px;color:#15354e;overflow-wrap:anywhere}
.talang-info{background:#eff7f7;border:1px solid #d3e8e6;border-radius:12px;padding:13px 16px;color:#365667;font-size:.84rem;line-height:1.75}
.talang-alert{background:#fff5e8;border-color:#f4d8aa;color:#7b521c}
.talang-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:17px 0}
.talang-controls .button{min-height:40px}
.talang-controls .talang-meta{font-size:.78rem;color:#687d8c}
.talang-section-title{font-weight:850;color:#113a51;font-size:1rem;margin:20px 0 9px}
.talang-table{overflow-x:auto;border:1px solid #dce9ef;border-radius:12px}
.talang-table table{width:100%;border-collapse:collapse;min-width:590px}
.talang-table td,.talang-table th{padding:10px 12px;font-size:.82rem;white-space:normal;border-bottom:1px solid #e8eef1}
.talang-table thead th{background:#f3f9fa;font-size:.76rem}
.talang-table tbody tr:last-child td{border-bottom:0}
.talang-table td:nth-child(n+2),.talang-table th:nth-child(n+2){text-align:right;white-space:nowrap}
.talang-empty{color:#648091;font-size:.87rem;border:1px dashed #cededf;padding:15px;border-radius:11px}
.talang-tag{font-size:.71rem;padding:4px 7px;border-radius:99px;color:#0b6952;background:#e9f8f2;font-weight:800;white-space:nowrap}
.talang-tag.warn{color:#966019;background:#fff2df}
@media(max-width:800px){.talang-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.talang-kpi{gap:7px}.talang-kpi article{padding:11px}.talang-head h2{font-size:1.12rem!important}.talang-table table{min-width:570px}body[data-mode="admin".fp-authenticated:not(.fp-dashboard-focus) #adminNav.fp-admin-menu .buttonrow{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Portal peserta: empat jalur transparansi, tanpa kontrol mutasi */
body[data-mode="peserta"] .fp-participant-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
body[data-mode="peserta"] .fp-tile:nth-child(4) span{background:#e7f1ff;color:#4484cc}
body[data-mode="peserta"] #participantTalangan{scroll-margin-top:16px}
body[data-mode="peserta"] #participantTalangan .talang-table{overflow:auto}
@media(max-width:640px){body[data-mode="peserta"] .fp-participant-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-mode="peserta"] .fp-tile{min-height:96px}}
