/* ==========================================================================
   GOLDEBET - MODALS CSS
   Estilos específicos para modais de depósito e saque
   ========================================================================== */

/* =============
   DEPOSIT MODAL
   ============= */
.deposit-modal-content {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto;
}

.deposit-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.deposit-form {
    padding: 20px 0;
}

.deposit-input-group {
    margin-bottom: 25px;
}

.deposit-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.deposit-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.deposit-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.deposit-help {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.deposit-generate-btn {
    width: 100%;
    padding: 15px;
    background: var(--tertiary-dark);
    border: 2px solid var(--primary-gold);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.deposit-generate-btn:hover {
    transform: translateY(-2px);
    background: var(--quaternary-dark);
    border-color: var(--secondary-gold);
    box-shadow: 0 8px 25px rgba(250, 0, 0, 0.3);
}

.deposit-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.deposit-status {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 15px;
}

.deposit-result {
    padding: 0;
    border-top: none;
    margin-top: 0;
    width: 100%;
}

.deposit-success h4 {
    color: #FA0000;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
}

.deposit-amount-display {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative; /* GARANTE POSICIONAMENTO CORRETO */
    z-index: 1; /* ACIMA de outros elementos do modal */
}

.deposit-amount-display .amount-label {
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.deposit-amount-display .amount-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.qr-code-container {
    text-align: center;
    margin-bottom: 25px;
}

.qr-code-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    border: 3px solid var(--primary-gold);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.pix-code-container {
    margin-bottom: 25px;
}

.pix-code-container label {
    display: block;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.pix-code-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.pix-code-textarea {
    flex: 1;
    min-height: 80px;
    padding: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
}

.copy-pix-btn {
    background: var(--tertiary-dark);
    border: 2px solid #FA0000;
    color: #FA0000;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.copy-pix-btn:hover:not(:disabled) {
    background: var(--quaternary-dark);
    border-color: #e63900;
    color: #e63900;
    transform: translateY(-2px);
}

.copy-pix-btn:disabled {
    background: var(--tertiary-dark);
    border-color: #6c757d;
    color: #6c757d;
    cursor: not-allowed;
}

.api-response-details {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.api-response-details summary {
    padding: 12px;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 600;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px 8px 0 0;
}

.api-response-output {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

.deposit-instructions {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.deposit-instructions h5 {
    color: #FA0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-instructions ol {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.deposit-instructions li {
    margin-bottom: 8px;
}

/* =============
   WITHDRAW MODAL
   ============= */
.withdraw-modal-content {
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto;
}

.withdraw-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.withdraw-form {
    padding: 20px 0;
}

.withdraw-input-group {
    margin-bottom: 25px;
}

.withdraw-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.withdraw-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.withdraw-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.withdraw-help {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
}

.withdraw-generate-btn {
    width: 100%;
    padding: 15px;
    background: var(--tertiary-dark);
    border: 2px solid var(--primary-gold);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.withdraw-generate-btn:hover {
    transform: translateY(-2px);
    background: var(--quaternary-dark);
    border-color: var(--secondary-gold);
    box-shadow: 0 8px 25px rgba(250, 0, 0, 0.3);
}

.withdraw-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.withdraw-status {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 15px;
}

.withdraw-result {
    padding: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    margin-top: 200px;
}

.withdraw-success h4 {
    color: #FA0000;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
}

.withdraw-amount-display {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-gold);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.withdraw-amount-display .amount-label {
    color: var(--primary-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.withdraw-amount-display .amount-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.withdraw-instructions {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.withdraw-instructions h5 {
    color: #FA0000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.withdraw-instructions ol {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
}

.withdraw-instructions li {
    margin-bottom: 8px;
}

/* =============
   RESPONSIVE MODALS
   ============= */
@media (max-width: 768px) {
    .deposit-modal-body,
    .withdraw-modal-body {
        padding: 15px !important;
    }

    .deposit-input,
    .withdraw-input {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 12px;
    }

    .deposit-generate-btn,
    .withdraw-generate-btn {
        font-size: 16px;
        padding: 12px;
    }

    .qr-code-image {
        max-width: 180px;
    }

    .deposit-amount-display .amount-value,
    .withdraw-amount-display .amount-value {
        font-size: 20px;
    }

    .pix-code-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .copy-pix-btn {
        width: 100%;
        justify-content: center;
    }

    .deposit-instructions,
    .withdraw-instructions {
        padding: 15px;
    }

    .deposit-instructions ol,
    .withdraw-instructions ol {
        padding-left: 15px;
    }
}

/* =============
   PIX CONTAINER
   ============= */
.pix-container {
    text-align: center;
    padding: 20px;
}

.pix-header {
    margin-bottom: 30px;
}

.pix-header h3 {
    color: var(--text-light);
    font-size: 24px;
    margin: 15px 0 10px 0;
}

.pix-header p {
    color: var(--text-gray);
    font-size: 14px;
}

.pix-qrcode-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pix-qrcode {
    display: inline-block;
}

.pix-qrcode img {
    max-width: 256px;
    border-radius: 8px;
}

.pix-code-wrapper {
    margin: 20px 0;
}

.pix-code-wrapper label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.pix-code-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    resize: none;
    margin-bottom: 10px;
}

.copy-pix-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-pix-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pix-instructions {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.pix-instructions h4 {
    color: var(--primary-gold);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pix-instructions ol {
    color: var(--text-light);
    padding-left: 20px;
    margin: 0;
}

.pix-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.new-deposit-btn {
    width: 100%;
    padding: 12px;
    background: var(--tertiary-dark);
    border: 2px solid var(--primary-gold);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.new-deposit-btn:hover {
    transform: translateY(-2px);
    background: var(--quaternary-dark);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}