/* Account Info Section - Matching Mockup Design */

/* Main container - four column layout for desktop */
.acc-info {
    background: var(--bg-color1);
    border: 1px solid var(--main-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 0;
    position: relative;
    overflow: hidden;
    align-items: center;
}

/* Left wrapper - Current Level only */
.acc-info-left {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
    height: 100%;
}

/* Left section - Current Level with gold gradient */



.acc-lvl-label {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.acc-lvl-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.acc-lvl-icon img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.acc-lvl-name {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Middle section - Current EXP Level */
.acc-exp-lvl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    /* background: var(--bg-color1); */
    position: relative;
    min-width: 220px;
    flex: 0 0 auto;
    text-align: center;
}



.acc-exp-lvl-label {
    color: var(--text-color);
    font-size: 14px;
    /* font-weight: 600; */
    letter-spacing: 0.5px;
}

.acc-exp-lvl-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.acc-exp-lvl-icon img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.acc-exp-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.acc-exp-progress-text {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: 14px;
}

.acc-exp-current {
    color: var(--main-color);
    font-weight: 700;
    font-size: 16px;
}

.acc-exp-separator {
    color: var(--text-color);
    font-weight: 400;
}

.acc-exp-total {
    color: var(--text-color);
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
}

.acc-exp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.acc-exp-progress-fill {
    height: 100%;
    background: var(--main-color);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* User Info section - Balance, Transfer */
.acc-info-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 13px;
    padding: 0px 15px;
    background: var(--bg-color1);
    position: relative;
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--main-color);
}


/* User name styling */
.acc-info-name {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    text-align: left;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
}

/* Balance section */
.acc-bln {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.acc-bln-label {
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.acc-bln-amt {
    color: var(--text-color);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

/* Transfer button */
.acc-tf-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--main-color);
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    margin: 0;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.acc-tf-btn:hover {
    background: var(--main-color);
    color: var(--text-color1);
    filter: brightness(1.1);
}

/* Right section - Token and Point buttons */
.acc-info-right {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    background: var(--bg-color1);
    border-radius: 0 10px 10px 0;
    position: relative;
    min-width: 180px;
    flex: 0 0 auto;
    width: 100%;
}

/* Token and Point buttons */
.token-btn {
    background: var(--main-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-color1);
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    width: 100%;
    flex: 1;
}

.token-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.mobile-only {
    display: none;
}

.acc-lvl-wrapper {
    flex: 1;
}

.desktop-only {
    display: flex;
}

/* Responsive Design - Tablet and below */
@media only screen and (max-width: 1024px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
        flex: 1;
    }

    .acc-info {
        flex-direction: column;
        padding: 10px;
    }

    .acc-info-left {
        flex-direction: column;
        width: 100%;
    }

    .acc-lvl {
        border-radius: 10px 10px 0 0;
        padding: 20px;
        min-width: auto;
    }

    .acc-lvl::after,
    .acc-exp-lvl::before,
    .acc-exp-lvl::after,
    .acc-info-mid::after {
        display: none;
    }

    .acc-exp-lvl {
        padding: 20px;
        min-width: auto;
        border-left: 1px solid var(--main-color);
        padding: 0px 15px;
    }

    .acc-info-mid {
        /* border-top: 1px solid var(--main-color); */
        /* border-bottom: 1px solid var(--main-color); */
        padding: 20px;
        align-items: center;
        width: 100%;
        border-left: none;
    }

    .acc-info-name,
    .acc-bln {
        text-align: center;
    }

    .acc-info-right {
        border-radius: 0 0 10px 10px;
        padding: 20px;
        min-width: auto;
        flex-direction: row;
        gap: 10px;
    }

    .token-btn {
        flex: 1;
    }

    .acc-lvl {
        display: flex;
        align-items: anchor-center;
        justify-content: space-evenly;
        gap: 0 !important;
    }
}

/* Mobile - Stack vertically */
@media only screen and (max-width: 768px) {
    .acc-info {
        border-radius: 8px;
    }

    .acc-lvl {
        padding: 20px 15px;
        gap: 12px;
        border-radius: 8px 8px 0 0;
    }

    .acc-lvl-label {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .acc-lvl-icon img {
        width: 60px;
    }

    .acc-lvl-name {
        font-size: 20px;
    }

    .acc-exp-lvl {
        /* padding: 20px 15px; */
        gap: 12px;
    }

    .acc-exp-lvl-label {
        font-size: 12px;
    }

    .acc-exp-lvl-icon img {
        width: 60px;
    }

    .acc-exp-progress-text {
        font-size: 12px;
    }

    .acc-exp-current {
        font-size: 14px;
    }

    .acc-exp-total {
        font-size: 11px;
    }

    .acc-exp-progress-bar {
        height: 5px;
    }

    .acc-info-mid {
        padding: 20px 15px;
        gap: 15px;
        border-left: none;
    }

    .acc-info-name {
        font-size: 16px;
        text-align: center;
        padding: 0;
    }

    .acc-bln {
        text-align: center;
    }

    .acc-bln-label {
        font-size: 17px;
    }

    .acc-bln-amt {
        font-size: 24px;
    }

    .acc-tf-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .acc-info-right {
        padding: 15px;
        gap: 10px;
        flex-direction: row;
    }

    .token-btn {
        padding: 10px;
        font-size: 12px;
    }
}

/* Small mobile devices */
@media only screen and (max-width: 480px) {
    .acc-info {
        border-radius: 8px;
    }

    .acc-lvl {
        padding: 15px 12px;
        border-radius: 8px 8px 0 0;
    }

    .acc-lvl-icon img {
        width: 50px;
    }

    .acc-lvl-name {
        font-size: 18px;
    }

    .acc-exp-lvl {
        /* padding: 0; */
        gap: 10px;
    }

    .acc-exp-lvl-icon img {
        width: 50px;
    }

    .acc-exp-progress-text {
        font-size: 11px;
    }

    .acc-exp-current {
        font-size: 13px;
    }

    .acc-exp-total {
        font-size: 10px;
    }

    .acc-exp-progress-bar {
        height: 4px;
    }

    .acc-info-mid {
        padding: 0;
        padding-top: 10px;
    }

    .acc-bln-amt {
        font-size: 20px;
    }

    .acc-info-right {
        padding: 0;
    }

    .token-btn {
        width: 100%;
    }
}

/* REDEMPTION SECTION */
.redempt-tabs {
    display: flex;
    gap: 0;
    align-items: center;
    background: linear-gradient(180deg, #2e2804, rgba(0, 0, 0, 0.4));
    padding: 0;
    border-radius: 10px;
    margin-bottom: 14px;
    width: max-content;
}

.redempt-tabs .filter {
    background: transparent;
    border: none;
    color: #a18036;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    transition: all .15s ease;
    cursor: pointer;
}

.redempt-tabs .filter.active,
.redempt-tabs .filter:hover {
    background: var(--main-color);
    color: var(--text-color1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.redempt-content {
    background: var(--bg-color1);
    border-radius: 10px;
    padding: 18px;
    margin-top: 10px;
}

.redempt-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    padding: 0;
    margin: 0;
}

.redempt-grid .mix {
    max-width: 100%;
    height: auto;
}

.redeem-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--main-color2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.redeem-card .card-top {
    padding: 22px 18px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-image: url("../images/event/redemption/icon-creditbg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 140px auto;
    min-height: 170px;
    padding-bottom: 27px;
}

.redeem-card .card-top span {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    /* gold gradient text */
    background: linear-gradient(180deg, #fff8d6 0%, #c6a158 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    text-transform: uppercase;
}

.redeem-card .card-top strong {
    text-align: center;
    background: linear-gradient(180deg, #fff8d6 0%, #c6a158 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-font-smoothing: antialiased;
    font-size: 35px;
    line-height: 1;
}

.redeem-card .card-top img {
    width: 120px;
    height: auto;
    object-fit: contain;
    display: block;
}

.redeem-card .card-bottom {
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    background: #131313;
}

.redeem-card .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.redeem-card .meta .credits {
    color: var(--text-color);
    font-weight: 700;
    font-size: 18px;
}

.redeem-card .meta .reward {
    color: var(--main-color);
    font-weight: 800;
    font-size: 16px;
}

.redeem-card .meta .reward span {
    color: #fff;
    font-weight: 200;
}

.redeem-card .redeem-btn {
    display: inline-block;
    margin: 8px auto 0;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--main-color);
    background: transparent;
    color: var(--text-color);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
}

.redeem-card .redeem-btn:hover {
    background: var(--main-color);
    color: var(--text-color1);
    transform: translateY(-2px);
}

/* responsive grid */
@media only screen and (max-width: 1200px) {
    .redempt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    .redempt-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .redeem-card .card-top {
        min-height: 150px;
        background-size: 120px auto;
    }

    .redempt-tabs {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    .redempt-content {
        padding: 0;
    }

    .redempt-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        padding-top: 0;
        grid-gap: 15px;
    }

    .redeem-card .card-top {
        min-height: 120px;
        background-size: 100px auto;
    }

    .redempt-tabs .filter {
        padding: 10px;
        font-size: 15px;
    }
}

/* SMART-STATEMENT SECTION */
.smart-settle-bg {
    background: var(--bg-color1);
    border-radius: 10px;
}

.smart-settle-bg .event-title {
    padding: 15px;
}

.smart-settlement-section {
    background: var(--bg-color1);
    border: 1px solid var(--main-color);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    overflow: hidden;
}

.smart-bottom-wrap {
    padding: 15px;
}

/* Warning Banner */
.settlement-warning {
    background: #d32f2f;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.settlement-warning i {
    color: var(--main-color);
    font-size: 24px;
}

.settlement-warning .warning-text {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 14px;
}

.settlement-warning .warning-text strong {
    font-size: 16px;
}

/* Settlement Info */
.settlement-info {
    display: flex;
    gap: 3rem;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settlement-left {
    flex: 1;
}

.outstanding-box {
    background: linear-gradient(179deg, #816802 0%, #18160e 100%);
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 12px;
}

.outstanding-label {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 8px;
}

.outstanding-amount {
    color: #fdd017;
    font-size: 28px;
    font-weight: 700;
}

.settlement-note {
    color: #888888;
    font-size: 16px;
    font-weight: 600;
}

.settlement-right {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex-direction: column;
}

.bank-logo {
    width: 80px;
    height: 80px;
    background: var(--main-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bank-logo img {
    width: 100%;
    height: auto;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: space-between;
    flex: 0 0 auto;
    width: 75%;
}

.bank-row {
    display: grid;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    grid-template-columns: 35% auto;
}

.bank-label {
    color: #fff;
    min-width: 100px;
    font-weight: 600;
}

.bank-value {
    color: #fff;
    font-weight: 600;
    display: flex;
    grid-gap: 5px;
    align-items: center;
    min-width: 100%;
    justify-content: space-between;
    flex: 3;
}

.copy-btn {
    background: transparent;
    border: 1px solid #fdd017;
    color: #fff;
    padding: 5px 13px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    /* margin-left: 10px; */
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--main-color);
    color: #000;
    border-color: var(--main-color);
}

.bank-warning {
    padding: 10px 20px;
    color: #888888;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bank-warning i {
    color: #f44336;
}

/* Statement History */
.statement-history {
    padding: 20px;
}

.history-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 20px;
}

.history-title #historyDateRange {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.history-filters {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-label {
    color: #888888;
    font-size: 14px;
}

.tab-divider {
    color: rgba(255, 255, 255, 0.7);
}

.filter-tab {
    background: transparent;
    border: none;
    color: #888888;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    color: #fff;
}

.filter-tab.active {
    background: none;
    color: #888888;
    font-weight: 600;
    border-bottom: 2px solid var(--main-color);
}

/* Desktop tabs - shown by default */
.filter-tabs-desktop {
    display: flex;
    gap: 5px;
}

/* Mobile select - hidden by default */
.filter-tabs-mobile {
    display: none;
}

.filter-select {
    background: #2c2c2c;
    border: 1px solid var(--main-color);
    border-radius: 8px;
    padding: 5px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 120px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(253, 208, 23, 0.3);
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-input-group label {
    color: #888888;
    font-size: 13px;
    white-space: nowrap;
}

.date-input {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input input[type="date"] {
    background: #2c2c2c;
    border: 1px solid #fdd017;
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    width: 160px;
    cursor: pointer;
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    color: #cccccc;
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-input input[type="date"]:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(253, 208, 23, 0.3);
}

.search-btn {
    background: var(--main-color);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    filter: brightness(1.1);
}

/* History Table */
.history-table-wrap {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
}

.history-table th {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.history-table td {
    color: #fff;
}

.history-table td.loss {
    color: #f44336;
}

.history-table td.win {
    color: #4caf50;
}

.status {
    padding: 0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status.on-debt {
    color: #f44336;
    text-decoration: underline;
}

.status.settled {
    color: #4caf50;
}

/* Clickable rows */
.history-table tbody tr.clickable-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.history-table tbody tr.clickable-row:hover {
    background: rgba(253, 208, 23, 0.1);
}

/* Detail View */
.history-detail-view {
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.detail-header {
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.detail-content {
    padding: 20px;
    background: #191919;
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    min-width: 150px;
}

.detail-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.detail-value.loss {
    color: #f44336;
}

.detail-value.win {
    color: #4caf50;
}

.detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.payment-deadline {
    color: #f44336;
    font-size: 13px;
    font-weight: 600;
}

.back-to-history-btn {
    background: var(--main-color);
    border: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.back-to-history-btn:hover {
    filter: brightness(1.1);
    transform: translateX(-3px);
}

.bank-info-detail {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}
.history-table tr{
    border: 1px solid var(--main-color);
}

/* Responsive */
@media only screen and (max-width: 900px) {
    .settlement-info {
        flex-direction: column;
        padding: 0;
    }

    .settlement-right {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bank-row {
        flex-wrap: wrap;
        font-size: 12px;
    }

    .bank-label {
        min-width: auto;
        text-align: left;
    }

    .history-filters {
        padding: 0;
    }

    .statement-history {
        padding: 0;
    }
}

@media only screen and (max-width: 600px) {
    .settlement-info{
        gap: 1rem;
    }
    .outstanding-box,.settlement-note{
        text-align: center;
    }
    .settlement-warning {
        padding: 10px 15px;
    }

    .settlement-warning .warning-text strong {
        font-size: 14px;
    }

    .outstanding-amount {
        font-size: 22px;
    }

    /* Hide desktop tabs, show mobile select */
    .filter-tabs-desktop {
        display: none;
    }

    .filter-tabs-mobile {
        display: block;
        width: 100%;
    }

    .filter-tabs {
        flex-wrap: nowrap;
    }

    .date-range {
        flex-direction: row;
        align-items: end;
    }

    .date-input-group {
        align-items: center;
        flex-direction: column;
    }

    .date-input input[type="date"] {
        width: 100px;
        padding: 5px;
        font-size: 12px;
    }

    .search-btn {
        /* width: 100%; */
        justify-content: center;
    }

    /* Mobile card-style table */
    .history-table {
        border: none;
    }

    .history-table thead {
        display: none;
    }

    .history-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        background: #1a1a1a;
        border: none;
        border-radius: 8px;
        padding: 0;
        margin-bottom: 15px;
        overflow: hidden;
        gap: 0;
    }

    .history-table tbody tr td {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 12px;
        border: none;
        font-size: 10px;
        background: #2c2c2c;
        border: none;
        justify-content: space-between;
    }

    /* Settlement Date */
    .history-table tbody tr td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* Credit Limit */
    .history-table tbody tr td:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-bottom: none;
    }

    /* Balance */
    .history-table tbody tr td:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Bonus */
    .history-table tbody tr td:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        border-bottom: none;
    }

    /* Win/Loss */
    .history-table tbody tr td:nth-child(5) {
        grid-column: 3;
        grid-row: 1;
        border-right: none;
    }

    /* Status */
    .history-table tbody tr td:nth-child(6) {
        grid-column: 3;
        grid-row: 2;
        border-right: none;
        border-bottom: none;
    }

    .history-table tbody tr td::before {
        content: attr(data-label);
        display: block;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 400;
        font-size: 11px;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .history-table tbody tr td.loss {
        color: #f44336;
    }

    .history-table tbody tr td.win {
        color: #4caf50;
    }

    .history-table tbody tr td .status {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Detail view responsive */
    .detail-label {
        min-width: 120px;
        font-size: 13px;
    }

    .detail-value {
        font-size: 13px;
    }

    .detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-history-btn {
        width: 100%;
        justify-content: center;
    }
}

@media only screen and (max-width: 375px) {
    .bank-details {
        width: 78%;
    }

    .bank-info-detail {
        padding: 0;
    }

    .smart-settlement-section {
        padding: 10px;
    }

    .copy-btn {
        padding: 5px;
    }

    .bank-logo {
        width: 60px;
        height: 60px;
    }
}