/* Global Styles */
:root {
    --bg-color: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --font-family: 'Outfit', sans-serif;
    --accent: #00ff88;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at center, #2b1055, #7597de);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 2rem;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Background Effects - Confetti */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    animation: fall linear infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-duration: 5s;
    background-color: #f2d74e;
}

.confetti:nth-child(2) {
    left: 20%;
    animation-duration: 7s;
    background-color: #95c3de;
}

.confetti:nth-child(3) {
    left: 30%;
    animation-duration: 4s;
    background-color: #ff9a9e;
}

.confetti:nth-child(4) {
    left: 40%;
    animation-duration: 6s;
    background-color: #f2d74e;
}

.confetti:nth-child(5) {
    left: 50%;
    animation-duration: 8s;
    background-color: #95c3de;
}

.confetti:nth-child(6) {
    left: 60%;
    animation-duration: 3s;
    background-color: #ff9a9e;
}

.confetti:nth-child(7) {
    left: 70%;
    animation-duration: 5.5s;
    background-color: #f2d74e;
}

.confetti:nth-child(8) {
    left: 80%;
    animation-duration: 4.5s;
    background-color: #95c3de;
}

.confetti:nth-child(9) {
    left: 90%;
    animation-duration: 6.5s;
    background-color: #ff9a9e;
}

.confetti:nth-child(10) {
    left: 15%;
    animation-duration: 9s;
    background-color: #ffffff;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight {
    color: var(--accent);
}

.status-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 5%;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #00ff88, #00ddeb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Countdown Timer */
.countdown-container {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 87, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 87, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 87, 87, 0);
    }
}

.countdown-container i {
    color: #ff5757;
    font-size: 1.2rem;
}

#countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff5757;
    letter-spacing: 2px;
}

.countdown-container .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
}

.brand-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    transition: transform 0.3s ease;
}

.card:hover .brand-icon {
    transform: scale(1.1);
}

.value {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: red;
    /* Overwritten inline */
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(80px);
    /* Soft glow */
    pointer-events: none;
    z-index: 1;
}

.card:hover .glow {
    opacity: 0.15;
}

/* Modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #102a43;
    /* Darker blue bg */
    border: none;
    border-radius: 12px;
    padding: 3rem 2rem;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #3b82f6;
    /* Blue spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.progress-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 100px;
    height: 12px;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    width: 0%;
    transition: width 0.3s ease;
}

.console-log {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 1.2em;
}

/* Verification Section Styling - Specific Request */
.hidden {
    display: none;
}

/* New Logo Styling */
.verify-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.verify-logo i {
    font-size: 4rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-display {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    margin-top: 1rem;
}

#final-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 2px;
}

.verification-text {
    color: white;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.verify-btn-large {
    background: #1d74f5;
    /* Bright Blue */
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.verify-btn-large:hover {
    background: #155bc2;
}


/* Recent Activity */
.recent-activity {
    text-align: center;
    margin-top: 3rem;
}

.recent-activity h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item .user {
    color: var(--accent);
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: auto;
    padding: 2rem 5%;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .brand-icon {
        font-size: 2.5rem;
    }
}