[file name]: style.css
[file content begin]
/* Telegram Mini App Theming - Custom Colors */
:root {
    /* Light theme (Day mode) */
    --bg-color: #f0f0f0; /* Light gray background */
    --secondary-bg-color: #ffffff; /* White cards */
    --text-color: #000000; /* Dark text */
    --hint-color: #666666;
    --link-color: #8774e1;
    --button-color: #8774e1;
    --button-text-color: #ffffff;
}

/* Dark theme (Night mode) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000; /* Pure black background */
        --secondary-bg-color: #212121; /* Dark gray cards */
        --text-color: #ffffff; /* White text */
        --hint-color: #aaaaaa;
    }
}

/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 100px;
    background-color: var(--bg-color);
    color: var(--text-color);
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Structure */
#app-container {
    padding: 12px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Card Component */
.card {
    background-color: var(--secondary-bg-color);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
    transform: scale(0.995);
}

/* Buttons */
.button-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--button-color);
    color: var(--button-text-color);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.button-primary:active {
    transform: scale(0.98);
}

.button-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.button-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Form Elements */
input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--hint-color);
    background-color: transparent;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 2px rgba(135, 116, 225, 0.2);
}

/* Deposit Page */
.warning-text {
    font-size: 12px;
    color: #f39c12;
    margin-bottom: 12px;
}

#qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

#qr-code-container img {
    border-radius: 6px;
    background: white;
    padding: 4px;
}

.address-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-box input {
    flex-grow: 1;
    margin-bottom: 0;
}

.address-box button {
    padding: 10px;
    background-color: var(--hint-color);
    color: var(--secondary-bg-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.address-box button:active {
    transform: scale(0.95);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-bg-color);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 22px;
    z-index: 1001;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.toast.hidden {
    top: -80px;
    opacity: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--secondary-bg-color);
    padding: 22px;
    border-radius: 14px;
    width: 85%;
    max-width: 300px;
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}

.modal-content h2 {
    margin-top: 0;
    font-size: 18px;
}

.modal-content p {
    color: var(--hint-color);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 18px;
}

/* Home Page Header */
.home-header {
    text-align: center;
    margin-bottom: 24px;
}

.balance-label {
    color: var(--hint-color);
    font-size: 14px;
    margin: 0;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 4px 0 16px 0;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn .icon-wrapper {
    width: 46px;
    height: 46px;
    background-color: var(--secondary-bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* TradingView Chart Modal */
.tradingview-chart-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 8px;
    box-sizing: border-box;
}

.tradingview-chart-container.hidden {
    display: none;
}

#tradingview_chart {
    flex-grow: 1;
}

#close-chart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1003;
    transition: all 0.2s ease;
}

#close-chart-btn:active {
    transform: scale(0.9);
}

/* Navigation Menu */
#navigation-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--secondary-bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--hint-color);
}

.nav-btn {
    background: none;
    border: none;
    color: var(--hint-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-btn.active {
    color: var(--link-color);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn i {
    font-size: 24px;
    margin-bottom: 3px;
}

/* Crypto List (Home Page) */
#crypto-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crypto-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-color);
    transition: background-color 0.2s ease;
}

.crypto-item:active {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .crypto-item:active {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.crypto-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
}

.crypto-info {
    flex-grow: 1;
}

.crypto-name {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.crypto-symbol {
    color: var(--hint-color);
    font-size: 13px;
}

.crypto-price .price {
    font-weight: 600;
    font-size: 15px;
}

.crypto-price .change {
    display: block;
    font-size: 13px;
}

.change.positive { color: #27ae60; }
.change.negative { color: #e74c3c; }

/* Profile Page */
.profile-card {
    text-align: center;
}

.profile-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 8px;
    background-color: var(--hint-color);
}

/* Profile Menu */
.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-color);
    transition: background-color 0.2s ease;
}

.profile-menu li:active {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .profile-menu li:active {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu .icon-bg {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 12px;
}

.profile-menu .menu-text {
    flex-grow: 1;
}

.profile-menu .menu-text span {
    display: block;
}

.profile-menu .menu-value {
    font-weight: 600;
}

.profile-menu .bx-chevron-right {
    font-size: 22px;
    color: var(--hint-color);
}

/* Transaction History */
#transaction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 180px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-color);
    transition: background-color 0.2s ease;
}

.transaction-item:active {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .transaction-item:active {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-details .type {
    text-transform: capitalize;
    font-weight: 600;
    font-size: 14px;
}

.transaction-details .date {
    font-size: 11px;
    color: var(--hint-color);
}

.transaction-amount.positive {
    color: #27ae60;
}

.transaction-amount.negative {
    color: #e74c3c;
}

/* Withdraw Page */
.back-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    position: absolute;
    left: 12px;
    top: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-btn:active {
    transform: scale(0.9);
}

.app-header {
    position: relative;
    text-align: center;
}

.bold-text {
    font-weight: 600;
}

label {
    display: block;
    font-size: 13px;
    color: var(--hint-color);
    margin-top: 12px;
    margin-bottom: 4px;
}

.currency-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.currency-option {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--hint-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-option:active {
    transform: scale(0.98);
}

.currency-option.selected {
    border-color: var(--link-color);
    background-color: var(--link-color);
    color: var(--button-text-color);
}

.currency-option img {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

/* Skeleton Loader */
.skeleton {
    opacity: 0.7;
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    from { background-color: var(--hint-color); }
    to { background-color: var(--secondary-bg-color); }
}

/* Improved focus styles for accessibility */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
[file content end]