/* ===================================
   UUG FRONTEND ï¿½ GLOBAL STYLES
   Stats, dashboards, shared UI
=================================== */

/* Wrapper */
.uug-stats-summary-wrapper {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Card */
.uug-stats-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Header */
.uug-stats-header {
    background: #000;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 18px;
    letter-spacing: 0.4px;
}

/* Body (shared for all stats blocks) */
.uug-stats-summary,
.uug-stats-games {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}



/* ===============================
   STATS ROWS (FINAL GRID SYSTEM)
================================ */

.uug-stat-row{
    display: grid;
    grid-template-columns: 50% 50%;
    column-gap: 12px;
    margin-bottom: 12px;
}

.uug-stat-label{
    font-size: 14px;
    font-weight: 500;
    color: #000;
    word-break: break-word;
}

.uug-stat-value{
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-align: right;
    align-self: start;

    white-space: normal;
    overflow-wrap: anywhere;

    padding-left: 8px;   /* space from label */
    padding-right: 8px;  /* ðŸ”¥ FIX: space from card edge */
}





/* ===============================
   GAME STATS
================================ */

.uug-game-block {
    padding-top: 18px;
    margin-top: 6px;
}

.uug-game-block:not(:first-child) {
    border-top: 1px solid #eee;
}

.uug-game-title {
    font-weight: 530;
    font-size: 14px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 12px;
}

.uug-game-block .uug-stat-row {
    margin-bottom: 12px;
}

.uug-game-block .uug-stat-row:last-child {
    margin-bottom: 0;
}

/* ===============================
   REWARD FORM (FINAL)
================================ */

.uug-withdraw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

/* Label */
.uug-withdraw-label {
    font-size: 14px;
    font-weight: 500;
    color: #000;
}

/* Input ï¿½ FULL WIDTH, STABLE */
.uug-withdraw-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Prevent layout shift on validation */
.uug-withdraw-input:focus,
.uug-withdraw-input:invalid {
    outline: none;
    box-shadow: none;
}

/* Button */
.uug-withdraw-btn {
    background: #000;
    color: #fff;
    border: none;

    display: inline-flex;        /* 🔥 key fix */
    justify-content: center;
    align-items: center;

    width: auto;                 /* 🔥 stops stretching */
    padding: 10px 18px;

    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;

    margin-top: 16px;             /* 🔥 reduced from 18px */
}

.uug-withdraw-btn:hover {
    opacity: 0.85;
}


.uug-btn-row {
    display: flex;
    justify-content: center;
}



/* Messages */
.uug-success {
    color: #0a7a2d;
    font-weight: 600;
    margin-top: 8px;
}

.uug-error {
    color: #b00020;
    font-weight: 600;
    margin-top: 8px;
}



/* Reward limits text */
.uug-withdraw-limits {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;      /* bold */
    color: #444;           /* readable */
}



/* Reward amount input */
#uug-withdraw-amount {
    height: 48px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #111;                /* darker text */
    border-radius: 8px;         /* modern curve */
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder (lighter, but readable) */
#uug-withdraw-amount::placeholder {
    color: #888;
    font-weight: 400;
}

/* Focus state */
#uug-withdraw-amount:focus {
    border-color: #0073aa;      /* WordPress blue */
    box-shadow: 0 0 0 2px rgba(0,115,170,0.15);
}



/* ===============================
   UUG WALLET GLOBAL WRAPPER
================================ */
.uug-wallet-wrapper {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Card spacing */
.uug-wallet-wrapper .uug-card {
    margin-bottom: 24px;
}



/* ================= PAGINATION FINTECH STYLE ================= */

.uug-pagination{
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    margin-top:20px;
    flex-wrap:wrap;
}

.uug-page-link,
.uug-page-current,
.uug-page-btn{
    background:#000;
    color:#fff;
    padding:8px 14px;
    border-radius:999px;
    text-decoration:none;
    font-size:14px;
}

.uug-page-link:hover,
.uug-page-btn:hover{
    background:#222;
}

.uug-page-current{
    background:#7a003c; /* wine active */
}

.uug-page-dots{
    padding:0 6px;
    font-weight:bold;
}


/* ===============================
   UUG TRANSACTION MOBILE WRAP FIX
================================ */



.uug-stat-row .uug-stat-value button {
    margin-top: 4px;
}


/* Transaction ID layout */
/* TX layout */
.uug-tx-wrap{
    display:flex;
    flex-direction:column;
    gap:6px;
}

/* Copy button fintech style */
.uug-copy-btn{
    background:#000;
    color:#fff;
    border:none;
    padding:6px 12px;
    border-radius:6px;
    font-size:13px;
    cursor:pointer;
    width:fit-content;
}

.uug-copy-btn:hover{
    opacity:.85;
}

/* ===============================
   UUG COPY TOAST â€” TOP POSITION
================================ */
.uug-toast {
    position: fixed;
    top: 20px;              /* â¬… move to top */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 9999;
}

/* Visible state */
.uug-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}




.uug-pagination-wrap {
    text-align: center;
    margin: 25px 0 10px;
}

.uug-pagination-wrap .page-numbers,
.uug-pagination-wrap .uug-page-btn {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    background: #f1f1f1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    text-decoration: none;
    color: #2271b1;
    font-weight: 500;
}

.uug-pagination-wrap .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.uug-pagination-wrap .uug-page-btn:hover,
.uug-pagination-wrap .page-numbers:hover {
    background: #e2e6ea;
}


/* =====================================================
   UUG ENHANCED TOAST (SAFE ADD-ON â€” NO OVERWRITE)
===================================================== */

.uug-toast-ux {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);

    min-width: 260px;
    max-width: 92%;

    padding: 14px 20px;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;

    color: #fff;
    background: #000;

    box-shadow: 0 8px 24px rgba(0,0,0,0.25);

    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;

    z-index: 99999;
}

.uug-toast-ux.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* SUCCESS */
.uug-toast-ux.success {
    background: #16a34a;
}

/* ERROR */
.uug-toast-ux.error {
    background: #dc2626;
}

/* MOBILE SAFE */
@media (max-width: 480px) {
    .uug-toast-ux {
        top: 12px;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 14px;
    }
}


/* Task Stats Title */
.uug-task-title{
    text-align:center;
    font-size:14px;
    font-weight:530;
    letter-spacing:1px;
    margin-bottom:8px;
    color:#000;
    
}

/* Divider */
.uug-divider{
    border:none;
    border-top:1px solid #ddd;
    margin:20px 0;
}

/* Total block */
.uug-total-block{
    border-top:2px solid #000;
    margin-top:16px;
    padding-top:12px;
    
}