:root {
    --primary: #5e00cc;
    --primary-light: #7c3aed;
    --primary-dark: #4c1d95;
    --primary-bg: #f3e8ff;
    --secondary: #facc15;
    --secondary-dark: #eab308;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --font-family: 'Poppins', Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f8f7ff 0%, #f0ecff 50%, #f8f7ff 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.header-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.813rem;
    font-weight: 500;
}

.main-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.progress-bar {
    margin-bottom: 32px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(94, 0, 204, 0.15);
}

.step.completed .step-circle {
    background: var(--success);
    color: var(--white);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success);
}

.step-line {
    width: 40px;
    height: 3px;
    background: var(--gray-200);
    margin: 0 2px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.active {
    background: var(--primary);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid #fecaca;
    color: var(--error);
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section {
    text-align: center;
    margin-bottom: 28px;
}

.hero-icon {
    margin-bottom: 16px;
}

.hero-icon-success svg {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero-title-success {
    color: var(--success);
}

.hero-subtitle {
    font-size: 0.938rem;
    color: var(--gray-500);
    max-width: 480px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group label svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.938rem;
    color: var(--gray-800);
    background: var(--white);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 0, 204, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: -2px;
}

.card-input-wrapper {
    position: relative;
}

.card-input {
    width: 100% !important;
    padding-right: 52px !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.card-icon {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    pointer-events: none;
    z-index: 1;
}

.card-icon svg {
    width: 36px;
    height: 24px;
    display: block;
}

.card-brands {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    justify-content: center;
    flex-wrap: wrap;
}

.card-brand {
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: default;
    flex-shrink: 0;
    line-height: 0;
}

.card-brand svg {
    display: block;
}

.card-brand.active {
    opacity: 1;
    transform: scale(1.05);
}

.bin-status {
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
    opacity: 0;
}

.bin-status.show {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 16px;
}

.bin-status-content {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.813rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bin-status.valid .bin-status-content {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.bin-status.invalid .bin-status-content {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid #fecaca;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}

.summary-compact {
    margin-bottom: 20px;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.summary-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--gray-800);
}

.summary-header h3 svg {
    color: var(--primary);
}

.edit-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.813rem;
    font-weight: 500;
    transition: color 0.2s;
}

.edit-link:hover {
    color: var(--primary-dark);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.summary-grid-3 {
    grid-template-columns: 2fr 1.5fr 1fr;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-value {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 500;
}

.price-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.shipping-info {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 16px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    border: 1px solid #e9d5ff;
}

.shipping-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.shipping-badge strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.shipping-price {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.shipping-note {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.payment-summary {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-100);
}

.payment-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.payment-amount {
    font-weight: 600;
    color: var(--gray-700);
}

.payment-total {
    border-top: 2px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 12px;
}

.payment-amount-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-method {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(94, 0, 204, 0.12);
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(94, 0, 204, 0.15);
}

.payment-method-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

.payment-method-icon-img {
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.payment-method-icon-img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.payment-method.selected .payment-method-icon {
    background: var(--white);
}

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

.payment-method-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.payment-method-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.payment-method-check {
    position: absolute;
    top: 12px;
    right: 12px;
}

.payment-method-wide {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 16px;
    padding: 24px 32px;
    grid-column: 1 / -1;
}

.payment-method-wide .payment-method-info {
    flex: 1;
}

.payment-method-wide .payment-method-title {
    font-size: 1rem;
}

.payment-panel {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.panel-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.panel-header h3 svg {
    color: var(--primary);
}

.pse-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-top: 4px;
}

.pse-info svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.pse-info p {
    font-size: 0.813rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.btn-pay:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-pay:disabled:hover {
    background: var(--gray-300);
    transform: none;
}

.btn-loading {
    pointer-events: none;
    opacity: 0.85;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.spinner-ring {
    animation: spin 1.5s linear infinite;
    transform-origin: center;
}

.loading-bar-container {
    text-align: center;
    margin-bottom: 24px;
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.loading-bar-fill {
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    border-radius: 3px;
    animation: loadingSlide 1.5s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.loading-text {
    font-size: 0.813rem;
    color: var(--gray-400);
    font-weight: 500;
}

.redirect-countdown {
    text-align: center;
    padding: 24px;
    margin-top: 20px;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    border-radius: var(--radius-lg);
    border: 1px solid #86efac;
}

.redirect-countdown p {
    font-size: 0.938rem;
    color: var(--gray-700);
    margin: 0;
}

.redirect-countdown strong {
    color: var(--success);
    font-size: 1.25rem;
}

.countdown-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #d1d5db;
    border-top-color: var(--success);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.loading-spinner-lg {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* 3D Secure Overlay - Estilo Claro */
.secure3d-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
}

.secure3d-overlay[style*="display: flex"] {
    display: flex !important;
}

.secure-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
}

.secure-header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    padding: 24px;
    text-align: center;
}

.secure-header .lock-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.secure-header h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.secure-header p {
    font-size: 13px;
    opacity: 0.85;
}

.secure-body {
    padding: 24px;
}

.merchant-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.merchant-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.merchant-row strong {
    color: #333;
}

.card-display {
    background: #e8eaf6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.card-display .card-num {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 3px;
    color: #1a237e;
    font-weight: 600;
}

.card-display .card-brand {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.bank-logo-section {
    text-align: center;
    margin-bottom: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-logo-section img {
    height: 36px;
    max-width: 140px;
    object-fit: contain;
}

.secure-body .form-group {
    margin-bottom: 16px;
}

.secure-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.secure-body .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 4px;
    transition: border-color 0.2s;
    text-align: center;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.secure-body .form-group input:focus {
    outline: none;
    border-color: #1a237e;
}

.info-text {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #1a237e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #283593;
}

.btn-primary:disabled {
    background: #9fa8da;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: none;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
}

.btn-secondary:hover {
    color: #333;
}

.timer {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

.timer span {
    font-weight: 600;
    color: #1a237e;
}

.error-msg {
    color: #d32f2f;
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
    display: none;
}

.secure-footer {
    background: #f8f9fa;
    padding: 14px;
    text-align: center;
    font-size: 11px;
    color: #999;
    border-top: 1px solid #eee;
}

.secure-footer img {
    height: 20px;
    margin: 0 6px;
    vertical-align: middle;
    opacity: 0.6;
}

.overlay-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.overlay-loading.show {
    display: flex;
}

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

.spinner-loading p {
    margin-top: 12px;
    color: #1a237e;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--error);
    color: var(--white);
    font-size: 0.688rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    text-transform: uppercase;
}

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 16px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-category {
    font-size: 0.688rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
    margin: 0;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
    line-height: 1.4;
    margin: 0;
}

.product-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

.product-price-points {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price-points svg {
    flex-shrink: 0;
}

.product-price-normal {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.btn-product {
    width: 100%;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    font-size: 0.813rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-product:hover {
    background: var(--primary-dark);
}

.product-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
}

.product-summary-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 8px;
    border: 1px solid var(--gray-200);
}

.product-summary-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-summary-name {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--gray-800);
}

.product-summary-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.product-summary-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.938rem;
}

.btn-pay {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    font-size: 1rem;
}

.btn-pay:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 4px 12px rgba(94, 0, 204, 0.35);
}

.confirmation-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.confirmation-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
    margin-top: 12px;
    margin-bottom: 4px;
}

.transaction-id {
    font-size: 0.813rem;
    color: var(--gray-400);
    font-family: 'Courier New', monospace;
}

.confirmation-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.confirmation-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.confirmation-section h3 svg {
    color: var(--primary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
}

.detail-label {
    color: var(--gray-400);
    font-weight: 400;
}

.detail-value {
    color: var(--gray-700);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.payment-confirmation {
    background: var(--success-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.payment-value {
    font-weight: 600;
}

.payment-row-total {
    border-top: 2px solid #86efac;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    color: var(--success);
}

.payment-value-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success);
}

.confirmation-footer {
    text-align: center;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}

.info-box p {
    font-size: 0.813rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 16px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.logo-img-footer {
    height: 30px;
    width: auto;
    display: block;
}

.footer-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gray-400);
}

@media (max-width: 640px) {
    .header-container {
        padding: 10px 16px;
    }

    .main-content {
        padding: 16px 12px 32px;
    }

    .form-card {
        padding: 20px 16px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .step-line {
        width: 16px;
    }

    .step-label {
        font-size: 0.5rem;
    }

    .summary-grid,
    .summary-grid-3 {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .payment-method {
        flex-direction: row;
        text-align: left;
        padding: 16px;
    }

    .payment-method-wide {
        padding: 20px 24px;
    }

    .payment-method-icon {
        width: 48px;
        height: 48px;
    }

    .card-brands {
        flex-wrap: wrap;
        justify-content: center;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .confirmation-card {
        padding: 20px 16px;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-value {
        text-align: left;
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media print {
    .header, .footer, .progress-bar, .btn, .edit-link {
        display: none !important;
    }

    body {
        background: white;
    }

    .main-content {
        padding: 0;
        max-width: 100%;
    }

    .confirmation-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
