:root {
    --primary: #00f2ff;
    --valentine: #ff4757;
    --bg: #111;
}

body {
    background: var(--bg);
    color: white;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
    margin: 0;
}

.container { padding: 40px; }
.hidden { display: none !important; }

/* Lobby Cards */
.movie-list { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }
.card { 
    background: #222; padding: 25px; border: 2px solid #333; 
    border-radius: 15px; cursor: pointer; transition: 0.3s; position: relative;
}
.card:hover { border-color: var(--valentine); transform: translateY(-5px); }
.promo-tag { 
    background: var(--valentine); color: white; font-size: 10px; 
    padding: 3px 8px; border-radius: 5px; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
}

/* 3D Screen */
.screen-bar {
    background: white; height: 50px; width: 100%; max-width: 500px;
    margin: 20px auto; transform: rotateX(-45deg);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
    color: #333; line-height: 50px; font-weight: bold;
}

/* Grid & Seats  */
.grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; max-width: 400px; margin: 30px auto; }
.seat { height: 25px; width: 30px; background: #444; border-radius: 6px 6px 0 0; cursor: pointer; font-size: 8px; line-height: 25px; }
.seat.selected { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.seat.occupied { background: #fafafa; opacity: 0.6; cursor: not-allowed; }

/* Legend */
.legend { display: flex; justify-content: center; gap: 20px; list-style: none; padding: 0; font-size: 12px; color: #888; }
.legend li { display: flex; align-items: center; gap: 5px; }
.legend .seat { width: 15px; height: 12px; }

/* Promo Toggle Card */
.promo-container { background: rgba(255, 71, 87, 0.1); padding: 15px; border-radius: 10px; margin: 20px auto; max-width: 400px; border: 1px dashed var(--valentine); }
.promo-toggle { color: var(--valentine); font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.promo-detail { font-size: 10px; margin-top: 5px; color: #aaa; }

/* Error Card Popup */
.error-card {
    background: #fff5f6;
    border: 2px solid #ff4757;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px auto;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.2);
    animation: slideDown 0.4s ease-out;
}
.error-icon { font-size: 1.5rem; }
.error-text { color: #d63031; font-size: 0.9rem; text-align: left; }

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: flex; justify-content: center; align-items: center; z-index: 100; }
.modal-content { background: white; color: black; padding: 30px; width: 320px; border-radius: 10px; font-family: monospace; }
.val-receipt { border: 4px double var(--valentine); background: #fff5f6; }
.popcorn-badge { background: var(--valentine); color: white; padding: 10px; margin-top: 15px; font-weight: bold; }

.confirm-btn { background: var(--primary); border: none; padding: 15px 40px; border-radius: 50px; font-weight: bold; cursor: pointer; font-size: 1rem; }
.back-btn { background: none; border: 1px solid #444; color: #888; padding: 8px 15px; cursor: pointer; margin-bottom: 20px; border-radius: 5px; }