/* ═══════════════════════════════════════
   800Arabia · Evolve Plan · v2
   ═══════════════════════════════════════ */

.ap-wrap {
    font-family: 'DM Sans', sans-serif;
    color: var(--ap-body-text);
    background: var(--ap-section-bg);
    line-height: 1.6;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px;
}
.ap-wrap *, .ap-wrap *::before, .ap-wrap *::after {
    box-sizing: border-box;
}

/* ─── Card ─── */
.ap-card {
    background: var(--ap-card-bg);
    border: 2px solid var(--ap-badge-bg);
    border-radius: 24px;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(26, 35, 50, 0.04),
        0 8px 24px rgba(26, 35, 50, 0.06),
        0 24px 64px rgba(42, 125, 110, 0.08);
    animation: apCardIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes apCardIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ambient glow */
.ap-card__glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--ap-badge-bg) 0%, transparent 65%);
    opacity: 0.08;
    pointer-events: none;
    animation: apGlowPulse 6s ease-in-out infinite;
}
@keyframes apGlowPulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.14; transform: scale(1.1); }
}

/* ─── Badge ─── */
.ap-card__badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ap-badge-bg);
    color: var(--ap-badge-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(42, 125, 110, 0.35);
    animation: apBadgeFloat 3s ease-in-out infinite;
}
@keyframes apBadgeFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}
.ap-badge-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: apBadgeDot 1.8s ease-in-out infinite;
}
@keyframes apBadgeDot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* ─── Header ─── */
.ap-card__header {
    text-align: center;
    margin-top: 16px;
    margin-bottom: 24px;
}
.ap-card__label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ap-muted-text);
    font-weight: 700;
    margin-bottom: 16px;
}
.ap-card__price {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin: 0 0 8px;
    line-height: 1;
    color: var(--ap-price);
    font-weight: 900;
}
.ap-currency {
    font-size: 36px;
    font-weight: 700;
    margin-right: 4px;
}
.ap-amount {
    font-family: 'Playfair Display', serif;
    font-size: 88px;
    font-weight: 900;
    letter-spacing: -2px;
    animation: apPriceGlow 4s ease-in-out infinite;
}
@keyframes apPriceGlow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 4px 16px rgba(42, 125, 110, 0.25)); }
}
.ap-period {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 4px;
}
.ap-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    margin: 8px 0 4px;
    font-weight: 700;
    color: var(--ap-body-text);
}
.ap-card__name-ar {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 22px;
    color: var(--ap-accent);
    margin: 0;
    direction: rtl;
    font-weight: 700;
}

/* ─── Description ─── */
.ap-card__desc {
    font-size: 16px;
    color: var(--ap-muted-text);
    margin: 0 auto 28px;
    line-height: 1.75;
    text-align: center;
    max-width: 560px;
}

/* ─── CTA Button ─── */
.ap-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 32px;
    background: var(--ap-btn-bg);
    color: var(--ap-btn-text);
    border-radius: 60px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.18);
}
.ap-card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.ap-card__btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px rgba(26, 35, 50, 0.28);
    color: var(--ap-btn-text);
}
.ap-card__btn:hover::before {
    left: 100%;
}
.ap-card__btn svg {
    transition: transform 0.3s ease;
}
.ap-card__btn:hover svg {
    transform: translateX(4px);
}

/* ─── Divider ─── */
.ap-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ap-card-border), transparent);
    margin: 36px 0;
}

/* ─── Two-col Includes/Not Included ─── */
.ap-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.ap-col h4 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 700;
    color: var(--ap-body-text);
}
.ap-dots {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ap-dots li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--ap-body-text);
    transition: transform 0.2s ease;
}
.ap-dots li:hover {
    transform: translateX(4px);
}
.ap-dots li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ap-dot);
    box-shadow: 0 0 0 3px rgba(42, 125, 110, 0.15);
}
.ap-muted {
    font-size: 13px;
    color: var(--ap-muted-text);
    margin: 0 0 6px;
}

/* ─── Specs grid ─── */
.ap-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ap-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--ap-timeline-bg);
    border-radius: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ap-spec:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 35, 50, 0.08);
}
.ap-spec__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-card-bg);
    border-radius: 10px;
    color: var(--ap-price);
    flex-shrink: 0;
}
.ap-spec__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.ap-spec__text span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ap-muted-text);
    font-weight: 600;
}
.ap-spec__text strong {
    font-size: 14px;
    color: var(--ap-body-text);
    margin-top: 2px;
}

/* ─── Timeline ─── */
.ap-card__timeline {
    margin-top: 36px;
    padding: 32px 28px;
    background: var(--ap-timeline-bg);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.ap-card__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ap-accent), var(--ap-price), var(--ap-badge-bg));
}
.ap-timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--ap-price);
}
.ap-timeline-header h4 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
    color: var(--ap-body-text);
}
.ap-timeline-first {
    font-size: 15px;
    margin: 0 0 28px;
    color: var(--ap-muted-text);
}
.ap-timeline-first strong {
    color: var(--ap-price);
    font-size: 17px;
}

.ap-timeline-rail {
    position: relative;
    padding-left: 28px;
}
.ap-timeline-rail::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--ap-accent) 0%, var(--ap-price) 100%);
    border-radius: 2px;
}

.ap-timeline-block {
    position: relative;
    margin-bottom: 22px;
    animation: apTimelineIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ap-timeline-block:nth-child(1) { animation-delay: 0.1s; }
.ap-timeline-block:nth-child(2) { animation-delay: 0.2s; }
.ap-timeline-block:nth-child(3) { animation-delay: 0.3s; }
.ap-timeline-block:nth-child(4) { animation-delay: 0.4s; }
.ap-timeline-block:nth-child(5) { animation-delay: 0.5s; }

@keyframes apTimelineIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ap-timeline-block:last-child {
    margin-bottom: 0;
}
.ap-month-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ap-card-bg);
    border: 3px solid var(--ap-price);
    z-index: 2;
    transition: transform 0.3s ease;
}
.ap-month-marker--highlight {
    background: var(--ap-accent);
    border-color: var(--ap-accent);
    box-shadow: 0 0 0 6px rgba(232, 132, 58, 0.2);
    animation: apMarkerPulse 2s ease-in-out infinite;
}
@keyframes apMarkerPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(232, 132, 58, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(232, 132, 58, 0); }
}
.ap-timeline-block:hover .ap-month-marker {
    transform: scale(1.2);
}
.ap-month {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--ap-accent);
    margin-bottom: 8px;
}
.ap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ap-tags span {
    display: inline-block;
    background: var(--ap-card-bg);
    color: var(--ap-dest-tag-text);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--ap-card-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ap-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.12);
}
.ap-tags span.ap-tag--highlight {
    background: var(--ap-highlight-tag-bg);
    color: var(--ap-highlight-tag-text);
    border-color: var(--ap-highlight-tag-bg);
    font-weight: 600;
}

/* ─── Responsive ─── */
@media (max-width: 680px) {
    .ap-wrap {
        padding: 24px 12px;
    }
    .ap-card {
        padding: 40px 24px 32px;
        border-radius: 20px;
    }
    .ap-amount {
        font-size: 68px;
    }
    .ap-card__name {
        font-size: 36px;
    }
    .ap-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ap-specs-grid {
        grid-template-columns: 1fr;
    }
    .ap-card__timeline {
        padding: 24px 20px;
    }
}
