/* ── id.auver.io — Stylesheet ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #08080f;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.06);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text: #e5e5e5;
    --text-muted: #6b7280;
    --text-dim: #3f3f4a;
    --purple: #a855f7;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Container ─────────────────────────────────── */
.container {
    max-width: 580px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    position: relative;
    min-height: 100vh;
}

.hero-glow {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(168,85,247,0.12) 0%, rgba(34,197,94,0.06) 50%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* ── Logo ──────────────────────────────────────── */
.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Landing ───────────────────────────────────── */
#landing { text-align: center; padding-top: 120px; }
#landing h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.subtitle {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* ── Search Box ────────────────────────────────── */
.search-box {
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    transition: border-color 0.2s;
    position: relative;
    z-index: 1;
}
.search-box:focus-within { border-color: var(--purple); }
.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: 'Inter', monospace;
    font-size: 13px;
    padding: 12px 16px;
    outline: none;
    min-width: 0;
}
.search-box input::placeholder { color: var(--text-dim); }

/* ── Trust Badges ──────────────────────────────── */
.trust-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(168,85,247,0.3); }
.btn-outline {
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }
.btn-ghost {
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--border-hover); }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── Nav Bar ───────────────────────────────────── */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

/* ── Profile Card ──────────────────────────────── */
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px 32px 32px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
}

/* ── Emblem ─────────────────────────────────────── */
.emblem-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.emblem-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
    animation: emblemPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes emblemPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ── Status Badge ──────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.status-badge.verified { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.status-badge.unverified { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.status-badge.loading { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ── Profile Address ───────────────────────────── */
.profile-address {
    font-family: 'Inter', monospace;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    word-break: break-all;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Info Grid ─────────────────────────────────── */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.info-card {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: left;
    transition: border-color 0.2s;
}
.info-card:hover { border-color: var(--border-hover); }
.info-label { font-size: 10px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-value { font-size: 18px; font-weight: 800; color: var(--text); }
.info-desc { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

/* Level colors */
.level-L1 .info-value { color: var(--purple); }
.level-L2 .info-value { color: var(--blue); }
.level-L3 .info-value { color: var(--amber); }
.level-L4 .info-value { color: var(--red); }
.level-L5 .info-value { color: var(--green); }

/* ── Share Section ─────────────────────────────── */
.share-section {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}
.share-section h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.share-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.share-row input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: monospace;
    font-size: 12px;
    padding: 10px 14px;
    outline: none;
    min-width: 0;
}
.share-formats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ────────────────────────────────────── */
.footer-note {
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 32px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.footer-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--text); }

/* ── Error Card ────────────────────────────────── */
#error-view { padding-top: 120px; text-align: center; }
.error-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px 32px;
    position: relative;
    z-index: 1;
}
.error-icon { font-size: 48px; margin-bottom: 16px; }
.error-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.error-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 40px 16px 32px; }
    .profile-card { padding: 32px 20px 24px; }
    .info-grid { grid-template-columns: 1fr; }
    .share-formats { flex-direction: column; }
}

/* ── Animations ────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.container:not(.hidden) { animation: fadeIn 0.4s ease-out; }
