:root {
    --bg: #0b0d10;
    --card: #11151b;
    --text: #e9eef5;
    --muted: #a9b4c2;
    --line: rgba(255, 255, 255, .10);
    --pill: rgba(255, 255, 255, .06);
    --pillActive: rgba(255, 255, 255, .14);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(255, 255, 255, .08), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(255, 255, 255, .06), transparent 55%),
        var(--bg);
    color: var(--text);
}

.wrap {
    width: min(1100px, 100% - 32px);
    margin: 0 auto;
}

.top {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(11, 13, 16, .72);
    border-bottom: 1px solid var(--line);
    z-index: 10;
}

.top .wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .04));
}

.name {
    font-weight: 700;
    letter-spacing: .2px
}

.sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.pill {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    background: var(--pill);
    border: 1px solid var(--line);
    font-size: 13px;
}

.pill.is-active {
    background: var(--pillActive)
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    padding: 18px 0 8px;
}

.card {
    grid-column: span 12;
    background: rgba(17, 21, 27, .9);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 120px;
}

.thumb {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, .04);
}







.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*inserted*/
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.wrap {
    width: calc(100% - 32px);
    max-width: 1100px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 8px;
}

.card {
    width: 100%;
    max-width: 100%;
    grid-column: span 1;
    background: rgba(17, 21, 27, .9);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 120px;
}

.meta {
    min-width: 0;
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title,
.when,
.where,
.btn {
    min-width: 0;
}

.title,
.when,
.where {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.row {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
}

.thumb {
    min-width: 0;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*inserted*/
.meta {
    padding: 12px 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.when {
    color: var(--muted);
    font-size: 13px;
}

.title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.row {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.where {
    color: var(--muted);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    font-weight: 600;
    font-size: 13px;
}

.btn:hover {
    background: rgba(255, 255, 255, .10)
}

.footer {
    padding: 14px 0 30px;
    border-top: 1px solid var(--line);
    margin-top: 14px;
}

.muted {
    color: var(--muted);
    font-size: 13px
}

@media (min-width: 720px) {
    .card {
        grid-column: span 6;
    }
}

@media (min-width: 1020px) {
    .card {
        grid-column: span 4;
    }
}

/**/
@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        grid-column: auto;
    }
}

@media (min-width: 1020px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/**/


/* Upload card */
.upload-card {
    grid-template-columns: 1fr;
    /* override: upload je full-width “dropzone” */
    min-height: 160px;
}

@media (min-width: 720px) {
    .upload-card {
        grid-column: span 6;
    }
}

@media (min-width: 1020px) {
    .upload-card {
        grid-column: span 4;
    }
}

.upload-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 140px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    outline: none;
}

.upload-drop:hover {
    background: rgba(255, 255, 255, .05);
}

.upload-drop:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.upload-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

.upload-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.upload-sub {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

/* ===== SEAT SELECTION ===== */

.seat-selection-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 40px;
}

.seat-map-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stage-bar {
    background: #d21f26;
    color: white;
    padding: 8px 40px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.seat-map-panel {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.seat-map-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* selected seats panel */

.selected-seats-panel {
    width: 100%;
    max-width: 420px;
    background: #1e1e1e;
    color: white;
    padding: 22px;
    border-radius: 10px;
}

.selected-header {
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.selected-seats-list {
    min-height: 120px;
}

.selection-summary {
    margin-top: 12px;
}

.confirm-selection-button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #e6e6e6;
    cursor: pointer;
}



.table {
    cursor: pointer;
}

.table-selected {
    fill: #c62828;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.table-selected:hover {
    fill: #e53935;
}



.table:hover {
    fill: red;
}

.seat {
    fill: #999;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.seat:hover {
    fill: #bbb;
}

.seat-selected {
    fill: red;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.seat-selected:hover {
    fill: red;

}

.seat-reserved {
    fill: rgb(3, 104, 145);
    cursor: pointer;
}

.table-label {
    fill: #fff;
    font-size: 26px;
    font-family: Arial, sans-serif;
    pointer-events: none;
    user-select: none;
}


.overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 27, 31, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box {

    width: 400px;
    height: 400px;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}