﻿/*
Theme Name: Funnel Pro Landings
Author: Mohamed Ashraf
Description: Ultra-Modern Animated Landing Page Funnel with Custom Hook, Live Sales Notification Popup & Fast Checkout.
Version: 4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800;900&display=swap');

:root {
    --bg-main: #070a12;
    --bg-card: rgba(19, 27, 46, 0.85);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.45);
    --btn-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --btn-sec-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --ticker-bg: #10b981;
    --ticker-text: #042f2e;
}

/* Skin 1: Gaming & Tech */
body.skin-gaming {
    --bg-main: #070a12;
    --bg-card: #111827;
    --text-main: #f8fafc;
    --text-muted: #9ca3af;
    --accent: #00f2fe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    --btn-grad: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    --btn-sec-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-color: rgba(0, 242, 254, 0.22);
    --ticker-bg: #00f2fe;
    --ticker-text: #000000;
}

/* Skin 2: Home & Cooling */
body.skin-cooling {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --btn-grad: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    --btn-sec-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-color: rgba(56, 189, 248, 0.25);
    --ticker-bg: #38bdf8;
    --ticker-text: #0f172a;
}

/* Skin 3: Kitchen & Luxury */
body.skin-luxury {
    --bg-main: #0c0a09;
    --bg-card: #1c1917;
    --text-main: #fafaf9;
    --text-muted: #a8a29e;
    --accent: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.35);
    --btn-grad: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    --btn-sec-grad: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --border-color: rgba(251, 191, 36, 0.25);
    --ticker-bg: #fbbf24;
    --ticker-text: #000000;
}

/* Skin 4: Flash Sale */
body.skin-flash {
    --bg-main: #09090b;
    --bg-card: #18181b;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #f43f5e;
    --accent-glow: rgba(244, 63, 94, 0.45);
    --btn-grad: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    --btn-sec-grad: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --border-color: rgba(244, 63, 94, 0.3);
    --ticker-bg: #f43f5e;
    --ticker-text: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.5;
}

.container { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* 1. Animated Top Announcement Ticker */
.top-ticker {
    background: var(--ticker-bg);
    color: var(--ticker-text);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-weight: 900;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.ticker-track {
    display: inline-block;
    animation: tickerMove 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    margin: 0 26px;
}
@keyframes tickerMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 2. Sleek Header */
.lp-header {
    padding: 12px 0;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 37px;
    z-index: 1000;
}
.lp-header-inner { display: flex; justify-content: space-between; align-items: center; }
.lp-logo { pointer-events: none; user-select: none; }
.lp-logo img { max-height: 44px; width: auto; border-radius: 8px; }
.lp-logo-text { font-size: 22px; font-weight: 900; color: var(--accent); }

/* Animated CTA Buttons */
@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { transform: scale(1.03); box-shadow: 0 0 22px 6px var(--accent-glow); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
}

.btn-cta-main, .btn-cta-sec {
    display: block;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 15px 22px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 19px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2.2s infinite;
}
.btn-cta-main { background: var(--btn-grad); }
.btn-cta-sec { background: var(--btn-sec-grad); margin: 24px 0 8px; }
.btn-header {
    background: var(--btn-grad);
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

/* Hero Compact Card */
.hero-sec { padding: 24px 0 15px; }
.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
@media (max-width: 768px) { .hero-card { grid-template-columns: 1fr; padding: 16px; gap: 16px; } }

.gallery-box { text-align: center; position: relative; }
.discount-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #fff;
    padding: 5px 14px;
    border-radius: 99px;
    font-weight: 900;
    font-size: 13px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
}
.main-img {
    width: 100%;
    height: 310px;
    object-fit: contain;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    padding: 10px;
    transition: transform 0.3s ease;
}
.thumbs-row { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.thumbs-row img {
    width: 58px; height: 58px; object-fit: cover; border-radius: 10px;
    cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.2s;
}
.thumbs-row img.active, .thumbs-row img:hover { border-color: var(--accent); opacity: 1; transform: translateY(-2px); }

/* Direct Hook Badge (Appears cleanly without any label) */
.lp-hook-pill {
    display: inline-block;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border: 1px solid #f59e0b;
    color: #fde68a;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 10px;
}

.lp-title { font-size: 27px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; }

.price-strip {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.new-price { font-size: 32px; font-weight: 900; color: var(--accent); line-height: 1.1; }
.old-price { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }

.trust-mini-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    color: #e2e8f0;
}
.trust-mini-item {
    background: rgba(255,255,255,0.05);
    padding: 8px 6px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* 3. Merged Image + Feature Cards Only */
.merged-sec { padding: 18px 0 10px; }
.sec-title {
    text-align: center;
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--accent);
}
.merged-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.merged-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}
.merged-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.merged-card img {
    width: 100%;
    height: 195px;
    object-fit: contain;
    background: rgba(255,255,255,0.03);
    padding: 12px;
}
.merged-card-body {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}
.feat-num-badge {
    background: var(--accent);
    color: #000;
    font-weight: 900;
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.merged-card-body p { font-weight: 800; font-size: 15px; }

/* 4. Ultra-Short Checkout */
.checkout-sec { padding: 18px 0 70px; }
.checkout-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 22px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 45px rgba(0,0,0,0.45);
}
.inspect-guarantee-bar {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid #10b981;
    color: #a7f3d0;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 16px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.inp-field {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
}
.inp-field:focus { outline: none; border-color: var(--accent); }

.pay-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.pay-opt {
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    font-weight: 800;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}
.pay-opt.active { border-color: var(--accent); background: rgba(16, 185, 129, 0.12); color: var(--accent); }

.pay-box {
    background: rgba(0,0,0,0.35);
    border: 1px dashed var(--accent);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}
.pay-number { font-size: 20px; font-weight: 900; color: var(--accent); margin: 4px 0; display: block; }
.btn-copy-mini {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 4px 14px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.upload-compact {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 14px;
}
.success-alert {
    background: #10b981;
    color: #042f2e;
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 900;
    margin-bottom: 16px;
}

/* 5. Live Sales Notification Popup */
.sales-popup {
    position: fixed;
    bottom: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.96);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.sales-popup.show {
    transform: translateY(0);
    opacity: 1;
}
.sales-popup img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}
.sales-popup-content {
    font-size: 12.5px;
    line-height: 1.4;
}
.sales-popup-name {
    font-weight: 900;
    color: var(--accent);
}
.sales-popup-prod {
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-top: 2px;
}
.sales-popup-time {
    font-size: 11px;
    color: var(--text-muted);
}
