/* FindingNearBy Vendor Portal — mirrors the admin dashboard login look
   (photo backdrop + dark glass cards + green primary, Inter). Self-contained so
   the portal never depends on the admin theme.css / Tailwind CDN. */
:root {
    --p-300: 134 239 172; --p-400: 74 222 128; --p-500: 34 197 94; --p-600: 22 163 74; --p-700: 21 128 61;
    --ink: #FFFFFF; --ink-2: #F1F5F9; --ink-3: #CBD5E1; --ink-4: rgba(255,255,255,.62);
    --line: rgba(255,255,255,.18); --line-soft: rgba(255,255,255,.10);
    --glass: rgba(15,23,42,.58);
    --danger: #FB7185; --warn: #FBBF24;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: #0B1220;
}
.bg {
    min-height: 100vh; position: relative; display: flex; flex-direction: column;
    background:
        linear-gradient(135deg, rgba(8,14,27,.62) 0%, rgba(8,14,27,.40) 35%, rgba(8,14,27,.62) 100%),
        url('https://storage.findingnearby.com/event/admin/login-bg.jpg?v=20260501c') center / cover no-repeat,
        linear-gradient(135deg, #0B1220, #0F2A1F);
    background-attachment: fixed, fixed, fixed;
}
.bg::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(60% 50% at 80% 20%, rgb(34 197 94 / .18) 0%, transparent 60%),
        radial-gradient(50% 40% at 15% 85%, rgb(59 130 246 / .15) 0%, transparent 65%);
}

/* ---------- top bar ---------- */
.topbar {
    position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 24px rgba(74,222,128,.4); }
.brand b { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.brand small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.who { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--ink-3); }
.who .btn { padding: .45rem .85rem; font-size: .8rem; }

/* ---------- layout ---------- */
.shell {
    position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1200px; margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 3rem; display: grid; gap: 2.5rem; align-items: center;
    grid-template-columns: minmax(0, 1fr);
}
.shell.auth { grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px); min-height: calc(100vh - 140px); }
.shell.wide { max-width: 860px; align-items: start; }
.shell.narrow { max-width: 560px; align-items: start; }
@media (max-width: 960px) { .shell.auth { grid-template-columns: minmax(0, 1fr); } .marketing { display: none; } }

.marketing { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.marketing h1 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 1rem; }
.marketing h1 .accent { color: rgb(var(--p-400)); }
.marketing .lead { color: rgba(255,255,255,.86); line-height: 1.65; max-width: 42ch; font-size: 1rem; margin: 0 0 1.5rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
    display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid var(--line-soft); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); font-size: .85rem; font-weight: 500; color: var(--ink-2);
}
.pill i { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(34,197,94,.22); color: #6EE7B7; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }

/* ---------- glass card ---------- */
.glass {
    background: var(--glass); border: 1px solid var(--line); border-radius: 1.25rem;
    backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: 0 24px 64px rgba(8,14,27,.55), 0 2px 8px rgba(8,14,27,.3), inset 0 1px 0 rgba(255,255,255,.18);
    padding: clamp(1.25rem, 3vw, 2rem);
}
.card-head { text-align: center; margin-bottom: 1.5rem; }
.card-head img { width: 76px; height: 76px; border-radius: 1.1rem; margin: 0 auto 1rem; display: block; box-shadow: 0 0 30px rgba(74,222,128,.35); }
.card-head h1, .card-head h2 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.card-head p { margin: .4rem 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #86EFAC; }
h2.title { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; letter-spacing: -.01em; }
p.sub { color: var(--ink-3); font-size: .9rem; line-height: 1.55; margin: 0 0 1.4rem; }

/* ---------- stepper ---------- */
.stepper { display: flex; align-items: center; gap: .25rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: .5rem; flex: 1 0 auto; min-width: 0; }
.step .dot {
    width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; display: grid; place-items: center;
    font-size: .75rem; font-weight: 700; color: var(--ink-4); background: rgba(255,255,255,.08); border: 1px solid var(--line);
}
.step .lbl { font-size: .74rem; font-weight: 600; color: var(--ink-4); white-space: nowrap; }
.step .bar { flex: 1; height: 2px; min-width: 12px; background: var(--line-soft); border-radius: 2px; }
.step:last-child { flex: 0 0 auto; }
.step:last-child .bar { display: none; }
.step.done .dot { background: rgb(var(--p-600)); border-color: rgb(var(--p-500)); color: #fff; }
.step.done .bar { background: rgb(var(--p-500) / .7); }
.step.on .dot { background: rgb(var(--p-500) / .2); border-color: rgb(var(--p-400)); color: #fff; box-shadow: 0 0 0 4px rgb(var(--p-500) / .18); }
.step.on .lbl { color: #fff; }
@media (max-width: 640px) { .step .lbl { display: none; } .step.on .lbl { display: inline; } }

/* ---------- forms ---------- */
.field { margin-bottom: 1rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .row { grid-template-columns: minmax(0, 1fr); } }
label.lbl-t { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: .45rem; }
label.lbl-t .req { color: #86EFAC; }
.hint { font-size: .76rem; color: var(--ink-4); margin-top: .35rem; line-height: 1.45; }
.input, select.input, textarea.input {
    width: 100%; padding: .8rem 1rem; border-radius: .8rem; font: inherit; font-size: .92rem; color: #fff;
    background: rgba(255,255,255,.10); border: 1px solid var(--line); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }
.input::placeholder { color: rgba(255,255,255,.45); }
.input:focus { background: rgba(255,255,255,.14); border-color: rgba(34,197,94,.65); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(251,113,133,.18); }
.input[disabled] { opacity: .6; }
.phone { display: flex; gap: .5rem; }
.phone .cc { flex: none; display: grid; place-items: center; padding: 0 .9rem; border-radius: .8rem; background: rgba(255,255,255,.10); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.otp { text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: .6rem; padding-left: 1.4rem; }

/* choice cards & chips */
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.card-opt {
    text-align: left; padding: 1rem; border-radius: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,.06);
    color: inherit; font: inherit; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: .35rem;
}
.card-opt i { font-size: 1.2rem; color: rgb(var(--p-400)); }
.card-opt b { font-size: .95rem; } .card-opt span { font-size: .78rem; color: var(--ink-3); }
.card-opt:hover { background: rgba(255,255,255,.10); }
.card-opt.sel { border-color: rgb(var(--p-400)); background: rgb(var(--p-500) / .16); box-shadow: 0 0 0 3px rgb(var(--p-500) / .15); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; font: inherit; font-size: .82rem; font-weight: 500;
    color: var(--ink-2); background: rgba(255,255,255,.08); border: 1px solid var(--line); cursor: pointer; transition: all .15s;
}
.chip:hover { background: rgba(255,255,255,.14); }
.chip.sel { background: rgb(var(--p-600)); border-color: rgb(var(--p-500)); color: #fff; }
.chip .x { opacity: .75; font-size: .7rem; }
.group-t { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #86EFAC; margin: 1.2rem 0 .6rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .6rem; }
.cat {
    display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border-radius: .9rem; font: inherit; font-size: .84rem; text-align: left;
    color: var(--ink-2); background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); cursor: pointer; transition: all .15s;
}
.cat i { width: 1.9rem; height: 1.9rem; flex: none; display: grid; place-items: center; border-radius: .6rem; background: rgb(var(--p-500) / .18); color: rgb(var(--p-300)); font-size: .85rem; }
.cat:hover { background: rgba(255,255,255,.11); }
.cat.sel { border-color: rgb(var(--p-400)); background: rgb(var(--p-500) / .18); color: #fff; }
.cat.sel i { background: rgb(var(--p-600)); color: #fff; }
.stepper-n { display: inline-flex; align-items: center; gap: .75rem; }
.stepper-n button { width: 2.2rem; height: 2.2rem; border-radius: .6rem; border: 1px solid var(--line); background: rgba(255,255,255,.1); color: #fff; font-size: 1.1rem; cursor: pointer; }
.stepper-n output { min-width: 2rem; text-align: center; font-weight: 700; }
.callout { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: .9rem; background: rgb(var(--p-500) / .12); border: 1px solid rgb(var(--p-500) / .3); font-size: .85rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 1.2rem; }
.callout i { color: #6EE7B7; margin-top: .15rem; }
.callout.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); } .callout.warn i { color: var(--warn); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: rgb(var(--p-500)); flex: none; }
.check a, .link { color: #86EFAC; }

/* societies */
.search { position: relative; } .search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-4); font-size: .85rem; }
.search .input { padding-left: 2.6rem; }
.soc-list { margin-top: .9rem; display: grid; gap: .5rem; max-height: 340px; overflow-y: auto; padding-right: .2rem; }
.soc { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: .9rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); cursor: pointer; font: inherit; color: inherit; text-align: left; width: 100%; }
.soc:hover { background: rgba(255,255,255,.11); }
.soc.sel { border-color: rgb(var(--p-400)); background: rgb(var(--p-500) / .16); }
.soc .box { width: 1.3rem; height: 1.3rem; flex: none; border-radius: .4rem; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .7rem; color: transparent; }
.soc.sel .box { background: rgb(var(--p-600)); border-color: rgb(var(--p-500)); color: #fff; }
.soc b { display: block; font-size: .9rem; } .soc small { color: var(--ink-3); font-size: .76rem; }
.empty { text-align: center; padding: 1.6rem 1rem; color: var(--ink-3); font-size: .88rem; }
.empty i { display: block; font-size: 1.6rem; margin-bottom: .6rem; color: var(--ink-4); }

/* review */
.review { display: grid; gap: .75rem; }
.rv { padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); }
.rv-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.rv-h b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #86EFAC; }
.rv dl { margin: 0; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .35rem .9rem; font-size: .86rem; }
.rv dt { color: var(--ink-4); } .rv dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
@media (max-width: 520px) { .rv dl { grid-template-columns: minmax(0, 1fr); } .rv dt { margin-top: .4rem; } }

/* buttons / feedback */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: .8rem; font: inherit; font-weight: 600; font-size: .92rem;
    color: #fff; background: rgba(255,255,255,.10); border: 1px solid var(--line); cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn:hover:not([disabled]) { background: rgba(255,255,255,.17); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.primary { background: rgb(var(--p-600)); border-color: rgb(var(--p-500)); box-shadow: 0 8px 24px rgba(34,197,94,.35); }
.btn.primary:hover:not([disabled]) { background: rgb(var(--p-700)); transform: translateY(-1px); }
.btn.block { width: 100%; }
.btn.link { background: none; border: none; box-shadow: none; padding: .3rem .4rem; font-weight: 500; font-size: .82rem; color: #86EFAC; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.alert { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: .8rem; font-size: .86rem; line-height: 1.45; border: 1px solid rgba(251,113,133,.35); background: rgba(251,113,133,.12); color: #FECDD3; }
.alert.ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); color: #BBF7D0; }
.alert ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.spin { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }
.center { text-align: center; padding: 2.5rem 1rem; }
.center .big { width: 4.2rem; height: 4.2rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.2rem; font-size: 1.7rem; background: rgb(var(--p-500) / .18); color: rgb(var(--p-300)); border: 1px solid rgb(var(--p-500) / .4); }
.center .big.bad { background: rgba(251,113,133,.14); color: var(--danger); border-color: rgba(251,113,133,.4); }
.center .big.wait { background: rgba(251,191,36,.12); color: var(--warn); border-color: rgba(251,191,36,.4); }
.center h2 { margin: 0 0 .5rem; font-size: 1.35rem; } .center p { color: var(--ink-3); font-size: .92rem; line-height: 1.6; margin: 0 auto 1.2rem; max-width: 46ch; }
.timeline { text-align: left; max-width: 360px; margin: 1.4rem auto; display: grid; gap: .9rem; }
.tl { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--ink-3); }
.tl i { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.tl.done i { background: rgb(var(--p-600)); border-color: rgb(var(--p-500)); color: #fff; } .tl.done { color: #fff; }
.tl.now i { background: rgba(251,191,36,.15); border-color: rgba(251,191,36,.5); color: var(--warn); } .tl.now { color: #fff; }
.tl small { display: block; color: var(--ink-4); font-size: .76rem; margin-top: .1rem; }
.stores { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.reason { text-align: left; padding: .9rem 1rem; border-radius: .9rem; background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3); font-size: .88rem; color: #FECDD3; margin: 0 auto 1.4rem; max-width: 52ch; line-height: 1.55; }
.foot { position: relative; z-index: 1; text-align: center; font-size: .76rem; color: var(--ink-4); padding: 0 1rem 1.5rem; }
.foot a { color: var(--ink-3); }

/* upload view */
.meta { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1rem; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); border-radius: .9rem; margin-bottom: .9rem; font-size: .85rem; color: var(--ink-3); }
.meta b { color: #fff; }
.count-pill { background: rgb(var(--p-500) / .2); color: rgb(var(--p-300)); padding: .2rem .65rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.dropzone { display: block; border: 2px dashed rgba(255,255,255,.25); border-radius: 1rem; padding: 2.4rem 1rem; text-align: center; cursor: pointer; transition: all .2s; margin-top: 1.1rem; }
.dropzone.drag, .dropzone:hover { border-color: rgb(var(--p-400)); background: rgb(var(--p-500) / .08); }
.dropzone i { font-size: 2rem; color: rgb(var(--p-400)); margin-bottom: .7rem; display: block; }
.dropzone p { margin: 0; color: var(--ink-2); font-size: .92rem; } .dropzone small { display: block; margin-top: .4rem; color: var(--ink-4); font-size: .78rem; }
.dropzone input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .6rem; margin-top: 1.1rem; }
.thumb { position: relative; aspect-ratio: 1; border-radius: .8rem; overflow: hidden; background: rgba(255,255,255,.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .st { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.thumb.ok .st { background: rgb(var(--p-500) / .3); } .thumb.err .st { background: rgba(244,63,94,.4); }
.toast { margin-top: .9rem; font-size: .82rem; text-align: center; min-height: 1.2em; color: var(--warn); }
.toast.err { color: var(--danger); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01ms !important; } }
