


.fiat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fiat-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fiat-modal {
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.fiat-modal-overlay.active .fiat-modal {
    transform: translateY(0) scale(1);
}

.fiat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
}

.fiat-modal-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #e6edf3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fiat-modal-title svg {
    width: 22px;
    height: 22px;
    stroke: #00FF94;
}

.fiat-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fiat-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: #8b949e;
}

.fiat-modal-close:hover {
    background: rgba(248, 81, 73, 0.15);
    border-color: rgba(248, 81, 73, 0.3);
}

.fiat-modal-close:hover svg {
    stroke: #f85149;
}

.fiat-modal-body {
    padding: 20px;
}

.fiat-modal-footer {
    padding: 0 20px 20px;
}


.fiat-input-group {
    margin-bottom: 16px;
}

.fiat-input-label {
    display: block;
    font-size: 12px;
    color: #8b949e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fiat-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e6edf3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 18px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.fiat-input:focus {
    border-color: rgba(0, 255, 148, 0.5);
}

.fiat-input::placeholder {
    color: #484f58;
    font-weight: 400;
}


.fiat-input.is-selected-recipient {
    border-color: rgba(88, 166, 255, 0.45);
    background: rgba(88, 166, 255, 0.08);
    color: #8b949e;
    cursor: default;
}


.fiat-preview {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.fiat-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.fiat-preview-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fiat-preview-label {
    color: #8b949e;
}

.fiat-preview-value {
    color: #e6edf3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.fiat-preview-value.highlight {
    color: #00FF94;
}

.fiat-preview-value.fee {
    color: #f59e0b;
}


.fiat-qr-container {
    text-align: center;
    padding: 20px 0;
}

.fiat-qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}

.fiat-qr-image img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.fiat-qr-copy {
    position: relative;
    margin-bottom: 16px;
}

.fiat-qr-copy-input {
    width: 100%;
    padding: 12px 60px 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #8b949e;
    font-size: 11px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.fiat-qr-copy-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 14px;
    background: rgba(0, 255, 148, 0.15);
    border: 1px solid rgba(0, 255, 148, 0.3);
    border-radius: 8px;
    color: #00FF94;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fiat-qr-copy-btn:hover {
    background: rgba(0, 255, 148, 0.25);
}

.fiat-qr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #8b949e;
}

.fiat-qr-timer svg {
    width: 16px;
    height: 16px;
    stroke: #f59e0b;
}

.fiat-qr-timer .time-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #f59e0b;
}


.fiat-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.fiat-status.waiting {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.fiat-status.waiting .spinner-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 158, 11, 0.2);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fiat-status.success {
    background: rgba(0, 255, 148, 0.1);
    border: 1px solid rgba(0, 255, 148, 0.2);
    color: #00FF94;
}

.fiat-status.success svg {
    width: 20px;
    height: 20px;
    stroke: #00FF94;
}

.fiat-status.error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: #f85149;
}


.fiat-btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00FF94, #00cc77);
    border: none;
    border-radius: 12px;
    color: #05070a;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fiat-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 255, 148, 0.3);
}

.fiat-btn-primary:active {
    transform: translateY(0);
}

.fiat-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fiat-btn-primary svg {
    width: 18px;
    height: 18px;
    stroke: #05070a;
}

.fiat-btn-secondary {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e6edf3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fiat-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}


.fiat-terms-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #8b949e;
    line-height: 1.8;
}

.fiat-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #e6edf3;
    cursor: pointer;
}

.fiat-terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00FF94;
    flex-shrink: 0;
}


button.fiat-selector-option {
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    font: inherit;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    margin: 0 0 10px 0;
    box-sizing: border-box;
    
    background: rgba(22, 27, 34, 0.75);
    border: 1px solid rgba(139, 148, 158, 0.2);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: #e6edf3;
    transition: all 0.2s ease;
}

button.fiat-selector-option:hover {
    border-color: rgba(0, 255, 148, 0.4);
    background: rgba(0, 255, 148, 0.08);
}

button.fiat-selector-option:active {
    transform: scale(0.98);
}

button.fiat-selector-option:last-child {
    margin-bottom: 0;
}

.fiat-selector-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fiat-selector-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.fiat-selector-title {
    color: #e6edf3;
    font-weight: 600;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.2;
}

.fiat-selector-desc {
    color: #8b949e;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.3;
}


.fiat-balance-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: rgba(88, 166, 255, 0.06);
    border: 1px solid rgba(88, 166, 255, 0.15);
    border-radius: 12px;
}

.fiat-balance-label {
    color: #8b949e;
    font-size: 13px;
}

.fiat-balance-value {
    color: #58a6ff;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
}


select.fiat-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238b949e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2 4 6 8 10 4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

select.fiat-input option {
    background: #161b22;
    color: #e6edf3;
}


.fiat-pix-recipient-panel {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(88, 166, 255, 0.045);
    border: 1px solid rgba(88, 166, 255, 0.14);
    border-radius: 12px;
}

.fiat-pix-recipient-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fiat-pix-recipient-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e6edf3;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.fiat-pix-recipient-title svg {
    width: 16px;
    height: 16px;
    stroke: #58a6ff;
}

.fiat-pix-recipient-tabs {
    display: inline-flex;
    padding: 3px;
    gap: 3px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
}

.fiat-pix-recipient-tabs button {
    border: 0;
    border-radius: 7px;
    padding: 5px 8px;
    background: transparent;
    color: #8b949e;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.fiat-pix-recipient-tabs button.active {
    background: rgba(88, 166, 255, 0.16);
    color: #e6edf3;
}

.fiat-pix-recipient-list {
    display: grid;
    gap: 7px;
}

.fiat-pix-recipient-saved-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 6px;
}

button.fiat-pix-recipient-item {
    appearance: none;
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(139, 148, 158, 0.16);
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.78);
    color: #e6edf3;
    padding: 9px 10px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.fiat-pix-recipient-item:hover,
button.fiat-pix-recipient-item.active {
    border-color: rgba(88, 166, 255, 0.34);
    background: rgba(88, 166, 255, 0.08);
}

.fiat-pix-recipient-name {
    display: block;
    color: #e6edf3;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fiat-pix-recipient-key {
    display: block;
    margin-top: 2px;
    color: #8b949e;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fiat-pix-recipient-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(88, 166, 255, 0.24);
    background: rgba(88, 166, 255, 0.08);
    color: #b9d7ff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.fiat-pix-recipient-tag.saved {
    border-color: rgba(0, 255, 148, 0.22);
    background: rgba(0, 255, 148, 0.07);
    color: #b8ffdf;
}

.fiat-pix-empty {
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #8b949e;
    font-size: 12px;
    text-align: center;
}

.fiat-pix-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(0, 255, 148, 0.18);
    border-radius: 10px;
    background: rgba(0, 255, 148, 0.055);
}

.fiat-pix-selected strong,
.fiat-pix-selected small {
    display: block;
}

.fiat-pix-selected strong {
    color: #e6edf3;
    font-size: 13px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.fiat-pix-selected small {
    color: #8b949e;
    font-size: 11px;
    margin-top: 2px;
}

.fiat-pix-selected button,
.fiat-pix-delete-btn {
    border: 0;
    background: transparent;
    color: #58a6ff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.fiat-pix-delete-btn {
    color: #f85149;
    min-width: 66px;
    border: 1px solid rgba(248, 81, 73, 0.18);
    border-radius: 10px;
    background: rgba(248, 81, 73, 0.06);
    padding: 0 8px;
}

.fiat-save-pix-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: #e6edf3;
    cursor: pointer;
}

.fiat-save-pix-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #00FF94;
    flex-shrink: 0;
}

.fiat-save-pix-row strong {
    display: block;
    color: #e6edf3;
    font-size: 13px;
    font-weight: 700;
}

.fiat-save-pix-row small {
    display: block;
    margin-top: 3px;
    color: #8b949e;
    font-size: 11px;
    line-height: 1.35;
}


@media (max-width: 420px) {
    .fiat-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
    }

    .fiat-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .fiat-qr-image {
        width: 180px;
        height: 180px;
    }

    .fiat-pix-recipient-head {
        align-items: stretch;
        flex-direction: column;
    }

    .fiat-pix-recipient-tabs,
    .fiat-pix-recipient-tabs button {
        width: 100%;
    }

    .fiat-pix-recipient-saved-row {
        grid-template-columns: 1fr;
    }

    .fiat-pix-delete-btn {
        min-height: 34px;
    }

    .fiat-pix-selected {
        align-items: flex-start;
    }
}



.limit-hint-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.limit-hint-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #8b949e;
    letter-spacing: 0.3px;
}

.limit-hint-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.limit-hint-item .lh-label {
    color: #8b949e;
}

.limit-hint-item .lh-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #e6edf3;
}

.limit-hint-item .lh-used {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #ffd700;
    font-size: 9px;
}

.limit-hint-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    align-self: center;
}


.limit-hint-item.warn .lh-value { color: #f59e0b; }
.limit-hint-item.warn svg { color: #f59e0b; }


.limit-hint-item.critical .lh-value { color: #f85149; }
.limit-hint-item.critical svg { color: #f85149; }
