/* Vi8Pay Modern Payment UI Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 20px;
}

.payment-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 30px 25px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Order Creation Styles */
.order-header {
    text-align: center;
    margin-bottom: 30px;
}

.order-header h2 {
    color: #4f46e5;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-actions {
    margin-top: 30px;
}

.btn-large {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
}

/* Payment Method Selection Styles */
.payment-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.btn-back {
    background: #f3f4f6;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    margin-right: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e5e7eb;
    color: #4b5563;
}

.payment-header h2 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-item:hover {
    border-color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wallet-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.qr-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.method-content {
    flex: 1;
}

.method-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.method-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.method-features {
    display: flex;
    gap: 8px;
}

.feature-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.method-arrow {
    color: #9ca3af;
    font-size: 16px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.payment-method-item:hover .method-arrow {
    color: #4f46e5;
    transform: translateX(4px);
}

/* Order Info Panel */
.order-info-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.order-info-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.order-info-header h3 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.order-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-label {
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
}

.info-value.currency {
    color: #059669;
    font-size: 16px;
}

.info-value.provider {
    color: #4f46e5;
    font-weight: 700;
}

.amount-row {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 8px 0;
}

/* Payment Processing Styles */
.payment-screen {
    animation: slideInRight 0.3s ease-out;
}

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

.wallet-connection {
    max-width: 500px;
    margin: 0 auto;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.wallet-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.wallet-option:hover {
    border-color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.wallet-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 8px;
}

.wallet-info .wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.wallet-info .wallet-desc {
    font-size: 14px;
    color: #6b7280;
}

.connection-status {
    text-align: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.status-message {
    color: #6b7280;
    font-size: 14px;
}

/* QR Payment Styles */
.qr-payment-container {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .qr-payment-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.qr-display {
    text-align: center;
}

.payment-qr-code {
    width: 250px;
    height: 250px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: white;
}

.qr-placeholder {
    text-align: center;
    color: #9ca3af;
}

.qr-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.qr-instructions h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: #6b7280;
    font-size: 14px;
}

/* Connection Status Styles */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-message.connecting {
    display: flex;
    align-items: center;
    color: #4f46e5;
    font-weight: 500;
}

.connection-success {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.connection-success i {
    color: #10b981;
    font-size: 24px;
    margin-top: 2px;
}

.connection-info {
    flex: 1;
}

.connection-title {
    color: #10b981;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.wallet-address {
    color: #6b7280;
    font-size: 13px;
    font-family: monospace;
    margin-bottom: 3px;
}

.connection-network {
    color: #4b5563;
    font-size: 14px;
}

/* Payment Section Styles */
.payment-section {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.payment-info h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.detail-item .label {
    color: #6b7280;
    font-weight: 500;
}

.detail-item .value {
    color: #1f2937;
    font-weight: 600;
}

.detail-item .value.address {
    font-family: monospace;
    font-size: 12px;
    max-width: 200px;
    word-break: break-all;
}

.payment-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

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

/* Payment Success Styles */
.payment-success {
    text-align: center;
    padding: 30px 20px;
}

.payment-success .success-icon {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
}

.payment-success h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.success-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

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

.detail-row .label {
    color: #6b7280;
    font-weight: 500;
}

.detail-row .value {
    color: #1f2937;
    font-weight: 600;
}

.detail-row .value.hash {
    font-family: monospace;
    font-size: 12px;
    max-width: 150px;
    word-break: break-all;
}

.success-actions {
    display: flex;
    justify-content: center;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-error {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-left-color: #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #d97706;
    border-left-color: #f59e0b;
}

/* Hidden utility class */
.hidden {
    display: none !important;
}

.logo {
    position: relative;
    z-index: 1;
}

.subtitle {
    opacity: 0.9;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Network Selector Styles */
.network-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.network-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.network-option:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.network-option.active {
    border-color: #4f46e5;
    background: #eef2ff;
}

.network-icon {
    font-size: 32px;
    line-height: 1;
}

.network-info {
    flex: 1;
    text-align: left;
}

.network-name {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 2px;
}

.network-detail {
    font-size: 11px;
    color: #6b7280;
}

.network-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #10b981;
    color: white;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 4px;
}

/* Wallet Status Styles */
.wallet-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    gap: 16px;
}

.wallet-info-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.wallet-icon-status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.wallet-icon.connected {
    background: linear-gradient(135deg, #10b981, #059669);
}

.status-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.status-indicator.connected {
    background: #10b981;
    animation: pulse 2s infinite;
}

.wallet-details {
    flex: 1;
}

.wallet-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.wallet-text {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
}

.wallet-text.connected {
    color: #059669;
}

.btn-connect {
    padding: 12px 20px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.btn-connect:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-connect.connected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-connect.connected:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.content {
    padding: 30px 25px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin: 0 10px;
    position: relative;
}

.step.active {
    background: #4f46e5;
    color: white;
}

.step.completed {
    background: #10b981;
    color: white;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: #e5e7eb;
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: #10b981;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.amount-input-group {
    position: relative;
}

.currency-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.status-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.qr-section {
    text-align: center;
    margin: 20px 0;
}

.qr-code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin: 0 auto 20px;
    display: inline-block;
}

.qr-format-selector {
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.format-description {
    background: white;
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #4f46e5;
}

.payment-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.detail-label {
    color: #6b7280;
}

.detail-value {
    font-weight: 600;
    color: #111827;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.wallet-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scan-camera {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    margin: 20px 0;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-button {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
}

.copy-button:hover {
    background: #f3f4f6;
}

/* Thu Hộ Styling */
.thu-ho-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipient-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.recipient-input {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
    border: 2px solid #0ea5e9 !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    padding-right: 88px !important;
}

.recipient-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.copy-address-btn {
    position: absolute;
    right: 8px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-address-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}

.copy-address-btn:active {
    transform: translateY(0);
}

/* Address Action Buttons Container */
.address-action-buttons {
    position: absolute;
    right: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.copy-address-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.copy-address-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}

.scan-qr-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    gap: 2px;
}

.scan-qr-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    transform: translateY(-1px);
}

.scan-qr-btn .scan-text {
    font-size: 10px;
    font-weight: 600;
}

/* Payment Method Selection (VNPay Style) */
.payment-method-selection {
    margin-top: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    text-align: center;
}

.payment-method-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.payment-method-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.payment-method-item:hover::before {
    left: 100%;
}

.payment-method-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.method-content {
    flex: 1;
}

.method-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.method-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.method-arrow {
    color: #9ca3af;
    font-size: 16px;
    transition: all 0.3s ease;
}

.payment-method-item:hover .method-arrow {
    color: #6366f1;
    transform: translateX(4px);
}

/* Mobile responsiveness for payment methods */
@media (max-width: 768px) {
    .payment-method-item {
        padding: 16px;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 12px;
    }
    
    .method-title {
        font-size: 15px;
    }
    
    .method-subtitle {
        font-size: 13px;
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .payment-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .payment-btn {
        padding: 18px 16px;
        min-height: 70px;
    }
    
    .btn-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .btn-title {
        font-size: 15px;
    }
    
    .btn-subtitle {
        font-size: 12px;
    }
    
    .payment-container {
        margin: 10px;
        max-width: none;
    }
    
    .content {
        padding: 20px 20px;
    }
    
    .wallet-status {
        padding: 16px 20px;
    }
}

/* QR Scanner Modal Styles */
.qr-scanner-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-scanner-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.scanner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 20px 20px 0 0;
}

.scanner-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-scanner {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-scanner:hover {
    background: rgba(255, 255, 255, 0.3);
}

.scanner-body {
    padding: 25px;
}

.scanner-viewport {
    position: relative;
    margin-bottom: 20px;
}

.qr-reader-container {
    background: #000;
    border-radius: 16px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-reader-container video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-frame {
    position: relative;
    width: 250px;
    height: 250px;
    border: 2px solid transparent;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #00ff88;
    border-radius: 4px;
}

.corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: scanLine 2s linear infinite;
}

@keyframes scanLine {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(250px);
        opacity: 0;
    }
}

.scanner-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.scanner-control-btn {
    flex: 1;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.scanner-control-btn:hover {
    transform: translateY(-1px);
}

.scanner-control-btn i {
    font-size: 16px;
}

.scanner-instructions {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    padding: 20px;
    font-size: 14px;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #0c4a6e;
    font-weight: 700;
    font-size: 16px;
}

.instruction-header i {
    color: #0ea5e9;
    font-size: 18px;
}

.instruction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0369a1;
    font-size: 14px;
    line-height: 1.4;
}

.instruction-item i {
    color: #0ea5e9;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.scanner-status {
    padding: 15px 25px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 20px 20px;
}

.status-message {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-message.success {
    color: #10b981;
}

.status-message.error {
    color: #ef4444;
}

.status-message.warning {
    color: #f59e0b;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* QR Scanner Loading Animation */
.scanner-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #6b7280;
    font-size: 14px;
}

.scanner-loading .loading-dots {
    display: flex;
    gap: 4px;
}

.scanner-loading .dot {
    width: 8px;
    height: 8px;
    background: #4f46e5;
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.scanner-loading .dot:nth-child(1) { animation-delay: -0.32s; }
.scanner-loading .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* QR Success Animation */
.qr-success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
}

.qr-success-icon {
    font-size: 48px;
    color: #10b981;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* QR Payment Modal */
.qr-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-payment-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 20px 20px 0 0;
}

.qr-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-qr-payment {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-qr-payment:hover {
    background: rgba(255, 255, 255, 0.3);
}

.qr-payment-body {
    padding: 25px;
}

.qr-display-section {
    text-align: center;
    margin-bottom: 25px;
}

.payment-qr-container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    margin-bottom: 20px;
    display: inline-block;
}

.payment-qr-code {
    min-height: 200px;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}

.qr-payment-details {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px;
}

.qr-payment-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.qr-payment-details .detail-row:last-child {
    margin-bottom: 0;
}

.qr-payment-details .label {
    color: #15803d;
    font-weight: 600;
}

.qr-payment-details .value {
    color: #166534;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.qr-instructions {
    margin-bottom: 25px;
}

.qr-instructions h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.qr-actions {
    display: flex;
    gap: 12px;
}

.qr-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
}

.input-note {
    color: #10b981;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.input-note i {
    font-size: 11px;
}

/* Payment Amount Input Styling */
#paymentAmount {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7) !important;
    border: 2px solid #22c55e !important;
    color: #15803d !important;
    font-weight: 700 !important;
    font-size: 18px !important;
}

#paymentAmount:focus {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

.amount-input-group {
    position: relative;
}

.currency-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

/* Payment Success Styles */
.payment-result {
    text-align: center;
    animation: slideInUp 0.5s ease-out;
}

.success-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.success-header h3 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 700;
}

.success-header p {
    color: #6b7280;
    font-size: 14px;
}

.payment-summary {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: left;
}

.summary-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #bbf7d0;
}

.summary-header h4 {
    color: #15803d;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-content .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #bbf7d0;
}

.summary-content .detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-content .detail-label {
    color: #15803d;
    font-weight: 600;
    font-size: 14px;
}

.summary-content .detail-value {
    color: #166534;
    font-weight: 700;
    font-size: 14px;
    max-width: 60%;
    word-break: break-all;
}

.success-amount {
    color: #10b981 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
}

.transaction-hash {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.payment-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.payment-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 16px;
    font-size: 14px;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Support Info Styles */
.support-info {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #0c4a6e;
    font-weight: 700;
    font-size: 16px;
}

.support-content p {
    color: #0369a1;
    font-size: 14px;
    margin-bottom: 12px;
}

.support-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0c4a6e;
    font-weight: 600;
    font-size: 14px;
}

.contact-item i {
    color: #0ea5e9;
    width: 16px;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .payment-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .content {
        padding: 20px;
    }
    
    .header {
        padding: 25px 20px;
    }

    .payment-actions {
        flex-direction: column;
    }

    .payment-actions .btn {
        width: 100%;
    }

    .support-contacts {
        flex-direction: column;
        gap: 8px;
    }

    .summary-content .detail-value {
        max-width: 50%;
        font-size: 12px;
    }

    .transaction-hash {
        font-size: 10px;
    }
}