/* =========================
   GLOBAL FIX (STOP MOBILE SCROLL)
   ========================= */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* =========================
   CONTAINER
   ========================= */
.hap-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 10px;
    margin: 0 auto;
    width: 100%;
}

/* =========================
   PLAN CARD - DESKTOP (3)
   ========================= */
.hap-plan {
    flex: 1 1 calc(33.33% - 15px);
    max-width: calc(33.33% - 15px);
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
.hap-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   TABLET (2 PLANS)
   ========================= */
@media (max-width: 768px) {
    .hap-plan {
        flex: 1 1 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

/* =========================
   MOBILE (SHOW ONLY ONE)
   ========================= */
@media (max-width: 480px) {

    .hap-container {
        gap: 12px;
        padding: 0 10px;
        margin: 0 auto;
        overflow: hidden;
    }

    /* Hide all plans */
    .hap-plan {
        display: none !important;
    }

    /* Show ONLY featured plan */
    .hap-plan.featured-plan {
        display: block !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 14px;
        border-radius: 12px;
    }

    /* Fix images inside plans */
    .hap-plan img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

/* =========================
   BUTTON
   ========================= */
.hap-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #673de6;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.1s ease;
}

.hap-btn:hover {
    background: #5a30d6;
    transform: translateY(-1px);
}

/* =========================
   PROMO / COUPON
   ========================= */
.hap-promo-wrap {
    margin: 12px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hap-offer-text {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c45e);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.hap-promo-label {
    font-size: 12px;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.hap-promo-btn {
    display: inline-block;
    background: #fff3cd;
    border: 2px dashed #e0a800;
    color: #856404;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    word-break: break-word;
    max-width: 100%;
}

.hap-promo-btn:hover {
    background: #ffe69c;
    transform: scale(1.05);
}

.hap-promo-btn:active {
    transform: scale(0.97);
}

.hap-copied-msg {
    font-size: 12px;
    color: #198754;
    font-weight: 600;
    animation: hap-fade-in 0.25s ease;
}

/* Animation */
@keyframes hap-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}