/* ==========================================================================
   PROMO PUBLIK — tiket voucher, section beranda, pita promo
   public/css/public-promo.css (di-load dari layouts/public.blade.php)
   Versi RAMPING: panel beranda dibuat lebih pendek supaya section bawah ikut terlihat.
   ========================================================================== */

:root {
    --pv-tosca: #14b8bd;
    --pv-tosca-dark: #0f9ea3;
    --pv-tosca-deep: #0b7f84;
    --pv-tosca-soft: #e6f7f8;
    --pv-ink: #141b28;
    --pv-muted: rgba(20, 27, 40, .62);
    --pv-ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Section di beranda
   -------------------------------------------------------------------------- */
.pv-strip { padding: 14px 0 4px; }

.pv-strip-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.pv-strip-head h2 {
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 800;
    color: var(--pv-ink);
    margin: 0 0 4px;
}

.pv-strip-head p { margin: 0; font-size: 14.5px; color: var(--pv-muted); }

.pv-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--pv-tosca-dark);
    text-decoration: none;
}

.pv-strip-link:hover { color: var(--pv-tosca-dark); text-decoration: underline; }

.pv-strip-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 18px;
}

.pv-strip-track.is-single { grid-template-columns: minmax(0, 560px); }

/* grid halaman /promo */
.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 18px;
}

/* --------------------------------------------------------------------------
   Tiket voucher (halaman /promo)
   -------------------------------------------------------------------------- */
.pv-ticket {
    display: block;
    text-decoration: none;
    color: var(--pv-ink);
    filter: drop-shadow(0 6px 16px rgba(20, 27, 40, .09));
    transition: transform .25s var(--pv-ease), filter .25s ease;
}

.pv-ticket-shape {
    --notch: 11px;
    --stub: 132px;
    display: grid;
    grid-template-columns: var(--stub) 1fr;
    min-height: 196px;
    height: 100%;
    border-radius: 18px;
    background: #fff;
    -webkit-mask:
        radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask:
        radial-gradient(circle var(--notch) at var(--stub) 0, transparent 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle var(--notch) at var(--stub) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

a.pv-ticket:hover {
    color: var(--pv-ink);
    transform: translateY(-4px);
    filter: drop-shadow(0 14px 24px rgba(15, 158, 163, .22));
}

.pv-ticket-stub {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px 10px;
    text-align: center;
    color: #fff;
    border-radius: 18px 0 0 18px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .22), transparent 45%),
        linear-gradient(160deg, var(--pv-tosca) 0%, var(--pv-tosca-deep) 100%);
}

.pv-ticket-stub::after {
    content: '';
    position: absolute;
    right: -1px; top: 16px; bottom: 16px;
    border-right: 2px dashed rgba(20, 27, 40, .14);
}

.pv-ticket-off {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: .85;
}

.pv-ticket-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.pv-ticket-value.is-amount { font-size: 23px; display: flex; flex-direction: column; align-items: center; }
.pv-ticket-value.is-amount small { font-size: 13px; font-weight: 700; opacity: .85; letter-spacing: 0; }

.pv-ticket-cap { font-size: 11px; font-weight: 600; opacity: .85; }

.pv-ticket-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 18px 22px;
    min-width: 0;
}

.pv-ticket-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pv-ticket-code {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .6px;
    color: var(--pv-tosca-dark);
    background: var(--pv-tosca-soft);
    border: 1px dashed rgba(20, 184, 189, .5);
    padding: 3px 10px;
    border-radius: 6px;
}

.pv-ticket-state {
    font-size: 11.5px;
    font-weight: 700;
    color: rgba(20, 27, 40, .55);
    background: rgba(20, 27, 40, .06);
    padding: 3px 10px;
    border-radius: 999px;
}

.pv-ticket-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin: 2px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pv-ticket-for {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--pv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-ticket-for i { color: var(--pv-tosca); }

/* hitung mundur */
.pv-countdown { margin-top: 4px; }

.pv-countdown-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pv-muted);
    margin-bottom: 5px;
}

.pv-countdown-units { display: flex; gap: 6px; }

.pv-countdown-units span {
    flex: 1 1 0;
    max-width: 58px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 6px 4px;
    border-radius: 10px;
    background: var(--pv-ink);
    color: #fff;
}

.pv-countdown-units b {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.pv-countdown-units small {
    font-size: 9.5px;
    font-weight: 600;
    opacity: .7;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.pv-ticket.is-urgent .pv-countdown-units span { background: #e8590c; }

.pv-ticket-cta {
    margin-top: auto;
    padding-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--pv-tosca-dark);
}

/* nonaktif */
.pv-ticket.is-disabled { cursor: default; filter: drop-shadow(0 4px 10px rgba(20, 27, 40, .06)); }
.pv-ticket.is-disabled .pv-ticket-stub { background: linear-gradient(160deg, #b9c2c7, #8f9aa1); }
.pv-ticket.is-disabled .pv-ticket-title { color: rgba(20, 27, 40, .55); }
.pv-ticket.is-disabled .pv-ticket-code {
    color: rgba(20, 27, 40, .45);
    background: rgba(20, 27, 40, .05);
    border-color: rgba(20, 27, 40, .2);
    text-decoration: line-through;
}
.pv-ticket.is-disabled .pv-ticket-for i { color: inherit; }

.pv-ticket-ended {
    margin: auto 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pv-muted);
}

/* --------------------------------------------------------------------------
   Panel promo di beranda (RAMPING)
   -------------------------------------------------------------------------- */
.pv-panel {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px 0 16px 24px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 110%, rgba(255, 255, 255, .18), transparent 40%),
        linear-gradient(120deg, #14b8bd 0%, #0f9ea3 45%, #0b6f74 100%);
    box-shadow: 0 10px 24px rgba(11, 111, 116, .2);
}

.pv-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
            mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}

.pv-panel-copy { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }

.pv-panel-lead {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .9);
}

.pv-panel-lead b { font-size: 19px; font-weight: 800; color: #fff; }

.pv-panel-sub { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); margin: 0 0 12px; }

.pv-panel-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pv-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--pv-tosca-deep);
    background: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s;
}

.pv-panel-link:hover { color: var(--pv-tosca-deep); transform: translateY(-2px); }

.pv-panel-arrows { display: flex; gap: 6px; }

.pv-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, opacity .2s;
}

.pv-arrow:hover:not(:disabled) { background: #fff; color: var(--pv-tosca-deep); }
.pv-arrow:disabled { opacity: .35; cursor: default; }

.pv-panel-mark {
    position: absolute;
    left: -12px;
    bottom: -40px;
    font-size: 90px;
    line-height: 1;
    color: rgba(255, 255, 255, .1);
    transform: rotate(-18deg);
    pointer-events: none;
}

/* track kartu */
.pv-panel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 24px 6px 4px;
    scroll-padding-left: 4px;
}

.pv-panel-track::-webkit-scrollbar { display: none; }

.pv-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    color: var(--pv-ink);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(6, 50, 54, .25);
    transition: transform .25s var(--pv-ease), box-shadow .25s ease;
}

a.pv-card:hover { color: var(--pv-ink); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(6, 50, 54, .32); }

.pv-card-media {
    position: relative;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: var(--pv-tosca-soft);
}

.pv-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--pv-ease); }
a.pv-card:hover .pv-card-media img { transform: scale(1.04); }

.pv-card-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 18px;
    color: var(--pv-ink);
    background:
        radial-gradient(circle at 90% 15%, rgba(20, 184, 189, .22), transparent 45%),
        repeating-linear-gradient(135deg, #fff 0 14px, #f4fbfb 14px 28px);
}

.pv-card-fallback-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--pv-tosca-dark); }
.pv-card-fallback-value { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -1px; color: var(--pv-tosca-deep); }
.pv-card-fallback-code { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--pv-muted); }

.pv-card-ended {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(20, 27, 40, .78);
    padding: 4px 10px;
    border-radius: 999px;
}

.pv-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px;
    border-top: 1px dashed rgba(20, 27, 40, .12);
    flex: 1;
}

.pv-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pv-banner-offer {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--pv-ink);
    background: #fff4e5;
    border: 1px solid #ffd8a8;
    padding: 2px 8px;
    border-radius: 999px;
}

.pv-banner-offer b { font-weight: 800; color: #d9480f; }

.pv-card-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-card-for {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--pv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-card-for i { color: var(--pv-tosca); }

.pv-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.pv-card-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: var(--pv-ink);
    padding: 5px 10px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.pv-card-timer b { font-weight: 800; }
.pv-card.is-urgent .pv-card-timer { background: #e8590c; }

.pv-card-timer.is-ended { color: var(--pv-muted); background: rgba(20, 27, 40, .06); }

.pv-card-go {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pv-tosca-soft);
    color: var(--pv-tosca-dark);
    transition: background .2s, color .2s, transform .2s;
}

a.pv-card:hover .pv-card-go { background: var(--pv-tosca); color: #fff; transform: translateX(3px); }

/* nonaktif */
.pv-card.is-disabled { cursor: default; }
.pv-card.is-disabled .pv-card-media img,
.pv-card.is-disabled .pv-card-fallback { filter: grayscale(1); opacity: .6; }
.pv-card.is-disabled .pv-card-title { color: rgba(20, 27, 40, .55); }
.pv-card.is-disabled .pv-ticket-code {
    color: rgba(20, 27, 40, .45);
    background: rgba(20, 27, 40, .05);
    border-color: rgba(20, 27, 40, .2);
    text-decoration: line-through;
}
.pv-card.is-disabled .pv-banner-offer { background: rgba(20, 27, 40, .05); border-color: rgba(20, 27, 40, .12); color: rgba(20, 27, 40, .5); }
.pv-card.is-disabled .pv-banner-offer b { color: inherit; }

@media (max-width: 900px) {
    .pv-panel { grid-template-columns: 1fr; padding: 16px 0 14px 18px; gap: 10px; }
    .pv-panel-copy { padding-right: 18px; }
    .pv-panel-lead br { display: none; }
    .pv-panel-sub { margin-bottom: 10px; }
    .pv-panel-mark { left: auto; right: 10px; bottom: auto; top: -16px; font-size: 72px; }
    .pv-panel-track { padding-right: 18px; }
}

@media (max-width: 640px) {
    .pv-card { flex-basis: 78%; }
    .pv-card-media { aspect-ratio: 16 / 6.5; }
    .pv-panel-lead { font-size: 15px; }
    .pv-panel-lead b { font-size: 17px; }
    .pv-card-fallback-value { font-size: 26px; }
    .pv-card-timer { font-size: 11.5px; padding: 5px 9px; }
}

/* --------------------------------------------------------------------------
   Pita promo di halaman tujuan
   -------------------------------------------------------------------------- */
.pv-ribbon {
    background: linear-gradient(90deg, var(--pv-ink) 0%, #1d2a3a 100%);
    color: #fff;
}

.pv-ribbon-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pv-ribbon-icon {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pv-tosca);
    font-size: 18px;
}

.pv-ribbon-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.pv-ribbon-text strong { font-size: 14.5px; font-weight: 800; }
.pv-ribbon-text span { font-size: 12.5px; opacity: .72; }

.pv-ribbon-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .8px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1.5px dashed rgba(255, 255, 255, .5);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.pv-ribbon-code:hover { background: rgba(20, 184, 189, .25); border-color: var(--pv-tosca); }

.pv-ribbon-copied {
    position: absolute;
    left: 50%;
    top: -30px;
    translate: -50% 4px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
    background: var(--pv-tosca);
    padding: 3px 9px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, translate .2s;
}

.pv-ribbon-copied.is-show { opacity: 1; translate: -50% 0; }

.pv-ribbon-timer {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pv-ribbon-timer span { opacity: .7; margin-right: 6px; font-size: 12.5px; }
.pv-ribbon-timer b { font-weight: 800; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .pv-strip { padding-top: 14px; }
    .pv-strip-head { flex-direction: column; align-items: flex-start; }
    .pv-strip-track, .pv-grid { grid-template-columns: 1fr; }
    .pv-strip-track.is-single { grid-template-columns: 1fr; }

    .pv-ticket-shape { --stub: 104px; min-height: 0; }
    .pv-ticket-value { font-size: 24px; }
    .pv-ticket-value.is-amount { font-size: 19px; }
    .pv-ticket-body { padding: 16px 14px 16px 18px; }

    .pv-ribbon-inner { padding: 12px 16px; }
    .pv-ribbon-timer { width: 100%; }
}