/* ==========================================================================
   থানা এজেন্ট — "এজেন্ট হোন" page, agent panel, checkout area (tone: purple)
   ========================================================================== */
:root{--fba:#7C3AED;--fba-dark:#6D28D9;--fba-soft:#F5F3FF;--fba-line:#DDD6FE}

/* Tone in the account hub / spaces */
.fbb-space-card.is-purple:before{background:var(--fba)}
.is-purple > .fbb-space-top .fbb-space-ico,.fbb-more-item.is-purple .fbb-space-ico{background:var(--fba-soft);color:var(--fba)}
.fbb-more-item.is-purple em{color:var(--fba-dark)}
.fbb-space-banner.is-purple{background:linear-gradient(135deg,var(--fba),var(--fba-dark))}
.fbb-mod-dot.is-purple{background:var(--fba)}
.wfb-acc-side.in-space.is-purple .wfb-acc-nav li.is-active a{background:var(--fba) !important;border-color:var(--fba) !important}
.wfb-acc-side.in-space.is-purple .wfb-acc-back{background:var(--fba-soft);color:var(--fba-dark) !important}
.fba-btn-purple{background:var(--fba) !important;border-color:var(--fba) !important;color:#fff !important}
.fba-btn-purple:hover{background:var(--fba-dark) !important;border-color:var(--fba-dark) !important}

/* Page */
.fba-wrap{max-width:1000px;margin:0 auto;padding:24px 16px 48px}
.fba-preview-note{margin-bottom:14px;padding:10px 14px;border-radius:12px;background:#FEF3C7;border:1px solid #FDE68A;color:#78350F;font-size:14px}
.fba-hero{position:relative;padding:32px;border-radius:22px;color:#fff;text-align:center;overflow:hidden;background:radial-gradient(120% 140% at 100% 0%,rgba(124,58,237,.6) 0%,transparent 55%),linear-gradient(135deg,var(--wfb-blue-dark,#1E3A8A),var(--wfb-blue,#1D4ED8));box-shadow:var(--wfb-shadow-lg,0 20px 40px rgba(15,23,42,.18))}
.fba-hero:after{content:"🤝";position:absolute;right:14px;bottom:-30px;font-size:150px;line-height:1;opacity:.1;pointer-events:none}
.fba-hero > *{position:relative;z-index:1}
.fba-eyebrow{display:inline-block;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.16);font-size:13px;font-weight:700}
.fba-hero h1{margin:10px 0 6px !important;color:#fff !important;font-size:clamp(24px,3.4vw,34px) !important;line-height:1.25 !important}
.fba-hero p{max-width:640px;margin:0 auto !important;opacity:.94;font-size:15.5px;line-height:1.6}
.fba-hero p b{color:#FDE68A}

.fba-perks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 !important;padding:0 !important;list-style:none !important}
.fba-perks li{display:flex;gap:10px;align-items:flex-start;margin:0 !important;padding:14px;border:1px solid var(--wfb-line,#E5E7EB);border-radius:16px;background:#fff}
.fba-perks li b{flex:none;font-size:24px;line-height:1}
.fba-perks li span{font-size:13px;line-height:1.45;color:var(--wfb-muted,#6B7280)}
.fba-perks li strong{display:block;font-size:15px;color:var(--wfb-text,#111827)}

.fba-how{margin:0 0 18px;padding:20px;border-radius:18px;background:var(--fba-soft);border:1px solid var(--fba-line)}
.fba-how h2{margin:0 0 12px !important;font-size:19px !important;color:var(--fba-dark)}
.fba-how ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 !important;padding:0 !important;list-style:none !important}
.fba-how li{display:flex;gap:10px;align-items:flex-start;margin:0 !important}
.fba-how li b{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--fba);color:#fff;font-size:15px}
.fba-how li span{font-size:13px;line-height:1.45;color:var(--wfb-muted,#6B7280)}
.fba-how li strong{display:block;font-size:14.5px;color:var(--wfb-text,#111827)}

.fba-card{margin-bottom:14px;padding:22px;border:1px solid var(--wfb-line,#E5E7EB);border-radius:18px;background:#fff}
.fba-h{margin:0 0 6px !important;font-size:22px !important}
.fba-step{display:flex;align-items:center;gap:10px;margin:22px 0 12px !important;padding-top:18px;border-top:1px solid var(--wfb-line,#E5E7EB);font-size:17px !important}
.fba-form > .fba-step:first-of-type{border-top:0;padding-top:4px;margin-top:10px !important}
.fba-step b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--fba);color:#fff;font-size:14px}
.fba-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.fba-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.fba-loc .wfb-loc-group,.fba-co-area .wfb-loc-group,.fba-adm-loc .wfb-loc-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
.fba-opt{font-weight:400;color:var(--wfb-muted,#6B7280);font-size:12px}
.fba-help{margin:0 0 10px !important;font-size:13.5px;color:var(--wfb-muted,#6B7280)}
.fba-hp{position:absolute !important;left:-9999px !important}
.fba-thana-state{margin:-2px 0 6px;padding:10px 14px;border-radius:12px;font-size:14px;font-weight:600}
.fba-thana-state.is-free{background:#ECFDF5;border:1px solid #A7F3D0;color:#065F46}
.fba-thana-state.is-busy{background:#FEF2F2;border:1px solid #FECACA;color:#991B1B}
.fba-files{margin:4px 0 12px}
.fba-drop{display:flex;align-items:center;gap:14px;max-width:420px;padding:12px 14px;border:2px dashed var(--fba-line);border-radius:14px;background:var(--fba-soft);cursor:pointer}
.fba-drop:before{content:"📷";font-size:26px;line-height:1}
.fba-drop.has-files:before{display:none}
.fba-drop-prev:empty{display:none}
.fba-drop-prev img{width:64px !important;height:64px !important;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 8px rgba(15,23,42,.12)}
.fba-drop-txt b{display:block;font-size:15px;color:var(--fba-dark)}
.fba-drop-txt small{display:block;font-size:12.5px;color:var(--wfb-muted,#6B7280)}
.fba-agree{display:flex;gap:10px;align-items:flex-start;margin:14px 0 !important;font-size:14px;line-height:1.5;cursor:pointer}
.fba-agree input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--fba)}

/* Status cards */
.fba-status,.fba-empty{text-align:center;padding:30px 22px}
.fba-status-ico{font-size:44px;line-height:1;margin-bottom:8px}
.fba-status h2,.fba-empty h2{margin:0 0 6px !important;font-size:21px !important}
.fba-status p,.fba-empty p{max-width:560px;margin:0 auto 16px !important;font-size:15px !important;line-height:1.6 !important;color:var(--wfb-muted,#6B7280)}
.fba-status.is-active{border-color:#A7F3D0;background:#F0FDF4}
.fba-status.is-pending{border-color:var(--fba-line);background:var(--fba-soft)}
.fba-empty-sm{color:var(--wfb-muted,#6B7280);font-size:14.5px;text-align:center}

/* Panel */
.fba-stats{display:grid;grid-template-columns:1.3fr repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.fba-stats > div{display:flex;flex-direction:column;gap:2px;padding:16px;border:1px solid var(--wfb-line,#E5E7EB);border-radius:16px;background:#fff}
.fba-stats small{font-size:13px;color:var(--wfb-muted,#6B7280)}
.fba-stats strong{font-size:22px;line-height:1.25;color:var(--wfb-text,#111827)}
.fba-stats em{font-style:normal;font-size:12px;color:var(--wfb-muted,#6B7280)}
.fba-stats .is-main{border:0;background:linear-gradient(135deg,var(--fba),var(--fba-dark));color:#fff}
.fba-stats .is-main small,.fba-stats .is-main strong{color:#fff}
.fba-stats .is-main strong{font-size:28px}
.fba-stats .is-main a{margin-top:6px;color:#FDE68A !important;font-weight:700;font-size:14px;text-decoration:none}
.fba-share{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:16px;align-items:center;background:var(--fba-soft);border-color:var(--fba-line)}
.fba-share h3{margin:0 0 4px !important;font-size:16.5px !important;line-height:1.35 !important}
.fba-share p{margin:0 !important;font-size:13.5px !important;line-height:1.5 !important;color:var(--wfb-muted,#6B7280)}
.fba-copy{display:flex;gap:8px}
.fba-copy input{flex:1;min-width:0;height:44px;padding:0 12px;border:1px solid var(--fba-line);border-radius:12px;background:#fff;font-size:13.5px}
.fba-copy .wfb-btn{flex:none;height:44px;padding:0 16px}
.fba-rows{display:grid;gap:8px}
.fba-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--wfb-line,#E5E7EB);border-radius:14px;background:#fff}
.fba-row-main{min-width:0}
.fba-row-main strong{display:block;font-size:15px}
.fba-row-main small{display:block;font-size:12.5px;color:var(--wfb-muted,#6B7280);overflow-wrap:anywhere}
.fba-row-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.fba-row-side b{font-size:16px}
.fba-row-side b.is-pos{color:#047857}.fba-row-side b.is-neg{color:#B91C1C}
.fba-row.is-cancelled,.fba-row.is-rejected{opacity:.6}
.fba-row.is-cancelled b{text-decoration:line-through}
.fba-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;background:#F1F5F9;color:#475569}
.fba-pill.is-pending,.fba-pill.is-requested{background:#FEF3C7;color:#92400E}
.fba-pill.is-approved,.fba-pill.is-paid{background:#DCFCE7;color:#166534}
.fba-pill.is-cancelled,.fba-pill.is-rejected{background:#FEE2E2;color:#991B1B}
.fba-pager{display:flex;justify-content:space-between;margin-top:12px}
.fba-withdraw{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}
.fba-bal{padding:16px;border-radius:14px;background:linear-gradient(135deg,var(--fba),var(--fba-dark));color:#fff}
.fba-bal small,.fba-bal em{display:block;font-size:13px;font-style:normal;opacity:.9}
.fba-bal strong{display:block;font-size:28px;line-height:1.3}
.fba-note{font-size:14px !important;padding:14px;border-radius:12px;background:var(--fba-soft);border:1px solid var(--fba-line);color:#4C1D95;font-size:14px;line-height:1.55}

/* Checkout: "আপনার এলাকা" for packages */
.fba-co-area{margin:18px 0 6px;padding:16px 18px;border:1.5px solid var(--fba-line);border-radius:16px;background:#FCFBFF}
.fba-co-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.fba-co-head > span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--fba-soft);font-size:20px}
.fba-co-head h3{margin:0 !important;font-size:17px !important}
.fba-co-head p{margin:2px 0 0 !important;font-size:13px;color:var(--wfb-muted,#6B7280)}
.fba-co-area .wfb-field{margin-bottom:6px}

@media (max-width:900px){
	.fba-perks,.fba-how ol{grid-template-columns:repeat(2,minmax(0,1fr))}
	.fba-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
	.fba-stats .is-main{grid-column:1/-1}
	.fba-share{grid-template-columns:minmax(0,1fr)}
	.fba-copy{flex-wrap:wrap}
	.fba-copy input{flex-basis:100%}
	.fba-copy .wfb-btn{flex:1}
}
@media (max-width:767px){
	.fba-wrap{padding:14px 12px 40px}
	.fba-hero{padding:24px 16px;border-radius:18px}
	.fba-card{padding:16px;border-radius:16px}
	.fba-grid2,.fba-grid3{grid-template-columns:1fr}
	.fba-loc .wfb-loc-group,.fba-co-area .wfb-loc-group{grid-template-columns:1fr 1fr;gap:0 10px}
	.fba-loc .wfb-loc-group .wfb-field:last-child,.fba-co-area .wfb-loc-group .wfb-field:last-child{grid-column:1/-1}
	.fba-perks li,.fba-how{padding:12px}
	.fba-perks li span,.fba-how li span{font-size:12.5px}
	.fba-stats strong{font-size:18px}
	.fba-withdraw{grid-template-columns:1fr}
	.fba-copy{flex-wrap:wrap}
	.fba-copy input{flex-basis:100%}
	.fba-copy .wfb-btn{flex:1}
	.fba-row{padding:11px 12px}
}
