/* ============================================================
   P10 — Ads Packages Page
   4 Themed Categories + Collapsible Floating Side Nav
   Design rules: blue badge, black titles, green CTAs
   ============================================================ */

:root {
    --ap-brand:      #2f5aae;
    --ap-brand2:     #338eaa;
    --ap-green:      #27ae60;
    --ap-green2:     #2ecc71;
    --ap-dark:       #0c1a2a;
    --ap-body:       #3d4654;
    --ap-line:       #e8ecf1;
    --ap-white:      #fff;
    --ap-yellow:     #fde047;
    --ap-gold:       #f59e0b;
    --ap-platinum:   #8b9dc3;
    --ap-silver:     #c0c7d0;
    --ap-radius:     24px;
    --ap-shadow:     0 12px 40px rgba(12, 26, 42, 0.08);
    --ap-shadow-hv:  0 20px 60px rgba(12, 26, 42, 0.14);
}

/* ── No horizontal scroll on this page ── */
body.ap-body,
body { overflow-x: hidden; }

/* ── Section base ── */
.ap-hero,
.ap-category,
.ap-contact,
.ap-sub,
.ap-gallery-strip {
    position: relative;
    overflow: hidden;
}

/* ── Section Badge (blue brand) ── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--ap-brand), var(--ap-brand2));
    color: var(--ap-white);
    box-shadow: 0 6px 20px rgba(47, 90, 174, 0.25);
}

/* Badge in dark hero */
.ap-hero .section-badge {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Shared Buttons ── */
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ap-btn--green {
    background: linear-gradient(135deg, var(--ap-green), var(--ap-green2));
    color: var(--ap-white);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.3);
}
.ap-btn--green:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(39, 174, 96, 0.4);
    color: var(--ap-white);
}
.ap-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ap-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ap-btn--ghost:hover {
    background: var(--ap-white);
    color: var(--ap-dark);
    transform: translateY(-3px);
}
.ap-btn--lg {
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: 60px;
}

/* ============================================================
   1. HERO
   ============================================================ */
.ap-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--ap-dark);
    background-size: cover;
    background-position: center;
    padding: 100px 0 80px;
}

.ap-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 26, 42, 0.92), rgba(47, 90, 174, 0.86));
    z-index: 1;
}
.ap-hero__shape,
.ap-hero__ring {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.ap-hero__shape--1 {
    width: 520px; height: 520px;
    top: -180px; right: -140px;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.22), transparent 70%);
}
.ap-hero__shape--2 {
    width: 380px; height: 380px;
    bottom: -120px; left: -100px;
    background: radial-gradient(circle, rgba(47, 90, 174, 0.3), transparent 70%);
}
.ap-hero__shape--3 {
    width: 260px; height: 260px;
    top: 40%; left: 45%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.14), transparent 70%);
    transform: rotate(45deg);
    border-radius: 30px;
}
.ap-hero__ring--1 {
    width: 280px; height: 280px;
    top: 15%; left: 10%;
    border: 2px solid rgba(255, 255, 255, 0.07);
}
.ap-hero__ring--2 {
    width: 180px; height: 180px;
    bottom: 18%; right: 12%;
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.ap-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.ap-hero__title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: var(--ap-white);
    line-height: 1.2;
    margin: 0 0 18px;
}
.ap-hero__desc {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--ap-yellow);
    margin: 0 auto 32px;
    max-width: 760px;
    line-height: 1.9;
    font-weight: 500;
}
.ap-hero__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.ap-hero__stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}
.ap-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ap-hero__stat strong {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 900;
    color: var(--ap-white);
    line-height: 1;
}
.ap-hero__stat span {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
}

/* ============================================================
   FLOATING SIDE NAV
   ============================================================ */
.ap-side-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.ap-side-nav__stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ap-side-nav--collapsed .ap-side-nav__stack {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
}
.ap-side-btn {
    --btn-color: #2f5aae;
    display: inline-flex;
    flex-direction: row-reverse; /* icon on right (RTL), label on left */
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 18px;
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    background: var(--btn-color);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--btn-color) 40%, transparent);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    white-space: nowrap;
    min-width: 160px;
    justify-content: flex-start;
}
.ap-side-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.ap-side-btn__label {
    font-size: 0.92rem;
    font-weight: 800;
    color: inherit;
}
.ap-side-btn:hover,
.ap-side-btn.is-active {
    transform: translateX(-4px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--btn-color) 55%, transparent);
    color: #fff;
}

/* Per-button brand colors */
.ap-side-btn--snap    { --btn-color: #FFC107; color: #0c1a2a; }
.ap-side-btn--snap svg { fill: #0c1a2a; }
.ap-side-btn--google  { --btn-color: #4285F4; }
.ap-side-btn--account { --btn-color: #0ea5e9; }
.ap-side-btn--web     { --btn-color: #7c3aed; }

.ap-side-nav__toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #e5e7eb;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    align-self: center;
    margin-top: 4px;
}
.ap-side-nav__toggle svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}
.ap-side-nav__toggle:hover {
    background: #cbd5e1;
    color: #1e293b;
}

/* Reopen (menu) button — only visible when collapsed */
.ap-side-nav__reopen {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--ap-brand);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(47, 90, 174, 0.35);
    transition: background 0.2s ease;
}
.ap-side-nav__reopen svg { width: 22px; height: 22px; }
.ap-side-nav__reopen:hover { background: var(--ap-brand2); }

/* Collapsed state: hide stack + toggle, show reopen button only */
.ap-side-nav--collapsed .ap-side-nav__stack,
.ap-side-nav--collapsed .ap-side-nav__toggle { display: none; }
.ap-side-nav--collapsed .ap-side-nav__reopen { display: flex; }

/* ============================================================
   CATEGORY WRAPPERS
   ============================================================ */
.ap-category {
    padding: 0 0 80px;
}
.ap-category__header {
    padding: 90px 0 60px;
    text-align: center;
    position: relative;
}
.ap-category__header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 0 0 4px 4px;
}
.ap-category__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    color: var(--ap-dark);
    line-height: 1.25;
    margin: 0 auto 16px;
    max-width: 840px;
}
.ap-category__desc {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--ap-body);
}

/* Category theme: Social (Pink/Magenta) */
.ap-category--social {
    background: linear-gradient(160deg, #fff5f7, #fef0f4 40%, #fef7e8);
}
.ap-category--social .ap-category__header::before {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

/* Category theme: Search (Blue/Google) */
.ap-category--search {
    background: linear-gradient(160deg, #eef4ff, #e3ecfb 40%, #f4f8ff);
}
.ap-category--search .ap-category__header::before {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

/* Category theme: Pro (Gold/Amber) */
.ap-category--pro {
    background: linear-gradient(160deg, #fffbeb, #fef3c7 40%, #fff7ed);
}
.ap-category--pro .ap-category__header::before {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Category theme: Specialized (Teal/Green) */
.ap-category--specialized {
    background: linear-gradient(160deg, #ecfeff, #e0f2fe 40%, #f0fdfa);
}
.ap-category--specialized .ap-category__header::before {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

/* Prominent end-of-category CTA — glowing gradient box */
/* Section dividers — full-width design strips between categories */
.ap-section-divider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin: 0;
}
.ap-section-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 6s ease;
}
.ap-section-divider:hover img { transform: scale(1.05); }
.ap-section-divider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 26, 42, 0.15) 0%, rgba(12, 26, 42, 0.55) 100%);
    pointer-events: none;
}
@media (max-width: 768px) {
    .ap-section-divider { height: 180px; }
}

.ap-category__cta {
    max-width: 860px;
    margin: 50px auto 0;
    padding: 44px 36px;
    text-align: center;
    position: relative;
    border-radius: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat-color, #2f5aae) 12%, #fff) 0%, #fff 100%);
    border: 2px dashed color-mix(in srgb, var(--cat-color, #2f5aae) 40%, transparent);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--cat-color, #2f5aae) 15%, transparent);
    overflow: hidden;
}
.ap-category__cta::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cat-color, #2f5aae) 25%, transparent), transparent);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: apCategoryCtaShine 3.5s linear infinite;
    background-size: 200% 100%;
}
.ap-category__cta > * { position: relative; z-index: 1; }
.ap-category__cta::after {
    content: 'لم تجد ما يناسبك؟';
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ap-dark);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.ap-category__cta .ap-btn--lg {
    font-size: 1.05rem;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--cat-color, #2f5aae), color-mix(in srgb, var(--cat-color, #2f5aae) 70%, #000));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--cat-color, #2f5aae) 40%, transparent);
    animation: apCategoryCtaPulse 2.2s ease-in-out infinite;
}
.ap-category__cta .ap-btn--lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--cat-color, #2f5aae) 55%, transparent);
}

@keyframes apCategoryCtaShine {
    0%   { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}
@keyframes apCategoryCtaPulse {
    0%, 100% { box-shadow: 0 10px 28px color-mix(in srgb, var(--cat-color, #2f5aae) 40%, transparent); }
    50%      { box-shadow: 0 14px 40px color-mix(in srgb, var(--cat-color, #2f5aae) 65%, transparent); }
}

/* Inherit color per category */
.ap-category--social       { --cat-color: #8b5cf6; }
.ap-category--search       { --cat-color: #4285F4; }
.ap-category--pro          { --cat-color: #f59e0b; }
.ap-category--specialized  { --cat-color: #14b8a6; }

/* ============================================================
   SUB-SECTION (inside category)
   ============================================================ */
.ap-sub {
    padding: 40px 0 30px;
}
.ap-sub--alt {
    background: rgba(0, 0, 0, 0.02);
    margin-top: 40px;
    padding: 60px 0 40px;
}
.ap-sub__head {
    text-align: center;
    margin-bottom: 40px;
}
.ap-sub__logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.ap-sub__logo svg {
    width: 44px;
    height: 44px;
}
.ap-sub__logo--insta {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}
.ap-sub__logo--tiktok {
    background: linear-gradient(135deg, #010101, #25f4ee 50%, #fe2c55);
    color: #fff;
}
.ap-sub__logo--snap {
    background: linear-gradient(135deg, #FFFC00, #FFC107);
    color: #0c1a2a;
}
.ap-sub__logo--google {
    background: #fff;
    border: 1px solid var(--ap-line);
}
.ap-sub__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: var(--ap-dark);
    margin: 0 0 10px;
}
.ap-sub__desc {
    font-size: 1rem;
    color: var(--ap-body);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   PACKAGE CARD — generic
   ============================================================ */
.ap-pkg-grid {
    display: grid;
    gap: 28px;
}
.ap-pkg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ap-pkg-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ap-pkg {
    --pkg-color: #2f5aae;
    --pkg-color-light: #4169b0;
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pkg-color) 5%, #fff) 0%, #fff 60%);
    border: 2px solid color-mix(in srgb, var(--pkg-color) 15%, transparent);
    border-radius: var(--ap-radius);
    padding: 38px 24px 24px;
    box-shadow: var(--ap-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ap-pkg:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 55px color-mix(in srgb, var(--pkg-color) 28%, transparent);
    border-color: color-mix(in srgb, var(--pkg-color) 40%, transparent);
}
.ap-pkg__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
    background: linear-gradient(90deg, var(--pkg-color), var(--pkg-color-light));
}
/* Decorative corner glow */
.ap-pkg::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, color-mix(in srgb, var(--pkg-color) 18%, transparent) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.ap-pkg:hover::before { opacity: 1; }
.ap-pkg__ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--ap-green), var(--ap-green2));
    color: var(--ap-white);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}
.ap-pkg__head {
    text-align: center;
    margin-bottom: 18px;
    padding-top: 6px;
}
.ap-pkg__num {
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light));
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--pkg-color) 35%, transparent);
}
.ap-pkg__name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--ap-dark);
    margin: 0 0 6px;
    line-height: 1.35;
}
.ap-pkg__tag {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--ap-body);
    background: #f1f5f9;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 4px;
}
.ap-pkg__icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 14px;
    color: var(--ap-white);
}
.ap-pkg__icon-circle svg {
    width: 34px;
    height: 34px;
}
.ap-pkg__crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin: 0 auto 12px;
}
.ap-pkg__crown svg { width: 26px; height: 26px; }

/* Price */
.ap-pkg__price {
    text-align: center;
    margin-bottom: 20px;
    padding: 18px 0;
    border-top: 1px dashed var(--ap-line);
    border-bottom: 1px dashed var(--ap-line);
}
.ap-pkg__price-amount {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--ap-dark);
    line-height: 1;
}
.ap-pkg__price-currency {
    display: block;
    font-size: 0.9rem;
    color: var(--ap-body);
    margin-top: 6px;
    font-weight: 600;
}
.ap-pkg__dual-price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 0;
    border-top: 1px dashed var(--ap-line);
    border-bottom: 1px dashed var(--ap-line);
}
.ap-pkg__price-block {
    text-align: center;
    padding: 4px;
}
.ap-pkg__price-block + .ap-pkg__price-block {
    border-right: 1px dashed var(--ap-line);
}
.ap-pkg__price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--ap-body);
    margin-bottom: 6px;
    font-weight: 700;
}
.ap-pkg__price-block .ap-pkg__price-amount {
    font-size: 1.5rem;
}
.ap-pkg__price-block--muted .ap-pkg__price-amount {
    color: var(--ap-body);
    opacity: 0.7;
}

/* Feature list — numbered lines */
.ap-pkg__list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    text-align: left;
    direction: ltr;
    flex: 1;
}
.ap-pkg__list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    line-height: 1.55;
}
.ap-pkg__list li:last-child {
    border-bottom: none;
}
/* Simple numeric prefix "01." — no circles, no backgrounds, left-aligned */
.ap-pkg__item-num {
    flex: 0 0 auto;
    min-width: 26px;
    color: var(--pkg-color, var(--ap-brand));
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0;
    background: none;
    border-radius: 0;
    height: auto;
    padding: 0;
    opacity: 0.85;
}
.ap-pkg__item-num::after { content: '.'; margin-inline-start: 1px; }
.ap-pkg__list li strong {
    color: var(--ap-dark);
    font-weight: 700;
    flex: 1;
    text-align: start;
    direction: rtl; /* keep Arabic text flowing rtl inside the left-aligned numbered row */
}
.ap-pkg__list--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 28px;
    max-width: 820px;
    margin: 0 auto 26px;
}
.ap-pkg__list--two-col li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.ap-pkg__list--light li {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: var(--ap-body);
}

/* CTA inside card — picks up package color */
.ap-pkg__cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light));
    color: var(--ap-white);
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--pkg-color) 35%, transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ap-pkg__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--pkg-color) 50%, transparent);
    color: var(--ap-white);
}
.ap-pkg__cta--lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ── Per-package color themes — set CSS vars, identity cascades automatically ── */
.ap-pkg--color-1    { --pkg-color: #ec4899; --pkg-color-light: #f472b6; }
.ap-pkg--color-2    { --pkg-color: #8b5cf6; --pkg-color-light: #a78bfa; }
.ap-pkg--color-3    { --pkg-color: #f97316; --pkg-color-light: #fb923c; }
.ap-pkg--color-4    { --pkg-color: #06b6d4; --pkg-color-light: #22d3ee; }

.ap-pkg--color-1 .ap-pkg__icon-circle { background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light)); }
.ap-pkg--color-2 .ap-pkg__icon-circle { background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light)); }
.ap-pkg--color-3 .ap-pkg__icon-circle { background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light)); }
.ap-pkg--color-4 .ap-pkg__icon-circle { background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light)); }

/* ── Google tier colors ── */
.ap-pkg--google-1 { --pkg-color: #4285F4; --pkg-color-light: #669df6; }
.ap-pkg--google-2 { --pkg-color: #34A853; --pkg-color-light: #5cb671; }
.ap-pkg--google-3 { --pkg-color: #EA4335; --pkg-color-light: #ef6c60; }

/* ── Tier colors (Silver/Gold/Platinum) ── */
.ap-pkg--tier-silver   { --pkg-color: #64748b; --pkg-color-light: #94a3b8; }
.ap-pkg--tier-gold     { --pkg-color: #d97706; --pkg-color-light: #f59e0b; }
.ap-pkg--tier-platinum { --pkg-color: #0ea5e9; --pkg-color-light: #38bdf8; }

.ap-pkg--tier-silver   .ap-pkg__crown { background: linear-gradient(135deg, var(--pkg-color-light), var(--pkg-color)); color: #fff; }
.ap-pkg--tier-gold     .ap-pkg__crown { background: linear-gradient(135deg, var(--pkg-color-light), var(--pkg-color)); color: #fff; }
.ap-pkg--tier-platinum .ap-pkg__crown { background: linear-gradient(135deg, var(--pkg-color-light), var(--pkg-color)); color: #fff; }
.ap-pkg--tier-gold .ap-pkg__price-amount { color: var(--pkg-color); }

/* ── Specialized (Cat D) colors ── */
.ap-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}
.ap-pkg--spec-1 { --pkg-color: #0f766e; --pkg-color-light: #14b8a6; }
.ap-pkg--spec-2 { --pkg-color: #0369a1; --pkg-color-light: #0ea5e9; }
.ap-pkg--spec-3 { --pkg-color: #15803d; --pkg-color-light: #22c55e; }

.ap-pkg--spec-1 .ap-pkg__icon-circle,
.ap-pkg--spec-2 .ap-pkg__icon-circle,
.ap-pkg--spec-3 .ap-pkg__icon-circle { background: linear-gradient(135deg, var(--pkg-color), var(--pkg-color-light)); }

/* ── Featured card ── uses its package color as rich background */
.ap-pkg--featured {
    transform: scale(1.04);
    background: linear-gradient(160deg, var(--pkg-color), color-mix(in srgb, var(--pkg-color) 70%, #000));
    border-color: var(--pkg-color);
    color: var(--ap-white);
    box-shadow: 0 20px 60px color-mix(in srgb, var(--pkg-color) 35%, transparent);
}
.ap-pkg--featured::before { display: none; }
.ap-pkg--featured .ap-pkg__name,
.ap-pkg--featured .ap-pkg__price-amount,
.ap-pkg--featured .ap-pkg__list li strong,
.ap-pkg--featured .ap-pkg__price-label,
.ap-pkg--featured .ap-pkg__price-currency {
    color: var(--ap-white) !important;
}
.ap-pkg--featured .ap-pkg__num {
    background: rgba(255, 255, 255, 0.22);
    color: var(--ap-white);
    box-shadow: none;
}
.ap-pkg--featured .ap-pkg__tag {
    background: rgba(255, 255, 255, 0.14);
    color: var(--ap-white);
}
.ap-pkg--featured .ap-pkg__item-num { color: rgba(255, 255, 255, 0.85); }
.ap-pkg--featured .ap-pkg__list li {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}
.ap-pkg--featured .ap-pkg__cta {
    background: #fff;
    color: var(--pkg-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ap-pkg--featured .ap-pkg__cta:hover {
    color: var(--pkg-color);
    box-shadow: 0 14px 36px rgba(0,0,0,0.25);
}
.ap-pkg--featured .ap-pkg__price {
    border-color: rgba(255, 255, 255, 0.25);
}
.ap-pkg--featured .ap-pkg__dual-price {
    border-color: rgba(255, 255, 255, 0.25);
}
.ap-pkg--featured .ap-pkg__price-block + .ap-pkg__price-block {
    border-color: rgba(255, 255, 255, 0.25);
}
.ap-pkg--featured:hover {
    transform: scale(1.04) translateY(-8px);
}

/* ============================================================
   STARTUP HIGHLIGHT (Cat C top)
   ============================================================ */
.ap-startup-pkg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 32px;
    padding: 50px 40px;
    color: var(--ap-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(12, 26, 42, 0.3);
}
.ap-startup-pkg::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 70%);
    pointer-events: none;
}
.ap-startup-pkg::after {
    content: "";
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.2), transparent 70%);
    pointer-events: none;
}
.ap-startup-pkg__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}
.ap-startup-pkg__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.ap-startup-pkg__header {
    margin-bottom: 32px;
}
.ap-startup-pkg__header .ap-pkg__num {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    margin-bottom: 14px;
}
.ap-startup-pkg__title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 900;
    color: var(--ap-white);
    margin: 0 0 10px;
}
.ap-startup-pkg__subtitle {
    color: rgba(253, 224, 71, 0.9);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.7;
}
.ap-startup-pkg .ap-pkg__list li {
    color: var(--ap-white);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.ap-startup-pkg .ap-pkg__list li strong {
    color: var(--ap-white);
}
.ap-startup-pkg .ap-pkg__item-num {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

/* ============================================================
   SNAP SHOWCASE CARD
   ============================================================ */
.ap-snap-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, #FFFC00, #FFC107);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(255, 193, 7, 0.3);
}
.ap-snap-card__media {
    position: relative;
    min-height: 340px;
}
.ap-snap-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ap-snap-card__body {
    padding: 44px 36px;
    color: #0c1a2a;
}
.ap-snap-card__title {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 900;
    color: #0c1a2a;
    margin: 14px 0 10px;
}
.ap-snap-card__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 20px;
}
.ap-snap-card .ap-pkg__item-num {
    background: rgba(12, 26, 42, 0.12);
    color: #0c1a2a;
}
.ap-snap-card .ap-pkg__list li strong {
    color: #0c1a2a;
}
.ap-snap-card .ap-sub__logo {
    margin: 0 0 8px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
}
.ap-snap-card .ap-sub__logo svg { width: 36px; height: 36px; }

/* ============================================================
   GALLERY STRIP (horizontal scroll between sections)
   ============================================================ */
.ap-gallery-strip {
    padding: 40px 0;
    margin: 20px 0;
}
.ap-gallery-strip--dark {
    background: rgba(12, 26, 42, 0.04);
}
.ap-gallery-strip__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.ap-gallery-strip__scroll::-webkit-scrollbar {
    height: 6px;
}
.ap-gallery-strip__scroll::-webkit-scrollbar-thumb {
    background: rgba(47, 90, 174, 0.25);
    border-radius: 10px;
}
.ap-gallery-strip__item {
    flex: 0 0 320px;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(12, 26, 42, 0.12);
    scroll-snap-align: start;
    transition: transform 0.3s;
}
.ap-gallery-strip__item:hover {
    transform: translateY(-6px) scale(1.02);
}
.ap-gallery-strip__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   CONTACT
   ============================================================ */
.ap-contact {
    padding: 90px 0;
    background: linear-gradient(160deg, #f8fbff, #eaf1fd 30%, #f0f4f8);
    text-align: center;
}
.ap-contact__title {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 900;
    color: var(--ap-dark);
    margin: 0 0 48px;
}
.ap-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    text-align: right;
    align-items: stretch;
}
.ap-contact__info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ap-contact__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--ap-white);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(12, 26, 42, 0.06);
    border: 1px solid var(--ap-line);
}
.ap-contact__item svg {
    width: 26px;
    height: 26px;
    color: var(--ap-brand);
    flex-shrink: 0;
}
.ap-contact__item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--ap-body);
    font-weight: 700;
    margin-bottom: 4px;
}
.ap-contact__item a,
.ap-contact__item span {
    color: var(--ap-dark);
    font-weight: 800;
    text-decoration: none;
    font-size: 1rem;
    direction: ltr;
    text-align: right;
    display: inline-block;
}
.ap-contact__map {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(12, 26, 42, 0.12);
    min-height: 400px;
}
.ap-contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .ap-pkg-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ap-pkg-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .ap-spec-grid   { grid-template-columns: 1fr 1fr; }
    .ap-snap-card   { grid-template-columns: 1fr; }
    .ap-snap-card__media { min-height: 260px; }
    .ap-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .ap-side-nav { right: 10px; left: auto; }
    .ap-side-btn { min-width: 140px; padding: 8px 14px; }
    .ap-side-btn__label { font-size: 0.85rem; }
    .ap-side-btn svg { width: 20px; height: 20px; }
}

@media (max-width: 768px) {
    .ap-hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }
    .ap-category__header { padding: 60px 0 40px; }
    .ap-pkg-grid--4,
    .ap-pkg-grid--3,
    .ap-spec-grid {
        grid-template-columns: 1fr;
    }
    .ap-pkg--featured {
        transform: scale(1);
    }
    .ap-pkg--featured:hover {
        transform: translateY(-6px);
    }
    .ap-pkg__list--two-col {
        grid-template-columns: 1fr;
    }
    .ap-startup-pkg {
        padding: 36px 22px;
    }
    .ap-gallery-strip__item {
        flex: 0 0 260px;
        height: 180px;
    }
    .ap-hero__stats {
        gap: 24px;
    }
    .ap-hero__stat strong { font-size: 1.5rem; }
    .ap-snap-card__body { padding: 28px 22px; }

    /* Side nav: compact on mobile, stays at top-right under header */
    .ap-side-nav {
        top: auto;
        bottom: 90px;
        right: 10px;
        left: auto;
        transform: none;
    }
    .ap-side-btn { min-width: 0; padding: 8px 12px 8px 14px; }
    .ap-side-btn__label { font-size: 0.82rem; }
    .ap-side-btn svg { width: 18px; height: 18px; }
}

@media (max-width: 480px) {
    .ap-hero { padding-top: 80px; }
    .ap-hero__cta { flex-direction: column; }
    .ap-hero__cta .ap-btn { width: 100%; }
    .ap-pkg { padding: 26px 18px 20px; }
    .ap-pkg__price-amount { font-size: 1.8rem; }
    .ap-btn { padding: 12px 24px; font-size: 0.95rem; }
    .ap-btn--lg { padding: 14px 28px; font-size: 1rem; }
    .ap-startup-pkg__badge {
        position: static;
        display: inline-block;
        margin-bottom: 14px;
    }
    .ap-contact__item { flex-wrap: wrap; }
}
