/* -- KC Cinemax - Seat map (Royal VIP Edition) ---------- */

/* Screen - curved cinema screen */
.kc-screen-wrap {
    position: relative;
    margin: 0 auto 3rem;
    max-width: 720px;
    padding: 0 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.kc-screen-arc {
    display: block;
    width: 100%;
    height: 40px;
    overflow: visible;
}
.kc-screen-text {
    margin-top: -4px;
    color: #cbd6ff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

/* Rows container */
.kc-seat-map {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Each row is a tinted strip */
.kc-seat-row {
    position: relative;
    padding: 2rem .5rem .5rem;
    border-radius: .55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.kc-seat-row.t-front {
    background: rgba(16, 74, 54, .15); /* Deep Emerald tint */
    border: 1px solid rgba(16, 74, 54, .4);
}
.kc-seat-row.t-premium {
    background: rgba(88, 24, 69, .15); /* Deep Velvet tint */
    border: 1px solid rgba(88, 24, 69, .4);
}
.kc-seat-row.t-vip {
    background: rgba(153, 101, 21, .12); /* Antique Gold tint */
    border: 1px solid rgba(153, 101, 21, .35);
}

/* Row label above the seats */
.kc-row-label {
    position: absolute;
    top: .45rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
.kc-seat-row.t-front .kc-row-label { color: #6ee7b7; } /* Mint highlight for label */
.kc-seat-row.t-premium .kc-row-label { color: #d8b4fe; } /* Lavender highlight for label */
.kc-seat-row.t-vip .kc-row-label { color: #fde047; } /* Bright Gold highlight for label */

/* Row content */
.kc-row-seats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    width: 100%;
    min-width: fit-content;
}

/* AISLE tag */
.kc-aisle-tag {
    flex: 0 0 auto;
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--kc-muted);
    opacity: .6;
    white-space: nowrap;
    padding: 0 .5rem;
    align-self: center;
}
.kc-aisle-tag.mid {
    padding: 0 .75rem;
}
@media (min-width: 768px) {
    .kc-aisle-tag {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        padding: .5rem .25rem;
    }
}

/* Silent gap in the middle of VIP / Front rows */
.kc-aisle-gap {
    flex: 0 0 auto;
    display: inline-block;
    width: 1.5rem;
    height: 36px;
    background: transparent;
    border: 0;
}

/* Seat base */
.kc-seat {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: .4rem;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: #111;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    user-select: none;
    line-height: 1;
    /* 3D Plush Effect */
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.2), inset 0 -3px 6px rgba(0,0,0,0.4), 0 4px 6px rgba(0,0,0,0.5);
}
.kc-seat::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: -4px;
    height: 6px;
    border-radius: 4px 4px 0 0;
    background: inherit;
    filter: brightness(.85);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
}

/* Type colors (ROYAL PALETTE) */
.kc-seat.vip {
    background: linear-gradient(145deg, #d4af37, #b8860b); /* Antique Gold */
    color: #1a1200;
}
.kc-seat.premium {
    background: linear-gradient(145deg, #6b215e, #4a1543); /* Deep Velvet */
    color: #f3e8ff;
}
.kc-seat.front {
    background: linear-gradient(145deg, #145c43, #0b3d2e); /* Deep Emerald */
    color: #d1fae5;
}

.kc-seat:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.15);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), inset 0 -3px 6px rgba(0,0,0,0.4), 0 8px 12px rgba(0,0,0,0.6);
}
.kc-seat:focus-visible {
    outline: 2px solid #fde047;
    outline-offset: 3px;
}

/* Selected */
.kc-seat.selected {
    background: linear-gradient(145deg, #e74c3c, #c0392b) !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .6), 0 0 15px rgba(231, 76, 60, .4);
    transform: translateY(-3px) scale(1.05);
}

/* Held */
.kc-seat.held {
    background: #3a3a44 !important;
    color: #6a6a72 !important;
    cursor: not-allowed;
    filter: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.kc-seat.held::before { filter: brightness(.5); }

/* Sold */
.kc-seat.sold {
    background: #1f1f24 !important;
    color: #4a4a52 !important;
    cursor: not-allowed;
    filter: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.kc-seat.sold::before { filter: brightness(.4); }

/* Blocked (admin reserve) */
.kc-seat.blocked {
    background: #5c1018 !important;
    color: #a04048 !important;
    cursor: not-allowed;
    filter: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.kc-seat.blocked::before { filter: brightness(.6); }

/* Blocked + reserved-for-customer: small user badge in the corner */
.kc-seat.blocked.reserved::after {
    content: "\F4DA"; /* Bootstrap Icons: person-fill */
    font-family: 'bootstrap-icons', sans-serif;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
    color: #1a1200;
    font-size: 7px;
    line-height: 12px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(0,0,0,.6);
    pointer-events: none;
}

/* Legend */
.kc-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    padding: 1rem;
    border-radius: .55rem;
    background: var(--kc-surface);
    border: 1px solid var(--kc-border);
    margin-top: 2rem;
}
.kc-seat-legend .item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--kc-text);
    font-weight: 500;
}
.kc-seat-legend .swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: .3rem;
    position: relative;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2), inset 0 -2px 4px rgba(0,0,0,0.4);
}
.kc-seat-legend .swatch::before {
    content: "";
    position: absolute;
    left: 3px; right: 3px; top: -2px; height: 3px;
    border-radius: 2px 2px 0 0;
    background: inherit;
    filter: brightness(.85);
}
.kc-seat-legend .swatch.vip      { background: linear-gradient(145deg, #d4af37, #b8860b); }
.kc-seat-legend .swatch.premium  { background: linear-gradient(145deg, #6b215e, #4a1543); }
.kc-seat-legend .swatch.front    { background: linear-gradient(145deg, #145c43, #0b3d2e); }
.kc-seat-legend .swatch.held     { background: #3a3a44; }
.kc-seat-legend .swatch.sold     { background: #1f1f24; }
.kc-seat-legend .swatch.blocked  { background: #5c1018; }
.kc-seat-legend .swatch.selected { background: linear-gradient(145deg, #e74c3c, #c0392b); }

/* Selected chips */
.kc-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.kc-selected-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--kc-surface-2);
    border: 1px solid var(--kc-border);
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
}
.kc-selected-chip button {
    background: transparent;
    border: 0;
    color: var(--kc-muted);
    padding: 0;
    font-size: .8rem;
    cursor: pointer;
}
.kc-selected-chip button:hover {
    color: var(--kc-red);
}

/* Hold release link */
#hold-release {
    color: var(--kc-muted);
    text-decoration: underline;
    cursor: pointer;
    margin-left: .35rem;
}
#hold-release:hover {
    color: var(--kc-red);
}

/* -- Mobile (phones) ---------------------------------- */
@media (max-width: 575.98px) {
    .kc-screen-wrap { margin-bottom: 2rem; max-width: 100%; padding: 0 .5rem; }
    .kc-screen-arc { height: 30px; }
    .kc-screen-text { font-size: .7rem; letter-spacing: 3px; }

    .kc-seat-map { gap: .5rem; }

    .kc-seat-row {
        padding: 2.15rem .15rem .3rem;
        gap: .4rem;
    }
    .kc-row-label {
        font-size: .6rem;
        letter-spacing: 1.5px;
        top: .55rem;
    }
    .kc-row-seats {
        gap: .12rem;
        padding: 0;
    }
    .kc-seat {
        width: 22px;
        height: 22px;
        font-size: .55rem;
        border-radius: .3rem;
    }
    .kc-seat::before {
        left: 3px;
        right: 3px;
        top: -2px;
        height: 3px;
    }
    .kc-aisle-gap { width: .5rem; height: 22px; }
    .kc-aisle-tag {
        font-size: .4rem;
        padding: 0 .15rem;
        letter-spacing: 1px;
        opacity: .5;
    }
    .kc-aisle-tag.mid { padding: 0 .25rem; }
}

/* -- Extra-narrow phones (iPhone SE, small Android) -- */
@media (max-width: 400px) {
    .kc-seat-row { padding: 2rem .1rem .25rem; }
    .kc-row-label {
        font-size: .55rem;
        top: .5rem;
        letter-spacing: 1px;
    }
    .kc-seat {
        width: 20px;
        height: 20px;
        font-size: .5rem;
    }
    .kc-seat::before {
        left: 3px; right: 3px; top: -2px; height: 2px;
    }
    .kc-aisle-gap { width: .35rem; height: 20px; }
    .kc-row-seats { gap: .1rem; }
    .kc-aisle-tag { font-size: .35rem; padding: 0 .1rem; }
    .kc-aisle-tag.mid { padding: 0 .15rem; }
}

/* -- Right-column cards: prevent stretch + collapse gap -- */
#seat-panel,
#customer-panel {
    height: auto;
    align-self: flex-start;
    min-height: 0;
}

#seat-panel {
    padding: .85rem 1rem;
}
#seat-panel h2 {
    margin-bottom: .5rem;
}
#seat-panel #seat-selected-list {
    min-height: 0;
    margin-bottom: .5rem;
}

#customer-panel {
    padding: .85rem 1rem;
}
#customer-panel h2 {
    margin-bottom: .75rem;
}

#seat-panel > *:last-child,
#customer-panel > *:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 991.98px) {
    #seat-panel,
    #customer-panel {
        flex: 0 0 auto;
        align-self: stretch;
    }

    #customer-panel {
        margin-bottom: .75rem !important;
    }

    #seat-continue {
        margin-top: .75rem !important;
    }
}

/* -- Modal (Release seats confirm) --------------------- */
.kc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: kc-fade-in .18s ease-out;
}
.kc-modal-card {
    background: var(--kc-surface, #14161f);
    border: 1px solid var(--kc-border, rgba(255,255,255,.1));
    border-radius: 14px;
    padding: 1.25rem 1.35rem 1.1rem;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
    animation: kc-pop-in .2s cubic-bezier(.2,.7,.2,1);
}
.kc-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #e8ebf5;
}
.kc-modal-body {
    font-size: .9rem;
    color: #b8c0d4;
    line-height: 1.5;
    margin: 0 0 1.1rem;
}
.kc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}
.kc-modal-danger {
    background: #dc3c3c;
    border: 1px solid #dc3c3c;
    color: #fff;
    font-weight: 600;
}
.kc-modal-danger:hover,
.kc-modal-danger:focus {
    background: #c22f2f;
    border-color: #c22f2f;
    color: #fff;
}

@keyframes kc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes kc-pop-in {
    from { transform: scale(.94); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* -- Toast (floating banner for hold warnings) ---------- */
.kc-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translate(-50%, -130%);
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: .65rem;
    max-width: calc(100% - 1.5rem);
    width: max-content;
    padding: .75rem 1rem;
    background: #1c1f2b;
    border: 1px solid rgba(255,179,64,.45);
    border-radius: 12px;
    color: #e8ebf5;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .28s ease;
    pointer-events: none;
}
.kc-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}
.kc-toast-icon {
    color: #ffb340;
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.kc-toast-text {
    flex: 1;
    min-width: 0;
}
.kc-toast-action {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(255,179,64,.14);
    color: #ffb340;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(255,179,64,.35);
    white-space: nowrap;
}
.kc-toast-action:hover {
    background: rgba(255,179,64,.24);
    color: #ffc266;
}
.kc-toast-close {
    background: transparent;
    border: 0;
    color: #9aa2b8;
    padding: 0 .15rem;
    cursor: pointer;
    font-size: .85rem;
    line-height: 1;
    flex: 0 0 auto;
}
.kc-toast-close:hover {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .kc-toast {
        top: .75rem;
        font-size: .85rem;
        padding: .7rem .85rem;
    }
}

/* ============================================================
   WIDER AISLE between seat 6 and 7 for FRONT rows only
   ============================================================ */
.kc-seat-row.t-front .kc-aisle-gap {
    width: 3rem;
}
.kc-seat-row.t-front .kc-aisle-tag {
    padding: 0 1rem;
}
@media (max-width: 575.98px) {
    .kc-seat-row.t-front .kc-aisle-gap { width: 1.25rem; }
    .kc-seat-row.t-front .kc-aisle-tag { padding: 0 .5rem; }
}
@media (max-width: 400px) {
    .kc-seat-row.t-front .kc-aisle-gap { width: .85rem; }
    .kc-seat-row.t-front .kc-aisle-tag { padding: 0 .3rem; }
}

/* ============================================================
   VIP ROW: wider seats + wider split gaps
   ============================================================ */
.kc-seat-row.t-vip .kc-seat {
    width: 46px;
    height: 46px;
    font-size: .9rem;
    border-radius: .5rem;
}
.kc-seat-row.t-vip .kc-aisle-gap {
    height: 46px;
}
.kc-seat-row.t-vip .kc-aisle-gap.vip-split {
    width: 2rem;
}

@media (max-width: 575.98px) {
    .kc-seat-row.t-vip .kc-seat {
        width: 32px;
        height: 32px;
        font-size: .7rem;
    }
    .kc-seat-row.t-vip .kc-aisle-gap {
        height: 32px;
    }
    .kc-seat-row.t-vip .kc-aisle-gap.vip-split {
        width: 1.1rem;
    }
}

@media (max-width: 400px) {
    .kc-seat-row.t-vip .kc-seat {
        width: 28px;
        height: 28px;
        font-size: .65rem;
    }
    .kc-seat-row.t-vip .kc-aisle-gap {
        height: 28px;
    }
    .kc-seat-row.t-vip .kc-aisle-gap.vip-split {
        width: .8rem;
    }
}

/* ============================================================
   TRUST NOTE (Payment Security)
   ============================================================ */
.kc-trust-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.kc-trust-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #b8c0d4;
    max-width: 280px;
    line-height: 1.4;
}

.kc-trust-row i {
    color: #ffb340;
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.kc-trust-badges {
    display: flex;
    justify-content: center;
    width: 100%;
}

.kc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(249, 168, 38, 0.1);
    border: 1px solid rgba(249, 168, 38, 0.4);
    color: #f9a826;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
}

.kc-badge i {
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .kc-trust-row {
        max-width: 100%;
    }
}