.profile-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.profile-avatar {
    font-size: 80px;
    color: #4CAF50;
}

.profile-info h2 {
    margin: 0;
    color: white;
}

.profile-info p {
    margin: 5px 0;
    color: #888;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 30px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.stat-card h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #888;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.recent-activity {
    background: #333;
    padding: 20px;
    border-radius: 10px;
}

.recent-activity h3 {
    color: white;
    margin-top: 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    color: white;
}

.activity-item .activity-type {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-item .activity-amount {
    font-weight: bold;
}

.activity-item .activity-amount.win {
    color: #4CAF50;
}

.activity-item .activity-amount.loss {
    color: #f44336;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    background: #333;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-btn:hover {
    background: #444;
}

.filter-btn.active {
    background: #4CAF50;
}

.filter-btn i {
    font-size: 0.9em;
}

.activity-item {
    opacity: 1;
    transition: all 0.3s;
}

.activity-item.hidden {
    display: none;
    opacity: 0;
}

/* Card Payment Form Styling */
.card-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-end;
    position: relative;
}

.card-details .form-group {
    flex: 1;
}

/* Make expiry date group smaller */
.card-details .form-group:first-child {
    flex: 0 0 120px;
}

/* Make CVV group even smaller */
.card-details .form-group:last-child {
    flex: 0 0 80px;
}

.card-type-display {
    flex: 0 0 70px;
    text-align: center;
    padding-bottom: 10px;
}

.card-type-display i {
    font-size: 32px;
}

/* Card brand specific colors */
.fa-cc-visa {
    color: #1a1f71 !important;
}

.fa-cc-mastercard {
    color: #eb001b !important;
}

.fa-cc-amex {
    color: #2e77bc !important;
}

/* Default credit card icon color */
.fa-credit-card {
    color: #000 !important;
}

/* Ensure inputs don't overflow their containers */
.card-details input {
    width: 100%;
    box-sizing: border-box;
}

.status-indicator {
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.status-indicator.success {
    background-color: #4CAF50;
    color: white;
}

.activity-item.deposit {
    background-color: rgba(76, 175, 80, 0.1);
}

.activity-item.deposit .activity-amount {
    color: #4CAF50;
}

.activity-item.withdraw .activity-amount {
    color: #f44336;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-time {
    font-size: 0.8em;
    color: #666;
}

.no-activities {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

#withdrawButton.withdraw-button {
    display: none;
    width: 60%;
    margin: 8px auto;
    padding: 8px 0;
    background-color: #444;
    color: #888;
    border: none;
    border-radius: 4px;
    opacity: 0.9;
    font-size: 24px;
    transition: opacity 0.2s;
    text-transform: lowercase;
    display: flex;
}

#withdrawButton.withdraw-button i {
    width: 20%;
    text-align: center;
    border-right: 1px solid #555;
}

#withdrawButton.withdraw-button span {
    width: 80%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    letter-spacing: 2px;
}

.bet-history {
    margin-top: 30px;
}

.bet-history h3 {
    margin-bottom: 15px;
}

#betHistoryTable {
    width: 100%;
    border-collapse: collapse;
}

#betHistoryTable th, #betHistoryTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

#betHistoryTable th {
    background-color: #f2f2f2;
}

#betHistoryTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#betHistoryTable tr:hover {
    background-color: #ddd;
}

.details-button {
    padding: 5px 10px;
    background-color: #4CAF50;
    border: none;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.details-button:hover {
    background-color: #45a049;
}

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); }
.modal:not(.hidden) { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background: #fff;
    padding: 1.5em 2em;
    border-radius: 8px;
    width: auto;
    min-width: 0;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: inline-block;
}
.close-modal { background: none; border: none; font-size: 1.5em; float: right; cursor: pointer; color: #000;}

/* Modern modal filter styling */
.modal-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    margin-top: 8px;
    padding: 18px 0 10px 0;
    border-bottom: 1px solid #eee;
}

.modal-filters label {
    font-weight: 500;
    color: #333;
    margin-right: 4px;
}

.modal-filters input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background: #f9f9f9;
    color: #222;
    transition: border 0.2s;
}

.modal-filters input[type="date"]:focus {
    border: 1.5px solid #4CAF50;
    outline: none;
}

.modal-filters button {
    padding: 7px 18px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: #fff;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-filters button#clearTxFilter {
    background: #eee;
    color: #333;
    border: 1px solid #ccc;
}

.modal-filters button:hover {
    background: #388e3c;
}

.modal-filters button#clearTxFilter:hover {
    background: #ddd;
}

#transactionsTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Soft vertical spacing between rows */
    margin-bottom: 0;
}

#transactionsTable th, #transactionsTable td {
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    text-align: center;
    background: #fff;
}

#transactionsTable th {
    background-color: #f6f6f6;
    font-weight: 600;
    color: #333;
}

#transactionsTable tr {
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-radius: 8px;
    transition: background 0.2s;
}

#transactionsTable tr:hover {
    background-color: #f1f7fa;
}

#transactionsTable td {
    font-size: 1em;
    color: #222;
}

#transactionsTable tr:not(:last-child) {
    border-bottom: 2px solid #f0f0f0;
}

#transactionsTable tr:not(:last-child) td {
    border-bottom: 1.5px solid #eaeaea;
}