* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* ─── PHONE CONTAINER ─────────────────────────────────────── */
.phone-container {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ─── TOP HEADER ──────────────────────────────────────────── */
.top-header {
    background-color: #1a428a;
    color: #ffffff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ─── TRICOLOR ────────────────────────────────────────────── */
.tricolor-stripe {
    height: 6px;
    width: 100%;
    display: flex;
    flex-shrink: 0;
}
.stripe-yellow { flex: 2; background-color: #fcd116; }
.stripe-blue   { flex: 1; background-color: #003893; }
.stripe-red    { flex: 1; background-color: #ce1126; }

/* ─── BRAND SECTION ───────────────────────────────────────── */
.brand-section {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.justice-logo {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
}

.justice-logo img {
    max-height: 48px;
}

.brand-right-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.brand-right-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #333;
}

/* ─── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
    padding: 28px 18px 80px 18px;
    flex: 1;
    background: linear-gradient(180deg, rgba(244,246,249,0.5) 0%, rgba(255,255,255,1) 100%);
}

.page-title {
    color: #1e3a75;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #637381;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 22px;
}

/* ─── SEARCH ──────────────────────────────────────────────── */
.search-container {
    display: flex;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    padding: 13px 14px;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
}

.search-input::placeholder { color: #919eab; }

.search-button {
    background-color: #2f69ff;
    border: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover { background-color: #1a56e8; }

/* ─── LOADING / ERROR ─────────────────────────────────────── */
.loading-state, .error-state {
    text-align: center;
    padding: 32px 16px;
    color: #637381;
    font-size: 13px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #2f69ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

.error-state { color: #d32f2f; }

/* ─── RESULTS LAYOUT ──────────────────────────────────────── */
.results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── RESUMEN CARD ────────────────────────────────────────── */
.resumen-card {
    background: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    font-size: 13px;
}

.resumen-header {
    background-color: #f0f4fb;
    padding: 10px 14px;
    color: #1a428a;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #dce6f5;
}

.resumen-body {
    padding: 12px 14px;
}

.resumen-counters {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #333;
}

.resumen-ap {
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #333;
}

.resumen-ap-value {
    font-size: 15px;
    font-weight: 700;
    color: #1a428a;
}

.resumen-infractor {
    margin-bottom: 4px;
}

.resumen-nombre {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.resumen-cedula {
    font-size: 12.5px;
    color: #555;
    margin-bottom: 6px;
}

.resumen-cedula span {
    font-weight: 700;
    color: #222;
}

.resumen-total {
    font-size: 13.5px;
    color: #222;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 4px;
}

.resumen-total-value {
    font-weight: 700;
    font-size: 15px;
    color: #1a428a;
}

.resumen-section {
    border-top: 1px solid #e8edf4;
    padding: 10px 14px;
}

.resumen-section-title {
    font-size: 12px;
    color: #637381;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.resumen-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2f69ff;
    font-size: 12.5px;
    text-decoration: none;
    cursor: pointer;
}

.resumen-link:hover { text-decoration: underline; }

/* ─── MULTAS LIST ─────────────────────────────────────────── */
.multas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── MULTA CARD ──────────────────────────────────────────── */
.multa-card {
    background: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.multa-card-header {
    background-color: #f0f4fb;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #dce6f5;
}

.multa-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.multa-tipo-label {
    font-size: 11px;
    color: #637381;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.multa-tipo-subtipo {
    font-size: 11px;
    color: #888;
}

.multa-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.multa-numero-link {
    color: #2f69ff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.multa-fecha-imp {
    font-size: 11px;
    color: #637381;
}

/* Estado badge */
.estado-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.estado-pendiente  { background: #e8f5ff; color: #1565c0; }
    .estado-coactivo   { background: #fdecea; color: #b71c1c; }
.estado-comparendo { background: #e8f5e9; color: #2e7d32; }
.estado-default    { background: #f0f4fb; color: #1a428a; }

/* Rows */
.multa-rows {
    padding: 0;
}

.multa-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 9px 14px;
    border-bottom: 1px solid #f0f2f5;
    gap: 8px;
}

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

.row-label {
    color: #637381;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 1px;
}

.row-value {
    color: #222;
    font-size: 12.5px;
    text-align: right;
    flex: 1;
}

.row-value.bold {
    font-weight: 700;
    color: #1a428a;
}

.row-value.mono {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Infraccion block */
.infraccion-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.infraccion-codigo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1a428a;
}

.infraccion-tipo {
    font-size: 11px;
    color: #888;
}

.infraccion-toggle {
    color: #2f69ff;
    font-size: 11.5px;
    cursor: pointer;
    user-select: none;
}

.infraccion-toggle:hover { text-decoration: underline; }

/* Proyección dropdown */
.proyeccion-panel {
    display: none;
    background: #f9fbff;
    border-top: 1px solid #dce6f5;
    padding: 10px 14px;
    font-size: 12px;
}

.proyeccion-panel.open { display: block; }

.proyeccion-title {
    font-weight: 700;
    color: #1a428a;
    margin-bottom: 8px;
    font-size: 12px;
}

.proyeccion-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px dashed #dce6f5;
    gap: 8px;
}

.proyeccion-item:last-child { border-bottom: none; }

.proyeccion-left { flex: 1; }

.proyeccion-desc {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.proyeccion-fecha {
    color: #888;
    font-size: 11px;
}

.proyeccion-instrucciones {
    color: #555;
    font-size: 11px;
    margin-top: 3px;
    line-height: 1.4;
}

.proyeccion-valor {
    font-weight: 700;
    color: #1a428a;
    white-space: nowrap;
}

/* Valor a pagar row */
.row-pagar .row-value {
    font-size: 14px;
    font-weight: 700;
    color: #1a428a;
}

.detalle-link {
    display: block;
    color: #2f69ff;
    font-size: 11px;
    text-align: right;
    margin-top: 2px;
    cursor: pointer;
}

.detalle-link:hover { text-decoration: underline; }

/* Checkbox row */
.row-checkbox {
    background: #fafbff;
}

.row-checkbox .row-label {
    font-size: 12px;
    color: #444;
}

.checkbox-styled {
    width: 18px;
    height: 18px;
    accent-color: #2f69ff;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── NEWS CARD ───────────────────────────────────────────── */
.news-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    margin-bottom: 16px;
}

.news-title {
    color: #1e3a75;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.news-desc {
    color: #637381;
    font-size: 12.5px;
    line-height: 1.4;
}

/* ─── PUNTOS DE PAGO CARD ─────────────────────────────────── */
.puntos-pago-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    margin-bottom: 16px;
}

.puntos-pago-map {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background-color: #e8f0f9;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 90, 159, 0.1) 0%, rgba(26, 66, 138, 0.15) 100%);
    pointer-events: none;
}

.puntos-pago-content {
    padding: 18px;
}

.puntos-pago-title {
    color: #1e3a75;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.puntos-pago-description {
    color: #637381;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.puntos-pago-btn {
    width: 100%;
    padding: 11px 16px;
    background-color: #ffffff;
    border: 2px solid #2f69ff;
    color: #2f69ff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.puntos-pago-btn:hover {
    background-color: #f0f4ff;
    border-color: #1a56e8;
    color: #1a56e8;
}

.puntos-pago-btn:active {
    background-color: #e8eeff;
}
/* ─── TWO COLUMN SECTION ──────────────────────────────────── */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.column-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.column-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-title {
    color: #1e3a75;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.badge-new {
    background-color: #ff4757;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.card-description {
    color: #637381;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.card-icon {
    color: #2f69ff;
    width: 32px;
    height: 32px;
    margin-top: 4px;
}
/* ─── FLOATING ACTIONS ────────────────────────────────────── */
.floating-actions {
    position: fixed;
    right: calc(50% - 215px);
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

@media (max-width: 430px) {
    .floating-actions { right: 12px; }
}

.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.float-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.btn-network {
    background-color: #0066cc;
    border-radius: 12px 12px 12px 0;
}

.btn-chat { background-color: #a0b2ff; }

/* ─── CAROUSEL ────────────────────────────────────────────── */
.carousel-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f2f5;
}

.carousel-header {
    text-align: center;
    margin-bottom: 16px;
}

.carousel-title {
    color: #1a428a;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.carousel-subtitle {
    color: #637381;
    font-size: 12.5px;
    line-height: 1.5;
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #1a428a;
    font-weight: bold;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.dot.active {
    background: #1a428a;
    width: 10px;
    height: 10px;
}

.dot:hover {
    background: #2f69ff;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
    background-color: #1a428a;
    color: #ffffff;
    padding: 24px 16px;
    margin-top: 32px;
    border-top: 2px solid #0f2a5c;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-subtitle {
    font-size: 11px;
    color: #b8c5d6;
    margin-bottom: 8px;
}

.footer-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.footer-label {
    font-size: 11px;
    color: #b8c5d6;
    margin: 0;
}

.footer-text {
    font-size: 11px;
    color: #e8eef5;
    margin: 0;
    line-height: 1.4;
}

.footer-text a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-text a:hover {
    color: #ffe44d;
    text-decoration: underline;
}

.footer-location {
    font-size: 11px;
    color: #e8eef5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a5a9f;
}

.footer-bottom {
    border-top: 1px solid #2a5a9f;
    padding-top: 12px;
}

.footer-disclaimer {
    font-size: 10px;
    color: #9aadbe;
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
}

.footer-links a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffe44d;
    text-decoration: underline;
}

.footer-separator {
    color: #5a7ba0;
}

.footer-links span {
    color: #e8eef5;
}

/* ─── UTILITY ─────────────────────────────────────────────── */
.icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

.hidden { display: none !important; }

/* Selection controls and discounted price */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #eef3fb;
    border-radius: 8px;
    margin-bottom: 12px;
}
.controls-left { display:flex; align-items:center; gap:8px; }
.total-amount { font-weight:700; color:#1a428a; }
.strike { text-decoration: line-through; color:#888; margin-right:8px; }
.discounted-price { font-weight:800; color:#27ae60; }
    .pay-button { background:#2f69ff; color:#fff; border:none; padding:14px 16px; border-radius:12px; cursor:pointer; font-weight:700; box-shadow:0 12px 30px rgba(47,105,255,0.18); width:100%; }
    .pay-button[disabled] { opacity:0.5; cursor:default; box-shadow:none; }
    .bottom-pay-bar { padding:18px 0 24px; }

/* Payment modal */
.payment-modal { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:9999; }
.payment-modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.45); }
.payment-modal-panel { position:relative; background:#fff; border-radius:8px; padding:18px; width:92%; max-width:420px; box-shadow:0 12px 40px rgba(0,0,0,0.3); z-index:2; }
.payment-modal-panel h3 { margin:0 0 8px 0; color:#1a428a; }
.payment-methods { display:flex; flex-direction:column; gap:8px; margin:10px 0 14px 0; }
.payment-methods label { font-size:14px; color:#333; }
.payment-actions { display:flex; justify-content:flex-end; }
.pay-confirm { background:#2f69ff; color:#fff; border:none; padding:10px 14px; border-radius:6px; cursor:pointer; font-weight:700; }
.modal-close { position:absolute; right:10px; top:8px; border:none; background:transparent; font-size:18px; cursor:pointer; }

/* Small responsive tweaks for controls */
@media (max-width:420px) {
    .controls-bar { flex-direction:column; align-items:flex-start; }
    .payment-modal-panel { padding:14px; }
}

/* Inline payment area styles (mobile-first) */
.payment-area { display:flex; flex-direction:column; gap:12px; }
.payment-card { background:#ffffff; border-radius:10px; padding:12px; border:1px solid #eef4fb; box-shadow:0 6px 18px rgba(10,30,80,0.04); }
.payment-card h4 { margin:0 0 8px 0; color:#1a428a; font-size:16px; }
.detail-table { width:100%; border-collapse:collapse; margin-bottom:8px; }
.detail-table thead th { text-align:left; color:#637381; font-weight:700; padding-bottom:8px; font-size:13px; }
.detail-table td { padding:8px 0; border-top:1px solid #f2f6fb; font-size:14px; color:#222; }
.detail-total { display:flex; justify-content:space-between; align-items:center; padding-top:8px; border-top:1px solid #f1f5fa; margin-top:8px; }
.detail-total .total-amount { font-size:18px; font-weight:800; color:#1a428a; }
.methods-sub { color:#637381; font-size:13px; margin-bottom:10px; }
.methods-list { display:flex; flex-direction:column; gap:8px; }
.method-card { display:flex; justify-content:space-between; align-items:center; padding:10px; border-radius:8px; border:1px solid #eef3fb; cursor:pointer; transition: all 0.2s ease; }
.method-card.disabled { opacity: 0.45; cursor: not-allowed; border-color: #d7dbe2; background: #f7f9fc; }
.method-card.active { border-color:#2f69ff; box-shadow:0 8px 20px rgba(47,105,255,0.08); }
.method-card .method-logo { width: 40px; height: 24px; display:flex; align-items:center; justify-content:center; color:#1a428a; }
.method-card .method-logo svg { width: 24px; height: 24px; }
.method-title { font-weight:700; color:#1a428a; }
.methods-actions { display:flex; justify-content:flex-end; margin-top:10px; }
.pay-confirm { background:#2f69ff; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; font-weight:800; }
.payment-success {
    text-align:center;
    padding:24px 18px 24px;
    background-color: #ffffff;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
}
.payment-bg {
    width:100%;
    max-width:none;
    min-height: 520px;
    border-radius: 28px;
    background: url('breb.png') center center / cover no-repeat;
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 16px;
    box-sizing: border-box;
}
.payment-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 28px;
}
.payment-bg > .qr-wrapper,
.payment-bg > .qr-wrapper * {
    position: relative;
    z-index: 1;
}
.payment-success h3 { color:#1a428a; }
.payment-success .small { color:#637381; font-size:13px; margin-top:8px; }
.payload-preview { margin-top:12px; padding:12px; border:1px solid #eef4fb; border-radius:8px; background:#f7fbff; color:#084c7b; font-size:12px; overflow-x:auto; white-space:pre-wrap; word-break:break-all; }
.qr-wrapper { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; width:100%; }
.qr-frame { width:280px; height:280px; max-width:calc(100% - 32px); display:flex; align-items:center; justify-content:center; background:#ffffff; border:1px solid rgba(34,91,199,0.14); border-radius:28px; box-shadow:0 18px 40px rgba(15,33,71,0.10); padding:16px; }
.qr-code { width:auto; height:auto; max-width:100%; max-height:100%; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.qr-code > table, .qr-code > canvas { width:100%; height:100%; max-width:100%; max-height:100%; image-rendering: crisp-edges; }
.success-confirm { margin-top: 14px; background:#27ae60; border:none; color:#fff; padding:12px 18px; width:calc(100% - 48px); max-width:340px; }
.payment-card.detail-card { flex:1; }
.payment-card.methods-card { width:100%; }

@media (max-width:480px) {
    .payment-bg { padding: 12px 10px 14px; min-height: 520px; }
    .qr-frame { width: 100%; height: auto; max-width: 300px; aspect-ratio: 1 / 1; }
    .qr-frame { padding: 14px; }
}
