/*=========================================
  USER PROMOTION & WALLET
  ---------------------------------------- */

/* ===== Wallet entry button in profile ===== */
.walletEntry{
    display:flex;
    justify-content:flex-end;
    margin-bottom:12px;
}

.walletEntryBtn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:linear-gradient(135deg,#00c853,#009624);
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,150,36,.25);
    transition:transform .15s ease;
}
.walletEntryBtn:hover{ transform:translateY(-1px); }
.walletEntryBtn i{ font-size:16px; }

/* ===== Promotion card (no promocode yet) ===== */
.promotionCard{
    background:linear-gradient(135deg,#0f2027,#203a43,#2c5364);
    color:#fff !important;
    text-align:center;
    padding:22px 18px !important;
    border-radius:14px;
    margin-bottom:14px;
    position:relative;
    overflow:hidden;
}
.promotionCard::before{
    content:"";
    position:absolute;
    inset:auto -30px -30px auto;
    width:140px; height:140px;
    background:radial-gradient(circle,rgba(0,200,83,.35),transparent 70%);
    pointer-events:none;
}
.promotionIcon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:52px; height:52px;
    background:rgba(255,255,255,.12);
    border-radius:50%;
    margin-bottom:10px;
    font-size:22px;
    color:#00e676;
}
.promotionCard h3{
    margin:0 0 6px;
    font-size:18px;
}
.promotionCard p{
    margin:0 0 14px;
    font-size:14px;
    opacity:.9;
    line-height:1.45;
}
.promotionCard p strong{ color:#00e676; }
.promotionBtn{
    background:#00c853;
    color:#fff;
    border:none;
    padding:11px 22px;
    border-radius:999px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:background .15s ease;
}
.promotionBtn:hover{ background:#00a844; }

/* ===== Wallet section ===== */
#wallet{ padding:20px 15px 30px; }

.walletHeader{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:14px;
}
.walletHeader h2{
    font-size:20px;
    color:#111;
    display:flex; align-items:center; gap:10px;
    margin:0;
}
.walletHeader h2 i{ color:#00c853; }

.walletCard{
    background:#fff;
    border-radius:14px;
    padding:16px;
    margin-bottom:14px;
    box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.walletCardHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}
.walletCard h3{ font-size:16px; margin:0 0 4px; color:#111; }
.walletCard h4{ font-size:15px; margin:12px 0 8px; color:#111; }

.walletLabel{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#777;
    margin-bottom:6px;
}
.walletHint{
    font-size:13px;
    color:#666;
    line-height:1.5;
    margin:6px 0 12px;
}

.walletInputRow{
    display:flex;
    gap:8px;
    margin-top:8px;
}
.walletInputRow input{
    flex:1;
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:15px;
    text-transform:uppercase;
    letter-spacing:1px;
    outline:none;
}
.walletInputRow input:focus{ border-color:#00c853; }
.walletInputRow button{
    background:#00c853;
    color:#fff;
    border:none;
    padding:0 18px;
    border-radius:8px;
    font-weight:600;
    cursor:pointer;
    font-size:14px;
}
.walletInputRow button:disabled{
    background:#9e9e9e;
    cursor:not-allowed;
}

.walletPromocodeRow{
    display:flex;
    align-items:center;
    gap:10px;
    background:#f5faf6;
    padding:12px 14px;
    border-radius:10px;
    border:1px dashed #00c853;
}
.walletPromocodeValue{
    flex:1;
    font-size:22px;
    font-weight:700;
    letter-spacing:3px;
    color:#111;
    text-align:center;
}

.walletIconBtn{
    background:transparent;
    border:none;
    color:#00c853;
    cursor:pointer;
    font-size:18px;
    padding:6px 8px;
    border-radius:8px;
    transition:background .15s ease;
}
.walletIconBtn:hover{ background:rgba(0,200,83,.1); }

.walletTextBtn{
    background:transparent;
    border:1px solid #e0e0e0;
    color:#333;
    padding:6px 10px;
    border-radius:8px;
    font-size:12px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.walletTextBtn:hover{ background:#f5f5f5; }

/* Balance card */
.walletBalanceCard{
    background:linear-gradient(135deg,#00c853,#00796b);
    color:#fff;
    text-align:center;
}
.walletBalanceCard .walletLabel{ color:rgba(255,255,255,.85); }
.walletBalance{
    font-size:34px;
    font-weight:700;
    margin:4px 0 10px;
    letter-spacing:.5px;
}
.walletBalanceMeta{
    display:flex;
    justify-content:space-around;
    font-size:13px;
    opacity:.95;
}
.walletBalanceMeta strong{ font-weight:700; }

/* Referral table */
.walletTableWrap{ overflow-x:auto; }
.walletTable{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}
.walletTable th,
.walletTable td{
    padding:10px 8px;
    text-align:left;
    border-bottom:1px solid #eee;
}
.walletTable th{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#777;
    font-weight:600;
}
.walletTable td:nth-child(2),
.walletTable th:nth-child(2){ text-align:right; white-space:nowrap; }
.walletTable td:nth-child(3),
.walletTable th:nth-child(3){ text-align:center; white-space:nowrap; }

.walletStatusBadge{
    display:inline-block;
    padding:3px 10px;
    border-radius:999px;
    background:#e8f5e9;
    color:#1b5e20;
    font-size:12px;
    font-weight:600;
}
.walletEmptyRow td{
    text-align:center !important;
    color:#999;
    padding:22px 8px;
    font-style:italic;
}

/* Withdraw button */
.walletPrimaryBtn{
    display:block;
    width:100%;
    background:#00c853;
    color:#fff;
    border:none;
    padding:13px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    margin-top:10px;
}
.walletPrimaryBtn:hover{ background:#00a844; }
.walletPrimaryBtn:disabled{ background:#9e9e9e; cursor:not-allowed; }

/* Account form */
.walletAccountForm{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #eee;
}
.walletAccountForm .inputGroup{
    margin-bottom:10px;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.walletAccountForm label{
    font-size:13px;
    color:#555;
    font-weight:500;
}
.walletAccountForm input,
.walletAccountForm select{
    padding:10px 12px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:14px;
    outline:none;
    background:#fff;
}
.walletAccountForm input:focus,
.walletAccountForm select:focus{ border-color:#00c853; }

.walletErrorText{
    color:#d32f2f;
    font-size:13px;
    margin-top:8px;
    min-height:18px;
}

/* Desktop */
@media (min-width:1024px){
    #wallet{ max-width:70%; margin:0 auto; }
}
