:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --secondary: #7000ff;
    --accent: #ff006e;
    --bg-dark: #0a0f1a;
    --bg-card: rgba(16, 24, 40, 0.9);
    --border: rgba(0, 212, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #00ff88;
    --error: #ff4757;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.bg-glow-2 {
    background: var(--secondary);
    bottom: -200px;
    left: -200px;
    animation: float 25s infinite ease-in-out reverse;
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.logo-icon i {
    font-size: 1.2rem;
    color: white;
}

.logo span {
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.hero-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-title i {
    color: var(--primary);
    font-size: 1.75rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.input-section {
    margin-bottom: 1.5rem;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.country-prefix {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    margin-right: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

#phoneNumber {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    font-weight: 600;
}

#phoneNumber::placeholder {
    color: rgba(148, 163, 184, 0.4);
    font-weight: 400;
}

.format-hint {
    margin: 0.75rem 0 0 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(145deg, #1a1f2e, #0f1420);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    width: fit-content;
    border: 1px solid rgba(0,212,255,0.15);
}

.hint-parts {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.hint-digits {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.digit-highlight {
    color: #00d4ff;
    background: rgba(0,212,255,0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    border: 1px solid rgba(0,212,255,0.2);
}

.digit-cc {
    color: #ffb86b;
    background: rgba(255,184,107,0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255,184,107,0.3);
}

.digit-rest {
    color: #94a3b8;
}

.hint-message {
    color: #cbd5e1;
    font-weight: 400;
    border-left: 1px solid #2d3748;
    padding-left: 0.75rem;
}

.hint-message i {
    color: #fbbf24;
    margin-right: 0.2rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    order: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 2;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.btn-tertiary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(112, 0, 255, 0.1);
    border: 1.5px solid rgba(112, 0, 255, 0.3);
    border-radius: 12px;
    color: #a855f7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    order: 3;
}

.btn-tertiary:hover {
    background: rgba(112, 0, 255, 0.2);
    border-color: var(--secondary);
    color: #c084fc;
    transform: translateY(-1px);
}

.result-section {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.result-section.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.result-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

.loading-overlay.visible {
    display: flex;
}

.globe-sphere {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Blue_Marble_2002.png/1024px-Blue_Marble_2002.png');
    background-size: 210% 100%;
    position: relative;
    box-shadow: 
        inset 10px 10px 20px rgba(0,0,0,0.8),
        inset -10px -10px 20px rgba(255,255,255,0.1),
        0 0 30px rgba(0, 212, 255, 0.4);
    animation: globeRotate 8s linear infinite;
    overflow: hidden;
}

.globe-sphere::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes globeRotate {
    from { background-position: 0 0; }
    to { background-position: 200% 0; }
}

.loading-text {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.name-display-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.name-content {
    flex: 1;
}

.name-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.name-display {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.meta-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.meta-content {
    flex: 1;
}

.meta-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.network-jazz { color: #ff6b00; }
.network-zong { color: #00a651; }
.network-ufone { color: #7b1fa2; }
.network-telenor { color: #00aeef; }
.network-unknown { color: var(--text-secondary); }

.error-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 12px;
    color: var(--error);
    margin-top: 1rem;
    font-weight: 600;
}

.error-message.visible {
    display: flex;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

footer {
    position: relative;
    z-index: 10;
    padding: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.3);
}

.social-links a.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.social-links a.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: white;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .name-display {
        font-size: 1.25rem;
    }
    .meta-grid {
        grid-template-columns: 1fr;
    }
    .main-container {
        padding: 100px 15px 40px;
    }
    .hero-card {
        padding: 1.5rem;
    }
}