:root {
  --muted: rgba(90, 64, 48, 0.55);
}

/* Mekana pozadina cijelog booking toka */
.booking-page {
  min-height: 100vh;
  padding-bottom: 3rem;
  background-color: #f3ebe3;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(232, 212, 188, 0.65), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 80%, rgba(210, 180, 140, 0.2), transparent 45%),
    linear-gradient(175deg, #faf7f2 0%, #f5efe6 50%, #ebe3d8 100%);
  background-attachment: fixed;
}

body.booking-auth-view,
body.booking-in-flow {
  background:
    linear-gradient(
      165deg,
      rgba(255, 252, 248, 0.93) 0%,
      rgba(250, 242, 234, 0.88) 45%,
      rgba(245, 232, 220, 0.85) 100%
    ),
    url("../assets/hero-elme-wall.png") center 25% / cover no-repeat fixed;
}

body.booking-in-flow .site-header,
body.booking-auth-view .site-header {
  background: rgba(255, 252, 248, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210, 180, 140, 0.28);
  box-shadow: 0 4px 24px rgba(90, 64, 48, 0.05);
}

body.booking-in-flow .booking-main > .booking-panel.panel-active:not(#panel-home) {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 2px 12px rgba(90, 64, 48, 0.04),
    0 16px 48px rgba(90, 64, 48, 0.09);
  padding: 1.35rem 1.25rem 1.75rem;
  margin-top: 0.25rem;
}

body.booking-auth-view .booking-main > #panel-auth.panel-active {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 56px rgba(90, 64, 48, 0.1);
  padding: 1.75rem 1.5rem 2rem;
  margin-top: 0.5rem;
}

/* Samo jedan ekran — JS dodaje .panel-active */
.booking-main > .booking-panel {
  display: none !important;
}

.booking-main > .booking-panel.panel-active {
  display: block !important;
}

.booking-main > #panel-home.panel-active {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  flex: 1;
  padding-top: 4.5rem;
}

.booking-main {
  padding-top: 6rem;
  max-width: 640px;
  padding-bottom: 5rem;
}

.booking-page.has-services-footer .booking-main {
  padding-bottom: 8.5rem;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.step-head-plain {
  display: block;
}

.step-head h2 {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brown);
}

.btn-step-back {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  color: var(--brown);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(90, 64, 48, 0.08);
}

.btn-step-back:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold-deep);
}

.booking-package {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  background: rgba(253, 246, 238, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(210, 180, 140, 0.45);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(90, 64, 48, 0.05);
}

.booking-package-icon {
  color: var(--gold-deep);
  font-size: 1.1rem;
  line-height: 1.4;
}

.booking-package-text strong {
  display: block;
  font-size: 0.98rem;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.booking-package-text span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(44, 32, 24, 0.72);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.65rem 0.75rem 0.65rem 0.55rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(90, 64, 48, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.service-card:hover {
  box-shadow: 0 8px 28px rgba(90, 64, 48, 0.08);
}

.service-card-selected {
  border-color: rgba(184, 149, 110, 0.75);
  background: rgba(255, 250, 245, 0.95);
  box-shadow: 0 8px 28px rgba(184, 149, 110, 0.15);
}

.service-check {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.service-check::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid #bdbdbd;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.service-card-selected .service-check::after {
  border-color: var(--gold);
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.service-card-main {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.35rem 0.25rem;
  cursor: pointer;
  font-family: inherit;
}

.service-card-title {
  display: block;
  font-size: 1.02rem;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.service-card-meta {
  display: block;
  font-size: 0.85rem;
  color: rgba(44, 32, 24, 0.65);
}

.service-solo {
  border: 0;
  background: transparent;
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.service-solo:hover {
  text-decoration: underline;
}

.services-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(210, 180, 140, 0.35);
  box-shadow: 0 -12px 40px rgba(90, 64, 48, 0.1);
}

.services-selected-summary {
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brown);
  margin: 0 0 0.65rem;
}

.booking-panel h1,
.booking-panel h2 {
  font-family: var(--font-display);
  color: var(--brown);
  margin: 0 0 0.75rem;
}

.booking-intro {
  color: rgba(44, 32, 24, 0.7);
  margin-bottom: 1.5rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--brown-soft);
}

.auth-tab.active {
  background: var(--brown);
  color: var(--cream);
  border-color: var(--brown);
}

.auth-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brown);
}

.auth-form input,
.note-label textarea,
.date-label input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(210, 180, 140, 0.35);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 2px rgba(90, 64, 48, 0.04);
}

.note-label textarea:focus,
.auth-form input:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.35);
}

.booking-msg {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.booking-msg.error {
  background: #fde8e8;
  color: #8b2e2e;
}

.booking-msg.ok {
  background: #e8f5e9;
  color: #2e6b3a;
}

.pick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 100%;
}

.pick-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 24px rgba(90, 64, 48, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.pick-card:hover {
  border-color: rgba(184, 149, 110, 0.55);
  box-shadow: 0 10px 32px rgba(90, 64, 48, 0.1);
  transform: translateY(-2px);
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-height: 50vh;
  overflow-y: auto;
}

.pick-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.pick-row:has(input:checked) {
  border-color: var(--gold-deep);
  background: #fffaf5;
}

.pick-row-body strong {
  display: block;
  font-size: 0.92rem;
}

.pick-row-body small {
  color: rgba(44, 32, 24, 0.6);
}

.hint {
  font-size: 0.88rem;
  color: rgba(90, 64, 48, 0.72);
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  line-height: 1.45;
}

.booking-summary {
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

.date-label {
  display: block;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Kalendar (kao u aplikaciji) */
.booking-calendar-wrap {
  margin-bottom: 1rem;
  padding: 1.1rem 0.95rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: 0 10px 36px rgba(90, 64, 48, 0.08);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.15rem;
}

.cal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brown);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.cal-nav {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 50%;
  background: var(--white);
  color: var(--brown);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.cal-nav:hover:not(:disabled) {
  background: var(--gold-light);
}

.cal-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  border-color: var(--line);
  box-shadow: none;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(44, 32, 24, 0.55);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  aspect-ratio: 1;
  min-height: 40px;
}

.cal-day {
  width: 100%;
  height: 100%;
  max-width: 44px;
  max-height: 44px;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown);
  cursor: pointer;
}

.cal-day:hover:not(:disabled):not(.cal-selected) {
  background: var(--cream-2);
}

.cal-day.cal-today {
  box-shadow: inset 0 0 0 1.5px var(--gold-deep);
}

.cal-day.cal-selected {
  background: var(--brown);
  color: var(--cream);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(90, 64, 48, 0.35);
}

.cal-day.cal-disabled {
  color: rgba(44, 32, 24, 0.28);
  cursor: not-allowed;
}

.cal-empty {
  pointer-events: none;
}

.day-hours {
  font-weight: 600;
  color: var(--brown);
  margin: -0.25rem 0 0.85rem;
  font-size: 0.95rem;
}

.legend {
  font-size: 0.82rem;
  color: rgba(44, 32, 24, 0.65);
  margin-bottom: 0.75rem;
}

.legend-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  line-height: 1.45;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.legend-slots .legend-item {
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-slots .dot {
  margin-left: 0;
}

.dot-free {
  background: #4caf50;
}

.dot-busy {
  background: #f44336;
}

.dot-nofit {
  background: #78909c;
}

.dot-after {
  background: #ff9800;
}

.dot-picked {
  background: #d2b48c;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 18px;
}

.slots-grid .slot {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.65rem 0.25rem;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.slots-grid .slot-free {
  background: #4caf50 !important;
  color: #fff !important;
  border-color: #388e3c !important;
}

.slots-grid .slot-free:hover {
  background: #43a047 !important;
  transform: translateY(-1px);
}

.slots-grid .slot-booked {
  background: #f44336 !important;
  color: #fff !important;
  border-color: #c62828 !important;
  cursor: not-allowed;
  opacity: 1 !important;
}

.slots-grid .slot-nofit {
  background: #b0bec5 !important;
  color: #fff !important;
  border-color: #78909c !important;
  cursor: help;
}

.slots-grid .slot-after {
  background: #ff9800 !important;
  color: #fff !important;
  border-color: #ef6c00 !important;
}

.slots-grid .slot-after:hover {
  filter: brightness(1.05);
}

.slots-grid .slot.selected {
  background: #d2b48c !important;
  color: #3e2723 !important;
  border-color: #a1887f !important;
  box-shadow: 0 4px 14px rgba(90, 64, 48, 0.3);
}

.slots-hint {
  font-size: 0.88rem;
  color: rgba(44, 32, 24, 0.65);
  margin: -0.5rem 0 1rem;
}

.booking-done {
  text-align: center;
}

.booking-done .btn {
  margin: 0.5rem;
}

.booking-alt {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.nav-booking {
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-logo em {
  font-style: italic;
  color: var(--gold-deep);
}

/* Chat asistent (kao u aplikaciji) */
.booking-assistant {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: min(300px, calc(100vw - 2rem));
}

.assistant-bubble {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(210, 180, 140, 0.55);
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.assistant-bubble-text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #3a2a1f;
}

.assistant-chevron {
  color: var(--gold-deep);
  font-size: 0.75rem;
}

.assistant-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assistant-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.assistant-panel {
  width: min(300px, calc(100vw - 2rem));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  background: #fff;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--brown);
  color: #fff;
}

.assistant-head-title {
  flex: 1;
  font-weight: 700;
  font-size: 0.85rem;
}

.assistant-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
}

.assistant-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: assistant-spin 0.7s linear infinite;
}

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

.assistant-log {
  height: 220px;
  overflow-y: auto;
  padding: 0.5rem;
  background: #fdf6ee;
}

.assistant-msg {
  max-width: 88%;
  margin-bottom: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.assistant-msg-bot {
  background: #fff;
  color: #3a2a1f;
  border: 1px solid rgba(90, 64, 48, 0.08);
}

.assistant-msg-user {
  margin-left: auto;
  background: var(--gold);
  color: #3a2a1f;
}

.assistant-compose {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
}

.assistant-compose input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.assistant-send {
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--brown);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.assistant-send:disabled {
  opacity: 0.5;
  cursor: wait;
}

@media (max-width: 600px) {
  .booking-assistant {
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .assistant-bubble {
    max-width: calc(100vw - 1rem);
  }
}

/* Početni ekran — kao home_screen.dart */
body.booking-at-home {
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.22)),
    url("../assets/hero-elme-wall.png") center / cover no-repeat fixed;
}

body.booking-at-home .site-header {
  background: transparent;
  box-shadow: none;
}

body.booking-at-home .site-header .brand,
body.booking-at-home .site-header .nav a,
body.booking-at-home .site-header .btn-outline {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}

body.booking-at-home .booking-main {
  max-width: 440px;
  padding-top: 5rem;
  min-height: calc(100vh - 4rem);
  display: flex;
  flex-direction: column;
}

.home-welcome-sub {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.home-user-name {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.home-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  padding: 0 0.25rem;
}

.btn-home-primary,
.btn-home-secondary,
.btn-home-rewards {
  width: 100%;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-home-primary {
  height: 58px;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(212, 184, 150, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #4a3528;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn-home-secondary {
  height: 50px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--brown);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.14);
}

.btn-home-rewards {
  height: 50px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(232, 212, 188, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #4a3528;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
}

.btn-home-primary:hover,
.btn-home-secondary:hover,
.btn-home-rewards:hover {
  transform: translateY(-2px);
}

.btn-home-primary:active,
.btn-home-secondary:active,
.btn-home-rewards:active {
  transform: translateY(0);
}

.home-contact {
  margin-top: auto;
  padding: 2rem 0 1rem;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.home-contact a {
  color: inherit;
  text-decoration: none;
}

.home-contact a:hover {
  text-decoration: underline;
}

.home-contact p {
  margin: 0.15rem 0;
}

/* Moji termini / Moje nagrade */
.list-loading,
.list-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.list-error {
  text-align: center;
  color: #b42318;
  padding: 1.5rem 1rem;
  line-height: 1.5;
  max-width: 22rem;
  margin: 0 auto;
}

.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.appointment-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow: 0 6px 22px rgba(90, 64, 48, 0.06);
  position: relative;
}

.appointment-card-past {
  opacity: 0.85;
}

.appointment-date {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fdf6ee;
  border: 1px solid var(--gold);
}

.appointment-card-past .appointment-date {
  background: #f0f0f0;
  border-color: #ddd;
  color: #888;
}

.appointment-day {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.1;
}

.appointment-month {
  font-size: 0.68rem;
  color: var(--gold-deep);
}

.appointment-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.appointment-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--brown);
}

.appointment-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.appointment-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-style: italic;
  color: #0d6b6b;
}

.appointment-past-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.appointment-cancel {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c62828;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.appointment-cancel:hover {
  background: #ffebee;
}

.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rewards-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.rewards-empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.35;
}

.rewards-empty-sub {
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.reward-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 28px rgba(90, 64, 48, 0.07);
  overflow: hidden;
}

.reward-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fdf6ee;
}

.reward-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  border-radius: 10px;
  font-size: 1.2rem;
}

.reward-card-head strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brown);
}

.reward-card-head span {
  display: block;
  font-size: 0.88rem;
  color: var(--brown);
  margin-top: 0.15rem;
}

.reward-card-body {
  padding: 0.9rem 1rem 1rem;
  text-align: center;
}

.reward-card-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.reward-card-timer {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.reward-progress {
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.reward-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.booking-done .btn-block + .btn-block {
  margin-top: 0.5rem;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--brown);
  text-decoration: underline;
  font-size: 0.88rem;
  margin-top: 0.35rem;
  cursor: pointer;
  font-family: inherit;
}

.services-selection-summary {
  text-align: center;
  font-weight: 600;
  color: var(--brown);
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

.btn-refresh-slots {
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
  border-color: rgba(210, 180, 140, 0.4) !important;
}

.booking-dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  max-width: min(420px, calc(100vw - 2rem));
  box-shadow: var(--shadow-md);
}

.booking-dialog::backdrop {
  background: rgba(40, 28, 20, 0.45);
}

.booking-dialog h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--brown);
}

.booking-dialog .dialog-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-line;
}

.booking-dialog .dialog-contact {
  font-size: 0.9rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-danger {
  background: #c62828;
  color: #fff;
  border: 0;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#btn-confirm .btn-confirm-loading {
  display: inline;
}

#btn-confirm:disabled .btn-confirm-label {
  opacity: 0.7;
}
