/* ========================================
   Mottu Promo V92 — Custom Styles + UX Effects
   Palette: mottu.top (#111827, #1F2937, #00C853, #66FFA6, #374151)
   ======================================== */

/* ─── Anti-copy Protection ────────────── */
body {
    -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

img:not(.hero-bg-img) {
    pointer-events: none;
}

/* ─── Hero background image ───────────── */
#hero > div > img {
    filter: saturate(0.7) brightness(1);
    transition: opacity 0.5s ease;
}

@media (max-width: 639px) {
    #hero > div > img {
        object-position: center 30%;
    }
}

/* ═══════════════════════════════════════════
   CARD HOVER EFFECTS
   ═══════════════════════════════════════════ */

.card-hover {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 200, 83, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-hover:active {
    transform: translateY(-1px);
}

/* Icon float animation on card hover */
.card-hover:hover .icon-float {
    animation: iconFloat 0.5s ease forwards;
}

@keyframes iconFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   BUTTON HOVER EFFECTS
   ═══════════════════════════════════════════ */

.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-hover:hover::after {
    transform: translateX(100%);
}

/* ═══════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════ */

#progress-bar {
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.5);
    transform-origin: left;
}

/* ═══════════════════════════════════════════
   NAVBAR SCROLL STATE
   ═══════════════════════════════════════════ */

#main-nav {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

#main-nav.nav-scrolled {
    background-color: rgba(17, 24, 39, 0.97);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
}

/* ═══════════════════════════════════════════
   COUPON SHIMMER EFFECT
   ═══════════════════════════════════════════ */

.coupon-text {
    position: relative;
    background: linear-gradient(
        120deg,
        #00C853 0%,
        #66FFA6 40%,
        #fff 50%,
        #66FFA6 60%,
        #00C853 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: couponShimmer 4s ease-in-out infinite;
}

@keyframes couponShimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: 0% center; }
}

/* ═══════════════════════════════════════════
   STICKY FOOTER SLIDE-IN
   ═══════════════════════════════════════════ */

#sticky-footer {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    opacity: 0;
}

#sticky-footer.visible {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════════════════════════════════════════
   GREEN LINE GLOW (section divider)
   ═══════════════════════════════════════════ */

.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00C853, transparent);
    opacity: 0.4;
}

/* ─── Legacy Animations ───────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 8px rgba(0, 200, 83, 0.3); }
    50% { text-shadow: 0 0 20px rgba(0, 200, 83, 0.5), 0 0 40px rgba(0, 200, 83, 0.2); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out both;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* ─── Scrollbar hidden ────────────────── */
.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}

/* ─── Safe area for iPhone bottom bar ── */
.safe-area-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* ─── Copy button feedback ────────────── */
.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn.copied {
    background-color: #00B548 !important;
    transform: scale(0.97);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* ─── Coupon box click-to-copy feedback ── */
.coupon-box {
    transition: all 0.2s ease;
}

.coupon-box.coupon-copied {
    border-color: rgba(0, 200, 83, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.15), inset 0 0 20px rgba(0, 200, 83, 0.05);
}

.coupon-copy-icon {
    transition: all 0.2s ease;
}

/* ─── Open app button feedback ────────── */
.open-app-btn:active {
    transform: scale(0.97);
}

/* ─── Coupon text selection ───────────── */
.coupon-text::selection {
    background-color: rgba(0, 200, 83, 0.3);
    color: #66FFA6;
}

/* ─── FAQ Accordion ───────────────────── */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: rgba(0, 200, 83, 0.3);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    display: block;
    max-height: 500px;
}

/* ─── Toast notification ──────────────── */
.toast {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    max-width: 92vw;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 640px) {
    .toast {
        top: 1.25rem;
    }
}

/* ─── Smooth scroll ───────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

/* ─── Body overflow ───────────────────── */
body {
    overflow-x: hidden;
}

/* ─── Selection ───────────────────────── */
::selection {
    background-color: rgba(0, 200, 83, 0.2);
    color: #fff;
}

/* ─── Custom Context Menu ─────────────── */
.ctx-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    backdrop-filter: blur(20px);
}

.ctx-menu.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.ctx-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    color: #D1D5DB;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.ctx-menu-item:hover {
    background: rgba(0, 200, 83, 0.1);
    color: #fff;
}

.ctx-menu-item i {
    font-size: 16px;
    color: #9CA3AF;
    width: 20px;
    text-align: center;
    transition: color 0.15s;
}

.ctx-menu-item:hover i {
    color: #00C853;
}

.ctx-menu-sep {
    height: 1px;
    background: #374151;
    margin: 4px 12px;
}