:root {
    --sp-bg-main: #1e1b4b;
    --sp-bg-card: #26254F;
    --sp-accent: #fcd34d;
    --sp-text: #ffffff;
    --sp-text-muted: #9ca3af;
    --sp-border: rgba(255, 255, 255, 0.1);
}

.sp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--sp-bg-main);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sp-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: sp-fade-in 0.5s ease-out;
}

@keyframes sp-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sp-text);
    margin-bottom: 10px;
}

.sp-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--sp-text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
}

.sp-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.sp-search-input {
    width: 100%;
    padding: 16px 24px;
    padding-left: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--sp-border);
    border-radius: 50px;
    color: var(--sp-text);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.sp-search-input:focus {
    border-color: var(--sp-accent);
    box-shadow: 0 0 0 4px rgba(252, 211, 77, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
}

.sp-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sp-text-muted);
    pointer-events: none;
}

.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}

.sp-card {
    background-color: var(--sp-bg-card);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.sp-card:hover {
    transform: translateY(-5px);
    border-color: var(--sp-accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sp-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Circular flag */
    object-fit: cover;
    flex-shrink: 0;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255,255,255,0.1);
}

.sp-info {
    flex-grow: 1;
}

.sp-name {
    display: block;
    font-weight: 700;
    color: var(--sp-text);
    font-size: 1rem;
    margin-bottom: 4px;
}

.sp-code {
    display: block;
    font-size: 0.85rem;
    color: var(--sp-accent);
    font-weight: 600;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .sp-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile as requested previously for items */
        gap: 12px;
    }

    .sp-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .sp-info {
        width: 100%;
    }
}
