:root {
  --primary: #1e7a5f;
  --primary-dark: #145a45;
  --primary-bright: #2a9a75;
  --primary-light: #e7f4ef;
  --sage-50: #eef5f1;
  --sage-100: #d2e6db;
  --gold: #c9911f;
  --gold-bright: #e3b750;
  --gold-pale: #fbe7ba;
  --bg: #faf8f4;
  --paper-2: #f2eee5;
  --text: #26261f;
  --ink-soft: #55564c;
  --ink-mute: #87877b;
  --border: #e7e2d5;
  --whatsapp: #25d366;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --f-sans: "Nunito", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --f-ar: "Tajawal", var(--f-sans);
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-ar-serif: "Scheherazade New", serif;
  --shadow: 0 1px 2px rgba(30, 40, 30, 0.04), 0 8px 24px rgba(30, 40, 30, 0.07);
  --shadow-hover: 0 4px 10px rgba(30, 40, 30, 0.07), 0 20px 40px rgba(30, 40, 30, 0.12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 40, 30, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 88% -5%, rgba(30, 122, 95, 0.12), transparent 60%),
    radial-gradient(55% 40% at 0% 105%, rgba(201, 145, 31, 0.09), transparent 60%);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

[dir="rtl"] body {
  font-family: var(--f-ar);
}

::selection {
  background: var(--primary);
  color: white;
}

h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary-dark);
  line-height: 1.15;
  margin: 0;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
  font-family: var(--f-ar-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.topbar {
  background: linear-gradient(120deg, var(--primary-bright) 0%, var(--primary) 45%, var(--primary-dark) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(10, 40, 30, 0.08);
  transition: box-shadow 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 8px 26px rgba(10, 40, 30, 0.22);
}

.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand-icon {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: white;
  letter-spacing: -0.01em;
}

[dir="rtl"] .brand {
  font-family: var(--f-ar-serif);
  font-weight: 700;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: white;
}

.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lang-caret {
  font-size: 0.65rem;
}

.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 140px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: start;
  white-space: nowrap;
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: var(--primary-light);
}

.lang-option.active {
  background: var(--sage-100);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.surface-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-list {
  padding: 18px 0 8px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

[dir="rtl"] .kicker {
  font-family: var(--f-ar);
}

.kicker-line {
  width: 26px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.tagline {
  color: var(--ink-soft);
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 24px;
  max-width: 26ch;
}

[dir="rtl"] .tagline {
  font-family: var(--f-ar-serif);
  font-weight: 700;
}

.search-wrap {
  max-width: 520px;
}

.search-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 8px;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.search-suggestion {
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.search-suggestion button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(20, 90, 69, 0.55);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.provider-card {
  display: block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s ease;
  animation: card-in 0.5s var(--ease) backwards;
}

.provider-grid .provider-card:nth-child(1) { animation-delay: 0.02s; }
.provider-grid .provider-card:nth-child(2) { animation-delay: 0.06s; }
.provider-grid .provider-card:nth-child(3) { animation-delay: 0.1s; }
.provider-grid .provider-card:nth-child(4) { animation-delay: 0.14s; }
.provider-grid .provider-card:nth-child(5) { animation-delay: 0.18s; }
.provider-grid .provider-card:nth-child(6) { animation-delay: 0.22s; }
.provider-grid .provider-card:nth-child(n+7) { animation-delay: 0.24s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .provider-card {
    animation: none;
  }
}

.provider-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--sage-100);
}

.provider-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--sage-50);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 9px;
}

.provider-card h3 {
  margin: 4px 0;
  font-size: 1.15rem;
}

.provider-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.provider-avatar-sm {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.provider-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: bold;
  font-family: var(--f-serif);
}

.provider-address {
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--primary-dark);
  font-weight: 700;
}

.provider-card-locked {
  opacity: 0.72;
  filter: grayscale(0.4);
}

.provider-card-locked:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.provider-locked-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-2);
  color: var(--ink-mute);
  font-size: 0.82rem;
  font-weight: 700;
}

.provider-locked-notice {
  text-align: center;
  color: var(--ink-mute);
  padding: 20px 10px 30px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.back-link:hover {
  gap: 9px;
}

.provider-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 760px) {
  .provider-layout {
    grid-template-columns: 1.5fr 1fr;
  }
}

.provider-header {
  text-align: center;
  padding: 22px 20px 14px;
  background: linear-gradient(180deg, var(--sage-50) 0%, white 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.provider-avatar {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 4px solid white;
  box-shadow: var(--shadow-hover);
}

.float-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.float-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 6px 11px;
  white-space: nowrap;
  animation: floaty 4.5s ease-in-out infinite;
}

.float-card .float-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
}

.float-card.featured .float-icon {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.float-card .float-icon svg {
  width: 17px;
  height: 17px;
}

.float-card b {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.float-card small {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-weight: 600;
}

.float-card.verified {
  animation-delay: 1.3s;
}

@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
}

.provider-avatar-placeholder {
  font-size: 2.6rem;
}

.provider-info-body {
  padding: 4px 22px 18px;
}

.provider-name {
  margin: 4px 0 8px;
  font-size: 1.5rem;
}

.provider-description {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 10px;
}

.provider-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.provider-booking-wrap {
  position: sticky;
  top: 82px;
}

.booking-section {
  padding: 22px;
}

.booking-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.booking-section label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.slots-status {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin-top: 10px;
}

.slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.slot-btn {
  padding: 9px 15px;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.slot-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.slot-btn.selected,
.slot-btn:active {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(20, 90, 69, 0.55);
}

.slot-btn.booked,
.slot-btn:disabled {
  background: var(--paper-2);
  color: #b3b0a3;
  border-color: var(--border);
  text-decoration: line-through;
  cursor: not-allowed;
  transform: none;
}

.slot-btn.booked:hover {
  background: var(--paper-2);
}

.cancel-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.cancel-box {
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-pale);
  background: linear-gradient(160deg, #fffaf0, #fdf2d8);
  border-radius: var(--radius-lg);
}

.cancel-box button {
  margin-top: 10px;
  padding: 11px 22px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.cancel-box button:hover {
  background: #a5301f;
  transform: translateY(-1px);
}

.selected-slot-line {
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 4px;
}

.booking-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-section input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus,
.booking-section input[type="date"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.booking-result {
  margin-top: 12px;
}

.booking-form button,
.admin-form button {
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.booking-form button:hover,
.admin-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(20, 90, 69, 0.6);
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  background: linear-gradient(135deg, #2fe07f, var(--whatsapp));
  color: white;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s var(--ease);
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
}

.admin-form {
  max-width: 480px;
  margin: 0 auto 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.admin-form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.error-text {
  color: #c0392b;
  font-weight: 600;
}

.provider-map {
  height: 150px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  border: 1px solid var(--border);
}

.location-map {
  height: 250px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

.directions-links {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s var(--ease);
}

.directions-btn:hover {
  transform: translateY(-2px);
}

.hint {
  color: var(--ink-mute);
  font-size: 0.85rem;
  margin: 4px 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.9rem;
  font-family: inherit;
  text-decoration: underline;
}

.link-btn.danger {
  color: #c0392b;
}

.admin-provider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.admin-provider-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-btn.owner-blocked {
  background: var(--gold-pale);
  color: #8a6d1a;
  border-color: var(--gold-bright);
}

.slot-btn.owner-booked {
  background: #fde2e1;
  color: #b23b31;
  border-color: #e8a09b;
}

.owner-slot-detail-card {
  margin-top: 12px;
  padding: 18px;
}

.owner-slot-detail-card button {
  margin-top: 10px;
  padding: 11px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}

.owner-slot-detail-card button:hover {
  transform: translateY(-2px);
}

/* ===== Admin Dashboard ===== */

.admin-body {
  background: var(--paper-2);
}

.auth-card {
  max-width: 400px;
  margin: 90px auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 38px;
  text-align: center;
}

.auth-card-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card-icon svg {
  width: 28px;
  height: 28px;
}

.auth-card h2 {
  margin: 0 0 20px;
}

.auth-card label {
  display: block;
  text-align: start;
  margin: 14px 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.auth-card input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-inline-end: 42px;
}

.password-field .password-toggle-btn {
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.password-field .password-toggle-btn:hover {
  color: var(--primary-dark);
  background: var(--sage-50);
  transform: translateY(-50%);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.auth-card button {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.auth-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(20, 90, 69, 0.6);
}

.dashboard {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 68px);
}

.dashboard[hidden] {
  display: none;
}

.session-bar {
  background: white;
  border-bottom: 1px solid var(--border);
}

.session-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.session-label {
  color: var(--ink-mute);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background: white;
  border-inline-end: 1px solid var(--border);
  padding: 22px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    position: static;
    height: auto;
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }
}

.dashboard-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dashboard-title {
  font-size: 1.25rem;
  margin: 0;
}

.dashboard-subtitle {
  margin: 3px 0 0;
  color: var(--ink-mute);
  font-size: 0.85rem;
  font-family: var(--f-sans);
}

[dir="rtl"] .dashboard-subtitle {
  font-family: var(--f-ar);
}

.icon-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: var(--sage-50);
  border-color: var(--sage-100);
  color: var(--primary-dark);
}

.icon-btn.danger {
  color: #c0392b;
  border-color: #f3d3d0;
}

.icon-btn.danger:hover {
  background: #fdeceb;
  border-color: #f3d3d0;
  color: #c0392b;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink-mute);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.logout-btn svg {
  width: 16px;
  height: 16px;
}

.logout-btn:hover {
  background: #fdeceb;
  color: #c0392b;
  border-color: #f3d3d0;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(20, 90, 69, 0.6);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(30, 122, 95, 0.06);
  border-color: var(--primary);
}

.provider-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink-mute);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-input-group input {
  flex: 1;
  min-width: 0;
}

.provider-list-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.provider-list-item-actions {
  display: flex;
  gap: 6px;
}

.provider-list-item-actions .icon-btn {
  width: 30px;
  height: 30px;
}

.provider-list-item-actions .icon-btn svg {
  width: 15px;
  height: 15px;
}

.provider-list-item:hover {
  background: var(--paper-2);
}

.provider-list-item.active {
  background: var(--primary-light);
}

.provider-list-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.provider-list-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.provider-list-item-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-main {
  padding: 30px 34px 60px;
  min-width: 0;
}

.dashboard-form {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  align-items: start;
}

.dashboard-form-header,
.dashboard-form-footer {
  grid-column: 1 / -1;
}

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

.dashboard-form-header h2 {
  margin: 0;
}

.form-section {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-section-wide {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .dashboard-form {
    grid-template-columns: 1fr;
  }
}

.form-section-title {
  margin: 0 0 14px;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gold);
}

[dir="rtl"] .form-section-title {
  font-family: var(--f-ar);
}

.form-section label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form-section label:first-of-type {
  margin-top: 0;
}

.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section input:focus,
.form-section select:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.inline-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.inline-field-row select,
.inline-field-row input {
  flex: 1;
  min-width: 160px;
}

.chip-btn {
  white-space: nowrap;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--primary);
  background: white;
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chip-btn:hover {
  background: var(--primary-light);
}

.expandable-box {
  margin-top: 12px;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--border);
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  min-height: 160px;
  cursor: pointer;
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--sage-50);
}

.dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-mute);
  padding: 24px;
}

.dropzone-placeholder[hidden] {
  display: none;
}

.dropzone-placeholder svg {
  width: 28px;
  height: 28px;
}

.dropzone-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

.dropzone-input {
  display: none;
}

.day-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.day-checkbox {
  position: relative;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.day-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-checkbox:has(input:checked) {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  border-color: transparent;
  color: white;
}

.dashboard-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  background: var(--paper-2);
  padding: 16px 0 4px;
}

.dashboard-form-footer button {
  padding: 13px 30px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.dashboard-form-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(20, 90, 69, 0.6);
}

/* ===== Empfohlen-Abzeichen & Buchungszahl ===== */

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--gold-bright) 55%, var(--gold) 100%);
  border: 1px solid var(--gold);
  color: #6b4a00;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(201, 145, 31, 0.3);
}

.booking-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
}

.booking-count svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--gold-pale);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
}

.reviews-stars {
  color: var(--gold);
  letter-spacing: 1px;
}

/* ===== Bewertungen ===== */

.reviews-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.reviews-heading {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.reviews-avg {
  font-weight: 700;
  color: var(--text);
}

.reviews-count {
  color: var(--ink-mute);
  font-size: 0.85rem;
}

.reviews-empty {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.reviews-locked-notice {
  color: var(--ink-mute);
  font-size: 0.85rem;
  font-style: italic;
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  margin: 0;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.review-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.review-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.review-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.review-comment {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.review-form {
  padding-top: 6px;
}

.review-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 12px 0 6px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.star-picker {
  display: flex;
  gap: 4px;
}

.star-picker-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
  cursor: pointer;
  padding: 2px;
}

.review-form button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.review-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(20, 90, 69, 0.6);
}

/* ===== Weiterempfehlen / Kalender-Buttons ===== */

.recommend-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.recommend-btn:hover {
  background: var(--sage-50);
  border-color: var(--sage-100);
}

.calendar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-btn:hover {
  background: var(--paper-2);
  border-color: var(--sage-100);
}

.owner-slot-detail-card button {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.owner-slot-detail-card button:hover {
  background: var(--paper-2);
}

/* ===== Abo-Status-Banner (Anbieter-Dashboard) ===== */

.subscription-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-bright);
  background: var(--gold-pale);
}

.subscription-banner.expired {
  border-color: #e0958b;
  background: #fde2e1;
}

.subscription-banner-text {
  flex: 1;
  min-width: 200px;
}

.subscription-banner-text strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 3px;
}

.subscription-banner-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.subscription-countdown {
  display: flex;
  gap: 8px;
}

.subscription-countdown-unit {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-align: center;
  min-width: 60px;
}

.subscription-countdown-unit span {
  display: block;
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.subscription-countdown-unit small {
  font-size: 0.7rem;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.subscription-pay-btn {
  flex-shrink: 0;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 8px 20px -8px rgba(20, 90, 69, 0.5);
  transition: transform 0.25s var(--ease);
}

.subscription-pay-btn:hover {
  transform: translateY(-2px);
}

.subscription-pay-btn[hidden] {
  display: none;
}

/* ===== Statistik-Kacheln (Anbieter-Dashboard) ===== */

.stats-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.stat-card {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-end: -30%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.4;
  background: radial-gradient(circle, var(--sage-100), transparent 70%);
}

.stat-value {
  display: block;
  font-family: var(--f-serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}

[dir="rtl"] .stat-value {
  font-family: var(--f-ar-serif);
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Toggle-Switch (Empfohlen-Schalter) ===== */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary-dark));
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

[dir="rtl"] .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(-18px);
}

/* ===== QR-Code-Modal ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 25, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 30px 26px 26px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-card h3 {
  margin: 0 0 16px;
}

.modal-card-wide {
  max-width: 560px;
  text-align: start;
  max-height: 82vh;
  overflow-y: auto;
}

.qr-canvas-wrap {
  display: flex;
  justify-content: center;
}

.modal-card canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.qr-print-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}

.qr-print-card::before {
  content: "";
  display: block;
  padding-top: 150%;
}

.qr-print-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-print-card-qr {
  position: absolute;
  left: 24.32%;
  top: 22.33%;
  width: 51.17%;
  height: 34.11%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-print-card-qr canvas {
  width: 82%;
  height: 82%;
  border-radius: 0;
}

.qr-print-card-logo {
  position: absolute;
  left: 9.26%;
  top: 6.5%;
  width: 12.34%;
  height: 8.23%;
  object-fit: cover;
  border-radius: 50%;
}

.qr-print-card-name {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 62%;
  text-align: center;
  font-family: var(--f-ar-serif);
  font-size: clamp(0.85rem, 4.5vw, 1.3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

/* ===== "Mehr anzeigen" & Offline-Hinweis ===== */

.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.load-more-btn {
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.load-more-btn:hover {
  background: var(--sage-50);
  border-color: var(--sage-100);
}

.offline-banner {
  background: var(--gold-pale);
  color: #7a5c10;
  border: 1px solid var(--gold-bright);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== PWA-Installation ===== */

.install-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 70;
  animation: install-fab-pulse 2.4s ease-out infinite;
  transition: transform 0.15s, bottom 0.2s;
}

.install-fab svg {
  width: 24px;
  height: 24px;
}

.install-fab:hover {
  transform: scale(1.08);
}

body.has-install-banner .install-fab {
  bottom: 94px;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 88px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2fe07f, var(--whatsapp));
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px -10px rgba(37, 211, 102, 0.55);
  z-index: 70;
  transition: transform 0.3s var(--ease), bottom 0.2s;
}

.whatsapp-fab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.whatsapp-fab:hover {
  transform: scale(1.05) translateY(-2px);
}

body.has-install-banner .whatsapp-fab {
  bottom: 162px;
}

@media (max-width: 460px) {
  .whatsapp-fab span {
    display: none;
  }
  .whatsapp-fab {
    padding: 13px;
  }
}

@keyframes install-fab-pulse {
  0% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(30, 122, 95, 0.55);
  }
  70% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 16px rgba(30, 122, 95, 0);
  }
  100% {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(30, 122, 95, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .install-fab {
    animation: none;
  }
}

.install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary-dark) 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 60;
}

.install-banner-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

body.has-install-banner {
  padding-bottom: 78px;
}

.install-banner-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.16);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.install-banner-icon svg {
  width: 22px;
  height: 22px;
}

.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: white;
}

.install-banner-text strong {
  font-size: 0.95rem;
}

.install-banner-text span {
  font-size: 0.8rem;
  opacity: 0.9;
}

.install-banner .install-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: white;
  color: var(--primary-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.install-banner .install-btn:hover {
  transform: translateY(-1px);
}

.install-dismiss-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.install-dismiss-btn:hover {
  color: white;
}

@media (max-width: 520px) {
  .install-banner-inner {
    flex-wrap: wrap;
  }
  .install-banner-text {
    order: 2;
    flex-basis: 100%;
  }
  .install-banner .install-btn {
    order: 3;
    flex: 1;
  }
}

/* ===== Anbieter-Dashboard (login.html, owner-panel) ===== */

.owner-sidebar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.owner-identity-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.owner-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.owner-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.owner-nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ink-mute);
  transition: color 0.2s ease;
}

.owner-nav-btn:hover {
  background: var(--paper-2);
}

.owner-nav-btn.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.owner-nav-btn.active svg {
  color: var(--primary);
}

.owner-install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.owner-install-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.owner-install-btn:hover {
  background: var(--sage-100);
}

.owner-view-title {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.owner-day-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.owner-date-field {
  flex: 1;
  min-width: 160px;
}

.owner-date-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.owner-date-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.owner-date-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.owner-close-day-btn {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.owner-close-day-btn:hover {
  background: var(--paper-2);
  border-color: var(--sage-100);
}

/* ===== Termin-Liste (Alle Termine, Anbieter-Dashboard) ===== */

.appt-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.appt-group-title {
  margin: 0 0 10px;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

[dir="rtl"] .appt-group-title {
  font-family: var(--f-ar);
}

.appt-list {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.appt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.appt-row:last-child {
  border-bottom: none;
}

.appt-row:hover {
  background: var(--paper-2);
}

.appt-row.blocked {
  background: var(--gold-pale);
}

.appt-row.blocked:hover {
  background: var(--gold-pale);
}

.appt-row-time {
  flex-shrink: 0;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.appt-row-customer {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appt-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.appt-row-actions .icon-btn {
  width: 32px;
  height: 32px;
}

@media (max-width: 480px) {
  .appt-row-customer {
    white-space: normal;
  }
}

/* ===== Push-Benachrichtigungen ===== */

.reminder-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-weight: normal;
  font-size: 0.9rem;
  cursor: pointer;
}

.reminder-checkbox input {
  width: auto;
}

.nav-push-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-push-btn svg {
  width: 18px;
  height: 18px;
}

.nav-push-btn:hover {
  background: var(--paper-2);
}

.nav-push-btn.enabled {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.site-footer {
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--ink-mute);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .site-footer {
    font-size: 0.78rem;
    padding: 22px 16px 32px;
  }

  .site-footer p {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}
