/* Deposit/Withdraw Modal Styles */

.deposit-withdraw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.deposit-withdraw-modal.active {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.deposit-withdraw-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 600px;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0); /* Set initial transform to prevent jumping */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Sidebar */
.deposit-withdraw-sidebar {
    width: 200px;
    background: rgba(37, 99, 235, 0.12);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.deposit-withdraw-nav-btn {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-align: left;
}

.deposit-withdraw-nav-btn i {
    font-size: 18px;
    width: 24px;
}

.deposit-withdraw-nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.deposit-withdraw-nav-btn.active {
    background: rgba(59, 130, 246, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-left-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Main Content */
.deposit-withdraw-content {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
    position: relative;
    background: rgba(15, 15, 35, 0.5);
}

.deposit-withdraw-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.deposit-withdraw-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
}

/* Content Sections */
.deposit-content,
.withdraw-content {
    display: none;
    animation: fadeInContent 0.3s ease;
}

.deposit-content.active,
.withdraw-content.active {
    display: block;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pix Tabs */
.pix-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pix-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pix-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.pix-tab.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Labels */
.deposit-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.deposit-label strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Amount Section */
.deposit-amount-section {
    margin-bottom: 18px;
}

.deposit-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.deposit-input-wrapper:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.currency-symbol {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.deposit-amount-input {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 22px;
    font-weight: 600;
    outline: none;
}

.deposit-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Quick Amount Buttons */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
}

.quick-amount-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.quick-amount-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.quick-amount-btn.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.quick-amount-btn.active::after {
    content: '✓';
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

/* Input Fields */
.deposit-field,
.withdraw-field {
    margin-bottom: 16px;
}

.deposit-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.deposit-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.deposit-input:read-only {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}

/* Withdraw Help Icon */
.withdraw-help-icon {
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: help;
}

/* Withdraw Fee */
.withdraw-fee-value {
    display: block;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

/* Pix Type Selector */
.pix-type-selector {
    display: flex;
    gap: 12px;
}

.pix-type-btn {
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.pix-type-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.pix-type-btn.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

.pix-type-btn.active i {
    color: #10b981;
}

/* Deposit Notes */
.deposit-notes {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.deposit-notes strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.deposit-notes p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* Withdraw To Selector */
.withdraw-to-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.withdraw-to-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.withdraw-to-display {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pix-icon-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.withdraw-to-display span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.withdraw-to-selector i.fa-chevron-right {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Withdraw Button - Red Style */
.withdraw-action-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.withdraw-action-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.withdraw-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.withdraw-btn-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.withdraw-btn-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.withdraw-action-btn i {
    font-size: 18px;
    color: #fff;
}

/* Withdraw Warning */
.withdraw-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.withdraw-warning p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Register Link */
.withdraw-register-link {
    text-align: center;
    margin-bottom: 20px;
}

.withdraw-register-link a {
    color: rgba(59, 130, 246, 0.8);
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s ease;
}

.withdraw-register-link a:hover {
    color: rgba(59, 130, 246, 1);
}

/* Pay/Withdraw Button */
.deposit-pay-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
}

.deposit-pay-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.deposit-pay-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .deposit-withdraw-modal {
        padding: 8px;
    }

    .deposit-withdraw-container {
        flex-direction: column;
        height: auto;
        max-height: 75vh;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        border-radius: 14px;
        transform: none;
        transform-origin: center center;
        margin: 0 auto;
        padding: 0;
    }

    .deposit-withdraw-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    }

    .deposit-withdraw-nav-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .deposit-withdraw-nav-btn i {
        font-size: 16px;
    }

    .deposit-withdraw-nav-btn.active {
        border-left: none;
        border-bottom-color: #3b82f6;
    }

    .deposit-withdraw-content {
        padding: 14px;
        overflow-y: auto;
        max-height: calc(75vh - 50px);
    }

    .deposit-withdraw-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .pix-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .pix-tab {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .deposit-label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .deposit-input-wrapper {
        padding: 0 12px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .currency-symbol {
        font-size: 16px;
        margin-right: 8px;
    }

    .deposit-amount-input {
        padding: 12px 0;
        font-size: 20px;
    }

    .quick-amounts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .quick-amount-btn {
        padding: 10px 8px;
        font-size: 13px;
        border-radius: 8px;
    }

    .deposit-field,
    .withdraw-field {
        margin-bottom: 16px;
    }

    .deposit-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 8px;
    }

    .deposit-notes {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .deposit-notes strong {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .deposit-notes p {
        font-size: 12px;
    }

    .deposit-pay-btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 10px;
    }

    .withdraw-action-btn {
        padding: 14px 20px;
    }

    .withdraw-btn-text {
        font-size: 16px;
    }

    .withdraw-btn-amount {
        font-size: 18px;
    }

    .pix-type-selector {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .deposit-withdraw-modal {
        padding: 6px;
    }

    .deposit-withdraw-container {
        max-height: 80vh;
        width: calc(100% - 12px);
        max-width: calc(100% - 12px);
        border-radius: 12px;
    }

    .deposit-withdraw-sidebar {
        padding: 10px;
    }

    .deposit-withdraw-nav-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    .deposit-withdraw-content {
        padding: 12px;
        max-height: calc(80vh - 45px);
    }

    .deposit-withdraw-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
    }

    .pix-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .pix-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .deposit-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .deposit-input-wrapper {
        padding: 0 10px;
        margin-bottom: 12px;
    }

    .currency-symbol {
        font-size: 14px;
        margin-right: 6px;
    }

    .deposit-amount-input {
        padding: 10px 0;
        font-size: 18px;
    }

    .quick-amounts {
        gap: 6px;
    }

    .quick-amount-btn {
        padding: 8px 6px;
        font-size: 12px;
    }

    .deposit-field,
    .withdraw-field {
        margin-bottom: 14px;
    }

    .deposit-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .deposit-notes {
        padding: 12px;
        margin-bottom: 16px;
    }

    .deposit-notes strong {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .deposit-notes p {
        font-size: 11px;
    }

    .deposit-pay-btn {
        padding: 12px;
        font-size: 15px;
    }

    .withdraw-action-btn {
        padding: 12px 16px;
    }

    .withdraw-btn-text {
        font-size: 15px;
    }

    .withdraw-btn-amount {
        font-size: 16px;
    }
}

/* Pix Info Modal */
.pix-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.pix-info-modal.active {
    display: flex;
}

.pix-info-container {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10002;
}

.pix-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pix-info-title {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.pix-info-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pix-info-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg);
}

.pix-info-content {
    padding: 30px;
}

.pix-info-field {
    margin-bottom: 25px;
}

.pix-info-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.pix-info-label::before {
    content: '*';
    color: #ef4444;
    margin-right: 4px;
}

.pix-info-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pix-info-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pix-info-select-wrapper {
    position: relative;
}

.pix-info-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pix-info-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pix-info-select-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.pix-info-save-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    margin-top: 10px;
}

.pix-info-save-btn:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.pix-info-save-btn:active {
    transform: translateY(0);
}

/* Responsive Pix Info Modal */
@media (max-width: 768px) {
    .pix-info-container {
        max-width: 90%;
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .pix-info-container {
        transform: scale(0.85);
    }
}

