* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1115;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 560px;
    width: 95%;
    padding: 40px 20px;
}

h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 0.85rem;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #2d3139;
    border-radius: 8px;
    background: #1a1d23;
    color: #fff;
    font-size: 0.85rem;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #fff;
}

input::placeholder {
    color: #4b5563;
}

button {
    padding: 12px 24px;
    border: 1px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

button:hover {
    background: #fff;
    color: #000;
}

.result-card {
    background: #1a1d23;
    border: 1px solid #2d3139;
    border-radius: 12px;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #2d3139;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.profile-info {
    flex: 1;
}

.steam-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.steam-name:hover {
    color: #afafaf;
}

.steam-id-small {
    font-size: 0.75rem;
    color: #6b7280;
}

.refrag-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Stats Grid - Leetify Style */
.stats-section {
    padding: 0;
}

/* Data Provider Header */
.data-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #15171c;
    border-bottom: 1px solid #2d3139;
}

.provider-text {
    font-size: 0.65rem;
    color: #6b7280;
    letter-spacing: 0.3px;
}

.provider-logo {
    display: flex;
    align-items: center;
    color: #fff;
}

.provider-logo svg {
    height: 14px;
}

.provider-logo:hover {
    color: rgb(220, 0, 35);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.stat-cell {
    padding: 14px 12px;
    text-align: center;
    border-right: 1px solid #2d3139;
    border-bottom: 1px solid #2d3139;
}

.stat-cell:nth-child(5n) {
    border-right: none;
}

.stat-cell:nth-last-child(-n+5) {
    border-bottom: none;
}

.stat-cell.empty {
    background: #15171c;
}

.stat-cell.highlight {
    background: linear-gradient(135deg, #1e1b4b 0%, #1a1d23 100%);
}

.stat-label {
    font-size: 0.6rem;
    color: #6b7280;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.stat-value.accent {
    color: #34d399;
}

/* UUID Row */
.uuid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #2d3139;
    background: #15171c;
}

.uuid-label {
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.uuid-link {
    font-size: 0.75rem;
    color: #34d399;
    text-decoration: none;
}

.uuid-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.error {
    background: #1a1d23;
    border: 1px solid #dc2626;
    border-radius: 8px;
    color: #fca5a5;
    padding: 12px;
    font-size: 0.85rem;
    margin-top: 16px;
}

.loading {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 16px;
}

.no-profile {
    color: #6b7280;
    font-size: 0.85rem;
    padding: 20px;
    background: #1a1d23;
    border: 1px solid #2d3139;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-cell:nth-child(3n) {
        border-right: none;
    }

    .stat-cell:nth-child(5n) {
        border-right: 1px solid #2d3139;
    }
}