/* ============================================
   ZIRO13 — Promo Page
   Card mirror premium-product-card + overlay promo
   ============================================ */

.promo-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.promo-page-header {
    text-align: center;
    margin-bottom: 36px;
}

.promo-page-header .section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(168, 85, 247, 0.12);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.promo-page-header .section-title {
    font-size: clamp(28px, 4vw, 44px);
    color: #fff;
    margin: 0 0 12px;
    font-weight: 700;
}

.promo-page-header .section-description {
    color: rgba(255,255,255,0.5);
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
}

/* Filters */
.promo-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.promo-filter-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.2s;
}

.promo-filter-btn i { width: 16px; height: 16px; }
.promo-filter-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.promo-filter-btn.active { background: #fff; color: #000; border-color: #fff; }

/* Loading & Empty */
.promo-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 4rem 0;
    color: rgba(255,255,255,0.35);
}
.promo-loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.promo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 5rem 0;
    color: rgba(255,255,255,0.35);
    text-align: center;
}
.promo-empty i { width: 48px; height: 48px; opacity: 0.4; }
.promo-empty h3 { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin: 0; }

/* FIX: hidden attribute must override flex display */
.promo-loading[hidden],
.promo-empty[hidden] { display: none !important; }

/* Grid (sama dengan premium grid) */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================================
   Promo Card overlay (extends premium-product-card)
   ========================================= */
.promo-product-card { cursor: pointer; position: relative; }

.promo-card-overlay-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
    max-width: calc(100% - 20px);
}

.promo-platform-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}
.promo-platform-badge.roblox { background: rgba(255,255,255,0.18); color: #fff; }
.promo-platform-badge.samp { background: rgba(245,158,11,0.85); color: #fff; }

.promo-custom-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(239,68,68,0.85);
    color: #fff;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.promo-discount-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(239,68,68,0.4);
}

.promo-expired-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    z-index: 4;
}
.promo-expired-overlay i { width: 28px; height: 28px; }
.promo-expired-overlay span { font-size: 13px; }
.promo-product-card.is-expired { opacity: 0.7; }

/* Price strike & current */
.promo-product-card .premium-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    line-height: 1.2;
}
.promo-price-strike {
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 500;
}
.promo-price-current {
    color: #4ADE80;
    font-size: 18px;
    font-weight: 800;
}

/* Timer di dalam card */
.promo-card-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.18);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.promo-card-timer i { width: 14px; height: 14px; color: #C084FC; }
.promo-timer-label { color: rgba(255,255,255,0.55); }
.promo-timer-value {
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.promo-card-timer.ending-soon { animation: pulse-warn 1.4s ease-in-out infinite; border-color: rgba(239,68,68,0.4); }
.promo-card-timer.ending-soon .promo-timer-value { color: #FCA5A5; }
.promo-card-timer.expired { opacity: 0.5; }
@keyframes pulse-warn { 0%,100% { background: rgba(168,85,247,0.08); } 50% { background: rgba(239,68,68,0.12); } }

/* =========================================
   Modal Detail Promo
   ========================================= */
.promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    overflow-y: auto;
}
.promo-modal-overlay[hidden] { display: none !important; }

.promo-modal {
    background: #0E0E0E !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    padding: 24px;
    position: relative;
}

.promo-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.promo-modal-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
}

.promo-modal-platform {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.promo-modal-platform.roblox { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.78); }
.promo-modal-platform.samp { background: rgba(245,158,11,0.15); color: #FBBF24; }

.promo-modal-title {
    font-size: 22px;
    color: #fff;
    margin: 0 0 8px;
    font-weight: 700;
}

.promo-modal-desc {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
}

.promo-modal-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(74,222,128,0.05);
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.promo-modal-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.promo-modal-prices {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.promo-modal-price-original {
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    font-size: 13px;
}
.promo-modal-price-final {
    color: #4ADE80;
    font-size: 22px;
    font-weight: 800;
}

.promo-modal-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.18);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.promo-modal-timer i { width: 16px; height: 16px; color: #C084FC; }
.promo-modal-timer strong { color: #fff; font-variant-numeric: tabular-nums; margin-left: auto; }

.promo-modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-promo-order, .btn-promo-discord {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-promo-order { background: #fff; color: #000; }
.btn-promo-order:hover { background: rgba(255,255,255,0.85); }
.btn-promo-order.expired { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); pointer-events: none; }
.btn-promo-discord { background: rgba(88,101,242,0.15); color: #818CF8; border: 1px solid rgba(88,101,242,0.3); }
.btn-promo-discord:hover { background: rgba(88,101,242,0.25); }

@media (max-width: 720px) {
    .promo-page { padding: 90px 16px 60px; }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-modal-actions { flex-direction: column; }
    .btn-promo-order, .btn-promo-discord { width: 100%; }
}

/* ============================================
   NAVBAR — Promo link & badge (dipakai navbar.js)
   ============================================ */
.nav-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #FF4757, #FF6B81);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 999px;
    margin-left: 0.25rem;
    animation: badge-pop 0.3s ease;
}
@keyframes badge-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
.nav-link-promo,
.nav-link-promo:hover {
    color: inherit !important;
}
