* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --accent: #00ff00;
    --accent-dim: rgba(0, 255, 0, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --border: #30363d;
    --success: #00ff00;
    --warning: #f59e0b;
    --error: #ff0040;
}

/* Matrix Theme */
.theme-matrix {
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    --accent: #00ff41;
    --accent-dim: rgba(0, 255, 65, 0.2);
    --text-primary: #00ff41;
    --text-secondary: #008f11;
    --border: #003300;
}

/* Cyber Theme */
.theme-cyber {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-tertiary: #1a1a3a;
    --accent: #00f0ff;
    --accent-dim: rgba(0, 240, 255, 0.2);
    --text-primary: #00f0ff;
    --text-secondary: #007a80;
    --border: #003344;
}

/* Red Theme */
.theme-red {
    --bg-primary: #0a0505;
    --bg-secondary: #1a0a0a;
    --bg-tertiary: #2d1111;
    --accent: #ff0040;
    --accent-dim: rgba(255, 0, 64, 0.2);
    --text-primary: #ff0040;
    --text-secondary: #800020;
    --border: #330011;
}

/* Gold Theme */
.theme-gold {
    --bg-primary: #0a0804;
    --bg-secondary: #1a1409;
    --bg-tertiary: #2d2309;
    --accent: #ffd700;
    --accent-dim: rgba(255, 215, 0, 0.2);
    --text-primary: #ffd700;
    --text-secondary: #806000;
    --border: #332a00;
}

/* White Theme */
.theme-white {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0e0e0;
    --accent: #333333;
    --accent-dim: rgba(51, 51, 51, 0.2);
    --text-primary: #333333;
    --text-secondary: #666666;
    --border: #cccccc;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================ */
/* APP CONTAINER */
/* ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* ============================================ */
/* SIDEBAR */
/* ============================================ */
.sidebar {
    width: 220px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}

.nav-item.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

.nav-icon {
    font-size: 18px;
}

.nav-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.token-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 6px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.version {
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 1px;
}

/* ============================================ */
/* MAIN CONTENT */
/* ============================================ */
.main-content {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================ */
/* TOPBAR */
/* ============================================ */
.topbar {
    height: 50px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.topbar-title {
    flex: 1;
    overflow: hidden;
}

.marquee-text {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-connected {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-badge {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.wallet-address {
    color: var(--text-secondary);
    font-size: 12px;
}

.disconnect-btn {
    background: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.disconnect-btn:hover {
    background: var(--error);
    color: white;
}

.connect-btn-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #9945FF, #14F195);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.3s ease;
}

.connect-btn-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.4);
}

/* Topbar Balance Boxes */
.topbar-balances {
    display: flex;
    gap: 10px;
    margin-left: 12px;
}

.topbar-balance-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

.topbar-balance-box.sol {
    border-color: #9945FF;
    background: rgba(153, 69, 255, 0.1);
}

.topbar-balance-box.usdc {
    border-color: #2775ca;
    background: rgba(39, 117, 202, 0.1);
}

.topbar-balance-box .balance-icon {
    font-size: 14px;
    width: 16px;
    height: 19px;
    margin-top: 8px;
}

.topbar-balance-box .balance-amount {
    font-weight: bold;
    color: var(--text-primary);
}

.topbar-balance-box.sol .balance-amount {
    color: #9945FF;
}

.topbar-balance-box.usdc .balance-amount {
    color: #2775ca;
}

.topbar-balance-box .balance-label {
    color: var(--text-secondary);
    font-size: 10px;
}

/* ============================================ */
/* PAGE CONTENT */
/* ============================================ */
.page-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* ============================================ */
/* MINER PAGE */
/* ============================================ */
.miner-page {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.miner-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-box.balance {
    border-color: #9945FF;
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.3);
}

.stat-box.balance.sol .stat-value {
    color: #9945FF;
}

.stat-box.balance.usdc {
    border-color: #2775ca;
    box-shadow: 0 0 15px rgba(39, 117, 202, 0.3);
}

.stat-box.balance.usdc .stat-value {
    color: #2775ca;
}

.stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-label .balance-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.stat-value {
    display: block;
    color: #9945FF;
    font-size: 20px;
    font-weight: bold;
}

/* Connect Wallet Warning */
.connect-wallet-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.warning-icon {
    font-size: 18px;
}

.warning-text {
    color: #f59e0b;
    font-size: 14px;
}

/* Found Popup */
.found-popup {
    background: #9945FF;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    animation: pulse 0.5s ease-out;
    font-weight: bold;
    font-size: 18px;
}

.found-popup.usdc {
    background: #2775ca;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-icon {
    margin-right: 8px;
}

/* Hack Button */
.hack-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 18px;
    font-weight: bold;
    font-family: inherit;
    background: linear-gradient(135deg, #9945FF, #14F195);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.hack-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.4);
}

.hack-btn.usdc {
    background: linear-gradient(135deg, #2775ca, #1a5aa3);
    color: white;
}

.hack-btn.usdc:hover:not(:disabled) {
    box-shadow: 0 8px 25px rgba(39, 117, 202, 0.4);
}

.hack-btn.disabled {
    background: #333333;
    cursor: not-allowed;
    opacity: 0.7;
}

.hack-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mining Active - Grey button */
.hack-btn.mining-active {
    background: #333333 !important;
    color: #888888 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    box-shadow: none;
    animation: none;
}

.hack-btn.mining-active:hover {
    transform: none;
    box-shadow: none;
}

.hack-btn.mining-active .btn-icon {
    color: #888888;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.btn-icon {
    font-size: 24px;
}

/* Terminal Window */
.terminal-window {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.terminal-header {
    background: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    color: #666;
    font-size: 12px;
}

.terminal-body {
    padding: 16px;
    min-height: 450px;
    max-height: 55vh;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: 'Courier New', monospace;
    width: 100%;
    box-sizing: border-box;
}

.cmd-line {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cmd-line .prompt {
    color: #9945FF;
    font-weight: bold;
}

.cmd-line .cmd {
    color: #ffffff;
}

.cmd-line .current {
    color: #ffff00;
    animation: blink 0.5s infinite;
}

.cmd-line .cursor {
    color: #9945FF;
    animation: blink 0.5s infinite;
}

.output-line {
    margin-bottom: 8px;
}

.output-line .loading {
    color: #9945FF;
}

.seedphrase-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 12px;
    background: rgba(153, 69, 255, 0.05);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 4px;
}

.seedphrase-box.usdc {
    background: rgba(39, 117, 202, 0.05);
    border-color: rgba(39, 117, 202, 0.2);
}

.seed-word {
    color: #9945FF;
    font-size: 13px;
    padding: 4px 8px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 4px;
}

.seedphrase-box.usdc .seed-word {
    color: #2775ca;
    background: rgba(39, 117, 202, 0.1);
}

/* Seedphrase List - Numbered rows */
.seedphrase-list {
    margin: 12px 0;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

/* Hide scrollbar but keep functionality */
.seedphrase-list::-webkit-scrollbar {
    display: none;
}
.seedphrase-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.seedphrase-list::-webkit-scrollbar {
    width: 6px;
}

.seedphrase-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.seedphrase-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.seedphrase-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.seedphrase-row {
    display: block;
    padding: 4px 0;
    margin-bottom: 2px;
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    white-space: nowrap;
}

.seedphrase-row.current {
    background: rgba(153, 69, 255, 0.08);
    border-left-color: #9945FF;
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        background: rgba(153, 69, 255, 0.05);
    }
    to {
        background: rgba(153, 69, 255, 0.12);
    }
}

.seed-number {
    color: #9945FF;
    font-weight: bold;
    min-width: 35px;
    font-size: 12px;
    opacity: 0.7;
    display: inline-block;
}

.seed-words-line1,
.seed-words-line2 {
    color: #9945FF;
    font-size: 13px;
    word-spacing: 4px;
    line-height: 1.6;
    display: block;
    margin-left: 40px;
}

.seed-words-line2 {
    margin-top: 2px;
}

/* USDC version */
.terminal-body.usdc .seedphrase-row {
    background: rgba(39, 117, 202, 0.03);
    border-left-color: #1a3d5c;
}

.terminal-body.usdc .seed-number,
.terminal-body.usdc .seed-words-line1,
.terminal-body.usdc .seed-words-line2 {
    color: #2775ca;
}

.terminal-body.usdc .seedphrase-row.current {
    background: rgba(39, 117, 202, 0.08);
    border-left-color: #2775ca;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================ */
/* FEE SLIDER STYLES */
/* ============================================ */
.fee-slider-container {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
}

.fee-slider-container label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.fee-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fee-label {
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
}

.fee-label.slow {
    color: #f59e0b;
}

.fee-label.fast {
    color: #00ff00;
}

.fee-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: #888888;
    border-radius: 1px;
    outline: none;
    cursor: pointer;
}

.fee-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    transition: transform 0.2s ease;
}

.fee-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.fee-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.fee-value-display {
    text-align: center;
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.fee-amount {
    color: #00ff00;
    font-weight: bold;
    font-size: 16px;
}

/* ============================================ */
/* WITHDRAW PAGE */
/* ============================================ */
.withdraw-page {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    padding: 0 8px;
}

.withdraw-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.withdraw-header {
    text-align: center;
    margin-bottom: 30px;
}

.withdraw-header h2 {
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.withdraw-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.balances-display {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.balance-item {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.balance-item.sol {
    border-color: #9945FF;
}

.balance-item.usdc {
    border-color: #2775ca;
}

.balance-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.balance-icon.sol,
.balance-icon.usdc {
    width: 24px;
    height: 24px;
}

.balance-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 4px;
}

.balance-value {
    display: block;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: bold;
}

.balance-item.sol .balance-value {
    color: #9945FF;
}

.balance-item.usdc .balance-value {
    color: #2775ca;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-selector {
    display: flex;
    gap: 12px;
}

.token-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
}

/* Hide number input arrows/spinners */
.input-group input[type="number"]::-webkit-outer-spin-button,
.input-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group input[type="number"] {
    -moz-appearance: textfield;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.input-group .max-btn {
    position: absolute;
    right: 12px;
    top: 38px;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.address-input {
    font-family: monospace;
    font-size: 13px !important;
}

/* Recipient Dropdown Styles */
.recipient-dropdown-container {
    position: relative;
}

.recipient-input-wrapper {
    position: relative;
}

.recipient-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    min-height: 50px;
    transition: all 0.3s ease;
}

.recipient-display:hover {
    border-color: var(--accent);
}

.recipient-display .selected-address {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
    flex: 1;
    margin-right: 10px;
}

.recipient-display .placeholder-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.recipient-display .dropdown-arrow {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.custom-address-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: var(--text-primary) !important;
    font-family: monospace !important;
    font-size: 13px !important;
    padding: 0 !important;
    outline: none !important;
}

.custom-address-input::placeholder {
    color: var(--text-secondary);
}

.recipient-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-top: 4px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item.active {
    background: var(--accent-dim);
}

.dropdown-item-icon {
    font-size: 18px;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dropdown-item-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.dropdown-item-address {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
}

.dropdown-item-sublabel {
    font-size: 12px;
    color: var(--text-secondary);
}

.withdraw-btn {
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-dim);
}

.withdraw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.withdraw-fee-text {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    margin-top: 8px;
}

.status-message {
    padding: 12px;
    background: rgba(255, 0, 64, 0.1);
    border: 1px solid rgba(255, 0, 64, 0.3);
    border-radius: 6px;
    color: #ff0040;
    font-size: 13px;
    text-align: center;
}

.status-message.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.status-message.error {
    background: rgba(255, 0, 64, 0.1);
    border-color: rgba(255, 0, 64, 0.3);
    color: #ff0040;
}

.warning-box {
    margin-top: 20px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    color: #f59e0b;
    font-size: 12px;
    text-align: center;
}

.withdraw-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================ */
/* SETTINGS PAGE */
/* ============================================ */
.settings-page {
    max-width: 600px;
    margin: 0 auto;
}

.settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.settings-card h2 {
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.settings-card > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.theme-option {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.theme-option:hover {
    border-color: var(--text-secondary);
}

.theme-option.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-dim);
}

.theme-preview {
    font-size: 20px;
    font-weight: bold;
}

.theme-name {
    font-size: 11px;
    color: var(--text-secondary);
}

.theme-option.active .theme-name {
    color: var(--accent);
}

.check {
    color: var(--accent);
    font-size: 16px;
}

.settings-info {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.settings-info h3 {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .online {
    color: var(--accent);
}

/* ============================================ */
/* HAMBURGER MENU */
/* ============================================ */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 12px;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn:hover .hamburger-line {
    background: var(--text-primary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: -220px;
        transition: left 0.3s ease;
        z-index: 100;
        height: 100%;
    }
    
    .app-container.sidebar-open .sidebar {
        left: 0;
    }
    
    .app-container.sidebar-open .sidebar-overlay {
        display: block;
    }
    
    .logo-text, .nav-label, .sidebar-footer {
        display: block;
    }
    
    .sidebar-nav {
        padding-top: 60px;
    }
    
    .nav-item {
        padding: 16px 20px;
        min-height: 50px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 0 12px;
    }
    
    .topbar-title {
        display: none;
    }
    
    .topbar-right {
        gap: 8px;
    }
    
    .connect-btn-top {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .topbar-balances {
        display: none;
    }
    
    .miner-stats {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .stat-box {
        min-width: 100%;
        padding: 12px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-content {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
    }
    
    .miner-page {
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .connect-wallet-warning {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .found-popup {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .hack-btn {
        padding: 14px 20px;
        font-size: 14px;
        margin-bottom: 16px;
        min-height: 50px;
        flex-shrink: 0;
    }
    
    .btn-icon {
        font-size: 18px;
    }
    
    .terminal-window {
        flex: 1;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        margin-top: 0;
        max-width: 100vw;
        overflow-x: auto;
        width: 100%;
    }
    
    .terminal-header {
        padding: 8px 12px;
        flex-shrink: 0;
    }
    
    .terminal-body {
        flex: 1;
        padding: 8px;
        overflow-y: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
    }
    
    .seed-words-line1,
    .seed-words-line2 {
        font-size: 8px;
        word-spacing: 1px;
        margin-left: 16px;
        max-width: 85vw;
        overflow-x: visible;
        white-space: normal;
        text-overflow: clip;
        word-break: break-all;
        display: block;
        line-height: 1.4;
    }
    
    .seedphrase-row {
        white-space: normal;
        max-width: 90vw;
        overflow-x: visible;
        box-sizing: border-box;
        word-break: break-all;
    }
    
    .seed-number {
        min-width: 16px;
        font-size: 8px;
    }
    
    .cmd-line {
        margin-bottom: 4px;
    }
    
    .output-line {
        margin-bottom: 4px;
    }
    
    .withdraw-card {
        padding: 20px;
    }
    
    .balances-display {
        flex-direction: column;
    }
    
    .token-selector {
        flex-direction: column;
    }
    
    .input-group input {
        font-size: 14px;
        padding: 12px;
    }
    
    .withdraw-btn {
        padding: 14px;
        font-size: 14px;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .leaderboard-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table-header,
    .table-row {
        font-size: 11px;
    }
    
    .col-wallet {
        display: none;
    }
    
    button,
    .nav-item,
    .tab-btn,
    .token-btn,
    .theme-option {
        min-height: 44px;
        min-width: 44px;
    }
    
    input,
    select {
        min-height: 44px;
    }
}

@media (max-width: 400px) {
    .topbar {
        padding: 0 8px;
    }
    
    .hamburger-btn {
        width: 24px;
        height: 20px;
    }
    
    .page-content {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .found-popup {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ============================================ */
/* WITHDRAW PAGE MOBILE ENHANCED */
/* ============================================ */
@media (max-width: 768px) {
    .withdraw-page {
        padding: 0;
        display: flex;
        flex-direction: column;
        min-height: auto;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .withdraw-card {
        padding: 16px;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        min-height: auto;
        overflow-y: auto;
    }
    
    .withdraw-header {
        margin-bottom: 12px;
        flex-shrink: 0;
    }
    
    .withdraw-header h2 {
        font-size: 16px;
    }
    
    .withdraw-header p {
        font-size: 10px;
    }
    
    .balances-display {
        gap: 6px;
        margin-bottom: 12px;
        flex-shrink: 0;
    }
    
    .balance-item {
        padding: 8px;
    }
    
    .balance-item .balance-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 2px;
    }
    
    .balance-item .balance-value {
        font-size: 13px;
    }
    
    .balance-item .balance-label {
        font-size: 9px;
    }
    
    .withdraw-form {
        gap: 8px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .token-selector {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .token-btn {
        padding: 8px;
        font-size: 12px;
    }
    
    .token-icon {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
    
    .input-group {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .input-group label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .input-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .input-group .max-btn {
        top: 30px;
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .recipient-display {
        padding: 8px;
        min-height: 36px;
        flex-shrink: 0;
    }
    
    .recipient-display .placeholder-text,
    .recipient-display .selected-address {
        font-size: 10px;
    }
    
    .recipient-dropdown {
        max-height: 120px;
        overflow-y: auto;
    }
    
    .dropdown-item {
        padding: 8px;
    }
    
    .dropdown-item-label {
        font-size: 11px;
    }
    
    .dropdown-item-address {
        font-size: 9px;
    }
    
    .fee-slider-container {
        padding: 8px;
        flex-shrink: 0;
    }
    
    .fee-slider-container label {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .fee-slider-wrapper {
        gap: 4px;
    }
    
    .fee-label {
        font-size: 8px;
        min-width: 30px;
    }
    
    .fee-value-display {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .fee-amount {
        font-size: 11px;
    }
    
    .withdraw-btn {
        padding: 10px;
        font-size: 12px;
        margin-top: 6px;
        flex-shrink: 0;
    }
    
    .status-message {
        padding: 6px;
        font-size: 10px;
        margin-top: 6px;
        flex-shrink: 0;
    }
    
    .withdraw-tabs {
        gap: 4px;
        padding: 4px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .withdraw-tab {
        padding: 8px 4px;
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .withdraw-card {
        padding: 12px;
    }
    
    .balances-display {
        flex-direction: column;
        gap: 8px;
    }
    
    .balance-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .balance-item .balance-icon {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .balance-item .balance-label {
        margin-bottom: 0;
        margin-right: auto;
    }
    
    .token-selector {
        flex-direction: row;
    }
    
    .token-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* ============================================ */
/* WITHDRAW TABS */
/* ============================================ */
.withdraw-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.withdraw-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.withdraw-tab.active {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: bold;
}

/* Withdraw Tabs Mobile */
@media (max-width: 768px) {
    .withdraw-tabs {
        gap: 6px;
        padding: 4px;
        margin-bottom: 16px;
    }
    
    .withdraw-tab {
        padding: 10px 8px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .withdraw-tabs {
        gap: 4px;
        padding: 4px;
        margin-bottom: 12px;
    }
    
    .withdraw-tab {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* ============================================ */
/* HISTORY PAGE */
/* ============================================ */
.history-page {
    max-width: 800px;
    margin: 0 auto;
}

.history-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.summary-card {
    flex: 1;
    min-width: 150px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.summary-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.summary-value {
    display: block;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: bold;
}

.summary-value.sol {
    color: #9945FF;
}

.summary-value.usdc {
    color: #2775ca;
}

.history-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.filter-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.empty-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-subtext {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
}

.history-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.history-table {
    width: 100%;
}

.history-table-header {
    display: flex;
    background: var(--bg-tertiary);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.history-table-body {
    max-height: 500px;
    overflow-y: auto;
}

/* Hide scrollbar but keep functionality */
.history-table-body::-webkit-scrollbar {
    width: 6px;
}

.history-table-body::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.history-table-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.history-row {
    display: flex;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.history-row:last-child {
    border-bottom: none;
}

.history-row:hover {
    background: var(--bg-tertiary);
}

.col-date {
    flex: 2;
    min-width: 120px;
}

.col-amount {
    flex: 1.5;
    min-width: 100px;
}

.col-token {
    flex: 1;
    min-width: 80px;
}

.col-recipient {
    flex: 2;
    min-width: 140px;
}

.col-status {
    flex: 1;
    min-width: 100px;
    text-align: right;
}

.date-text {
    color: var(--text-secondary);
    font-size: 12px;
}

.amount-value {
    font-weight: bold;
    font-size: 14px;
}

.amount-value.SOL {
    color: #9945FF;
}

.amount-value.USDC {
    color: #2775ca;
}

.token-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.token-badge.sol {
    background: rgba(153, 69, 255, 0.15);
    color: #9945FF;
}

.token-badge.usdc {
    background: rgba(39, 117, 202, 0.15);
    color: #2775ca;
}

.token-badge-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.recipient-address {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.status-badge.completed {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-badge.failed {
    background: rgba(255, 0, 64, 0.15);
    color: #ff0040;
}

/* History page responsive */
@media (max-width: 768px) {
    .history-page {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }
    
    .history-summary {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .summary-card {
        flex: 1;
        min-width: 80px;
        padding: 10px 8px;
    }
    
    .summary-label {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .summary-value {
        font-size: 14px;
    }
    
    .history-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .history-table-container {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    
    .history-table {
        min-width: 100%;
        width: 100%;
    }
    
    .history-table-header {
        display: flex;
        padding: 10px 12px;
        font-size: 10px;
    }
    
    .history-row {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
    }
    
    .col-date {
        flex: 1.5;
        min-width: 60px;
    }
    
    .col-amount {
        flex: 1.2;
        min-width: 50px;
    }
    
    .col-token {
        flex: 0.8;
        min-width: 40px;
    }
    
    .col-recipient {
        flex: 1.5;
        min-width: 60px;
    }
    
    .col-status {
        flex: 0.8;
        min-width: 45px;
    }
    
    .date-text {
        font-size: 10px;
    }
    
    .amount-value {
        font-size: 11px;
    }
    
    .token-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .recipient-address {
        font-size: 9px;
    }
    
    .status-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .history-table-body {
        max-height: 300px;
    }
}

/* ============================================
/* HOMEPAGE STYLES
/* ============================================ */
.home-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.hero-version {
    color: var(--accent);
    font-size: 24px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-badge-hero {
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
}

.status-badge-hero.online {
    color: var(--accent);
}

.status-text {
    color: var(--text-secondary);
    font-size: 12px;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: -50px;
    left: -50px;
    animation: pulse 4s ease-in-out infinite;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: #9945FF;
    bottom: -30px;
    right: -30px;
    animation: pulse 4s ease-in-out infinite 1s;
}

.orb-3 {
    width: 100px;
    height: 100px;
    background: #14F195;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite 2s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon.sol {
    background: rgba(153, 69, 255, 0.15);
}

.stat-card-icon.sol img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.stat-card-icon.usdc {
    background: rgba(39, 117, 202, 0.15);
}

.stat-card-icon.usdc img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.stat-card-icon.withdraw {
    background: rgba(0, 255, 0, 0.15);
}

.stat-card-icon.transactions {
    background: rgba(245, 158, 11, 0.15);
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-card-value.sol {
    color: #9945FF;
}

.stat-card-value.usdc {
    color: #2775ca;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-btn.primary {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, var(--bg-secondary) 100%);
}

.action-btn.primary:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
}

.action-btn.secondary {
    border-color: #9945FF;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.1) 0%, var(--bg-secondary) 100%);
}

.action-btn.secondary:hover {
    border-color: #9945FF;
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.2);
}

.action-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    flex-shrink: 0;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.action-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.action-arrow {
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.action-btn:hover .action-arrow {
    transform: translateX(5px);
}

/* Help Section */
.help-section {
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.step-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Copy URL Button */
.copy-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent), #14F195);
    border: none;
    border-radius: 6px;
    color: var(--bg-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.copy-url-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.copy-url-btn:active {
    transform: translateY(0);
}

.copy-icon {
    font-size: 14px;
}

.step-link {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.step-link:hover {
    color: var(--text-primary);
}

/* Troubleshooting Box */
.troubleshooting-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.troubleshooting-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.troubleshooting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.troubleshooting-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.troubleshooting-item .issue {
    color: var(--accent);
    font-weight: bold;
    font-size: 13px;
    min-width: 150px;
}

.troubleshooting-item .solution {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* About Section */
.about-section {
    margin-bottom: 40px;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.about-card p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.disclaimer-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.disclaimer-box h4 {
    color: #f59e0b;
    font-size: 14px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.disclaimer-box p {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ============================================
/* TOAST NOTIFICATIONS
/* ============================================
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    max-width: 350px;
    word-wrap: break-word;
}

.toast.success {
    background: linear-gradient(135deg, #00c853, #00e676);
    border: 1px solid #00e676;
}

.toast.error {
    background: linear-gradient(135deg, #ff1744, #ff5252);
    border: 1px solid #ff5252;
}

.toast.warning {
    background: linear-gradient(135deg, #ff9100, #ffab40);
    border: 1px solid #ffab40;
}

.toast.info {
    background: linear-gradient(135deg, #2979ff, #448aff);
    border: 1px solid #448aff;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

/* Mobile toast positioning */
@media (max-width: 768px) {
    .toast-container {
        bottom: 80px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
/* HOMEPAGE RESPONSIVE STYLES
/* ============================================ */
@media (max-width: 1024px) {
    .home-page {
        max-width: 100%;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fix for steps being cut off on desktop */
@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 20px;
    }
    
    .hero-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-version {
        font-size: 18px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-card-icon.sol img,
    .stat-card-icon.usdc img {
        width: 22px;
        height: 22px;
    }
    
    .stat-card-value {
        font-size: 16px;
    }
    
    .stat-card-label {
        font-size: 10px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .action-btn {
        padding: 16px;
        gap: 12px;
    }
    
    .action-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .action-title {
        font-size: 14px;
    }
    
    .action-desc {
        font-size: 11px;
    }
    
    .action-arrow {
        font-size: 16px;
    }
    
    .section-header {
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .step-title {
        font-size: 14px;
    }
    
    .step-desc {
        font-size: 11px;
    }
    
    .troubleshooting-box {
        padding: 16px;
    }
    
    .troubleshooting-title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .troubleshooting-item {
        flex-direction: column;
        gap: 6px;
    }
    
    .troubleshooting-item .issue {
        min-width: auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .about-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .about-card h3 {
        font-size: 13px;
    }
    
    .about-card p {
        font-size: 10px;
    }
    
    .disclaimer-box {
        padding: 16px;
    }
    
    .disclaimer-box h4 {
        font-size: 12px;
    }
    
    .disclaimer-box p {
        font-size: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        padding: 16px;
        gap: 12px;
    }
    
    .feature-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .feature-content h4 {
        font-size: 13px;
    }
    
    .feature-content p {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .hero-section {
        padding: 24px 16px;
    }
    
    .hero-logo-img {
        width: 60px;
        height: 60px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-status {
        padding: 6px 12px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-card-value {
        font-size: 14px;
    }
    
    .action-btn {
        padding: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* ============================================ */
/* MOBILE SCROLL FIX - Enable scrolling on mobile */
/* ============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .app-container {
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }
    
    .main-content {
        min-height: calc(100vh - 50px);
        height: auto;
        overflow: visible;
    }
    
    .page-content {
        min-height: calc(100vh - 50px);
        height: auto;
        overflow: visible;
        padding-bottom: 80px;
    }
    
    /* Enable scrolling for all page containers */
    .miner-page,
    .withdraw-page,
    .settings-page,
    .history-page,
    .home-page {
        height: auto;
        min-height: calc(100vh - 130px);
        overflow: visible;
    }
    
    /* Enable scrolling for terminal and seedphrase list */
    .terminal-window {
        overflow: visible;
        min-height: 300px;
    }
    
    .terminal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
        height: auto;
    }
    
     .seedphrase-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
}


    
    /* Enable scrolling for withdraw card */
    .withdraw-card {
        overflow: visible;
        height: auto;
    }
    
    /* Enable scrolling for history table */
    .history-table-container {
        overflow: visible;
    }
    
    .history-table-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: none;
    }
    
    /* Ensure scrollbar is visible on mobile */
    * {
        scrollbar-width: auto;
    }
    
    *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    *::-webkit-scrollbar-track {
        background: var(--bg-tertiary);
    }
    
    *::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }
    
    *::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
    }
}
