/* ===========================================
   HOO! Checkout - Design Limpo e Moderno
   Baseado na referencia de checkout clean
   =========================================== */

:root {
    /* Cores da marca HOO */
    --hoo-primary: #BCEA2D;
    --hoo-primary-dark: #9CC820;
    --hoo-primary-darker: #7BA318;
    --hoo-primary-glow: rgba(188, 234, 45, 0.35);
    --hoo-primary-subtle: rgba(188, 234, 45, 0.08);

    /* Cores base */
    --hoo-bg: #f5f5f7;
    --hoo-dark: #0B0D0F;
    --hoo-dark-secondary: #1a1e24;
    --hoo-white: #FFFFFF;

    /* Cores de texto */
    --hoo-text: #0B0D0F;
    --hoo-text-secondary: #374151;
    --hoo-text-muted: #6b7280;
    --hoo-text-light: #9ca3af;

    /* Cores de estado */
    --hoo-success: #10B981;
    --hoo-success-glow: rgba(16, 185, 129, 0.25);
    --hoo-error: #EF4444;
    --hoo-error-glow: rgba(239, 68, 68, 0.25);
    --hoo-warning: #F59E0B;
    --hoo-warning-glow: rgba(245, 158, 11, 0.25);

    /* Bordas e fundos */
    --hoo-border: rgba(11, 13, 15, 0.08);
    --hoo-border-hover: rgba(11, 13, 15, 0.15);
    --hoo-bg-card: #ffffff;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(11, 13, 15, 0.04);
    --shadow-md: 0 4px 12px rgba(11, 13, 15, 0.06);
    --shadow-lg: 0 8px 24px rgba(11, 13, 15, 0.08);
    --shadow-xl: 0 16px 48px rgba(11, 13, 15, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-smooth: 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hoo-text);
    background: var(--hoo-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ===========================================
   Animacoes
   =========================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.05; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--hoo-primary-glow); }
    50% { box-shadow: 0 0 40px var(--hoo-primary-glow); }
}

/* ===========================================
   Layout Principal
   =========================================== */

.checkout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================================
   Header
   =========================================== */

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--hoo-white);
    border-bottom: 1px solid var(--hoo-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hoo-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-base);
}

.back-link:hover {
    color: var(--hoo-text);
}

.back-link svg {
    transition: transform var(--transition-base);
}

.back-link:hover svg {
    transform: translateX(-3px);
}

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

.logo-img {
    height: 32px;
    width: auto;
}

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

/* ===========================================
   Content Layout
   =========================================== */

.checkout-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px;
    width: 100%;
    animation: fadeInUp 0.4s ease;
}

.checkout-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ===========================================
   Cards
   =========================================== */

.checkout-card {
    background: var(--hoo-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--hoo-border);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

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

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hoo-dark);
    margin: 0;
}

/* ===========================================
   Payment Toggle
   =========================================== */

.payment-toggle {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--hoo-bg);
    border-radius: var(--radius-full);
}

.toggle-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hoo-text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.toggle-btn:hover {
    color: var(--hoo-text);
}

.toggle-btn.active {
    background: var(--hoo-dark);
    color: var(--hoo-white);
    box-shadow: var(--shadow-sm);
}

/* ===========================================
   Form Blocks
   =========================================== */

.form-block {
    margin-bottom: 28px;
}

.form-block:last-of-type {
    margin-bottom: 0;
}

.form-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hoo-text);
    margin-bottom: 18px;
}

.form-block h3 svg {
    color: var(--hoo-text-muted);
}

/* ===========================================
   Form Grid
   =========================================== */

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

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

.form-field.full {
    grid-column: span 2;
}

.form-field.half {
    grid-column: span 1;
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--hoo-text-secondary);
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    background: var(--hoo-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--hoo-text);
    transition: all var(--transition-base);
}

.form-field input::placeholder {
    color: var(--hoo-text-light);
}

.form-field input:hover,
.form-field select:hover {
    background: var(--hoo-white);
    border-color: var(--hoo-border-hover);
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    background: var(--hoo-white);
    border-color: var(--hoo-primary);
    box-shadow: 0 0 0 3px var(--hoo-primary-glow);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

/* Input with card brands */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-right: 80px;
}

.card-brands {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-icon {
    height: 24px;
    width: auto;
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.brand-icon.brand-visa {
    height: 18px;
}

.brand-icon.active {
    opacity: 1;
}

/* ===========================================
   PIX Section
   =========================================== */

.pix-block {
    padding: 24px;
    background: linear-gradient(135deg, rgba(188, 234, 45, 0.08) 0%, rgba(188, 234, 45, 0.02) 100%);
    border: 2px solid rgba(188, 234, 45, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 0;
}

.pix-promo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pix-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.pix-badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--hoo-dark);
    color: var(--hoo-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.pix-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hoo-dark);
    margin-bottom: 4px;
}

.pix-info p {
    font-size: 0.9375rem;
    color: var(--hoo-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.pix-info p strong {
    color: var(--hoo-dark);
    font-weight: 700;
}

/* ===========================================
   Form Errors
   =========================================== */

.form-errors {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--hoo-error);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-errors svg {
    flex-shrink: 0;
}

/* ===========================================
   Submit Button
   =========================================== */

.btn-pay {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--hoo-dark) 0%, var(--hoo-dark-secondary) 100%);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hoo-white);
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(11, 13, 15, 0.25);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.btn-pay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(188, 234, 45, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-pay:hover::before {
    left: 100%;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 13, 15, 0.35);
}

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

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

.btn-pay-text {
    display: inline;
}

.btn-pay-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pay-loading .spinner {
    animation: spin 1s linear infinite;
}

/* ===========================================
   Security Info
   =========================================== */

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--hoo-text-muted);
}

.security-item svg {
    color: var(--hoo-text-light);
}

.security-item img {
    height: 18px;
    width: auto;
    opacity: 0.7;
}

.security-item .mercadopago-logo {
    height: 22px;
    opacity: 1;
}

/* ===========================================
   Summary Card (Right Column)
   =========================================== */

.summary-card {
    background: var(--hoo-bg-card);
}

.summary-card .card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hoo-border);
}

/* Order Product */
.order-product {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.product-thumb {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hoo-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.product-thumb svg {
    color: var(--hoo-dark);
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--hoo-bg);
    color: var(--hoo-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.product-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hoo-dark);
    margin: 0 0 6px;
    line-height: 1.3;
}

.product-delivery {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--hoo-success);
    font-weight: 500;
}

.product-delivery svg {
    width: 14px;
    height: 14px;
}

.product-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--hoo-dark);
    white-space: nowrap;
}

/* Order Features */
.order-features {
    padding: 16px 0;
    border-top: 1px solid var(--hoo-border);
    border-bottom: 1px solid var(--hoo-border);
    margin-bottom: 16px;
}

.order-features h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hoo-text-secondary);
    margin-bottom: 12px;
}

.order-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--hoo-text-secondary);
}

.order-features li svg {
    width: 16px;
    height: 16px;
    color: var(--hoo-success);
    flex-shrink: 0;
}

/* Order Total */
.order-total {
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9375rem;
}

.total-row span:first-child {
    color: var(--hoo-text-muted);
}

.total-row span:last-child {
    color: var(--hoo-dark);
    font-weight: 500;
}

.total-row.discount {
    color: var(--hoo-success);
}

.total-row.discount span:first-child,
.total-row.discount .discount-value {
    color: var(--hoo-success);
    font-weight: 500;
}

.total-row.final {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--hoo-border);
}

.total-row.final span:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hoo-dark);
}

.total-row.final .final-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hoo-primary-dark);
}

/* Installments Box */
.installments-box {
    text-align: center;
    padding: 12px 16px;
    background: var(--hoo-bg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--hoo-text-muted);
    margin-bottom: 16px;
}

.installments-box strong {
    color: var(--hoo-dark);
    font-weight: 600;
}

/* Guarantee Box */
.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.guarantee-box svg {
    color: var(--hoo-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.guarantee-box strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hoo-dark);
    margin-bottom: 2px;
}

.guarantee-box p {
    font-size: 0.8125rem;
    color: var(--hoo-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Terms Text */
.terms-text {
    font-size: 0.75rem;
    color: var(--hoo-text-light);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.terms-text a {
    color: var(--hoo-text-muted);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.terms-text a:hover {
    color: var(--hoo-text);
}

/* ===========================================
   Paginas de Resultado
   =========================================== */

.result-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--hoo-bg);
}

.result-card {
    max-width: 480px;
    width: 100%;
    text-align: center;
    background: var(--hoo-bg-card);
    border: 1px solid var(--hoo-border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.4s ease;
}

/* Result Icon */
.result-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.result-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    opacity: 0.15;
}

.result-icon.success {
    background: linear-gradient(135deg, var(--hoo-primary) 0%, var(--hoo-primary-dark) 100%);
    box-shadow: 0 8px 32px var(--hoo-primary-glow);
    animation: glow-pulse 2s ease-in-out infinite;
}

.result-icon.success::before {
    background: var(--hoo-primary);
    animation: pulse-ring 2s ease-in-out infinite;
}

.result-icon.error {
    background: linear-gradient(135deg, var(--hoo-error) 0%, #DC2626 100%);
    box-shadow: 0 8px 32px var(--hoo-error-glow);
}

.result-icon.error::before {
    background: var(--hoo-error);
}

.result-icon.pending {
    background: linear-gradient(135deg, var(--hoo-warning) 0%, #D97706 100%);
    box-shadow: 0 8px 32px var(--hoo-warning-glow);
}

.result-icon.pending::before {
    background: var(--hoo-warning);
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.result-icon svg {
    width: 44px;
    height: 44px;
    color: var(--hoo-dark);
}

.result-icon.error svg,
.result-icon.pending svg {
    color: var(--hoo-white);
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hoo-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.result-subtitle {
    font-size: 1rem;
    color: var(--hoo-text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Order Details Box */
.order-details-box {
    background: var(--hoo-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.order-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--hoo-border);
}

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

.order-details-row .label {
    font-size: 0.875rem;
    color: var(--hoo-text-muted);
}

.order-details-row .value {
    font-size: 0.875rem;
    color: var(--hoo-dark);
    font-weight: 500;
}

/* Next Steps */
.next-steps {
    text-align: left;
    margin-bottom: 28px;
}

.next-steps h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hoo-dark);
    margin-bottom: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hoo-dark);
    color: var(--hoo-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-item.active .step-number {
    background: var(--hoo-primary);
    color: var(--hoo-dark);
    animation: stepPulse 1.5s ease infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--hoo-primary-glow); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

.step-item.active .step-text {
    color: var(--hoo-text);
    font-weight: 600;
}

.step-text {
    font-size: 0.875rem;
    color: var(--hoo-text-secondary);
    line-height: 1.5;
    padding-top: 4px;
}

/* Result Button */
.result-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--hoo-dark) 0%, var(--hoo-dark-secondary) 100%);
    color: var(--hoo-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(11, 13, 15, 0.25);
}

.result-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 13, 15, 0.35);
}

.result-btn svg {
    color: var(--hoo-primary);
}

.result-btn-primary {
    background: linear-gradient(135deg, var(--hoo-primary) 0%, var(--hoo-primary-dark) 100%);
    color: var(--hoo-dark);
    box-shadow: 0 4px 20px var(--hoo-primary-glow);
    animation: briefingPulse 2s ease infinite;
}

.result-btn-primary svg {
    color: var(--hoo-dark);
}

.result-btn-primary:hover {
    box-shadow: 0 8px 32px var(--hoo-primary-glow);
}

@keyframes briefingPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--hoo-primary-glow); }
    50% { box-shadow: 0 4px 32px rgba(188, 234, 45, 0.5); }
}

.result-btn-secondary {
    background: transparent;
    border: 1px solid var(--hoo-border);
    color: var(--hoo-text-muted);
    box-shadow: none;
    padding: 12px 24px;
    font-size: 0.875rem;
}

.result-btn-secondary svg {
    color: var(--hoo-text-muted);
}

.result-btn-secondary:hover {
    background: var(--hoo-bg);
    box-shadow: none;
}

.help-text {
    margin-top: 28px;
    font-size: 0.8125rem;
    color: var(--hoo-text-light);
}

.help-text a {
    color: var(--hoo-dark);
    text-decoration: none;
    font-weight: 600;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #B45309;
}

.status-badge.pending::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

/* ===========================================
   PIX/Boleto Result Pages
   =========================================== */

.qr-code-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.qr-code-box {
    padding: 20px;
    background: var(--hoo-white);
    border: 2px solid var(--hoo-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.qr-code-box::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius-lg) + 3px);
    background: linear-gradient(135deg, var(--hoo-primary), var(--hoo-primary-dark));
    z-index: -1;
    opacity: 0.4;
}

.qr-code-box img {
    width: 200px;
    height: 200px;
    display: block;
}

.copy-code-wrap {
    width: 100%;
    display: flex;
    gap: 10px;
}

.copy-code-input {
    flex: 1;
    padding: 14px 16px;
    background: var(--hoo-bg);
    border: 2px solid var(--hoo-border);
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--hoo-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-code-input:focus {
    outline: none;
    border-color: var(--hoo-primary);
}

.copy-code-btn {
    padding: 14px 20px;
    background: var(--hoo-dark);
    color: var(--hoo-white);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
}

.copy-code-btn:hover {
    background: var(--hoo-dark-secondary);
}

.copy-code-btn.copied {
    background: var(--hoo-success);
}

.timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.timer-wrap svg {
    color: var(--hoo-warning);
}

.timer-text {
    font-size: 0.875rem;
    color: #B45309;
}

.timer-text strong {
    font-weight: 700;
}

/* ===========================================
   Responsive
   =========================================== */

@media (max-width: 960px) {
    .checkout-content {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .checkout-right {
        position: static;
        order: -1;
    }
}

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

    .back-link span {
        display: none;
    }

    .checkout-content {
        padding: 20px 16px;
        gap: 20px;
    }

    .checkout-card {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .payment-toggle {
        width: 100%;
    }

    .toggle-btn {
        flex: 1;
        text-align: center;
    }

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

    .form-field.full,
    .form-field.half {
        grid-column: span 1;
    }

    .pix-header {
        flex-wrap: wrap;
    }

    .pix-logo-img {
        height: 36px;
    }

    .security-info {
        flex-direction: column;
        gap: 12px;
    }

    .order-product {
        flex-wrap: wrap;
    }

    .product-price {
        width: 100%;
        margin-top: 8px;
        margin-left: 70px;
    }

    .result-card {
        padding: 36px 24px;
        border-radius: var(--radius-lg);
    }

    .result-icon {
        width: 80px;
        height: 80px;
    }

    .result-icon svg {
        width: 36px;
        height: 36px;
    }

    .result-title {
        font-size: 1.5rem;
    }

    .result-btn {
        width: 100%;
    }

    .copy-code-wrap {
        flex-direction: column;
    }

    .copy-code-btn {
        justify-content: center;
    }

    .qr-code-box img {
        width: 160px;
        height: 160px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
