:root {
            --primary-color: #2d66b4;
            --secondary-color: #22386e;
            --accent-color: #00ccff;
            --glass-bg: rgba(255, 255, 255, 0.08); /* The "Glass" tint */
            --glass-border: rgba(255, 255, 255, 0.2); /* The "Edge" of the glass */
            --text-main: #ffffff;
            --text-muted: #a0aec0;
        }

        body { 
            font-family: 'Montserrat'; 
            color: var(--text-main); 
            margin: 0; 
            padding: 0;
            overflow-x: hidden;
            background: #000; /* Fallback */
        }

        #vanta-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        #paymentMethod{
            background: #000;
        }

h1 {
  display: inline-block;
  cursor: default;  
  font-size: 5em;
  font-weight: bold;

  position: relative;
  color: transparent;
  background-image: repeating-linear-gradient(45deg, #f1f1f1 0px, #f1f1f1 144px, gray 144px, gray 288px, #bebebe 288px, #bebebe 432px);
  background-size: 250%;
  background-position: 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-animation: stripeAnimation 3s linear infinite;
  animation: stripeAnimation 3s linear infinite;
  animation-play-state: running;
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

h1:hover {
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

@keyframes stripeAnimation {
  100% {
    background-position: 165%;
  }
}


/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

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

        /* --- Header & Nav Logic --- */
        .header-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 20px 0;
            min-height: 60px;
        }

        .back-btn {
            position: absolute;
            left: 0;
            width: 45px;
            height: 45px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            color: white;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .pill-nav {
            display: flex;
            align-items: center;
            padding: 8px 20px;
            gap: 15px;
            border-radius: 50px;
            transition: transform 0.3s ease;
        }

        .pill-nav:hover { transform: scale(1.02); }
        .nav-text {
            font-weight: 500;
            letter-spacing: 1px;
            font-size: 0.9rem;
            cursor: default;
        }


        /* --- Glass Cards --- */
        .card-container1{
            margin-top: 40px;
            margin-bottom: 40px;
        }
        .card {
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
            transition: transform 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: var(--accent-color);
        }

        /* --- Form Elements --- */
        input, select { 
            width: 100%; 
            margin: 10px 0; 
            /* Increased the second value (horizontal padding) to 20px */
            padding: 12px 20px; 
            
            /* CRITICAL: This ensures the 100% width includes the padding 
            so the inputs don't stick out of the card */
            box-sizing: border-box; 
            
            border-radius: 8px; 
            border: 1px solid var(--glass-border);
            background: rgba(0, 0, 0, 0.3);
            color: white;
            outline: none;
            font-size: 16px; /* Improves readability on mobile */
        }

        button { 
            background: var(--primary-color); 
            color: white; 
            border: none; 
            padding: 12px 24px; 
            border-radius: 8px; 
            cursor: pointer; 
            font-weight: bold;
            width: 100%;
            transition: 0.3s;
            text-decoration: none;
        }

        button:hover { background: var(--accent-color); box-shadow: 0 0 15px var(--accent-color); }
        /* --- Typography --- */
        h1 {font-family: 'Orbitron'; font-size: 2.5rem; margin-bottom: 10px; }
        h2 { font-size: 1.3rem; color: var(--accent-color); margin-top: 0; }
        b {color: var(--primary-color);}
        .warning { color: #ff4d4d; font-weight: bold; }


        
/* The Loading Spinner */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Gray out button when disabled */
button:disabled {
    background-color: #444;
    cursor: not-allowed;
    opacity: 0.7;
}


/* --- Mobile Logic (< 800px) --- */
@media (max-width: 800px) {
    .header-wrapper { flex-direction: column; gap: 20px; }
    .back-btn { position: static; transform: none; margin-bottom: 10px; }
    h1 { font-size: 1.8rem; }
}

/*FOOTER-SECTION*/
.footer-section{
    margin-top: 15px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    padding-top: 20px;
}
.footer{
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.line{    
    border: none;
    border-top: 1px solid #444;
    margin: 5px 0;
    display: flex;
    justify-self: center;
    align-self: center;
    width: 300px;
}
.ownership{
    display: flex;
    justify-content: center;
    align-items: center;
}
.branding {
    font-size: 0.9rem;
    color: #94a3b8;
}
.branding a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}
.branding a:hover {
    text-decoration: underline;
}

/* Footer & Socials */
.socials{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--text-muted);
    gap: 20px;
    
}

.socials a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Bigger touch target */
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* 10000. Dashboard Container (The Glass Portal) */
.glass-portal {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03); /* Subtle glass tint */
    backdrop-filter: blur(15px); /* Frosty effect */
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 204, 255, 0.1);
    animation: fadeIn 0.8s ease-out;
}

/* 2. Status Pill (The "Active" indicator) */
.status-pill {
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
    text-transform: uppercase;
}

/* 3. Stats Grid (Earnings & Attribution) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(0, 204, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card p { font-size: 0.8rem; color: #888; margin-bottom: 5px; }
.stat-card h4 { font-family: 'Orbitron', sans-serif; color: #00ccff; font-size: 1.4rem; }

#displayCodeDash {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 3px;
}

.logout-btn {
    margin-top: 20px;
    background: transparent;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.1);
    border-color: #ff4d4d;
}

/* 5. Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loginBtn{
    text-decoration: none;
    color: #00ccff;
}

.btn-support{
    text-decoration: none;
    color: #00ccff;
}


/* Unified Button Styling */
#submitBtn, #loginBtn, .btn-support{
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-family: 'Orbitron';
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Primary Action Colors (Blue Glow) */
#submitBtn, #loginBtn{
    background: linear-gradient(135deg, #007bff, #00ccff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#submitBtn:hover, #loginBtn:hover{
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.5);
    transform: translateY(-2px);
}

/* Dashboard Link Box Styling */
.link-box {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 255, 0.3);
    margin: 15px 0;
}

.link-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ccff;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.link-box button {
    background: #00ccff;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}


.mini-btn {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    color: #00ccff;
    padding: 3px 5px;
    max-width: 80px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.mini-btn:hover {background-color: transparent;}

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

.spinning i {
    display: inline-block;
    animation: spin 1s linear infinite;
}


.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 157, 0.1);
    color: #00ff9d;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
    width: 90%;
    justify-content: center;
}

.download-btn:hover {
    background: rgba(0, 255, 157, 0.2);
    border-color: #00ff9d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.1);
}

.download-btn i {
    font-size: 1.2rem;
}


.conversion-notice {
    background: rgba(0, 204, 255, 0.05);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 20px 0;
    font-size: 0.8rem;
    color: #ccc;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.conversion-notice i {
    color: #00ccff;
    font-size: 1.1rem;
}

.conversion-notice strong {
    color: #00ccff;
    display: block;
    margin-bottom: 2px;
}