/* My Account Page Styles */

.my-account-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

/* Account Header */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    gap: 30px;
}

.account-profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.account-avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.account-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.3);
}

.account-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    border: 2px solid rgba(15, 15, 35, 0.8);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-info:hover {
    opacity: 0.8;
}

.account-name-id {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-name {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.account-id {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.account-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.account-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.contact-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-text.not-linked {
    color: #ef4444;
}

.copy-email-btn {
    background: transparent;
    border: none;
    color: rgba(59, 130, 246, 0.8);
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.copy-email-btn:hover {
    color: rgba(59, 130, 246, 1);
}

.change-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Account Navigation Tabs */
.account-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.account-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.account-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.account-tab.active {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: #3b82f6;
}

.account-tab i {
    font-size: 16px;
}

/* Account Tab Content */
.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

/* Balance Section */
.balance-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 30px;
}

.balance-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
}

.add-funds-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.add-funds-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Betting Statistics Section */
.betting-stats-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.betting-stats-header {
    margin-bottom: 20px;
}

.betting-stats-title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

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

.betting-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.betting-stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.stat-icon {
    font-size: 24px;
    color: #3b82f6;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Withdrawal Section */
.withdrawal-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

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

.withdrawal-title {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.withdrawal-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-text {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.progress-percent {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.progress-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: help;
}

.withdrawal-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.withdrawal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.withdrawal-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.withdrawable-card {
    position: relative;
}

.card-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.card-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 40px;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 24px;
    color: #fbbf24;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.unlockable-card .card-value {
    color: rgba(255, 255, 255, 0.8);
}

/* History Tabs */
.history-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.history-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.history-tab.active {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: #3b82f6;
}

/* Date Filter */
.history-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.date-input {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.date-input:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.date-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.calendar-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-left: auto;
}

.search-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* History Table */
.history-table-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.history-loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.history-loading-more i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.history-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    display: table;
}

.history-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.history-table th {
    padding: 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    word-wrap: break-word;
    word-break: break-word;
}

.no-data-row td {
    padding: 60px 15px;
    text-align: center;
}

.no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.no-data i {
    font-size: 48px;
    opacity: 0.5;
}

.no-data span {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .my-account-content {
        padding: 20px 15px 85px 15px !important; /* Space for mobile bottom nav (70px + safe area) */
    }

    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .account-contact {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .withdrawal-cards {
        grid-template-columns: 1fr;
    }

    .history-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .history-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .history-filter {
        flex-wrap: wrap;
    }

    .history-table-container {
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        border-radius: 8px;
    }

    .history-table {
        display: table;
        width: 100%;
        min-width: 800px;
        font-size: 12px;
    }

    .history-table thead {
        display: table-header-group;
    }

    .history-table tbody {
        display: table-row-group;
    }

    .history-table tbody tr {
        display: table-row;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        margin-bottom: 0;
    }

    .history-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .history-table td {
        display: table-cell;
        padding: 12px 15px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
        word-wrap: break-word;
        word-break: break-word;
        vertical-align: middle;
    }
    
    .history-table td .history-cell-content {
        display: block;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.5;
        max-height: none;
    }

    .history-table td:before {
        display: none;
    }

    .history-table td:empty {
        display: table-cell;
    }
}

@media (max-width: 480px) {
    .history-table {
        font-size: 11px;
        min-width: 700px;
    }

    .history-table td {
        padding: 10px 12px;
        font-size: 11px;
    }

    .history-table th {
        padding: 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .my-account-content {
        padding: 15px 10px 85px 10px !important; /* Space for mobile bottom nav (70px + safe area) */
    }
}

/* History table status colors */
.history-table .text-success {
    color: #10b981 !important;
}

.history-table .text-danger {
    color: #ef4444 !important;
}

.history-table .text-warning {
    color: #f59e0b !important;
}

/* History Pagination */
.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 767px) {
    .history-pagination {
        padding: 15px 10px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 15px;
        font-size: 12px;
        gap: 6px;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-info {
        font-size: 12px;
        min-width: 100px;
    }
}

