/* DeltaSol - Advanced Solana Arbitrage Platform */

:root {
    /* SpreadNet Brand Colors - Sleek & Futuristic */
    --primary-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    --accent-gradient: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    --success-gradient: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --warning-gradient: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
    --danger-gradient: linear-gradient(135deg, #ff4444 0%, #cc2222 100%);
    
    /* Neutral Colors - More Black */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --text-accent: #00ff88;
    --text-purple: #8b5cf6;
    
    /* Effects */
    --shadow-glow: 0 8px 32px rgba(0, 255, 136, 0.3);
    --shadow-purple-glow: 0 8px 32px rgba(139, 92, 246, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.8);
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --blur-amount: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 136, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout to keep footer at bottom even with short content */
html, body { height: 100%; }
.section-content { padding-bottom: 80px; }
.footer-deltasol { position: relative; }
.footer-deltasol.minimal { position: sticky; top: 100%; }

/* Glass Morphism Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    border: var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* Navigation */
.navbar-deltasol {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    padding: 1rem 0;
}

.navbar-terminal .terminal-prompt {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #cbd5e1;
    font-weight: 600;
}
.navbar-terminal .terminal-prompt .user { color: #8b5cf6; }
.navbar-terminal .terminal-prompt .host { color: #06b6d4; }
.navbar-terminal .terminal-prompt .path { color: #a3a3a3; }
.navbar-terminal .tty-links .tty-link { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace; text-transform: lowercase; }

.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.navbar-brand::before {
    content: none;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    color: var(--text-primary) !important;
    background: var(--purple-gradient);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
    color: white;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    border: var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.stat-change {
    font-size: 0.8rem;
    color: #10b981;
    margin-top: 0.25rem;
}

/* Connection Status */
.connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.connection-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.connection-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.connection-icon.online {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.connection-icon.offline {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* Opportunities Table */
.opportunities-container {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    border: var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
}

.table-deltasol {
    background: transparent;
    margin: 0;
    color: var(--text-primary);
}

.table-deltasol thead th {
    background: rgba(20, 20, 28, 0.85);
    backdrop-filter: blur(10px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    padding: 1.1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-deltasol tbody tr {
    border: none;
    transition: all 0.25s ease;
    background: transparent;
}

.table-deltasol tbody tr:hover {
    background: rgba(139, 92, 246, 0.08);
}

.table-deltasol td {
    border: none;
    padding: 1.1rem 1rem;
    vertical-align: middle;
    background: transparent;
}

/* Sub-text in table cells */
.table-deltasol td small {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Opportunity Row Animations */
/* Enhanced highlight for newly arrived opportunities */
.opportunity-highlight {
    position: relative;
    background: linear-gradient(
        90deg,
        rgba(139, 92, 246, 0.18) 0%,
        rgba(20, 241, 149, 0.15) 50%,
        rgba(139, 92, 246, 0.18) 100%
    );
    border-left: 4px solid #8b5cf6;
    box-shadow: 0 6px 26px rgba(139, 92, 246, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    animation: neonFlash 1.8s ease-out, breathe 6s ease-in-out infinite;
}

@keyframes neonFlash {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.45); }
    60% { box-shadow: 0 0 0 18px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes breathe {
    0%, 100% { border-left-color: rgba(139, 92, 246, 0.85); }
    50% { border-left-color: rgba(20, 241, 149, 0.85); }
}

/* Profit Badges */
.profit-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.profit-high {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.profit-medium {
    background: var(--warning-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.profit-low {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* DEX Badges */
.dex-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-glass);
    border: var(--border-glass);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-left-color: #8b5cf6;
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

/* Charts */
.chart-container {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    border: var(--border-glass);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.25rem;
}

.chart-container h5 { margin-bottom: 1rem !important; }

/* Harmonize headings and spacing across cards for Apple-like consistency */
.glass-card h4 { font-size: 1.15rem; margin: 0; }
.glass-card h5 { font-size: 1rem; margin: 0; }
.glass-card .text-muted { color: var(--text-secondary) !important; }
.glass-card .p-4 { padding: 1.5rem !important; }
.glass-card .p-5 { padding: 2rem !important; }

/* Fix dark text-muted in all contexts */
.text-muted { color: var(--text-secondary) !important; }
.small.text-muted { color: var(--text-secondary) !important; }

/* Live badge sizing */
#live-count {
    font-weight: 700;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
}

/* Ensure no white backgrounds leak from Bootstrap defaults */
.table, .table td, .table th, .card, .card-body { background-color: transparent !important; }
.table { color: var(--text-primary); }

/* Subtle zebra striping for readability (on dark) */
.table-deltasol tbody tr:nth-child(odd):not(.opportunity-highlight) {
    background: rgba(255, 255, 255, 0.02);
}

/* Loading States */
.loading-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Status Indicators */
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Progress Bars */
.progress-deltasol {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-deltasol .progress-bar {
    background: var(--success-gradient);
    transition: width 0.3s ease;
}

/* Buttons */
.btn-deltasol {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-deltasol {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary-deltasol:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-secondary-deltasol {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: var(--border-glass);
}

.btn-secondary-deltasol:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Footer */
.footer-deltasol {
    background: var(--bg-secondary);
    border-top: var(--border-glass);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

/* Terminal Style Panel */
.terminal-panel {
    background: #0b0b11;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #121220 0%, #0e0e16 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-header .bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.terminal-header .bullet.red { background: #ff5f56; }
.terminal-header .bullet.yellow { background: #ffbd2e; }
.terminal-header .bullet.green { background: #27c93f; }

.terminal-header .title {
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.terminal-header .spacer { flex: 1; }
.terminal-header .status { color: #a78bfa; font-weight: 700; }

.terminal-output {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13.5px;
    line-height: 1.6;
    padding: 14px 16px 18px;
    color: #e2e8f0;
    max-height: 560px;
    overflow-y: auto;
    background: radial-gradient(1200px 400px at 20% 0%, rgba(139, 92, 246, 0.08), transparent 50%),
                radial-gradient(1000px 300px at 80% 0%, rgba(6, 182, 212, 0.08), transparent 50%),
                #0b0b11;
}

.terminal-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-line .sep { color: #4b5563; margin: 0 6px; }
.terminal-line .time { color: #64748b; margin-right: 8px; }
.terminal-line .pair { color: #c4b5fd; font-weight: 700; }
.terminal-line .dex { color: #a8a29e; }
.terminal-line .profit { color: #22c55e; font-weight: 800; }
.terminal-line .profit.med { color: #f59e0b; }
.terminal-line .profit.low { color: #94a3b8; }
.terminal-line .ttl { color: #94a3b8; }
.terminal-line.muted { color: #64748b; }

/* TTY minimal sections (for System Stats, etc.) */
.tty-section {
    background: #0d0d14;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
}
.tty-header {
    font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace;
    color: #a5b4fc;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
}
.tty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.tty-grid.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.tty-card {
    background: #0b0b11;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
}
.tty-label { color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.tty-value { font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 18px; color: var(--text-purple); font-weight: 700; }

/* Man page style for About */
.manpage { background:#0b0b11; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:18px 18px 8px; }
.man-header { font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; color:#94a3b8; display:flex; justify-content:space-between; margin-bottom:10px; }
.man-header .right { color:#64748b; }
.man-section { margin-bottom:14px; }
.man-title { font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; color:#a78bfa; margin-bottom:6px; }
.man-section pre { color:#e2e8f0; margin:0; font-family: inherit; background: transparent; }
.man-section p { color:#cbd5e1; margin:0; }
.tty-list { list-style:none; padding-left:0; margin:8px 0 0; }
.tty-list li { color:#e5e7eb; }
.man-tag { color:#22c55e; margin-right:6px; }

/* Apply howit look to About/Roadmap blocks */
.manpage, .tty-section { background:#0f1020; border:1px dashed rgba(139, 92, 246, 0.35); }
.man-title, .tty-header { color:#a78bfa; }
.man-section .tty-grid .tty-card, .tty-card { background: rgba(139, 92, 246, 0.06); border: 1px solid rgba(139,92,246,0.25); }
.tty-checklist .tty-item { background:#0b0b11; border:1px solid rgba(255,255,255,0.06); border-radius:10px; padding:10px; }
.tty-details { background:#0b0b11; border:1px solid rgba(255,255,255,0.06); border-radius:10px; padding:12px; margin:8px 0 14px; }

/* Roadmap checklist */
.tty-checklist { display:flex; flex-direction:column; gap:8px; background:#0b0b11; border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:12px; }
.tty-item { display:flex; gap:10px; align-items:center; color:#e5e7eb; font-family: ui-monospace, Menlo, Monaco, Consolas, "Courier New", monospace; }
.tty-item .box { width:22px; display:inline-block; color:#94a3b8; }
.tty-item .box.done { color:#22c55e; }
.tty-item .box.pending { color:#f59e0b; }
.tty-item .item-title { font-weight:700; }
.tty-item .item-note { color:#94a3b8; margin-left:auto; font-size:12px; }

/* Activity feed compact */
.activity-feed.compact {
    max-height: 200px;
    padding: 6px 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .connection-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

/* Utility Classes */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: var(--shadow-glow);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--primary-gradient) 1;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* Special Effects */
.glow-text {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.backdrop-blur {
    backdrop-filter: blur(var(--blur-amount));
}

/* Component Specific Styles */
.live-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--text-accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.live-indicator:hover {
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
    transform: translateY(-1px);
}

.live-indicator::before {
    display: none;
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 10px var(--text-accent);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.2);
        box-shadow: 0 0 20px var(--text-accent);
    }
}

/* Coming Soon Indicator */
.coming-soon-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #ffaa00;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
    transition: all 0.3s ease;
}

.coming-soon-indicator:hover {
    background: rgba(255, 170, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.4);
    transform: translateY(-1px);
}

.coming-soon-indicator i {
    margin-right: 0.5rem;
}

/* --- DeltaSol additions (terminal sections and footer) --- */
.activity-output { max-height: 240px; }

.footer-deltasol.minimal {
    padding: 1.5rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link:hover {
    color: var(--text-accent);
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-1px);
}

.footer-link i {
    font-size: 1rem;
}

/* --- How It Works (distinct styling) --- */
.howit-panel {
    background: #0f1020;
    border: 1px dashed rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 18px;
}
.howit-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}
.howit-subtitle {
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.howit-grid .howit-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 14px;
    height: 100%;
    position: relative;
}
.hero-banner { padding: 36px 12px 20px; text-align: center; }
.hero-title { color: var(--text-primary); font-size: 2.4rem; font-weight: 900; margin: 0 0 8px; }
.hero-subtitle { color: var(--text-secondary); margin: 0 auto; max-width: 920px; font-size: 1.05rem; }
.howit-card .icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--purple-gradient);
    color: #ffffff;
    font-weight: 900;
    margin-right: 8px;
}
.howit-bullets li { margin-bottom: 6px; }
.howit-arrow { font-size: 22px; color: var(--text-secondary); opacity: 0.8; display:none; }
.howit-note { color: var(--text-secondary); font-size: 0.95rem; }

@media (min-width: 1400px) {
  .howit-grid .col-lg-3 { position: relative; }
  .howit-grid .col-lg-3:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    opacity: 0.7;
  }
}