:root {
    --hc-navy: #0f2f52;
    --hc-navy-light: #14406e;
    --hc-gold: #d4a017;
    --hc-gold-light: #f6c500;
    --hc-cream: #fff8e6;
    --hc-green: #1e8a4c;
    --hc-red: #c0392b;
    --hc-shadow: 0 6px 20px rgba(15, 47, 82, 0.15);
    --hc-radius: 16px;
}

.hc-shell {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--hc-cream) 0%, #ffffff 220px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.hc-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--hc-navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hc-topbar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.hc-topbar h1 {
    font-family: "Rajdhani", "Poppins", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.hc-content {
    flex: 1;
    padding: 16px 16px 90px;
}

.hc-bottomnav {
    position: sticky;
    bottom: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #e7e0cc;
    box-shadow: 0 -4px 16px rgba(15, 47, 82, 0.08);
}

.hc-bottomnav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 0 8px;
    text-decoration: none;
    color: #8a93a3;
    font-size: 0.72rem;
    font-weight: 600;
}

.hc-bottomnav a.active {
    color: var(--hc-navy);
}

.hc-bottomnav a .hc-nav-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.55);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.hc-bottomnav a.active .hc-nav-icon {
    filter: none;
    transform: scale(1.08);
}

.hc-h1 {
    font-weight: 800;
    color: var(--hc-navy);
    font-size: 1.4rem;
    margin: 4px 0 14px;
}

/* Segmented pill for shop owners to switch between their personal visitor account and their
   shop dashboard — replaces a plain "swipe to switch" text hint with an actual tappable control;
   the swipe gesture (VisitorShell/Dashboard's swipe.js hookup) still works alongside it. */
.hc-account-switch {
    display: flex;
    gap: 4px;
    margin: 10px 16px 0;
    padding: 4px;
    background: var(--hc-cream);
    border: 1px solid #e7e0cc;
    border-radius: 999px;
}

.hc-account-switch a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hc-navy);
    white-space: nowrap;
}

.hc-account-switch a.active {
    background: var(--hc-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 47, 82, 0.3);
}

.hc-card {
    background: #fff;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 14px 16px;
    margin-bottom: 12px;
}

.hc-shop-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-shop-coin {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-shop-coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hc-shop-info {
    flex: 1;
    min-width: 0;
}

.hc-shop-name {
    font-weight: 700;
    color: var(--hc-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-shop-distance {
    font-size: 0.82rem;
    color: #6b7788;
}

.hc-badge-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}

.hc-badge-pill.in-range {
    background: #e3f6ea;
    color: var(--hc-green);
}

.hc-badge-pill.super {
    background: #fff3d6;
    color: var(--hc-gold);
}

.hc-badge-pill.claimed {
    background: #eef0f3;
    color: #8a93a3;
}

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 22px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease;
}

.hc-btn:active {
    transform: scale(0.97);
}

.hc-btn-primary {
    background: linear-gradient(135deg, var(--hc-gold-light), var(--hc-gold));
    color: var(--hc-navy);
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.45);
}

.hc-btn-secondary {
    background: var(--hc-navy);
    color: #fff;
}

.hc-btn-block {
    width: 100%;
}

.hc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hc-empty {
    text-align: center;
    color: #6b7788;
    padding: 40px 20px;
}

.hc-error {
    background: #fdecea;
    color: var(--hc-red);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.hc-success {
    background: #e3f6ea;
    color: var(--hc-green);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.hc-stats-row {
    display: flex;
    gap: 10px;
}

.hc-stat {
    flex: 1;
    text-align: center;
    background: #fff;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 14px 8px;
}

.hc-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hc-navy);
}

.hc-stat-label {
    font-size: 0.72rem;
    color: #8a93a3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hc-badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hc-badge-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--hc-shadow);
    text-align: center;
    padding: 12px 6px;
}

.hc-badge-item .icon {
    font-size: 1.8rem;
}

.hc-badge-item .label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--hc-navy);
    margin-top: 4px;
}

.hc-leaderboard-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #f0ede0;
}

.hc-leaderboard-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hc-navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hc-leaderboard-row:nth-child(1) .hc-leaderboard-rank {
    background: var(--hc-gold);
    color: var(--hc-navy);
}

.hc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.hc-tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    background: #eef0f3;
    color: #6b7788;
    border: none;
    cursor: pointer;
}

.hc-tab.active {
    background: var(--hc-navy);
    color: #fff;
}

/* Catch screen */
.hc-catch-view {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hc-catch-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-catch-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    color: #fff;
}

.hc-catch-close {
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
}

/* Mini radar HUD (discovery coins only) — a real reading of which way to turn and how close
   you are, driven frame-by-frame by coinmotion.js from the same data the hunt itself uses. */
.hc-radar-wrap {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(39, 184, 255, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hc-radar-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hc-radar-pulse {
    transform-origin: 200px 200px;
}

.hc-radar-coin {
    transition: opacity 0.2s ease;
}

.hc-catch-coin-wrap {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    perspective: 700px;
}

.hc-catch-coin {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    /* Starts hidden — coinmotion.js reveals it with hc-pop-in after a short delay, then
       switches to hc-coin-live for the idle float+tilt wobble. No animation here in the base
       rule: an `animation` on `transform` would override this static scale/opacity from frame 0. */
    opacity: 0;
    transform: scale(0.3);
}

.hc-catch-coin img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* The coin art has its own gold shading and edge — this stands in for the box-shadow glow
       the old solid-color ball had, so it still reads as sitting above the camera feed. */
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

/* Coin "portal" effect — float+tilt wobble, a soft glow behind the coin, a light beam, and a
   multi-ring pulsing portal beneath it. Adapted from a client-provided animation mockup, kept in
   the app's gold palette (rather than the mockup's cyan) to match the coin art and the rest of
   the UI. All pieces are separate elements/animations rather than piling multiple `animation`s
   onto one element's `transform` — those don't compose, the last one simply wins. */
@keyframes hc-coin-live {
    0%, 100% { transform: translateY(0) rotateZ(-1.5deg) rotateY(-3deg) scale(1); }
    50% { transform: translateY(-16px) rotateZ(1.5deg) rotateY(4deg) scale(1.03); }
}

.hc-coin-glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 221, 80, 0.65) 0%,
        rgba(255, 190, 0, 0.3) 34%,
        rgba(255, 170, 0, 0.1) 58%,
        transparent 76%);
    filter: blur(14px);
    animation: hc-coin-glow-pulse 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes hc-coin-glow-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1.15); }
    50% { opacity: 1; transform: scale(1.35); }
}

.hc-coin-beam {
    position: absolute;
    left: 50%;
    bottom: -46px;
    width: 4px;
    height: 60px;
    transform: translateX(-50%);
    border-radius: 4px;
    background: linear-gradient(to bottom,
        rgba(255, 221, 80, 0),
        rgba(255, 210, 60, 0.85) 25%,
        rgba(246, 197, 0, 0.9) 65%,
        rgba(246, 197, 0, 0));
    box-shadow: 0 0 7px rgba(255, 210, 60, 0.85), 0 0 16px rgba(246, 197, 0, 0.6);
    animation: hc-beam-pulse 1.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hc-beam-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleY(0.85); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}

.hc-coin-portal {
    position: absolute;
    left: 50%;
    bottom: -78px;
    width: 130px;
    height: 44px;
    transform: translateX(-50%);
    pointer-events: none;
}

.hc-coin-portal-floor {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
        rgba(246, 197, 0, 0.28) 0%,
        rgba(246, 197, 0, 0.12) 45%,
        transparent 75%);
    filter: blur(3px);
}

.hc-coin-portal-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 30px;
    border: 2px solid rgba(255, 214, 70, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.55);
    box-shadow: 0 0 6px rgba(255, 214, 70, 0.85), 0 0 14px rgba(246, 197, 0, 0.55);
    opacity: 0;
}

.hc-coin-portal-ring.r1 { animation: hc-portal-ring-pulse 2.4s linear infinite 0s; }
.hc-coin-portal-ring.r2 { animation: hc-portal-ring-pulse 2.4s linear infinite 0.8s; }
.hc-coin-portal-ring.r3 { animation: hc-portal-ring-pulse 2.4s linear infinite 1.6s; }

@keyframes hc-portal-ring-pulse {
    0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.55); }
    72% { opacity: 0.2; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}

.hc-coin-portal-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid #ffe27a;
    box-shadow: 0 0 6px #ffd447, 0 0 14px rgba(246, 197, 0, 0.75), inset 0 0 10px rgba(255, 226, 122, 0.5);
    animation: hc-portal-core-pulse 1.45s ease-in-out infinite;
}

@keyframes hc-portal-core-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.96); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hc-coin-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffe56a;
    box-shadow: 0 0 6px #ffd34d;
    opacity: 0;
    pointer-events: none;
}

.hc-coin-sparkle.s1 { left: 12%; top: 30%; animation: hc-sparkle 2.4s ease-in-out infinite 0.1s; }
.hc-coin-sparkle.s2 { left: 80%; top: 20%; animation: hc-sparkle 2.8s ease-in-out infinite 0.55s; }
.hc-coin-sparkle.s3 { left: 6%; top: 60%; animation: hc-sparkle 2.3s ease-in-out infinite 1s; }
.hc-coin-sparkle.s4 { left: 88%; top: 55%; animation: hc-sparkle 2.6s ease-in-out infinite 1.35s; }
.hc-coin-sparkle.s5 { left: 45%; top: 8%; animation: hc-sparkle 3s ease-in-out infinite 0.9s; }
.hc-coin-sparkle.s6 { left: 60%; top: 68%; animation: hc-sparkle 2.1s ease-in-out infinite 0.4s; }

@keyframes hc-sparkle {
    0%, 100% { opacity: 0; transform: translateY(10px) scale(0.2); }
    35% { opacity: 1; }
    70% { opacity: 0.45; transform: translateY(-24px) scale(1); }
}


@keyframes hc-pop-in {
    0% { opacity: 0; transform: scale(0.3) translateY(0); }
    60% { opacity: 1; transform: scale(1.15) translateY(-6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}


.hc-catch-bottom {
    position: relative;
    z-index: 2;
    /* Bottom padding clears the fixed backpack HUD (bottom:16px, 60px tall) so the out-of-range
       warning and the catch hint text never render behind/through it. */
    padding: 18px 20px 96px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}

.hc-catch-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 4px 0 0;
}

/* Neon HUD banners for the two catch-screen messages a visitor sees mid-hunt (out of range /
   search hint) — a client-provided design, cropped from a single reference mockup down to just
   the left-hand icon for each state (the icon is the identifying element; the rest of that
   mockup's wide illustration doesn't fit this app's narrow mobile-width catch screen). */
.hc-hud-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 92%;
    padding: 11px 15px;
    border-radius: 14px;
    margin: 0 auto 10px;
    animation: hc-hud-fly-in 0.45s cubic-bezier(.2, .8, .2, 1);
}

@keyframes hc-hud-fly-in {
    from { transform: translateX(60px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hc-hud-banner img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.hc-hud-banner-title {
    font-family: "Rajdhani", "Poppins", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.25;
}

.hc-hud-banner-subtitle {
    font-family: "Rajdhani", "Poppins", sans-serif;
    font-size: 0.78rem;
    margin: 2px 0 0;
    line-height: 1.3;
}

.hc-hud-banner.danger {
    background: linear-gradient(135deg, #2a0a14, #1a0510);
    border: 1px solid rgba(255, 77, 109, 0.55);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.25);
}

.hc-hud-banner.danger .hc-hud-banner-title {
    color: #ff6b85;
}

.hc-hud-banner.danger .hc-hud-banner-subtitle {
    color: #d8c9d6;
}

.hc-hud-banner.info {
    background: linear-gradient(135deg, #0d2340, #081428);
    border: 1px solid rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.hc-hud-banner.info .hc-hud-banner-title {
    color: #fff;
}

.hc-hud-banner.info .hc-hud-banner-subtitle {
    color: #a9c4e0;
}

.hc-catch-code-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

/* Coin-type badges (supercoin QR code / camera hunt) shown at the bottom of the catch screen —
   client-provided mockup, translated to the app's own accents: gold for supercoin, and the same
   radar blue (#27b8ff) the discovery-hunt HUD above already uses, for visual continuity on one
   screen rather than introducing a third blue. Replaces the old plain input + plain-text hints. */
.hc-coin-badge {
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-height: 220px;
    padding: 14px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), #0a1018;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    animation: hc-hud-fly-in 0.45s cubic-bezier(.2, .8, .2, 1);
    transition: opacity 0.4s ease, max-height 0.4s ease 0.05s, margin-bottom 0.4s ease 0.05s,
        padding 0.4s ease 0.05s, border-width 0.4s ease 0.05s;
}

/* Auto-dismissed camera hint (Vangen.razor/VangenEvent.razor, a few seconds after it appears) —
   fades out, then collapses so the coin/supercoin badge below isn't left with a dead gap. */
.hc-coin-badge.hc-coin-badge--dismissed {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    pointer-events: none;
}

.hc-coin-badge::after {
    content: "";
    position: absolute;
    inset: auto -20% -65% 30%;
    height: 130px;
    pointer-events: none;
    opacity: 0.22;
    filter: blur(26px);
    border-radius: 50%;
}

.hc-coin-badge--qr { border-color: rgba(212, 160, 23, 0.35); }
.hc-coin-badge--qr::after { background: radial-gradient(circle, var(--hc-gold-light), transparent 65%); }

.hc-coin-badge--track { border-color: rgba(39, 184, 255, 0.4); }
.hc-coin-badge--track::after { background: radial-gradient(circle, #27b8ff, transparent 65%); }

.hc-coin-badge-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    isolation: isolate;
    /* The QR badge's icon is a real <button> (tap to collapse) — the track/camera badge's icon
       is a plain <div>, so these resets are no-ops there. */
    padding: 0;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hc-coin-badge--qr .hc-coin-badge-icon {
    color: #fff;
    border: 1px solid rgba(246, 197, 0, 0.6);
    background: radial-gradient(circle at 50% 50%, rgba(246, 197, 0, 0.18), rgba(246, 197, 0, 0.04) 55%, rgba(0, 0, 0, 0.12) 72%);
    box-shadow: 0 0 0 7px rgba(246, 197, 0, 0.05), 0 0 22px rgba(246, 197, 0, 0.3), inset 0 0 20px rgba(246, 197, 0, 0.1);
}

.hc-coin-badge--track .hc-coin-badge-icon {
    color: #fff;
    border: 1px solid rgba(39, 184, 255, 0.75);
    background: radial-gradient(circle at 50% 50%, rgba(39, 184, 255, 0.18), rgba(39, 184, 255, 0.04) 55%, rgba(0, 0, 0, 0.12) 72%);
    box-shadow: 0 0 0 7px rgba(39, 184, 255, 0.05), 0 0 24px rgba(39, 184, 255, 0.34), inset 0 0 20px rgba(39, 184, 255, 0.12);
}

.hc-coin-badge-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
}

.hc-coin-badge-icon::before,
.hc-coin-badge-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
    border: 1px solid currentColor;
    opacity: 0.26;
}

.hc-coin-badge-icon::after {
    inset: 15px;
    opacity: 0.18;
}

.hc-coin-badge-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hc-coin-badge-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-family: "Rajdhani", "Poppins", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
}

.hc-coin-badge--qr .hc-coin-badge-label {
    color: #141414;
    background: linear-gradient(180deg, var(--hc-gold-light), var(--hc-gold));
}

.hc-coin-badge--track .hc-coin-badge-label {
    color: #d9efff;
    background: rgba(39, 184, 255, 0.16);
    border: 1px solid rgba(39, 184, 255, 0.28);
}

.hc-coin-badge-title {
    margin: 0;
    font-family: "Rajdhani", "Poppins", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.hc-coin-badge-text {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    line-height: 1.35;
}

.hc-coin-badge-action {
    grid-column: 1 / -1;
    margin-top: 6px;
    display: flex;
    justify-content: center;
}

.hc-coin-badge-action .hc-catch-code-input {
    width: auto;
    min-width: 150px;
    max-width: 200px;
    flex: 0 1 auto;
    margin-bottom: 0;
}

.hc-result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 47, 82, 0.92);
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 24px;
    gap: 10px;
}

.hc-result-overlay .big-coin {
    font-size: 4rem;
}

.hc-result-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.hc-nickname-form {
    display: flex;
    gap: 8px;
}

.hc-nickname-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d8dde5;
}

/* Backpack HUD on the catch screen — a running total of coins caught, so the "wow" of a catch
   has somewhere to visibly land. Sits below hc-result-overlay's z-index (60) so the full-screen
   celebration correctly covers it once the fly-in animation (coinfly.js) finishes. */
.hc-backpack {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 4;
    width: 60px;
    height: 60px;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
}

.hc-backpack img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

.hc-backpack-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--hc-gold);
    color: #241a00;
    font-weight: 800;
    font-size: 0.78rem;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Impact bounce, toggled briefly by coinfly.js when the flying coin lands. */
.hc-backpack-bump {
    transform: translateX(-50%) scale(1.28);
}

/* Quick-access QR icon — appears next to the backpack once the supercoin badge above has
   auto-collapsed (see Vangen.razor's superBadgeCollapsed), so the option to type/re-check the
   code is still one tap away without permanently spending the screen space on it. */
.hc-qr-quickaccess {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(calc(-50% - 74px));
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(246, 197, 0, 0.6);
    background: radial-gradient(circle at 50% 50%, rgba(246, 197, 0, 0.22), rgba(10, 16, 24, 0.92) 62%);
    box-shadow: 0 0 0 6px rgba(246, 197, 0, 0.05), 0 0 18px rgba(246, 197, 0, 0.35), 0 3px 8px rgba(0, 0, 0, 0.5);
    color: #ffd447;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: hc-hud-fly-in 0.4s cubic-bezier(.2, .8, .2, 1);
}

.hc-qr-quickaccess svg {
    width: 26px;
    height: 26px;
}

/* The coin clone coinfly.js animates from the catch button to the backpack — appended to
   <body> (not nested in .hc-catch-view) so it renders above everything, including the result
   overlay, for its brief flight. */
.hc-flying-coin {
    position: fixed;
    width: 54px;
    height: 54px;
    z-index: 65;
    pointer-events: none;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

/* Auth pages (Login/Register/etc.) — the gradient fills the full viewport width (nicer for shop
   owners/admins logging in from a desktop PC), while .hc-auth-inner keeps the actual form at a
   readable, mobile-matching column width, centered within it. */
.hc-auth-wrap {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    width: 100%;
    min-height: 100dvh;
    background: linear-gradient(180deg, var(--hc-cream) 0%, #ffffff 260px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hc-auth-inner {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hc-auth-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.hc-auth-title {
    font-weight: 800;
    color: var(--hc-navy);
    font-size: 1.5rem;
    margin: 0 0 4px;
}

.hc-auth-subtitle {
    color: #6b7788;
    font-size: 0.9rem;
    margin: 0 0 24px;
    text-align: center;
}

.hc-auth-card {
    width: 100%;
    background: #fff;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 24px 22px;
}

.hc-form-group {
    margin-bottom: 16px;
}

.hc-label {
    display: block;
    font-weight: 600;
    color: var(--hc-navy);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.hc-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d8dde5;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.hc-input:focus {
    outline: none;
    border-color: var(--hc-gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.hc-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 18px;
}

.hc-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a93a3;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 20px 0;
}

.hc-divider::before,
.hc-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee7d4;
}

.hc-auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: #6b7788;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-link {
    color: var(--hc-navy);
    font-weight: 600;
    text-decoration: none;
}

.hc-link:hover {
    text-decoration: underline;
}

/* Reset default button chrome when .hc-link is used on a <button> (e.g. PasskeySubmit). */
button.hc-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

.text-danger,
.validation-message {
    color: var(--hc-red);
    font-size: 0.82rem;
}

.hc-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(15, 47, 82, 0.2);
    border-top-color: var(--hc-navy);
    border-radius: 50%;
    animation: hc-spin 0.8s linear infinite;
}

@keyframes hc-spin {
    to { transform: rotate(360deg); }
}

/* Admin dashboard */
.hc-admin-shell {
    font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
    display: flex;
    min-height: 100dvh;
    background: #f5f6f8;
}

.hc-admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--hc-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s ease, width 0.2s ease;
    overflow: hidden;
}

.hc-admin-sidebar.collapsed {
    margin-left: -240px;
}

.hc-admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.hc-admin-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hc-admin-brand span {
    font-weight: 800;
    font-size: 1.05rem;
}

.hc-admin-nav {
    padding: 10px 0;
    flex: 1;
}

.hc-admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.hc-admin-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hc-admin-nav a.active {
    background: rgba(212, 160, 23, 0.15);
    color: var(--hc-gold-light);
    border-left-color: var(--hc-gold);
}

.hc-admin-nav .icon {
    width: 20px;
    text-align: center;
}

.hc-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hc-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid #eceef1;
}

.hc-admin-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--hc-navy);
    padding: 4px 8px;
}

.hc-admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--hc-navy);
    font-weight: 600;
}

.hc-admin-content {
    padding: 24px;
    flex: 1;
}

.hc-admin-h1 {
    font-weight: 800;
    color: var(--hc-navy);
    font-size: 1.5rem;
    margin: 0 0 18px;
}

.hc-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.hc-admin-stat {
    background: #fff;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 18px 20px;
}

.hc-admin-stat .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--hc-navy);
}

.hc-admin-stat .label {
    font-size: 0.78rem;
    color: #8a93a3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hc-admin-panel {
    background: #fff;
    border-radius: var(--hc-radius);
    box-shadow: var(--hc-shadow);
    padding: 20px 22px;
    margin-bottom: 20px;
}

.hc-admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hc-admin-panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hc-navy);
    margin: 0;
}

.hc-admin-table-wrap {
    overflow-x: auto;
}

.hc-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.hc-admin-table th,
.hc-admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    white-space: nowrap;
}

.hc-admin-table th {
    color: var(--hc-navy);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #fafbfc;
}

.hc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.hc-status-badge.pendingapproval {
    background: #fff3d6;
    color: var(--hc-gold);
}

.hc-status-badge.approved {
    background: #e3f6ea;
    color: var(--hc-green);
}

.hc-status-badge.suspended {
    background: #fdecea;
    color: var(--hc-red);
}

.hc-btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.hc-admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.hc-copy-box {
    background: #fafbfc;
    border: 1px dashed #d8dde5;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

@media (max-width: 720px) {
    .hc-admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 30;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .hc-admin-sidebar.collapsed {
        margin-left: -240px;
    }

    .hc-admin-sidebar:not(.collapsed) {
        margin-left: 0;
    }
}
