/* ==========================================================================
   CHECKOUT DIALOG - FULLSCREEN MULTI-STEP
   clearTime Custom Checkout
   ========================================================================== */

:root {
    --ct-checkout-red: #EF5350;
    --ct-checkout-red-hover: #E53935;
    --ct-checkout-dark: #1a1a2e;
    --ct-checkout-gray: #6B7280;
    --ct-checkout-gray-light: #F3F4F6;
    --ct-checkout-border: #E5E7EB;
    --ct-checkout-success: #10B981;
    --ct-checkout-success-hover: #059669;
    --ct-checkout-error: #EF4444;
    --ct-checkout-warning: #F59E0B;
    --ct-checkout-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --ct-checkout-radius: 16px;
    --ct-checkout-radius-sm: 12px;
    --ct-checkout-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Overlay
   ========================================================================== */

.ct-checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ct-checkout-ease);
}

.ct-checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Dialog Container
   ========================================================================== */

.ct-checkout-dialog {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: var(--ct-checkout-font);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s var(--ct-checkout-ease);
}

.ct-checkout-dialog.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

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

.ct-checkout-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid var(--ct-checkout-border);
    flex-shrink: 0;
    background: #fff;
}

.ct-checkout-dialog__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin: 0;
}

.ct-checkout-dialog__close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--ct-checkout-gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ct-checkout-gray);
    transition: all 0.2s;
}

.ct-checkout-dialog__close:hover {
    background: var(--ct-checkout-red);
    color: #fff;
    transform: rotate(90deg);
}

/* ==========================================================================
   Progress Indicator
   ========================================================================== */

.ct-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px;
    gap: 0;
    flex-shrink: 0;
    background: var(--ct-checkout-gray-light);
}

.ct-checkout-progress__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.ct-checkout-progress__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--ct-checkout-gray);
    border: 2px solid var(--ct-checkout-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.ct-checkout-progress__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ct-checkout-gray);
    transition: all 0.3s;
}

.ct-checkout-progress__dot.active .ct-checkout-progress__number {
    background: var(--ct-checkout-red);
    color: #fff;
    border-color: var(--ct-checkout-red);
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.ct-checkout-progress__dot.active .ct-checkout-progress__label {
    color: var(--ct-checkout-red);
}

.ct-checkout-progress__dot.completed .ct-checkout-progress__number {
    background: var(--ct-checkout-success);
    color: #fff;
    border-color: var(--ct-checkout-success);
}

.ct-checkout-progress__dot.completed .ct-checkout-progress__number::before {
    content: '\2713';
    font-size: 16px;
}

.ct-checkout-progress__line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--ct-checkout-border);
    margin: 0 8px;
    margin-bottom: 28px;
    transition: background 0.3s;
}

.ct-checkout-progress__dot.completed + .ct-checkout-progress__line {
    background: var(--ct-checkout-success);
}

/* ==========================================================================
   Steps Container
   ========================================================================== */

.ct-checkout-steps {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.ct-checkout-step {
    display: none;
    animation: stepFadeIn 0.4s var(--ct-checkout-ease);
}

.ct-checkout-step.active {
    display: block;
}

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

.ct-checkout-step__title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin: 0 0 8px;
}

.ct-checkout-step__subtitle {
    font-size: 15px;
    color: var(--ct-checkout-gray);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ==========================================================================
   Product Selection
   ========================================================================== */

.ct-checkout-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 2px solid var(--ct-checkout-border);
    border-radius: var(--ct-checkout-radius);
    margin-bottom: 16px;
    position: relative;
    transition: all 0.2s;
}

.ct-checkout-product--main {
    border-color: var(--ct-checkout-red);
    background: linear-gradient(135deg, #fff 0%, #FEF2F2 100%);
}

.ct-checkout-product--addon {
    border-style: dashed;
}

.ct-checkout-product--addon.added {
    border-style: solid;
    border-color: var(--ct-checkout-success);
    background: linear-gradient(135deg, #fff 0%, #ECFDF5 100%);
}

.ct-checkout-product__image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--ct-checkout-radius-sm);
    background: #fff;
    flex-shrink: 0;
}

.ct-checkout-product__info {
    flex: 1;
    min-width: 0;
}

.ct-checkout-product__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin: 0 0 4px;
}

.ct-checkout-product__desc {
    font-size: 13px;
    color: var(--ct-checkout-gray);
    margin: 0 0 8px;
    line-height: 1.5;
}

.ct-checkout-product__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
}

.ct-checkout-product__badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--ct-checkout-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.ct-checkout-product__badge--optional {
    background: var(--ct-checkout-gray);
}

/* Product Color Selection */
.ct-checkout-product__color {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.ct-checkout-product__color-swatch,
.ct-checkout-summary__color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.ct-checkout-product__color-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ct-checkout-gray);
}

.ct-checkout-summary__color {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ct-checkout-gray);
}

/* Toggle Switch */
.ct-checkout-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.ct-checkout-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ct-checkout-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--ct-checkout-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
}

.ct-checkout-toggle__slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s var(--ct-checkout-ease);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.ct-checkout-toggle input:checked + .ct-checkout-toggle__slider {
    background: var(--ct-checkout-success);
}

.ct-checkout-toggle input:checked + .ct-checkout-toggle__slider::before {
    transform: translateX(24px);
}

.ct-checkout-product-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px;
    color: var(--ct-checkout-gray);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.ct-checkout-form-row {
    margin-bottom: 0;
}

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

.ct-checkout-field {
    margin-bottom: 16px;
}

.ct-checkout-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ct-checkout-dark);
    margin-bottom: 8px;
}

.ct-checkout-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--ct-checkout-font);
    font-size: 15px;
    border: 2px solid var(--ct-checkout-border);
    border-radius: var(--ct-checkout-radius-sm);
    background: #fff;
    transition: all 0.2s;
    color: var(--ct-checkout-dark);
}

.ct-checkout-input::placeholder {
    color: #9CA3AF;
}

.ct-checkout-input:focus {
    outline: none;
    border-color: var(--ct-checkout-red);
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.1);
}

.ct-checkout-input.error {
    border-color: var(--ct-checkout-error);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.ct-checkout-field-error {
    display: block;
    font-size: 12px;
    color: var(--ct-checkout-error);
    margin-top: 6px;
    min-height: 16px;
}

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

/* Checkbox */
.ct-checkout-checkbox-group {
    margin: 24px 0;
}

.ct-checkout-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.ct-checkout-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--ct-checkout-border);
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    margin-top: 2px;
}

.ct-checkout-checkbox:checked {
    background: var(--ct-checkout-red);
    border-color: var(--ct-checkout-red);
}

.ct-checkout-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.ct-checkout-checkbox-text {
    font-size: 14px;
    color: var(--ct-checkout-dark);
    line-height: 1.5;
}

.ct-checkout-checkbox-text a {
    color: var(--ct-checkout-red);
    text-decoration: underline;
    font-weight: 500;
}

.ct-checkout-checkbox-text a:hover {
    color: var(--ct-checkout-red-hover);
}

/* ==========================================================================
   Address Section
   ========================================================================== */

.ct-checkout-address-section {
    margin-bottom: 24px;
}

.ct-checkout-address-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ct-checkout-border);
}

/* ==========================================================================
   Payment & Stripe
   ========================================================================== */

.ct-checkout-payment {
    background: var(--ct-checkout-gray-light);
    border-radius: var(--ct-checkout-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.ct-checkout-stripe-element {
    min-height: 44px;
}

.ct-checkout-payment-error {
    color: var(--ct-checkout-error);
    font-size: 13px;
    margin-top: 12px;
}

/* ==========================================================================
   Coupon
   ========================================================================== */

.ct-checkout-coupon {
    margin-bottom: 24px;
}

.ct-checkout-coupon__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-checkout-dark);
    margin: 0 0 12px;
}

.ct-checkout-coupon__row {
    display: flex;
    gap: 12px;
}

.ct-checkout-coupon__row .ct-checkout-input {
    flex: 1;
}

.ct-checkout-coupon__message {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.ct-checkout-coupon__message--success {
    color: var(--ct-checkout-success);
}

.ct-checkout-coupon__message--error {
    color: var(--ct-checkout-error);
}

/* ==========================================================================
   Shipping Methods
   ========================================================================== */

.ct-checkout-shipping {
    margin-bottom: 24px;
}

.ct-checkout-shipping__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-checkout-dark);
    margin: 0 0 12px;
}

.ct-checkout-shipping-option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--ct-checkout-border);
    border-radius: var(--ct-checkout-radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ct-checkout-shipping-option:hover {
    border-color: var(--ct-checkout-gray);
}

.ct-checkout-shipping-option.selected {
    border-color: var(--ct-checkout-red);
    background: #FEF2F2;
}

.ct-checkout-shipping-option input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--ct-checkout-red);
}

.ct-checkout-shipping-option__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-checkout-shipping-option__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ct-checkout-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-checkout-shipping-option__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFCC00;
    color: #CC0000;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ct-checkout-shipping-option__logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    margin-left: 4px;
}

.ct-checkout-shipping-option__dhl-logo {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.ct-checkout-shipping-option__dhl-logo svg {
    border-radius: 3px;
}

.ct-checkout-shipping-option__details {
    font-size: 13px;
    color: var(--ct-checkout-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ct-checkout-shipping-option__details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ct-checkout-shipping-option__details svg {
    width: 14px;
    height: 14px;
    color: var(--ct-checkout-success);
}

.ct-checkout-shipping-option__cost {
    font-size: 15px;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    text-align: right;
}

.ct-checkout-shipping-option__cost small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--ct-checkout-gray);
}

.ct-checkout-shipping-loading {
    padding: 16px;
    text-align: center;
    color: var(--ct-checkout-gray);
    font-size: 14px;
}

/* ==========================================================================
   Price Summary
   ========================================================================== */

.ct-checkout-price-summary {
    background: var(--ct-checkout-gray-light);
    border-radius: var(--ct-checkout-radius);
    padding: 20px;
    margin-top: 24px;
}

.ct-checkout-price-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ct-checkout-gray);
}

.ct-checkout-price-summary__row--discount {
    color: var(--ct-checkout-success);
}

.ct-checkout-price-summary__row--total {
    border-top: 2px solid var(--ct-checkout-border);
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
}

.ct-checkout-price-summary__row--total small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--ct-checkout-gray);
    margin-top: 2px;
}

.ct-checkout-price-summary__tax {
    font-size: 12px;
    color: var(--ct-checkout-gray);
    text-align: right;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--ct-checkout-border);
}

/* ==========================================================================
   Order Summary (Step 4)
   ========================================================================== */

.ct-checkout-summary {
    background: var(--ct-checkout-gray-light);
    border-radius: var(--ct-checkout-radius);
    padding: 24px;
}

.ct-checkout-summary__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-summary__products {
    border-bottom: 1px solid var(--ct-checkout-border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.ct-checkout-summary__item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-summary__line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--ct-checkout-gray);
}

.ct-checkout-summary__line--discount {
    color: var(--ct-checkout-success);
}

.ct-checkout-summary__total {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid var(--ct-checkout-border);
    margin-top: 12px;
    padding-top: 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
}

.ct-checkout-summary__addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ct-checkout-border);
}

.ct-checkout-summary__address h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ct-checkout-gray);
    margin: 0 0 8px;
}

.ct-checkout-summary__address p {
    font-size: 14px;
    color: var(--ct-checkout-dark);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   AGB
   ========================================================================== */

.ct-checkout-agb {
    margin-top: 24px;
    padding: 20px;
    background: #FEF3C7;
    border-radius: var(--ct-checkout-radius);
    border: 1px solid #FCD34D;
}

.ct-checkout-agb--prominent {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 24px;
    background: #FFFBEB;
    border: 2px solid #D97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.ct-checkout-agb--prominent .ct-checkout-checkbox-label {
    gap: 16px;
}

.ct-checkout-agb--prominent .ct-checkout-checkbox-text {
    font-size: 15px;
    line-height: 1.6;
    color: #78350F;
}

.ct-checkout-agb--prominent .ct-checkout-checkbox-text a {
    color: #B45309;
    font-weight: 600;
}

.ct-checkout-agb--prominent .ct-checkout-checkbox-text strong {
    color: #DC2626;
}

.ct-checkout-checkbox--large {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-width: 3px;
}

.ct-checkout-checkbox--large:checked::after {
    font-size: 16px;
}

/* ==========================================================================
   Security Notice
   ========================================================================== */

.ct-checkout-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #ECFDF5;
    border-radius: var(--ct-checkout-radius-sm);
    color: var(--ct-checkout-success);
    font-size: 14px;
    font-weight: 500;
}

.ct-checkout-security--prominent {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 20px 24px;
    gap: 16px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid var(--ct-checkout-success);
    border-radius: var(--ct-checkout-radius);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.ct-checkout-security--bitcoin {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 2px solid #F7931A;
    box-shadow: 0 4px 12px rgba(247, 147, 26, 0.15);
}

.ct-checkout-security--bitcoin .ct-checkout-security__icon {
    background: linear-gradient(135deg, #F7931A 0%, #FFAB40 100%);
}

.ct-checkout-security__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--ct-checkout-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.ct-checkout-security__icon svg {
    width: 24px;
    height: 24px;
}

.ct-checkout-security__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ct-checkout-security__content strong {
    font-size: 16px;
    font-weight: 700;
    color: #065F46;
}

.ct-checkout-security__content span {
    font-size: 14px;
    font-weight: 400;
    color: #047857;
    line-height: 1.5;
}

/* ==========================================================================
   Footer / Navigation
   ========================================================================== */

.ct-checkout-dialog__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    border-top: 1px solid var(--ct-checkout-border);
    background: #fff;
    flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ct-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--ct-checkout-font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ct-checkout-ease);
}

.ct-checkout-btn--primary {
    background: var(--ct-checkout-red);
    color: #fff;
    margin-left: auto;
}

.ct-checkout-btn--primary:hover {
    background: var(--ct-checkout-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 83, 80, 0.3);
}

.ct-checkout-btn--primary:disabled {
    background: var(--ct-checkout-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ct-checkout-btn--secondary {
    background: var(--ct-checkout-gray-light);
    color: var(--ct-checkout-dark);
}

.ct-checkout-btn--secondary:hover {
    background: #E5E7EB;
}

.ct-checkout-btn--small {
    padding: 12px 20px;
    font-size: 14px;
}

.ct-checkout-btn--submit {
    background: var(--ct-checkout-success);
    color: #fff;
    margin-left: auto;
}

.ct-checkout-btn--submit:hover {
    background: var(--ct-checkout-success-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.ct-checkout-btn--submit:disabled {
    background: var(--ct-checkout-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.ct-checkout-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    color: var(--ct-checkout-dark);
    font-size: 15px;
    font-weight: 500;
}

.ct-checkout-dialog.ct-checkout--loading .ct-checkout-loading {
    display: flex;
}

.ct-checkout-loading__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--ct-checkout-gray-light);
    border-top-color: var(--ct-checkout-red);
    border-radius: 50%;
    animation: ctCheckoutSpin 0.8s linear infinite;
}

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

/* ==========================================================================
   Error Message
   ========================================================================== */

.ct-checkout-error {
    display: none;
    padding: 16px 32px;
    background: #FEE2E2;
    color: var(--ct-checkout-error);
    font-size: 14px;
    font-weight: 500;
}

.ct-checkout-error.active {
    display: block;
}

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

@media (max-width: 768px) {
    .ct-checkout-dialog__header {
        padding: 16px 20px;
    }

    .ct-checkout-dialog__title {
        font-size: 1.125rem;
    }

    .ct-checkout-progress {
        padding: 16px 20px;
    }

    .ct-checkout-progress__label {
        display: none;
    }

    .ct-checkout-progress__number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .ct-checkout-progress__line {
        flex: 0 0 24px;
        margin-bottom: 0;
    }

    .ct-checkout-steps {
        padding: 20px;
    }

    .ct-checkout-form-row--half {
        grid-template-columns: 1fr;
    }

    .ct-checkout-summary__addresses {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ct-checkout-dialog__footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
    }

    .ct-checkout-btn {
        width: 100%;
    }

    .ct-checkout-btn--primary,
    .ct-checkout-btn--submit {
        margin-left: 0;
    }

    .ct-checkout-product {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .ct-checkout-product__info {
        text-align: center;
    }

    .ct-checkout-product__badge {
        top: -8px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .ct-checkout-coupon__row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ct-checkout-progress__number {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .ct-checkout-progress__line {
        flex: 0 0 16px;
    }
}

/* ==========================================================================
   Payment Method Selection
   ========================================================================== */

.ct-checkout-payment-methods {
    margin-bottom: 24px;
}

.ct-checkout-payment-methods__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-payment-method {
    margin-bottom: 8px;
}

.ct-checkout-payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--ct-checkout-border);
    border-radius: var(--ct-checkout-radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--ct-checkout-ease);
    background: #fff;
}

.ct-checkout-payment-method label:hover {
    border-color: var(--ct-checkout-gray);
    background: var(--ct-checkout-gray-light);
}

.ct-checkout-payment-method input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ct-checkout-red);
    cursor: pointer;
}

.ct-checkout-payment-method input[type="radio"]:checked ~ .ct-checkout-payment-method__label {
    color: var(--ct-checkout-red);
}

.ct-checkout-payment-method__icon {
    font-size: 24px;
    line-height: 1;
}

.ct-checkout-payment-method__label {
    font-weight: 600;
    font-size: 15px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-payment-method__desc {
    font-size: 13px;
    color: var(--ct-checkout-gray);
    font-weight: 400;
    margin-left: auto;
}

/* ==========================================================================
   Bitcoin Payment
   ========================================================================== */

.ct-checkout-payment--bitcoin {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-radius: var(--ct-checkout-radius);
    border: 2px solid #FB923C;
}

.ct-checkout-bitcoin-loading {
    padding: 40px 20px;
    font-size: 15px;
    color: var(--ct-checkout-gray);
}

.ct-checkout-bitcoin-loading::before {
    content: '₿';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    animation: btcPulse 1.5s ease-in-out infinite;
}

@keyframes btcPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.ct-checkout-bitcoin-qr {
    margin-bottom: 24px;
}

.ct-checkout-bitcoin-qr canvas {
    border: 4px solid var(--ct-checkout-dark);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.ct-checkout-bitcoin-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin-bottom: 8px;
}

.ct-checkout-bitcoin-amount small {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ct-checkout-gray);
    margin-top: 4px;
}

.ct-checkout-bitcoin-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.ct-checkout-bitcoin-address code {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Monaco', 'Consolas', monospace;
    word-break: break-all;
    max-width: 280px;
    border: 1px solid var(--ct-checkout-border);
}

.ct-checkout-btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--ct-checkout-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.ct-checkout-btn--icon:hover {
    background: var(--ct-checkout-gray-light);
    border-color: var(--ct-checkout-gray);
}

.ct-checkout-bitcoin-status {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
}

.ct-checkout-bitcoin-status--pending {
    background: #FEF3C7;
    color: #92400E;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ct-checkout-bitcoin-status--confirmed {
    background: #D1FAE5;
    color: #065F46;
}

/* Bitcoin Info Box (Step 3 selection) */
.ct-checkout-bitcoin-info {
    text-align: center;
    padding: 32px 24px;
}

.ct-checkout-bitcoin-info--compact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(255, 171, 64, 0.1) 100%);
    border-radius: var(--ct-checkout-radius-sm);
    border: 1px solid rgba(247, 147, 26, 0.3);
    text-align: center;
}

.ct-checkout-bitcoin-info--compact .ct-checkout-bitcoin-info__icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
    font-size: 18px !important;
    margin: 0 !important;
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.ct-checkout-bitcoin-info--compact > span:last-child {
    font-size: 14px;
    color: var(--ct-checkout-dark);
    margin: 0;
}

.ct-checkout-bitcoin-info__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #F7931A 0%, #FFAB40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 16px;
}

.ct-checkout-bitcoin-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-bitcoin-info p {
    color: var(--ct-checkout-gray);
    margin-bottom: 20px;
    font-size: 14px;
}

.ct-checkout-bitcoin-info__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.ct-checkout-bitcoin-info__features li {
    font-size: 14px;
    color: var(--ct-checkout-dark);
}

/* Bitcoin Payment Screen (after clicking purchase) */
.ct-checkout-bitcoin-screen {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.ct-checkout-bitcoin-screen__header {
    margin-bottom: 32px;
}

.ct-checkout-bitcoin-screen__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F7931A 0%, #FFAB40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 16px;
    animation: btcPulse 2s ease-in-out infinite;
}

@keyframes btcPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(247, 147, 26, 0); }
}

.ct-checkout-bitcoin-screen__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ct-checkout-dark);
}

.ct-checkout-bitcoin-screen__header p {
    color: var(--ct-checkout-gray);
    font-size: 14px;
}

.ct-checkout-bitcoin-screen__qr {
    margin-bottom: 24px;
}

.ct-checkout-bitcoin-screen__qr canvas {
    border: 4px solid var(--ct-checkout-dark);
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.ct-checkout-bitcoin-screen__amount {
    margin-bottom: 16px;
}

.ct-checkout-bitcoin-screen__btc {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
}

.ct-checkout-bitcoin-screen__fiat {
    font-size: 14px;
    color: var(--ct-checkout-gray);
}

.ct-checkout-bitcoin-screen__address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ct-checkout-bitcoin-screen__address code {
    background: var(--ct-checkout-gray-light);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Monaco', 'Consolas', monospace;
    word-break: break-all;
    max-width: 300px;
    border: 1px solid var(--ct-checkout-border);
}

.ct-checkout-bitcoin-screen__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    animation: statusPulse 2s ease-in-out infinite;
}

.ct-checkout-bitcoin-screen__status-icon {
    font-size: 18px;
}

.ct-checkout-bitcoin-screen__info {
    font-size: 13px;
    color: var(--ct-checkout-gray);
    margin-bottom: 24px;
}

/* ==========================================================================
   Success Screen
   ========================================================================== */

.ct-checkout-success {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.ct-checkout-success__icon {
    width: 100px;
    height: 100px;
    background: var(--ct-checkout-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 300;
    margin: 0 auto 32px;
    animation: successPop 0.6s var(--ct-checkout-ease);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.ct-checkout-success__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ct-checkout-dark);
    margin-bottom: 12px;
}

.ct-checkout-success__message {
    font-size: 16px;
    color: var(--ct-checkout-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.ct-checkout-success__details {
    background: var(--ct-checkout-gray-light);
    border-radius: var(--ct-checkout-radius);
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.ct-checkout-success__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--ct-checkout-border);
}

.ct-checkout-success__row:last-child {
    border-bottom: none;
}

.ct-checkout-success__row span {
    color: var(--ct-checkout-gray);
    font-size: 14px;
}

.ct-checkout-success__row strong {
    color: var(--ct-checkout-dark);
    font-size: 15px;
}

.ct-checkout-success__info {
    font-size: 14px;
    color: var(--ct-checkout-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Info Section (non-aggressive) */
.ct-checkout-success__info-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--ct-checkout-radius);
    padding: 24px;
    margin-top: 28px;
    text-align: center;
}

.ct-checkout-success__info-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.ct-checkout-success__info-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ct-checkout-dark);
    margin-bottom: 8px;
}

.ct-checkout-success__info-section > p {
    font-size: 13px;
    color: var(--ct-checkout-gray);
    margin-bottom: 14px;
    line-height: 1.6;
}

.ct-checkout-success__info-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.ct-checkout-success__info-features li {
    font-size: 13px;
    color: #64748B;
    padding-left: 12px;
    position: relative;
}

.ct-checkout-success__info-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #94A3B8;
}

.ct-checkout-btn--secondary {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #475569;
    font-weight: 500;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.ct-checkout-btn--secondary:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #334155;
}

/* ==========================================================================
   Test/Simulation Button
   ========================================================================== */

.ct-checkout-btn--test {
    background: #8B5CF6;
    color: white;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ct-checkout-btn--test:hover {
    background: #7C3AED;
    transform: translateY(-1px);
}

/* ==========================================================================
   Enhanced Error Handling
   ========================================================================== */

.ct-checkout-error {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #FEE2E2;
    color: var(--ct-checkout-error);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.ct-checkout-error.active {
    display: flex;
}

.ct-checkout-error--info {
    background: #E0F2FE;
    color: #0369A1;
}

.ct-checkout-error__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ct-checkout-error__text {
    flex: 1;
}

.ct-checkout-error__close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    line-height: 1;
}

.ct-checkout-error__close:hover {
    opacity: 1;
}

/* ==========================================================================
   Field Hints
   ========================================================================== */

.ct-checkout-field-hint {
    display: block;
    font-size: 12px;
    color: var(--ct-checkout-gray);
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}
