:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #f9f9f9;
    --text-color: #333;
    --border-color: #e0e0e0;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.user-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.username {
    font-weight: bold;
}

.user-balance {
    color: var(--primary-color);
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher select {
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin: 30px 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Services Table */
.services-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.services-table th, .services-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.services-table th {
    background-color: var(--background-color);
    font-weight: bold;
}

.services-table tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--error-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Balance Tab */
.balance-info {
    margin-bottom: 30px;
}

.balance-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.currency-selector {
    margin-bottom: 20px;
}

.currency-selector label {
    margin-right: 15px;
    cursor: pointer;
}

.deposit-method {
    margin-bottom: 30px;
}

.bitcoin-address {
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    word-break: break-all;
}

.copy-btn {
    margin-left: 10px;
    cursor: pointer;
    color: var(--primary-color);
}

.transaction-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Orders Tab */
.order-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-title {
    font-weight: bold;
}

.order-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background-color: #f39c12;
    color: white;
}

.status-processing {
    background-color: #3498db;
    color: white;
}

.status-completed {
    background-color: #2ecc71;
    color: white;
}

.order-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Notifications Tab */
.notification-item {
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: var(--background-color);
}

.notification-time {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal-message {
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .user-header-info {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 5px;
    }

    .services-table {
        font-size: 14px;
    }

    .services-table th, 
    .services-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    nav.active {
        transform: translateY(0);
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .services-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .order-actions .btn {
        width: 100%;
        text-align: center;
    }

    .balance-amount {
        font-size: 24px;
    }

    .bitcoin-address {
        font-size: 14px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .user-balance, .username {
        font-size: 14px;
    }
    
    .main-content {
        padding: 15px;
        margin: 15px 0;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }

    .currency-selector label {
        display: block;
        margin-bottom: 8px;
    }

    .form-group input {
        padding: 8px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}