/* client member pages: deposit, withdrawal, announcement, report, change password.
   Top switch values are the reference's (.sw_topSwitch / .lnk_topSwitch); the rest
   uses the same palette. Serves both layouts. */

.c2-member { color: var(--c2-text); font-size: 13px; }

/* ---- top switch (reference) ---- */
.c2-member .sw_topSwitch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    overflow-x: auto;
    background: rgba(0, 0, 0, .4);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.c2-member .sw_topSwitch::-webkit-scrollbar { display: none; }
.c2-member .lnk_topSwitch {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 6px 14px;
    border-radius: 15px;
    white-space: nowrap;
    font-weight: 500;
    text-decoration: none;
    color: #6d5c48;
    background: linear-gradient(180deg, #493e32 0, #151412);
    box-shadow: inset 1px 1px 0 rgba(120, 102, 83, .706), inset -1px -1px 1px #141311;
}
.c2-member .lnk_topSwitch:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    padding: 3px;
    box-sizing: content-box;
    transform: translate(-50%, -50%);
    border: 1px solid hsla(35, 44%, 62%, .18);
    border-radius: 30px;
    pointer-events: none;
}
.c2-member .lnk_topSwitch.active {
    color: var(--c2-gold-text);
    background: linear-gradient(163.03deg, #573e22 10.38%, #14130f 89.62%);
    box-shadow: inset 1px 1px 0 rgba(255, 203, 119, .643), inset -1px -1px 1px #161410;
}
/* centre the row when it fits (a single tab for guests) */
.c2-member .sw_topSwitch > :first-child { margin-left: auto; }
.c2-member .sw_topSwitch > :last-child { margin-right: auto; }

/* ---- page body ---- */
.c2-pagetitle { display: none; }   /* desktop only (below) */
.c2-member__body { padding: 20px 16px 30px; }

/* form rows */
.c2-field-row { margin-bottom: 16px; }
.c2-field-row > label, .c2-field-row > .c2-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--c2-muted); }
.c2-control {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    border-radius: 21px;
    background: var(--c2-input);
    box-shadow: inset 0 0 0 1px rgba(212, 181, 126, .3);
}
.c2-control:focus-within { box-shadow: inset 0 0 0 1px var(--c2-gold-1); }
.c2-control input,
.c2-control select {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c2-text);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}
.c2-control select { padding-right: 36px; cursor: pointer; }
.c2-control select option { color: #111; }
.c2-control--select::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--c2-gold-1);
    border-bottom: 2px solid var(--c2-gold-1);
    transform: rotate(45deg);
    pointer-events: none;
}
.c2-control input[readonly] { color: var(--c2-gold-text); }
/* the opened list follows the field's rounded look (Chrome/Edge 135+, Android Chrome);
   other browsers keep their own native list or picker */
@supports (appearance: base-select) {
    .c2-control select,
    .c2-control select::picker(select) { appearance: base-select; }
    .c2-control select { display: flex; align-items: center; }
    .c2-control select::picker-icon { display: none; }
    .c2-control select::picker(select) {
        margin-top: 6px;
        padding: 6px;
        border: 1px solid rgba(212, 181, 126, .35);
        border-radius: 16px;
        background: var(--c2-input);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .5);
        max-height: 300px;             /* long bank lists scroll inside */
        overflow-y: auto;
    }
    .c2-control select option {
        padding: 9px 12px;
        border-radius: 10px;
        color: var(--c2-text);
        font-size: 14px;
        cursor: pointer;
    }
    .c2-control select option::checkmark { display: none; }
    .c2-control select option:hover,
    .c2-control select option:focus-visible { outline: 0; background: rgba(212, 181, 126, .12); }
    .c2-control select option:checked { color: var(--c2-gold-text); background: rgba(212, 181, 126, .2); }
    .c2-control--select:has(select:open)::after { margin-top: -2px; transform: rotate(-135deg); }
}
.c2-control__copy {
    position: relative;
    flex: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    color: var(--c2-gold-1);
    font-size: 16px;
    cursor: pointer;
    transition: color .2s;
}
/* copy confirmation, right at the button: tick icon, "Copied" bubble above, field glow */
.c2-control__copy.is-copied { color: var(--c2-gold-text); }
.c2-control__copy::after {
    content: attr(data-copied);
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    padding: 5px 10px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: #1a1206;
    background: var(--c2-gold-grad);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}
.c2-control__copy.is-copied::after { opacity: 1; transform: none; }
.c2-control.is-copied { box-shadow: inset 0 0 0 1px var(--c2-gold-1), 0 0 0 3px rgba(212, 181, 126, .25); }
.c2-date-range { display: flex; align-items: center; gap: 8px; }
.c2-date-range .c2-control { flex: 1; }
.c2-date-range input { padding: 0 10px; font-size: 13px; color-scheme: dark; cursor: pointer; }

/* the reference's gold submit, full width */
.c2-member .c2-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    height: 44px;
    margin: 24px auto 0;
    border: 0;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1206;
    background: var(--c2-gold-grad);
    box-shadow: 0 2px 10px rgba(212, 181, 126, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
    cursor: pointer;
}

/* while the form is being sent (client.js "sending state"): no second tap, a spinner */
.c2-member .c2-submit:disabled { opacity: .7; cursor: wait; }
.c2-submit.is-sending::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: c2-spin .7s linear infinite;
}
@keyframes c2-spin { to { transform: rotate(360deg); } }

/* bank QR codes and receipt upload (deposit) */
.c2-qr { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.c2-qr img { max-width: 180px; border-radius: 8px; background: #fff; padding: 6px; }
.c2-upload { display: flex; gap: 8px; }
.c2-upload__pick {
    flex: 1;
    height: 42px;
    border-radius: 21px;
    border: 1px dashed rgba(212, 181, 126, .6);
    background: rgba(0, 0, 0, .25);
    color: var(--c2-gold-text);
    font-size: 14px;
    cursor: pointer;
}
.c2-upload__clear {
    flex: none;
    padding: 0 18px;
    height: 42px;
    border-radius: 21px;
    border: 1px solid rgba(212, 181, 126, .4);
    background: none;
    color: var(--c2-muted);
    cursor: pointer;
}
.c2-upload__preview { display: none; width: 100%; max-height: 320px; object-fit: contain; margin-top: 10px; border-radius: 8px; }
.c2-upload__preview.is-shown { display: block; }

/* report: period chips */
.c2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.c2-chips button {
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid rgba(242, 219, 161, .5);
    background: none;
    color: rgba(242, 219, 161, .75);
    font-size: 12px;
    cursor: pointer;
}
.c2-chips button.active {
    border-color: transparent;
    color: #000;
    background: linear-gradient(130deg, #d9b882, #bb8d51);
    box-shadow: inset 1px 1px 1px #ffffe4;
}

/* report: results */
.c2-report__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, .4);
}
.c2-report__bar button {
    padding: 6px 18px;
    border-radius: 15px;
    border: 0;
    font-weight: 600;
    color: #1a1206;
    background: var(--c2-gold-grad);
    cursor: pointer;
}
.c2-report__summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 0;
    padding: 16px 10px;
    background: rgba(0, 0, 0, .25);
    text-align: center;
}
.c2-report__summary div + div { border-left: 1px solid rgba(212, 181, 126, .25); }
.c2-report__summary span { display: block; font-size: 12px; color: var(--c2-muted); }
.c2-report__summary b { display: block; margin-top: 2px; font-size: 15px; color: var(--c2-gold-text); }
.c2-report__table-wrap { overflow-x: auto; }
.c2-report__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.c2-report__table th, .c2-report__table td { padding: 8px 12px; white-space: nowrap; text-align: center; }
.c2-report__table th { color: #1a1206; background: #c59c63; font-weight: 600; }
.c2-report__table td { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.c2-report__table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
.c2-report__empty td { padding: 30px 0; color: var(--c2-dim); }
.c2-pages { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; }
.c2-pages a, .c2-pages span {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(212, 181, 126, .35);
    color: var(--c2-muted);
    text-decoration: none;
}
.c2-pages span { color: #1a1206; background: #c59c63; border-color: transparent; }
.c2-pages a.is-disabled { opacity: .35; pointer-events: none; }

@media (min-width: 900px) {
    /* desktop, as the reference: two sections side by side from the header down to the
       "Top 6" block - the tab menu on the left with a fading divider line, the page on the
       right straight on the backdrop (no panel) */
    .c2-member { display: flex; align-items: stretch; max-width: 1400px; min-height: 750px; margin: 0 auto 70px; font-size: 14px; }
    .c2-member .sw_topSwitch {
        flex: 0 0 269px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 16px;
        position: relative;
        z-index: 3;
        padding: 28px 22px 0;
        overflow: visible;
        background: none;
    }
    .c2-member .sw_topSwitch::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(#3b301a 0, #3b301a 70%, transparent);
    }
    .c2-member .sw_topSwitch > :first-child,
    .c2-member .sw_topSwitch > :last-child { margin: 0; }
    .c2-member .lnk_topSwitch { min-width: 0; height: 60px; font-size: 15px; }
    /* inactive words light, as the reference menu (the selected tab stays gold) */
    .c2-member .lnk_topSwitch:not(.active) { color: #e6e6e6; }
    /* right padding: clear of the side contact buttons */
    .c2-member__main { position: relative; z-index: 3; flex: 1; min-width: 0; padding: 40px 70px 0 35px; }
    /* the reference's casino backdrop (1920x870, already faded at the edges), full width
       behind the menu and page, at its own size as on the reference */
    .c2-member::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        height: 870px;
        z-index: 0;
        pointer-events: none;
        background: url('../../images/client/bg_member.jpg') 50% 0 no-repeat;
    }
    /* page title as the reference: gold gradient words in its frame, a fading line below */
    .c2-pagetitle { display: block; position: relative; padding-bottom: 20px; }
    .c2-pagetitle::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: -35px;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, #3b301a 0, #3b301a 50%, transparent 70%);
    }
    .c2-pagetitle__text {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 242px;
        height: 52px;
        font-size: 22px;
        white-space: nowrap;
        color: transparent;
        background: linear-gradient(#fee6b2 30%, #a17550 70%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    .c2-pagetitle__text::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: url('../../images/client/frame_pageTitle.png') no-repeat;
    }
    /* the side waves at the reference's places (as the home page), under the page */
    .d-deco--member { z-index: 1; }
    .c2-member__body { padding: 30px 0 40px; }   /* left edge in line with the page title */
    .c2-report__body { padding: 0 0 20px; }
}
