/* ========================================
   Mottu Promo V91 — Custom Styles
   Palette: mottu.top (#111827, #1F2937, #00C853, #66FFA6, #374151)
   ======================================== */

/* ─── Anti-copy Protection ────────────── */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -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;
    pointer-events: none;
}

/* ─── 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.copied {
    background-color: #00B548 !important;
}

.copy-btn.copied i::before {
    content: "\eb7b";
    /* ri-check-line */
}

/* ─── 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: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ─── 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;
}