/* TYBSc IT Timetable - Airbnb Design System (airbnb/DESIGN.md) */

:root {
  /* Airbnb Light Palette */
  --primary: #ff385c;
  --primary-active: #e00b41;
  --primary-disabled: #ffd1da;
  --primary-light: #fff0f3;
  
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --border-strong: #c1c1c1;
  
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-card: #ffffff;
  --surface-sunken: #f8fafc;
  
  --font-family: "Airbnb Cereal VF", Circular, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  /* Airbnb Sleek Dark Palette */
  --canvas: #121214;
  --surface-soft: #1c1c1e;
  --surface-card: #1f1f23;
  --surface-sunken: #151518;
  
  --ink: #ffffff;
  --body: #e2e8f0;
  --muted: #94a3b8;
  --muted-soft: #64748b;
  
  --hairline: #2e2e34;
  --hairline-soft: #25252b;
  --border-strong: #3f3f46;
  
  --primary: #ff385c;
  --primary-active: #e00b41;
  --primary-light: rgba(255, 56, 92, 0.2);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 12px 28px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.43;
  letter-spacing: 0;
  padding-bottom: 50px;
}

/* Airbnb Top Nav Header */
.airbnb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 12px 18px;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text p {
  font-size: 0.725rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-creator {
  color: var(--primary);
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Share & Theme Buttons */
.share-pill-btn {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
  white-space: nowrap;
}

.share-pill-btn:hover {
  background: var(--primary-active);
  transform: translateY(-1px);
}

.theme-pill-btn {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  touch-action: manipulation;
}

.theme-pill-btn:hover {
  border-color: var(--ink);
}

.notif-bell-btn {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  touch-action: manipulation;
  position: relative;
}

.notif-bell-btn:hover {
  background: var(--surface-card);
  border-color: var(--border-strong);
}

.notif-bell-btn.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.notif-bell-btn.is-active .bell-icon {
  animation: bellRing 2s ease-in-out infinite;
}

/* Holiday Banner in Timeline */
.holiday-timeline-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.08) 0%, rgba(255, 180, 0, 0.08) 100%);
  border: 1.5px solid rgba(255, 56, 92, 0.25);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.holiday-timeline-banner.banner-tomorrow {
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(139, 61, 255, 0.08) 100%);
  border-color: rgba(0, 113, 227, 0.25);
}

.holiday-banner-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.holiday-banner-text strong {
  color: var(--primary);
  font-weight: 700;
}

.holiday-timeline-banner.banner-tomorrow .holiday-banner-text strong {
  color: #0071e3;
}

/* Page Container */
.page-container {
  max-width: 1080px;
  margin: 16px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Airbnb Live Status Card with Animated Progress */
.airbnb-live-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.live-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rausch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active {
  background: var(--primary);
  color: #ffffff;
}

.badge-freetime {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.badge-upcoming {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.badge-off {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--muted);
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: rauschPulse 1.5s infinite;
}

@keyframes rauschPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.time-clock {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.live-subject-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.code-badge {
  font-size: 0.725rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.code-badge-inline {
  font-size: 0.725rem;
  font-weight: 700;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 4px;
  display: inline-block;
  vertical-align: middle;
}

[data-theme="dark"] .code-badge,
[data-theme="dark"] .code-badge-inline {
  background: rgba(255, 56, 92, 0.25);
  color: #ff6b81;
  border: 1px solid rgba(255, 56, 92, 0.4);
}

.live-meta-row {
  display: flex;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--body);
  font-weight: 500;
  flex-wrap: wrap;
}

/* Animated Lecture Progress Bar */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--muted);
}

.progress-header span strong {
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff385c 0%, #e00b41 100%);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255, 56, 92, 0.5);
}

/* Airbnb Pill Segmented Navigation */
.airbnb-tabs {
  display: flex;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  gap: 2px;
}

.tab-pill-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.tab-pill-btn.active {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .tab-pill-btn {
  color: #94a3b8;
}

[data-theme="dark"] .tab-pill-btn.active {
  background: #ffffff;
  color: #121214;
  font-weight: 700;
}

.new-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 8px;
  margin-left: 2px;
}

/* Day Selector Strip */
.day-scroll-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.day-scroll-strip::-webkit-scrollbar {
  display: none;
}

.day-bubble-btn {
  flex: 1 0 auto;
  min-width: 48px;
  padding: 9px 6px;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.day-bubble-btn:hover {
  border-color: var(--ink);
}

.day-bubble-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(255, 56, 92, 0.4);
}

[data-theme="dark"] .day-bubble-btn {
  background: var(--surface-card);
  border-color: var(--hairline);
  color: #cbd5e1;
}

[data-theme="dark"] .day-bubble-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Schedule Card Grid (Airbnb Property Card Style) */
.schedule-grid-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.airbnb-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.2s ease;
  border-left: 5px solid var(--card-accent, var(--primary));
}

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

.airbnb-card.is-active-card {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-card);
}

/* Vibrant, Happy Recess & Lunch Break Cards */
.airbnb-card-break {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 5px solid #10b981;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
  transition: all 0.2s ease;
}

.airbnb-card-break:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.break-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.break-icon {
  font-size: 1.4rem;
}

.break-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.break-sub {
  font-size: 0.775rem;
  color: var(--muted);
  font-weight: 500;
}

.break-duration-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.775rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

[data-theme="dark"] .airbnb-card-break {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  border-left-color: #34d399;
}

[data-theme="dark"] .break-duration-badge {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.card-tag {
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.tag-pracs {
  background: #fff3e0;
  color: #d97706;
}

.tag-lecture {
  background: var(--primary-light);
  color: var(--primary);
}

[data-theme="dark"] .tag-pracs {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .tag-lecture {
  background: rgba(255, 56, 92, 0.25);
  color: #ff6b81;
  border: 1px solid rgba(255, 56, 92, 0.4);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}

/* Academic Calendar Section Styles */
.calendar-banner {
  background: linear-gradient(135deg, rgba(255, 56, 92, 0.12) 0%, rgba(224, 11, 65, 0.06) 100%);
  border: 1px solid rgba(255, 56, 92, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-icon {
  font-size: 1.6rem;
}

.banner-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

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

.calendar-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.calendar-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.filter-chip.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

[data-theme="dark"] .filter-chip {
  background: var(--surface-card);
  border-color: var(--hairline);
  color: #cbd5e1;
}

[data-theme="dark"] .filter-chip.active {
  background: #ffffff;
  color: #121214;
  border-color: #ffffff;
  font-weight: 700;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  border-left: 5px solid var(--event-color, var(--primary));
}

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

.event-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-box {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 80px;
}

.date-box .date-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .date-box {
  background: #25252b;
  border-color: #383842;
}

[data-theme="dark"] .date-box .date-num {
  color: #ff6b81;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.event-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
  text-transform: uppercase;
}

.cat-holiday {
  background: #fff0f3;
  color: #ff385c;
}

.cat-exam {
  background: #e6f4ea;
  color: #137333;
}

.cat-event {
  background: #e8f2ff;
  color: #0066cc;
}

[data-theme="dark"] .cat-holiday {
  background: rgba(255, 56, 92, 0.25);
  color: #ff6b81;
}

[data-theme="dark"] .cat-exam {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

[data-theme="dark"] .cat-event {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

/* Toast Message Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #222222;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

[data-theme="dark"] .toast-notification {
  background: #ffffff;
  color: #121214;
}

/* Weekly Table View */
.table-card-container {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.airbnb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.airbnb-table th, 
.airbnb-table td {
  padding: 10px 8px;
  border: 1px solid var(--hairline-soft);
  text-align: center;
  vertical-align: top;
}

.airbnb-table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.775rem;
  font-weight: 700;
}

.time-header-col {
  background: var(--surface-soft);
  font-weight: 700;
  font-size: 0.775rem;
  color: var(--muted);
  white-space: nowrap;
}

.table-slot-item {
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  text-align: left;
  border-left: 3px solid var(--slot-accent, var(--primary));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-slot-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink);
}

.table-slot-full {
  font-size: 0.7rem;
  color: var(--body);
  font-weight: 500;
  margin-bottom: 2px;
}

.table-slot-info {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* Legend Section */
.airbnb-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
}

.legend-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.legend-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--body);
  font-weight: 500;
}

.legend-dot-circle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Footer & Watermark Styling */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  text-align: center;
}

.footer-watermark {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.2px;
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 56, 92, 0.2);
}

[data-theme="dark"] .footer-watermark {
  background: rgba(255, 56, 92, 0.25);
  color: #ff6b81;
  border-color: rgba(255, 56, 92, 0.4);
}

/* Mobile Screen Special Breakpoint Adjustments (<500px) */
@media (max-width: 480px) {
  .airbnb-header {
    padding: 10px 12px;
  }
  
  .brand-text p {
    display: none;
  }

  .brand-text h1 {
    font-size: 0.95rem;
  }

  .share-pill-btn, .theme-pill-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
  }

  .tab-label-full {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }
}

@media (min-width: 481px) {
  .tab-label-short {
    display: none;
  }

  .tab-label-full {
    display: inline;
  }
}

/* ==========================================================================
   SEO FAQ Accordion & Semantic Information Section
   ========================================================================== */
.seo-faq-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  margin-top: 10px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

[data-theme="dark"] .seo-faq-section {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.seo-section-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.seo-section-header p {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme="dark"] .faq-card {
  background: #121215;
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-card[open] {
  border-color: rgba(255, 56, 92, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .faq-card[open] {
  background: #151519;
  border-color: rgba(255, 56, 92, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background: rgba(255, 56, 92, 0.05);
}

[data-theme="dark"] .faq-question {
  color: #ffffff;
}

[data-theme="dark"] .faq-question:hover {
  background: rgba(255, 56, 92, 0.12);
}

.faq-chevron {
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 16px 14px 16px;
  font-size: 0.8rem;
  color: var(--body);
  line-height: 1.5;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

[data-theme="dark"] .faq-answer {
  color: #cbd5e1;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.faq-answer strong {
  color: var(--ink);
}

[data-theme="dark"] .faq-answer strong {
  color: #ffffff;
}

/* ==========================================================================
   Footer Links & Modals
   ========================================================================== */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

[data-theme="dark"] .footer-link-btn {
  color: #94a3b8;
}

[data-theme="dark"] .footer-link-btn:hover {
  color: #ff6b81;
}

.footer-sep {
  font-size: 0.7rem;
  color: var(--muted);
}

[data-theme="dark"] .footer-sep {
  color: #475569;
}

/* Modal Backdrops & Dialog Boxes */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .modal-content {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

[data-theme="dark"] .modal-header h3 {
  color: #ffffff;
}

.modal-close-btn {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--hairline);
  color: var(--ink);
}

[data-theme="dark"] .modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

[data-theme="dark"] .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.modal-body {
  padding: 18px 20px;
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.6;
}

[data-theme="dark"] .modal-body {
  color: #cbd5e1;
}

[data-theme="dark"] .modal-body strong {
  color: #ffffff;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.modal-body li {
  margin-bottom: 6px;
}

.modal-body a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

[data-theme="dark"] .modal-body a {
  color: #ff6b81;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: flex-end;
}

[data-theme="dark"] .modal-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.modal-action-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.modal-action-btn:hover {
  opacity: 0.9;
}

/* ==========================================================================
   PWA Install / Add to Home Screen Banner (Airbnb Style)
   ========================================================================== */
.pwa-install-banner {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.25s ease;
}

[data-theme="dark"] .pwa-install-banner {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pwa-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pwa-banner-title-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pwa-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.pwa-banner-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 3px;
  text-transform: uppercase;
}

[data-theme="dark"] .pwa-banner-title {
  color: #ffffff;
}

.pwa-banner-desc {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

[data-theme="dark"] .pwa-banner-desc {
  color: #94a3b8;
}

.pwa-banner-dismiss {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.pwa-banner-dismiss:hover {
  background: var(--hairline);
  color: var(--ink);
}

[data-theme="dark"] .pwa-banner-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

[data-theme="dark"] .pwa-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.pwa-device-toggle {
  display: flex;
  gap: 8px;
}

.pwa-device-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-sunken);
  color: var(--muted);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pwa-device-btn:hover {
  border-color: var(--primary);
  color: var(--ink);
}

[data-theme="dark"] .pwa-device-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="dark"] .pwa-device-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pwa-device-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(255, 56, 92, 0.35);
}

.pwa-steps-box {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="dark"] .pwa-steps-box {
  background: #121215;
  border-color: rgba(255, 255, 255, 0.08);
}

.pwa-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 56, 92, 0.12);
  color: var(--primary);
  font-size: 0.775rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .pwa-step-num {
  background: rgba(255, 56, 92, 0.25);
  color: #ff6b81;
  border: 1px solid rgba(255, 56, 92, 0.35);
}

.pwa-step-item p {
  font-size: 0.825rem;
  color: var(--body);
  margin: 0;
  line-height: 1.4;
}

[data-theme="dark"] .pwa-step-item p {
  color: #cbd5e1;
}

.pwa-step-item strong {
  color: var(--ink);
  font-weight: 700;
}

[data-theme="dark"] .pwa-step-item strong {
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════════════
   NOTIFICATION BELL BUTTON & SETTINGS
   ═══════════════════════════════════════════════════════════════════════ */

/* Notification Bell Button in Header */
.notif-bell-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--ink);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.notif-bell-btn:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.notif-bell-btn:active {
  transform: translateY(0);
}

.notif-bell-btn .bell-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.notif-bell-btn .bell-label {
  display: inline;
}

/* Active state: green pulse dot */
.notif-bell-btn.is-active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.notif-bell-btn.is-active .bell-icon {
  animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(6deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(0deg); }
}

.notif-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: none;
  animation: pulse 2s ease-in-out infinite;
}

.notif-bell-btn.is-active .notif-active-dot {
  display: inline-block;
}

/* ─── Notification Settings Modal ─────────────────────────────────── */
.notif-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.notif-settings-content {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notif-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  flex-shrink: 0;
}

.notif-settings-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.notif-close-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.notif-close-btn:hover {
  background: var(--hairline-soft);
  color: var(--ink);
}

.notif-settings-body {
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

/* Status Card */
.notif-status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  margin-bottom: 20px;
}

.notif-status-icon {
  font-size: 2rem;
  line-height: 1;
}

.notif-status-info {
  flex: 1;
}

.notif-status-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.notif-status-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Notification Type List */
.notif-type-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notif-type-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  transition: background 0.15s ease;
}

.notif-type-icon {
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
}

.notif-type-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
}

.notif-type-info p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Action Buttons */
.notif-settings-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  gap: 10px;
}

.notif-action-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.notif-action-btn.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.notif-action-btn.btn-primary:hover {
  background: var(--primary-active);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 56, 92, 0.35);
}

.notif-action-btn.btn-secondary {
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.notif-action-btn.btn-secondary:hover {
  background: var(--hairline-soft);
}

.notif-action-btn.btn-danger {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.notif-action-btn.btn-danger:hover {
  background: var(--primary-light);
}

/* Denied State Help Text */
.notif-denied-help {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 56, 92, 0.06);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.notif-denied-help strong {
  color: var(--ink);
}

/* ─── Responsive: Hide bell label on small screens ────────────────── */
@media (max-width: 420px) {
  .notif-bell-btn .bell-label {
    display: none;
  }
  
  .notif-bell-btn {
    padding: 8px 10px;
  }

  .notif-settings-modal {
    align-items: flex-end;
    padding: 0;
  }

  .notif-settings-content {
    max-width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .notif-settings-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
