/* START: SPACEAI CONSOLIDATED CSS */
:root {
    --bg-deep: #060912;
    --bg-gradient: radial-gradient(circle at top, #0d1629 0%, #060912 100%);
    --sai-blue: #3b82f6;
    --sai-glow: rgba(59, 130, 246, 0.4);
    --card-bg: rgba(15, 23, 42, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --sai-text-dim: #94a3b8;
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-deep);
    background-image: var(--bg-gradient);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Background Stars */
.sai-bg-animation {
    position: fixed; inset: 0; z-index: -1;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.3; animation: bgMove 100s linear infinite;
}
@keyframes bgMove { from { background-position: 0 0; } to { background-position: 1000px 1000px; } }

/* Sticky Elements */
.sai-main-header { padding: 40px 5% 20px; max-width: 1200px; margin: 0 auto; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.sai-logo-float { height: 55px; filter: drop-shadow(0 0 15px var(--sai-glow)); animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.sai-sticky-stepper {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6, 9, 18, 0.9); backdrop-filter: blur(15px);
    padding: 20px 5%; border-bottom: 1px solid var(--border);
}

/* Stepper Grid */
.stepper-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; }
.step-card { 
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; 
    padding: 12px; display: flex; align-items: center; gap: 12px; transition: 0.3s; opacity: 0.4;
}
.step-card.active { opacity: 1; border-color: var(--sai-blue); background: rgba(59, 130, 246, 0.1); box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
.step-card.completed { opacity: 1; border-color: #10b981; }
.step-index { width: 28px; height: 28px; background: #1e293b; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.step-card.active .step-index { background: var(--sai-blue); color: #fff; }
.step-text .title { display: block; font-size: 10px; font-weight: 800; color: #fff; }
.step-text .desc { font-size: 9px; color: #64748b; }

/* View Management - The swapping fix */
.sai-step-view { display: none; width: 100%; }
.sai-step-view.active { display: block; animation: fadeIn 0.5s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Cards & Forms (Based on your styles) */
.sai-content-area { max-width: 1000px; margin: 20px auto; padding: 0 20px; }
.sai-card-main { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 30px; backdrop-filter: blur(10px); }
.sai-notice-banner { background: rgba(59, 130, 246, 0.15); border: 1px solid var(--sai-blue); border-radius: 8px; padding: 16px 24px; display: flex; gap: 15px; align-items: center; margin-bottom: 25px; }
.sai-progress-bar { width: 85%; height: 4px; background: #000000; border-radius: 2px; overflow: hidden; }
.sai-progress-fill { width: 0%; height: 100%; background: var(--sai-blue); box-shadow: 0 0 10px var(--sai-blue); transition: width 0.2s ease; }
.sai-terms-viewport { height: 400px; overflow-y: auto; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 12px; padding: 25px; margin-bottom: 30px; }

/* Form Grid */
.sai-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.full { grid-column: span 2; }
.sai-input-group label { display: block; font-size: 11px; font-weight: 700; color: var(--sai-text-dim); margin-bottom: 8px; text-transform: uppercase; }
.sai-input-group input, .sai-input-group select { width: 100%; padding: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 8px; color: white; outline: none; transition: 0.3s; }
.sai-input-group input:focus { border-color: var(--sai-blue); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }

/* Loader Overlay */
.sai-loader-overlay { position: fixed; inset: 0; background: var(--bg-deep); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(20px); }
.loader-logo-glow { height: 120px; filter: drop-shadow(0 0 30px var(--sai-blue)); animation: breathingGlow 2s ease-in-out infinite; }
@keyframes breathingGlow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); margin: 15px auto; overflow: hidden; }
.loader-progress { width: 0%; height: 100%; background: var(--sai-blue); animation: loadBar 2s linear forwards; }
@keyframes loadBar { to { width: 100%; } }

.sai-btn-primary { background: var(--sai-blue); color: white; border: none; padding: 14px 40px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.sai-btn-primary:disabled { background: #1e293b; color: #475569; cursor: not-allowed; }
.sai-btn-outline { background: transparent; border: 1px solid var(--border); color: white; padding: 14px 30px; border-radius: 8px; cursor: pointer; }
/* END: SPACEAI CONSOLIDATED CSS */




/* --- VIEW 1: TERMS & WORKFLOW --- */

/* Notice Banner - High Visibility */
.sai-notice-banner {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--sai-blue);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 24px;
    animation: slideInDown 0.5s ease-out;
}

.banner-icon {
    font-size: 20px;
    margin-top: 2px;
}

.sai-notice-banner p {
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

/* Progress Tracker */
.sai-progress-container {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#scroll-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--sai-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sai-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sai-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sai-blue), #60a5fa);
    box-shadow: 0 0 10px var(--sai-blue-glow);
    transition: width 0.2s ease;
}

/* Terms Viewport - The Scrollable Box */
.sai-terms-viewport {
    height: 450px;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-y: scroll;
    padding: 30px;
    position: relative;
    /* Custom Scrollbar for Chrome/Safari */
}

.sai-terms-viewport::-webkit-scrollbar {
    width: 6px;
}

.sai-terms-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.sai-terms-viewport::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sai-terms-viewport::-webkit-scrollbar-thumb:hover {
    background: var(--sai-text-dim);
}

/* Typography inside Terms */
.terms-content h3 {
    color: #f8fafc;
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 16px;
}

.terms-content strong {
    color: #fff;
    font-weight: 600;
}

.terms-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.terms-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.terms-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--sai-blue);
    font-weight: 800;
}

/* QA Section */
.terms-content br + A {
    display: block;
    margin-top: 4px;
}

.terms-content p:has(strong) {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Action Button State */
#btn-accept {
    width: 100%;
    padding: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#btn-accept:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(1);
    background: #1e293b;
    border-color: transparent;
}

#btn-accept:not(:disabled) {
    background: var(--sai-blue);
    box-shadow: 0 0 20px var(--sai-blue-glow);
    animation: pulseGlow 2s infinite;
}

/* Animations */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--sai-blue-glow); }
    50% { box-shadow: 0 0 25px var(--sai-blue-glow); }
    100% { box-shadow: 0 0 10px var(--sai-blue-glow); }
}





/* START: PROJECT BINDING STYLES */
.sai-project-binding-box {
    background: rgba(159, 18, 18, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.id-input-wrapper {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 15px;
}

.id-prefix {
    color: var(--sai-blue);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    margin-right: 10px;
}

#project-id {
    background: transparent !important;
    border: none !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px !important;
    letter-spacing: 4px;
    color: #fff;
    padding: 15px 0 !important;
    text-transform: uppercase;
}

.project-info-card {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--sai-blue);
    border-radius: 8px;
    padding: 20px;
    animation: slideDown 0.3s ease-out;
}

.project-info-card.hidden { display: none; }

.status-indicator {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.project-details h4 { margin: 0 0 10px 0; font-size: 16px; color: #fff; }
.project-details p { margin: 5px 0; font-size: 13px; color: var(--sai-text-dim); }

.binding-warning {
    margin-top: 20px;
    padding: 15px;
    border-left: 2px solid #eab308;
    background: rgba(234, 179, 8, 0.05);
}

.binding-warning p { font-size: 12px; color: #94a3b8; margin: 0; }


/* PROJECT ID STYLES */
.error-text { color: #ff4d4d; font-size: 11px; font-weight: 700; margin-top: 10px; text-transform: uppercase; }
.hidden { display: none !important; }

.id-input-wrapper.error { border-color: #ff4d4d !important; box-shadow: 0 0 10px rgba(255, 77, 77, 0.2); }

.slot-timer-box {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(234, 179, 8, 0.1); border: 1px solid #eab308;
    border-radius: 8px; padding: 10px; margin: 15px 0;
}
.slot-timer-box p { margin: 0; font-size: 12px; font-weight: 800; color: #eab308; }
#timer-countdown { font-family: 'JetBrains Mono', monospace; }

.project-info-card { border-left: 4px solid #10b981 !important; }

/* END: PROJECT BINDING STYLES */


/* =========================================================
   STEP 2: IDENTITY PROFILE
========================================================= */

/* Form Layout */
.sai-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

/* Allow full-width rows for Name and Country */
.sai-input-group.full {
    grid-column: span 2;
}

.sai-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--sai-text-dim);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input & Select Styling */
.sai-form-grid input, 
.sai-form-grid select {
    width: 100%;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sai-form-grid input:focus, 
.sai-form-grid select:focus {
    border-color: var(--sai-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Privacy Notice */
.privacy-lock-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 24px;
}

.lock-icon { font-size: 18px; }

.privacy-lock-notice p {
    font-size: 12px;
    color: #10b981;
    margin: 0;
    line-height: 1.4;
}

/* =========================================================
   STEP 3: PROJECT BINDING
========================================================= */

.sai-project-binding-box {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

/* Specialized ID Input */
.id-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0 16px;
    transition: border-color 0.3s;
}

.id-input-wrapper:focus-within {
    border-color: var(--sai-blue);
}

.id-prefix {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--sai-blue);
    margin-right: 12px;
    user-select: none;
}

#project-id {
    background: transparent;
    border: none;
    padding: 15px 0;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    width: 100%;
    text-transform: uppercase;
}

#project-id:focus { outline: none; }

/* Timer & Error States */
.slot-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 14px;
}

.error-text {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

/* Project Verified Card */
.project-info-card {
    margin-top: 25px;
    background: linear-gradient(145deg, #064e3b, #022c22);
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 20px;
    animation: fadeInSlide 0.4s ease forwards;
}

.status-indicator {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

#display-project-name {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px 0;
}

.project-details p {
    font-size: 14px;
    color: #a7f3d0;
    margin: 4px 0;
}

.project-details strong { color: #fff; }

/* Global Hidden Helper */
.hidden { display: none !important; }

/* Responsive Grid */
@media (max-width: 600px) {
    .sai-form-grid { grid-template-columns: 1fr; }
    .sai-input-group.full { grid-column: span 1; }
}





/* START: STEP 4 STYLES */
/* =========================================================
   STEP 4 — CORE VARIABLES & LAYOUT
========================================================= */
:root {
    --sai-blue: #3b82f6;
    --sai-blue-glow: rgba(59, 130, 246, 0.5);
    --sai-bg-dark: #0f172a;
    --sai-card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --sai-text-dim: #94a3b8;
    --sai-success: #10b981;
    --sai-warning: #f59e0b;
}

.vertical-stepper-container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

/* =========================================================
   VERTICAL STEPPER LOGIC
========================================================= */
.v-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 40px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-step.locked {
    opacity: 0.35;
    filter: grayscale(1) blur(1px);
    pointer-events: none;
}

.v-index {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sai-bg-dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--sai-text-dim);
    z-index: 3;
    transition: all 0.3s ease;
}

.v-step.active .v-index {
    background: var(--sai-blue);
    border-color: var(--sai-blue);
    color: white;
    box-shadow: 0 0 16px var(--sai-blue-glow);
}

.v-step.completed .v-index {
    background: var(--sai-success);
    border-color: var(--sai-success);
    color: white;
}

.v-line {
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--border);
    z-index: 1;
}

.v-step.completed .v-line {
    background: var(--sai-success);
}

/* =========================================================
   STEP CONTENT & TYPOGRAPHY
========================================================= */
.v-content {
    animation: fadeInSlide 0.45s ease forwards;
}

.sai-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--sai-text-dim);
    line-height: 1.6;
    margin-bottom: 18px;
}

.compulsory-tag {
    font-size: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 3px 8px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
    text-transform: uppercase;
}

/* =========================================================
   PAYMENT & WALLET GRIDS
========================================================= */
.sai-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

/* =========================================================
   PAYMENT / WALLET CARD (COOL CONTAINER)
========================================================= */
.payment-card-premium {
    background: var(--sai-card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* subtle gradient edge */
.payment-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(59,130,246,0.15),
        transparent
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-card-premium:hover::before {
    opacity: 1;
}

.payment-card-premium:hover {
    border-color: var(--sai-blue);
    background: rgba(59, 130, 246, 0.07);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

/* SELECTED STATE (JS CAN ADD THIS CLASS) */
.payment-card-premium.selected {
    border-color: var(--sai-success);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.payment-card-premium img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: white;
    padding: 6px;
    border-radius: 10px;
}

.pc-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.pc-info p {
    font-size: 11px;
    color: var(--sai-text-dim);
    margin: 0;
    line-height: 1.45;
}

/* =========================================================
   MODAL SYSTEM (SMOOTH & PREMIUM)
========================================================= */
.sai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sai-modal-card {
    background: #111827;
    border: 1px solid var(--sai-blue);
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sai-modal-card.wide {
    max-width: 560px;
}

.modal-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.modal-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.official-link {
    font-size: 12px;
    color: var(--sai-blue);
    text-decoration: none;
    font-weight: 600;
}

.official-link:hover {
    text-decoration: underline;
}

.sai-modal-input {
    width: 100%;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-family: inherit;
    margin-top: 8px;
}

.sai-modal-input:focus {
    border-color: var(--sai-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* =========================================================
   LOADERS & HELPERS
========================================================= */
.sai-inline-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sai-blue);
    font-size: 13px;
    font-weight: 700;
    margin-top: 20px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-top-color: var(--sai-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

.full {
    width: 100%;
}

/* =========================================================
   WALLET STEPS
========================================================= */
.wallet-steps-content {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 18px;
    margin: 20px 0;
}

.wallet-step-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.ws-num {
    color: var(--sai-blue);
    font-weight: 900;
}

/* =========================================================
   ANIMATIONS
========================================================= */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 640px) {
    .v-step {
        padding-left: 45px;
    }

    .v-index {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .v-line {
        left: 13px;
    }

    .payment-card-premium {
        padding: 14px;
    }
}

/* END: STEP 4 STYLES */





/* =========================================================
   STEP 5: CRYPTO ASSET GRID
========================================================= */
.crypto-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.crypto-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.crypto-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.3s;
}

.crypto-card:hover {
    transform: translateY(-4px);
    border-color: var(--sai-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.crypto-card:hover::before { opacity: 1; }

.crypto-icon-bg {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crypto-icon-bg img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.crypto-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #fff;
}

.network-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.network-badge.erc { background: rgba(98, 126, 234, 0.2); color: #627eea; border: 1px solid rgba(98, 126, 234, 0.3); }
.network-badge.eth { background: rgba(255, 255, 255, 0.1); color: #eee; border: 1px solid rgba(255, 255, 255, 0.2); }
.network-badge.sol { background: rgba(20, 241, 149, 0.1); color: #14f195; border: 1px solid rgba(20, 241, 149, 0.3); }

.card-arrow {
    margin-left: auto;
    color: var(--sai-text-dim);
    font-weight: 300;
    transition: 0.3s;
}

.crypto-card:hover .card-arrow {
    color: var(--sai-blue);
    transform: translateX(4px);
}

.deposit-notice {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #fcd34d;
}

/* =========================================================
   DEPOSIT MODAL STYLING
========================================================= */
.sai-modal-card.wide-deposit {
    max-width: 480px;
    padding: 0;
    overflow: hidden;
}

.modal-deposit-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.asset-identity { display: flex; align-items: center; gap: 12px; }
.asset-identity img { width: 32px; height: 32px; }
.asset-identity h3 { margin: 0; font-size: 18px; color: #fff; }

.network-pill {
    font-size: 11px;
    background: var(--sai-bg-dark);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--sai-text-dim);
    margin-top: 4px;
    display: inline-block;
}

.close-icon-btn {
    background: none; border: none; color: var(--sai-text-dim);
    font-size: 20px; cursor: pointer; padding: 5px;
}

/* Payment State */
#deposit-state-payment { padding: 30px; }

.qr-code-container { text-align: center; margin-bottom: 25px; }
.qr-border {
    background: #fff; padding: 10px; border-radius: 12px;
    display: inline-block; box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.qr-border img { width: 160px; height: 160px; display: block; }

.scan-instruction { margin-top: 15px; color: #cbd5e1; font-size: 14px; }
.scan-instruction strong { color: #fff; }

.address-copy-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
}

.address-copy-block label {
    display: block; font-size: 11px; color: var(--sai-text-dim);
    text-transform: uppercase; margin-bottom: 8px;
}

.copy-row { display: flex; gap: 10px; align-items: center; }
.copy-row code {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--sai-blue);
    word-break: break-all; line-height: 1.4; flex: 1;
}

.copy-action-btn {
    background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--sai-blue); padding: 6px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: 0.2s;
}
.copy-action-btn:hover { background: var(--sai-blue); color: #fff; }

/* Loading State (Radar) */
#deposit-state-loading {
    padding: 60px 30px;
    text-align: center;
}

.radar-spinner {
    width: 60px; height: 60px; border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid var(--sai-blue); border-radius: 50%;
    margin: 0 auto 30px; animation: spin 1s linear infinite;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

#deposit-state-loading h4 { color: #fff; margin-bottom: 10px; }
#verification-timer {
    display: block; margin-top: 20px; font-family: 'JetBrains Mono', monospace;
    font-size: 24px; color: var(--sai-blue); font-weight: 700;
}

/* Error State */
#deposit-state-error { padding: 40px 30px; text-align: center; }
.error-visual { margin-bottom: 30px; }
.error-icon { font-size: 40px; margin-bottom: 15px; }
.error-visual h4 { color: #ef4444; font-size: 18px; margin-bottom: 10px; }
.error-visual p { color: #cbd5e1; font-size: 14px; line-height: 1.5; }

.discord-btn {
    border-color: #5865F2; color: #5865F2;
}
.discord-btn:hover { background: #5865F2; color: white; }






/* =========================================================
   MODAL ACTIONS - BUTTON GROUP
========================================================= */
.modal-actions {
    display: flex;
    flex-direction: column; /* Stacked for better mobile/modal ergonomics */
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

/* Base Button Styles */
.modal-actions .full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

/* PRIMARY BUTTON: Confirm Payout Method */
.sai-btn-primary.full {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), 
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.sai-btn-primary.full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.sai-btn-primary.full:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    filter: brightness(0.9);
}

/* Subtle Shine Animation on Primary */
.sai-btn-primary.full::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: none;
}

.sai-btn-primary.full:hover::after {
    left: 140%;
    transition: all 0.6s ease-in-out;
}

/* TEXT BUTTON: Cancel */
.sai-btn-text.full {
    background: transparent;
    color: var(--sai-text-dim, #94a3b8);
    border: 1px solid transparent;
}

.sai-btn-text.full:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sai-btn-text.full:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

/* Disabled State Logic */
.modal-actions button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
    box-shadow: none !important;
}

/* Horizontal variation if you ever change from .full to side-by-side */
@media (min-width: 480px) {
    .modal-actions.row-layout {
        flex-direction: row-reverse; /* Primary on the right */
    }
}




/* ===== LINKED PAYOUT SUMMARY ===== */
.linked-summary {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.summary-label {
  color: #8a8f9c;
}

.summary-value {
  color: #e6e8ec;
  font-weight: 500;
}

.summary-value.muted {
  color: #9aa0ad;
}

.summary-actions {
  margin-top: 10px;
  text-align: right;
}

.method-success {
  text-align: center;
  padding: 30px 20px;
}

.method-success .success-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1dbf73;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}







/* =========================================================
   HEADER & STICKY STEPPER (THE COMMAND CENTER)
========================================================= */

/* --- 1. Main Header --- */
.sai-main-header {
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 24px 40px;
    position: relative;
    z-index: 50;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sai-logo-float {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Node Status Badge */
.node-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--sai-text-dim);
    letter-spacing: 1px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Success Green */
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- 2. Sticky Stepper Navigation --- */
.sai-sticky-stepper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.9); /* High opacity for readability */
    backdrop-filter: blur(20px);      /* Heavy glass blur */
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px 40px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.stepper-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 Columns for 6 Steps */
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Step Card Base */
.step-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0.5; /* Dimmed by default */
}

/* Step Index Number */
.step-index {
    width: 28px;
    height: 28px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--sai-text-dim);
    flex-shrink: 0;
    transition: 0.3s;
}

/* Step Text Layout */
.step-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-text .title {
    font-size: 10px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.step-text .desc {
    font-size: 9px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- ACTIVE STATE (The "Current" Step) --- */
.step-card.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--sai-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.step-card.active .step-index {
    background: var(--sai-blue);
    color: white;
    border-color: var(--sai-blue);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

.step-card.active .title {
    color: white;
}

.step-card.active .desc {
    color: var(--sai-blue);
}

/* Shine Effect on Active Card */
.step-card.active::before {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .stepper-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 Rows on Tablet */
        gap: 8px;
    }
    .step-text .desc { display: none; } /* Hide description for space */
}

@media (max-width: 600px) {
    .sai-main-header { padding: 15px 20px; }
    .node-status { display: none; }
    
    .sai-sticky-stepper { padding: 10px 0; overflow-x: auto; }
    .stepper-grid {
        display: flex;
        padding: 0 20px;
        width: max-content; /* Horizontal Scroll */
    }
    .step-card { min-width: 140px; }
}



/* Container for the helper text/link */
.project-link-helper {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono); /* Uses the technical/mono font */
}

/* The Futuristic Small Button */
.sai-btn-sm {
    font-size: 0.75rem; /* Slightly smaller for that 'UI' feel */
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1); /* Transparent blue tint */
    color: var(--sai-blue);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 4px; /* Sharper edges for a more technical look */
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Glow and slide */
.sai-btn-sm:hover {
    background: var(--sai-blue);
    color: #fff;
    box-shadow: 0 0 15px var(--sai-blue-glow);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Small pseudo-element light streak on hover */
.sai-btn-sm::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.sai-btn-sm:hover::after {
    left: 120%;
}