/* ── AadPaws FOMO — Front-end Styles ───────────────────────────────── */

:root {
    --apf-primary:   var(--apf-opt-primary,   #F97A3D);
    --apf-secondary: var(--apf-opt-secondary, #0E1828);
    --apf-accent:    var(--apf-opt-accent,    #F4C96A);
    --apf-font:      var(--apf-opt-font,      inherit);
    --apf-line:      #e5e7eb;
    --apf-ink2:      #6b7280;
    --apf-ink3:      #9ca3af;
    --apf-cream:     #fafaf8;
    --apf-shadow-sm: 0 2px 8px rgba(0,0,0,.07);
}

/* ── Urgency Bar ─────────────────────────────────────────────────── */
#apfomo-urgency-bar {
    width: 100%;
    z-index: 9999;
    position: relative;
    font-family: var(--apf-font);
}

.apf-urgency-inner {
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.apf-urgency-msg {
    display: inline-block;
    animation: apfPulse 1.4s ease-in-out infinite;
}

.apf-urgency-link {
    font-weight: 700;
    text-decoration: underline;
    margin-left: 12px;
    white-space: nowrap;
}

@keyframes apfPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .82; }
}

/* ── Live Popup ───────────────────────────────────────────────────── */
#apfomo-live-popup {
    position: fixed;
    bottom: 96px;
    z-index: 9990;
    font-family: var(--apf-font);
    pointer-events: none;
}

#apfomo-live-popup.apf-pos-left  { left: 20px; }
#apfomo-live-popup.apf-pos-right { right: 20px; }

.apf-popup-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px 14px 14px;
    box-shadow: 0 14px 40px rgba(14,24,40,.18), 0 2px 6px rgba(0,0,0,.06);
    border: 1px solid var(--apf-line);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    pointer-events: auto;
    transform: translateY(20px) scale(.95);
    opacity: 0;
    transition: transform 400ms cubic-bezier(.2,.8,.2,1),
                opacity   400ms cubic-bezier(.2,.8,.2,1);
}

.apf-popup-card.apf-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.apf-popup-avatar {
    position: relative;
    flex-shrink: 0;
}

.apf-popup-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.apf-popup-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid #fff;
}

.apf-popup-body {
    flex: 1;
    font-size: 13px;
    line-height: 1.45;
    color: var(--apf-secondary);
}

.apf-popup-body b { font-weight: 700; }

.apf-popup-action { color: var(--apf-ink2); }

.apf-popup-highlight {
    font-weight: 700;
    color: var(--apf-primary);
}

.apf-popup-time {
    font-size: 11px;
    color: var(--apf-ink3);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.apf-popup-time-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
}

/* ── Flash Deal ───────────────────────────────────────────────────── */
#apfomo-flash-deal,
#apfomo-flash-deal-inline {
    padding: 0 0 24px;
    font-family: var(--apf-font);
}

.apf-deal-banner {
    border-radius: 28px;
    padding: 24px 36px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.apf-deal-deco1 {
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}

.apf-deal-deco2 {
    position: absolute;
    bottom: -60px; left: 300px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}

.apf-deal-icon { font-size: 40px; line-height: 1; position: relative; }

.apf-deal-text {
    flex: 1;
    min-width: 240px;
    position: relative;
}

.apf-deal-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12px;
    text-transform: uppercase;
    opacity: .85;
}

.apf-deal-title {
    font-size: 26px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.3;
}

.apf-deal-timer {
    display: flex;
    gap: 10px;
    position: relative;
}

.apf-deal-unit {
    background: rgba(14,24,40,.45);
    border-radius: 14px;
    padding: 10px 16px;
    min-width: 64px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.apf-deal-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.apf-deal-label {
    font-size: 10px;
    letter-spacing: .1px;
    opacity: .7;
    margin-top: 2px;
}

.apf-deal-cta {
    background: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    position: relative;
    text-decoration: none;
    display: inline-block;
}

/* ── Slots Section ────────────────────────────────────────────────── */
#apfomo-slots,
#apfomo-slots-inline {
    padding: 56px 20px;
    font-family: var(--apf-font);
}

.apf-slots-inner { max-width: 1100px; margin: 0 auto; }

.apf-slots-header { text-align: center; margin-bottom: 40px; }

.apf-slots-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFE5E5;
    color: #C4361A;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.apf-slots-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E63946;
    animation: apfBlink 1.2s ease-in-out infinite;
}

.apf-slots-header h2 {
    margin: 14px 0 12px;
    font-size: 30px;
    font-weight: 700;
    color: var(--apf-secondary);
}

.apf-slots-header p {
    font-size: 16px;
    max-width: 540px;
    margin: 0 auto;
    color: var(--apf-ink2);
}

.apf-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) { .apf-slots-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 600px) { .apf-slots-grid { grid-template-columns: 1fr; } }

.apf-slot-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid var(--apf-line);
    box-shadow: var(--apf-shadow-sm);
    position: relative;
}

.apf-slot-card.apf-urgent {
    border: 2px solid #E63946;
}

.apf-slot-urgent-badge {
    position: absolute;
    top: -11px;
    right: 14px;
    background: #E63946;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05px;
    text-transform: uppercase;
}

.apf-slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.apf-slot-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 17px;
    color: var(--apf-secondary);
}

.apf-slot-pin { color: var(--apf-primary); }

.apf-slot-count { font-size: 13px; font-weight: 600; }

.apf-slot-bar-bg {
    height: 8px;
    background: var(--apf-cream);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--apf-line);
}

.apf-slot-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 400ms ease;
}

.apf-slot-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--apf-ink3);
    margin-top: 8px;
}

.apf-slots-cta { text-align: center; margin-top: 32px; }

.apf-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s, transform .15s;
}

.apf-btn:hover { opacity: .9; transform: translateY(-1px); }

.apf-btn-primary {
    background: var(--apf-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(249,122,61,.35);
}

@keyframes apfBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}

/* ── Marquee ──────────────────────────────────────────────────────── */
#apfomo-marquee,
#apfomo-marquee-inline {
    padding: 40px 0;
    overflow: hidden;
    font-family: var(--apf-font);
}

.apf-marquee-header {
    text-align: center;
    margin-bottom: 24px;
}

.apf-marquee-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--apf-ink2);
}

.apf-marquee-stars { display: flex; gap: 2px; }
.apf-marquee-star  { font-size: 18px; }

.apf-marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
}

.apf-marquee-track.apf-running {
    animation: apfMarquee linear infinite;
}

.apf-review-card {
    flex-shrink: 0;
    width: 320px;
    padding: 14px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--apf-line);
    box-shadow: var(--apf-shadow-sm);
}

.apf-review-stars { display: flex; gap: 1px; font-size: 13px; margin-bottom: 6px; }

.apf-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--apf-secondary);
    margin-bottom: 8px;
}

.apf-review-name { font-size: 12px; color: var(--apf-ink3); font-weight: 600; }

@keyframes apfMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
