/* ===================== ParcelGuard design system ===================== */
:root {
    --pg-ink: #0B1124;
    --pg-ink-2: #121A33;
    --pg-iris: #6461F4;
    --pg-iris-2: #8183FB;
    --pg-aqua: #22D3EE;
    --pg-sun: #F59E0B;
    --pg-surface: #F5F7FF;
}
html { scroll-behavior: smooth; }
body { font-family: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
:lang(bn), .font-bangla { font-family: "Hind Siliguri", "Plus Jakarta Sans", sans-serif; }

/* ---------- surfaces ---------- */
.pg-dark { background: radial-gradient(1200px 600px at 10% -10%, rgba(100, 97, 244, .35), transparent 60%),
                       radial-gradient(900px 500px at 100% 10%, rgba(34, 211, 238, .18), transparent 60%),
                       linear-gradient(180deg, #0B1124 0%, #070B18 100%); color: #E8ECF6; }
.pg-light { background: radial-gradient(900px 400px at 100% 0%, rgba(100, 97, 244, .08), transparent 60%), #F5F7FF; }
.pg-glass { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pg-card { background: #fff; border: 1px solid #E3E7F5; border-radius: 1.5rem; box-shadow: 0 1px 0 rgba(11, 17, 36, .04), 0 18px 40px -24px rgba(11, 17, 36, .25); }
.pg-ring { position: relative; }
.pg-ring::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(129, 131, 251, .9), rgba(34, 211, 238, .5), rgba(245, 158, 11, .5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pg-text-grad { background: linear-gradient(90deg, #A3A8FF, #22D3EE 55%, #FCD34D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-text-grad-dark { background: linear-gradient(90deg, #4337C9, #0891B2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- animated mesh + 3D floor grid ---------- */
.pg-mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pg-mesh span { position: absolute; border-radius: 9999px; filter: blur(70px); opacity: .55; animation: pg-float 18s ease-in-out infinite; }
.pg-mesh span:nth-child(1) { width: 420px; height: 420px; background: #5146E5; top: -120px; left: -80px; }
.pg-mesh span:nth-child(2) { width: 360px; height: 360px; background: #0891B2; top: 10%; right: -100px; animation-delay: -6s; }
.pg-mesh span:nth-child(3) { width: 300px; height: 300px; background: #D97706; bottom: -140px; left: 35%; opacity: .25; animation-delay: -12s; }
@keyframes pg-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(40px, 30px, 0) scale(1.08); } 66% { transform: translate3d(-30px, 20px, 0) scale(.95); } }
.pg-floor { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; pointer-events: none;
    background-image: linear-gradient(rgba(129, 131, 251, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(129, 131, 251, .22) 1px, transparent 1px);
    background-size: 56px 56px; transform: perspective(700px) rotateX(64deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: pg-floor 6s linear infinite; }
@keyframes pg-floor { to { background-position: 0 56px, 0 0; } }

/* ---------- 3D parcel cube with orbiting couriers ---------- */
.pg-stage { perspective: 1100px; perspective-origin: 50% 40%; }
.pg-scene { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; margin: auto; transition: transform .2s ease-out; }
.pg-cube { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; transform-style: preserve-3d; animation: pg-spin 16s linear infinite; }
.pg-cube > div { position: absolute; inset: 0; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(100, 97, 244, .95), rgba(43, 39, 128, .95)); border: 1px solid rgba(195, 202, 255, .45);
    box-shadow: inset 0 0 40px rgba(34, 211, 238, .25); backface-visibility: visible; }
.pg-cube > div::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; margin-left: -9px; background: rgba(245, 158, 11, .85); }
.pg-cube > div svg { position: relative; z-index: 1; width: 64px; height: 64px; }
.pg-cube .f1 { transform: translateZ(75px); } .pg-cube .f2 { transform: rotateY(180deg) translateZ(75px); }
.pg-cube .f3 { transform: rotateY(90deg) translateZ(75px); } .pg-cube .f4 { transform: rotateY(-90deg) translateZ(75px); }
.pg-cube .f5 { transform: rotateX(90deg) translateZ(75px); } .pg-cube .f6 { transform: rotateX(-90deg) translateZ(75px); }
@keyframes pg-spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.pg-orbit { position: absolute; inset: 0; transform-style: preserve-3d; }
.pg-orbit::before { content: ""; position: absolute; left: 50%; top: 50%; width: 380px; height: 120px; margin: -60px 0 0 -190px; border-radius: 50%; border: 1px dashed rgba(129, 131, 251, .45); transform: translateY(40px); }
.pg-orbit .chip { position: absolute; left: 50%; top: 50%; width: 104px; height: 44px; margin: -22px 0 0 -52px; border-radius: 12px; background: #fff;
    display: flex; align-items: center; justify-content: center; padding: 6px 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.pg-orbit .chip.dark { background: #111827; border: 1px solid rgba(255, 255, 255, .12); }
.pg-orbit .chip img { max-height: 26px; max-width: 80px; object-fit: contain; }
/* ---------- tilt + reveal ---------- */
[data-tilt] { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
[data-tilt] .tilt-pop { transform: translateZ(40px); }
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- buttons ---------- */
.pg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 14px; font-weight: 700; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease; }
.pg-btn:active { transform: translateY(1px) scale(.99); }
.pg-btn-primary { color: #fff; background: linear-gradient(135deg, #6461F4 0%, #4337C9 60%, #0891B2 140%); box-shadow: 0 10px 30px -10px rgba(100, 97, 244, .8); }
.pg-btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(100, 97, 244, .95); }
.pg-btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: pg-shine 3.8s ease-in-out infinite; }
@keyframes pg-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.pg-btn-ghost { color: #E8ECF6; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.pg-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- logo marquee ---------- */
.pg-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.pg-marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: pg-marquee 28s linear infinite; }
@keyframes pg-marquee { to { transform: translateX(-50%); } }
.pg-logo-tile { height: 64px; min-width: 150px; padding: 0 22px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #E3E7F5; }
.pg-logo-tile.dark { background: #0F172A; border-color: #1E293B; }
.pg-logo-tile img { max-height: 32px; max-width: 120px; object-fit: contain; }

/* ---------- misc ---------- */
.pg-pulse-dot { width: 8px; height: 8px; border-radius: 9999px; background: #22D3EE; box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pg-pulse 1.8s infinite; }
@keyframes pg-pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.pg-gauge { --v: 0; width: 140px; height: 140px; border-radius: 50%;
    background: conic-gradient(var(--c, #6461F4) calc(var(--v) * 1%), rgba(148, 163, 184, .18) 0); display: grid; place-items: center; transition: --v 1s; }
.pg-gauge > div { width: 108px; height: 108px; border-radius: 50%; background: #0B1124; display: grid; place-items: center; }
.pg-faq summary { list-style: none; cursor: pointer; } .pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq[open] .pg-faq-icon { transform: rotate(45deg); }
.pg-screen { transform: perspective(1400px) rotateY(-14deg) rotateX(6deg); transition: transform .6s ease; }
.pg-screen:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
/* ---------- hero 3D card float ---------- */
@keyframes pg-hero-float { 0%, 100% { transform: perspective(1400px) rotateY(-15deg) rotateX(7deg) translateY(0); box-shadow: 0 50px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); } 50% { transform: perspective(1400px) rotateY(-11deg) rotateX(5deg) translateY(-20px); box-shadow: 0 70px 130px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); } }
@keyframes pg-badge-bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes pg-notify-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.pg-hero-float { animation: pg-hero-float 5s ease-in-out infinite; }
.pg-hero-badge-bob { animation: pg-badge-bob 4s ease-in-out infinite; }
.pg-hero-notify-bob { animation: pg-notify-bob 4.5s ease-in-out .5s infinite; }

/* ---------- merchant panel chrome ---------- */
.pg-sidebar { background: linear-gradient(180deg, #0B1124 0%, #101836 100%); }
.pg-nav-link { color: #A3AECB; }
.pg-nav-link:hover { color: #fff; background: rgba(129, 131, 251, .12); }
.pg-nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(100, 97, 244, .9), rgba(67, 55, 201, .75)); box-shadow: 0 10px 24px -12px rgba(100, 97, 244, .9), inset 0 0 0 1px rgba(195, 202, 255, .25); }
.pg-panel-bg { background: radial-gradient(800px 300px at 90% -5%, rgba(100, 97, 244, .10), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(34, 211, 238, .08), transparent 60%), #F4F6FB; }

/* ===================== Portal UI kit (merchant panel + admin) =====================
   Plain, consistent components. Views use these classes instead of ad-hoc utility piles. */
:root { --ui-border: #E4E7EF; --ui-muted: #64708F; --ui-text: #18213F; --ui-soft: #F7F8FC; --ui-primary: #5146E5; --ui-primary-h: #4337C9; }
.ui { font-size: 14px; color: var(--ui-text); background: #F3F5FA; }
/* public site sections */
.site-sec { padding: 72px 0; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-eyebrow { font-size: 13px; font-weight: 600; color: var(--ui-primary); }
.site-h2 { font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--ui-text); }
.site-lead { font-size: 16px; line-height: 1.7; color: var(--ui-muted); }
@media (min-width: 640px) { .site-h2 { font-size: 34px; } .site-sec { padding: 88px 0; } }
.ui main { line-height: 1.55; }
/* page header */
.ui-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ui-h1 { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ui-text); }
.ui-sub { margin-top: 3px; font-size: 13px; color: var(--ui-muted); max-width: 70ch; }
.ui-h2 { font-size: 15px; font-weight: 600; color: var(--ui-text); }
.ui-h3 { font-size: 13.5px; font-weight: 600; color: var(--ui-text); }
.ui-muted { color: var(--ui-muted); }
.ui-small { font-size: 12px; }
.ui-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }
/* cards */
.ui-card { background: #fff; border: 1px solid var(--ui-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ui-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--ui-border); }
.ui-card-b { padding: 16px; }
.ui-card-f { padding: 12px 16px; border-top: 1px solid var(--ui-border); background: var(--ui-soft); border-radius: 0 0 12px 12px; }
.ui-grid { display: grid; gap: 14px; }
.ui-stack > * + * { margin-top: 14px; }
/* stats */
.ui-stat { padding: 14px 16px; }
.ui-stat-l { font-size: 12px; font-weight: 500; color: var(--ui-muted); }
.ui-stat-v { margin-top: 4px; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.ui-stat-h { margin-top: 2px; font-size: 12px; color: var(--ui-muted); }
/* buttons */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
          border: 1px solid transparent; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.ui-btn:disabled { opacity: .55; cursor: not-allowed; }
.ui-btn-primary { background: var(--ui-primary); color: #fff; }
.ui-btn-primary:hover { background: var(--ui-primary-h); }
.ui-btn-secondary { background: #fff; color: var(--ui-text); border-color: #D5DAE6; }
.ui-btn-secondary:hover { background: var(--ui-soft); border-color: #C3C9D9; }
.ui-btn-danger { background: #fff; color: #C2283A; border-color: #F3C4CB; }
.ui-btn-danger:hover { background: #FFF1F3; }
.ui-btn-success { background: #0E9F6E; color: #fff; }
.ui-btn-success:hover { background: #057A55; }
.ui-btn-ghost { background: transparent; color: var(--ui-muted); }
.ui-btn-ghost:hover { background: #EDEFF6; color: var(--ui-text); }
.ui-btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.ui-btn-lg { height: 42px; padding: 0 18px; font-size: 14.5px; }
.ui-link { color: var(--ui-primary); font-weight: 600; }
.ui-link:hover { text-decoration: underline; }
/* forms */
.ui-label { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 600; color: #3F4A6E; }
.ui-hint { margin-top: 4px; font-size: 12px; color: var(--ui-muted); }
.ui-input, .ui-select, .ui-textarea { width: 100%; border: 1px solid #D5DAE6; background: #fff; border-radius: 8px; padding: 0 11px; font-size: 13.5px; color: var(--ui-text);
          transition: border-color .15s, box-shadow .15s; }
.ui-input, .ui-select { height: 38px; }
.ui-textarea { padding: 9px 11px; min-height: 90px; line-height: 1.5; }
.ui-input:focus, .ui-select:focus, .ui-textarea:focus { outline: none; border-color: #8183FB; box-shadow: 0 0 0 3px rgba(100, 97, 244, .16); }
.ui-input::placeholder, .ui-textarea::placeholder { color: #9AA3BC; }
.ui-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ui-check input { width: 16px; height: 16px; accent-color: var(--ui-primary); }
/* tables */
.ui-table-wrap { overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { text-align: left; padding: 9px 14px; font-size: 11.5px; font-weight: 600; color: var(--ui-muted); background: var(--ui-soft); border-bottom: 1px solid var(--ui-border); white-space: nowrap; }
.ui-table td { padding: 10px 14px; border-bottom: 1px solid #EEF0F5; vertical-align: middle; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table tbody tr:hover td { background: #FAFBFE; }
.ui-table .num { text-align: right; font-variant-numeric: tabular-nums; }
/* badges */
.ui-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #EEF0F6; color: #3F4A6E; }
.ui-badge-green { background: #E3F8EF; color: #05603A; }
.ui-badge-amber { background: #FEF3DC; color: #93370D; }
.ui-badge-red { background: #FEE4E7; color: #B4182B; }
.ui-badge-blue { background: #E8E9FF; color: #3730A3; }
.ui-badge-cyan { background: #DDF6FB; color: #0E6175; }
/* alerts */
.ui-alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; font-size: 13px; border: 1px solid; }
.ui-alert-info { background: #F0F1FF; border-color: #D9DBFF; color: #2E2A85; }
.ui-alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #05603A; }
.ui-alert-warn { background: #FFFAEB; border-color: #FEDF89; color: #93370D; }
.ui-alert-danger { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
/* tabs / segmented */
.ui-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #E9ECF4; }
.ui-tab { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ui-muted); display: inline-flex; align-items: center; gap: 6px; }
.ui-tab:hover { color: var(--ui-text); }
.ui-tab.active { background: #fff; color: var(--ui-text); box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
/* misc */
.ui-empty { padding: 34px 16px; text-align: center; color: var(--ui-muted); font-size: 13.5px; }
.ui-divide > * + * { border-top: 1px solid #EEF0F5; }
.ui-kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.ui-kv span:first-child { color: var(--ui-muted); }
.ui-kv span:last-child { font-weight: 600; text-align: right; }
.ui-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #E8E9FF; color: #3730A3; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.ui-code { display: block; padding: 12px 14px; border-radius: 10px; background: #0E1430; color: #D8DCF0; font: 12.5px/1.6 "JetBrains Mono", monospace; overflow-x: auto; white-space: pre; }
.ui-bar { height: 6px; border-radius: 99px; background: #EBEDF4; overflow: hidden; }
.ui-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--ui-primary); }
.ui-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 99px; background: #E8E9FF; color: #3730A3; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ui-nav { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #A3AECB; }
.ui-nav:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ui-nav.active { color: #fff; background: rgba(129, 131, 251, .22); box-shadow: inset 2px 0 0 #8183FB; }
.ui-nav svg { width: 17px; height: 17px; flex-shrink: 0; }
.ui-nav-group { padding: 0 10px; margin: 14px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #56638A; }
@media (min-width: 640px) { .ui-card-b { padding: 18px; } }
/* sidebar menu scrolls without a visible scrollbar */
.pg-sidebar nav { scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.pg-sidebar nav::-webkit-scrollbar { display: none; }
/* mobile bottom bar (panel, admin, site) */
.ui-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--ui-border);
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 18px -14px rgba(16, 24, 40, .35); }
.ui-bottombar a, .ui-bottombar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11px; font-weight: 500; color: #7684A8; }
.ui-bottombar .on { color: var(--ui-primary); }
.ui-bottombar svg { width: 21px; height: 21px; }
@media (min-width: 1024px) { .ui-bottombar { display: none; } }
/* tighter spacing on phones */
@media (max-width: 639px) {
    .ui-card-b { padding: 12px; }
    .ui-card-h { padding: 11px 12px; }
    .ui-card-f { padding: 10px 12px; }
    .ui-stat { padding: 11px 12px; }
    .ui-stat-v { font-size: 19px; }
    .ui-h1 { font-size: 17px; }
    .ui-h2 { font-size: 14.5px; }
    .ui-head { margin-bottom: 14px; }
    .ui-grid { gap: 10px; }
    .ui-table th, .ui-table td { padding-left: 10px; padding-right: 10px; }
    .site-h2 { font-size: 23px; }
    .site-lead { font-size: 15px; }
    .site-sec { padding: 52px 0; }
    .site-wrap { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
    .pg-scene { transform: scale(.78); }
}
