:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --error: #ef4444;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

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

.shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.8) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
}

.shape2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.6) 0%, rgba(0,0,0,0) 70%);
    bottom: -300px;
    left: -200px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    margin-top: 80px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

button {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto 15px;
}

#loading {
    text-align: center;
    color: var(--text-muted);
}

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

.error-box {
    margin-top: 25px;
    padding: 15px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.result-box {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    animation: slideUp 0.4s ease-out;
}

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

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.result-header h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: white;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.premium-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

.result-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.result-details li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
}

.label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.val {
    font-weight: 800;
    color: white;
}

.suggestions-box {
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
}

.suggestions-box h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.suggestions-list {
    list-style: none;
}

.suggestions-list li {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestions-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.seat-badge {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Footer / Dev Credit */
footer {
    margin-top: auto;
    padding: 30px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.dev-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.developer-credit p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.developer-credit strong {
    color: white;
    font-size: 1rem;
}

/* Easter egg styles */
.easter-egg {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.egg-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fcd34d;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
