/**
 * Frontend High-Converting Stylesheet (Mobile-First CRO)
 * Standalone, Ultra-Fast, Zero Dependency
 */

/* =========================================
   1. GLOBAL & CONTAINER LAYOUT
   ========================================= */
.cro-landing-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-bottom: 75px; /* Space for mobile sticky bar */
}

/* =========================================
   2. TOP URGENCY STICKY HEADER
   ========================================= */
.cro-top-urgency-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cro-urgency-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #fef08a;
}

.cro-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: cro-pulse-glow 1.5s infinite;
}

.cro-urgency-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    color: #fca5a5;
}

.cro-timer-digits {
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* =========================================
   3. HERO & PRODUCT PRESENTATION
   ========================================= */
.cro-hero-section {
    padding: 16px;
}

.cro-hero-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f3f4f6;
}

.cro-hero-media img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.cro-product-badge-float {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e50914;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(229, 9, 20, 0.4);
}

.cro-product-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 10px;
}

.cro-hero-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 12px;
}

.cro-stars-gold {
    color: #f59e0b;
    font-size: 15px;
    letter-spacing: 1px;
}

.cro-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.cro-price-sale {
    font-size: 28px;
    font-weight: 900;
    color: #e11d48;
}

.cro-price-regular {
    font-size: 16px;
    color: #9ca3af;
    text-decoration: line-through;
}

.cro-price-discount-tag {
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Trust Badges Strip */
.cro-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.cro-trust-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.cro-trust-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

/* =========================================
   4. INTERACTIVE BEFORE / AFTER SLIDER
   ========================================= */
.cro-before-after-section {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cro-section-header {
    text-align: center;
    margin-bottom: 16px;
}

.cro-section-header h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.cro-section-header p {
    font-size: 13px;
    color: #64748b;
}

.cro-ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--cro-shadow);
    user-select: none;
    -webkit-user-select: none;
}

.cro-ba-before, .cro-ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cro-ba-before img, .cro-ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cro-ba-after {
    width: 50%;
    overflow: hidden;
    border-right: 3px solid #ffffff;
}

.cro-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
    font-size: 12px;
    font-weight: bold;
    color: #0f172a;
}

.cro-ba-label {
    position: absolute;
    bottom: 10px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.cro-ba-label-before { right: 10px; }
.cro-ba-label-after { left: 10px; }

/* =========================================
   5. INTERACTIVE PRODUCT HOTSPOTS
   ========================================= */
.cro-hotspot-section {
    padding: 16px;
}

.cro-hotspot-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.cro-hotspot-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #e50914;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.3);
    animation: cro-pin-pulse 2s infinite;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.cro-hotspot-tooltip {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.cro-hotspot-pin.active .cro-hotspot-tooltip {
    display: block;
}

/* =========================================
   6. ARTICLE / LANDING CONTENT BODY
   ========================================= */
.cro-content-section {
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
}

.cro-content-section h2, .cro-content-section h3 {
    margin: 20px 0 10px;
    font-weight: 800;
    color: #111827;
}

.cro-content-section p {
    margin-bottom: 14px;
}

/* Comparison Table */
.cro-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cro-comparison-table th, .cro-comparison-table td {
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
}

.cro-comparison-table th {
    background: #f9fafb;
    font-weight: 700;
}

.cro-comparison-table th.highlight, .cro-comparison-table td.highlight {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 600;
}

/* =========================================
   7. HIGH-CONVERTING CHECKOUT FORM
   ========================================= */
.cro-checkout-wrapper {
    padding: 20px 16px;
    background: #ffffff;
    border-top: 3px solid #e50914;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
}

.cro-checkout-title {
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cro-checkout-sub {
    text-align: center;
    font-size: 13px;
    color: #e50914;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Step 1: Combos Grid */
.cro-combo-step-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cro-combo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cro-combo-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
}

.cro-combo-card:hover {
    border-color: #fca5a5;
}

.cro-combo-card.selected {
    border-color: #e50914;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.12);
}

.cro-combo-badge {
    position: absolute;
    top: -9px;
    right: 14px;
    background: #e50914;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.cro-combo-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cro-combo-radio-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cro-combo-radio {
    accent-color: #e50914;
    width: 18px;
    height: 18px;
}

.cro-combo-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.cro-combo-pricing {
    text-align: right;
}

.cro-combo-price {
    font-weight: 800;
    font-size: 16px;
    color: #e50914;
}

.cro-combo-orig {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 4px;
}

.cro-combo-desc {
    margin-top: 4px;
    margin-left: 28px;
    font-size: 12px;
    color: #059669;
    font-weight: 500;
}

/* Step 2: Order Bump */
.cro-order-bump-box {
    background: #fffbeb;
    border: 2px dashed #f59e0b;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    position: relative;
}

.cro-bump-arrow {
    position: absolute;
    top: -12px;
    left: 14px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cro-bump-content {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.cro-bump-checkbox {
    accent-color: #e50914;
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.cro-bump-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cro-bump-details {
    font-size: 13px;
    line-height: 1.4;
}

.cro-bump-title {
    font-weight: 700;
    color: #78350f;
}

.cro-bump-deal {
    color: #e50914;
    font-weight: 800;
}

/* Step 3: Customer Inputs */
.cro-form-field {
    margin-bottom: 12px;
}

.cro-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.cro-input-styled {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.cro-input-styled:focus {
    outline: none;
    border-color: #e50914;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.cro-textarea-styled {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
}

/* Step 4: Summary & Total */
.cro-order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
}

.cro-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #4b5563;
}

.cro-summary-row.total-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #cbd5e1;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.cro-total-amount {
    color: #e50914;
    font-size: 20px;
}

/* Big Vibrant CTA Button */
.cro-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #e50914 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    transition: all 0.2s ease;
    animation: cro-btn-shake 4s infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cro-submit-btn:hover {
    background: linear-gradient(135deg, #b80710 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.cro-submit-btn-sub {
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    opacity: 0.9;
    margin-top: 2px;
}

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

/* =========================================
   8. 1-CLICK POST-PURCHASE UPSELL MODAL
   ========================================= */
.cro-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cro-modal-overlay.active {
    display: flex;
}

.cro-modal-card {
    background: #ffffff;
    max-width: 460px;
    width: 100%;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: cro-modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cro-upsell-headline {
    color: #dc2626;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cro-upsell-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.cro-upsell-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.cro-upsell-price-row {
    margin-bottom: 14px;
}

.cro-upsell-price-now {
    font-size: 24px;
    font-weight: 900;
    color: #e50914;
}

.cro-upsell-price-old {
    font-size: 15px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
}

.cro-upsell-accept {
    width: 100%;
    background: #059669;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.cro-upsell-decline {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================
   9. SUCCESS / THANK YOU MODAL
   ========================================= */
.cro-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cro-success-modal.active {
    display: flex;
}

.cro-success-card {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cro-success-icon {
    width: 64px;
    height: 64px;
    background: #ecfdf5;
    color: #059669;
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* =========================================
   10. SOCIAL PROOF / FAKE ORDER TOAST
   ========================================= */
.cro-toast-notification {
    position: fixed;
    bottom: 85px;
    left: 14px;
    z-index: 999;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    border-radius: 30px;
    padding: 8px 16px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #1e293b;
    max-width: 340px;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cro-toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cro-toast-avatar {
    width: 32px;
    height: 32px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* =========================================
   11. CUSTOMER REVIEWS SECTION
   ========================================= */
.cro-reviews-section {
    padding: 20px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.cro-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cro-reviews-count {
    font-size: 14px;
    color: #64748b;
}

.cro-review-card {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 0;
}

.cro-review-card:last-child {
    border-bottom: none;
}

.cro-reviewer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cro-reviewer-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.cro-verified-tag {
    color: #059669;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.cro-review-time {
    font-size: 11px;
    color: #94a3b8;
}

.cro-review-content {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

/* =========================================
   12. STICKY MOBILE BOTTOM CTA BAR
   ========================================= */
.cro-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.cro-sticky-price-info {
    display: flex;
    flex-direction: column;
}

.cro-sticky-now {
    font-size: 18px;
    font-weight: 900;
    color: #e50914;
    line-height: 1.2;
}

.cro-sticky-sub {
    font-size: 10px;
    color: #6b7280;
}

.cro-sticky-cta-btn {
    background: #e50914;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
    text-transform: uppercase;
    animation: cro-btn-pulse 2s infinite;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
}

/* =========================================
   KEYFRAME ANIMATIONS
   ========================================= */
@keyframes cro-pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

@keyframes cro-btn-shake {
    0%, 80%, 100% { transform: scale(1); }
    85% { transform: scale(1.02) rotate(-1deg); }
    90% { transform: scale(1.02) rotate(1deg); }
    95% { transform: scale(1.02) rotate(-1deg); }
}

@keyframes cro-btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes cro-pin-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
}

@keyframes cro-modal-pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (min-width: 681px) {
    .cro-mobile-sticky-bar {
        display: none;
    }
    .cro-landing-wrapper {
        padding-bottom: 30px;
    }
}
