/* =========================================
   MEGASTAKE SPA WALLET STYLES
   Styles are restricted to .wallet-view
========================================= */

.wallet-view {
    background: #0d111f;
    color: #fff;
    font-family: Arial, sans-serif;
    min-height: 100%;
}


/* =========================================
   WALLET ELEMENT SIZING
========================================= */

.wallet-view *,
.wallet-view *::before,
.wallet-view *::after {
    box-sizing: border-box;
}

/* Keep normal text and form controls in Arial */

.wallet-view {
    font-family: Arial, sans-serif;
}

.wallet-view button,
.wallet-view input,
.wallet-view select,
.wallet-view textarea {
    font-family: Arial, sans-serif;
}





/* =========================================
   WALLET PAGE
========================================= */
.wallet-view .wallet-page {
    padding: 12px 10px 30px;
    margin-top: 0;
}
 
/* =========================================
   PHONE
========================================= */

.wallet-view .phone-row {
    font-size: 14px;
    padding: 0 5px;
    margin-bottom: 15px;
}

.wallet-view .phone-row span {
    color: #bdbdbd;
    margin-right: 6px;
}

/* =========================================
   TABS
========================================= */

.wallet-view .wallet-tabs {
    display: flex;
    gap: 8px;
    padding: 0 5px;
    margin-bottom: 18px;
}

.wallet-view .tab-btn {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
}

.wallet-view .tab-btn.active {
    background: #f8c21c;
    color: #000;
    font-weight: bold;
}

/* =========================================
   SECTIONS
========================================= */

.wallet-view #depositSection,
.wallet-view #withdrawSection {
    padding: 0 5px;
}

/* =========================================
   PAYMENT METHODS
========================================= */

.wallet-view .payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wallet-view .method-card {
    width: 140px;
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
}

.wallet-view .method-card.active {
    border-color: #f8c21c;
}

.wallet-view .method-card img {
    width: 100%;
    height: 65px;
    display: block;
    object-fit: cover;
}

.wallet-view .method-card span {
    display: block;
    padding: 10px;
    font-size: 14px;
}

.wallet-view .method-title {
    font-size: 16px;
    margin-bottom: 12px;
}

/* =========================================
   AMOUNT INPUT
========================================= */

.wallet-view .amount-box {
    height: 58px;
    border: 2px solid #4b5563;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
}

.wallet-view .currency {
    width: 55px;
    flex-shrink: 0;
    background: #1f2430;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wallet-view .amount-box input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 24px;
    padding: 0 12px;
}

.wallet-view .limits,
.wallet-view .available-balance {
    font-size: 13px;
    color: #d1d5db;
    margin: 12px 0;
}

/* =========================================
   QUICK AMOUNT BUTTONS
========================================= */

.wallet-view .quick-amounts {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.wallet-view .quick-amounts::-webkit-scrollbar {
    display: none;
}

.wallet-view .quick-amounts button {
    min-width: 70px;
    height: 42px;
    border: none;
    border-radius: 22px;
    background: #090b10;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.wallet-view .quick-amounts .selected {
    background: #7c4dff;
}

/* =========================================
   MAIN ACTION BUTTONS
========================================= */

.wallet-view .main-action-btn {
    width: 100%;
    min-height: 55px;
    border: none;
    border-radius: 30px;
    background: #f8c21c;
    color: #000;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.wallet-view .main-action-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.wallet-view .main-action-btn.withdraw {
    background: #555b63;
    color: #fff;
}

/* =========================================
   FOOTER
========================================= */

.wallet-view .footer-area {
    background: #0d111f;
    color: #fff;
    padding: 25px 20px 8px;
}

.wallet-view .footer-logo-text {
    font-size: 26px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
}

.wallet-view .footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.wallet-view .footer-columns h4 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
}

.wallet-view .footer-columns > div {
    flex: 1;
    min-width: 0;
}

.wallet-view .footer-columns a,
.wallet-view .footer-columns p {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wallet-view .footer-columns a:hover {
    color: #fff;
}

.wallet-view .footer-area h3 {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 12px;
}

/* =========================================
   TRUST LINKS
========================================= */

.wallet-view .trust-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.wallet-view .trust-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
}

.wallet-view .trust-links a:hover {
    color: #fff;
}


/* =========================================
   PAYMENT ICONS — MATCH ORIGINAL WALLET CSS
========================================= */

.wallet-view .payments {
    display: flex;
    gap: 19px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.wallet-view img{
    height: 50px;
    border-radius: 18px;
    object-fit: contain;
}
/* Match the original wallet on mobile and tablet */

@media (max-width: 768px) {

    .wallet-view .payments {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
    }

    
}
/* =========================================
   LICENSE
========================================= */

.wallet-view .license {
    color: #a0aec0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* =========================================
   SOCIAL ICONS — FONT AWESOME
========================================= */

.wallet-view .social {
    margin-bottom: 20px;
}

.wallet-view .social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 38px;
    height: 38px;

    background: #1a202c;
    color: #ffffff;

    border-radius: 50%;
    margin-right: 10px;

    text-decoration: none;

    transition: background 0.2s ease;
}

/* Preserve the Font Awesome brand font */

.wallet-view .social i.fab,
.wallet-view .social i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal;

    display: inline-block;
    font-size: 21px;
    line-height: 1;
}

.wallet-view .social a:hover {
    background: #2d3748;
    color: #FFD700;
}


/* =========================================
   AGE BADGE
========================================= */

.wallet-view .age18 {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #6b21a8;
    color: #fff;
    font-weight: bold;
    font-size: 19px;
    border-radius: 50%;
    margin-top: 10px;
}

/* =========================================
   WALLET NOTIFICATIONS
========================================= */

.wallet-view .custom-notification {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wallet-view .custom-notification.error {
    background: #b91c1c;
    border: 2px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.wallet-view .custom-notification.success {
    background: #15803d;
    border: 2px solid #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.wallet-view .custom-notification.show {
    opacity: 1;
    visibility: visible;
}

.wallet-view #closeNotification {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* =========================================
   WITHDRAWAL POPUP
========================================= */

.wallet-view .popup {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translate(-50%, -20px);
    width: calc(100% - 30px);
    max-width: 400px;
    min-height: 58px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #171b24;
    color: #fff;
    border-radius: 14px;
    border: 1px solid #2a3040;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.wallet-view .popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.wallet-view .popup.error {
    border-left: 4px solid #ef4444;
}

.wallet-view .popup.error::before {
    content: "!";
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 18px;
    font-weight: 800;
}

.wallet-view .popup.success {
    border-left: 4px solid #22c55e;
}

.wallet-view .popup.success::before {
    content: "✓";
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    font-size: 17px;
    font-weight: 800;
}

.wallet-view .popup.warning {
    border-left: 4px solid #f59e0b;
}

.wallet-view .popup.warning::before {
    content: "!";
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-size: 18px;
    font-weight: 800;
}

.wallet-view #popupText {
    margin: 0;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .wallet-view .payments {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

}

@media (max-width: 480px) {

    .wallet-view .wallet-page {
        padding: 12px 10px 30px;
        margin-top: 0;
    }
    

    .wallet-view .footer-area {
        padding: 25px 15px;
    }

    .wallet-view .footer-columns {
        gap: 14px;
    }

    .wallet-view .popup {
        top: 95px;
        width: calc(100% - 24px);
        padding: 13px 14px;
        border-radius: 13px;
    }

    .wallet-view #popupText {
        font-size: 13px;
    }

    .wallet-view .payments img {
        max-width: 100%;
    }

}

@media (max-width: 360px) {

    .wallet-view .footer-columns {
        gap: 10px;
    }

    .wallet-view .footer-columns h4 {
        font-size: 16px;
    }

    .wallet-view .footer-columns a,
    .wallet-view .footer-columns p {
        font-size: 12px;
    }

}


/* =========================================
   WALLET — NO SIDE SCROLLING
========================================= */

.wallet-view {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.wallet-view .wallet-page,
.wallet-view .footer-area,
.wallet-view #depositSection,
.wallet-view #withdrawSection {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wallet-view img {
    max-width: 100%;
}

/* Prevent footer columns from stretching the page */

.wallet-view .footer-columns {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.wallet-view .footer-columns > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================
   QUICK AMOUNTS — FIT THE SCREEN
========================================= */

.wallet-view .quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;

    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
}

.wallet-view .quick-amounts button {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    padding: 0 3px;

    font-size: clamp(10px, 3.2vw, 14px);
    white-space: nowrap;
}

/* Prevent long messages and text from expanding the page */

.wallet-view #popupText,
.wallet-view .custom-notification,
.wallet-view .license {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Small screens */

@media (max-width: 360px) {

    .wallet-view .wallet-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .wallet-view .quick-amounts {
        gap: 5px;
    }

    .wallet-view .quick-amounts button {
        padding: 0 2px;
        font-size: 10px;
    }

}