:root {
    --bg: #05080c;
    --panel: #0b0f16;
    --neon: #00ffa9;
    --neon-soft: #00ffa980;
    --text: #d8fff2;
    --accent: #00d4ff;
    --btn: linear-gradient(135deg, #00e0ff, #007cff);
    --btn-hover: linear-gradient(135deg, #00ffa9, #00e0ff);
    --glow: #00e0ff66;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(1400px 700px at 50% 35%, #061218 0%, #010509 65%, #000 100%);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    direction: ltr;
}

.browser-chrome {
    width: min(1200px, 95vw);
    border-radius: 14px;
    background: rgba(10, 14, 20, 0.95);
    box-shadow: 0 40px 100px #000a, 0 0 0 1px #042031 inset;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 70px;
    right: 15px;
    z-index: 1001;
    background: rgba(0, 255, 169, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.5);
    align-items: center;
    justify-content: center;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--panel);
    border-left: 1px solid #12303e;
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #12303e;
    background: rgba(0, 30, 40, 0.5);
}

.sidebar-header h4 {
    margin: 0;
    font-family: 'Orbitron';
    color: #00ffcc;
    text-shadow: 0 0 8px #00ffcc;
}

.close-sidebar {
    font-size: 30px;
    color: #00ffa9;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 255, 169, 0.1);
}

.close-sidebar:hover {
    background: rgba(0, 255, 169, 0.2);
}

.sidebar-content {
    padding: 20px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #aaffee;
    background: rgba(0, 30, 40, 0.25);
    border: 1px solid rgba(0, 255, 200, 0.08);
    transition: all .25s ease;
}

.mobile-menu-item:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffee;
    background: rgba(0, 40, 60, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 180, 0.25);
    transform: translateX(-4px);
}

.lock-icon {
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.mobile-overlay.active {
    display: block;
}

.app {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    gap: 18px;
    padding: 22px;
    background: rgba(8, 12, 18, 0.9);
}

.side {
    background: var(--panel);
    border: 1px solid #12303e;
    border-radius: 14px;
    padding: 18px;
    box-shadow: inset 0 0 16px #031f23;
    position: relative;
}

.side h4 {
    margin-bottom: 20px;
    font-family: 'Orbitron';
    font-size: 20px;
    letter-spacing: 1px;
    color: #00ffcc;
    text-align: center;
    text-shadow: 0 0 8px #00ffcc, 0 0 25px #00ffaa88, 0 0 45px #00ffcc55;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15.5px;
    color: #aaffee;
    background: rgba(0, 30, 40, 0.25);
    border: 1px solid rgba(0, 255, 200, 0.08);
    transition: all .25s ease;
}

.menu-item:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffee, 0 0 25px #00ffaa;
    background: rgba(0, 40, 60, 0.6);
    box-shadow: 0 0 25px rgba(0, 255, 180, 0.25), inset 0 0 12px rgba(0, 255, 200, 0.15);
    transform: translateX(-4px);
}

/* Boost Status Container */
.boost-status-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 169, 0.2);
}

.boost-status-active {
    background: linear-gradient(135deg, rgba(0, 255, 169, 0.15), rgba(0, 224, 255, 0.1));
    border: 1px solid rgba(0, 255, 169, 0.4);
    padding: 15px;
    border-radius: 12px;
}

.boost-status-inactive {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    color: #b8fff0;
}

.boost-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.boost-icon {
    font-size: 18px;
}

.boost-status-header span:last-child {
    font-family: 'Orbitron';
    font-size: 14px;
    color: #00ffa9;
    font-weight: 600;
}

.boost-status-time {
    font-size: 12px;
    color: #00e0ff;
    margin-bottom: 5px;
}

.boost-status-rate {
    font-size: 11px;
    color: #b8fff0;
}

#btc-price-box {
    background: linear-gradient(145deg, rgba(0, 255, 140, 0.20), rgba(0, 150, 90, 0.10));
    border-radius: 16px;
    padding: 10px 5px;
    margin: 25px 5px;
    text-align: center;
    font-family: 'Orbitron';
    box-shadow: 0 0 25px rgba(0, 255, 120, 0.4), inset 0 0 20px rgba(0, 255, 170, 0.25);
}

#receiveBtn {
    background: var(--btn);
    border: none;
    color: #fff;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 0 10px var(--glow);
}

#receiveBtn:hover {
    background: var(--btn-hover);
}

.wallet-box {
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #00ffa940;
    border-radius: 10px;
    background: rgba(0, 40, 50, 0.25);
    font-family: 'Orbitron';
    font-size: 14px;
    color: #00ffa9;
    text-align: center;
}

.wallet-usd-value {
    font-size: 12px;
    color: #00d4ff;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
}

.usd-value-box {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #00d4ff40;
    border-radius: 10px;
    background: rgba(0, 40, 80, 0.25);
    font-family: 'Orbitron';
    font-size: 14px;
    color: #00d4ff;
    text-align: center;
}

.center {
    background: var(--panel);
    border: 1px solid #12202e;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 600px;
}

.rgb-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, rgba(0, 60, 255, 0.5), rgba(255, 0, 0, 0.5), rgba(0, 60, 255, 0.5));
    filter: blur(70px) brightness(1.6);
    animation: rgbGlow 6s linear infinite;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.rgb-glow.off {
    opacity: 0;
}

@keyframes rgbGlow {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Neon Toggle Button Styles */
.neon-toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 30, 40, 0.3);
    border-radius: 25px;
    border: 1px solid rgba(0, 255, 200, 0.2);
}

.neon-toggle-btn {
    position: relative;
    width: 60px;
    height: 30px;
    background: #0a1920;
    border: 2px solid #00ffa9;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 169, 0.3);
}

.neon-toggle-btn.on {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    border-color: #00e0ff;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 169, 0.5);
}

.neon-toggle-btn.on .toggle-slider {
    transform: translateX(-30px);
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.toggle-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #00ffa9;
    transition: all 0.3s ease;
    pointer-events: none;
}

.neon-toggle-btn.on .toggle-text {
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.toggle-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    color: #00ffa9;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.5);
}

.turbine-wrap {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #021015 0%, #000 70%);
    box-shadow: 0 0 50px #00ffa914, inset 0 0 40px #001;
    position: relative;
    z-index: 1;
    perspective: 800px;
    margin: 20px 0;
}

.ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0a2a2f, inset 0 0 25px #032, 0 0 30px var(--neon-soft);
}

.blades {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 255, 169, .12) 0deg, rgba(0, 255, 169, .85) 30deg, rgba(0, 255, 169, .12) 60deg, rgba(0, 255, 169, .85) 90deg, rgba(0, 255, 169, .12) 120deg, rgba(0, 255, 169, .85) 150deg, rgba(0, 255, 169, .12) 180deg, rgba(0, 255, 169, .85) 210deg, rgba(0, 255, 169, .12) 240deg, rgba(0, 255, 169, .85) 270deg, rgba(0, 255, 169, .12) 300deg, rgba(0, 255, 169, .85) 330deg, rgba(0, 255, 169, .12) 360deg);
    filter: blur(1.2px);
    animation: spin 2.4s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.core {
    position: absolute;
    inset: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #000a 0%, #0a1f1a 70%);
    box-shadow: inset 0 0 18px #002, 0 0 18px var(--neon-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform .8s;
    cursor: pointer;
}

.core.flipped {
    transform: rotateY(180deg);
}

.btc {
    font-size: 64px;
    font-weight: 700;
    color: #ffcc00;
    text-shadow: 0 0 15px #ffcc00, 0 0 40px #ffcc0040;
    backface-visibility: hidden;
}

.slider-bar {
    position: relative;
    width: 70%;
    height: 10px;
    border-radius: 6px;
    background: #0a1218;
    margin-top: 25px;
    overflow: hidden;
    box-shadow: inset 0 0 6px #003, 0 0 20px #001a;
}

.slider-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    animation: slideGlow 2.5s linear infinite;
    filter: blur(2px) brightness(1.8);
}

@keyframes slideGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.right {
    background: var(--panel);
    border: 1px solid #12303f;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-title {
    color: #c5fff1;
    font-weight: 600;
}

.btc-coin {
    text-align: center;
    font-size: 56px;
    color: #ffcc00;
    text-shadow: 0 0 6px #ffaa00, 0 0 18px #ffcc0080;
}

.balance {
    font-size: 17px;
    color: #9fe3ce;
    display: flex;
    justify-content: space-between;
}

.actions {
    display: flex;
    gap: 12px;
}

.btn {
    background: var(--btn);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 14px var(--glow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--glow);
}

#depositBtn {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
}

#depositBtn:hover {
    background: linear-gradient(135deg, #00e0ff, #00ffa9);
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.6);
}

#boostBtn {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
}

#boostBtn:hover {
    background: linear-gradient(135deg, #00e0ff, #00ffa9);
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.6);
}

#withdrawBtn {
    background: var(--btn);
}

#withdrawBtn:hover {
    background: var(--btn-hover);
    box-shadow: 0 0 20px var(--glow);
}

.power-card {
    border: 1px solid #15424f;
    background: #0e151c;
    border-radius: 12px;
    padding: 14px;
    text-align: right;
    color: #c5fff1;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.25s;
}

.power-card:hover {
    background: #10202a;
    box-shadow: 0 0 15px #00e0ff80, inset 0 0 10px #00ffa920;
    transform: translateY(-3px);
}

.power-card h4 {
    margin: 4px 0;
    font-size: 20px;
    color: #00e0ff;
}

.power-card p {
    margin: 0;
    color: #9bd8c5;
    font-size: 14px;
}

.power-card img {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 6px #ffcc00cc);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000a;
    z-index: 999;
    padding: 20px;
}

.modal .box {
    width: 400px;
    max-width: 90vw;
    background: rgba(10, 18, 24, 0.96);
    border: 1px solid #00e0ff66;
    border-radius: 16px;
    padding: 25px;
    color: #d8fff2;
    box-shadow: 0 20px 60px #000a, inset 0 0 30px #003;
    text-align: center;
    position: relative;
}

/* Deposit Modal Styles */
.deposit-modal-box {
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 450px;
    max-width: 90vw;
}

.deposit-modal-box::-webkit-scrollbar {
    width: 8px;
}

.deposit-modal-box::-webkit-scrollbar-track {
    background: rgba(0, 255, 169, 0.1);
    border-radius: 4px;
}

.deposit-modal-box::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    border-radius: 4px;
}

.deposit-modal-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00e0ff, #00ffa9);
}

/* Boost Modal Scrollable Styles */
#boostModal .modal-content {
    width: 450px;
    max-width: 90vw;
    max-height: 80vh;
    background: rgba(10, 18, 24, 0.96);
    border: 1px solid #00ffa966;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 255, 169, 0.3), inset 0 0 30px rgba(0, 255, 169, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#boostModal .modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

#boostModal .boost-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* استایل اسکرول بار برای پکیج‌ها */
#boostModal .boost-packages::-webkit-scrollbar {
    width: 6px;
}

#boostModal .boost-packages::-webkit-scrollbar-track {
    background: rgba(0, 255, 169, 0.1);
    border-radius: 3px;
}

#boostModal .boost-packages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    border-radius: 3px;
}

#boostModal .boost-packages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00e0ff, #00ffa9);
}

/* Hide boost status from sidebar - Move to actions area */
.side .boost-status-container {
    display: none !important;
}

.modal h3 {
    font-family: 'Orbitron';
    color: #00ffa9;
    text-shadow: 0 0 8px #00ffa9;
    font-size: 22px;
    margin-bottom: 18px;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.support-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 169, 0.1);
    border: 1px solid rgba(0, 255, 169, 0.4);
    transition: .3s;
    cursor: pointer;
    box-shadow: 0 0 15px #00ffc320;
}

.support-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px #00ffa978, inset 0 0 10px #00ffa920;
}

.support-icon img {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 6px #00ffa9);
}

.input-field {
    width: 100%;
    background: #081018;
    border: 1px solid #15555f;
    border-radius: 8px;
    color: #ccfff7;
    padding: 10px 12px;
    font-size: 15px;
    margin-bottom: 14px;
    text-align: left;
}

.login-btn {
    background: var(--btn);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

a.link {
    color: #00ffa9;
    cursor: pointer;
    text-decoration: none;
}

a.link:hover {
    text-decoration: underline;
}

select {
    width: 100%;
    background: #081018;
    border: 1px solid #15555f;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    color: #ccfff7;
    text-align: left;
}

#connectedAddress {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-family: 'Orbitron';
    color: #00ffa9;
    text-shadow: 0 0 8px #00ffa9;
    background: rgba(0, 255, 169, 0.08);
    padding: 6px 10px;
    border: 1px solid rgba(0, 255, 169, 0.3);
    border-radius: 8px;
    display: none;
    z-index: 10;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Withdraw Modal Updates */
.btc-price-display {
    background: rgba(0, 255, 169, 0.1);
    border: 1px solid rgba(0, 255, 169, 0.3);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.price-label {
    font-size: 14px;
    color: #b8fff0;
    margin-bottom: 5px;
}

.price-value {
    font-family: 'Orbitron';
    font-size: 18px;
    font-weight: bold;
    color: #00ffa9;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.5);
}

.conversion-result {
    background: rgba(0, 255, 169, 0.05);
    border: 1px solid rgba(0, 255, 169, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

/* Boost Modal Styles */
#boostModal .modal-header {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 255, 169, 0.3);
}

#boostModal .modal-header h2 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#boostModal .close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#boostModal .close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

#boostModal .package-item {
    background: rgba(8, 12, 18, 0.8);
    border: 2px solid rgba(0, 255, 169, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

#boostModal .package-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 169, 0.1), transparent);
    transition: right 0.5s;
}

#boostModal .package-item:hover::before {
    right: 100%;
}

#boostModal .package-item:hover {
    border-color: #00ffa9;
    background: linear-gradient(135deg, rgba(0, 255, 169, 0.1), rgba(0, 224, 255, 0.1));
    box-shadow: 0 0 25px rgba(0, 255, 169, 0.5), inset 0 0 20px rgba(0, 255, 169, 0.1);
    transform: translateY(-5px) scale(1.02);
}

#boostModal .package-price {
    font-size: 22px;
    font-weight: 700;
    color: #00ffa9;
    margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.6);
}

#boostModal .package-desc {
    font-size: 14px;
    color: #b8fff0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Boost Details Modal Styles */
#boostDetailsModal .modal-content {
    width: 420px;
    max-width: 90vw;
    background: rgba(10, 18, 24, 0.96);
    border: 1px solid #00ffa966;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 255, 169, 0.3), inset 0 0 30px rgba(0, 255, 169, 0.1);
    overflow: hidden;
}

#boostDetailsModal .modal-header {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 255, 169, 0.3);
}

#boostDetailsModal .modal-header h2 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

#boostDetailsModal .close {
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#boostDetailsModal .close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

#boostDetailsModal .modal-body {
    padding: 25px;
}

.boost-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 255, 169, 0.2);
}

.detail-label {
    color: #b8fff0;
    font-weight: 500;
}

.detail-value {
    color: #00ffa9;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.5);
}

.boost-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.confirm-btn {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    flex: 2;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #00e0ff, #00ffa9);
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.6);
}

.cancel-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    flex: 1;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #ff8e8e, #ff6b6b);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
}

/* Boost Deposit Amount Styles */
.boost-amount {
    background: rgba(0, 255, 169, 0.1);
    border: 1px solid rgba(0, 255, 169, 0.4);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.2), inset 0 0 15px rgba(0, 255, 169, 0.05);
}

.amount-display h3 {
    margin: 0 0 10px 0;
    color: #00ffa9;
    font-family: 'Orbitron';
    font-size: 18px;
    text-shadow: 0 0 5px rgba(0, 255, 169, 0.5);
}

.amount-display #selectedAmount {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Language Options Styles */
.language-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #aaffee;
    background: rgba(0, 30, 40, 0.25);
    border: 1px solid rgba(0, 255, 200, 0.08);
    transition: all .25s ease;
}

.language-option:hover {
    color: #fff;
    text-shadow: 0 0 10px #00ffee;
    background: rgba(0, 40, 60, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 180, 0.25);
    transform: translateX(-4px);
}

/* Referral System Styles */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    background: rgba(0, 255, 169, 0.1);
    border: 1px solid rgba(0, 255, 169, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-family: 'Orbitron';
    font-size: 18px;
    font-weight: bold;
    color: #00ffa9;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #b8fff0;
}

.referral-link-container {
    margin: 20px 0;
}

.referral-link-container label {
    display: block;
    margin-bottom: 8px;
    color: #00ffa9;
    font-weight: 600;
}

.link-box {
    display: flex;
    gap: 10px;
}

.link-box .input-field {
    margin-bottom: 0;
    flex: 1;
}

.copy-btn {
    background: var(--btn);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--btn-hover);
}

.commission-info {
    margin: 20px 0;
    text-align: left;
}

.commission-info h4 {
    color: #00ffa9;
    margin-bottom: 15px;
    text-align: center;
}

.commission-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 255, 169, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 169, 0.1);
}

.commission-level .level {
    font-weight: 600;
    color: #00ffa9;
}

.commission-level .percentage {
    font-family: 'Orbitron';
    font-weight: bold;
    color: #00e0ff;
}

.commission-level .desc {
    font-size: 12px;
    color: #b8fff0;
}

/* Bot Trading Styles */
.bot-trading-unlocked {
    text-align: center;
    padding: 20px;
}

.bot-trading-locked {
    text-align: center;
    padding: 20px;
}

.trading-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.feature-item {
    padding: 10px;
    background: rgba(0, 255, 169, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 169, 0.2);
    color: #b8fff0;
    font-size: 14px;
}

/* Transfer Section Styles */
.transfer-section {
    margin: 30px 0;
    padding: 0 22px;
}

.transfer-container {
    background: var(--panel);
    border: 1px solid #00ffa940;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0, 255, 169, 0.1);
    position: relative;
    overflow: hidden;
}

.transfer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffa9, transparent);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.transfer-title {
    font-family: 'Orbitron', sans-serif;
    color: #00ffa9;
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    text-shadow: 0 0 10px rgba(0, 255, 169, 0.7);
    letter-spacing: 1px;
}

.transfer-table-container {
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid rgba(0, 255, 169, 0.2);
}

.transfer-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.transfer-table th {
    background: linear-gradient(135deg, rgba(0, 255, 169, 0.15), rgba(0, 224, 255, 0.1));
    color: #00ffa9;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00ffa9;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
}

.transfer-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 255, 169, 0.1);
    color: #b8fff0;
    transition: all 0.3s ease;
}

.transfer-table tbody tr {
    background: rgba(8, 12, 18, 0.6);
    transition: all 0.3s ease;
}

.transfer-table tbody tr:hover {
    background: rgba(0, 255, 169, 0.08);
    transform: translateX(5px);
}

.transfer-table tbody tr:nth-child(even) {
    background: rgba(12, 18, 28, 0.8);
}

.transfer-table tbody tr:nth-child(even):hover {
    background: rgba(0, 255, 169, 0.12);
}

/* New row animation */
.transfer-table tbody tr.new-row {
    animation: newRowGlow 2s ease-out;
    background: linear-gradient(90deg, rgba(0, 255, 169, 0.15), transparent);
}

@keyframes newRowGlow {
    0% {
        background: linear-gradient(90deg, rgba(0, 255, 169, 0.3), transparent);
        box-shadow: 0 0 20px rgba(0, 255, 169, 0.4);
    }
    50% {
        background: linear-gradient(90deg, rgba(0, 255, 169, 0.2), transparent);
        box-shadow: 0 0 15px rgba(0, 255, 169, 0.3);
    }
    100% {
        background: linear-gradient(90deg, rgba(0, 255, 169, 0.15), transparent);
        box-shadow: 0 0 0px rgba(0, 255, 169, 0);
    }
}

/* Address styling */
.tx-hash, .from-address, .to-address {
    font-family: 'Courier New', monospace;
    color: #00e0ff;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.amount-btc {
    color: #00ffa9;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.3);
}

.time-us {
    color: #b8fff0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.transfer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 255, 169, 0.2);
}

.live-indicator {
    color: #00ffa9;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-shadow: 0 0 8px rgba(0, 255, 169, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.update-info {
    color: #b8fff0;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
}

/* Transfer Page Modal Styles */
#transferPageModal .transfer-page-container {
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    background: rgba(10, 18, 24, 0.98);
    border: 1px solid #00ffa966;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 255, 169, 0.3), inset 0 0 30px rgba(0, 255, 169, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.transfer-page-header {
    background: linear-gradient(135deg, #00ffa9, #00e0ff);
    padding: 20px 25px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 255, 169, 0.3);
}

.transfer-page-title {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.transfer-page-close {
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: bold;
}

.transfer-page-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.transfer-page-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transfer-page-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 169, 0.2);
}

/* Enhanced Transfer Table for Modal */
#transferPageModal .transfer-table-container {
    flex: 1;
    overflow-x: auto;
    border-radius: 10px;
    background: rgba(10, 15, 26, 0.9);
    border: 1px solid rgba(0, 255, 169, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 169, 0.2);
}

#transferPageModal .transfer-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

#transferPageModal .transfer-table th {
    background: linear-gradient(135deg, rgba(0, 255, 169, 0.2), rgba(0, 224, 255, 0.15));
    color: #00ffa9;
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #00ffa9;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
}

#transferPageModal .transfer-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 255, 169, 0.15);
    color: #b8fff0;
    transition: all 0.3s ease;
}

#transferPageModal .transfer-table tbody tr {
    background: rgba(8, 12, 18, 0.7);
    transition: all 0.3s ease;
}

#transferPageModal .transfer-table tbody tr:hover {
    background: rgba(0, 255, 169, 0.12);
    transform: translateX(5px);
}

#transferPageModal .transfer-table tbody tr:nth-child(even) {
    background: rgba(12, 18, 28, 0.9);
}

#transferPageModal .transfer-table tbody tr:nth-child(even):hover {
    background: rgba(0, 255, 169, 0.15);
}

/* New row animation for modal */
#transferPageModal .transfer-table tbody tr.new-row {
    animation: newRowGlow 2s ease-out;
    background: linear-gradient(90deg, rgba(0, 255, 169, 0.2), transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .transfer-section {
        margin: 20px 0;
        padding: 0 15px;
    }
    
    .transfer-container {
        padding: 15px;
    }
    
    .transfer-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .transfer-table {
        font-size: 11px;
    }
    
    .transfer-table th,
    .transfer-table td {
        padding: 8px 6px;
    }
    
    .transfer-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    /* Transfer Page Modal Responsive */
    #transferPageModal .transfer-page-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .transfer-page-header {
        padding: 15px 20px;
    }
    
    .transfer-page-title {
        font-size: 20px;
    }
    
    .transfer-page-content {
        padding: 15px;
    }
    
    #transferPageModal .transfer-table {
        font-size: 12px;
    }
    
    #transferPageModal .transfer-table th,
    #transferPageModal .transfer-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .transfer-table-container {
        font-size: 10px;
    }
    
    .tx-hash, .from-address, .to-address {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Transfer Page Modal Mobile */
    #transferPageModal .transfer-table-container {
        font-size: 11px;
    }
    
    .transfer-page-title {
        font-size: 18px;
    }
    
    .transfer-page-close {
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

/* Media Query برای موبایل */
@media (max-width: 768px) {
    .app {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    /* مخفی کردن سایدبار در موبایل */
    .side {
        display: none;
    }
    
    /* نمایش منوی موبایل */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* تنظیم سایز توربین برای موبایل */
    .turbine-wrap {
        width: 280px;
        height: 280px;
        margin: 10px auto;
    }
    
    .core {
        inset: 90px;
    }
    
    .btc {
        font-size: 48px;
    }
    
    /* تنظیمات بخش مرکزی */
    .center {
        order: 1;
        min-height: auto;
        padding: 15px;
    }
    
    /* تنظیمات بخش راست */
    .right {
        order: 2;
        padding: 15px;
    }
    
    /* مخفی کردن دکمه‌های اضافی در موبایل اگر نیاز باشد */
    .actions {
        flex-direction: column;
    }
    
    /* تنظیم سایز فونت‌ها برای موبایل */
    .balance {
        font-size: 14px;
    }
    
    .stat-title {
        font-size: 14px;
    }
    
    /* تنظیم position برای connected address در موبایل */
    #connectedAddress {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 10px;
        display: block !important;
    }
    
    /* تنظیمات برای glow effects در موبایل */
    .rgb-glow {
        width: 300px;
        height: 300px;
    }

    /* Referral responsive */
    .referral-stats {
        grid-template-columns: 1fr;
    }
    
    /* Boost packages responsive */
    #boostModal .boost-packages {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* برای تبلت‌های کوچک */
@media (max-width: 480px) {
    .turbine-wrap {
        width: 240px;
        height: 240px;
    }
    
    .core {
        inset: 75px;
    }
    
    .btc {
        font-size: 40px;
    }
    
    .rgb-glow {
        width: 260px;
        height: 260px;
    }
    
    .browser-chrome {
        width: 100%;
        border-radius: 0;
    }
    
    body {
        padding: 0;
    }
    
    .modal .box {
        padding: 20px;
    }
}

/* نمایش سایدبار فقط در دسکتاپ */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar,
    .mobile-overlay {
        display: none !important;
    }
    
    .side {
        display: block;
    }
}

/* RTL Support for Arabic */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .menu-item:hover {
    transform: translateX(4px);
}

[dir="rtl"] .language-option:hover {
    transform: translateX(4px);
}

[dir="rtl"] .input-field {
    text-align: right;
}

[dir="rtl"] select {
    text-align: right;
}