/* =========================================================
   1. GOLD METALLIC PILL WITH LIGHT SWIPE ANIMATION
========================================================= */

.gold-pill-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #3b2500;
    background: linear-gradient(135deg, #fce085 0%, #dfa032 50%, #f7d268 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(223, 160, 50, 0.3);
    overflow: hidden;
    z-index: 1;
}

.gold-pill-tag::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: goldLightSwipe 3s infinite ease-in-out;
}

@keyframes goldLightSwipe {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

/* =========================================================
   2. HERO BUNDLES & COMPACT SERVICES LAYOUT
========================================================= */

.ratecard-section {
    max-width: 1200px;
    margin: 80px auto 120px;
    padding: 0 24px;
}

.ratecard-header, .bundles-header {
    text-align: center;
    margin-bottom: 40px;
}

.bundles-header {
    margin-top: 70px;
    margin-bottom: 24px;
}

.compact-section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 8px 0 0;
}

/* Hero Bundles Grid */
.bundle-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.rate-card-hero {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: 36px 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rate-card-hero:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.18);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.07);
}

.rate-card-hero.featured {
    background: #ffffff;
    border: 1.5px solid rgba(223, 160, 50, 0.5);
    box-shadow: 0 16px 36px rgba(223, 160, 50, 0.12);
}

/* Element Header Kartu */
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rate-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #64748b;
    text-transform: uppercase;
}

.card-head h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.rate-card-hero.featured .card-head h4 {
    color: #b45309;
}

.card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* Feature List di Kartu Utama */
.card-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.card-feature-list li {
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.card-feature-list li::before {
    content: "•";
    color: #d97706;
    font-size: 1.2rem;
    line-height: 1;
}

.rate-card-hero.featured .card-feature-list li {
    color: #78350f;
    font-weight: 500;
}

/* FOOTER KARTU: ATAS-BAWAH LAYOUT */
.card-foot.column-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    width: 100%;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-box .label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.price-box .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.amount.gold-text {
    color: #d97706;
}

.btn-action.full-width {
    width: 100%;
    text-align: center;
    padding: 13px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: #0f172a;
    color: #ffffff;
    transition: all 0.3s ease;
}

.rate-card-hero:hover .btn-action.full-width {
    background: #0284c7;
}

.btn-action.gold-btn {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.rate-card-hero:hover .btn-action.gold-btn {
    background: #0f172a;
}

/* Compact Service Grid */
.compact-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.compact-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
}

.compact-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.compact-card.custom-extra {
    background: #fffdf5;
    border-color: rgba(223, 160, 50, 0.3);
}

.compact-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.compact-price {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.arrow-icon {
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.compact-card:hover .arrow-icon {
    color: #0d9488;
    transform: translateX(4px);
}

/* =========================================================
   3. ADAPTIVE MODAL POP-UP STYLING
========================================================= */

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.detail-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.detail-modal .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.modal-card-body {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 32px;
    padding: 36px 32px;
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.detail-modal.show .modal-card-body {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #d97706;
    letter-spacing: 1px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0;
}

.modal-subtitle {
    color: #64748b;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.modal-swipe-wrap {
    position: relative;
    margin-bottom: 20px;
}

.modal-swipe-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 20px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-swipe-track::-webkit-scrollbar {
    display: none;
}

.modal-swipe-track.single-item {
    justify-content: center;
    overflow-x: visible;
}

.modal-swipe-track.single-item .sub-pkg-card {
    flex: 1 1 100%;
    max-width: 100%;
}

.sub-pkg-card {
    flex: 0 0 calc(85% - 10px);
    min-width: 270px;
    max-width: 380px;
    scroll-snap-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .sub-pkg-card {
        flex: 0 0 calc(70% - 10px);
    }
}

.sub-pkg-card.pop-featured {
    border: 1.5px solid rgba(223, 160, 50, 0.6);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
    box-shadow: 0 12px 30px rgba(223, 160, 50, 0.12);
}

.sub-pkg-card h5 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 12px 0 4px;
}

.sub-pkg-card.pop-featured h5 {
    color: #b45309;
}

.sub-pkg-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}

.sub-pkg-card.pop-featured .sub-pkg-price {
    color: #d97706;
}

.sub-pkg-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-pkg-card ul li {
    font-size: 0.88rem;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.sub-pkg-card ul li::before {
    content: "•";
    color: #d97706;
    font-size: 1.2rem;
    line-height: 1;
}

.sub-pkg-card.pop-featured ul li {
    color: #78350f;
    font-weight: 500;
}

.modal-dots-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.m-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-dot.active {
    background: #d97706;
    width: 22px;
    border-radius: 10px;
}

.modal-addon-note {
    background: #fffbe8;
    border: 1px dashed rgba(223, 160, 50, 0.4);
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.5;
}