/* BN SERSY V80.4 — Premium Navy & Gold portal layout */
:root{--bn-gold:#d9ad4d;--bn-gold2:#f3cf78;--bn-ink:#f6f8fc;--bn-muted:#c4d1e1;--bn-line:#49627d;--bn-deep:#061426;--bn-panel:#102945;}
html,body{min-height:100%;background:radial-gradient(ellipse at 18% 0%,#183b5d 0,transparent 36%),linear-gradient(135deg,#061426,#0b2038 58%,#061426)!important;color:#f4f7fb!important}
body{font-family:'Segoe UI',Tahoma,'Noto Kufi Arabic',Arial,sans-serif}
.wrap{max-width:none!important;width:calc(100% - 204px)!important;margin:0 190px 0 0!important;padding:8px 14px 44px!important}
/* Utility strip */
.topbar{position:sticky!important;top:0!important;z-index:120!important;width:100%!important;max-width:none!important;min-height:52px;display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:nowrap!important;margin:0 0 9px!important;padding:5px 10px!important;border:0!important;border-bottom:1px solid rgba(218,177,86,.6)!important;border-radius:0!important;background:linear-gradient(100deg,#07182c,#102a47 65%,#07182c)!important;box-shadow:0 5px 22px #0005!important;color:#fff!important}
.topbar .home-btn,#qr-bar,#qt-btn{display:none!important}
.bn-tool-btn,.bn-date-btn{height:38px!important;min-width:40px!important;border:1px solid rgba(226,190,106,.5)!important;border-radius:50%!important;background:linear-gradient(145deg,#1b3c5e,#07192d)!important;color:#fff!important;font-size:18px!important;box-shadow:0 3px 12px #0004!important}
#bn-lang-btn{border-radius:999px!important;min-width:100px!important;font-size:13px!important}
#bn-date-btn{margin-inline-start:auto!important;border-radius:10px!important;padding:0 12px!important;font-size:13px!important}
/* Right navigation rail */
.bn-sidebar{position:fixed!important;z-index:130!important;right:8px!important;left:auto!important;top:8px!important;bottom:8px!important;width:178px!important;padding:16px 10px!important;gap:7px!important;border:1.5px solid var(--bn-gold)!important;border-radius:25px!important;background:linear-gradient(165deg,#0b2039 0%,#061426 74%,#102b49)!important;box-shadow:0 16px 45px #0008!important;color:#fff!important}
.bn-side-brand{padding:8px 5px 18px!important;margin:0 0 5px!important;text-align:center!important;border-bottom:1px solid #d6aa4d55!important}
.bn-side-brand .his-script{display:block!important;width:142px!important;height:56px!important;margin:0 auto 4px!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important}
.bn-side-brand b{display:block!important;font-size:16px!important;letter-spacing:0!important;color:#fff!important}
.bn-side-brand span:not(.his-script){display:block!important;margin-top:1px!important;color:#e4c477!important;font-size:12px!important;font-weight:800!important}
.bn-side-link{min-height:42px!important;padding:8px 8px!important;gap:8px!important;border-radius:11px!important;color:#f5f7fb!important;font-size:12px!important;text-align:right!important}
.bn-side-link i{color:#f2c75f!important;font-size:19px!important}
.bn-side-link.active{background:linear-gradient(120deg,#f4d17b,#d6a13b)!important;color:#0c2038!important;box-shadow:0 6px 18px #d7a74140!important}
.bn-side-link.active i{color:#0c2038!important}
.bn-side-support{padding:11px 9px!important;border:1px solid var(--bn-gold)!important;border-radius:15px!important;background:linear-gradient(145deg,#122f4c,#08192c)!important;color:#fff!important;text-align:center!important}
.bn-side-support b{font-size:13px!important}.bn-side-support small{color:#e7c477!important}
/* Header: personal brand left, navigation center, firm mark right */
.pay-header{position:relative!important;top:auto!important;z-index:110!important;display:grid!important;grid-template-columns:205px minmax(0,1fr) 170px!important;grid-template-rows:auto!important;grid-template-areas:'personal nav firm'!important;align-items:center!important;gap:8px!important;min-height:120px!important;margin:0 0 9px!important;padding:9px 14px!important;border:1.5px solid var(--bn-gold)!important;border-bottom:3px solid var(--bn-gold)!important;border-radius:20px!important;background:linear-gradient(110deg,#06172a,#102c49 60%,#07182b)!important;box-shadow:0 12px 32px #0006!important;direction:ltr!important;overflow:visible!important}
.pay-header .self-side{grid-area:personal!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;min-width:0!important;padding:0!important;direction:rtl!important;text-align:center!important}
.pay-header .self-side .his-script{width:170px!important;height:60px!important;background-size:contain!important}
.pay-header .self-side .his-name{font-size:17px!important;line-height:1.3!important;color:#fff!important;font-weight:900!important}
.pay-header .self-side .his-phone{font-size:14px!important;color:#f4ca68!important;border:1px solid #c99b43!important;border-radius:999px!important;padding:1px 12px!important}
.pay-header .hdr-nav{grid-area:nav!important;display:flex!important;align-items:stretch!important;justify-content:center!important;gap:0!important;width:100%!important;min-width:0!important;margin:0!important;padding:0 7px!important;border-inline:1px solid #d9ad4d66!important;direction:rtl!important;overflow:visible!important}
.pay-header .hdr-nav button{flex:1 1 0!important;min-width:0!important;min-height:70px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:7px 5px!important;border:0!important;border-inline-start:1px solid #d9ad4d4a!important;border-radius:0!important;background:transparent!important;color:#fff!important;font-size:13px!important;font-weight:900!important;white-space:nowrap!important;transition:.18s!important}
.pay-header .hdr-nav button:first-child{border-inline-start:0!important}
.pay-header .hdr-nav button:hover,.pay-header .hdr-nav button:focus-visible{background:linear-gradient(145deg,#f1d17e,#c99535)!important;color:#0b2038!important;border-radius:12px!important;outline:none!important;box-shadow:0 0 18px #d7aa4e66!important}
.pay-header .hdr-nav button .hn-ic{width:28px!important;height:28px!important;color:#f2c65e!important}
.pay-header .hdr-nav button:hover .hn-ic{color:#0b2038!important}
.pay-header .firm-side{grid-area:firm!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;padding:0 4px!important;direction:rtl!important;text-align:center!important}
.pay-header .firm-logo{width:auto!important;height:58px!important;max-width:135px!important;object-fit:contain!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important}
.pay-header .firm-txt{display:block!important;text-align:center!important}
.pay-header .firm-name{font-size:12px!important;line-height:1.4!important;color:#fff!important;font-weight:900!important}
.pay-header .firm-partners{font-size:10px!important;color:#e4c477!important}
/* Remove intermediate brand ribbon; it is already represented in the hero */
.brand-ribbon{display:none!important}
/* Hero artwork + headline */
.hero-bn{position:relative!important;display:grid!important;grid-template-columns:1.08fr .92fr!important;grid-template-rows:1fr!important;min-height:300px!important;margin:0 0 9px!important;padding:0!important;overflow:hidden!important;text-align:right!important;border:1px solid #d3a84e!important;border-radius:19px!important;background:linear-gradient(115deg,#06172a,#102d4a)!important;box-shadow:0 16px 38px #0007!important}
.hero-pic{grid-column:2!important;grid-row:1!important;position:relative!important;min-height:300px!important;opacity:1!important;background-image:url('bn-sersy-hero-visual.webp')!important;background-size:cover!important;background-position:center center!important}
.hero-pic:after{content:''!important;position:absolute!important;inset:0!important;background:linear-gradient(90deg,rgba(6,20,36,.02),rgba(6,20,36,.12) 70%,rgba(6,20,36,.35))!important}
.hero-curve{grid-column:2!important;grid-row:1!important;right:55%!important;z-index:3!important}
.hero-txt{grid-column:1!important;grid-row:1!important;z-index:4!important;align-self:center!important;padding:28px 26px 58px!important;text-align:right!important}
.bn-eyebrow{font-size:10px!important;letter-spacing:2px!important;color:#efc66d!important;font-weight:900!important}
.hero-bn h1{font-size:clamp(34px,4vw,54px)!important;color:#fff!important;letter-spacing:.04em!important;text-align:right!important;margin:4px 0!important;text-shadow:0 4px 22px #0007!important}
.hero-sub{justify-content:flex-start!important;color:#f0c66f!important;font-size:clamp(17px,2vw,22px)!important}
.hero-bn p{font-size:14px!important;line-height:1.95!important;color:#e0e8f2!important;max-width:620px!important;margin:8px 0!important}
.hero-tiles,.hero-acts{display:none!important}
/* Global search floats along the bottom of the hero */
.srch-wrap{position:absolute!important;z-index:8!important;left:17%!important;right:17%!important;bottom:11px!important;width:auto!important;margin:0!important;display:flex!important;align-items:center!important;min-height:46px!important;padding:0 16px!important;border:2px solid #d7a83e!important;border-radius:999px!important;background:#f8fafc!important;color:#122b46!important;box-shadow:0 5px 18px #0006!important}
.srch-wrap input{background:transparent!important;color:#122b46!important;border:0!important;box-shadow:none!important;font-weight:800!important}
#gsr{z-index:20!important}
/* Quick links strip */
.office-div{display:none!important}
.links-card{margin:0 0 9px!important;padding:8px 12px!important;border:1px solid #60758d!important;border-radius:17px!important;background:linear-gradient(100deg,#0b2038,#183957 55%,#0a1c31)!important;box-shadow:0 8px 22px #0005!important}
.links-card .sec-title{display:none!important}
.links-card .linkdir{margin:0!important}
.links-card .ld-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.links-card .ld-row{min-height:56px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:7px!important;border:0!important;border-inline-start:1px solid #d8ad4d55!important;border-radius:0!important;background:transparent!important;color:#fff!important}
.links-card .ld-row:first-child{border-inline-start:0!important}
.links-card .ld-ic{color:#f1c65e!important}.links-card .ld-t{color:#fff!important;font-weight:900!important;font-size:12px!important}.links-card .ld-caret{color:#eac36c!important}
.links-card .ld-panels{position:relative!important;z-index:50!important}
.links-card .ld-sub{background:#0b2038!important;border:1px solid #d3a84e!important;border-radius:12px!important;box-shadow:0 12px 30px #0008!important;color:#fff!important}
.links-card .ld-subrow{color:#fff!important}
/* Professional calculator dashboard */
.bn-home-dashboard{margin:0 0 18px!important;padding:14px 15px 18px!important;border:1px solid #526b86!important;border-radius:19px!important;background:linear-gradient(145deg,#0a2038,#102d4c 62%,#07182b)!important;box-shadow:0 14px 35px #0006!important;color:#fff!important}
.bn-dashboard-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin-bottom:10px!important}
.bn-kicker{color:#edc66d!important}.bn-dashboard-head h2{color:#fff!important;font-size:22px!important}.bn-dashboard-head p{color:#c8d5e3!important}
.bn-view-all{border:1px solid #e0b34e!important;color:#f7d98b!important;border-radius:999px!important;background:transparent!important}
.bn-calc-tools{display:flex!important;justify-content:flex-end!important;gap:10px!important;margin:6px 0 12px!important}
.bn-calc-search{display:none!important}
.bn-calc-filters{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.bn-calc-filters button{border:1px solid #b9934b88!important;border-radius:999px!important;padding:6px 12px!important;background:#ffffff0b!important;color:#e8edf5!important;font-size:11px!important}
.bn-calc-filters button.active,.bn-calc-filters button:hover{background:linear-gradient(135deg,#f4d17b,#d4a13b)!important;color:#10233c!important}
.bn-calc-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.bn-calc-card{min-height:145px!important;padding:13px 10px 11px!important;border:1px solid #66809d!important;border-radius:17px!important;background:linear-gradient(145deg,#203d5c,#0b213b)!important;color:#fff!important;box-shadow:inset 0 1px #ffffff14,0 7px 16px #0004!important}
.bn-calc-card:hover{transform:translateY(-3px)!important;border-color:#efc96b!important;box-shadow:0 0 18px #d9ab4540!important}
.bn-calc-icon{font-size:34px!important;color:#f3c85f!important}.bn-calc-card b{font-size:13px!important;color:#fff!important}.bn-calc-card small{font-size:10px!important;color:#d2deeb!important}.bn-calc-card em{border:1px solid #e3b64f!important;border-radius:999px!important;padding:5px 16px!important;color:#f6d77e!important;background:#071a2d!important;font-size:10px!important}
.bn-fav{color:#f5c65b!important}.bn-grid-empty{color:#f3d78c!important}
/* Consistent dark navy / gold treatment for the long-form workspaces */
section.card,.tic-wrap,#bn-suite,.taxlib-layout,.taxlib-main,.taxlib-sidebar{background:linear-gradient(145deg,#102945,#0b2038)!important;border-color:#526b86!important;color:#edf3fa!important}
.sec-title,.field label{color:#f2d58f!important}.sec-sub,.hint,p,li{color:inherit}
input,select,textarea{background:#091a2e!important;border-color:#49627d!important;color:#f4f7fb!important}
button{font-family:inherit}
/* Contact us remains visible, lifted above the page edge */
.bn-connect-widget{left:14px!important;bottom:18px!important;z-index:160!important}
/* English mode: mirror the entire composition */
html[lang="en"] .wrap{margin:0 0 0 190px!important}
html[lang="en"] .bn-sidebar{right:auto!important;left:8px!important}
html[lang="en"] .pay-header{direction:rtl!important;grid-template-areas:'firm nav personal'!important}
html[lang="en"] .pay-header .self-side,html[lang="en"] .pay-header .firm-side{direction:ltr!important}
html[lang="en"] .hero-bn,html[lang="en"] .hero-txt{direction:ltr!important;text-align:left!important}
html[lang="en"] .hero-bn h1,html[lang="en"] .hero-bn p{text-align:left!important}
html[lang="en"] .hero-sub{justify-content:flex-start!important}
html[lang="en"] .links-card .ld-grid{direction:ltr!important}
html[lang="en"] .bn-dashboard-head,html[lang="en"] .bn-calc-tools{direction:ltr!important}
html[lang="en"] .bn-calc-card{direction:ltr!important}
html[lang="en"] .srch-wrap{direction:ltr!important}
/* Light mode is genuinely light; brand header/hero keep the signature navy */
html[data-theme="light"] body{background:linear-gradient(135deg,#e9eef5,#f7f9fc)!important;color:#142943!important}
html[data-theme="light"] .bn-home-dashboard,html[data-theme="light"] .links-card{background:linear-gradient(145deg,#102945,#0b2038)!important;color:#fff!important}
html[data-theme="light"] section.card,html[data-theme="light"] #bn-suite,html[data-theme="light"] .taxlib-layout,html[data-theme="light"] .taxlib-main{background:#fff!important;color:#142943!important}
html[data-theme="light"] section.card :is(h1,h2,h3,h4,b,strong,label){color:#173653!important}
html[data-theme="light"] section.card :is(p,small,li,.hint,.sec-sub){color:#52677f!important}
html[data-theme="light"] section.card input,html[data-theme="light"] section.card select,html[data-theme="light"] section.card textarea{background:#fff!important;color:#142943!important;border-color:#cbd7e4!important}
html[data-theme="light"] section.card table th{background:#eaf0f6!important;color:#173653!important}
html[data-theme="light"] section.card table td{color:#243b55!important;border-color:#dce4ed!important}
@media(max-width:1100px){.wrap{width:100%!important;margin:0 auto!important;padding:8px 12px 42px!important}.bn-sidebar{display:none!important}.bn-sidebar.open{display:flex!important;right:10px!important;left:auto!important;top:10px!important;bottom:10px!important;width:min(290px,calc(100vw - 20px))!important}.pay-header{grid-template-columns:155px minmax(0,1fr) 135px!important}.pay-header .self-side .his-script{width:135px!important;height:50px!important}.pay-header .hdr-nav button{font-size:11px!important}.pay-header .firm-logo{max-width:110px!important;height:48px!important}}
@media(max-width:760px){.wrap{padding:6px 8px 36px!important}.topbar{gap:5px!important;overflow-x:auto!important}.pay-header{grid-template-columns:1fr!important;grid-template-areas:'personal' 'nav' 'firm'!important;gap:7px!important;padding:9px!important}.pay-header .self-side{grid-area:personal!important}.pay-header .self-side .his-script{height:42px!important}.pay-header .self-side .his-name{font-size:14px!important}.pay-header .self-side .his-phone{font-size:12px!important}.pay-header .hdr-nav{grid-area:nav!important;overflow-x:auto!important}.pay-header .hdr-nav button{min-height:58px!important;font-size:10px!important}.pay-header .hdr-nav button .hn-ic{width:22px!important;height:22px!important}.pay-header .firm-side{grid-area:firm!important;flex-direction:row!important}.pay-header .firm-logo{height:38px!important}.hero-bn{grid-template-columns:1fr!important;min-height:390px!important}.hero-pic{grid-column:1!important;grid-row:1!important;position:absolute!important;inset:0!important;opacity:.55!important;min-height:0!important}.hero-txt{grid-column:1!important;grid-row:1!important;padding:24px 14px 72px!important;text-align:center!important}.hero-bn h1{text-align:center!important;font-size:34px!important}.hero-sub{justify-content:center!important;font-size:16px!important}.hero-bn p{text-align:center!important;font-size:12px!important}.srch-wrap{left:5%!important;right:5%!important;bottom:12px!important;min-height:42px!important}.links-card .ld-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.links-card .ld-row{min-height:48px!important}.bn-dashboard-head h2{font-size:17px!important}.bn-calc-tools{justify-content:flex-start!important;overflow-x:auto!important}.bn-calc-filters{flex-wrap:nowrap!important}.bn-calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.bn-calc-card{min-height:135px!important;padding:10px 7px!important}.bn-calc-card b{font-size:12px!important}.bn-calc-card small{font-size:9px!important}.bn-connect-widget{left:8px!important;bottom:10px!important}}
@media(max-width:380px){.bn-calc-grid{grid-template-columns:1fr 1fr!important}.topbar #bn-date-btn{font-size:10px!important}}
.pay-header.has-stage:not(.hdr-compact)>.firm-side,.pay-header.has-stage:not(.hdr-compact)>.self-side{display:flex!important}
.pay-header.has-stage:not(.hdr-compact)>.hdr-nav{display:flex!important}
.pay-header .hdr-stage{display:none!important}
