/* ─────────────────────────────────────────────────────────────
   MyGatePass — product-UI mock styles
   (dashboard, visitor pass, gatekeeper) ported from product-ui.jsx
   ───────────────────────────────────────────────────────────── */

/* ── Dashboard ────────────────────────────────────────────── */
.dash-mock { display: grid; grid-template-columns: 200px 1fr; gap: 0; background: #FAFBFD; min-height: 440px; font-family: var(--f-heading); border-radius: inherit; }
.dash-mock.is-compact { min-height: 380px; }
.dash-side { background: #fff; border-right: 1px solid #ECEEF3; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; }
.dash-brand img { height: 18px; width: auto; display: block; }
.dash-nav { font-weight: 500; font-size: 12.5px; color: #5C6273; padding: 8px 10px; border-radius: 7px; display: flex; align-items: center; gap: 9px; cursor: default; }
.dash-nav.active { background: rgba(2,30,255,0.07); color: var(--c-blue); font-weight: 600; }
.dash-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }
.dash-sec-label { font-size: 10px; font-weight: 600; letter-spacing: .1em; color: #9aa0ad; padding: 14px 10px 6px; text-transform: uppercase; }
.dash-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-header { display: flex; align-items: center; justify-content: space-between; }
.dash-h1 { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.dash-sub { color: #6b7282; font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.dash-search { font-family: var(--f-body); font-size: 11px; padding: 6px 10px 6px 26px; border: 1px solid #ECEEF3; border-radius: 8px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><circle cx='5' cy='5' r='3.5' stroke='%239aa0ad'/><path d='M8 8l2 2' stroke='%239aa0ad' stroke-linecap='round'/></svg>") 8px center no-repeat; color: #5C6273; width: 180px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-kpi { background: #fff; border: 1px solid #ECEEF3; border-radius: 12px; padding: 12px 14px; }
.kpi-label { font-size: 10px; font-weight: 600; color: #6b7282; letter-spacing: .05em; text-transform: uppercase; }
.kpi-val { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; color: var(--c-ink); }
.kpi-delta { font-size: 10.5px; font-weight: 600; margin-top: 4px; }
.kpi-delta.up { color: #0a6b5a; }
.kpi-delta.down { color: #c6433a; }
.kpi-accent { width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg,#021EFF,#5FE4F2); margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; min-height: 0; flex: 1; }
.dash-card { background: #fff; border: 1px solid #ECEEF3; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.dash-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dash-card-t { font-weight: 600; font-size: 12.5px; letter-spacing: -0.005em; }
.dash-card-tag { font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(0,183,148,0.12); color: #0a6b5a; display: inline-flex; align-items: center; gap: 5px; }
.dash-card-tag .pulse { width: 6px; height: 6px; border-radius: 50%; background: #00B794; box-shadow: 0 0 0 0 rgba(0,183,148,0.6); animation: pulse 1.6s infinite; }
.feed-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #ECEEF3; animation: row-in .5s ease both; }
.feed-row:last-child { border-bottom: 0; }
@keyframes row-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.feed-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.feed-name { font-size: 11.5px; font-weight: 600; color: var(--c-ink); }
.feed-meta { font-size: 10.5px; color: #6b7282; font-weight: 500; }
.feed-time { font-size: 10px; color: #9aa0ad; font-weight: 500; font-family: var(--f-mono); }
.feed-status { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; }
.feed-status.in { background: rgba(0,183,148,0.12); color: #0a6b5a; }
.feed-status.out { background: rgba(45,45,45,0.06); color: #6b7282; }
.chart-area { flex: 1; position: relative; min-height: 110px; }
.dash-foot { display: flex; gap: 10px; align-items: center; font-size: 10.5px; color: #6b7282; }
@media (max-width: 560px) { .dash-mock { grid-template-columns: 1fr; } .dash-side { display: none; } .dash-kpis { grid-template-columns: 1fr 1fr; } .dash-grid { grid-template-columns: 1fr; } }

/* ── Visitor pass ─────────────────────────────────────────── */
.vp-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,0.04); border: 1px solid #ECEEF3; }
.vp-top { padding: 18px 18px 14px; background: linear-gradient(135deg, #021EFF, #5FE4F2); color: #fff; }
.vp-brand { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-heading); font-weight: 600; font-size: 12px; opacity: .9; letter-spacing: .04em; }
.vp-name { font-family: var(--f-heading); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin-top: 12px; line-height: 1.05; }
.vp-meta { font-size: 12px; opacity: .85; margin-top: 4px; font-family: var(--f-body); }
.vp-qr-wrap { padding: 22px; display: flex; justify-content: center; }
.vp-rows { padding: 4px 18px 18px; }
.vp-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #ECEEF3; font-family: var(--f-body); font-size: 12px; }
.vp-row:last-child { border: 0; }
.vp-row .k { color: #9aa0ad; font-weight: 500; }
.vp-row .v { color: #2D2D2D; font-weight: 600; }
.vp-cta { margin: 6px 18px 0; padding: 12px; border-radius: 14px; background: var(--c-ink); color: #fff; text-align: center; font-family: var(--f-heading); font-weight: 600; font-size: 13px; }
.vp-tip { text-align: center; font-size: 10.5px; color: #9aa0ad; margin-top: 12px; font-family: var(--f-body); }

/* ── Gatekeeper ───────────────────────────────────────────── */
.gk-top { padding: 38px 18px 14px; display: flex; align-items: center; justify-content: space-between; font-family: var(--f-heading); font-size: 12px; }
.gk-title { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.gk-meta { color: rgba(255,255,255,0.5); font-size: 10.5px; font-family: var(--f-body); margin-top: 2px; }
.gk-shutter { margin: 0 18px; position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #050714; border: 1px solid rgba(255,255,255,0.08); }
.gk-shutter::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 60%, rgba(0,183,148,0.18), transparent 70%), repeating-linear-gradient(90deg, transparent 0, transparent 22px, rgba(255,255,255,0.04) 22px, rgba(255,255,255,0.04) 23px), repeating-linear-gradient(0deg, transparent 0, transparent 22px, rgba(255,255,255,0.04) 22px, rgba(255,255,255,0.04) 23px); }
.gk-frame { position: absolute; inset: 18%; border-radius: 18px; border: 2px solid #00B794; box-shadow: 0 0 0 8px rgba(0,183,148,0.18); }
.gk-corner { position: absolute; width: 18px; height: 18px; border: 2.5px solid #fff; }
.gk-corner.tl { top: 14%; left: 14%; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.gk-corner.tr { top: 14%; right: 14%; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; }
.gk-corner.bl { bottom: 14%; left: 14%; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; }
.gk-corner.br { bottom: 14%; right: 14%; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.gk-status { margin: 16px 18px; padding: 14px 16px; background: rgba(0,183,148,0.14); border: 1px solid rgba(0,183,148,0.4); border-radius: 14px; display: flex; align-items: center; gap: 12px; }
.gk-status-check { width: 30px; height: 30px; border-radius: 50%; background: #00B794; display: grid; place-items: center; }
.gk-status-text { font-family: var(--f-heading); font-weight: 600; font-size: 13px; color: #6CFFD6; }
.gk-status-sub { font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--f-body); margin-top: 2px; }
.gk-keypad { margin: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gk-btn { padding: 11px; border-radius: 12px; font-family: var(--f-heading); font-size: 12px; font-weight: 600; text-align: center; }
.gk-btn.deny { background: rgba(255,90,90,0.12); color: #ff8a8a; border: 1px solid rgba(255,90,90,0.25); }
.gk-btn.open { background: #00B794; color: #fff; }
