/* =========================================
   🎨 HYPERRAIL EXACT BRAND CONFIGURATION 
   Sampled directly from the provided artwork
   ========================================= */
   :root {
    --brand-primary: #ffffff;       
    --brand-accent: #3cb013;        /* Vibrant Hyperrail Green from coin rims */
    --brand-accent-hover: #32940f;  
    --bg-page: #131c12;             /* Exact Dark Muted Olive Green background */
    --bg-card: #000000;             /* Pure Black Form Card */
    --text-main: #f8fafc;           
    --text-muted: #859980;          /* Tinted muted text for the color scheme */
    --border-color: #1c2a1b;        /* Deep green-black borders */
    --input-bg: #0b100b;            
    
    /* Notification Aesthetics */
    --success-text: #4ade80;
    --success-bg: #06150d;
    --success-border: #14532d;
    --error-text: #fca5a5;
    --error-bg: #180808;
    --error-border: #7f1d1d;
}

/* =========================================
   CORE RESET & TECH GRID BACKGROUND
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    /* 🌐 Generates the exact digital grid pattern from your image dynamically */
    background-image: 
        linear-gradient(rgba(36, 54, 34, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 54, 34, 0.3) 1px, transparent 1px);
    background-size: 44px 44px;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Upscaled Premium Form Container */
.container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;            
    width: 100%;
    max-width: 480px;               
    padding: 54px 44px;             
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7); 
}

.header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-img {
    height: 36px;                   
    width: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.header-title {
    font-size: 24px;                
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

/* =========================================
   FORM CONTROL LAYOUT
   ========================================= */
.form-group {
    margin-bottom: 24px;            
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.optional-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    float: right;
}

input, select {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;                  
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
}

select {
    color-scheme: dark;             
}

input:focus, select:focus {
    outline: none;
    background-color: #050705;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(60, 176, 19, 0.2); /* Hyperrail Green focus ring */
}

input::placeholder {
    color: #3b4f39;                 
}

/* =========================================
   ACTION BUTTON STATES
   ========================================= */
.btn-submit {
    width: 100%;
    background-color: var(--brand-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 18px;                  
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-submit:hover {
    background-color: var(--brand-accent-hover);
}

/* Disabled until validation requirements are met */
#fundingForm:invalid .btn-submit {
    background-color: #111610;     
    color: #3b4f39;                 
    cursor: not-allowed;
    pointer-events: none;
}

/* Active request processing */
.btn-submit:disabled {
    opacity: 0.5;
    cursor: wait;
    pointer-events: none;
}

/* =========================================
   RESPONSIVE TOAST PIPELINE
   ========================================= */
.toast-box {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 380px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s;
}

.toast-box.success {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.toast-box.error {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

/* Mobile viewport adjustments */
@media (max-width: 640px) {
    body {
        padding: 0;
        background-image: none;
        background-color: var(--bg-card); 
    }
    .container {
        padding: 40px 24px;
        border: none;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    .toast-box {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        transform: translateY(-100%);
    }
    .toast-box.success, .toast-box.error {
        transform: translateY(0);
    }
}