/* ═══════════════════════════════════════════════════════════════════════════
   Swiftwing Ferienhaus Vignogn - Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg-main: #06100d;
  --bg-card: rgba(14, 28, 23, 0.7);
  --bg-card-hover: rgba(20, 38, 31, 0.85);
  --bg-card-solid: #0d1e18;
  --card-border: rgba(45, 212, 191, 0.12);
  --card-border-hover: rgba(45, 212, 191, 0.3);
  --card-border-solid: #153328;

  --accent-pine: #0d9488;
  --accent-pine-dark: #059669;
  --accent-pine-light: #2dd4bf;
  --accent-amber: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #0d9488 0%, #059669 100%);
  --accent-amber-grad: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);

  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #021c16;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 10px 30px -8px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(13, 148, 136, 0.05);
  --shadow-modal: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 30px rgba(13, 148, 136, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse at 50% -10%, rgba(13, 148, 136, 0.16), transparent 70%),
    radial-gradient(ellipse at 90% 80%, rgba(5, 150, 105, 0.08), transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(245, 158, 11, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── APP CONTAINER (Unified 1000px) ── */
#app {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: max(90px, calc(env(safe-area-inset-bottom, 0px) + 70px));
}

@media (min-width: 768px) {
  #app {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ── TOPBAR (Unified Dimensions) ── */
#topbar {
  padding: max(20px, calc(14px + env(safe-area-inset-top, 0px))) 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background: rgba(6, 16, 13, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 40;
}

@media (min-width: 768px) {
  #topbar {
    padding: 24px 16px 20px;
  }
}

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

#topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}

#topbar-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

#topbar-title .badge-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(13, 148, 136, 0.18);
  color: var(--accent-pine-light);
  border: 1px solid rgba(13, 148, 136, 0.35);
  padding: 2px 7px;
  border-radius: 8px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-nav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-icon-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-icon-nav:active svg,
.btn-icon-nav.is-loading svg {
  animation: spinRefresh 0.6s linear infinite;
}

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

/* ── STATUS HERO BANNER ── */
.hero-banner {
  margin: 16px 16px 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(6, 78, 59, 0.25) 100%);
  border: 1px solid rgba(45, 212, 191, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .hero-banner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.status-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.status-avatar.free {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.2);
}

.status-details {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-pine-light);
}

.status-headline {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.status-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ── VORHEIZ-ERINNERUNG (HOMEMATIC IP) ── */
.preheat-banner {
  margin: 0 16px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(180, 83, 9, 0.28) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
  animation: preheatPulse 3s infinite ease-in-out;
}

@keyframes preheatPulse {
  0%, 100% { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12); }
  50% { border-color: rgba(245, 158, 11, 0.65); box-shadow: 0 4px 24px rgba(245, 158, 11, 0.28); }
}

@media (min-width: 600px) {
  .preheat-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.preheat-banner-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.preheat-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preheat-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: -0.01em;
}

.preheat-banner-sub {
  font-size: 12.5px;
  color: var(--text-main);
  line-height: 1.35;
}

.preheat-banner-actions {
  flex-shrink: 0;
}

.btn-preheat-app {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-preheat-app:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5);
}

.btn-preheat-app:active {
  transform: scale(0.97);
}

/* ── NAV TABS ── */
.app-nav-tabs {
  display: flex;
  gap: 6px;
  padding: 4px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app-nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab-btn {
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex: 1 1 0;
  min-width: 0;
}

.nav-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-tab-btn.active {
  background: rgba(13, 148, 136, 0.18);
  border-color: rgba(13, 148, 136, 0.4);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.2);
}

/* ── VIEW PANES ── */
.tab-pane {
  display: none;
  padding: 0 16px 24px;
}

.tab-pane.active {
  display: block;
  animation: fadeInPane 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── SUB-CONTROLS & FILTER BAR ── */
.view-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.subbar-left, .subbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-view-mode {
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-view-mode.active {
  background: rgba(13, 148, 136, 0.22);
  border-color: var(--accent-pine);
  color: #fff;
}

/* Party Filter Chips */
.party-filter-container {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 6px;
}
.party-filter-container::-webkit-scrollbar { display: none; }

.party-chip {
  padding: 5px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.party-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.party-chip.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: currentColor;
}

.party-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ── TIMELINE / GANTT VIEW ── */
.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.timeline-month-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── CALENDAR TIMELINE GRID & CONNECTED STAY BARS ── */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

.timeline-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 4px 0 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.timeline-cell {
  min-height: 80px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.timeline-cell:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(45, 212, 191, 0.2);
}

.timeline-cell.is-today {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(13, 148, 136, 0.09);
  box-shadow: inset 0 0 12px rgba(13, 148, 136, 0.12);
}

.timeline-cell.is-other-month {
  opacity: 0.35;
}

.timeline-cell-date {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding: 1px 2px;
  min-width: 0;
  line-height: 1;
}

.day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.timeline-cell:hover .day-number:not(.is-today-num) {
  color: #fff;
}

.day-number.is-today-num {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.timeline-cell-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: visible;
}

/* Event Bar / Chip & Connected Multi-day Ribbons */
.stay-bar-placeholder {
  height: 22px;
  min-height: 22px;
  visibility: hidden;
  pointer-events: none;
  box-sizing: border-box;
  flex-shrink: 0;
}

.stay-bar-chip {
  height: 22px;
  min-height: 22px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  position: relative;
  z-index: 2;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
  flex-shrink: 0;
}

.stay-bar-chip:hover,
.stay-bar-chip.is-hovered {
  filter: brightness(1.22) saturate(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

/* Single day stay */
.stay-bar-chip.seg-single {
  border-radius: 5px;
  margin-left: 2px;
  margin-right: 2px;
  padding: 0 5px;
  border-left: 3px solid rgba(255, 255, 255, 0.75);
}

/* Multi-day: Start segment */
.stay-bar-chip.seg-start {
  border-radius: 5px 0 0 5px;
  margin-left: 2px;
  margin-right: -5px;
  padding-left: 5px;
  padding-right: 2px;
  border-left: 3px solid rgba(255, 255, 255, 0.75);
}

/* Multi-day: Middle continuous bridge */
.stay-bar-chip.seg-middle {
  border-radius: 0;
  margin-left: -5px;
  margin-right: -5px;
  padding: 0 2px;
  border-left: none;
}

/* Multi-day: End / Departure segment */
.stay-bar-chip.seg-end {
  border-radius: 0 5px 5px 0;
  margin-left: -5px;
  margin-right: 2px;
  padding-left: 2px;
  padding-right: 4px;
  border-left: none;
  justify-content: center;
}

/* Week row boundaries: Monday cap on left */
.stay-bar-chip.seg-row-start {
  margin-left: 2px !important;
  border-top-left-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
  padding-left: 5px !important;
}

/* Week row boundaries: Sunday cap on right */
.stay-bar-chip.seg-row-end {
  margin-right: 2px !important;
  border-top-right-radius: 5px !important;
  border-bottom-right-radius: 5px !important;
  padding-right: 4px !important;
}

/* Label & Departure styling */
.stay-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}

.stay-chip-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 2px;
  font-size: 9.5px;
  font-weight: 700;
  opacity: 0.95;
}

@media (max-width: 520px) {
  .chip-end-text {
    display: none;
  }
}

/* Provisional bookings */
.stay-bar-chip.is-provisional {
  opacity: 0.85;
  border-top: 1px dashed rgba(255, 255, 255, 0.6);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.6);
}

.stay-bar-chip.is-provisional.seg-single {
  border: 1px dashed rgba(255, 255, 255, 0.6);
}

.stay-bar-chip.is-provisional.seg-start {
  border-left: 1px dashed rgba(255, 255, 255, 0.6);
  border-right: none;
}

.stay-bar-chip.is-provisional.seg-middle {
  border-left: none;
  border-right: none;
}

.stay-bar-chip.is-provisional.seg-end {
  border-right: 1px dashed rgba(255, 255, 255, 0.6);
  border-left: none;
}

.stay-bar-chip.is-provisional.seg-row-start {
  border-left: 1px dashed rgba(255, 255, 255, 0.6) !important;
}

.stay-bar-chip.is-provisional.seg-row-end {
  border-right: 1px dashed rgba(255, 255, 255, 0.6) !important;
}

/* ── STAYS LIST VIEW ── */
.stays-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stay-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.stay-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-1.5px);
}

.stay-card-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.stay-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stay-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.stay-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stay-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stay-card-dates {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-pine-light);
  margin-top: 1px;
}

.stay-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.badge-prov {
  font-size: 10px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 1px 6px;
  border-radius: 6px;
}

.stay-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.stay-duration-tag {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 8px;
}

/* ── HAUS-INFO & CHECKLISTEN PANE ── */
.info-section {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* WLAN Highlight Card */
.wifi-card {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(4, 47, 46, 0.4) 100%);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 600px) {
  .wifi-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.wifi-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wifi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.wifi-details-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-pine-light);
}

.wifi-details-ssid {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.wifi-details-pass {
  font-family: monospace;
  font-size: 14px;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}

.wifi-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-copy-wifi {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: all 0.2s ease;
}

.btn-copy-wifi:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}

.btn-qr-wifi {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-qr-wifi:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-1px);
}

/* Quick Access Cards (Address & Keybox) */
.quick-access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 680px) {
  .quick-access-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.quick-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.quick-card-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.quick-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.quick-card-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.quick-card-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-card-code {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.05em;
  width: fit-content;
}

.quick-card-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.3;
}

.quick-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 6px 12px;
  text-decoration: none;
}

/* ── SMARTE HAUSTECHNIK (HOMEMATIC IP & PHILIPS HUE) ── */
.smarthome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

@media (min-width: 680px) {
  .smarthome-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.smarthome-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.2s ease;
}

.smarthome-card:hover {
  border-color: var(--card-border-hover);
}

.smarthome-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.smarthome-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.smarthome-icon-box.heating {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.smarthome-icon-box.lighting {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.smarthome-card-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smarthome-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.smarthome-card-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 600;
}

.smarthome-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.smarthome-profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smarthome-profile-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.smarthome-profile-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
}

.smarthome-profile-badge.standard {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.smarthome-profile-badge.eco {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.smarthome-profile-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.smarthome-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.35;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 3px solid var(--accent-pine);
}

.smarthome-hint strong {
  color: var(--text-main);
}

.smarthome-switch-guide {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.smarthome-guide-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.2);
  padding: 7px 9px;
  border-radius: 6px;
}

.smarthome-guide-note strong {
  color: #fff;
}

.smarthome-keys-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smarthome-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.smarthome-key-badge {
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.smarthome-key-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.smarthome-actions {
  margin-top: auto;
}

.btn-smarthome-app {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fef08a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-smarthome-app:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.btn-smarthome-app.hue {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.btn-smarthome-app.hue:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
}

.btn-smarthome-app:active {
  transform: scale(0.98);
}

/* Checklist Container */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.checklist-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.checklist-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
}

.checklist-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(45, 212, 191, 0.15);
}

.checklist-row.is-done {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.2);
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checklist-row.is-done .checklist-checkbox {
  background: var(--accent-pine);
  border-color: var(--accent-pine);
  color: #fff;
}

.checklist-content {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.checklist-row.is-done .checklist-content {
  color: var(--text-dim);
  text-decoration: line-through;
}

.checklist-checked-meta {
  font-size: 11px;
  color: var(--accent-pine-light);
  margin-top: 3px;
  text-decoration: none !important;
}

.checklist-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* Info Cards Grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px) {
  .info-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.info-card-item:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-1.5px);
}

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

.info-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.info-card-body strong {
  color: var(--text-main);
}

.info-card-body code {
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  color: #6ee7b7;
  font-family: monospace;
}

/* ── PINNWAND / WALL VIEW ── */
.wall-card-container {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.wall-input-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}

.wall-textarea {
  width: 100%;
  min-height: 70px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
}

.wall-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wall-author-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
}

.wall-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wall-post {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.wall-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.wall-post-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-pine-light);
}

.wall-post-date {
  font-size: 11px;
  color: var(--text-dim);
}

.wall-post-content {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── SETTINGS & ICAL PANE ── */
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.settings-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.feed-url-box {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  align-items: center;
  margin-bottom: 12px;
}

.feed-url-text {
  font-family: monospace;
  font-size: 12px;
  color: #6ee7b7;
  word-break: break-all;
  flex: 1;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .settings-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.settings-card-header h3 {
  margin-bottom: 4px;
}

.settings-card-header p {
  margin-bottom: 0;
}

/* Party config row & actions */
.party-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
  gap: 12px;
  transition: all 0.15s ease;
}

.party-config-row:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.party-config-row.is-archived {
  opacity: 0.65;
  border-style: dashed;
}

.party-config-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.party-config-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.party-config-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.party-config-desc {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.party-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.party-status-badge.archived {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.party-config-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Checklist Settings */
.settings-checklist-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-checklist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  gap: 10px;
}

.settings-checklist-title {
  font-size: 13px;
  color: var(--text-main);
  flex: 1;
  min-width: 0;
}

.settings-checklist-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* Single Emoji Free-Text Input */
.emoji-single-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emoji-single-input {
  width: 58px;
  height: 52px;
  text-align: center;
  font-size: 26px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.emoji-single-input:focus {
  border-color: var(--accent-pine);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
  background: rgba(0, 0, 0, 0.6);
}

/* Color Picker Container */
.color-picker-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-palette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.color-preset-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.color-preset-dot:hover {
  transform: scale(1.12);
}

.color-preset-dot.selected {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.color-custom-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-native-input {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  padding: 2px;
}

.color-hex-input {
  width: 100px;
  font-family: monospace;
  font-size: 13px;
  text-transform: lowercase;
}

/* WLAN QR Code Display Modal */
.qr-code-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

.qr-code-box svg {
  display: block;
  width: 200px;
  height: 200px;
}

.qr-details-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.qr-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.qr-label {
  color: var(--text-dim);
  font-weight: 600;
}

.qr-val {
  color: #fff;
  font-weight: 700;
  font-family: monospace;
}

/* ── BUTTONS & ACTIONS ── */
.btn-primary {
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
}

.btn-secondary {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.28);
}

/* Floating Action Button */
.fab-add {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 30;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-add:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 148, 136, 0.6);
}

/* ── MODALS (GLASS DIALOG) ── */
dialog.glass-dialog {
  border: 1px solid var(--card-border-hover);
  background: rgba(10, 24, 19, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  box-shadow: var(--shadow-modal);
  padding: 0;
  max-width: 500px;
  width: 92%;
  margin: auto;
  color: var(--text-main);
  overflow: hidden;
}

dialog.glass-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-pine);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  background: rgba(0, 0, 0, 0.5);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* Party Radio Picker */
.party-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.party-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.party-radio-label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.party-radio-label input[type="radio"] {
  display: none;
}

.party-radio-label.checked {
  background: rgba(13, 148, 136, 0.18);
  border-color: var(--accent-pine);
  color: #fff;
}

/* Toast Container */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 24, 19, 0.95);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

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

/* ── GUEST MODE & GATEWAY STYLING ── */
.badge-guest-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.btn-guest-admin-switch {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 12px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 11px;
  color: #fff;
  transition: all 0.15s ease;
  margin-left: 2px;
}

.btn-guest-admin-switch:hover {
  background: rgba(255, 255, 255, 0.25);
}

.guest-gateway-modal {
  background: rgba(12, 19, 16, 0.96) !important;
  border: 1px solid rgba(45, 212, 191, 0.25) !important;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.guest-gateway-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gateway-icon {
  font-size: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(45, 212, 191, 0.3));
}

.gateway-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2px;
}

.gateway-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.gateway-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: left;
  margin-bottom: 16px;
}

.gateway-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.gateway-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.gateway-input-group {
  display: flex;
  gap: 8px;
}

.gateway-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 4px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.gateway-divider::before,
.gateway-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.gateway-divider span {
  padding: 0 12px;
}

.gateway-admin-action {
  width: 100%;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.guest-qr-preview-box {
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  display: inline-flex;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.guest-qr-preview-box img {
  display: block;
  border-radius: 4px;
}

/* ── PRINT MEDIA: GUEST QR STAND ── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  #topbar, #main-nav-tabs, .hero-banner, .tab-pane, #toast, dialog, .preheat-banner {
    display: none !important;
  }
  #printable-guest-stand {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff !important;
    color: #111 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  .print-stand-inner {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 20px;
    text-align: center;
  }
  .print-icon {
    font-size: 48px;
    margin-bottom: 8px;
  }
  .print-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0;
  }
  .print-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 24px;
  }
  .print-qr-wrap {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .print-qr-wrap img {
    width: 220px;
    height: 220px;
    display: block;
  }
  .print-instructions {
    text-align: left;
    font-size: 13.5px;
    color: #222;
    line-height: 1.6;
  }
  .print-instructions h3 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
  }
  .print-instructions ul {
    margin: 10px 0 16px 20px;
    padding: 0;
  }
  .print-pin-box {
    margin-top: 18px;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
  }
  .print-pin-box strong {
    font-size: 16px;
    color: #0d9488;
  }
}

/* ── PIN-PAD & GUEST GATEWAY MODERNIZATION ── */
.pin-display-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  cursor: pointer;
  padding: 10px;
}
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-dot.filled {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  transform: scale(1.15);
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 0 auto 12px;
}
.pin-key {
  height: 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.pin-key:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.pin-key:active {
  transform: scale(0.92);
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
}
.pin-key.pin-key-action {
  font-size: 16px;
  color: var(--text-muted);
}
.pin-error-msg {
  color: #f87171;
  font-size: 12.5px;
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.pin-shake {
  animation: pinShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes pinShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* ── STAY SHARE & PIN BOX ── */
.stay-pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.stay-share-box {
  margin-top: 14px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
}
.btn-text-action {
  background: none;
  border: none;
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-text-action:hover {
  background: rgba(16, 185, 129, 0.15);
}
