/* --- THEME VARIABLES --- */
:root {
    /* DEFAULT (DARK) */
    --bg-app: #05070a;
    --sidebar-bg: rgba(13, 17, 23, 0.95);
    --card-bg: rgba(22, 27, 34, 0.8);
    --border-color: rgba(48, 54, 61, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    
    /* ACCENTS */
    --accent: #0088ff;
    --accent-glow: rgba(0, 136, 255, 0.4);
    
    /* GRADIENT BTN */
    --grad-btn: linear-gradient(90deg, #0070f3 0%, #00aaff 100%);
    --grad-btn-disabled: linear-gradient(90deg, #21262d, #30363d);
}

/* LIGHT MODE OVERRIDES */
[data-theme="light"] {
    --bg-app: #f0f2f5;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e1e4e8;
    
    --text-primary: #1c1e21;
    --text-secondary: #65676b;
    
    /* Keep accents blue but adjust glow */
    --accent: #0070f3;
    --accent-glow: rgba(0, 112, 243, 0.15);
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    height: 100vh; overflow: hidden;
    transition: background 0.3s, color 0.3s;
}

/* --- BACKGROUNDS --- */
.bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; transition: opacity 0.5s; }

/* DARK MODE GALAXY */
.galaxy-bg { background: #000 url('https://raw.githubusercontent.com/SimpleSoftwareIO/simple-parallax-js/master/src/images/stars.png') repeat top center; opacity: 1; }
.twinkling{
    position:absolute; top:0; left:0; right:0; bottom:0;
    background:transparent url('https://raw.githubusercontent.com/SimpleSoftwareIO/simple-parallax-js/master/src/images/twinkling.png') repeat top center;
    animation:move-twink-back 200s linear infinite; opacity:0.4;
}
@keyframes move-twink-back { from {background-position:0 0;} to {background-position:-10000px 5000px;} }

/* LIGHT MODE MESH */
.light-mesh { 
    background: radial-gradient(at top left, #e0f2fe, transparent), radial-gradient(at bottom right, #f0f9ff, transparent); 
    opacity: 0; 
}

/* Toggle visibility based on theme */
[data-theme="light"] .galaxy-bg { opacity: 0; }
[data-theme="light"] .light-mesh { opacity: 1; }

/* --- 3D META-STYLE LOADER --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-app); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-svg { width: 140px; height: 90px; }

/* Dark Blue Track */
.meta-track {
    fill: none; stroke: var(--border-color); stroke-width: 14; 
    stroke-linecap: round; stroke-linejoin: round;
}
/* Flowing Gradient */
.meta-flow {
    fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 60, 300; stroke-dashoffset: 0;
    animation: infinityFlow 1.5s linear infinite;
}
@keyframes infinityFlow { to { stroke-dashoffset: -360; } }

.loader-text { margin-top: 20px; font-weight: 800; letter-spacing: 3px; color: var(--text-primary); font-size: 1.2rem; }

/* --- APP LAYOUT --- */
.app-container { display: flex; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }

/* SIDEBAR */
.sidebar {
    width: 280px; background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; padding: 25px;
    transition: background 0.3s, border 0.3s;
}

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.logo-area { display: flex; align-items: center; gap: 20px; }
.sidebar-logo { width: 72px; height: auto; }
.logo-text { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.5px; }

/* Toggle Btn */
.theme-btn {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-secondary); cursor: pointer; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.theme-btn:hover { background: var(--border-color); color: var(--text-primary); }
.theme-btn svg { width: 18px; height: 18px; }
/* Icon switching logic */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Navigation */
.nav-menu { display: flex; flex-direction: column; gap: 50px; flex: 1; padding-top: 20px; }

.nav-row { display: flex; align-items: center; gap: 15px; opacity: 0.6; transition: 0.3s; }
.nav-row.active { opacity: 1; }

.nav-icon { 
    width: 24px; height: 24px; display: flex; justify-content: center; align-items: center;
    color: var(--text-primary); 
}
.nav-icon svg { width: 22px; height: 22px; }

.nav-label { font-size: 0.9rem; font-weight: 600; width: 70px; color: var(--text-primary); }

.nav-bar-container {
    flex: 1; height: 6px; background: var(--border-color); border-radius: 4px; overflow: hidden;
}
.nav-bar-fill {
    height: 100%; background: var(--accent); width: 0%; border-radius: 4px; box-shadow: 0 0 8px var(--accent);
}
.nav-row.active .nav-bar-fill { width: 100% !important; background: #00aaff; }

.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.logout-btn {
    display: flex; align-items: center; gap: 10px; color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; padding: 10px; border-radius: 6px; transition: 0.2s;
}
.logout-btn svg { width: 18px; height: 18px; }
.logout-btn:hover { background: var(--border-color); color: var(--text-primary); }

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1; padding: 40px; overflow-y: auto;
    display: flex; justify-content: center; align-items: flex-start;
}

.glow-panel {
    width: 100%; max-width: 900px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 16px; padding: 40px;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: 0.3s; margin-bottom: 40px;
}

.active-view { display: block; animation: fadeUp 0.5s ease; }
.hidden-view { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.panel-title { margin: 0 0 10px 0; font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.panel-subtitle { color: var(--text-secondary); margin: 0 0 30px 0; font-size: 0.95rem; }

.content-scroll-area { display: flex; flex-direction: column; gap: 20px; }

/* CARDS */
.dash-card {
    background: var(--sidebar-bg); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 25px; transition: background 0.3s;
}
.full-width { width: 100%; }

.card-label { color: var(--text-primary); margin: 0 0 8px 0; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.5; }

/* HERO */
.hero-card { display: flex; justify-content: space-between; align-items: flex-start; }
.card-content { flex: 1; margin-right: 20px; }
.payment-note { margin-top: 8px; font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.price-tag { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); white-space: nowrap; }
.usd { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

/* GRID */
.row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* VIOLATION */
.violation-card { border-left: 3px solid #ff4444; }
.text-danger { color: #ff4444; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.simple-list { padding-left: 0; list-style: none; margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.simple-list li { margin-bottom: 6px; }
.sub-note { color: var(--text-secondary); font-style: italic; font-size: 0.8rem; opacity: 0.7; }
.stat-bar { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-primary); }

/* BONUS */
.bonus-card { border: 1px solid #ffd700; background: rgba(255, 215, 0, 0.05); }
.text-gold { color: #ffd700; }
.bonus-flex { display: flex; justify-content: space-between; align-items: center; }
.bonus-badge { background: #ffd700; color: #000; padding: 5px 10px; border-radius: 4px; font-weight: 700; font-size: 0.75rem; }

/* CHECKBOX */
.agreement-section { margin-top: 10px; padding: 15px; background: var(--sidebar-bg); border-radius: 8px; border: 1px solid var(--border-color); }
.custom-checkbox { display: flex; align-items: center; position: relative; padding-left: 30px; cursor: pointer; font-size: 0.9rem; color: var(--text-primary); }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; }
.checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; }
.custom-checkbox input:checked ~ .checkmark { background-color: var(--accent); border-color: var(--accent); }
.checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* FOOTER */
.footer-actions { display: flex; gap: 15px; margin-top: 30px; }
.right-align { justify-content: flex-end; }
.split { justify-content: space-between; }

.btn-glow {
    background: var(--grad-btn); border: none; padding: 14px 40px;
    border-radius: 8px; color: white; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; box-shadow: 0 0 15px rgba(0, 136, 255, 0.4); transition: 0.3s;
}
.btn-glow:hover:not(.disabled) { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0, 136, 255, 0.6); }
.btn-glow.disabled { background: var(--grad-btn-disabled); box-shadow: none; color: #777; cursor: not-allowed; }

.btn-back {
    background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary);
    padding: 14px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-back:hover { border-color: var(--text-primary); color: var(--text-primary); }

.placeholder-box { height: 200px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }

@media(max-width: 900px) {
    .app-container { flex-direction: column; overflow-y: auto; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); flex-direction: row; padding: 15px; align-items: center; justify-content: space-between; }
    .nav-menu { display: none; }
    .list-grid, .row-grid, .hero-card { grid-template-columns: 1fr; flex-direction: column; }
    .main-content { padding: 20px; }
    .hero-card { align-items: flex-start; gap: 10px; }
}






/* --- FORM ELEMENTS (Step 4) --- */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs & Dropdowns */
.input-group input, 
.input-group select {
    width: 100%;
    background: var(--bg-app); /* Contrast against card background */
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    
    /* Remove default ugly browser styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom Dropdown Arrow */
.input-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px;
}

/* Input Focus State (Glowing Blue) */
.input-group input:focus, 
.input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: var(--sidebar-bg); /* Slightly lighter on focus */
}

/* Placeholder Text Styling */
.input-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.4; /* Subtle fade */
    font-style: normal;
}

/* Error Text */
.note-text {
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Hover Effects */
.input-group input:hover,
.input-group select:hover {
    border-color: var(--text-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}










/* =========================================
   STEP 5: FINANCIAL CONFIGURATION CSS
   ========================================= */

/* --- LAYOUT UTILITIES --- */
.vertical-stepper-container { position: relative; padding: 10px 0; }
.hidden { display: none !important; }

/* --- HEADER --- */
.step-badge {
    display: inline-block; background: rgba(0, 136, 255, 0.1); color: var(--accent);
    border: 1px solid rgba(0, 136, 255, 0.2); font-size: 0.7rem; font-weight: 700;
    padding: 6px 10px; border-radius: 6px; margin-bottom: 15px; letter-spacing: 1px;
}
.header-desc {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6;
    margin-bottom: 40px; max-width: 700px;
}
.header-desc strong { color: var(--text-primary); }

/* --- VERTICAL STEPPER --- */
.v-step { position: relative; padding-left: 60px; padding-bottom: 50px; }
.v-step:last-child { padding-bottom: 0; }

.v-index {
    position: absolute; left: 0; top: 0; width: 36px; height: 36px;
    border-radius: 50%; background: var(--bg-app); border: 2px solid var(--border-color);
    color: var(--text-secondary); font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; z-index: 2;
    transition: all 0.3s ease;
}
.v-line {
    position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px;
    background: var(--border-color); z-index: 1;
}

/* Active State */
.v-step.active .v-index { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.15); }

/* Locked State */
.v-step.locked .v-content { opacity: 0.4; pointer-events: none; user-select: none; }

.sai-section-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin: 0 0 15px 0; display: flex; align-items: center; gap: 10px; }
.compulsory-tag { background: #ff4444; color: white; font-size: 0.65rem; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- PAYMENT GRIDS --- */
.sai-payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 25px; }
.sai-pay-card {
    background: var(--bg-app); border: 1px solid var(--border-color); border-radius: 10px;
    height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; cursor: pointer; transition: all 0.2s ease;
}
.sai-pay-card:hover { border-color: var(--accent); background: rgba(0, 136, 255, 0.05); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.sai-pay-card img { height: 36px; width: auto; object-fit: contain; }
.sai-pay-card span { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }

/* --- SUMMARY BOX --- */
.linked-summary {
    background: rgba(0, 136, 255, 0.04); border: 1px solid rgba(0, 136, 255, 0.2);
    border-left: 4px solid var(--accent); border-radius: 6px; padding: 15px 20px;
    margin-bottom: 25px; animation: slideDown 0.3s ease;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.9rem; }
.summary-label { color: var(--text-secondary); }
.summary-value { color: var(--text-primary); font-weight: 600; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- GUIDELINES --- */
.guideline-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.sai-list { padding-left: 20px; margin: 0; color: var(--text-secondary); line-height: 1.6; font-size: 0.9rem; }
.sai-list li { margin-bottom: 10px; }
.sai-list strong { color: var(--text-primary); }

/* --- BUTTONS --- */
.sai-btn-primary { background: var(--accent); color: white; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.sai-btn-primary:hover { background: #0077e6; }
.sai-btn-primary.full { width: 100%; margin-bottom: 10px; }
.sai-btn-text { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; }
.sai-btn-text:hover { color: var(--text-primary); text-decoration: underline; }

/* --- MODALS --- */
.sai-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.sai-modal-card {
    background: var(--card-bg); border: 1px solid var(--border-color); width: 90%; max-width: 440px;
    border-radius: 16px; padding: 30px; box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sai-modal-card.wide { max-width: 550px; }
.modal-top { text-align: center; margin-bottom: 20px; }
.modal-logo-img { height: 50px; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto;}
.modal-desc { text-align: center; color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.confirm-box { background: var(--bg-app); border: 1px dashed var(--accent); padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 20px; font-family: monospace; color: var(--text-primary); word-break: break-all;}
.success-icon-large { font-size: 4rem; color: #00e676; text-align: center; display: block; margin-bottom: 15px; }

/* WALLET STEPS */
.wallet-steps-list { margin: 20px 0 30px 0; }
.w-step-item { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.w-num { background: var(--accent); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.w-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }

/* SPINNER */
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }






/* --- MODAL INPUT STYLING (FIX) --- */

/* The Label above the input */
.sai-input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* The Input Field Itself */
.sai-input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark transparent background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: #ffffff; /* White text */
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Focus State (When user clicks inside) */
.sai-input-group input:focus {
    border-color: var(--accent); /* Neon Blue Border */
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

/* Placeholder Text Color */
.sai-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Fix for Auto-fill making background white */
.sai-input-group input:-webkit-autofill,
.sai-input-group input:-webkit-autofill:hover, 
.sai-input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #0d1117 inset; /* Matches dark bg */
    transition: background-color 5000s ease-in-out 0s;
}







/* =========================================
   STEP 5: FINANCIAL CONFIGURATION STYLES
   ========================================= */

/* --- LAYOUT UTILITIES --- */
.vertical-stepper-container {
    position: relative;
    padding: 10px 0;
}

.hidden {
    display: none !important;
}

/* --- HEADER --- */
.step-badge {
    display: inline-block;
    background: rgba(0, 136, 255, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 136, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.header-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
}

.header-desc strong {
    color: var(--text-primary);
}

/* --- VERTICAL STEPPER --- */
.v-step {
    position: relative;
    padding-left: 60px;
    padding-bottom: 50px;
}

.v-step:last-child {
    padding-bottom: 0;
}

/* The Number Circle */
.v-index {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-app);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

/* The Vertical Line */
.v-line {
    position: absolute;
    left: 17px; /* Center of the 36px circle */
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    z-index: 1;
}

/* Active State */
.v-step.active .v-index {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.15);
}

/* Locked State */
.v-step.locked .v-content {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.sai-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compulsory-tag {
    background: #ff4444;
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CARDS & GRIDS --- */
.sai-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sai-pay-card {
    background: var(--bg-app);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sai-pay-card:hover {
    border-color: var(--accent);
    background: rgba(0, 136, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Logos: White pill background to ensure visibility */
.sai-pay-card img {
    height: 40px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.sai-pay-card:hover img {
    transform: scale(1.05);
    background: #ffffff;
}

.sai-pay-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.sai-pay-card:hover span {
    color: var(--text-primary);
}

/* --- SUMMARY BOX --- */
.linked-summary {
    background: rgba(0, 136, 255, 0.04);
    border: 1px solid rgba(0, 136, 255, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.summary-label { color: var(--text-secondary); }
.summary-value { color: var(--text-primary); font-weight: 600; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- GUIDELINES CARD --- */
.guideline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sai-list {
    padding-left: 20px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.sai-list li { margin-bottom: 10px; }
.sai-list strong { color: var(--text-primary); }

/* --- MODAL STRUCTURE (FIXED & SCROLLABLE) --- */
.sai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.sai-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.sai-modal-card.wide {
    max-width: 550px;
}

/* Scrollable Wallet Modal Logic */
.sai-modal-card.scrollable-modal {
    max-height: 85vh; /* Prevents modal from going off-screen */
    display: flex;
    flex-direction: column;
    padding: 0; /* Padding handled by children */
    overflow: hidden;
}

.modal-top {
    padding: 30px 30px 10px 30px;
    background: var(--card-bg);
    z-index: 2;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-logo-img {
    height: 50px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Content Area for Long Text */
.wallet-content-area {
    padding: 20px 30px;
    overflow-y: auto; /* Enables scrolling inside modal */
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sticky Footer for Buttons */
.sticky-footer {
    padding: 20px 30px 30px 30px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- MODAL TEXT ELEMENTS --- */
.official-link-badge {
    display: inline-block;
    background: rgba(0, 136, 255, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    border: 1px solid rgba(0, 136, 255, 0.2);
    transition: 0.2s;
}

.official-link-badge:hover {
    background: var(--accent);
    color: white;
}

.guide-block h4 {
    color: var(--text-primary);
    margin: 25px 0 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.guide-block h4:first-child { margin-top: 0; }

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
}

.step-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1rem;
}

.step-list strong { color: var(--text-primary); }

.highlight-text {
    color: #ffaa00;
    font-weight: 700;
}

.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    padding: 15px;
    margin-top: 25px;
    border-radius: 4px;
    color: #ffcccc;
    font-size: 0.9rem;
}

.warning-box strong {
    color: #ff4444;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- INPUTS & BUTTONS --- */
.sai-btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.sai-btn-primary:hover {
    background: #0077e6;
    box-shadow: 0 0 15px var(--accent-glow);
}

.sai-btn-primary.full { width: 100%; }

.sai-btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.sai-btn-text:hover { color: var(--text-primary); text-decoration: underline; }

/* Modal Inputs */
.sai-input-group.full { width: 100%; padding: 0 30px; margin-bottom: 20px; box-sizing: border-box; } /* Added padding for non-scrollable modal inputs */

.sai-input-group label {
    display: block; color: var(--text-secondary); font-size: 0.85rem;
    margin-bottom: 8px; font-weight: 600; text-transform: uppercase;
}

.sai-input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.sai-input-group input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spinner { width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }









/* --- STEP 7 STYLES --- */
.error-icon-giant {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Console Log Animation */
.console-box {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    height: 120px;
    overflow: hidden;
    position: relative;
    max-width: 400px;
    margin: 20px auto;
}

.console-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #00ff88;
    text-align: left;
    line-height: 1.5;
}








/* =========================================
   STEP 6: DEPOSIT UI
   ========================================= */

.crypto-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Tabs */
.crypto-tabs {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}

.c-tab {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.c-tab:hover { background: rgba(255,255,255,0.02); }

.c-tab.active {
    border-bottom-color: var(--accent);
    color: #fff;
    background: rgba(0, 136, 255, 0.05);
}

.c-tab img { width: 20px; height: 20px; border-radius: 50%; }

/* Details Box */
.crypto-details-box {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

/* QR Code */
.qr-container {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 140px;
    text-align: center;
    flex-shrink: 0;
}
.qr-container img { width: 100%; display: block; }
.scan-text { color: #000; font-size: 0.7rem; font-weight: 700; margin-top: 5px; display: block; }

/* Address Area */
.address-container { flex: 1; min-width: 250px; }

.addr-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.network-badge {
    background: rgba(0, 136, 255, 0.15);
    color: var(--accent);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Interactive Address Input */
.addr-input-wrap {
    position: relative;
    cursor: pointer;
}

.addr-input-wrap input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    padding: 15px 45px 15px 15px;
    border-radius: 8px;
    color: #fff;
    font-family: monospace;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: 0.2s;
}

.addr-input-wrap:hover input {
    border-color: var(--accent);
    background: rgba(0, 136, 255, 0.05);
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    right: 0;
    background: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.2s;
    pointer-events: none;
}
.copy-tooltip.show { opacity: 1; transform: translateY(0); }

/* Warning */
.warning-ticker {
    margin-top: 15px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ffaa00;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================
   STEP 7: SUCCESS STYLES
   ========================================= */
.success-container {
    text-align: center;
    padding: 20px;
}

.loader-ring {
    width: 60px; height: 60px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px auto;
}

.console-text {
    font-family: monospace;
    color: var(--text-secondary);
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
    line-height: 1.6;
}

.success-icon-giant {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credentials-card {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--accent);
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    margin: 30px auto;
}

.cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cred-label { color: var(--text-secondary); font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; }
.cred-value { font-family: monospace; font-size: 1.2rem; color: #fff; font-weight: 600; }
.cred-line { height: 1px; background: var(--border-color); margin: 15px 0; }

.blur-effect {
    filter: blur(5px);
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}
.blur-effect:hover { filter: blur(3px); }
.click-hint { font-size: 0.7rem; color: var(--text-secondary); margin-left: 10px; }

@keyframes bounceIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
.animate-pulse { animation: pulse 2s infinite; }









/* Discord Button Style */
.btn-discord {
    background: #5865F2; /* Official Blurple Color */
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    width: 100%;
}

.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}








/* Initial hidden state */
.hidden-modal {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Flex display when active */
.flex-modal {
    display: flex !important;
    opacity: 1;
}

/* Animation for the card popping in */
.welcome-animation {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0.8);
    opacity: 0;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}