:root {
    --fplab-bg: #060911;
    --fplab-bg-card: #0d121f;
    --fplab-border: #1a2236;
    --fplab-border-glow: #00ff9d22;
    --fplab-text: #e0e6f0;
    --fplab-text-dim: #7a8599;
    --fplab-text-bright: #ffffff;
    --fplab-accent: #00ff9d;
    --fplab-accent-dim: #00ff9d33;
    --fplab-danger: #ff4757;
    --fplab-warning: #ffba08;
    --fplab-info: #00d4ff;
    --fplab-radius: 14px;
    --fplab-mono: 'JetBrains Mono', monospace;
    --fplab-sans: 'Inter', system-ui, sans-serif;
}
.fplab-container * { margin:0; padding:0; box-sizing:border-box; }
.fplab-container {
    background: var(--fplab-bg);
    color: var(--fplab-text);
    font-family: var(--fplab-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}
.fplab-container::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: linear-gradient(rgba(0,255,157,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,255,157,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0; pointer-events: none;
}
.fplab-inner-container { position: relative; z-index: 1; max-width: 1300px; margin: 0 auto; padding: 0 24px; }

.fplab-header { padding: 80px 0 60px; text-align: center; border-bottom: 1px solid var(--fplab-border); margin-bottom: 60px; }
.fplab-logo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--fplab-accent-dim); border: 1px solid var(--fplab-accent); border-radius: 100px; font-family: var(--fplab-mono); font-size: 12px; color: var(--fplab-accent); letter-spacing: 2px; margin-bottom: 24px; text-transform: uppercase; }
.fplab-logo-badge::before { content: ''; width: 8px; height: 8px; background: var(--fplab-accent); border-radius: 50%; box-shadow: 0 0 10px var(--fplab-accent); animation: fplab-pulse 2s infinite; }
@keyframes fplab-pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.fplab-header h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 700; background: linear-gradient(135deg, #fff 0%, var(--fplab-accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -2px; margin-bottom: 16px; }
.fplab-subtitle { color: var(--fplab-text-dim); font-size: 18px; max-width: 600px; margin: 0 auto; }

.fplab-identity-panel { background: var(--fplab-bg-card); border: 1px solid var(--fplab-border); border-radius: var(--fplab-radius); padding: 32px; margin-bottom: 40px; position: relative; overflow: hidden; }
.fplab-identity-panel::before { content: ''; position: absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, transparent, var(--fplab-accent), transparent); }
.fplab-identity-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.fplab-identity-header h2 { font-size: 22px; color: var(--fplab-text-bright); }
.fplab-identity-header .fplab-icon { width: 40px; height: 40px; background: var(--fplab-accent-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.fplab-input-group { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.fplab-input-group input { flex: 1; min-width: 250px; padding: 14px 18px; background: var(--fplab-bg); border: 1px solid var(--fplab-border); border-radius: 10px; color: var(--fplab-text-bright); font-family: var(--fplab-sans); font-size: 15px; transition: all 0.3s; }
.fplab-input-group input:focus { outline: none; border-color: var(--fplab-accent); box-shadow: 0 0 0 3px var(--fplab-accent-dim); }

.fplab-btn { padding: 14px 24px; border: none; border-radius: 10px; font-family: var(--fplab-sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.fplab-btn-primary { background: var(--fplab-accent); color: #000; }
.fplab-btn-primary:hover { box-shadow: 0 0 20px var(--fplab-accent-dim); transform: translateY(-1px); }
.fplab-btn-secondary { background: var(--fplab-info); color: #000; }
.fplab-btn-secondary:hover { box-shadow: 0 0 20px rgba(0,212,255,0.3); transform: translateY(-1px); }
.fplab-btn-danger { background: var(--fplab-danger); color: #fff; }
.fplab-btn-danger:hover { box-shadow: 0 0 20px rgba(255,71,87,0.3); transform: translateY(-1px); }
.fplab-btn-ghost { background: transparent; border: 1px solid var(--fplab-border); color: var(--fplab-text); }
.fplab-btn-ghost:hover { border-color: var(--fplab-accent); color: var(--fplab-accent); }
.fplab-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fplab-button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.fplab-result-banner { margin-top: 24px; padding: 20px 24px; border-radius: 12px; display: none; align-items: flex-start; gap: 16px; border: 1px solid var(--fplab-border); }
.fplab-result-banner.show { display: flex; }
.fplab-result-banner.success { background: rgba(0,255,157,0.08); border-color: var(--fplab-accent); }
.fplab-result-banner.warning { background: rgba(255,186,8,0.08); border-color: var(--fplab-warning); }
.fplab-result-banner.danger { background: rgba(255,71,87,0.08); border-color: var(--fplab-danger); }
.fplab-result-banner.info { background: rgba(0,212,255,0.08); border-color: var(--fplab-info); }
.fplab-result-icon { font-size: 28px; line-height: 1; }
.fplab-result-content h3 { font-size: 18px; margin-bottom: 4px; color: var(--fplab-text-bright); }
.fplab-result-content p { color: var(--fplab-text-dim); font-size: 14px; }

.fplab-trust-meter { margin-top: 20px; padding: 20px; background: var(--fplab-bg); border-radius: 12px; border: 1px solid var(--fplab-border); }
.fplab-trust-meter-bar { height: 12px; background: var(--fplab-bg-card); border-radius: 100px; overflow: hidden; position: relative; margin-top: 10px; }
.fplab-trust-meter-fill { height: 100%; border-radius: 100px; width: 0%; transition: width 1s ease; background: linear-gradient(90deg, var(--fplab-danger), var(--fplab-warning), var(--fplab-accent)); }
.fplab-trust-label { display: flex; justify-content: space-between; align-items: center; }
.fplab-trust-label span:first-child { font-size: 14px; color: var(--fplab-text-dim); }
.fplab-trust-label span:last-child { font-family: var(--fplab-mono); font-weight: 700; font-size: 20px; }

.fplab-section-title { display: flex; align-items: center; gap: 12px; margin: 50px 0 24px; font-size: 24px; color: var(--fplab-text-bright); font-weight: 600; }
.fplab-section-title::before { content: ''; width: 4px; height: 28px; background: var(--fplab-accent); border-radius: 2px; }
.fplab-section-title .fplab-count { margin-left: auto; font-family: var(--fplab-mono); font-size: 13px; color: var(--fplab-text-dim); background: var(--fplab-bg-card); padding: 4px 12px; border-radius: 100px; border: 1px solid var(--fplab-border); }

.fplab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
.fplab-card { background: var(--fplab-bg-card); border: 1px solid var(--fplab-border); border-radius: var(--fplab-radius); padding: 24px; transition: all 0.3s; position: relative; overflow: hidden; }
.fplab-card:hover { border-color: var(--fplab-border-glow); transform: translateY(-2px); }
.fplab-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.fplab-card-header h3 { font-size: 16px; color: var(--fplab-text-bright); display: flex; align-items: center; gap: 8px; }
.fplab-tag { font-family: var(--fplab-mono); font-size: 10px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; }
.fplab-tag-strong { background: var(--fplab-accent-dim); color: var(--fplab-accent); }
.fplab-tag-medium { background: rgba(255,186,8,0.15); color: var(--fplab-warning); }
.fplab-tag-weak { background: rgba(122,133,153,0.15); color: var(--fplab-text-dim); }

.fplab-data-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--fplab-border); gap: 12px; }
.fplab-data-row:last-child { border-bottom: none; }
.fplab-data-row .key { color: var(--fplab-text-dim); font-size: 13px; white-space: nowrap; }
.fplab-data-row .val { color: var(--fplab-text-bright); font-family: var(--fplab-mono); font-size: 13px; text-align: right; word-break: break-all; }
.fplab-data-row .val.highlight { color: var(--fplab-accent); }

.fplab-hash-display { margin-top: 12px; padding: 12px; background: var(--fplab-bg); border-radius: 8px; border: 1px solid var(--fplab-border); font-family: var(--fplab-mono); font-size: 11px; color: var(--fplab-accent); word-break: break-all; line-height: 1.8; }
.fplab-hash-display .fplab-label { color: var(--fplab-text-dim); display: block; margin-bottom: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

.fplab-fingerprint-visual { margin-top: 12px; width: 100%; height: 60px; background: var(--fplab-bg); border-radius: 8px; border: 1px solid var(--fplab-border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fplab-fingerprint-visual canvas { max-width: 100%; height: auto; }

.fplab-loading-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(6,9,17,0.95); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.fplab-loading-overlay.hidden { display: none; }
.fplab-spinner { width: 60px; height: 60px; border: 3px solid var(--fplab-border); border-top-color: var(--fplab-accent); border-radius: 50%; animation: fplab-spin 1s linear infinite; }
@keyframes fplab-spin { to { transform: rotate(360deg); } }
.fplab-loading-text { font-family: var(--fplab-mono); color: var(--fplab-accent); font-size: 14px; letter-spacing: 2px; }

.fplab-match-vectors { margin-top: 16px; }
.fplab-match-vector { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; }
.fplab-match-vector .check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.fplab-match-vector .check.yes { background: var(--fplab-accent-dim); color: var(--fplab-accent); }
.fplab-match-vector .check.no { background: rgba(255,71,87,0.15); color: var(--fplab-danger); }
.fplab-match-vector .name { flex: 1; color: var(--fplab-text-dim); font-family: var(--fplab-mono); font-size: 12px; }

.fplab-footer { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--fplab-border); text-align: center; color: var(--fplab-text-dim); font-size: 13px; }

.fplab-modal-overlay { position: fixed; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.fplab-modal-overlay.show { display: flex; }
.fplab-modal { background: var(--fplab-bg-card); border: 1px solid var(--fplab-border); border-radius: var(--fplab-radius); padding: 32px; max-width: 500px; width: 100%; }
.fplab-modal h3 { font-size: 20px; color: var(--fplab-text-bright); margin-bottom: 12px; }
.fplab-modal p { color: var(--fplab-text-dim); margin-bottom: 20px; font-size: 14px; }
.fplab-modal input { width: 100%; padding: 14px 18px; background: var(--fplab-bg); border: 1px solid var(--fplab-border); border-radius: 10px; color: var(--fplab-text-bright); font-family: var(--fplab-sans); margin-bottom: 16px; }
.fplab-modal input:focus { outline: none; border-color: var(--fplab-accent); }
.fplab-modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

@media (max-width: 768px) {
    .fplab-grid { grid-template-columns: 1fr; }
    .fplab-input-group { flex-direction: column; }
    .fplab-input-group input { min-width: 100%; }
}




/* ========================================= */
/* ARTICLE STYLING                           */
/* ========================================= */
.fplab-article {
   /* max-width: 800px;
    margin: 60px auto 0; */
    padding: 30%;
    background: var(--fplab-bg-card);
    border: 1px solid var(--fplab-border);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}
.fplab-article::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--fplab-info), transparent);
}
.fplab-article h2 {
    font-size: 32px;
    color: var(--fplab-text-bright);
    margin-bottom: 24px;
    line-height: 1.3;
    background: linear-gradient(135deg, #fff 0%, var(--fplab-info) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.fplab-article h3 {
    font-size: 22px;
    color: var(--fplab-text-bright);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid var(--fplab-accent);
}
.fplab-article p {
    color: var(--fplab-text);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.fplab-article p strong {
    color: var(--fplab-text-bright);
    font-weight: 600;
}
.fplab-article p em {
    color: var(--fplab-text-dim);
}

/* Responsive adjustments for article */
@media (max-width: 768px) {
    .fplab-article {
        padding: 24px;
        /* margin-top: 40px; */
    }
    .fplab-article h2 {
        font-size: 26px;
    }
    .fplab-article h3 {
        font-size: 20px;
    }
    .fplab-article p {
        font-size: 15px;
        line-height: 1.7;
    }
}