:root {
    --primary-green: #2e7d32;
    --accent-gold: #c5a059;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text: #ffffff;
}

body {
    margin: 0; font-family: 'Roboto', sans-serif; background-color: var(--dark-bg); color: var(--text);
    scroll-behavior: smooth;
}

.hero {
    height: 320px;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://static.wixstatic.com/media/e62674_554d4c6372cd4b47be413ea98e04b221~mv2.jpg');
    background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}

.logo { width: 280px; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); transition: width 0.3s ease; }
h1 { font-family: 'Oswald', sans-serif; text-transform: uppercase; margin-top: 10px; font-size: 1.8rem; }

.container {
    max-width: 550px; margin: -40px auto 40px; background: var(--card-bg); padding: 30px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.membership-info { text-align: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #333; }
.member-link { color: var(--accent-gold); text-decoration: none; font-weight: 700; font-size: 0.9rem; }

.input-group { margin-bottom: 20px; display: flex; flex-direction: column; }
label, .section-label { font-weight: 700; color: var(--accent-gold); margin-bottom: 15px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; display: block; }

input { padding: 12px; background: #2a2a2a; border: 1px solid #444; color: white; border-radius: 6px; font-size: 16px; width: 100%; box-sizing: border-box; }

.status-container { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 20px; }
#lookup-status { font-size: 0.85rem; color: #aaa; }
.error-text { color: #ff5252 !important; font-weight: bold; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(197, 160, 89, 0.2);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

section { margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #222; }
section:last-of-type { border-bottom: none; }

.custom-calendar { background: #1a1a1a; border-radius: 8px; padding: 15px; border: 1px solid #333; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.calendar-header span { font-weight: 700; color: var(--accent-gold); text-transform: uppercase; }
.calendar-header button { background: none; border: 1px solid #444; color: white; padding: 5px 12px; border-radius: 4px; cursor: pointer; }

.calendar-weekdays { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; text-align: center; font-size: 0.7rem; color: #666; margin-bottom: 10px; }
.calendar-grid { display: grid !important; grid-template-columns: repeat(7, 1fr) !important; gap: 5px; }
.calendar-day { padding: 12px 0; text-align: center; cursor: pointer; border-radius: 4px; font-size: 0.9rem; }
.calendar-day.selected { background: var(--primary-green); color: white; font-weight: 700; }
.calendar-day.disabled { opacity: 0.1; pointer-events: none; }

.hour-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hour-btn { padding: 15px 5px; text-align: center; background: #222; border: 1px solid #333; border-radius: 6px; cursor: pointer; color: #999; font-size: 0.8rem; }
.hour-btn.selected { background: var(--accent-gold); color: #000; font-weight: 700; border-color: var(--accent-gold); }
.hour-btn.all-full { opacity: 0.1; pointer-events: none; text-decoration: line-through; }

.minute-toggle { display: flex; gap: 10px; }
.toggle-btn { flex: 1; padding: 18px; background: #222; border: 1px solid #333; color: white; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 1rem; }
.toggle-btn.selected { background: var(--primary-green); border-color: var(--primary-green); }
.toggle-btn.disabled { opacity: 0.1; pointer-events: none; }

.duration-hint { font-size: 0.8rem; color: #777; margin-bottom: 15px; font-style: italic; line-height: 1.4; }
.limit-hint { font-size: 0.85rem; color: #ffab40; margin-bottom: 15px; font-weight: bold; line-height: 1.4; border: 1px solid #ffab40; padding: 10px; border-radius: 6px; background: rgba(255, 171, 64, 0.1); }

.duration-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.dur-option { padding: 15px; background: #222; border: 1px solid #333; border-radius: 6px; cursor: pointer; color: #ccc; text-align: left; transition: 0.2s; font-size: 0.95rem; }
.dur-option:hover { border-color: var(--primary-green); }
.dur-option.selected { background: #2e7d3233; border-color: var(--primary-green); color: white; font-weight: 700; }

.highlight { color: var(--primary-green); }
.hidden { display: none !important; }
.animate-fade { animation: fadeIn 0.4s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.btn-primary { width: 100%; padding: 20px; background: var(--primary-green); border: none; color: white; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1.1rem; margin-top: 20px; text-transform: uppercase; }
.btn-text { background: none; border: none; color: var(--accent-gold); cursor: pointer; font-weight: 700; font-size: 0.9rem; }

.btn-secondary { width: 100%; padding: 15px; background: transparent; border: 1px solid #555; color: white; border-radius: 8px; font-weight: 700; cursor: pointer; text-transform: uppercase; transition: border-color 0.2s; }
.btn-secondary:hover { border-color: #fff; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 999; }
.modal-content { background: var(--card-bg); border-radius: 12px; text-align: center; border: 1px solid var(--accent-gold); }

.success-body { margin: 25px 0; color: #ccc; line-height: 1.6; }
.success-highlight { color: #fff; font-weight: 700; font-size: 1.1rem; margin-top: 15px; }

.btn-cal { 
    width: 100%; padding: 18px; background: var(--accent-gold); color: #000; border: none; border-radius: 8px; 
    font-weight: 700; cursor: pointer; font-size: 1rem; text-transform: uppercase; 
    display: flex; align-items: center; justify-content: center; gap: 12px; transition: 0.2s;
}
.btn-cal:hover { background: #d4b477; transform: translateY(-2px); }

/* --- LIVE SCHEDULE MODAL STYLES --- */
.timeline-wrapper {
    flex: 1; overflow-y: auto; background: #1a1a1a; border-radius: 8px; border: 1px solid #333; position: relative;
    /* Hide scrollbar for cleaner mobile UX */
    -ms-overflow-style: none; scrollbar-width: none;
}
.timeline-wrapper::-webkit-scrollbar { display: none; }

.timeline-header {
    display: flex; position: sticky; top: 0; background: #111; z-index: 50; border-bottom: 1px solid #333;
}
.sched-col-time { width: 60px; padding: 12px 0; font-size: 0.75rem; text-align: center; color: #888; font-weight: bold; }
.sched-col-bay { flex: 1; padding: 12px 0; text-align: center; font-size: 0.8rem; font-weight: bold; }

.sched-row { display: flex; border-bottom: 1px solid #2a2a2a; height: 60px; position: relative; }
.sched-time { width: 60px; border-right: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #666; }
.sched-bay { flex: 1; position: relative; border-right: 1px solid #2a2a2a; cursor: pointer; transition: background 0.2s; }
.sched-bay:last-child { border-right: none; }
.sched-bay:active { background: rgba(255,255,255,0.05); }

.sched-block {
    position: absolute; left: 2px; right: 2px; border-radius: 4px; padding: 4px; 
    font-size: 0.75rem; z-index: 10; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.5); 
    display: flex; align-items: center; justify-content: center; text-align: center; font-weight: bold; letter-spacing: 0.5px;
}
.sched-block.bay1 { background: rgba(46, 125, 50, 0.9); border-left: 3px solid var(--primary-green); color: white; }
.sched-block.bay2 { background: rgba(197, 160, 89, 0.9); border-left: 3px solid var(--accent-gold); color: black; }
.sched-block.blocked { background: rgba(255, 82, 82, 0.85); border-left: 3px solid #ff5252; color: white; }
