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

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

:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --secondary: #7289DA;
    --success: #43B581;
    --danger: #F04747;
    --bg-dark: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
}

/* ========================================
   ANIMATED BACKGROUND
======================================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.4) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67, 181, 129, 0.2) 0%, transparent 70%);
    bottom: -300px;
    left: 30%;
    animation-delay: -14s;
}

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

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars-container::before,
.stars-container::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow:
        100px 200px white,
        300px 100px white,
        500px 300px white,
        700px 150px white,
        900px 250px white,
        200px 400px white,
        400px 500px white,
        600px 450px white,
        800px 350px white,
        150px 550px white,
        350px 600px white,
        550px 50px white,
        750px 500px white,
        950px 100px white,
        250px 150px white;
    animation: twinkle 4s ease-in-out infinite;
}

.stars-container::after {
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   MAIN CONTAINER
======================================== */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ========================================
   GLASS CARD
======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 650px;
    width: 100%;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   DISCORD LOGO
======================================== */
.pulse-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.discord-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.discord-logo {
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 1;
    animation: float-logo 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(88, 101, 242, 0.3));
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   TYPOGRAPHY
======================================== */
.main-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a8b3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ========================================
   FEATURES GRID
======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(114, 137, 218, 0.2));
    border-radius: 15px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(114, 137, 218, 0.3));
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* ========================================
   CTA BUTTON
======================================== */
.verify-cta {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 10px 40px rgba(88, 101, 242, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
}

.verify-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(88, 101, 242, 0.6),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.verify-cta:active {
    transform: translateY(-1px);
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.cta-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.verify-cta:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-shine {
    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.6s ease;
}

.verify-cta:hover .cta-shine {
    left: 100%;
}

/* ========================================
   SECURE NOTICE
======================================== */
.secure-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.secure-notice svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
}

/* ========================================
   SUCCESS/ERROR PAGES
======================================== */
.success-card, .error-card {
    text-align: center;
}

.success-icon, .error-icon {
    margin-bottom: 30px;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon svg {
    filter: drop-shadow(0 10px 30px rgba(67, 181, 129, 0.4));
}

.error-icon svg {
    filter: drop-shadow(0 10px 30px rgba(240, 71, 71, 0.4));
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.success-details, .error-tips {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(67, 181, 129, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .icon {
    font-size: 1.8rem;
}

.back-button, .retry-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--success) 0%, #3ca374 100%);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(67, 181, 129, 0.3);
}

.back-button:hover, .retry-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(67, 181, 129, 0.5);
}

.retry-button {
    background: linear-gradient(135deg, var(--danger) 0%, #d73c3c 100%);
    box-shadow: 0 10px 30px rgba(240, 71, 71, 0.3);
}

.retry-button:hover {
    box-shadow: 0 15px 40px rgba(240, 71, 71, 0.5);
}

.error-tips h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

.error-tips ul {
    list-style: none;
    text-align: left;
}

.error-tips li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.error-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ffc107;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .glass-card {
        padding: 40px 30px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .verify-cta {
        padding: 18px 30px;
        font-size: 1rem;
    }

    .discord-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }

    .glass-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }
}
