* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%; animation: gradientBG 15s ease infinite; color: #fff;
    min-height: 100vh; display: flex; justify-content: center; align-items: center; overflow-x: hidden;
}
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.view-container { display: none; width: 100%; max-width: 600px; padding: 20px; }
.view-container.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.glass-panel {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.tab-header { display: flex; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.tab-header button { flex: 1; padding: 12px; background: none; border: none; color: #aaa; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.tab-header button.active { color: #fff; border-bottom: 3px solid #0096ff; }
.auth-form { display: none; } .auth-form.active { display: block; }
.input-group { margin-bottom: 15px; display: flex; flex-direction: column; }
.input-group label { font-size: 13px; color: #ddd; margin-bottom: 5px; }
.input-group input, .input-group select {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); padding: 12px; border-radius: 10px; color: #fff; font-size: 14px; outline: none; transition: 0.3s;
}
.input-group input:focus, .input-group select:focus { border-color: #0096ff; background: rgba(0, 0, 0, 0.5); }
.input-group select option { background: #24243e; color: white; }
.row { display: flex; gap: 15px; } .row .input-group { flex: 1; }
button { width: 100%; padding: 14px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; color: white; margin-top: 10px; }
.btn-primary { background: linear-gradient(45deg, #0072ff, #00c6ff); box-shadow: 0 4px 15px rgba(0,114,255,0.4); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary:disabled { background: #555; cursor: not-allowed; color: #888; }
.btn-secondary { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.btn-danger { background: linear-gradient(45deg, #ff416c, #ff4b2b); }
.password-rules { background: rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 12px; }
.password-rules p { margin: 2px 0; color: #ff4b2b; } .password-rules p.valid { color: #00e676; }
.error-text { color: #ff4b2b; font-size: 12px; margin-top: 5px; } .hidden { display: none; }
.movie-stats { display: flex; justify-content: space-between; font-size: 14px; color: #aaa; margin-bottom: 15px; }
.total-price { color: #00e676; text-align: center; margin: 15px 0; }
.radio-group label { display: block; margin-bottom: 8px; font-size: 14px; }
.receipts-area { margin-top: 25px; background: rgba(0,0,0,0.3); border-radius: 10px; padding: 15px; max-height: 250px; overflow-y: auto; }
.receipt-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.receipt-details { flex: 1; }
.btn-qr { background: #00e676; color: #000; padding: 6px 12px; font-size: 12px; margin-top: 0; width: auto; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 230, 118, 0.4); }
.toast { position: fixed; top: 30px; left: 50%; transform: translateX(-50%) translateY(-20px); background: rgba(40, 167, 69, 0.9); backdrop-filter: blur(10px); color: white; padding: 12px 25px; border-radius: 30px; font-weight: 600; opacity: 0; visibility: hidden; transition: 0.4s ease; z-index: 9999; }
.toast.error { background: rgba(220, 53, 69, 0.9); } .toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* QR Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; transition: 0.3s; }
.modal-overlay.hidden { opacity: 0; visibility: hidden; }
.modal-box { width: 90%; max-width: 380px; text-align: center; }
.status-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; margin-left: 5px; }
.status-valid { background: #00e676; color: #000; }
.status-used { background: #ff4b2b; color: #fff; }