

        @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

        :root {
            --navy:        #0c1e3c;
            --navy-mid:    #152d52;
            --navy-light:  #1e3d6e;
            --gold:        #b8922a;
            --gold-b:      #d4a83a;
            --gold-c:      #f0c84a;
            --gold-t:      rgba(184,146,42,.13);
            --offwhite:    #f7f5f0;
            --text-body:   #2c2926;
            --text-muted:  #8a8580;
            --border:      #e8e3d8;
            --ease:        cubic-bezier(.16,1,.3,1);
            --spring:      cubic-bezier(.34,1.56,.64,1);
        }

        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        html, body { height: 100%; font-family: 'Poppins', sans-serif; }

        body {
            background: linear-gradient(135deg, #0c1e3c 0%, #152d52 35%, #1e3d6e 65%, #0f2744 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        /* Ambient orbs on gradient */
        .bg-orb { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
        .bg-orb-1 {
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(212,168,58,.16) 0%, transparent 70%);
            top: -160px; left: -160px;
            animation: driftA 14s ease-in-out infinite alternate;
        }
        .bg-orb-2 {
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(30,61,110,.55) 0%, transparent 70%);
            bottom: -120px; right: -100px;
            animation: driftB 18s ease-in-out infinite alternate;
        }
        .bg-orb-3 {
            width: 240px; height: 240px;
            background: radial-gradient(circle, rgba(240,200,74,.1) 0%, transparent 70%);
            top: 40%; left: 38%;
            animation: driftC 11s ease-in-out infinite alternate;
        }
        @keyframes driftA { to { transform: translate(50px, 60px); } }
        @keyframes driftB { to { transform: translate(-40px, -50px); } }
        @keyframes driftC { to { transform: translate(24px, -32px); } }

        /* ── Stage ── */
        .stage {
            position: relative; z-index: 1;
            width: 100%; height: 100vh;
            display: flex; align-items: stretch;
        }

        .panel {
            height: 100%;
            display: flex; align-items: center; justify-content: center;
            transition: flex .7s var(--ease);
            overflow: hidden;
        }

        .panel-search {
            flex: 1 0 100%;
            padding: 44px 48px;
        }
        .panel-results {
            flex: 0 0 0%;
            padding: 0;
            border-left: 1px solid transparent;
            opacity: 0; overflow-y: auto;
            transition: flex .7s var(--ease), padding .55s var(--ease), border-color .5s, opacity .4s;
        }

        .stage.expanded .panel-search  { flex: 0 0 44%; }
        .stage.expanded .panel-results {
            flex: 0 0 56%;
            padding: 44px 44px;
            border-color: rgba(212,168,58,.2);
            opacity: 1;
        }

        /* ═══════════════════════════════════════════
        FORM CARD — pure white, elevated
        ═══════════════════════════════════════════ */
        .form-card {
            background: #ffffff;
            border-radius: 20px;
            box-shadow:
                0 28px 70px rgba(0,0,0,.26),
                0 8px 22px rgba(0,0,0,.15),
                inset 0 1px 0 rgba(255,255,255,.98);
            padding: 38px 34px;
            width: 100%; max-width: 390px;
            animation: cardIn .65s var(--ease) both;
        }
        @keyframes cardIn {
            from { opacity: 0; transform: translateY(24px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* Brand strip */
        .brand {
            display: flex; align-items: center; gap: 14px;
            margin-bottom: 28px; padding-bottom: 22px;
            border-bottom: 1px solid var(--border);
        }
        .brand-badge {
            width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
            /* background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
            display: flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 700; letter-spacing: .06em;
            color: var(--gold-c);
            box-shadow: 0 4px 14px rgba(12,30,60,.3); */
        }
        .brand-name {
            font-size: .86rem; font-weight: 700; color: var(--navy);
            letter-spacing: .01em; line-height: 1.25;
        }
        .brand-sub {
            font-size: .67rem; color: var(--text-muted);
            font-weight: 400; letter-spacing: .02em; line-height: 1.4; margin-top: 2px;
        }

        /* Heading */
        .form-heading { margin-bottom: 26px; }
        .form-heading h1 {
            font-size: 1.65rem; font-weight: 700; color: var(--navy);
            line-height: 1.15; margin-bottom: 8px;
        }
        .form-heading h1 em { font-style: normal; color: var(--gold); font-weight: 600; }
        .form-heading p { font-size: .78rem; color: var(--text-muted); line-height: 1.65; font-weight: 400; }

        /* Input field */
        .field { margin-bottom: 20px; }
        .field-label {
            display: block;
            font-size: .68rem; font-weight: 600;
            letter-spacing: .09em; text-transform: uppercase;
            color: var(--gold); margin-bottom: 8px;
        }
        .field-box { position: relative; }

        .field-icon {
            position: absolute; left: 14px; top: 50%;
            transform: translateY(-50%);
            width: 16px; height: 16px;
            stroke: #b0aaa0; stroke-width: 1.8; fill: none;
            pointer-events: none; transition: stroke .25s;
        }
        .field-box:focus-within .field-icon { stroke: var(--gold-b); }

        input#pin {
            width: 100%;
            font-family: 'Poppins', sans-serif;
            font-size: .9rem; font-weight: 500;
            color: var(--text-body);
            background: #fafaf8;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 14px 16px 14px 44px;
            outline: none;
            -webkit-appearance: none;
            transition: border-color .25s, box-shadow .25s, background .25s;
        }
        input#pin::placeholder { color: #c0bdb5; font-weight: 400; }
        input#pin:focus {
            border-color: var(--gold-b);
            box-shadow: 0 0 0 3px rgba(212,168,58,.15);
            background: #fff;
        }

        /* Error pill */
        .error-message {
            display: none; align-items: center; gap: 7px;
            margin-top: 10px;
            background: #fff5f5; border: 1px solid #fdc5c2;
            border-radius: 8px; padding: 9px 13px;
            color: #c0392b; font-size: .76rem; font-weight: 500;
            animation: shake .38s var(--ease);
        }
        .error-message.visible { display: flex; }
        .error-message svg { width: 14px; height: 14px; stroke: #c0392b; stroke-width: 2; fill: none; flex-shrink: 0; }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-5px); }
            40% { transform: translateX(5px); }
            60% { transform: translateX(-3px); }
            80% { transform: translateX(3px); }
        }

        /* Actions */
        .form-actions { display: flex; gap: 10px; margin-top: 8px; }

        .btn-primary {
            flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
            background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
            color: #fff; border: none; border-radius: 10px;
            padding: 14px 24px;
            font-family: 'Poppins', sans-serif; font-size: .86rem; font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 16px rgba(12,30,60,.25);
            position: relative; overflow: hidden;
            transition: transform .2s var(--spring), box-shadow .25s, filter .25s;
        }
        .btn-primary::before {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(135deg, rgba(240,200,74,.2), transparent);
            opacity: 0; transition: opacity .3s;
        }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(12,30,60,.36); filter: brightness(1.08); }
        .btn-primary:hover::before { opacity: 1; }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary.loading .btn-label,
        .btn-primary.loading .btn-icon { opacity: 0; }
        .btn-primary.loading .btn-spinner { opacity: 1; }
        .btn-primary svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.5; fill: none; }
        .btn-spinner { position: absolute; opacity: 0; transition: opacity .2s; }
        .btn-spinner svg { animation: spin .8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }

        .btn-secondary {
            background: #fff; border: 1.5px solid var(--border);
            border-radius: 10px; padding: 14px 18px;
            font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 500;
            color: var(--text-muted); cursor: pointer; white-space: nowrap;
            transition: border-color .2s, color .2s, background .2s;
        }
        .btn-secondary:hover { border-color: #c0bdb5; color: var(--navy); background: var(--offwhite); }

        .card-footer {
            margin-top: 22px; padding-top: 18px;
            border-top: 1px solid var(--border);
            text-align: center;
        }
        .card-footer p { font-size: .67rem; color: #b8b3a8; font-weight: 400; letter-spacing: .02em; }

        /* ═══════════════════════════════════════════
        RESULTS PANEL
        ═══════════════════════════════════════════ */
        .panel-results::-webkit-scrollbar { width: 4px; }
        .panel-results::-webkit-scrollbar-track { background: transparent; }
        .panel-results::-webkit-scrollbar-thumb { background: rgba(212,168,58,.3); border-radius: 2px; }

        .panel-inner-results { width: 100%; max-width: 520px; }

        .results-empty {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; min-height: 320px; gap: 14px; opacity: .45;
        }
        .results-empty svg { width: 52px; height: 52px; stroke: rgba(255,255,255,.4); stroke-width: 1; fill: none; }
        .results-empty p { font-size: .82rem; color: rgba(255,255,255,.4); }

        .results-content { animation: slideIn .55s var(--ease) both; }
        @keyframes slideIn {
            from { opacity: 0; transform: translateX(18px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        /* Result card */
        .result-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; }

        .result-hero {
            background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.04) 100%);
            border-bottom: 1px solid rgba(255,255,255,.08);
            padding: 24px 24px 22px;
            display: flex; align-items: center; gap: 18px;
        }
        .r-av-wrap { position: relative; flex-shrink: 0; }
        .r-av {
            width: 68px; height: 68px; border-radius: 50%;
            background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
            border: 2.5px solid var(--gold-b);
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 1.35rem; color: var(--gold-c);
            overflow: hidden;
        }
        .r-av img { width: 100%; height: 100%; object-fit: cover; }
        .r-av-ring { position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(212,168,58,.3); }
        .r-av-pulse { position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(212,168,58,.15); animation: pulse 2.5s ease-in-out infinite; }
        @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: 0; } }

        .r-name { font-size: 1.2rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 8px; }
        .r-profession {
            display: inline-flex; align-items: center; gap: 6px;
            background: var(--gold-t); border: 1px solid rgba(212,168,58,.25);
            border-radius: 50px; padding: 4px 13px;
            font-size: .72rem; color: var(--gold-c); font-weight: 600; letter-spacing: .03em;
        }
        .r-profession svg { width: 11px; height: 11px; stroke: var(--gold-c); stroke-width: 2.5; fill: none; }

        .result-body { padding: 22px 24px; }

        /* Info grid — workplace spans 2 cols */
        .info-grid {
            display: grid; grid-template-columns: 1fr 1fr;
            gap: 1px; background: rgba(255,255,255,.07);
            border-radius: 10px; overflow: hidden; margin-bottom: 20px;
        }
        .info-cell { background: rgba(255,255,255,.03); padding: 13px 16px; transition: background .2s; }
        .info-cell:hover { background: rgba(255,255,255,.07); }
        .info-cell.span-2 { grid-column: 1 / -1; }

        .info-label { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-b); margin-bottom: 3px; }
        .info-value  { font-size: .82rem; color: rgba(255,255,255,.92); font-weight: 400; word-break: break-word; line-height: 1.45; }

        /* Status */
        .status-wrap { margin-bottom: 16px; }
        .status-label { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 10px; }
        .status-badge {
            display: inline-flex; align-items: center; gap: 9px;
            padding: 10px 18px; border-radius: 50px;
            font-size: .82rem; font-weight: 600; border-width: 1px; border-style: solid;
            animation: popIn .5s .1s var(--spring) both;
        }
        @keyframes popIn { from { transform: scale(.82); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .status-badge svg { width: 15px; height: 15px; fill: none; stroke-width: 2; flex-shrink: 0; }
        .status-active  { color: #2fd880; background: rgba(47,216,128,.1);  border-color: rgba(47,216,128,.25); }
        .status-active svg  { stroke: #2fd880; }
        .status-pending { color: #f5c842; background: rgba(245,200,66,.1);  border-color: rgba(245,200,66,.25); }
        .status-pending svg { stroke: #f5c842; }
        .status-bad     { color: #f08070; background: rgba(240,128,112,.1); border-color: rgba(240,128,112,.25); }
        .status-bad svg     { stroke: #f08070; }

        /* Renewal chip */
        .renewal-chip {
            display: flex; align-items: center; gap: 12px;
            padding: 13px 16px;
            background: rgba(212,168,58,.08); border: 1px solid rgba(212,168,58,.2);
            border-radius: 10px;
            animation: slideUp .5s .18s var(--ease) both;
        }
        @keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .renewal-chip svg { width: 15px; height: 15px; stroke: var(--gold-b); stroke-width: 1.8; fill: none; flex-shrink: 0; }
        .renewal-label { font-size: .75rem; color: rgba(255,255,255,.5); }
        .renewal-year  { font-weight: 700; color: var(--gold-c); font-size: .9rem; }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            html, body { overflow-y: auto; height: auto; }
            .stage { flex-direction: column; height: auto; min-height: 100vh; }
            .panel { width: 100% !important; flex: none !important; height: auto; padding: 32px 20px; }
            .panel-results { border-left: none; border-top: 1px solid rgba(212,168,58,.18); opacity: 1; }
            .stage.expanded .panel-search,
            .stage.expanded .panel-results { flex: none !important; width: 100% !important; }
            .info-grid { grid-template-columns: 1fr; }
            .info-cell.span-2 { grid-column: 1; }
        }