/* Universal FOMO Elements - frontend styles */

:root {
    --apf-primary: var(--apf-opt-primary, #2563EB);
    --apf-secondary: var(--apf-opt-secondary, #111827);
    --apf-accent: var(--apf-opt-accent, #10B981);
    --apf-font: var(--apf-opt-font, inherit);
    --apf-line: #e5e7eb;
    --apf-muted: #6b7280;
    --apf-soft: #f9fafb;
    --apf-shadow: 0 12px 30px rgba(17,24,39,.14);
}

#apfomo-root,
.apfomo-shortcode {
    font-family: var(--apf-font);
}

.apfomo-shortcode {
    margin: 20px 0;
}

.apf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, opacity .16s ease;
    white-space: nowrap;
}

.apf-button:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.apf-button-primary {
    background: var(--apf-primary);
    color: #fff;
}

.apf-button-light {
    background: #fff;
    color: var(--apf-primary);
}

.apf-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--apf-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.apf-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.16);
    flex: 0 0 auto;
}

/* Optional visual effects */
.apf-effect-glass .apf-popup-card,
.apf-effect-glass .apf-deal-banner,
.apf-effect-glass .apf-slot-card,
.apf-effect-glass .apf-review-card,
.apf-effect-glass .apf-mini-card,
.apf-effect-glass .apf-panel,
.apf-effect-glass .apf-coupon-card,
.apf-effect-glass .apf-alert-card,
.apf-effect-glass .apf-sticky-card,
.apf-effect-glass .apf-trust-badge {
    background: rgba(var(--apf-glass-tint), var(--apf-glass-opacity)) !important;
    border-color: rgba(255,255,255,.34) !important;
    box-shadow: 0 18px 50px rgba(17,24,39,.18);
    backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
}

.apf-effect-glass #apfomo-urgency-bar {
    backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
}

.apf-effect-glass .apf-exit-modal {
    background: rgba(18,21,32,.82);
    border-color: rgba(255,255,255,.16);
    backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--apf-glass-blur)) saturate(150%);
}

.apf-effect-glow .apf-popup-card,
.apf-effect-glow .apf-deal-banner,
.apf-effect-glow .apf-slot-card,
.apf-effect-glow .apf-review-card,
.apf-effect-glow .apf-mini-card,
.apf-effect-glow .apf-panel,
.apf-effect-glow .apf-coupon-card,
.apf-effect-glow .apf-alert-card,
.apf-effect-glow .apf-sticky-card,
.apf-effect-glow .apf-trust-badge,
.apf-effect-glow .apf-exit-modal {
    box-shadow: 0 18px 50px rgba(17,24,39,.18), 0 0 36px rgba(var(--apf-glow-color), .24);
}

.apf-effect-hover-lift .apf-deal-banner,
.apf-effect-hover-lift .apf-slot-card,
.apf-effect-hover-lift .apf-review-card,
.apf-effect-hover-lift .apf-mini-card,
.apf-effect-hover-lift .apf-panel,
.apf-effect-hover-lift .apf-coupon-card,
.apf-effect-hover-lift .apf-alert-card,
.apf-effect-hover-lift .apf-sticky-card,
.apf-effect-hover-lift .apf-trust-badge {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.apf-effect-hover-lift .apf-popup-card {
    transition: opacity .32s ease, transform .32s ease, box-shadow .22s ease, border-color .22s ease;
}

.apf-effect-hover-lift .apf-popup-card.apf-visible:hover {
    transform: translateY(-4px);
}

.apf-effect-hover-lift .apf-deal-banner:hover,
.apf-effect-hover-lift .apf-slot-card:hover,
.apf-effect-hover-lift .apf-review-card:hover,
.apf-effect-hover-lift .apf-mini-card:hover,
.apf-effect-hover-lift .apf-panel:hover,
.apf-effect-hover-lift .apf-coupon-card:hover,
.apf-effect-hover-lift .apf-alert-card:hover,
.apf-effect-hover-lift .apf-sticky-card:hover,
.apf-effect-hover-lift .apf-trust-badge:hover {
    transform: translateY(-4px);
}

.apf-effect-entrance .apfomo-auto-container:not(.apf-popup-wrap) > *,
.apf-effect-entrance .apfomo-shortcode:not(.apf-popup-wrap) > * {
    animation: apfEffectEnter .52s cubic-bezier(.2,.8,.2,1) both;
}

.apf-effect-shine .apf-popup-card,
.apf-effect-shine .apf-deal-banner,
.apf-effect-shine .apf-slot-card,
.apf-effect-shine .apf-review-card,
.apf-effect-shine .apf-mini-card,
.apf-effect-shine .apf-panel,
.apf-effect-shine .apf-coupon-card,
.apf-effect-shine .apf-alert-card,
.apf-effect-shine .apf-sticky-card,
.apf-effect-shine .apf-trust-badge {
    position: relative;
    overflow: hidden;
}

.apf-effect-shine .apf-popup-card:after,
.apf-effect-shine .apf-deal-banner:after,
.apf-effect-shine .apf-slot-card:after,
.apf-effect-shine .apf-review-card:after,
.apf-effect-shine .apf-mini-card:after,
.apf-effect-shine .apf-panel:after,
.apf-effect-shine .apf-coupon-card:after,
.apf-effect-shine .apf-alert-card:after,
.apf-effect-shine .apf-sticky-card:after,
.apf-effect-shine .apf-trust-badge:after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -70%;
    width: 48%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    animation: apfEffectShine 4.2s ease-in-out infinite;
    pointer-events: none;
}

.apf-effect-pulse .apf-button-primary,
.apf-effect-pulse .apf-button-light,
.apf-effect-pulse .apf-whatsapp-button,
.apf-effect-pulse .apf-exit-form button {
    animation: apfEffectPulse 2.6s ease-in-out infinite;
}

@keyframes apfEffectEnter {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes apfEffectShine {
    0%, 52% { left: -70%; }
    100% { left: 130%; }
}

@keyframes apfEffectPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--apf-glow-color), .34); }
    50% { box-shadow: 0 0 0 8px rgba(var(--apf-glow-color), 0); }
}

/* Urgency bar */
#apfomo-urgency-bar,
.apfomo-urgency-bar-inline {
    width: 100%;
    position: relative;
    z-index: 9998;
}

.apf-urgency-inner {
    min-height: 42px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.apf-urgency-msg b {
    font-weight: 900;
}

.apf-urgency-link {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Live popup */
.apf-popup-wrap {
    max-width: 360px;
}

.apf-popup-floating {
    position: fixed;
    bottom: 118px;
    z-index: 9990;
    pointer-events: none;
}

.apf-popup-floating.apf-pos-left {
    left: 18px;
}

.apf-popup-floating.apf-pos-right {
    right: 18px;
}

.apf-popup-card {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    box-shadow: var(--apf-shadow);
    color: var(--apf-secondary);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .32s ease, transform .32s ease;
}

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

.apf-popup-avatar,
.apf-feed-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--apf-soft);
    color: var(--apf-primary);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.apf-popup-avatar img,
.apf-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apf-popup-avatar .apf-live-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    border: 2px solid #fff;
}

.apf-popup-body {
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
}

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

.apf-popup-action span,
.apf-feed-row p span {
    color: var(--apf-primary);
    font-weight: 800;
}

.apf-popup-time {
    margin-top: 2px;
    color: #9ca3af;
    font-size: 11px;
}

/* Flash deal and coupon timers */
.apf-deal-wrap,
.apfomo-flash-deal-inline {
    padding: 12px 0 24px;
}

.apf-deal-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border-radius: 8px;
    color: #fff;
    box-shadow: var(--apf-shadow);
}

.apf-deal-copy {
    flex: 1 1 260px;
}

.apf-deal-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    line-height: 1.18;
}

.apf-timer {
    display: flex;
    gap: 8px;
}

.apf-time-unit {
    min-width: 58px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(17,24,39,.34);
    text-align: center;
}

.apf-time-unit b {
    display: block;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.apf-time-unit span {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.78);
    font-size: 10px;
    font-weight: 800;
}

.apf-timer-small .apf-time-unit {
    min-width: 44px;
    padding: 6px 8px;
    background: var(--apf-secondary);
}

.apf-timer-small .apf-time-unit b {
    font-size: 17px;
}

/* Shared sections */
.apf-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 44px 20px;
}

.apf-section-head {
    max-width: 640px;
    margin: 0 auto 28px;
    text-align: center;
}

.apf-section-head h2,
.apf-trust-inner h2 {
    margin: 12px 0 10px;
    color: var(--apf-secondary);
    font-size: 28px;
    line-height: 1.2;
}

.apf-section-head p {
    margin: 0;
    color: var(--apf-muted);
    font-size: 15px;
    line-height: 1.55;
}

.apf-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.apf-pill span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
}

.apf-centered {
    margin-top: 26px;
    text-align: center;
}

/* Availability */
.apf-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.apf-slot-card {
    position: relative;
    padding: 18px;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17,24,39,.06);
}

.apf-slot-card.apf-urgent {
    border-color: #ef4444;
}

.apf-slot-badge {
    position: absolute;
    right: 12px;
    top: -10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.apf-slot-top,
.apf-slot-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.apf-slot-top {
    margin-bottom: 11px;
    color: var(--apf-secondary);
}

.apf-slot-top span {
    color: #ef4444;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.apf-slot-bar,
.apf-stock-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.apf-slot-bar span,
.apf-stock-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--apf-primary), var(--apf-accent));
}

.apf-slot-meta {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
}

/* Marquee */
.apf-marquee-wrap {
    padding: 36px 0;
    overflow: hidden;
}

.apf-marquee-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--apf-secondary);
    font-size: 14px;
}

.apf-stars {
    display: inline-flex;
    gap: 2px;
    line-height: 1;
}

.apf-marquee-window {
    overflow: hidden;
}

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

.apf-review-card {
    width: 310px;
    flex: 0 0 auto;
    padding: 15px 18px;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17,24,39,.06);
}

.apf-review-card p {
    margin: 8px 0;
    color: var(--apf-secondary);
    font-size: 14px;
    line-height: 1.45;
}

.apf-review-card b {
    color: var(--apf-muted);
    font-size: 12px;
}

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

/* Visitor counter */
.apf-visitor-floating {
    position: fixed;
    right: 18px;
    bottom: 172px;
    z-index: 9989;
}

.apf-mini-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    background: #fff;
    color: var(--apf-secondary);
    box-shadow: var(--apf-shadow);
    font-size: 13px;
}

.apf-mini-card b {
    font-variant-numeric: tabular-nums;
}

/* Recent feed */
.apf-feed-wrap {
    max-width: 420px;
}

.apf-panel {
    padding: 16px;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17,24,39,.06);
}

.apf-panel-title {
    margin-bottom: 10px;
    color: var(--apf-secondary);
    font-weight: 900;
}

.apf-feed-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
}

.apf-feed-row:first-of-type {
    border-top: 0;
}

.apf-feed-row p {
    margin: 2px 0;
    color: var(--apf-muted);
    font-size: 13px;
}

.apf-feed-row small {
    color: #9ca3af;
}

/* Coupon banner */
.apf-coupon-floating {
    position: fixed;
    left: 50%;
    bottom: 86px;
    z-index: 9988;
    width: min(780px, calc(100vw - 32px));
    transform: translateX(-50%);
}

.apf-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--apf-line);
    box-shadow: var(--apf-shadow);
    color: var(--apf-secondary);
}

.apf-code {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px dashed var(--apf-primary);
    border-radius: 6px;
    color: var(--apf-primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

/* Low stock */
.apf-alert-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7ed;
    color: var(--apf-secondary);
}

.apf-alert-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.apf-alert-card .apf-kicker {
    color: #c2410c;
}

/* Sticky CTA */
.apf-sticky-fixed {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 9991;
    width: min(720px, calc(100vw - 32px));
    transform: translateX(-50%);
}

.apf-sticky-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 14px 13px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: var(--apf-secondary);
    color: #fff;
    box-shadow: var(--apf-shadow);
}

/* Trust badges */
.apf-trust-inner {
    text-align: center;
}

.apf-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.apf-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--apf-line);
    border-radius: 8px;
    background: #fff;
    color: var(--apf-secondary);
    box-shadow: 0 4px 14px rgba(17,24,39,.05);
}

.apf-trust-badge span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

/* Exit intent */
.apf-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8,10,24,.74);
    backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.apf-exit-overlay.apf-visible {
    opacity: 1;
    visibility: visible;
}

.apf-exit-modal {
    position: relative;
    width: min(720px, 100%);
    min-height: 420px;
    padding: 56px 60px 44px;
    border: 1px solid rgba(148,163,184,.16);
    border-radius: 28px;
    background: #121520;
    color: #f8fafc;
    box-shadow: 0 28px 80px rgba(0,0,0,.42), 0 0 80px rgba(59,130,246,.18);
    text-align: center;
    overflow: hidden;
}

.apf-exit-modal:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(255,122,26,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 46%);
    pointer-events: none;
}

.apf-exit-lead-modal > * {
    position: relative;
    z-index: 1;
}

.apf-exit-modal h2 {
    max-width: 590px;
    margin: 16px auto 18px;
    color: #f8fafc;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.16;
}

.apf-exit-modal p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: #a9b4c7;
    font-size: 21px;
    line-height: 1.55;
}

.apf-exit-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #1d2233;
    color: #94a3b8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.apf-exit-bolt {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 70px;
    margin-bottom: 8px;
}

.apf-exit-bolt svg {
    width: 42px;
    height: 60px;
}

.apf-exit-bolt path {
    fill: #ff7a1a;
    filter: drop-shadow(0 8px 18px rgba(255,122,26,.35));
}

.apf-exit-kicker {
    display: block;
    color: #93a1b7;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.apf-exit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 205px);
    gap: 14px;
    max-width: 600px;
    margin: 0 auto;
}

.apf-exit-form input {
    min-height: 78px;
    width: 100%;
    padding: 0 24px;
    border: 1px solid #31374d;
    border-radius: 10px;
    background: #1d2130;
    color: #f8fafc;
    font-size: 20px;
    outline: none;
}

.apf-exit-form input::placeholder {
    color: #7b8494;
}

.apf-exit-form input:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100,116,139,.2);
}

.apf-exit-form button {
    min-height: 78px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(255,122,26,.32);
    transition: opacity .15s ease, transform .15s ease;
}

.apf-exit-form button:hover {
    transform: translateY(-1px);
}

.apf-exit-form button:disabled {
    cursor: wait;
    opacity: .75;
}

.apf-exit-note {
    margin-top: 18px;
    color: #64748b;
    font-size: 16px;
}

.apf-exit-error {
    min-height: 20px;
    margin-top: 12px;
    color: #fca5a5;
    font-size: 14px;
    font-weight: 700;
}

.apf-exit-form-state.apf-hidden {
    display: none;
}

.apf-exit-success-state {
    display: none;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.apf-exit-success-state.apf-visible {
    display: flex;
}

.apf-success-check {
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
}

.apf-success-check svg {
    width: 112px;
    height: 112px;
    overflow: visible;
}

.apf-success-check circle {
    fill: #16a34a;
    stroke: rgba(187,247,208,.38);
    stroke-width: 4;
    transform-origin: center;
    animation: apfCheckPop .46s ease both;
}

.apf-success-check path {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: apfCheckDraw .48s .25s ease forwards;
}

.apf-exit-success-state h2 {
    color: #bbf7d0;
}

.apf-exit-success-state p {
    margin-bottom: 0;
}

@keyframes apfCheckPop {
    0% { opacity: 0; transform: scale(.62); }
    70% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes apfCheckDraw {
    to { stroke-dashoffset: 0; }
}

/* WhatsApp icon */
.apf-whatsapp-floating {
    position: fixed;
    bottom: 104px;
    z-index: 9992;
}

.apf-whatsapp-floating.apf-whatsapp-right {
    right: 20px;
}

.apf-whatsapp-floating.apf-whatsapp-left {
    left: 20px;
}

.apf-whatsapp-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(37,211,102,.34);
    transform-origin: center;
    animation: apfWhatsappBob 2.6s ease-in-out infinite;
}

.apf-whatsapp-button:hover {
    color: #fff;
    transform: translateY(-2px);
}

.apf-whatsapp-button svg {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    fill: #fff;
    flex: 0 0 auto;
}

.apf-whatsapp-label {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.apf-whatsapp-pulse {
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    background: rgba(37,211,102,.28);
    animation: apfWhatsappPulse 1.8s ease-out infinite;
}

@keyframes apfWhatsappBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes apfWhatsappPulse {
    0% { opacity: .8; transform: scale(.88); }
    100% { opacity: 0; transform: scale(1.18); }
}

@media (max-width: 900px) {
    .apf-slots-grid,
    .apf-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .apf-popup-floating {
        left: 12px;
        right: 12px;
        bottom: 112px;
        max-width: none;
    }

    .apf-popup-floating.apf-pos-left,
    .apf-popup-floating.apf-pos-right {
        left: 12px;
        right: 12px;
    }

    .apf-popup-card,
    .apf-feed-wrap {
        max-width: none;
    }

    .apf-deal-banner,
    .apf-coupon-card,
    .apf-alert-card,
    .apf-sticky-card {
        align-items: stretch;
        flex-direction: column;
    }

    .apf-timer {
        justify-content: center;
    }

    .apf-slots-grid,
    .apf-trust-grid {
        grid-template-columns: 1fr;
    }

    .apf-visitor-floating {
        right: 12px;
        bottom: 190px;
    }

    .apf-coupon-floating {
        bottom: 94px;
    }

    .apf-whatsapp-floating {
        bottom: 116px;
    }

    .apf-whatsapp-label {
        display: none;
    }

    .apf-whatsapp-button {
        width: 58px;
        height: 58px;
        padding: 10px;
        justify-content: center;
    }

    .apf-exit-overlay {
        padding: 12px;
    }

    .apf-exit-modal {
        min-height: auto;
        padding: 58px 20px 28px;
        border-radius: 22px;
    }

    .apf-exit-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .apf-exit-modal h2 {
        font-size: 32px;
    }

    .apf-exit-modal p {
        font-size: 17px;
    }

    .apf-exit-form {
        grid-template-columns: 1fr;
    }

    .apf-exit-form input,
    .apf-exit-form button {
        min-height: 62px;
        font-size: 17px;
    }

    .apf-button {
        width: 100%;
    }
}
