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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #ffffff;
    color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.06;
}
body::before { top: -10%; left: -10%; width: 40%; height: 40%; background: #FF7621; }
body::after { bottom: -10%; right: -10%; width: 40%; height: 40%; background: #2C72FF; }

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

.brand { text-align: center; margin-bottom: 3rem; }
.brand-icon {
    width: 80px; height: 80px;
    border-radius: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FF7621, #FF808C, #7066FF, #2C72FF);
    background-size: 300% 300%;
    animation: glow 15s ease infinite;
    box-shadow: 0 20px 60px rgba(255, 118, 33, 0.3);
    transition: transform 0.3s;
}
.brand-icon:hover { transform: scale(1.05); }
.brand-icon svg { width: 40px; height: 40px; color: white; }
.brand h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1;
    margin-bottom: 1rem;
}
.brand h1 span { color: #FF7621; font-style: normal; }
.brand p { color: #737373; font-size: 1.125rem; font-weight: 500; max-width: 28rem; margin: 0 auto; }
.last-update {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
}
.last-update svg { flex-shrink: 0; }

@keyframes glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2.5rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.06);
    padding: 0.5rem;
    overflow: hidden;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-form .icon {
    padding-left: 1.5rem;
    color: #a3a3a3;
    flex-shrink: 0;
}
.search-form .icon svg { width: 24px; height: 24px; display: block; }
.search-form input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    height: 5rem;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    padding: 0 1rem;
    color: #0a0a0a;
}
.search-form input[type="text"]::placeholder { color: rgba(163,163,163,0.4); }
.search-form button {
    height: 4rem;
    padding: 0 2.5rem;
    border-radius: 2rem;
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    cursor: pointer;
    background: linear-gradient(135deg, #FF7621, #FF808C, #7066FF, #2C72FF);
    background-size: 300% 300%;
    animation: glow 15s ease infinite;
    box-shadow: 0 10px 40px rgba(255,118,33,0.25);
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
    margin-right: 0.25rem;
}
.search-form button:hover { opacity: 0.9; }
.search-form button:active { transform: scale(0.95); }

.hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(115,115,115,0.5);
}
.hint::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
}
.hint:nth-child(1)::before { background: #FF7621; }
.hint:nth-child(2)::before { background: #7066FF; }
.hint:nth-child(3)::before { background: #FF808C; }
.hint:nth-child(4)::before { background: #2C72FF; }
.hint:nth-child(5)::before { background: #2F9A92; }

.error-msg {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
}

.not-found {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e5e5;
    background: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.not-found .icon-wrap {
    width: 4rem; height: 4rem;
    border-radius: 1rem;
    background: rgba(34,197,94,0.1);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.not-found .icon-wrap svg { width: 2rem; height: 2rem; color: #16a34a; }
.not-found h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.not-found p { color: #737373; font-size: 0.875rem; }

.results {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e5e5e5;
    background: white;
    box-shadow: 0 25px 80px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.results::after {
    content: '';
    position: absolute;
    top: -4rem; right: -4rem;
    width: 8rem; height: 8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7621, #FF808C, #7066FF, #2C72FF);
    background-size: 300% 300%;
    animation: glow 15s ease infinite;
    opacity: 0.1;
    filter: blur(40px);
    pointer-events: none;
}
.results-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.results-header .icon-wrap {
    width: 4rem; height: 4rem;
    border-radius: 1rem;
    background: rgba(255,128,140,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,128,140,0.1);
}
.results-header .icon-wrap svg { width: 2rem; height: 2rem; color: #FF808C; }
.results-header h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.results-header p { color: #737373; font-size: 0.875rem; font-weight: 500; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
}
.chip svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.chip-found {
    border-color: rgba(255,118,33,0.3);
    background: rgba(255,118,33,0.08);
    color: #FF7621;
}
.chip-sensitive {
    border-color: transparent;
    background: #FF7621;
    color: white;
    box-shadow: 0 4px 16px rgba(255,118,33,0.2);
}
.chip-warn {
    border-color: rgba(234,179,8,0.3);
    background: rgba(234,179,8,0.1);
    color: #a16207;
}
.chip-danger {
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}
.chip-grey {
    border-color: rgba(163,163,163,0.2);
    background: rgba(163,163,163,0.08);
    color: #a3a3a3;
}
.chip-notes {
    border-color: rgba(255,172,36,0.3);
    background: rgba(255,172,36,0.08);
    color: #d97706;
}

.notes-block {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255,172,36,0.08);
    border: 1px solid rgba(255,172,36,0.3);
    margin-bottom: 1.5rem;
}
.notes-block .notes-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #d97706;
}
.notes-block .notes-label svg { width: 1.25rem; height: 1.25rem; }
.notes-block .notes-count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,172,36,0.3);
    background: rgba(255,172,36,0.1);
    color: #d97706;
    font-weight: 700;
    font-size: 0.8125rem;
}
.notes-privacy {
    display: inline;
    margin-left: 0.5rem;
    font-size: 10px;
    font-weight: 500;
    color: #a3a3a3;
    font-style: italic;
}

.disclaimer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    font-size: 11px;
    color: rgba(115,115,115,0.6);
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

.footer {
    margin-top: 5rem;
    text-align: center;
}
.footer-line { width: 3rem; height: 1px; background: #e5e5e5; margin: 0 auto 1.5rem; }
.footer p {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(115,115,115,0.4);
}

/* Stats page */
body.stats-page { align-items: flex-start; padding-top: 3rem; }
body.stats-page .container { max-width: 800px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF7621;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }
.back-link svg { width: 16px; height: 16px; }

.stats-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.stats-subtitle {
    color: #737373;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 1.25rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-value.orange { color: #FF7621; }
.stat-value.green { color: #16a34a; }
.stat-value.red { color: #FF808C; }
.stat-value.blue { color: #2C72FF; }
.stat-value.purple { color: #7066FF; }
.stat-value.teal { color: #2F9A92; }
.stat-label {
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a3a3a3;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.table-wrap {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 2.5rem;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.stats-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #a3a3a3;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
}
.stats-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table .found-val { color: #16a34a; }
.stats-table .notfound-val { color: #FF808C; }

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #a3a3a3;
    font-weight: 600;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    body { padding: 1rem; }
    .brand { margin-bottom: 1.5rem; }
    .brand-icon { width: 56px; height: 56px; border-radius: 1.25rem; margin-bottom: 1rem; box-shadow: 0 12px 40px rgba(255, 118, 33, 0.25); }
    .brand-icon svg { width: 28px; height: 28px; }
    .brand h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .brand p { font-size: 0.9375rem; }
    .last-update { margin-top: 0.75rem; font-size: 0.6875rem; }
    .search-card { border-radius: 1.75rem; }
    .search-form { flex-wrap: wrap; }
    .search-form input[type="text"] { height: 3.5rem; font-size: 1rem; }
    .search-form button { width: 100%; margin: 0; height: 3.5rem; border-radius: 1.5rem; }
    .search-form .icon { padding-left: 1rem; }
    .hints { gap: 1rem; margin-top: 1rem; }
    .footer { margin-top: 2rem; }
}