:root {
    --bg: #0a0a1a;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.10);
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.6);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-from: #6366f1;
    --accent-to: #8b5cf6;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --danger: #ef4444;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* My Info Section */
.my-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    animation: fadeSlideIn 0.4s ease;
}

.my-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.my-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.my-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    border-radius: 14px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px var(--accent-glow);
}

h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
}

.search-box:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
    display: flex;
    align-items: center;
    padding-left: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    min-width: 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: #fff;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.search-box button:hover {
    opacity: 0.92;
}

.search-box button:active {
    transform: scale(0.97);
}

/* Error */
.error {
    color: var(--danger);
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    margin-bottom: 8px;
}

/* Result */
.result {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 0;
    animation: fadeSlideIn 0.35s ease;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: var(--surface-hover);
}

.result-item .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.result-item .label svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.result-item .value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
    max-width: 55%;
}

/* Loading */
.my-loading,
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-from);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    body { padding: 12px; }
    .card { padding: 24px 18px; border-radius: 16px; }
    h1 { font-size: 20px; }
    .search-box button { padding: 9px 16px; }
    .result-item { padding: 10px 14px; }
}
