/* Prana Yoga Studio Design System */
:root {
  --bg-sand: #fdfbf7;
  --bg-card: #ffffff;
  --bg-subtle: #f5f2eb;
  --text-main: #2b2623;
  --text-muted: #736b63;
  --terracotta: #c46d4e;
  --terracotta-dark: #a95638;
  --terracotta-light: #fbeee9;
  --sage: #567258;
  --sage-light: #edf3ee;
  --sand-border: #e6dfd5;
  --border-radius: 12px;
  --shadow-sm: 0 2px 8px rgba(43, 38, 35, 0.04);
  --shadow-md: 0 8px 24px rgba(43, 38, 35, 0.08);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-sand);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.yoga-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--sand-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
}

.brand-symbol {
  font-size: 1.75rem;
  color: var(--terracotta);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-main);
  display: block;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: block;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.25rem;
  border-radius: 999px;
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-main);
}

.nav-btn.active {
  background: var(--bg-card);
  color: var(--terracotta-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Banner Notice */
.banner-notice {
  background: var(--sage);
  color: #fff;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.banner-notice button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.5rem;
}

/* Main Container */
.main-content {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* Hero */
.hero-banner {
  background: linear-gradient(135deg, #f7f1e7 0%, #faede8 100%);
  border: 1px solid var(--sand-border);
  border-radius: var(--border-radius);
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
}

.capacity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta-dark);
  border: 1px solid var(--sand-border);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* Week header bar */
.week-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.week-range-title h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-main);
}

.week-nav-actions {
  display: flex;
  gap: 0.5rem;
}

/* Day Pills */
.day-pills-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
}

.day-pill {
  flex: 1;
  min-width: 76px;
  background: var(--bg-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--border-radius);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.day-pill:hover {
  border-color: var(--terracotta);
  background: var(--bg-subtle);
}

.day-pill.selected {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
  box-shadow: 0 4px 12px rgba(196, 109, 78, 0.25);
}

.pill-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pill-date {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.day-pill.selected .pill-name,
.day-pill.selected .pill-date {
  color: #fff;
}

.today-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}

.day-pill.selected .today-dot {
  background: #fff;
}

/* Day section heading */
.day-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sand-border);
}

.day-heading h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.class-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Class Grid */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.class-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.class-card.class-full {
  opacity: 0.85;
  background: #faf8f5;
}

.class-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.class-time {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.class-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.class-style-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--sage-light);
  color: var(--sage);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.class-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.class-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.class-details {
  background: var(--bg-subtle);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
  color: var(--text-main);
}

.class-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sand-border);
}

.spots-indicator {
  flex: 1;
}

.spots-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.spots-text.urgent {
  color: var(--terracotta-dark);
}

.spots-bar {
  height: 5px;
  background: var(--sand-border);
  border-radius: 999px;
  overflow: hidden;
}

.spots-fill {
  height: 100%;
  background: var(--sage);
  transition: width 0.3s ease;
}

.spots-fill.full {
  background: #d9534f;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--terracotta-dark);
}

.btn-outline {
  background: var(--bg-card);
  border-color: var(--sand-border);
  color: var(--text-main);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: var(--sand-border);
}

.btn-danger-outline {
  background: transparent;
  border: 1px solid #e0a394;
  color: var(--terracotta-dark);
}

.btn-danger-outline:hover:not(:disabled) {
  background: #fdf0ed;
}

.input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(196, 109, 78, 0.15);
}

/* Section Intros */
.section-intro {
  margin-bottom: 1.75rem;
}

.section-intro h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* My Bookings View */
.email-lookup-bar {
  display: flex;
  gap: 0.75rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.booking-card.cancelled {
  opacity: 0.6;
  background: #faf8f5;
}

.booking-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.booking-date {
  font-weight: 700;
  color: var(--terracotta-dark);
  font-size: 0.92rem;
}

.booking-time {
  font-weight: 600;
  font-size: 0.88rem;
}

.booking-status-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.booking-status-tag.confirmed {
  background: var(--sage-light);
  color: var(--sage);
}

.booking-status-tag.cancelled {
  background: #fde8e8;
  color: #c53030;
}

.booking-class-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.booking-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.booking-member {
  font-size: 0.82rem;
  color: var(--text-main);
}

.attended-badge {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage);
  background: var(--sage-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Studio & Attendance View */
.studio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.studio-schedule-panel,
.studio-attendees-panel {
  background: var(--bg-card);
  border: 1px solid var(--sand-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.panel-header {
  margin-bottom: 1rem;
}

.panel-header h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.date-picker {
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
}

.roster-classes-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 520px;
  overflow-y: auto;
}

.roster-class-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--sand-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.roster-class-btn:hover {
  background: #eee8dc;
}

.roster-class-btn.selected {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
}

.roster-class-time {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--terracotta-dark);
}

.roster-class-body {
  flex: 1;
}

.roster-class-body strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
}

.roster-class-body span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.roster-class-day {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #e4ddd2;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.roster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand-border);
}

.roster-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.roster-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.roster-stat-badge {
  display: flex;
  gap: 1rem;
  background: var(--bg-subtle);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.roster-table th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--sand-border);
}

.roster-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--sand-border);
  vertical-align: middle;
}

.roster-table tr.row-attended td {
  background: #f4f8f4;
}

.member-notes {
  font-size: 0.75rem;
  color: var(--terracotta-dark);
  margin-top: 0.2rem;
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.status-pill.confirmed {
  background: var(--sage-light);
  color: var(--sage);
}

.status-pill.cancelled {
  background: #fde8e8;
  color: #c53030;
}

.attendance-toggle {
  display: flex;
  gap: 0.35rem;
}

.att-btn {
  border: 1px solid var(--sand-border);
  background: var(--bg-card);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.att-btn.present:hover {
  background: var(--sage-light);
  border-color: var(--sage);
}

.att-btn.present.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.att-btn.absent:hover {
  background: #fde8e8;
  border-color: #c53030;
}

.att-btn.absent.active {
  background: #c53030;
  color: #fff;
  border-color: #c53030;
}

.empty-roster-prompt {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 35, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sand-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-summary {
  background: var(--bg-subtle);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--sand-border);
}

.summary-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.summary-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spots-tag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-dark);
}

.booking-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.booking-success-box {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.success-icon {
  font-size: 2.5rem;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
}

.booking-success-box h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.booking-success-box p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.modal-actions {
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--sand-border);
  background: var(--bg-card);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* UI Primitives */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--sand-border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--sand-border);
  border-radius: var(--border-radius);
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.empty .hint {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-error {
  background: #fdf2f2;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.text-danger {
  color: #c53030;
}

.text-muted {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    justify-content: center;
  }
}
