@font-face {
    font-family: 'Aldrich';
    src: url('./fonts/aldrich-v17-latin-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

button,
a,
input,
select,
textarea,
.closeMyBetsBtn,
.closeWalletBtn,
.customSelect,
.menuItem,
.history-filter-trigger {
    touch-action: manipulation;
}
* {
    -webkit-tap-highlight-color: transparent;
}
:root {
    --main-font: 'Aldrich', sans-serif;
    --popup-start: 100px;
    --popup-end: 50px;
}

.inputWrapper {
    position: relative;
    margin-top: 20px;
    display: block;
}

.inputLabel {
    position: absolute;
    top: -10px;
    left: 0px;
    font-size: 12px;
    color: #c0c0c0;
    background: #1e293b;
    padding: 0 4px;
    pointer-events: none;
    z-index: 10;
}

.yellowBtn {
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 0 10px;
    transition: all 0.2s ease;
}

.readonly-box {
    width: 100% !important;
    height: 42px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: monospace !important;
}

body, button, input, select, textarea {
    font-family: var(--main-font);
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.topbar {
    width: 100%;
    height: 60px;
    background: #020617;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1001;
}

.topBarLogo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    width: auto;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

    .topBarLogo:hover {
        opacity: 1;
    }

.balanceBox {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balanceValue {
    font-size: 18px;
    color: #22c55e;
}

.balanceLabel {
    font-size: 12px;
    opacity: 0.7;
}

.topBarUsdcLogo {
    width: 16px;
    height: 16px;
}

.toggle {
    margin: 20px 0;
}

button:focus {
    outline: none;
    box-shadow: none;
}

.menuWrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    gap: 12px;
}

#menuDropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110%;
    overflow: hidden;
    right: 0;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 0 10px #ffd000aa;
    min-width: 120px;
    z-index: 10;
}

    #menuDropdown a {
        color: #f1f5f9;
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 6px;
        transition: background 0.3s, color 0.3s;
    }

.menuBtn {
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
}


    .menuBtn:hover {
        background-color: #334155;
    }

.menuDropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #1e293b;
    border-radius: 10px;
    box-shadow: 0 0 10px #ffd000aa;
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 10;
}

.menuItem {
    padding: 10px;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
}

    .menuItem:hover {
        background: #ffd000aa;
        color: black;
    }

.menuUsername {
    font-size: 14px;
    position: relative;
}


.loginBtn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    background: #ffd000;
    color: black;
    font-family: var(--main-font);
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #ffd000aa;
    transition: all 0.2s ease;
}


    .loginBtn:hover {
        box-shadow: 0 0 15px 2px #ffd000ff;
    }

.loginModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loginBox {
    background: #1e293b;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 0 30px #ffd000aa;
    text-align: center;
}

    .loginBox input {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        margin-top: 10px;
        border-radius: 8px;
        border: none;
        font-family: var(--main-font);
        text-align: center;
    }

    .loginBox button {
        margin-top: 15px;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        border: none;
        background: #ffd000;
        color: black;
        font-weight: bold;
        cursor: pointer;
        box-shadow: none;
        transition: all 0.2s ease;
    }

        .loginBox button:hover {
            box-shadow: 0 0 15px #ffd000aa;
            transform: translateY(-1px);
        }

.registerCheckboxWrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

    .registerCheckboxWrapper input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    .registerCheckboxWrapper label {
        font-size: 14px;
        line-height: 16px;
        color: #c0c0c0;
        cursor: pointer;
    }

.register-submit-btn {
    width: 100% !important;
    height: 48px !important;
    background: #ffd000 !important;
    color: #1a202c !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
    margin-top: 10px;
}

    .register-submit-btn:hover {
        box-shadow: 0 0 20px 2px rgba(255, 208, 0, 0.4) !important;
        transform: translateY(-1px);
    }

    .register-submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        filter: grayscale(0.5);
    }

.tabHeader {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.tabLabel {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #ffd000;
    opacity: 0.4;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

    .tabLabel.active {
        opacity: 1;
        text-shadow: 0 0 10px #ffd000, 0 0 20px #ffd000;
    }

    .tabLabel:hover {
        opacity: 0.7;
    }

.tabContent button {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: #ffd000;
    color: black;
    font-weight: bold;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
}

    .tabContent button:hover {
        box-shadow: 0 0 15px #ffd000aa;
        transform: translateY(-1px);
    }

.tabLabel.active::after {
    content: "";
    display: block;
    height: 2px;
    background: #ffd000;
    margin-top: 5px;
    box-shadow: 0 0 10px #ffd000;
}

.tabContent input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #0f172a;
    color: #ffd000;
    text-align: left;
}

.balanceWalletWrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.balanceBox {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px 0 0 12px;
    background: #1e293b;
    box-sizing: border-box;
}

.walletModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9000;
    padding: 20px;
    box-sizing: border-box;
}
.depWith {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
  /*  background: rgba(0, 0, 0, 0.85);*/
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.walletBox {
    background: #1a202c;
    padding: 20px 30px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 400px;
    max-height: 80vh;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px #ffd000aa;
    text-shadow: 0 0 5px #ffd000aa;
    overflow: hidden;
}
.popupContent::-webkit-scrollbar {
    width: 6px;
}

.popupContent::-webkit-scrollbar-track {
    background: transparent;
}

.popupContent::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

    .popupContent::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }
    .walletBox h2 {
        text-align: center;
        text-shadow: none;
    }

.headerWithIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.headerIcon {
    width: 31px;
    height: 31px;
    object-fit: contain;
}


.walletBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 0 12px 12px 0;
    background: #1e293b;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

    .walletBtn:hover {
        background: #334155;
    }

.walletBalances {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.walletActions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

    .walletActions button {
        flex: 1;
        padding: 10px 0;
        background: #ffd000;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        color: black;
        font-weight: bold;
        transition: all 0.2s ease;
        box-shadow: 0 0 15px #ffd000aa, 0 0 25px #ffd00055 inset;
    }

        .walletActions button:hover {
            box-shadow: 0 0 20px #ffd000, 0 0 35px #ffd00055 inset;
            transform: translateY(-1px);
        }

.walletBtn:hover {
    box-shadow: 0 0 12px #ffd000aa inset;
}

.walletLogo {
    width: 23px;
    height: 23px;
}

.walletActionBtn {
    background-color: #1e40af;
    color: #fff;
    width: 85px;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
    font-size: 14px;
}

    .walletActionBtn:hover {
        background-color: #2563eb;
    }

.balanceRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: #1e293b;
    box-shadow: 0 0 5px #ffd000aa inset;
    transition: 0.2s;
}

    .balanceRow:hover {
        background: #1f2a3f;
        box-shadow: 0 0 15px #ffd000aa inset;
    }

.currencyLogo {
    width: 19px;
    height: 17px;
}

.currencyName {
    flex: 1;
    margin-left: 10px;
    font-weight: bold;
}

.currencyAmount {
    font-weight: bold;
    color: #22c55e;
}

.submitBtn {
    width: 100%;
    height: 45px;
    margin-top: 20px;
    transition: all 0.3s ease;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    cursor: pointer;
}

    .submitBtn:disabled {
        cursor: not-allowed;
        filter: grayscale(0.5);
        opacity: 0.5;
        pointer-events: none;
    }

.popupHeader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}


    .popupHeader h2 {
        margin: 0;
        flex: 1;
        text-align: center;
    }

.backBtn {
    background: #64748b;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .backBtn:hover {
        background: #94a3b8;
    }


.popupContent label {
    text-shadow: none;
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #9ca3af;
}

.popupContent select, .popupContent input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border-radius: 6px;
    border: none;
    background: #1e293b;
    color: #fff;
}

.popupContent {
    flex: 1;
    min-height: 0; 
    overflow-y: auto;
    padding-right: 5px;
}

.qrContainer img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: #1e293b;
    padding: 10px;
}

.tooltip {
    display: none;
    position: absolute;
    background: #22c55e;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 45px;
    right: 0;
    z-index: 9999;
    white-space: nowrap;
    pointer-events: none;
}

    .tooltip.show {
        display: block !important;
    }

.glow {
    animation: glowAnim 1s ease-in-out forwards;
}

@keyframes glowAnim {
    0% {
        color: white;
        text-shadow: 0 0 0px gold;
    }

    50% {
        color: gold;
        text-shadow: 0 0 10px gold, 0 0 20px gold;
    }

    100% {
        color: white;
        text-shadow: 0 0 0px gold;
    }
}

.withdrawSeparator {
    border: 0;
    border-top: 1px solid #333;
    margin: 15px 0 10px 0;
    width: 100%;
}

.withdrawInfoRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #94a3b8;
    text-shadow: none;
}

.smallCoinIcon {
    width: 14px;
    height: 14px;
}

.pasteBtn, .maxBtn {
    border-radius: 0 4px 4px 0 !important;
    margin-top: 0 !important;
    padding: 0 15px;
    height: auto;
    background-color: #334155;
}

.depositNote {
    font-size: 0.67rem;
    color: #d95727;
    margin: 6px 0 12px;
    text-align: center;
    font-weight: 500;
    text-shadow: none;
}

.betNote {
    font-size: 0.67rem;
    color: #d95727;
    margin: 6px 0 12px;
    text-align: center;
    font-weight: 500;
    text-shadow: none;
    display: none;
}


#depositQR {
    width: 160px;
    height: 160px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

    #depositQR[src="qrplaceholder.png"] {
        opacity: 0.5;
        filter: blur(1px);
    }


.modal-open .info-icon {
    pointer-events: none !important;
    opacity: 0.2;
}

.modal-open .info-tooltip {
    display: none !important;
}

.infoValue {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-shadow: none;
}

.customSelect {
    position: relative;
    width: 100%;
}

.selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

    .selected:hover {
        border-color: #475569;
    }

.options {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    overflow: hidden;
    z-index: 9999;
}

    .options div {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        color: white;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .options div:hover {
            background: #334155;
        }

        .options div:hover {
            box-shadow: inset 0 0 8px #ffd00055;
        }

.customSelect img {
    width: 19px;
    height: 16px;
    object-fit: contain;
}

.fieldContainer {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .fieldContainer label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        color: #9ca3af;
        text-shadow: none;
    }

.inputWithButton {
    display: flex;
    width: 100%;
    align-items: stretch;
}

    .inputWithButton textarea {
        flex: 1;
        margin: 0;
        padding: 10px 12px;
        font-size: 0.8rem;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 12px 0 0 12px;
        background: transparent;
        color: white;
        resize: none;
        overflow: hidden;
        min-height: 45px;
        max-height: 75px;
        line-height: 1.2;
        box-sizing: border-box;
        white-space: pre-wrap;
        word-break: break-all;
        transition: height 0.1s ease;
    }

        .inputWithButton textarea:focus {
            outline: none;
            box-shadow: none;
            border-color: #ccc;
        }

    .inputWithButton input {
        flex: 1;
        margin: 0;
        padding: 10px 12px;
        font-size: 0.95rem;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 12px 0 0 12px;
        background: transparent;
        color: white;
        outline: none;
        box-sizing: border-box;
    }

    .inputWithButton .maxBtn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0 16px;
        border: 1px solid #ccc;
        border-radius: 0 12px 12px 0;
        background-color: #4ade80;
        color: #fff;
        font-size: 0.95rem;
        font-weight: bold;
        cursor: pointer;
        box-sizing: border-box;
        transition: background 0.2s;
    }

        .inputWithButton .maxBtn:hover {
            background-color: #22c55e;
        }
.maxBtn:hover {
    background-color: #475569;
}
.availableLabel {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    text-shadow: none;
}

.qrContainer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loginBox button {
    transition: all 0.2s ease;
}

loginBox button:hover:not(:disabled) {
    background: #ffd000;
    color: black;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.6);
    transform: translateY(-1px);
}

.loginBox button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.3);
    transform: none;
}

.register-submit-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px 0;
}

.loginBox button:disabled,
.tabContent button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes floatUp {
    0% {
        top: var(--popup-start);
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        top: var(--popup-end);
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes floatDown {
    0% {
        top: var(--popup-end);
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        top: var(--popup-start);
        opacity: 0;
        transform: translateX(-50%) scale(1);
    }
}
.popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
}

.popupUp {
    animation: floatUp 1.2s ease-out forwards;
}

.popupDown {
    animation: floatDown 1.2s ease-out forwards;
}
.showPopup {
    animation: floatFade 1.2s ease-out forwards;
}



.wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    box-sizing: border-box;
}

.container {
    background: #1e293b;
    padding: 50px 30px 30px 30px;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 0 40px #ffd000aa;
    text-align: center;
    position: relative;
}

.betRow {
    display: flex;
    gap: 5px;
}

    .betRow input {
        flex: 1;
        padding: 10px;
        border-radius: 10px;
        border: none;
        background: #0f172a;
        color: #22c55e;
        font-weight: 500;
        text-align: center;
        font-size: 16px;
        -moz-appearance: textfield;
    }


        .betRow input::-webkit-outer-spin-button,
        .betRow input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

.info-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
}

.info-icon {
    width: 20px;
    height: 20px;
    border: 1px solid #ffd000;
    border-radius: 50%;
    color: #ffd000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'Arial', sans-serif;
    background: rgba(30, 41, 59, 0.5);
    transition: all 0.2s ease;
}

    .info-icon:hover {
        background: #ffd000;
        color: #1e293b;
        box-shadow: 0 0 10px rgba(255, 208, 0, 0.4);
    }

body:has(#loginModal[style*="display: flex"], #loginModal[style*="display: block"], #walletModal[style*="display: flex"], #depWith[style*="display: flex"], #depositModal[style*="display: flex"]) .info-icon {
    transition: none !important;
    opacity: 0.15;
    filter: grayscale(1);
    cursor: default;
}

body:has(#loginModal[style*="flex"], #walletModal[style*="flex"], #depWith[style*="flex"], #myBetsModal[style*="flex"]) .info-icon {
    transition: none !important;
    opacity: 0.15;
    filter: grayscale(1);
    cursor: default;
    pointer-events: none;
}

.info-tooltip {
    visibility: hidden;
    width: 200px;
    background-color: #1e293b;
    color: #c0c0c0;
    text-align: left;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    right: 0;
    top: 28px;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}

.info-container:hover .info-tooltip {
    visibility: visible;
    opacity: 1;
}

.info-tooltip.show {
    visibility: visible;
    opacity: 1;
}

.betRow button {
    width: 60px;
    height: 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    background: #ffd000;
    color: black;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

    .betRow button:first-of-type {
        font-size: 24px;
        padding-top: 2px;
    }

.halfText {
    font-size: 24px;
    display: inline-block;
}

.betRow button:hover {
    box-shadow: 0 0 15px #ffd000;
}

.sliderContainer {
    position: relative;
    width: 100%;
    margin-top: 45px;
}

.slider {
    width: 100%;
    margin: 0;
    height: 15px;
    border-radius: 6px;
    appearance: none;
    user-select: none;
    touch-action: none;
}

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 24px;
        height: 24px;
        background: linear-gradient(to bottom, #f1f5f9, #cbd5e1);
        border: 2px solid #64748b;
        border-radius: 6px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
        cursor: pointer;
    }

    .slider::-moz-range-thumb {
        width: 24px;
        height: 24px;
        background: linear-gradient(to bottom, #f1f5f9, #cbd5e1);
        border: 2px solid #64748b;
        border-radius: 6px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
        cursor: pointer;
    }

    .slider::-ms-thumb {
        width: 24px;
        height: 24px;
        background: linear-gradient(to bottom, #f1f5f9, #cbd5e1);
        border: 2px solid #64748b;
        border-radius: 6px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
        cursor: pointer;
    }

    /* Webkit (Chrome, Safari, Edge) */
    .slider::-webkit-slider-thumb:hover {
        background: linear-gradient(to bottom, #ffffff, #e2e8f0);
        border-color: #94a3b8;
    }

    /* Firefox */
    .slider::-moz-range-thumb:hover {
        background: linear-gradient(to bottom, #ffffff, #e2e8f0);
        border-color: #94a3b8;
    }


.target {
    font-size: 14px;
    display: inline-block;
    margin-top: 30px;
    width: 50%;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: space-between;
    width: 97%;
    margin: 0 auto;
    font-size: 14px;
}

    .stats span {
        padding: 0 5px;
    }

.toggle {
    margin: 20px 0;
}

@keyframes floatDown {
    0% {
        opacity: 1;
        top: 100px;
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        opacity: 0;
        top: 150px;
        transform: translateX(-50%) scale(1);
    }
}

.toggle button {
    width: 48%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    background: #0f172a;
    color: white;
    box-shadow: 0 0 0 transparent;
    transition: all 0.2s ease;
}

    .toggle button.active:hover {
        box-shadow: 0 0 15px #ffd000aa;
    }

    .toggle button:hover:not(.active) {
        box-shadow: 0 0 8px #ffd000;
    }

    .toggle button.active {
        background: #ffd000;
        color: black;
        text-shadow: 0.5px 0 0 black;
    }

    .toggle button:hover:not(.active) {
        box-shadow: 0 0 8px #ffd000;
    }

.rollBtn {
    width: 97%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg,#ffd000,#ffc400);
    color: black;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #ffd000aa;
    transition: all 0.2s ease;
}

    .rollBtn:hover:not(:disabled) {
        transform: scale(1.05);
        box-shadow: 0 0 20px #ffd000;
    }

    .rollBtn:disabled {
        opacity: 0.6;
        cursor: auto;
    }

.result {
    font-size: 18px;
    margin-top: 20px;
}

.win {
    color: #22c55e;
}

.lose {
    color: #ef4444;
}

button:focus {
    outline: none;
    box-shadow: none;
}

.rollPointer {
    position: absolute;
    width: 16px;
    height: 16px;
    top: -16px;
    pointer-events: none;
    left: 0;
    transition: left 0.5s ease;
    opacity: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBvbHlnb24gcG9pbnRzPSIwLDAgMTIsMCA2LDgiIGZpbGw9IiNmYWI1MTUiLz48L3N2Zz4=') no-repeat center center;
    background-size: contain;
}

.rollPointerLabel {
    position: absolute;
    top: -32px;
    font-size: 12px;
    color: #facc15;
    transform: translateX(-35%);
    pointer-events: none;
    font-weight: bold;
    opacity: 0;
}

#verifyBetBox {
    background: #1a202c;
    border: 1px solid #334155;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    max-height: calc(100% - 40px);
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 5px;
}

.verify-group {
    padding: 5px 0;
}

.verify-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(51, 65, 85, 0.5), transparent);
    margin: 20px 0;
}

.hash-display-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 12px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.5;
    color: #94a3b8;
    word-break: break-all;
    margin-bottom: 15px;
    user-select: all;
}

.step-container {
    background: rgba(30, 41, 59, 0.3);
    border-radius: 6px;
    padding: 10px 15px;
}

.step-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

    .step-row:last-child {
        border-bottom: none;
    }

.step-label {
    font-size: 12px;
    color: #64748b;
}

.step-value {
    font-family: monospace;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
}

.verify-final-result {
    margin-top: 20px;
    background: rgba(255, 208, 0, 0.03);
    border: 1px solid rgba(255, 208, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.final-roll-text {
    font-size: 32px;
    font-weight: 900;
    color: #ffd000;
    text-shadow: 0 0 15px rgba(255, 208, 0, 0.3);
    margin-top: 5px;
}

.fairnessInput[readonly] {
    cursor: default;
    background: rgba(0, 0, 0, 0.2) !important;
    color: #94a3b8;
}

.profileBox {
    width: 90%;
    max-width: 1000px;
    min-height: 500px;
    padding: 40px;
}

.historyTable thead th {
    background: transparent;
    box-shadow: none !important;
    text-shadow: none !important;
    border-bottom: 2px solid #334155;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
}

.historyTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .historyTable td {
        padding: 15px 10px;
        border-bottom: 1px solid #1e293b;
        vertical-align: middle;
    }


.closeMyBetsBtn {
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

    .closeMyBetsBtn:hover {
        color: #fff;
    }

.closeWalletBtn {
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    position: absolute;
    right: 0;
    font-family: sans-serif;
    font-weight: 100;
}

    .closeWalletBtn:hover {
        color: #fff;
    }

.text-win {
    color: #22c55e;
    font-weight: bold;
}

.text-lose {
    color: #ef4444;
}

.text-deposit {
    color: #3b82f6;
}

.copy-icon {
    width: 16px;
    height: 16px;
    display: block;
    color: inherit;
}

.text-withdraw {
    color: #f59e0b;
}

.logoLink {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

    .logoLink:hover {
        opacity: 0.8;
        cursor: pointer;
    }


.fairness-panel {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #94a3b8;
}

.fairness-stats {
    display: flex;
    gap: 15px;
}

    .fairness-stats b {
        color: #ffd000;
    }

.seed-preview {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fairness-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

    .fairness-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffd000;
    }

#fairnessModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.fairnessModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 65px 10px 10px 10px;
}

.fairness-size {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 100%;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

.modal-header {
    padding: 30px 30px 10px 30px;
    flex-shrink: 0;
}

.updateBtn {
    background: #ffd000 !important;
    color: #0f172a !important;
    width: 100px !important;
    border: 1px solid #334155 !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

    .updateBtn:hover {
        box-shadow: 0 0 15px 2px rgba(255, 208, 0, 0.4);
    }

    .updateBtn:active {
        transform: scale(0.96);
    }

    .updateBtn:disabled {
        opacity: 0.6;
        cursor: default !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        box-shadow: none;
    }

.pasteBtn, .maxBtn {
    border-radius: 0 4px 4px 0 !important;
    margin-top: 0 !important;
    padding: 0 15px;
    height: auto;
    background-color: #334155;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.result-reveal {
    color: #ffd000 !important;
    border-color: rgba(255, 208, 0, 0.4) !important;
}

.closeMyBetsBtn {
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

    .closeMyBetsBtn:hover {
        color: #fff;
    }

hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.inputWrapper small {
    margin-top: 10px !important;
    display: block !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

.fairnessInputLabel {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
    margin-bottom: 8px !important;
    text-shadow: none !important;
    display: block !important;
}

.inputGroup {
    display: flex !important;
    width: 100% !important;
    height: 42px !important;
    align-items: stretch !important;
}

    .inputGroup input {
        flex: 1 !important;
        background: #0f172a !important;
        border: 1px solid #334155 !important;
        border-right: none !important;
        color: #f8fafc !important;
        padding: 0 15px !important;
        border-radius: 6px 0 0 6px !important;
        font-size: 14px !important;
        outline: none !important;
        text-overflow: ellipsis;
    }

.fairnessInputWrapper {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 25px !important;
    position: relative;
}

@keyframes boxFlash {
    0% {
        background-color: rgba(176, 240, 58, 0.4);
        box-shadow: 0 0 10px rgba(176, 240, 58, 0.4);
    }

    100% {
        background-color: transparent;
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

.flash-effect {
    animation: boxFlash 0.6s ease-out;
}

.profileTab {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

    .profileTab.active {
        color: #ffd000;
        border-bottom: 2px solid #ffd000;
    }

.history-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
    border-radius: 8px;
    overflow-x: hidden;
}

.historyTable {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    .historyTable thead {
        background: rgba(255, 255, 255, 0.03);
    }

    .historyTable th {
        font-size: 11px !important;
        letter-spacing: 0.1em;
        padding: 8px 15px !important;
        background: #1e293b;
    }

    .historyTable td {
        padding: 4px 15px !important;
        font-size: 14px !important;
        line-height: 1.2;
        height: 32px;
    }

    .historyTable .win {
        color: #10b981;
        font-weight: 600;
    }

    .historyTable .lose {
        color: #ef4444;
    }

.verify-icon-btn {
    background: none;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 32px;
    color: #475569;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-left: auto;
}

    .verify-icon-btn svg {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
    }

    .verify-icon-btn:hover {
        box-shadow: 0 0 15px 2px #ffd000ff;
    }

        .verify-icon-btn:hover svg {
            transform: scale(1.2);
        }

.bet-row td {
    padding: 8px 4px;
    vertical-align: middle;
}

#verifyBetModal {
    z-index: 1100;
}

#myBetsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-body {
    flex: 1;
    min-height: 0;
    padding-right: 5px;
    scrollbar-gutter: stable;
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    flex-grow: 1;
}

#profileBox.fairness-size {
    max-height: 80vh;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

#gameFilterSelect {
    width: 100% !important;
    height: 42px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    color: #cbd5e1 !important;
    padding: 0 15px !important;
    font-size: 13px !important;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

    #gameFilterSelect:hover {
        border-color: #475569 !important;
    }

    #gameFilterSelect:focus {
        border-color: #ffd000 !important;
    }

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 10px;
    pointer-events: none;
}

#gameFilterSelect option {
    background: #1a202c;
    color: #cbd5e1;
    padding: 10px;
}

.historyTable th,
.historyTable td {
    text-align: left !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

    .historyTable th:last-child,
    .historyTable td:last-child {
        text-align: center !important;
        width: 60px !important;
        padding-right: 10px !important;
    }

    .historyTable td:last-child {
        vertical-align: middle !important;
        text-align: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        height: 32px;
    }

.historyTable th {
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

    .page-btn:hover:not(:disabled) {
        box-shadow: 0 0 15px 2px #ffd000ff;
    }

    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }

.tab-link {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 10px 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 13px;
    position: relative;
    transition: color 0.2s;
}

    .tab-link.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 2px;
        background: #3b82f6;
    }

    .tab-link.active {
        color: #fff;
        border-bottom: 2px solid #3b82f6;
    }

    .tab-link:hover {
        color: #fff;
    }

.modal-tabs {
    display: flex;
    gap: 20px;
    padding: 0 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #2d3748;
}

.status-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tx-link-icon {
    color: #3b82f6;
    text-decoration: none;
    font-size: 11px;
    font-family: monospace;
}

    .tx-link-icon:hover {
        text-decoration: underline;
        color: #60a5fa;
    }

.amount-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.amount-value {
    color: #10b981;
    font-weight: 800;
    font-size: 14px;
}

.amount-currency {
    font-size: 10px;
    font-weight: 400;
    color: #10b981;
}

#withdrawAmount::-webkit-outer-spin-button,
#withdrawAmount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#withdrawAmount {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* --------------------------------------------------------------------------------------- */

.modal-tab {
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease;
    color: #64748b;
}

    .modal-tab:hover {
        color: #fff !important;
        background: none !important;
    }

    .modal-tab.active {
        color: #fff !important;
        border-bottom: 2px solid #3b82f6;
        background: none !important;
    }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-container {
    background: #1a202c;
    border: 1px solid #2d3748;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2d3748;
}

    .settings-section label {
        display: block;
        color: #fff;
        font-weight: 700;
        margin-bottom: 10px;
        text-transform: uppercase;
        font-size: 13px;
    }

.section-desc {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 15px;
}

.status-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #2d3748;
    color: #94a3b8;
    margin-left: 10px;
}

.status-verified {
    background: #064e3b;
    color: #10b981;
}

.select-wrapper {
    position: relative;
    display: inline-block;
}

    .select-wrapper.compact {
        position: relative;
        width: 130px;
        background: transparent !important;
        overflow: hidden !important;
        border-radius: 6px;
    }

.profile-select {
    width: calc(100% + 20px) !important;
    height: 100% !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    padding: 0 40px 0 12px !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-clip: padding-box !important;
}

    .profile-select:focus,
    .profile-select:active,
    .profile-select:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

.select-wrapper.compact:hover {
    border-color: #475569 !important;
    background: #1e293b !important;
}

.profile-select:hover {
    border-color: #475569 !important;
    background: #1e293b !important;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 9px;
    pointer-events: none;
    z-index: 2;
}

.select-wrapper:hover .select-arrow {
    color: #cbd5e1;
}

.profile-select option {
    background-color: #1a202c !important;
    color: #cbd5e1 !important;
}

.profile-select::-ms-expand {
    display: none;
}

.profile-select::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

.custom-select-container {
    position: relative;
    width: 130px;
/*    user-select: none;*/
}

.custom-select-trigger {
    height: 34px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

    .custom-select-trigger:hover {
        border-color: #475569;
        background: #1e293b;
    }

.custom-options {
    display: none;
    position: fixed;
    background: #1a202c;
    border: 1px solid #334155;
    border-radius: 6px;
    z-index: 100000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    width: auto;
    min-width: 0;
}


.custom-option {
    padding: 10px 12px;
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

    .custom-option:hover {
        background: #2d3748;
        color: #fff;
    }


.custom-options.show {
    display: block;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: visible !important;
}

.settings-label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    width: 120px;
}


.close-icon-btn {
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-icon-btn:hover {
        color: #fff;
        transform: scale(1.1);
    }

    .close-icon-btn.small {
        font-size: 12px;
        padding: 5px;
    }

.mini-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

    .mini-btn:hover {
        border-color: #475569;
        color: #fff;
    }

    .mini-btn.gold {
        border-color: rgba(251, 191, 36, 0.4);
        color: #fbbf24;
    }

    .mini-btn.action {
        background: #fbbf24;
        color: #000;
        border: none;
        height: 24px;
    }

.text-link-btn {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

    .text-link-btn:hover {
        text-decoration: underline;
    }

.select-wrapper.compact {
    position: relative;
    width: 130px;
    height: 34px;
    background: #0f172a !important;
    border-radius: 6px;
    overflow: hidden !important;
    border: 1px solid #334155 !important;
}

#emailSection {
    width: 100%;
}

.yellow-glow-btn {
    background: #fbbf24;
    color: #000;
    border: none;
    height: 30px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 0 rgba(251, 191, 36, 0);
}

    .yellow-glow-btn:hover {
        background: #fcd34d;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
    }

    .yellow-glow-btn:active {
        transform: translateY(0);
    }

.mini-btn.gold-outline {
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    background: transparent;
    transition: all 0.2s;
}

    .mini-btn.gold-outline:hover {
        background: rgba(251, 191, 36, 0.1);
        border-color: #fbbf24;
        color: #fff;
    }


#newEmailInput:focus {
    border-color: #475569;
    background: rgba(0,0,0,0.5);
}


.close-icon-btn.small:hover {
    color: #ef4444;
}

.edit-email-btn {
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    color: #fbbf24;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .edit-email-btn:hover {
        background: rgba(251, 191, 36, 0.1);
        border-color: #fbbf24;
        color: #fff;
        box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
    }

.forgot-link {
    font-size: 11px;
    color: #fbbf24;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

    .forgot-link:hover {
        color: #fff;
        text-shadow: 0 0 8px #fbbf24;
    }

.inputWrapper {
    margin-bottom: 15px;
}


#usernameArea .inputWrapper > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#usernameArea .inputLabel {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

#passwordArea .inputWrapper > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#passwordArea .inputLabel {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}


.back-to-login {
    display: none;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .back-to-login:hover {
        color: #fbbf24;
        text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
    }

.cancel-link {
    cursor: pointer;
    color: #ef4444;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    opacity: 0.7;
}

    .cancel-link:hover {
        opacity: 1;
        text-decoration: underline;
        filter: brightness(1.2);
    }

#sendResetEmailBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

    #sendResetEmailBtn:disabled:hover {
        background: #1e293b !important;
        box-shadow: none !important;
    }
/* Unique Container - Full Width */
.history-filter-container {
    position: relative;
    width: 100%;
    user-select: none;
}

/* The Main Button */
.history-filter-trigger {
    width: 100%;
    height: 42px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .history-filter-trigger:hover {
        border-color: #475569;
    }

.history-filter-arrow {
    width: 10px;
    height: 10px;
    fill: #64748b;
}

.history-filter-options {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #1a202c;
    border: 1px solid #334155;
    border-radius: 6px;
    z-index: 999999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    box-sizing: border-box;
}

    .history-filter-options.show-menu {
        display: block !important;
    }

.history-filter-option {
    padding: 12px 15px;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

    .history-filter-option:hover {
        background: #2d3748;
        color: #fff;
    }

.copy-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
}

