/* ═══ HELIONS MODAL + WALLET PICKER STYLES ═══ */
.hc-modal-root {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
.hc-modal-root[aria-hidden="false"] {
    pointer-events: auto;
}

.hc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 8, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 180ms ease;
}
.hc-modal-backdrop.open {
    opacity: 1;
}

.hc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(420px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #0a1014;
    border: 1px solid #1f3a3a;
    box-shadow:
        0 0 0 1px rgba(160, 255, 208, 0.05),
        0 24px 60px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    font-family: var(--font-pixel, 'Press Start 2P'), monospace;
    color: #cfe9d8;
}
.hc-modal.wide {
    width: min(560px, 94vw);
}
.hc-modal.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hc-modal-frame {
    padding: 18px 22px 20px;
    position: relative;
}

.hc-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1a3030;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.hc-modal-dots {
    display: flex;
    gap: 5px;
}
.hc-modal-dots span {
    width: 8px;
    height: 8px;
    background: #2a4040;
    border-radius: 50%;
}
.hc-modal-dots span:nth-child(1) { background: #ff6b6b; }
.hc-modal-dots span:nth-child(2) { background: #ffd166; }
.hc-modal-dots span:nth-child(3) { background: #88ccaa; }

.hc-modal-title {
    flex: 1;
    font-size: 9px;
    letter-spacing: 2px;
    color: #a0ffd0;
    text-shadow: 1px 1px 0 #000;
}

.hc-modal-close {
    background: transparent;
    border: none;
    color: #5a7878;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    font-family: monospace;
    transition: color 120ms ease;
}
.hc-modal-close:hover {
    color: #ff6b6b;
}

.hc-modal-icon {
    text-align: center;
    font-size: 24px;
    color: #88ccaa;
    margin-bottom: 12px;
}

.hc-modal-body {
    font-family: var(--font-mono, 'VT323'), monospace;
    font-size: 17px;
    line-height: 1.45;
    color: #cfe9d8;
    margin-bottom: 18px;
}

.hc-modal-text {
    padding: 4px 0;
}

.hc-modal-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin-right: 6px;
    font-family: monospace;
    font-weight: bold;
}
.hc-modal-tag.ok { background: #88ccaa; color: #06140c; }
.hc-modal-tag.warn { background: #ffd166; color: #2a1a00; }
.hc-modal-tag.info { background: #5a7878; color: #fff; }

.hc-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.hc-modal-btn {
    background: transparent;
    border: 1px solid #2a4040;
    color: #88ccaa;
    padding: 10px 16px;
    font-family: var(--font-pixel, 'Press Start 2P'), monospace;
    font-size: 8px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 140ms ease;
    text-transform: uppercase;
}
.hc-modal-btn:hover:not(:disabled) {
    border-color: #88ccaa;
    color: #a0ffd0;
    background: rgba(136, 204, 170, 0.05);
}
.hc-modal-btn.primary {
    background: #88ccaa;
    color: #06140c;
    border-color: #88ccaa;
}
.hc-modal-btn.primary:hover:not(:disabled) {
    background: #a0ffd0;
    border-color: #a0ffd0;
}
.hc-modal-btn.danger {
    color: #ff8c8c;
    border-color: #4a2020;
}
.hc-modal-btn.danger:hover:not(:disabled) {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #1a0606;
}
.hc-modal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hc-modal-error {
    margin-top: 12px;
    padding: 8px 10px;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff8c8c;
    font-family: var(--font-mono, 'VT323'), monospace;
    font-size: 14px;
}

/* ═══ WALLET PICKER LIST ═══ */
.hc-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 8px;
}

.hc-wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(20, 30, 36, 0.6);
    border: 1px solid #1a3030;
    cursor: pointer;
    transition: all 140ms ease;
    text-align: left;
    color: #cfe9d8;
    font-family: var(--font-mono, 'VT323'), monospace;
    width: 100%;
}
.hc-wallet-item:hover {
    border-color: #88ccaa;
    background: rgba(136, 204, 170, 0.06);
    transform: translateX(2px);
}
.hc-wallet-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hc-wallet-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background: #1a2428;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #88ccaa;
    font-family: var(--font-pixel, 'Press Start 2P'), monospace;
    font-size: 10px;
}
.hc-wallet-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hc-wallet-name {
    flex: 1;
    font-size: 17px;
    color: #e8f6ed;
    letter-spacing: 0.5px;
}

.hc-wallet-arrow {
    color: #5a7878;
    font-family: monospace;
    font-size: 14px;
}

.hc-wallet-empty {
    padding: 20px 12px;
    text-align: center;
    color: #88ccaa;
    font-family: var(--font-mono, 'VT323'), monospace;
    font-size: 16px;
    line-height: 1.5;
    background: rgba(20, 30, 36, 0.4);
    border: 1px dashed #2a4040;
}
.hc-wallet-empty strong {
    display: block;
    color: #ff8c8c;
    font-family: var(--font-pixel, 'Press Start 2P'), monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.hc-wallet-empty p {
    margin: 4px 0;
}

.hc-wallet-hint {
    margin-top: 12px;
    font-family: var(--font-mono, 'VT323'), monospace;
    font-size: 13px;
    color: #5a7878;
    text-align: center;
    line-height: 1.4;
}

/* ═══ MOBILE ═══ */
@media (max-width: 768px) {
    .hc-modal {
        width: 94vw;
        max-height: 80vh;
    }
    .hc-modal-frame {
        padding: 16px 16px 18px;
    }
    .hc-modal-title {
        font-size: 8px;
    }
    .hc-modal-body {
        font-size: 15px;
    }
    .hc-modal-btn {
        font-size: 7px;
        padding: 9px 12px;
    }
    .hc-wallet-name {
        font-size: 15px;
    }
    .hc-wallet-icon {
        width: 28px;
        height: 28px;
    }
}

/* ── Team dossier ─────────────────────────────── */
.hc-dossier { display: flex; flex-direction: column; gap: 18px; }

.hc-dossier-head {
    display: flex;
    gap: 18px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
}

.hc-dossier-avatar {
    width: 96px;
    height: 96px;
    background-size: cover;
    background-position: center 20%;
    background-color: #0a0a1a;
    border: 2px solid var(--cyan, #00e5ff);
    image-rendering: pixelated;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.hc-dossier-meta { display: flex; flex-direction: column; gap: 6px; }
.hc-dossier-codename {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: var(--cyan, #00e5ff);
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.hc-dossier-role {
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: #c8d4dc;
    opacity: 0.85;
}
.hc-dossier-tag {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    letter-spacing: 2px;
    color: #ff9d3a;
    text-shadow: 1px 1px 0 #000;
}

.hc-dossier-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hc-dossier-stat {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.18);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hc-dossier-stat .k {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    letter-spacing: 1.5px;
    color: #5f7a85;
}
.hc-dossier-stat .v {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: var(--cyan, #00e5ff);
}

.hc-dossier-log {
    background: rgba(0, 0, 0, 0.4);
    border-left: 2px solid var(--cyan, #00e5ff);
    padding: 12px 14px;
}
.hc-dossier-log-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--cyan, #00e5ff);
    margin-bottom: 10px;
}
.hc-dossier-log p {
    font-family: 'VT323', monospace;
    font-size: 16px;
    line-height: 1.5;
    color: #c8d4dc;
    margin: 4px 0;
}

.hc-dossier-classified {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.06), transparent 70%);
    border: 1px dashed rgba(255, 80, 80, 0.45);
    padding: 12px 14px;
    position: relative;
}
.hc-dossier-classified-tag {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    letter-spacing: 3px;
    color: #ff5050;
    margin-bottom: 6px;
    text-shadow: 1px 1px 0 #000;
}
.hc-dossier-classified p {
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: #b8b8b8;
    margin: 0;
    font-style: italic;
}

@media (max-width: 600px) {
    .hc-dossier-stats { grid-template-columns: 1fr; }
    .hc-dossier-avatar { width: 72px; height: 72px; }
    .hc-dossier-codename { font-size: 11px; }
}

/* ── Classified file modal ─────────────────────────────── */
.hc-file { display: flex; flex-direction: column; gap: 16px; }

.hc-file-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 229, 255, 0.2);
}

.hc-file-tab {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--cyan, #00e5ff);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 6px 12px;
}

.hc-file-stamp {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    letter-spacing: 2px;
    padding: 4px 10px;
    border: 1px solid;
}
.hc-file-stamp.open {
    color: #4ade80;
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
.hc-file-stamp.sealed {
    color: #fbbf24;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}
.hc-file-stamp.corrupt {
    color: #fb923c;
    border-color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
}
.hc-file-stamp.redacted {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.hc-file-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hc-file-meta-row {
    background: rgba(0, 229, 255, 0.04);
    border: 1px solid rgba(0, 229, 255, 0.15);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hc-file-meta-row .k {
    font-family: 'Press Start 2P', monospace;
    font-size: 7px;
    letter-spacing: 1.5px;
    color: #5f7a85;
}
.hc-file-meta-row .v {
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: var(--cyan, #00e5ff);
}

.hc-file-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 80, 80, 0.3);
    padding: 16px 18px;
    font-family: 'VT323', monospace;
    font-size: 17px;
    line-height: 1.6;
    color: #d0d0d0;
    min-height: 140px;
    white-space: pre-wrap;
    position: relative;
    transition: border-color 600ms ease;
}
.hc-file-content.decoded {
    border-color: rgba(74, 222, 128, 0.45);
    color: #e8e8e8;
}

.hc-file-notes {
    background: rgba(0, 229, 255, 0.05);
    border-left: 2px solid var(--cyan, #00e5ff);
    padding: 10px 14px;
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: #b0c0ca;
    font-style: italic;
}

@media (max-width: 600px) {
    .hc-file-meta { grid-template-columns: 1fr; }
}

/* ── Evidence Photo Lightbox ── */
.evidence-viewer { display: flex; gap: 20px; align-items: flex-start; }
.evidence-photo { flex: 0 0 auto; }
.evidence-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border: 3px solid rgba(80, 80, 80, 0.3);
    display: block;
    filter: brightness(0.95) contrast(1.1);
}
.evidence-corrupted {
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border: 3px solid rgba(255, 60, 60, 0.3);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #ff4444;
    letter-spacing: 2px;
    text-align: center;
    line-height: 2.2;
}
.evidence-corrupted span {
    font-size: 7px;
    color: #5a3030;
    letter-spacing: 1px;
}
.evidence-meta { flex: 1; min-width: 0; }
.evidence-timestamp {
    font-family: 'VT323', monospace;
    font-size: 13px;
    color: #8a8a8a;
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.evidence-notes-title {
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: rgba(180, 180, 180, 0.6);
    letter-spacing: 3px;
    margin-bottom: 10px;
}
.evidence-notes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.evidence-notes li {
    font-family: 'VT323', monospace;
    font-size: 15px;
    color: #c0c0c0;
    padding-left: 14px;
    position: relative;
}
.evidence-notes li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: rgba(150, 150, 150, 0.5);
}
@media (max-width: 600px) {
    .evidence-viewer { flex-direction: column; }
    .evidence-img { width: 100%; height: auto; max-height: 200px; }
}
