:root {
    --bg-color: #020802;
    --card-bg: rgba(10, 30, 10, 0.5);
    --text-color: #e0ffe0;
    --primary-color: #00ff00;
    --secondary-color: #39ff14;
    --success-color: #00ff00;
    --fail-color: #ff073a;
    --btn-gradient: linear-gradient(135deg, #00aa00, #00ff00);
    --glow-spread: 0 0 20px rgba(0, 255, 0, 0.6);
    --card-border: rgba(0, 255, 0, 0.3);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #0a2a0a 0%, #020802 70%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 0, 0.3);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(57, 255, 20, 0.2);
    bottom: -150px;
    left: -150px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-spread);
}

.subtitle {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.search-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.input-group {
    display: flex;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    border-radius: 40px;
    overflow: hidden;
    background: rgba(5, 20, 5, 0.8);
    border: 2px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--glow-spread);
}

#searchInput {
    flex: 1;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    border: none;
    background: transparent;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    outline: none;
}

#searchInput::placeholder {
    color: rgba(0, 255, 0, 0.4);
}

#searchBtn {
    padding: 0 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    background: var(--btn-gradient);
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.4);
}

#searchBtn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8), inset 0 0 15px rgba(255,255,255,0.6);
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.result-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 255, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--card-border);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-spread), inset 0 0 30px rgba(0, 255, 0, 0.2);
    border-color: var(--primary-color);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    padding-bottom: 1.2rem;
}

.result-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.label {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

.value {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.status-success {
    color: #fff;
    background: rgba(0, 255, 0, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid var(--primary-color);
    box-shadow: var(--glow-spread);
}

.status-second {
    color: #fff;
    background: rgba(255, 7, 58, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
    border: 1px solid var(--fail-color);
    box-shadow: 0 0 15px rgba(255, 7, 58, 0.6);
    text-shadow: none;
}

/* Sponsorship Section */
.sponsors-section {
    background: rgba(5, 20, 5, 0.6);
    border-radius: 30px;
    padding: 4rem 2rem 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(0, 255, 0, 0.1);
    position: relative;
    text-align: center;
    margin-top: 2rem;
    border: 2px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sponsor-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: var(--primary-color);
    padding: 0.5rem 2.5rem;
    border-radius: 30px;
    font-weight: 900;
    font-size: 1.2rem;
    border: 1px solid var(--primary-color);
    box-shadow: var(--glow-spread);
}

.sponsor-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-shadow: var(--glow-spread);
}

.sponsor-text {
    font-size: 1.3rem;
    color: #a0ffa0;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.6;
}

.ad-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    width: 100%;
}

.ad-card {
    position: relative;
    background: #000;
    border-radius: 20px;
    padding: 1rem;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, rgba(0,0,0,0) 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.ad-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--glow-spread);
    border-color: var(--primary-color);
}

.ad-card:hover::before {
    opacity: 1;
}

.ad-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.ad-card:hover img {
    transform: scale(1.08);
}

.ad-label {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #000;
    color: var(--primary-color);
    padding: 5px 35px;
    font-size: 0.95rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 2;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.cta-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: #000;
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    box-shadow: var(--glow-spread);
    transition: all 0.3s ease;
    animation: pulse-neon 2s infinite;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 1);
}

@keyframes pulse-neon {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
    50% { transform: scale(1.03); box-shadow: 0 0 35px rgba(0, 255, 0, 0.9); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 0, 0.6); }
}

.spinner {
    display: none;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 255, 0, 0.2);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    box-shadow: var(--glow-spread);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .ad-cards { flex-direction: column; align-items: center; }
    .input-group { flex-direction: column; border-radius: 20px; }
    #searchBtn { padding: 1.2rem; border-radius: 0 0 20px 20px; }
    #searchInput { border-radius: 20px 20px 0 0; }
}
