@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

body,
html {
    background-color: #F8F8F8;
    color: #121212;
    width: 100%;
    min-height: 100%;
}

.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #F8F8F8;
    min-height: 100vh;
    position: relative;
    padding-bottom: 30px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background-color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #F0F0F0;
}

.back-btn,
.help-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.15s ease;
    text-decoration: none;
}

.back-btn:hover,
.help-btn:hover {
    background-color: #F4F4F5;
}

.header-title {
    font-size: 17px;
    font-weight: 700;
    color: #121212;
    letter-spacing: -0.3px;
}

/* Main Content */
.main-content {
    padding: 16px;
}

/* Balance Card */
.balance-card {
    background-color: #121212;
    border-radius: 16px;
    padding: 20px;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

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

.balance-label {
    font-size: 13px;
    font-weight: 500;
    color: #999999;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 4px 0 2px 0;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.balance-amount.counting-up {
    color: #fff;
    transform: scale(1.02);
}

.balance-points {
    font-size: 13px;
    color: #999999;
    font-weight: 400;
}

.large-coin-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.badge-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.badge-logo-img.paypal-img {
    height: 27px;
}

.rose-gift-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.carrier-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.carrier-logo.claro-img {
    height: 22px;
}

.carrier-logo.tim-img {
    height: 40px;
}

.carrier-logo.vivo-img {
    height: 40px;
}

/* Balance Divider */
.balance-divider {
    margin: 16px -20px 12px -20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.balance-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding-top: 2px;
}

.balance-bottom:hover {
    opacity: 0.8;
}

.transactions-label {
    font-size: 13.5px;
    font-weight: 500;
    color: #FFFFFF;
}

/* Card Sections */
.card-section {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.payment-methods-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bank-text {
    font-weight: 600;
    color: #333333;
}

.divider-slash {
    color: #CCCCCC;
}

.method-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    font-size: 11.5px;
}

.pix-badge {
    color: #32BCAD;
}

.pagbank-badge {
    color: #00A859;
}

.pagbank-dot {
    width: 6px;
    height: 6px;
    background-color: #FFD100;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px #00A859;
}

.paypal-badge {
    color: #003087;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.amount-chip {
    background-color: #FFFFFF;
    border: 1.5px solid #E5E5E7;
    border-radius: 12px;
    height: 56px;
    font-size: 16px;
    font-weight: 700;
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.amount-chip:hover {
    border-color: #CBD5E1;
    background-color: #F8FAFC;
}

.amount-chip.active {
    border-color: #FE2C55;
    background-color: #FFF0F3;
    color: #FE2C55;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #FE2C55, 0 4px 12px rgba(254, 44, 85, 0.12);
}

/* Cash Out Button */
.btn-cash-out {
    width: 100%;
    height: 48px;
    background-color: #FE2C55;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.3);
    transition: transform 0.1s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cash-out:hover {
    background-color: #E0264A;
}

.btn-cash-out:active {
    transform: scale(0.98);
}

.section-footer-note {
    font-size: 12px;
    color: #8E8E93;
    line-height: 1.45;
    text-align: center;
    margin-top: 14px;
}

/* LIVE Coins Section */
.live-coins-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 13px;
    color: #757575;
    line-height: 1.35;
    margin-top: 2px;
}

.rose-icon-container {
    flex-shrink: 0;
}

/* Mobile top-up */
.topup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.carrier-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.carrier-claro {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    color: #E52E2D;
}

.claro-circle {
    width: 12px;
    height: 12px;
    background-color: #E52E2D;
    border-radius: 50%;
    display: inline-block;
}

.carrier-tim {
    font-weight: 800;
    color: #002D72;
    letter-spacing: -0.5px;
}

.carrier-vivo {
    font-weight: 700;
    color: #660099;
}

.phone-input-container {
    display: flex;
    align-items: center;
    background-color: #F4F4F5;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #E4E4E7;
    transition: border-color 0.2s ease;
}

.phone-input-container.disabled {
    pointer-events: none;
    user-select: none;
    background-color: #F4F4F5 !important;
    border-color: #E4E4E7 !important;
}

.phone-input-container:focus-within:not(.disabled) {
    border-color: #121212;
    background-color: #FFFFFF;
}

.country-code {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
}

.phone-input-container.disabled .country-code {
    color: #71717A;
}

.input-divider {
    color: #D4D4D8;
    margin: 0 10px;
    font-size: 14px;
}

.phone-number-text {
    font-size: 15px;
    color: #71717A;
    font-weight: 500;
    letter-spacing: 0.5px;
    user-select: none;
    cursor: not-allowed;
}

.phone-input:disabled {
    color: #71717A;
    background: transparent;
    cursor: not-allowed;
    user-select: none;
}

.btn-disabled {
    width: 100%;
    height: 44px;
    background-color: #E5E7EB;
    color: #9CA3AF;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: not-allowed;
}

.topup-note {
    font-size: 12px;
    color: #8E8E93;
    margin-top: 10px;
    text-align: center;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background-color: #FFFFFF;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 20px 32px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #121212;
    margin: 0;
}

/* Choose a Payout Method Modal */
.payout-modal-content {
    padding: 0 0 24px 0 !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

.payout-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px;
    border-bottom: 1px solid #F0F0F0;
    position: relative;
}

.payout-back-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.payout-back-btn:hover {
    background-color: #F4F4F5;
}

.modal-close {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.modal-close:hover {
    background-color: #F4F4F5 !important;
}

.modal-close:focus,
.modal-close:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.payout-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #121212;
    text-align: center;
    flex: 1;
    letter-spacing: -0.3px;
}

.payout-method-list {
    display: flex;
    flex-direction: column;
}

.payout-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #F4F4F5;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.payout-item:hover {
    background-color: #F8FAFC;
}

.payout-item:active {
    background-color: #F1F5F9;
}

.payout-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.payout-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.cashapp-icon {
    background-color: #00D632;
}

.paypal-icon {
    background-color: #003087;
}

.venmo-icon {
    background-color: #008CFF;
}

.venmo-text {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    font-style: italic;
    letter-spacing: -0.5px;
}

.zelle-icon {
    background-color: #7414CA;
}

.zelle-text {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    font-family: sans-serif;
}

.bank-icon {
    background-color: #1E293B;
}

.payout-info {
    flex: 1;
    margin-left: 14px;
    display: flex;
    flex-direction: column;
}

.payout-name {
    font-size: 16px;
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
}

.payout-sub {
    font-size: 13px;
    color: #64748B;
    margin-top: 2px;
    font-weight: 400;
}

.payout-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.payout-currency {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

.payout-footer-text {
    padding: 20px 20px 8px 20px;
    font-size: 11.5px;
    color: #8E8E93;
    line-height: 1.45;
    background-color: #FFFFFF;
}

/* Enter Your Payout Details Modal */
.payout-details-body {
    padding: 24px 20px 32px 20px;
    display: flex;
    flex-direction: column;
}

.details-category-name {
    font-size: 14.5px;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 14px;
}

.details-field-label {
    font-size: 14.5px;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 8px;
    display: block;
}

.details-input {
    width: 100%;
    height: 48px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    color: #121212;
    outline: none;
    background-color: #FFFFFF;
    margin-bottom: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.details-input:focus {
    border-color: #FE2C55;
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}

.details-input::placeholder {
    color: #94A3B8;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 15px;
    pointer-events: none;
}

.search-input {
    padding-left: 42px !important;
}

/* Bank Dropdown Menu */
.bank-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    -webkit-overflow-scrolling: touch;
}

.bank-dropdown.active {
    display: block;
}

.bank-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #121212;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    background: #FFFFFF;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

.bank-item:hover,
.bank-item.highlighted {
    background-color: #F9F9F9;
    color: #FE2C55;
}

.btn-continue-payout {
    width: 100%;
    height: 48px;
    background-color: #FE2C55;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-continue-payout:hover {
    background-color: #E0264A;
}

.btn-continue-payout:active {
    transform: scale(0.98);
}

.withdraw-amount-banner {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.withdraw-amount-banner strong {
    color: #FE2C55;
    font-size: 18px;
    font-weight: 800;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #E5E5E7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-option:hover {
    border-color: #CBD5E1;
}

.method-option.active {
    border-color: #FE2C55;
    background-color: #FFF0F3;
}

.method-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pix-icon-bg {
    background-color: #32BCAD;
}

.bank-icon-bg {
    background-color: #1E293B;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #121212;
}

.method-desc {
    font-size: 12px;
    color: #64748B;
}

/* Forms */
.pix-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-top: 4px;
}

.form-select,
.form-input {
    width: 100%;
    height: 44px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 14.5px;
    color: #0F172A;
    outline: none;
    background-color: #FFFFFF;
}

.form-select:focus,
.form-input:focus {
    border-color: #FE2C55;
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.15);
}

.btn-confirm-withdraw {
    width: 100%;
    height: 48px;
    background-color: #FE2C55;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(254, 44, 85, 0.3);
    transition: background-color 0.2s ease;
}

.btn-confirm-withdraw:hover {
    background-color: #E0264A;
}

/* Success Modal */
.text-center {
    text-align: center;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.success-title {
    font-size: 20px;
    font-weight: 800;
    color: #121212;
    margin-bottom: 6px;
}

.success-message {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 20px;
}

.receipt-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.receipt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #475569;
    padding: 6px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.receipt-row:last-child {
    border-bottom: none;
}

.status-badge-success {
    background-color: #DCFCE7;
    color: #15803D;
    font-weight: 700;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
}

.btn-done {
    width: 100%;
    height: 46px;
    background-color: #121212;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

/* Transactions list */
.tx-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
}

.tx-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.tx-icon.add {
    background-color: #DCFCE7;
    color: #16A34A;
}

.tx-icon.withdraw {
    background-color: #FEE2E2;
    color: #DC2626;
}

.tx-info {
    flex: 1;
    margin: 0 12px;
    display: flex;
    flex-direction: column;
}

.tx-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

.tx-date {
    font-size: 12px;
    color: #64748B;
}

.tx-amount {
    font-size: 14.5px;
    font-weight: 700;
}

.tx-amount.positive {
    color: #16A34A;
}

.tx-amount.negative {
    color: #DC2626;
}