/* Global typography */
        h1, h2, h3, h4, h5, h6, p, span, a, label, li, strong, b, em, i, small {
            color: #f7da45;
        }

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

        html, body {
            overflow-x: hidden;
            width: 100%;
        }

        body {
            font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #000000;
            color: #f7da45;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        /* Minimal Header */
        header {
            width: 100%;
            background-color: #000000;
            border-bottom: 1px solid #222222;
            padding: 22px 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #f7da45;
        }

        .logo-link {
            text-decoration: none;
            color: #f7da45;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: #f7da45;
        }

        .security-badge-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: #f7da45;
        }

        /* Layout */
        .checkout-container {
            width: 100%;
            max-width: 1100px;
            margin: 40px auto;
            padding: 0 24px;
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 40px;
            flex: 1;
        }

        @media (max-width: 768px) {
            .checkout-container {
                grid-template-columns: 1fr;
                margin: 20px auto;
                gap: 30px;
            }
        }

        /* Checkout Steps (Left) */
        .checkout-steps {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .step-card {
            background-color: #111111;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            border: 1px solid #222222;
            transition: all 0.3s ease;
        }

        .step-card.active {
            border-color: #f7da45;
            box-shadow: 0 4px 25px rgba(247, 218, 69, 0.08);
        }

        .step-header {
            width: 100%;
            padding: 24px;
            background: none;
            border: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: inherit;
            cursor: pointer;
            text-align: left;
        }

        .step-title-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .step-number {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background-color: #222222;
            color: #f7da45;
            font-size: 0.9rem;
            font-weight: 600;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.3s ease;
        }

        .step-card.active .step-number {
            background-color: #f7da45;
            color: #000000;
            font-weight: 800;
        }

        .step-card.completed .step-number {
            background-color: #f7da45;
            color: #000000;
            font-weight: 800;
        }

        .step-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #f7da45;
        }

        .step-status-icon {
            color: #f7da45;
            transition: transform 0.2s ease;
        }

        .step-card.completed .step-status-icon {
            color: #f7da45;
        }

        .step-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .step-card.active .step-content {
            max-height: 1400px; /* Allow expansion */
        }

        .step-content-inner {
            padding: 0 24px 24px 24px;
            border-top: 1px solid #222222;
            display: flex;
            flex-direction: column;
            gap: 16px;
            padding-top: 20px;
        }

        /* Forms */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

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

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
            text-align: left;
        }

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

        @media (max-width: 480px) {
            .form-group.full-width {
                grid-column: span 1;
            }
        }

        .form-group label {
            font-size: 0.85rem;
            font-weight: 600;
            color: #f7da45;
        }

        .form-control {
            padding: 14px 16px;
            border-radius: 10px;
            background-color: #181818;
            color: #f7da45;
            border: 1px solid #333333;
            font-family: inherit;
            font-size: 1rem;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .form-control:focus {
            border-color: #f7da45;
            box-shadow: 0 0 0 2px rgba(247, 218, 69, 0.2);
        }

        .form-control::placeholder {
            color: rgba(247, 218, 69, 0.4);
        }

        /* Shipping Methods */
        .shipping-options {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 8px;
        }

        .shipping-option-card {
            border: 1px solid #333333;
            background-color: #181818;
            border-radius: 12px;
            padding: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
            color: #f7da45;
        }

        .shipping-option-card:hover {
            border-color: #f7da45;
        }

        .shipping-option-card.active {
            border-color: #f7da45;
            background-color: #222222;
        }

        .shipping-option-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .shipping-option-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #f7da45;
        }

        .shipping-option-time {
            font-size: 0.8rem;
            color: rgba(247, 218, 69, 0.7);
            margin-top: 2px;
        }

        .shipping-option-price {
            font-weight: 700;
            font-size: 0.95rem;
            color: #f7da45;
        }

        /* Payment Methods tabs */
        .payment-tabs {
            display: flex;
            gap: 12px;
            border-bottom: 1px solid #222222;
            padding-bottom: 16px;
        }

        .payment-tab-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #333333;
            background-color: #181818;
            color: #f7da45;
            font-family: inherit;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
        }

        .payment-tab-btn.active {
            background-color: #f7da45;
            color: #000000;
            border-color: #f7da45;
            font-weight: 700;
        }

        .payment-tab-btn.active svg {
            stroke: #000000;
        }

        .payment-panel {
            display: none;
            padding-top: 16px;
        }

        .payment-panel.active {
            display: block;
        }

        /* Pix Panel */
        .pix-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 16px;
            padding: 20px;
            background-color: #181818;
            border: 1px solid #222222;
            border-radius: 12px;
            color: #f7da45;
        }

        .qr-placeholder {
            width: 160px;
            height: 160px;
            background-color: #ffffff;
            border-radius: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            border: 1px solid #333333;
        }

        .pix-instructions {
            font-size: 0.85rem;
            line-height: 1.5;
            color: rgba(247, 218, 69, 0.8);
        }

        .pix-copy-btn {
            background-color: #00b512 !important;
            color: #ffffff !important;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 700 !important;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .pix-copy-btn:hover {
            background-color: #00970f !important;
        }

        /* Action Buttons */
        .step-action-btn, .buy-action-btn {
            background-color: #00b512 !important;
            color: #ffffff !important;
            border: none;
            padding: 18px 36px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 1.15rem;
            font-weight: 700 !important;
            cursor: pointer;
            transition: background-color 0.2s ease;
            margin-top: 8px;
        }

        .step-action-btn:hover, .buy-action-btn:hover {
            background-color: #00970f !important;
        }

        /* Sidebar (Right) */
        .order-summary-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .summary-card {
            background-color: #111111;
            border-radius: 16px;
            border: 1px solid #222222;
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            text-align: left;
            color: #f7da45;
        }

        .summary-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid #222222;
            color: #f7da45;
        }

        .summary-items {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-height: 240px;
            overflow-y: auto;
            margin-bottom: 20px;
        }

        .summary-item {
            display: flex;
            gap: 12px;
        }

        .summary-item-img {
            width: 54px;
            height: 72px;
            aspect-ratio: 3 / 4 !important;
            border-radius: 8px;
            background-color: #181818;
            border: 1px solid #222222;
            object-fit: cover !important;
        }

        .summary-item-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .summary-item-title {
            font-size: 0.85rem;
            font-weight: 600;
            line-height: 1.3;
            color: #f7da45;
        }

        .summary-item-meta {
            font-size: 0.75rem;
            color: rgba(247, 218, 69, 0.7);
            margin-top: 2px;
        }

        .summary-item-price {
            font-size: 0.85rem;
            font-weight: 700;
            color: #f7da45;
            align-self: center;
        }

        .summary-pricing {
            border-top: 1px solid #222222;
            padding-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.9rem;
            color: #f7da45;
        }

        .summary-row.total {
            border-top: 1px solid #222222;
            padding-top: 12px;
            font-size: 1.15rem;
            font-weight: 700;
            color: #f7da45;
            margin-top: 4px;
        }

        /* Success Screen */
        .success-container {
            display: none;
            background-color: #111111;
            border-radius: 20px;
            border: 1px solid #222222;
            padding: 60px 24px;
            max-width: 550px;
            margin: 60px auto;
            text-align: center;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
            flex-direction: column;
            align-items: center;
            gap: 24px;
            color: #f7da45;
        }

        .success-icon-wrapper {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background-color: #f7da45;
            color: #000000;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .success-icon-wrapper svg {
            stroke: #000000;
        }

        .success-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #f7da45;
        }

        .success-text {
            font-size: 1rem;
            line-height: 1.5;
            color: rgba(247, 218, 69, 0.8);
        }

        .success-details {
            background-color: #181818;
            border: 1px solid #222222;
            padding: 16px;
            border-radius: 12px;
            width: 100%;
            font-size: 0.9rem;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 8px;
            color: #f7da45;
        }

        .back-to-store-btn {
            background-color: #00b512;
            color: #ffffff !important;
            text-decoration: none;
            padding: 14px 32px;
            border-radius: 8px;
            font-weight: 700;
            transition: background-color 0.2s ease;
            margin-top: 12px;
        }

        .back-to-store-btn:hover {
            background-color: #00970f;
        }

        /* Coupon Section in Sidebar */
        .checkout-coupon-section {
            border-top: 1px solid #222222;
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .checkout-coupon-form {
            display: flex;
            gap: 8px;
        }

        .checkout-coupon-input {
            flex: 1;
            padding: 10px 14px;
            border-radius: 8px;
            background-color: #181818;
            color: #f7da45;
            border: 1px solid #333333;
            font-family: inherit;
            font-size: 0.9rem;
            outline: none;
            text-transform: uppercase;
        }

        .checkout-coupon-input:focus {
            border-color: #f7da45;
        }

        .checkout-coupon-btn {
            background-color: #00b512;
            color: #ffffff;
            border: 1px solid #00b512;
            padding: 10px 16px;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .checkout-coupon-btn:hover {
            background-color: #00970f;
            border-color: #00970f;
        }

        .checkout-coupon-result {
            font-size: 0.8rem;
            text-align: left;
            color: #f7da45;
        }

        /* Checkout Order Bump */
        .checkout-order-bump-container {
            border: 1px dashed #f7da45;
            background-color: #181818;
            border-radius: 12px;
            padding: 12px 16px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            user-select: none;
            transition: background-color 0.2s ease;
            color: #f7da45;
        }

        .checkout-order-bump-container:hover {
            background-color: #222222;
        }

        .checkout-order-bump-checkbox {
            accent-color: #f7da45;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .checkout-order-bump-details {
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .checkout-order-bump-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: #f7da45;
        }

        .checkout-order-bump-price {
            font-size: 0.8rem;
            color: rgba(247, 218, 69, 0.8);
            margin-top: 2px;
        }

        .header-icon svg,
        .header-icon-btn svg,
        .hamburger-btn svg {
            width: 28px !important;
            height: 28px !important;
        }

        /* ═══════════════════════════════════════
           MOBILE OPTIMIZATION — max-width: 768px
           ═══════════════════════════════════════ */
        @media (max-width: 768px) {
            /* Header */
            header {
                padding: 18px 20px;
            }
            .logo {
                font-size: 1.15rem;
                letter-spacing: 0.1em;
            }
            .logo-img {
                height: 38px !important;
            }
            .security-badge-header span {
                display: none; /* hide text, keep lock icon */
            }

            /* Layout: show summary below form on mobile */
            .checkout-container {
                padding: 0 12px;
                margin: 16px auto;
                gap: 20px;
            }
            .order-summary-sidebar {
                order: 2; /* appear below checkout steps on mobile */
            }

            /* Summary card */
            .summary-card {
                padding: 16px;
            }
            .summary-items {
                max-height: 160px;
            }

            /* Step cards */
            .step-header {
                padding: 16px;
            }
            .step-content-inner {
                padding: 0 16px 16px;
                padding-top: 16px;
            }
            .step-title {
                font-size: 1rem;
            }

            /* Action buttons — full width on mobile */
            .step-action-btn {
                align-self: stretch;
                width: 100%;
                padding: 18px;
                font-size: 1.1rem;
                border-radius: 8px;
            }

            /* Payment tabs */
            .payment-tab-btn {
                padding: 14px 8px;
                font-size: 0.9rem;
            }

            /* Coupon form */
            .checkout-coupon-form {
                flex-direction: column;
                gap: 8px;
            }
            .checkout-coupon-input {
                width: 100%;
                font-size: 1rem; /* prevent iOS zoom */
                padding: 12px 14px;
            }
            .checkout-coupon-btn {
                width: 100%;
                padding: 12px;
                font-size: 1rem;
            }

            /* Shipping options */
            .shipping-option-card {
                padding: 14px;
            }

            /* Success screen */
            .success-container {
                margin: 20px auto;
                padding: 40px 20px;
            }
            .success-title {
                font-size: 1.4rem;
            }

            /* Safe area for iPhones with notch/home bar */
            .checkout-container {
                padding-bottom: env(safe-area-inset-bottom, 16px);
            }
        }

        /* ═══════════════════════════════════════
           SMALL MOBILE — max-width: 480px
           ═══════════════════════════════════════ */
        @media (max-width: 480px) {
            .checkout-container {
                padding: 0 8px;
            }
            .summary-card {
                padding: 12px;
            }
            .step-content-inner {
                padding: 0 12px 12px;
                padding-top: 12px;
            }
            .logo {
                font-size: 0.8rem;
                letter-spacing: 0.06em;
            }
            .form-control {
                font-size: 1rem; /* prevent iOS auto-zoom on inputs */
            }
        }
        
        /* Estilos de Pagamento Confirmado Premium */
        .success-icon-wrapper.approved-badge {
            background-color: #f7da45 !important;
            color: #000000 !important;
            box-shadow: 0 4px 20px rgba(247, 218, 69, 0.4);
            animation: popCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
        }
        @keyframes popCheck {
            0% { transform: scale(0.6); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        .confetti {
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: #f7da45;
            opacity: 0.8;
            border-radius: 50%;
            z-index: 9999;
            pointer-events: none;
            animation: dropConfetti 3s ease-out forwards;
        }
        @keyframes dropConfetti {
            0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
            100% { transform: translateY(600px) rotate(360deg); opacity: 0; }
        }
        .payment-spinner {
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }