@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 25% 25%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
}

@keyframes bgMove {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.1) rotate(120deg); }
    66% { transform: scale(0.9) rotate(240deg); }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.6;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 0 40px;
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5em;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    transform: perspective(500px) rotateX(10deg);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.8;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Input Container */
.input-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.4s ease;
    animation: slideIn 1s ease 0.5s both;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateX(15deg) translateY(50px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateX(5deg) translateY(0);
    }
}

.input-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-8px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4);
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50px;
    color: white;
    outline: none;
    transition: all 0.4s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-field:focus {
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
    transform: scale(1.02);
}

.nonce-field {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed !important;
    font-style: italic;
}

.nonce-field:focus {
    border-color: #764ba2 !important;
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.3) !important;
}

/* Fetch Button */
.fetch-btn {
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fetch-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.fetch-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.fetch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.loading {
    display: none;
    text-align: center;
    margin: 40px 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4ecdc4;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

.result-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: resultSlideIn 0.8s ease;
}

@keyframes resultSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4ecdc4;
    box-shadow: 0 0 40px rgba(78, 205, 196, 0.4);
    animation: profilePulse 3s infinite;
    transition: all 0.3s ease;
}

@keyframes profilePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(78, 205, 196, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(78, 205, 196, 0.6); }
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
}

.vip-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    animation: badgeBounce 2s infinite;
}

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

.user-details {
    display: grid;
    gap: 15px;
}

.user-name {
    font-family: 'Orbitron', monospace;
    font-size: 2.2em;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: nameGlow 2s ease-in-out infinite alternate;
}

@keyframes nameGlow {
    from { filter: drop-shadow(0 0 5px rgba(78, 205, 196, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(78, 205, 196, 0.6)); }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
    border-left-color: #4ecdc4;
}

.info-label {
    font-weight: 600;
    color: #4ecdc4;
    min-width: 100px;
    font-size: 14px;
}

.info-value {
    color: #ffffff;
    word-break: break-word;
    flex: 1;
}

.verification-section {
    margin: 30px 0;
}

.verification-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: badgeFloat 3s ease-in-out infinite;
}

.badge:nth-child(even) {
    animation-delay: 1.5s;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.badge:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #4ecdc4;
    display: block;
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.95em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.family-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.family-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

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

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8em;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.family-cover {
    text-align: center;
    margin-bottom: 30px;
}

.family-cover img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.family-cover img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.family-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    animation: errorShake 0.6s ease;
}

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

/* Auto Nonce Badge */
.auto-nonce-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 15px;
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); }
}

.badge-icon {
    font-size: 18px;
    animation: rotateIcon 3s linear infinite;
}

@keyframes rotateIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.hidden {
    display: none;
}

/* Footer Section */
        .footer-section {
            padding: 60px 5% 40px;
            text-align: center;
            position: relative;
            z-index: 1;
            background: transparent;
        }

        .footer-copyright {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 20px;
            letter-spacing: 0.5px;
        }


@media (max-width: 768px) {
    .title {
        font-size: 2.5em;
    }
    
    .user-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .input-field {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
