* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #eef0f3;
    color: #1d1d1f;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}
.mc-r, .mc-y {
    display: inline-block;
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}
.mc-r { background: #EB001B; z-index: 1; position: relative; }
.mc-y { background: #F79E1B; }
.mc-r, .mc-y { width: 32px; height: 32px; }
.mc-r { margin-right: -12px; }
.mc-y { margin-left: -12px; opacity: 0.92; }
.mc-r.sm, .mc-y.sm { width: 20px; height: 20px; }
.mc-r.sm { margin-right: -7px; }
.mc-y.sm { margin-left: -7px; }
.mc-r.xs, .mc-y.xs { width: 13px; height: 13px; }
.mc-r.xs { margin-right: -5px; }
.mc-y.xs { margin-left: -5px; }
.v-logo {
    font-family: 'Inter', 'Arial Black', 'Impact', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #1A1F71;
    letter-spacing: -0.5px;
    line-height: 1;
    font-style: normal;
    text-shadow: 0 0 0.5px rgba(26,31,113,0.3);
}
.v-logo.sm { font-size: 19px; }
.v-logo.white { color: #fff; }
.v-logo.card-pos {
    position: absolute;
    top: 14px;
    right: 18px;
}
.topbar {
    background: #fff;
    border-bottom: 3px solid #EB001B;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.topbar.visa-top { border-bottom-color: #1A1F71; }
.topbar .inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 13px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 6px;
}
.brand-name {
    font-size: 19px;
    font-weight: 700;
    color: #000;
    margin-left: 5px;
    letter-spacing: -0.3px;
}
.brand-sub {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 3px;
    margin-top: 2px;
    display: block;
    line-height: 1;
}
.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ssl {
    font-size: 11.5px;
    color: #15803d;
    background: #f0fdf4;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    letter-spacing: 0.1px;
}
.ssl-visa {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.bcb-badge {
    font-size: 10.5px;
    color: #6b7280;
    font-weight: 500;
    padding: 3px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
}
.page {
    max-width: 720px;
    margin: 22px auto 32px;
    padding: 0 24px;
}
.alert {
    background: #fff8e1;
    border-left: 4px solid #e65100;
    padding: 13px 16px;
    border-radius: 8px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 18px;
    font-size: 14px;
    color: #4e342e;
    backface-visibility: hidden;
}
.alert-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e65100;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.alert-text { flex: 1; }
.alert-text strong { color: #bf360c; }
.deadline { color: #c62828; font-weight: 700; }
.countdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}
.countdown-label { font-size: 11px; color: #78350f; font-weight: 600; }
.countdown {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 15px;
    font-weight: 800;
    color: #c62828;
    background: rgba(198,40,40,0.08);
    padding: 2px 8px;
    border-radius: 5px;
    letter-spacing: 1px;
    border: 1px solid rgba(198,40,40,0.15);
    min-width: 70px;
    display: inline-block;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.visa-alert {
    border-left-color: #1A1F71;
    background: #eff6ff;
}
.visa-alert .alert-text strong { color: #1e3a8a; }
.visa-alert .deadline { color: #1e3a8a; }
.visa-alert .countdown { color: #1e3a8a; background: rgba(30,58,138,0.08); border-color: rgba(30,58,138,0.15); }
.visa-alert .countdown-label { color: #1e3a8a; }
.card-main {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.card-head {
    padding: 18px 28px;
    background: linear-gradient(135deg, #fafafa 0%, #f4f5f7 100%);
    border-bottom: 1px solid #e5e7eb;
}
.visa-head { background: linear-gradient(135deg, #f5f7ff 0%, #eef0ff 100%); }
.head-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.head-name {
    font-size: 15px;
    font-weight: 700;
    color: #000;
}
.head-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #EB001B;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.visa-badge { background: #1A1F71; }
.head-ref {
    font-size: 12px;
    color: #6b7280;
}
.ref-code {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-weight: 700;
    color: #EB001B;
}
.visa-code { color: #1A1F71; }
.card-body {
    padding: 24px 28px 28px;
}
.card-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}
.subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.55;
}
.steps {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 9px;
    padding: 3px;
    margin-bottom: 22px;
}
.step {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    border-radius: 7px;
    transition: all 0.2s;
    cursor: default;
}
.step.ativo {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    margin-right: 4px;
}
.step.ativo .dot { background: #EB001B; color: #fff; }
.vsteps .step.ativo .dot { background: #1A1F71; }
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    position: relative;
}
.field label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.field input {
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}
.field input::placeholder { color: #b0b7c3; }
.field input:focus {
    outline: none;
    border-color: #EB001B;
    box-shadow: 0 0 0 3px rgba(235,0,27,0.09);
}
.visa-page .field input:focus {
    border-color: #1A1F71;
    box-shadow: 0 0 0 3px rgba(26,31,113,0.09);
}
.field input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.09);
    background: #fff9f9;
}
.error-msg {
    font-size: 11px;
    color: #dc2626;
    margin-top: 3px;
    display: none;
    font-weight: 500;
}
.cvv-info {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 3px;
}
.card-type-indicator {
    position: absolute;
    right: 10px;
    top: 33px;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 18px 0;
}
.card-visual {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 40%, #0f3460 100%);
    border-radius: 12px;
    padding: 20px 22px 17px;
    margin-bottom: 18px;
    color: #fff;
    position: relative;
    min-height: 136px;
    font-family: 'SF Mono', 'Consolas', 'Courier New', monospace;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
}
.card-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}
.card-visual::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: cardShine 5s ease-in-out infinite 1.5s;
}
@keyframes cardShine {
    0%   { left: -100%; }
    40%  { left: 150%; }
    100% { left: 150%; }
}
.visa-card-visual {
    background: linear-gradient(135deg, #0f1a5e 0%, #1A1F71 45%, #2c3a9e 100%);
}
.vcircles {
    position: absolute;
    top: 14px;
    right: 16px;
    display: flex;
    align-items: center;
}
.vchip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #c9a84c, #e8cc6a, #c9a84c);
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
    position: relative;
}
.vchip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 22px;
    height: 16px;
    border: 1px solid rgba(150,100,0,0.4);
    border-radius: 2px;
}
.vnum {
    font-size: 19px;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    font-weight: 500;
}
.vrow {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.vholder {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vexp {
    font-size: 11px;
    letter-spacing: 1px;
    opacity: 0.65;
}
.card-band {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #EB001B, #F79E1B);
    border-radius: 12px 12px 0 0;
}
.card-band-visa {
    background: linear-gradient(90deg, #1A1F71, #3b5bdb, #1A1F71);
}
.alt-card-link {
    font-size: 13px;
    color: #6b7280;
    background: #f8f9ff;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 14px 0;
    border: 1px solid #e0e4f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.alt-card-link a {
    color: #1A1F71;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.alt-card-link a:hover { text-decoration: none; }
.secure-note {
    font-size: 13px;
    color: #4b5563;
    background: #f0fdf4;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 14px 0 16px;
    border: 1px solid #d1fae5;
}
.visa-note { background: #f0f2ff; border-color: #d0d4f0; }
button[type="submit"] {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #EB001B 0%, #d40018 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 3px 12px rgba(235,0,27,0.28);
    letter-spacing: 0.2px;
}
button[type="submit"]:hover {
    opacity: 0.93;
    box-shadow: 0 4px 16px rgba(235,0,27,0.35);
}
button[type="submit"]:active { transform: scale(0.99); }
button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.vbtn {
    background: linear-gradient(135deg, #1A1F71 0%, #131760 100%);
    box-shadow: 0 3px 12px rgba(26,31,113,0.28);
}
.vbtn:hover { opacity: 0.93; box-shadow: 0 4px 16px rgba(26,31,113,0.35); }
.btn-loader { display: inline-flex; align-items: center; gap: 8px; }
.btn-loader::before {
    content: '';
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sucesso {
    padding: 48px 28px;
    text-align: center;
}
.check {
    font-size: 30px;
    color: #16a34a;
    background: #f0fdf4;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 2px solid #bbf7d0;
}
.sucesso h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111;
}
.sucesso p {
    font-size: 13px;
    color: #6b7280;
    max-width: 340px;
    margin: 0 auto;
}
.redirect {
    margin-top: 16px;
    font-size: 12px;
    color: #9ca3af;
    animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}
.footer {
    text-align: center;
    padding: 22px 0 8px;
}
.footer-text {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.7;
}
.footer-copy {
    font-size: 11px;
    color: #d1d5db;
    margin-top: 4px;
}
.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.footer-brand-name {
    font-size: 13px;
    font-weight: 700;
    color: #9ca3af;
}
.cep-loading {
    position: absolute;
    right: 10px;
    top: 32px;
    width: 14px; height: 14px;
    border: 2px solid #e5e7eb;
    border-top-color: #EB001B;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.visa-page .cep-loading { border-top-color: #1A1F71; }
@media (max-width: 540px) {
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .card-body, .card-head { padding-left: 18px; padding-right: 18px; }
    .page { padding: 0 14px; margin-top: 16px; }
    .vnum { font-size: 16px; letter-spacing: 2px; }
    .card-visual { padding: 16px 16px 13px; min-height: 118px; }
    .topbar .inner { padding: 11px 14px; }
}
