/* ============================================================
   GNCN Betting App â Aurelian Standard Design System
   Primary: #775a19 (Gold)  Surface: #ffffff  BG: #f8f9ff
   Fonts: Playfair Display / Work Sans / JetBrains Mono
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- App Container --- */
.gncn-app {
    font-family: 'Work Sans', sans-serif;
    /*max-width: 480px;*/
    margin: 0 auto;
    padding: 12px 12px 32px;
    box-sizing: border-box;
    background: #f8f9ff;
}

/* --- Base Card (betting sections keep dark theme) --- */
.gncn-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   AURELIAN STANDARD â LOGIN / OTP UI
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

/* Override auth card to be Aurelian light */
#auth-section.gncn-card {
    background: #ffffff;
    border: 1px solid #d1c5b4;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.aur-login-card {
    padding: 32px 28px;
}

/* Brand Header */
.aur-brand-header {
    text-align: center;
    margin-bottom: 28px;
}

.aur-brand-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.aur-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #0b1c30;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.aur-brand-sub {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #4e4639;
    margin: 0;
    line-height: 1.5;
}

/* Field label (caps) */
.aur-field-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4e4639;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Phone row */
.aur-phone-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1c5b4;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.15s ease;
    background: #ffffff;
}

.aur-phone-row:focus-within {
    border-color: #0b1c30;
}

.aur-country-code {
    display: flex;
    align-items: center;
    gap: 0;
    background: #eff4ff;
    padding: 0 12px;
    flex-shrink: 0;
}

.aur-cc-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0b1c30;
    white-space: nowrap;
}

.aur-cc-divider {
    width: 1px;
    height: 24px;
    background: #d1c5b4;
    margin-left: 12px;
}

.aur-phone-input {
    flex: 1;
    padding: 14px 14px;
    border: none;
    background: transparent;
    color: #0b1c30;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.04em;
    outline: none;
}

.aur-phone-input::placeholder {
    color: #7f7667;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

/* Steps */
.aur-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aur-step-divider {
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(
            90deg, #d1c5b4 0, #d1c5b4 6px, transparent 6px, transparent 12px
    );
    margin: 8px 0;
}

.aur-step-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4e4639;
    margin: 0;
    line-height: 1.5;
}

/* OTP & Name row */
.aur-otp-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aur-otp-input {
    flex: 1;
    padding: 14px;
    border: 1px solid #d1c5b4;
    border-radius: 4px;
    background: #ffffff;
    color: #0b1c30;
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.25em;
    outline: none;
    transition: border-color 0.15s;
}

.aur-otp-input:focus {
    border-color: #0b1c30;
}

.aur-otp-input::placeholder {
    font-size: 20px;
    letter-spacing: 0.15em;
    color: #d1c5b4;
}

.aur-text-input {
    flex: 1;
    padding: 14px;
    border: 1px solid #d1c5b4;
    border-radius: 4px;
    background: #ffffff;
    color: #0b1c30;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}

.aur-text-input:focus {
    border-color: #0b1c30;
}

.aur-text-input::placeholder {
    color: #7f7667;
}

/* Buttons */
.aur-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.aur-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: #775a19;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.aur-btn-primary:hover {
    background: #c5a059;
    color: #4e3700;
}

.aur-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.aur-btn-primary:disabled:hover {
    background: #775a19;
    color: #ffffff;
}

.aur-btn-verify {
    width: 100%;
    padding: 14px 18px;
    background: #775a19;
    color: #ffffff;
}

.aur-btn-verify:hover {
    background: #c5a059;
    color: #4e3700;
}

.aur-btn-verify:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* OTP message box */
.aur-otp-msg {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 4px;
    background: #eff4ff;
    border: 1px solid #d1c5b4;
    color: #4e4639;
    line-height: 1.6;
    text-align: center;
}


/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   AURELIAN STANDARD â DASHBOARD / BETTING UI
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

/* hide number spinners globally */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* ââ PROFILE WIDGET ââ */
.aur-profile-widget {
    background: #ffffff;
    border: 1px solid #d1c5b4;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.aur-profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.aur-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aur-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #775a19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.aur-profile-info {
    flex: 1;
    min-width: 0;
}

.aur-profile-name {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0b1c30;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aur-profile-phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #565e74;
    margin-top: 2px;
}

.aur-logout-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #d1c5b4;
    border-radius: 4px;
    background: #ffffff;
    color: #ba1a1a;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.aur-logout-btn:hover {
    background: #fff3f3;
}

.aur-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff4ff;
    border: 1px solid #d1c5b4;
    border-radius: 6px;
    padding: 12px 16px;
}

.aur-balance-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.aur-balance-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #565e74;
}

.aur-balance-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 700;
    color: #775a19;
    letter-spacing: -0.01em;
}

/* ââ DRAW BANNER ââ */
.aur-draw-banner {
    background: #0b1c30;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.aur-draw-meta {
    flex: 1;
}

.aur-draw-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aur-draw-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8fa3bd;
    min-width: 52px;
}

.aur-draw-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.aur-draw-cutoff {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    color: #e9c176;
}

.aur-status-pill {
    padding: 2px 10px;
    border-radius: 20px;
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.aur-status-active {
    background: rgba(29, 185, 84, 0.15);
    color: #1db954;
    border: 1px solid rgba(29, 185, 84, 0.3);
}

.aur-status-ended {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.aur-countdown-box {
    text-align: center;
    min-width: 72px;
}

.aur-countdown-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #c5a059;
    letter-spacing: 0.04em;
    animation: aur-pulse 1.5s ease-in-out infinite;
}

@keyframes aur-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.65;
    }
}

.aur-countdown-sub {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fa3bd;
    margin-top: 2px;
}

/* ââ SECTION HEADING ââ */
.aur-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d1c5b4;
}

.aur-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: #0b1c30;
}

/* ââ BET CARDS ââ */
.aur-bet-card {
    background: #ffffff;
    border: 1px solid #d1c5b4;
    border-radius: 8px;
    padding: 20px 18px;
    margin-bottom: 12px;
}

.aur-bet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d1c5b4;
}

.aur-bet-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #d3e4fe;
    border: 1px solid #d1c5b4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #0b1c30;
    flex-shrink: 0;
}

.aur-bet-card-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #775a19;
    line-height: 1;
}

.aur-bet-card-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #565e74;
    margin-top: 4px;
    line-height: 1.4;
}

/* Digit row */
.aur-digit-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.aur-digit-box {
    width: 64px;
    height: 76px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #0b1c30;
    background: #f8f9ff;
    border: 1px solid #d1c5b4;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
    line-height: 76px;
    padding: 0;
}

.aur-digit-box:focus {
    border-color: #0b1c30;
}

.aur-digit-box::placeholder {
    color: #d1c5b4;
    font-size: 24px;
}

.aur-digit-box-lg {
    width: 90px;
    height: 90px;
    font-size: 42px;
    line-height: 90px;
}

/* Detected badge */
.aur-detected-badge {
    text-align: center;
    background: #eff4ff;
    border: 1px solid #d1c5b4;
    color: #565e74;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 auto 12px;
    width: fit-content;
}

/* Stake input */
.aur-stake-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #565e74;
    margin-bottom: 8px;
    text-align: center;
}

.aur-stake-wrap {
    position: relative;
    margin-bottom: 10px;
}

.aur-stake-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: #565e74;
    pointer-events: none;
}

.aur-stake-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 13px 34px;
    border: 1px solid #d1c5b4;
    border-radius: 6px;
    background: #f8f9ff;
    color: #0b1c30;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.aur-stake-input:focus {
    border-color: #0b1c30;
}

.aur-stake-input::placeholder {
    color: #7f7667;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
}

.aur-stake-input::-webkit-outer-spin-button,
.aur-stake-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Quick chips */
.aur-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.aur-chip {
    flex: 1;
    min-width: 52px;
    padding: 8px 4px;
    border: 1px solid #d1c5b4;
    border-radius: 4px;
    background: #f8f9ff;
    color: #4e4639;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    text-align: center;
}

.aur-chip:hover {
    border-color: #775a19;
    color: #775a19;
}

.aur-chip:active {
    transform: scale(0.97);
}

/* Win preview */
.aur-win-preview {
    background: #eff4ff;
    border: 1px solid #d1c5b4;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    color: #565e74;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Place bet button */
.aur-place-btn {
    width: 100%;
    padding: 15px 20px;
    margin-top: 4px;
    background: #775a19;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
}

.aur-place-btn:hover {
    opacity: 0.88;
}

.aur-place-btn:active {
    transform: scale(0.99);
}

.aur-place-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message area */
.aur-msg-area {
    margin-top: 10px;
}

.aur-success-msg {
    background: #edfbf3;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.aur-error-msg {
    background: #fff3f3;
    border: 1px solid #fca5a5;
    color: #ba1a1a;
    border-radius: 6px;
    padding: 10px 14px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

/* ââ WIDGETS (Active Bets / Recent Results) ââ */
.aur-widget {
    background: #ffffff;
    border: 1px solid #d1c5b4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.aur-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9ff;
    border-bottom: 1px solid #d1c5b4;
    padding: 14px 16px;
}

.aur-widget-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0b1c30;
}

.aur-empty-msg {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #7f7667;
    text-align: center;
    padding: 20px 16px;
    margin: 0;
}

/* ââ BET ITEMS (rendered by betting.js) ââ */
.gncn-app .bet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d1c5b4;
    padding: 14px 16px;
    gap: 10px;
    transition: background 0.1s;
    position: relative;
    overflow: hidden;
}

.gncn-app .bet-item:last-child {
    border-bottom: none;
}

.gncn-app .bet-item:hover {
    background: #f8f9ff;
}

.gncn-app .bet-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gncn-app .bet-badge {
    border: 1px solid #775a19;
    color: #775a19;
    font-family: 'Work Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gncn-app .bet-content {
    flex: 1;
    min-width: 0;
}

.gncn-app .bet-main {
    font-family: 'JetBrains Mono', monospace;
    color: #0b1c30;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gncn-app .bet-sub {
    font-family: 'Work Sans', sans-serif;
    color: #565e74;
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gncn-app .bet-right {
    text-align: right;
    flex-shrink: 0;
}

.gncn-app .bet-reward,
.gncn-app .history-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
}

.gncn-app .no-bets-msg {
    font-family: 'Work Sans', sans-serif;
    color: #7f7667;
    font-size: 13px;
    text-align: center;
    padding: 20px 16px;
}

/* Result left colour strip */
.gncn-app .bet-item.result-won {
    border-left: 3px solid #1db954;
}

.gncn-app .bet-item.result-lost {
    border-left: 3px solid #ba1a1a;
}

.gncn-app .history-amount.won {
    color: #166534;
}

.gncn-app .history-amount.lost {
    color: #ba1a1a;
}

/* Legacy selectors still emitted by old betting.js render fns â map to Aurelian */
.gncn-empty-msg {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #7f7667;
    text-align: center;
    padding: 20px 16px;
    margin: 0;
}

/* ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   RECENT RESULTS RE-DESIGN (Vanilla CSS)
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

.history-section-card {
    background-color: #ffffff;
    border: 1px solid #d1c5b4;
    border-radius: 0.75rem;
    overflow: hidden;
    font-family: 'Work Sans', sans-serif;
    color: #0b1c30;
    margin: 1rem auto 0;
}

.history-section-header {
    background-color: #f8f9ff;
    border-bottom: 1px solid #d1c5b4;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-section-header .material-symbols-outlined {
    color: #775a19;
    font-size: 1.25rem;
}

.history-section-header h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0b1c30;
    margin: 0;
}

.history-list-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    border: 1px solid rgba(209, 197, 180, 0.5);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: #ffffff;
    transition: background-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-item:hover {
    background-color: #f8f9ff;
}

.history-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.history-item-top-col {
    display: flex;
    flex-direction: column;
}

.history-item-top-col.right {
    align-items: flex-end;
}

.history-item-pill {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    padding: 0 0.375rem;
    border-radius: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.25;
    width: fit-content;
}

.history-item-pill.badge-won {
    background-color: #ffdc8f;
    color: #6b4900;
}

.history-item-pill.badge-pending {
    background-color: #ffefbf;
    color: #be7700;
}

.history-item-pill.badge-lost {
    background-color: #dae2fd;
    color: #5c647a;
}

.history-item-pill.result-won {
    background-color: #00a107;
    color: #ffffff;
}

.history-item-pill.result-lost {
    background-color: rgba(186, 26, 26, 0.1);
    color: rgb(186 26 26 / 0.75);
}

.history-item-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 11.5px;
    color: #565e74;
    line-height: 1.25;
    margin-top: 4px;
    text-align: start;
    margin-left: 4px;
}

.history-item-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 4px;
    border-radius: 4px;
    padding: 4px;
    translate: 4px;
}

.history-item-amount.won {
    color: #007905;
    background-color: rgb(137 255 0 / 25%);
}

.history-item-amount.pending {
    color: #d07c00;
    background-color: rgb(255 255 255);
}

.history-item-amount.lost {
    color: #ba1a1a;
}

.history-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(209, 197, 180, 0.2);
    padding-top: 0.25rem;
}

.history-item-bet-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-item-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    color: rgba(86, 94, 116, 0.6);
    text-transform: uppercase;
}

.history-item-bet-val {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b1c30;
    letter-spacing: 0.1em;
}

.history-item-stake-group {
    display: flex;
    gap: 0.75rem;
}

.history-item-stake-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-item-stake-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #0b1c30;
    font-weight: 500;
}


/* %% Transactions UI %% */
.tx-list-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #d1c5b4;
    overflow: hidden;
}
.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
}
.tx-item:last-child {
    border-bottom: none;
}
.tx-item:hover {
    background: #f8f9ff;
}
.tx-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tx-icon-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tx-icon-col .material-symbols-outlined.withdraw { color: #ba1a1a; }
.tx-icon-col .material-symbols-outlined.deposit { color: #16a34a; }
.tx-type-status {
    display: flex;
    flex-direction: column;
}
.tx-type {
    font-size: 12px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
}
.tx-type.withdraw { color: #ba1a1a; }
.tx-type.deposit { color: #16a34a; }

.tx-status {
    font-size: 12px;
    font-family: 'Work Sans', sans-serif;
    color: #5c647a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.tx-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.tx-status-dot.success, .tx-status-dot.approved { background-color: #16a34a; }
.tx-status-dot.pending { background-color: #f59e0b; }
.tx-status-dot.rejected { background-color: #ba1a1a; }

.tx-middle {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
}
.tx-middle.withdraw { color: #ba1a1a; }
.tx-middle.deposit { color: #16a34a; }

.tx-right {
    font-size: 11px;
    font-family: 'Work Sans', sans-serif;
    color: #5c647a;
    text-align: right;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .tx-item {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .tx-right {
        width: 100%;
        text-align: left;
        margin-top: 8px;
        padding-left: 40px;
    }
}

