body { background: linear-gradient(to bottom, #f5f5f5 0%, #e2e2e2 100%); min-height: 100vh; margin: 0; font-family:sans-serif; }
header { background:#4f8cff; color:#fff; padding:20px; text-align:center; font-size:1.5em; font-weight:bold; }
.content { padding:10px 6px 80px 6px; position: relative; z-index: 1; }
.curved-bg {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(120deg, #4f8cff 0%, #7c4dff 100%);
    border-bottom-left-radius: 40% 30px;
    border-bottom-right-radius: 40% 30px;
    z-index: 0;
}
.withdraw-box { background:#fff; border-radius:8px; box-shadow:0 2px 8px #0001; padding:20px; text-align:center; margin-bottom:20px; }
.withdraw-box input, .withdraw-box select { width:90%; padding:10px; margin:8px 0; border-radius:6px; border:1px solid #ddd; }
.withdraw-box button { background:#4f8cff; color:#fff; border:none; padding:10px 24px; border-radius:6px; font-size:1em; cursor:pointer; }
.nav-bottom { 
    position:fixed; 
    left:0; 
    right:0; 
    bottom:0; 
    background:linear-gradient(120deg, #ff9800 0%, #ff7043 100%);
    display:flex; 
    justify-content:space-around; 
    align-items:center; 
    height:65px; 
    z-index:100; 
    box-shadow:0 -6px 28px rgba(255, 112, 67, 0.35);
    border-radius:20px 20px 0 0;
}
.nav-bottom a { 
    color:rgba(255,255,255,0.8); 
    text-decoration:none; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    font-size:0.85em; 
    font-weight:500;
    transition:all 0.3s ease;
    padding:8px 12px; 
    border-radius:12px; 
    position:relative;
    -webkit-tap-highlight-color: transparent;
}
.nav-bottom a.active { 
    color:#ffffff; 
    background:rgba(255,255,255,0.15); 
    transform:translateY(-3px) scale(1.05);
}
.nav-bottom i { 
    font-size:1.8em; 
    margin-bottom:4px; 
    transition:all 0.3s ease;
}
.nav-bottom a:active i {
    transform: scale(0.9);
}
.modern-point-box {
    background: linear-gradient(120deg, #d32f2f 0%, #ff9800 100%);
    border-radius: 20px;
    color: #fff;
    padding: 28px 32px 22px 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px #d32f2f33;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.mpb-header {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 8px;
}
.mpb-main {
    display: flex;
    align-items: center;
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 18px;
    gap: 16px;
}
.mpb-main i {
    font-size: 1.2em;
    margin-right: 8px;
    color: #fffde4;
    filter: drop-shadow(0 2px 6px #0002);
}
.mpb-points {
    letter-spacing: 2px;
}
.mpb-info-card {
    background: linear-gradient(120deg, #1976d2cc 0%, #2196f3cc 100%);
    border-radius: 10px;
    padding: 10px 18px;
    margin-top: 2px;
}
.mpb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff22;
    padding: 7px 0;
    font-size: 1.08em;
}
.mpb-info-row:last-child {
    border-bottom: none;
}
.modern-point-box.shopeepay-style {
    background: linear-gradient(120deg, #ff7043 0%, #ff9800 100%);
    border-radius: 22px;
    color: #fff;
    padding: 0;
    margin: 0 0 12px 0;
    box-shadow: 0 4px 24px #ff704333;
    width: 100%;
    max-width: 100vw;
    position: relative;
}
.sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 0 22px;
    margin-bottom: 0;
}
.sp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
}
.sp-icon {
    background: transparent !important;
    color: #fff !important;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em !important;
    box-shadow: none !important;
    padding: 0;
}
.sp-label {
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 2px;
}
.sp-balance {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.sp-action {
    background: #fff3e0;
    color: #ff7043;
    border: none;
    border-radius: 16px;
    padding: 6px 10px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #ff704322;
    transition: background 0.2s;
}
.sp-action:hover {
    background: #ffe0b2;
}
.mpb-info-card.sp-info-card {
    margin-top: 2px;
    background: linear-gradient(120deg, #ff7043cc 0%, #ff9800cc 100%);
    border-radius: 0 0 22px 22px;
    padding: 8px 22px 10px 22px;
}
.mpb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff22;
    padding: 7px 0;
    font-size: 1.08em;
}
.mpb-info-row:last-child {
    border-bottom: none;
}
@media (max-width: 600px) {
    .modern-point-box.shopeepay-style {
        border-radius: 16px;
        padding: 0;
    }
    .sp-header, .mpb-info-card.sp-info-card {
        padding-left: 10px;
        padding-right: 10px;
    }
    .sp-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2em;
    }
    .sp-label {
        font-size: 1em;
    }
    .sp-balance {
        font-size: 1.8em !important;
    }
    .mpb-info-row {
        font-size: 0.98em;
        padding: 5px 0;
    }
}
.withdraw-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.withdraw-tab {
    flex: 1 1 0;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 1.08em;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    outline: none;
    transition: color 0.2s, background 0.2s;
}
.withdraw-tab.active {
    color: #4f8cff;
    border-bottom: 3px solid #4f8cff;
    background: #f7faff;
}
.withdraw-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.withdraw-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 8px #0001;
    position: relative;
}
.withdraw-item:hover {
    border-color: #4f8cff88;
    box-shadow: 0 4px 12px #0001;
}
.withdraw-item.selected {
    border: 2px solid #2196f3;
    box-shadow: 0 4px 16px #2196f322;
}
.withdraw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.withdraw-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}
.withdraw-badge {
    background: #ff4081;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    position: absolute;
    top: 14px;
    right: 18px;
}
.withdraw-detail {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.withdraw-cost {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #888;
    font-weight: 500;
}
.withdraw-icon {
    display: inline-flex;
    align-items: center;
}
.withdraw-eq {
    font-size: 1.1em;
    font-weight: 600;
    color: #444;
}
@media (max-width: 600px) {
    .withdraw-tabs, .withdraw-list {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .withdraw-item {
        padding: 12px 6px 10px 10px;
        border-radius: 10px;
    }
    .withdraw-title {
        font-size: 1em;
    }
}
.withdraw-btn {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 22px auto 0 auto;
    background: linear-gradient(90deg, #ff9800 0%, #ff7043 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    font-size: 1.15em;
    font-weight: bold;
    box-shadow: 0 2px 8px #ff980033;
    cursor: pointer;
    transition: background 0.2s;
}
.withdraw-btn:hover {
    background: linear-gradient(90deg, #ff7043 0%, #ff9800 100%);
}
.withdraw-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 6px;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
}
.withdraw-title-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 2px;
    vertical-align: middle;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
}
/* Popup styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35); /* semi-transparent dark overlay */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-box {
    background: linear-gradient(120deg, #ff7043 0%, #ff9800 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px #2196f344;
    padding: 0 0 18px 0;
    min-width: 90vw;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.25s cubic-bezier(.4,2,.6,1) both;
}
@media (max-width: 480px) {
    .modal-box {
        min-width: 0;
        width: 100%;
        max-width: 98vw;
        padding: 18px 6vw 18px 6vw;
        border-radius: 18px;
    }
    .modal-title {
        font-size: 1.05em;
    }
    .modal-input {
        font-size: 1em;
        padding: 12px 10px;
        width: 92%;
    }
    .modal-btn {
        font-size: 1em;
        padding: 10px 0;
        width: 100%;
    }
    .modal-btn-row {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .history-modal-box {
        width: 95vw;
        max-width: 95vw;
        padding: 12px;
        border-radius: 18px;
    }
    .history-modal-title {
        font-size: 1.1em;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .history-item-logo {
        width: 28px;
        height: 28px;
    }
    .history-item-title {
        font-size: 0.95em;
    }
    .history-item-date {
        font-size: 0.8em;
    }
    .history-item-status {
        font-size: 0.85em;
        padding: 2px 6px;
    }
    .nav-bottom {
        height: 65px;
        border-radius: 16px 16px 0 0;
    }
    .nav-bottom a {
        padding: 10px 12px;
        font-size: 0.8em;
    }
    .nav-bottom i {
        font-size: 1.4em;
    }
    .nav-bottom a.active::before {
        width: 5px;
        height: 5px;
    }
    .content {
        padding: 10px 6px 80px 6px;
    }
    .sp-balance {
        font-size: 1.6em !important;
    }
}
.modal-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: linear-gradient(120deg, #ff7043 0%, #ff9800 100%);
    padding: 18px 0 16px 0;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 8px #2196f333;
    width: 100%;
    margin-bottom: 0;
}
.modal-input {
    width: 75%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #e0e7ff;
    font-size: 1.1em;
    margin-bottom: 18px;
    outline: none;
    transition: border 0.2s;
    background: #f7faff;
    margin-top: 18px;
}
.modal-input:focus {
    border-color: #2196f3;
    background: #fff;
}
.modal-btn-row {
    display: flex;
    gap: 14px;
    width: 100%;
    justify-content: flex-end;
}
.modal-btn {
    background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px #2196f333;
    transition: background 0.2s;
    flex: 1 1 0;
}
.modal-btn.cancel {
    background: #e0e7ff;
    color: #2196f3;
}

.history-btn {
    margin-top: 12px;
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
}

.history-btn:hover {
    background: linear-gradient(90deg, #495057 0%, #6c757d 100%);
}

/* History Modal */
.history-modal-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px #2196f344;
    padding: 0 0 18px 0;
    min-width: 90vw;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.25s cubic-bezier(.4,2,.6,1) both;
    position: relative;
    overflow: hidden;
}

.history-modal-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    background: linear-gradient(120deg, #ff7043 0%, #ff9800 100%);
    border-radius: 24px 24px 0 0;
    padding: 18px 0 16px 0;
}

.history-list {
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 8px; /* For scrollbar */
}

.history-item {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.history-item-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: 2px;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.history-item-title {
    font-weight: 600;
    color: #333;
}

.history-item-date {
    font-size: 0.9em;
    color: #888;
}

.history-item-status {
    font-weight: 600;
    font-size: 0.95em;
    padding: 3px 16px;
    border-radius: 6px;
    color: #fff;
    margin-left: auto;
    margin-right: 2px;
}

.history-item-status.success {
    background-color: #4caf50;
}

.history-item-status.pending {
    background-color: #ff9800;
}

.history-item-status.rejected {
    background-color: #f44336;
}

.close-history-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f1f1f1;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-history-modal:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.content.blur {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}

.withdraw-btn i.fa-money-bill-transfer {
    animation: shakeMoney 1.5s infinite cubic-bezier(.36,.07,.19,.97);
    display: inline-block;
}

@keyframes shakeMoney {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
    100% { transform: translateX(0); }
} 