/* ===== CSS Design System - Pokemon Check LG ===== */
:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #12121f;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-glass: rgba(255,255,255,0.04);
    --border-glass: rgba(255,255,255,0.08);
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --accent-red: #ff6b6b;
    --accent-yellow: #ffd93d;
    --accent-blue: #6bcbff;
    --accent-green: #4ade80;
    --accent-orange: #ff9f43;
    --gradient-main: linear-gradient(135deg, #ff6b6b, #ffd93d, #6bcbff);
    --gradient-red: linear-gradient(135deg, #ff6b6b, #ee5a24);
    --gradient-green: linear-gradient(135deg, #4ade80, #22c55e);
    --gradient-warn: linear-gradient(135deg, #ff9f43, #ee5a24);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(255,107,107,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,107,107,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(107,203,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,217,61,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10,10,20,0.85);
    border-bottom: 1px solid var(--border-glass);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon svg { width: 36px; height: 36px; }

.logo-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 2px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255,107,107,0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Main ===== */
.main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 64px - 60px);
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active { display: block; }

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

/* ===== Hero / Check Page ===== */
.hero {
    text-align: center;
    padding: 80px 24px 48px;
    position: relative;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.search-box { max-width: 600px; margin: 0 auto; }

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 6px 6px 6px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.search-input-wrap:focus-within {
    border-color: rgba(255,107,107,0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.search-icon { color: var(--text-muted); flex-shrink: 0; }

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 12px;
    font-family: var(--font-main);
}

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

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-main);
    color: #0a0a14;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-btn:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,107,107,0.3); }

.search-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 12px;
}

/* ===== Results ===== */
.results-area {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.result-profile {
    margin-bottom: 32px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

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

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-clip: padding-box;
    flex-shrink: 0;
}

.profile-avatar.safe { border-color: var(--accent-green); }
.profile-avatar.warning { border-color: var(--accent-orange); }
.profile-avatar.danger { border-color: var(--accent-red); }

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 3px solid var(--border-glass);
}

.profile-info { flex: 1; }

.profile-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-uid {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: monospace;
}

.profile-fb-link {
    color: var(--accent-blue);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.profile-fb-link:hover { text-decoration: underline; }

.profile-badge {
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.badge-safe { background: rgba(74,222,128,0.15); color: var(--accent-green); }
.badge-warning { background: rgba(255,159,67,0.15); color: var(--accent-orange); }
.badge-danger { background: rgba(255,107,107,0.15); color: var(--accent-red); }

/* Pending notice */
.pending-notice {
    text-align: center;
    padding: 10px 16px;
    margin-top: 8px;
    background: rgba(255,159,67,0.08);
    border: 1px dashed rgba(255,159,67,0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-orange);
}

.report-count-info {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.report-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
    animation: slideUp 0.5s ease;
    animation-fill-mode: both;
}

.report-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.report-category-tag {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,107,107,0.12);
    color: var(--accent-red);
}

.report-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.report-status-tag {
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
}
.status-pending { background: rgba(255,159,67,0.12); color: var(--accent-orange); }
.status-approved { background: rgba(74,222,128,0.12); color: var(--accent-green); }

.report-pending {
    border-style: dashed !important;
    border-color: rgba(255,159,67,0.3) !important;
    opacity: 0.85;
}

.report-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.report-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.report-reporter {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.report-evidence-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.report-evidence-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
}

.report-evidence-thumb:hover { transform: scale(1.1); border-color: var(--accent-blue); }

.no-results {
    text-align: center;
    padding: 48px 24px;
    animation: fadeIn 0.5s ease;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--accent-green);
}

.no-results p { color: var(--text-secondary); }

/* ===== Stats ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 48px auto 0;
    padding: 0 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-2px); border-color: rgba(255,107,107,0.2); }

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== Recent Section ===== */
.recent-section {
    max-width: 700px;
    margin: 48px auto 0;
    padding: 0 24px 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.recent-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.recent-item:hover { border-color: rgba(255,107,107,0.2); transform: translateX(4px); }

.recent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.recent-info { flex: 1; min-width: 0; }

.recent-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-reason {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

.empty-state-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ===== Report Form ===== */
.page-header {
    text-align: center;
    padding: 48px 24px 32px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-desc { color: var(--text-secondary); font-size: 1rem; }

.report-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.section-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-main);
    color: #0a0a14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.required { color: var(--accent-red); }

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: rgba(255,107,107,0.4);
    box-shadow: 0 0 0 3px rgba(255,107,107,0.08);
}

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

.form-input.error { border-color: var(--accent-red); }

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

.char-count { text-align: right; }

/* File upload */
.avatar-upload, .evidence-upload {
    position: relative;
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.avatar-upload:hover, .evidence-upload:hover { border-color: rgba(255,107,107,0.3); }

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.avatar-preview {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    padding: 8px;
}

.evidence-previews {
    display: flex;
    gap: 8px;
    padding: 8px;
    flex-wrap: wrap;
}

.evidence-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-glass);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-display);
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    color: #0a0a14;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255,107,107,0.25);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(255,107,107,0.35); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; }

/* Reporter preview */
.reporter-preview { margin: 8px 0; }
.reporter-info-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: rgba(74,222,128,0.06); border: 1px solid rgba(74,222,128,0.2);
}
.reporter-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-green); }
.reporter-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.reporter-verified-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.reporter-verified-uid { font-size: 0.75rem; color: var(--text-muted); font-family: 'Roboto Mono', monospace; }
.reporter-verified-badge { margin-left: auto; font-size: 0.75rem; color: var(--accent-green); font-weight: 600; }

/* ===== FB Link Row + Fetch Button ===== */
.fb-link-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.fb-link-row .form-input {
    flex: 1;
}

.fetch-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--gradient-main);
    color: #0a0a14;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.fetch-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,107,0.3); }
.fetch-btn:disabled { opacity: 0.5; pointer-events: none; }

/* ===== Fetch Loading ===== */
.fetch-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.spinner.small {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* ===== Fetched Profile Card ===== */
.fetched-profile {
    animation: slideUp 0.4s ease;
    margin-top: 4px;
}

.fetched-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(74,222,128,0.06);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: var(--radius-md);
}

.fetched-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
    flex-shrink: 0;
}

.fetched-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid var(--border-glass);
}

.fetched-info { flex: 1; min-width: 0; }

.fetched-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.fetched-uid {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-yellow);
    margin-bottom: 2px;
}

.fetched-status {
    font-size: 0.78rem;
    color: var(--accent-green);
}

/* ===== Manual Fallback ===== */
.manual-fallback {
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

.manual-fallback-note {
    padding: 10px 14px;
    background: rgba(255,159,67,0.08);
    border: 1px solid rgba(255,159,67,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-orange);
    margin-bottom: 16px;
}

/* ===== Donate ===== */
.donate-content {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.donate-icon { font-size: 3rem; margin-bottom: 16px; }

.donate-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.donate-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.donate-methods { display: grid; gap: 16px; text-align: left; }

.donate-method {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.method-header {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-body { padding: 18px; }

.bank-info { display: grid; gap: 10px; }

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.info-label { color: var(--text-secondary); }
.info-value { font-weight: 600; }
.info-value.highlight { color: var(--accent-yellow); }

.qr-body { display: flex; justify-content: center; }

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.donate-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    padding: 12px;
    background: rgba(255,217,61,0.06);
    border-radius: var(--radius-sm);
    color: var(--accent-yellow);
    font-size: 0.8rem;
}

/* ===== Modals & Toast ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease;
    max-width: 320px;
}

.toast.success { border-left: 3px solid var(--accent-green); }
.toast.error { border-left: 3px solid var(--accent-red); }
.toast.info { border-left: 3px solid var(--accent-blue); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.4s ease;
}

.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-card h3 { font-family: var(--font-display); margin-bottom: 8px; font-size: 1.2rem; }
.modal-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

.modal-btn {
    padding: 10px 32px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-main);
    color: #0a0a14;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn:hover { transform: scale(1.03); }

/* ===== Lightbox ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    cursor: zoom-out;
}

.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: var(--radius-sm); }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-glass);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(10,10,20,0.95);
        backdrop-filter: blur(20px);
        padding: 12px;
        border-bottom: 1px solid var(--border-glass);
    }
    .menu-toggle { display: flex; }
    .hero { padding: 48px 16px 32px; }
    .stats-section { gap: 8px; padding: 0 16px; }
    .stat-number { font-size: 1.4rem; }
    .stat-card { padding: 16px 8px; }
    .profile-card { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }
    .report-form { padding: 0 16px 48px; }
    .form-section { padding: 16px; }
    .donate-card { padding: 24px 16px; }
    .page-title { font-size: 1.3rem; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== Loading Spinner ===== */
.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-glass);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Profile Fields ===== */
.profile-fields {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.profile-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
}

.profile-field-label {
    color: var(--text-muted);
    min-width: 50px;
    flex-shrink: 0;
}

.profile-field-value {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.profile-field-value.muted {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

.profile-field-value.uid {
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-yellow);
    font-size: 0.85rem;
}

/* ===== Loading animation ===== */
.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ===== Responsive Mobile ===== */
@media (max-width: 768px) {
    .header { padding: 16px; }
    .header .logo { font-size: 1.1rem; }
    .nav { gap: 4px; }
    .nav-link { padding: 8px 12px; font-size: 0.8rem; }

    .page-header { padding: 0 16px; margin-bottom: 16px; }
    .page-title { font-size: 1.4rem; }
    .page-desc { font-size: 0.85rem; }

    /* Search */
    .search-area { padding: 0 16px; }
    .search-wrapper { flex-direction: column; gap: 8px; }
    .search-input { padding: 14px 16px; font-size: 0.95rem; }
    .search-btn { width: 100%; padding: 14px; border-radius: var(--radius-sm); }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; gap: 8px; padding: 0 16px; }
    .stat-card { padding: 16px; }

    /* Profile card */
    .profile-card { flex-direction: column; text-align: center; padding: 16px; gap: 12px; }
    .profile-avatar { width: 64px; height: 64px; }
    .profile-info { align-items: center; }
    .profile-fields { flex-direction: column; }
    .profile-badge { position: static; margin-top: 8px; }

    /* Reports */
    .report-item { padding: 14px; }
    .report-item-header { flex-direction: column; gap: 6px; }
    .report-tags { flex-wrap: wrap; }
    .report-evidence-list { gap: 4px; }
    .report-evidence-thumb { width: 50px; height: 50px; }

    /* Report form */
    .form-section { padding: 16px; }
    .fb-link-row { flex-direction: column; }
    .fb-link-row .fetch-btn { width: 100%; }

    /* Recent */
    .recent-section { padding: 0 16px 24px; margin-top: 24px; }
    .recent-item { padding: 12px; }

    /* Donate */
    .donate-methods { grid-template-columns: 1fr; }
    .donate-card { padding: 24px 16px; }
}

@media (max-width: 480px) {
    .header { flex-wrap: wrap; gap: 8px; }
    .nav-link span { display: none; }
    .page-title { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-card { padding: 12px 8px; }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    .profile-card { gap: 8px; }
    .profile-name { font-size: 1rem; }
}
