/* Identitas header konsisten lintas halaman */
.bb-shared-header{background:linear-gradient(125deg,#590018,#800020);color:white;padding:18px 22px;display:flex;align-items:center;gap:14px;border-radius:16px;box-shadow:0 8px 20px #59001822;margin-bottom:20px;min-height:82px}
.bb-shared-header img{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.bb-shared-header h1,.bb-shared-header h2{color:white!important;font-size:clamp(17px,2.5vw,24px);font-weight:750;margin:0}
.bb-shared-header p{color:#ffe5ec!important;font-size:13px;margin:3px 0 0}
.bb-public-nav{position:fixed;bottom:0;left:0;right:0;z-index:1000;display:flex;justify-content:space-around;background:white;border-top:2px solid #800020;padding:9px 5px max(9px,env(safe-area-inset-bottom));box-shadow:0 -4px 16px #59001819}
.bb-public-nav a{color:#800020;text-decoration:none;display:flex;align-items:center;flex-direction:column;gap:4px;font-size:11px;flex:1;text-align:center;font-weight:600}
.bb-public-nav a.active{color:#590018;background:#fff0f4;border-radius:10px}
.bb-public-nav i{font-size:19px}
body.bb-public-page{padding-bottom:85px}
@media(min-width:768px){.bb-public-nav{max-width:580px;left:50%;right:auto;transform:translateX(-50%);border:1px solid #e6b9c5;border-radius:18px 18px 0 0;width:100%}}

/* Landing hero: satu judul dari pengaturan aplikasi utama */
#landing-screen .landing-hero.bb-shared-header{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:170px;padding:36px 22px;gap:0}
#landing-screen .landing-hero.bb-shared-header h1{font-size:clamp(30px,4.8vw,58px);line-height:1.15;font-weight:800;letter-spacing:-.025em;max-width:1100px;margin:0 auto;text-align:center;text-wrap:balance}
@media(max-width:600px){#landing-screen .landing-hero.bb-shared-header{min-height:145px;padding:28px 18px}#landing-screen .landing-hero.bb-shared-header h1{font-size:clamp(26px,7vw,38px)}}

/* Header identitas terpadu untuk seluruh halaman selain login */
.bb-shared-header .bb-hero-logo{width:100px;height:100px;max-width:24vw;object-fit:contain;filter:drop-shadow(0 4px 9px #0003)}
#landing-screen .landing-hero.bb-shared-header{gap:18px;min-height:215px}
#landing-screen .landing-hero.bb-shared-header h1{font-size:clamp(30px,4.8vw,58px)}
.app-header{background:linear-gradient(125deg,#590018,#800020);color:white;border-radius:16px;padding:16px 22px;margin-bottom:18px}
.app-header #header-app-name{color:white}
@media(max-width:600px){#landing-screen .landing-hero.bb-shared-header{min-height:185px;gap:12px}.bb-shared-header .bb-hero-logo{width:76px;height:76px}}

/* Revisi: seluruh header bersudut tegas dan judul landing proporsional */
.bb-shared-header, .app-header, #landing-screen .landing-hero.bb-shared-header, .bb-form-header { border-radius:0 !important; }
#landing-screen .landing-hero.bb-shared-header h1 { font-size:clamp(24px,3.2vw,42px) !important; line-height:1.25; max-width:920px; letter-spacing:-.015em; }
@media(max-width:600px){#landing-screen .landing-hero.bb-shared-header h1{font-size:clamp(22px,5.5vw,30px) !important;} }
/* Hero landing membulat, header halaman lain tetap bersudut tegas. */
#landing-screen .landing-hero.bb-shared-header {border-radius:22px !important;overflow:hidden;}
.bb-shared-header:not(.landing-hero), .app-header, .bb-form-header {border-radius:0 !important;}

/* Unified Bottom Navigation: public and authenticated layouts */
:root { --bb-nav-maroon:#800020; --bb-nav-dark:#590018; }
.bottom-nav, .bottom-nav.public-nav, .bb-public-nav {
 position:fixed!important; left:50%!important; right:auto!important;
 bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
 transform:translateX(-50%)!important;
 width:calc(100% - 24px)!important; max-width:420px!important;
 height:68px!important; box-sizing:border-box!important;
 display:flex; align-items:center; justify-content:space-around; gap:4px;
 padding:7px!important; border:1px solid #f2d8df!important;
 border-radius:24px!important; background:rgba(255,252,248,.97)!important;
 box-shadow:0 10px 32px rgba(78,55,40,.18)!important;
 backdrop-filter:blur(16px); z-index:1000!important;
}
.bottom-nav .nav-item, .bb-public-nav > a {
 flex:1; min-width:0; height:100%; display:flex; flex-direction:column;
 align-items:center; justify-content:center; gap:4px;
 padding:6px 4px; box-sizing:border-box; border:0;
 border-radius:18px!important; background:transparent;
 color:#865767!important; font:600 .64rem system-ui,sans-serif;
 text-align:center; text-decoration:none; cursor:pointer;
}
.bottom-nav .nav-item i, .bb-public-nav > a i {font-size:1.15rem!important;}
.bottom-nav .nav-item.active, .bb-public-nav > a.active {
 background:#590018!important; color:#fff!important;
 box-shadow:0 3px 10px rgba(62,39,35,.24)!important;
}
.bottom-nav .nav-item:hover, .bb-public-nav > a:hover {background:#fbeef2;color:#590018!important;}
.bottom-nav .nav-item.active:hover, .bb-public-nav > a.active:hover {background:#590018!important;color:#fff!important;}
@media(min-width:768px){
 .bottom-nav:not(.public-nav){display:none!important;}
 .bb-public-nav,.bottom-nav.public-nav{display:flex!important;}
}
body.bb-embedded .bb-public-nav,body.bb-embedded .bottom-nav {display:none!important;}
