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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.container {
    width: 100%;
    max-width: 448px;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: #f1f5f9;
    color: #475569;
}

/* Main Card */
.card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 12px;
    right: 16px;
    display: flex;
    gap: 4px;
    background: #f8fafc;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #e2e8f0;
}

.lang-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: #0f172a;
}

.lang-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Amount Section */
.amount-section {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
}

.amount-label {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 30px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.amount-currency {
    font-size: 12px;
    color: #64748b;
    letter-spacing: -0.025em;
}

/* QR Section */
.qr-section {
    padding: 16px;
}

.qr-header {
    text-align: center;
    margin-bottom: 12px;
}

.qr-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 2px;
}

.qr-subtitle {
    font-size: 12px;
    color: #64748b;
    letter-spacing: -0.025em;
}

/* Warning Box */
.warning-box {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.warning-title {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.warning-list {
    margin: 0;
    padding-left: 16px;
}

.warning-list li {
    font-size: 11px;
    color: #78350f;
    line-height: 1.5;
    margin-bottom: 3px;
}

.warning-list li:last-child {
    margin-bottom: 0;
}

/* QR Code Container */
.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.qr-wrapper {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 16px;
}

#qrcode {
    width: 180px;
    height: 180px;
}

#qrcode.blur {
    filter: blur(4px);
}

/* Overlay */
.overlay {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.overlay.active {
    display: flex;
}

.overlay.success {
    background-color: rgba(34, 197, 94, 0.2);
}

.overlay.expired {
    background-color: rgba(239, 68, 68, 0.2);
}

.overlay-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: zoomIn 0.3s ease-out;
}

.overlay.success .overlay-icon {
    background-color: #22c55e;
}

.overlay.expired .overlay-icon {
    background-color: #ef4444;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Timer */
.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.timer.hidden {
    display: none;
}

.timer-text {
    font-size: 12px;
    color: #475569;
    letter-spacing: -0.025em;
}

.timer-value {
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.timer-value.warning {
    color: #dc2626;
}

/* Status Badge */
.status-badge {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.status-badge.active {
    display: flex;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid;
}

.badge.success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.badge.expired {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.badge.success .badge-text {
    color: #15803d;
}

.badge.expired .badge-text {
    color: #dc2626;
}

/* Banks */
.banks-section {
    margin-bottom: 16px;
}

.banks-label {
    font-size: 10px;
    text-align: center;
    color: #64748b;
    margin-bottom: 8px;
}

.banks-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bank-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Download Button */
.download-btn {
    width: 100%;
    padding: 8px 16px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.025em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
}

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

/* Details Section */
.details-section {
    padding: 12px 16px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

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

.detail-label {
    font-size: 10px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 12px;
    color: #0f172a;
    letter-spacing: -0.025em;
}

.detail-value.mono {
    font-family: 'Courier New', monospace;
}

.detail-value.status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.detail-value.success {
    color: #16a34a;
}

.detail-value.expired {
    color: #dc2626;
}

.detail-value.pending {
    color: #475569;
    font-weight: 400;
}

/* Footer */
.footer {
    margin-top: 12px;
    text-align: center;
}

.footer-text {
    font-size: 10px;
    color: #64748b;
    letter-spacing: -0.025em;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(248, 250, 252, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.loading-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Icons */
.icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.icon-sm {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.icon-xs {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.icon-lg {
    width: 48px;
    height: 48px;
    stroke-width: 2.5;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 4px;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
}
