:root {
  --sidebar-bg: #FFFFFF;
  --main-bg: #F8F8F8;
  --card-bg: #FFFFFF;

  --nav-inactive: #848386;
  --nav-active: #000000;
  --nav-hover-bg: #F7F6FC;

  --accent: #7D8BE4;
  --accent-bg: #EDEDFF;
  --green: #47A666;
  --green-bg: #E6F5EA;
  --red: #E5493D;
  --red-bg: #FEE5E2;

  --text-primary: #17171A;
  --text-secondary: #848386;
  --border: rgba(60, 60, 67, 0.14);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

::selection {
  color: #4C41A9;
  background-color: rgba(119, 110, 203, 0.08);
}

::-moz-selection {
  color: #4C41A9;
  background-color: rgba(119, 110, 203, 0.08);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--main-bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body.terms-view-active,
body.terms-view-active .app,
body.terms-view-active .main,
body.terms-view-active .content,
body.terms-view-active #page-terms,
body.terms-view-active #page-privacy,
body.terms-view-active #page-support,
body.terms-view-active .terms-sheet {
  background-color: #FFFFFF !important;
}

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

.app.terms-sheet-mode .sidebar {
  display: none;
}

.app.terms-sheet-mode .main {
  width: 100%;
}

.app.owner-sheet-mode .sidebar {
  display: none;
}

.app.owner-sheet-mode .main {
  width: 100%;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 18px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.workspace-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.workspace-switcher:hover {
  background: var(--nav-hover-bg);
}

.workspace-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-left: -9px;
}

.workspace-name {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-subtitle {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.search-field {
  height: 40px;
}

.sidebar-search {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--nav-inactive);
  background: #F8F8F8;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.sidebar-search:focus-within {
  border-color: var(--border);
  background: #F8F8F8;
}

.sidebar-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.sidebar-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
}

.sidebar-search input::placeholder {
  color: var(--nav-inactive);
}

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

.nav-section-label {
  margin: 8px 10px 4px 10px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.nav-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  margin: 8px 0 4px;
  padding: 7px 6px;
  color: var(--nav-inactive);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-section-title .nav-icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.sidebar-back-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: 0 0 auto;
}

#rezervacije {
  padding-left: 0;
}

#sidebar-reservacije-title {
  padding-left: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
}

#sidebar-management-title {
  padding-left: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
}

#founder-nav-section #sidebar-partners {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
}

.main.is-reservacije-page .topbar .search-field,
.main.is-reservacije-page .topbar .btn-primary {
  display: none;
}

@media (min-width: 701px) {
  .main.is-reservacije-page .topbar {
    height: 0;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .main.is-reservacije-page .topbar::after {
    display: none;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--nav-inactive);
  font-size: 14.5px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.nav-item.nav-section-title {
  font-size: 10px;
  font-weight: 700;
}

.nav-item.nav-section-title:hover,
.nav-item.nav-section-title.active {
  background: transparent;
  color: var(--nav-inactive);
}

.nav-item:hover {
  background: var(--nav-hover-bg);
}

.nav-item.active,
.nav-item.active .chevron {
  color: var(--nav-active);
}

.nav-item.active {
  background: var(--nav-hover-bg);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item span {
  flex: 1;
}

.chevron {
  display: none;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--nav-inactive);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.chevron.rotated {
  display: block;
  transform: rotate(180deg);
}

.nav-group-toggle.active .chevron {
  color: var(--nav-active);
}

.nav-subitems {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 30px;
  margin-top: 2px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease, margin-top 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-subitems.collapsed {
  opacity: 0;
  margin-top: 0;
}

.nav-subitem {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--nav-inactive);
  text-decoration: none;
}

#rezervacije .nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

#rezervacije .nav-subitem .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#moji-tereni .nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

#moji-tereni .nav-subitem .nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

#rezervacije .nav-subitem:hover:not(.current),
#moji-tereni .nav-subitem:hover:not(.current) {
  background: transparent;
}

.nav-subitem:hover {
  background: var(--nav-hover-bg);
}

.nav-subitem.current {
  color: var(--nav-active);
  background: var(--nav-hover-bg);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 5px 4px;
}

.sidebar-footer .icon-btn {
  width: 28px;
  height: 28px;
}

.sidebar-footer .icon-btn svg {
  width: 20px;
  height: 20px;
}

#sidebar-logout {
  order: 1;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--nav-inactive);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-active);
}

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

/* ---------- Main ---------- */

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* The public main sheet is a full-screen landing view without the app sidebar. */
@media (min-width: 701px) {
  .app.main-sheet-mode .sidebar {
    display: none;
  }

  .app.main-sheet-mode .main {
    width: 100%;
  }

  .app.terms-sheet-mode .sidebar {
    display: none;
  }

  .app.terms-sheet-mode .main {
    width: 100%;
  }

  .app.owner-sheet-mode .sidebar {
    display: none;
  }

  .app.owner-sheet-mode .main {
    width: 100%;
  }
}

.main.is-main-page {
  position: relative;
  background: #FFFFFF;
}

.main.is-pocetna-page {
  background: #F7F6FC;
}

.main.is-moji-termini-page,
.main.is-moji-termini-page .content,
.main.is-moji-termini-page .topbar,
#page-moji-termini {
  background: #F7F6FC;
}

.main.is-moji-termini-page .topbar::after {
  background: linear-gradient(to bottom, #F7F6FC, rgba(247, 246, 252, 0));
}

.main.is-terms-page,
.main.is-terms-page .content,
.main.is-terms-page #page-terms,
.main.is-terms-page #page-privacy,
.main.is-terms-page #page-support,
.main.is-terms-page .terms-sheet {
  background: #FFFFFF;
}

#page-terms.active {
  min-height: 100vh;
  background: #FFFFFF;
}

.main.is-pocetna-page .topbar {
  background: #F7F6FC;
}

.main.is-pocetna-page .topbar::after {
  top: calc(100% - 6px);
  background: linear-gradient(to bottom, #F7F6FC, rgba(247, 246, 252, 0));
}

.main.is-main-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.main.is-main-page .topbar::after,
.main.is-main-page .search-field,
.main.is-main-page .topbar .btn-primary {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--main-bg);
}

/* Fade-out below the sticky topbar as content scrolls behind it,
   matching the Postavke sheet's .booking-header::after (kept subtle) */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  background: linear-gradient(to bottom, var(--main-bg), rgba(248, 248, 248, 0));
  pointer-events: none;
}

.search-field {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.search-field svg {
  width: 17px;
  height: 17px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.search-field input {
  border: none;
  outline: none;
  background: none;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-primary);
  width: 100%;
}

.search-field input::placeholder {
  color: var(--text-secondary);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #6B7ADD;
}

.content {
  padding: 4px 32px 40px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

#page-main.active {
  display: block;
}

#page-pocetna.active {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 84px);
  background: #F7F6FC;
}

#page-pocetna #venue-sections {
  flex: 1 0 auto;
}

/* Floating "Danas" pill — mirrors Memo's goToTodayButton, inverted to a white fill */
.today-pill {
  position: fixed;
  bottom: 32px;
  left: calc(50% + 124px);
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
}

.today-pill[hidden] {
  display: none;
}

.today-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 20px;
}

/* ---------- Main sheet ---------- */

.main-sheet {
  position: relative;
  min-height: calc(100vh - 44px);
  padding: 20px 0 0;
  background: #FFFFFF;
  color: #2E285A;
}

.main-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1100px, calc(100% - 128px));
  position: absolute;
  right: 64px;
  bottom: -24px;
  left: 64px;
  width: auto;
  margin: 0;
  color: rgba(113, 107, 141, 0.6);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.main-sheet-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.main-sheet-footer a:hover,
.main-sheet-footer a:focus-visible {
  color: #312A52;
}

.main-sheet-footer--main {
  justify-content: center;
}

.main-sheet-footer--main > span:last-child {
  position: absolute;
  right: 0;
}

.main-sheet-site-footer {
  position: relative;
  height: 503px;
  min-height: 503px;
  margin: 80px 0 -56px;
  overflow: hidden;
  background: #FFFFFF;
  color: #716B8D;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 14px;
}

.main-sheet-site-footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  width: min(1100px, calc(100% - 128px));
  margin: 0 auto;
  padding-top: 72px;
}

.main-sheet-site-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.main-sheet-site-footer-content > .main-sheet-site-footer-column:nth-child(2) {
  grid-column: 2;
  align-items: center;
  text-align: center;
}

.main-sheet-site-footer-content > .main-sheet-site-footer-column:first-child {
  align-items: center;
  text-align: center;
}

.main-sheet-site-footer-content > .main-sheet-site-footer-column:nth-child(3) {
  align-items: center;
  text-align: center;
}

.main-sheet-site-footer-heading {
  margin-bottom: 4px;
  color: #312A52;
  font-weight: 600;
}

.main-sheet-site-footer a { color: #716B8D; text-decoration: none; }
.main-sheet-site-footer a:hover { color: #312A52; }
.main-sheet-site-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #716B8D;
  font: inherit;
  cursor: pointer;
}
.main-sheet-site-footer button:hover,
.main-sheet-site-footer button:focus-visible { color: #312A52; }

.main-sheet-site-footer-meta {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 172px;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(1100px, calc(100% - 128px));
  margin: 0 auto;
  align-items: start;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 21px;
}

.main-sheet-site-footer-copyright,
.main-sheet-site-footer-soc {
  color: rgba(113, 107, 141, 0.5);
}

.main-sheet-site-footer-copyright {
  justify-self: center;
  text-align: center;
}

.main-sheet-site-footer-tagline {
  margin: 0;
  color: #716B8D;
  justify-self: center;
  text-align: center;
  grid-column: 2;
}

.main-sheet-site-footer-soc {
  display: block;
  justify-self: end;
}

.main-sheet-site-footer-soc a {
  color: inherit;
}

.main-sheet-site-footer-soc a:hover,
.main-sheet-site-footer-soc a:focus-visible {
  color: #312A52;
}

.main-sheet-site-footer-grid,
.main-sheet-site-footer-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.main-sheet-site-footer-grid {
  display: block;
  position: absolute;
  inset: auto 0 0;
  width: calc(100% + 64px);
  height: 164px;
  margin-left: -32px;
  margin-right: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(120% 160% at 50% 100%, rgba(0, 0, 0, .7), transparent 75%);
  mask-image: radial-gradient(120% 160% at 50% 100%, rgba(0, 0, 0, .7), transparent 75%);
}

.main-sheet-site-footer-svg {
  display: block;
  width: 100%;
  height: 164px;
  pointer-events: none;
}
.main-sheet-site-footer-hover-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(14, 96.467px);
  grid-auto-rows: 54.416px;
  overflow: hidden;
  pointer-events: none;
}

.main-sheet-site-footer-hover-cell {
  display: block;
  background: transparent;
  pointer-events: auto;
  transition: background-color .5s ease-out;
}

.main-sheet-site-footer-hover-cell:hover {
  background: rgba(109, 94, 183, .1);
  transition: background-color .08s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .main-sheet-site-footer-hover-cell { transition: none; }
}

.main-sheet-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.main-sheet-footer-back svg {
  width: 16px;
  height: 16px;
}

.support-sheet-footer {
  height: 164px;
  bottom: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding-bottom: 24px;
}

.support-sheet-footer > *:not(.support-sheet-grid) {
  position: relative;
  z-index: 1;
}

.support-sheet-site-footer {
  margin-bottom: -56px;
}

@media (min-width: 701px) {
  #page-terms .terms-sheet,
  #page-privacy .terms-sheet {
    padding-bottom: 300px;
  }

  .support-sheet-footer {
    right: 0;
    bottom: -56px;
    left: 0;
    width: 100%;
    height: 503px;
    padding: 0;
    align-items: initial;
    justify-content: initial;
  }

  .support-sheet-footer > span:not(.support-sheet-footer-links):not(.support-sheet-grid):not(.main-sheet-site-footer-grid) {
    position: absolute;
    right: 0;
    bottom: 172px;
    left: 0;
    margin: 0;
    color: #716B8D;
    font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 450;
    line-height: 21px;
    text-align: center;
  }

  .support-sheet-site-footer {
    position: absolute;
    right: 0;
    bottom: -56px;
    left: 0;
    margin: 0;
  }
}

.support-sheet-grid {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: 164px;
  opacity: .7;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168,161,225,.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168,161,225,.28) 1px, transparent 1px);
  background-size: 96.467px 54.416px;
  -webkit-mask-image: radial-gradient(120% 160% at 50% 100%, rgba(0,0,0,.7), transparent 75%);
  mask-image: radial-gradient(120% 160% at 50% 100%, rgba(0,0,0,.7), transparent 75%);
}

.main-sheet-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  width: calc(100% + 64px);
  padding: 16px 64px;
  margin-top: -24px;
  margin-left: -32px;
  margin-bottom: 64px;
  background: #FFFFFF;
}

.main-sheet-nav.is-scrolled::after {
  content: "";
  position: absolute;
  right: 64px;
  bottom: 0;
  left: 64px;
  height: 1px;
  border-bottom: 1px solid #EEEEF7;
  pointer-events: none;
}

.main-sheet-brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  color: #312A52;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
}

.main-sheet-brand,
.main-sheet-brand:hover,
.main-sheet-brand:focus,
.main-sheet-brand:focus-visible {
  color: #312A52;
  text-decoration: none;
  opacity: 1;
}

.main-sheet-brand img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.main-sheet-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  grid-column: 2;
}

.main-sheet-nav-links button {
  position: relative;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #4D4778;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  cursor: pointer;
  transition: color 0.24s ease;
}

.main-sheet-nav-links button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 1px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-sheet-nav-links button:hover {
  background: transparent;
  color: var(--accent);
}

.main-sheet-nav-links button:hover::after,
.main-sheet-nav-links button:focus-visible::after {
  transform: scaleX(1);
}

.main-sheet-nav-links button:focus-visible {
  outline: 2px solid rgba(125, 139, 228, 0.35);
  outline-offset: 3px;
}

.main-sheet-login {
  justify-self: end;
  min-height: 40px;
  margin-left: 0;
  padding: 0 12px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #312A52;
  box-shadow: 0 0 0 1px #E2E2F1;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 22.4px;
  transition: box-shadow 0.3s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    background 0.1s ease;
}

.main-sheet-login:hover {
  background: #F7F6FC;
  color: #312A52;
  box-shadow: 0 0 0 1px #C8C6E4;
}

.main-sheet-hero {
  position: relative;
  width: min(648px, 92%);
  margin: 0 auto;
  text-align: center;
  transform: translateY(-36px);
}

.main-sheet-hero-lines {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(1100px, 100vw);
  aspect-ratio: 1100 / 668;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

.main-sheet-hero-lines img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  top: -34%;
  left: -15.45%;
  width: 130.91%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.terms-sheet {
  position: relative;
  min-height: 100vh;
  padding: 20px 0 128px;
  background: #FFFFFF;
  color: #2E285A;
}

.terms-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(640px, calc(100% - 48px));
  margin: 72px auto 0;
  text-align: center;
}

.terms-content h1 {
  margin: 0;
  color: #312A52;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.terms-copy {
  width: 100%;
  margin-top: 64px;
  text-align: left;
}

.terms-copy p,
.terms-copy h2 {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.terms-copy p {
  margin: 0 0 28px;
  color: #312A52;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.terms-copy a {
  color: #6B5CB4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

.terms-copy a:hover,
.terms-copy a:focus-visible {
  color: #51458E;
}

.terms-copy a:active {
  color: #3F326F;
}

.terms-copy h2 {
  margin: 36px 0 12px;
  color: #312A52;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 550;
}

.main-sheet-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #2D2857;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.main-sheet-hero h1 span {
  white-space: nowrap;
  background: linear-gradient(90deg, #302951 0%, #6D5EB7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.main-sheet-hero p {
  position: relative;
  z-index: 1;
  margin: 24px auto 0;
  max-width: 560px;
  color: #716B8D;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 450;
  letter-spacing: -0.18px;
}

.main-sheet-cta {
  position: relative;
  z-index: 1;
  margin: 32px auto 0;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  background: #312A52;
  color: #FFFFFF;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  font-weight: 550;
  letter-spacing: -0.16px;
  transition: background 0.1s ease, color 0.2s ease, box-shadow 0.3s ease;
  box-shadow:
    0 0 0 1px #4D4878,
    0 0.5px 0 rgba(125, 121, 147, 1) inset,
    0 0 0 0.75px rgba(255, 255, 255, 0.36) inset,
    0 21px 6px rgba(30, 26, 61, 0.01),
    0 14px 6px rgba(30, 26, 61, 0.05),
    0 8px 5px rgba(30, 26, 61, 0.16),
    0 3px 3px rgba(30, 26, 61, 0.28),
    0 1px 2px rgba(30, 26, 61, 0.32);
}

.btn-primary.main-sheet-cta:hover,
.btn-primary.main-sheet-cta:focus-visible {
  background: #4D4878;
  color: #FFFFFF;
}

.main-sheet-feature {
  width: min(1100px, calc(100% - 128px));
  margin: 194px auto 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
  transform: translateX(73px);
}

.main-sheet-feature-scroll-track {
  height: 400vh;
}

.main-sheet-feature-scroll-track > .main-sheet-feature {
  position: sticky;
  top: 0;
}

.main-sheet-feature-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  transform: translateY(32px);
}

.main-sheet-feature-body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.main-sheet-feature-copy {
  width: 412px;
  flex-shrink: 0;
  padding: 0;
  align-self: center;
  transform: translateY(-24px);
}

.main-sheet-feature-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(109, 94, 183, 0.07);
  color: #6D5EB7;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-sheet-feature h2 {
  margin: 0;
  color: #312A52;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0;
}

.main-sheet-feature h2 span {
  background: linear-gradient(90deg, #302951, #6D5EB7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.main-sheet-feature h3 {
  margin: 0;
  color: #312A52;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0;
}

.main-sheet-feature-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-sheet-feature-title-icon {
  position: relative;
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: currentColor;
}

.main-sheet-feature-title-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  color: #302A61;
}

.main-sheet-feature-title-icon--calendar svg {
  display: block !important;
  width: 24px;
  height: 24px;
  color: #302A61;
}

.main-sheet-feature-title-icon--calendar::before,
.main-sheet-feature-title-icon--calendar::after {
  display: none !important;
  content: none !important;
}

.main-sheet-feature-title--secondary {
  margin-top: 72px !important;
}

.main-sheet-feature-secondary-copy {
  max-width: 412px;
  margin-top: 12px !important;
}

.main-sheet-feature-title--confirmation {
  margin-top: 72px !important;
}

.main-sheet-feature-title-icon--confirmation svg {
  display: block !important;
  width: 24px;
  height: 24px;
  color: #302A61;
}

.main-sheet-feature-title-icon--confirmation::before,
.main-sheet-feature-title-icon--confirmation::after {
  display: none !important;
  content: none !important;
}

.main-sheet-feature-title--support {
  margin-top: 72px !important;
}

.main-sheet-feature-title-icon--support svg {
  display: block !important;
  width: 24px;
  height: 24px;
  color: #302A61;
}

.main-sheet-feature-title-icon--support::before,
.main-sheet-feature-title-icon--support::after {
  display: none !important;
  content: none !important;
}

/* Soccer-ball icon for the court-selection step. */
.main-sheet-feature-title-icon::before {
  content: "";
  display: none;
}

.main-sheet-feature-title-icon::after {
  content: "";
  display: none;
}

.main-sheet-feature p {
  margin: 12px 0 0;
  color: #716B8D;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 450;
  letter-spacing: 0;
}

.main-sheet-feature-step {
  opacity: 0.28 !important;
  transition: opacity 180ms ease;
}

.main-sheet-feature-step.is-active,
.main-sheet-feature-step-copy.is-active {
  opacity: 1 !important;
}

.main-sheet-feature-step-copy {
  max-height: 0;
  overflow: hidden;
  margin-top: 0 !important;
  opacity: 0 !important;
  transition: max-height 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.main-sheet-feature-step-copy:not(.is-active) {
  display: block;
  visibility: hidden;
}

.main-sheet-feature-step-copy.is-active {
  max-height: 120px;
  margin-top: 12px !important;
}

.main-sheet-feature-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(76, 70, 120, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(58, 53, 111, 0.1);
}

.main-sheet-feature-check {
  display: grid;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: #302A61;
  color: #FFFFFF;
}

.main-sheet-feature-check svg {
  width: 12px;
  height: 12px;
}

.main-sheet-feature-note strong,
.main-sheet-feature-secondary strong {
  display: block;
}

.main-sheet-feature-note strong {
  color: #302A61;
  font-size: 15px;
}

.main-sheet-feature-note div span {
  margin-top: 4px;
  color: rgba(46, 40, 90, 0.5);
  font-size: 14px;
}

.main-sheet-feature-note-copy {
  transition: opacity 180ms ease, transform 180ms ease;
}

.main-sheet-feature-note-copy.is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.main-sheet-feature-secondary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 78px;
  color: rgba(46, 40, 90, 0.28);
  font-size: 27px;
}

.main-sheet-feature-visual {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  align-items: flex-start;
}

.main-sheet-feature-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  transform: none;
  margin-bottom: 0;
}

.main-sheet-feature-image {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

.main-sheet-feature-mobile-image { display: none; }

.main-sheet-feature-next {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7164C5;
  cursor: pointer;
}

.main-sheet-feature-next:hover {
  background: transparent;
  color: #7164C5;
}

.main-sheet-feature-next svg {
  width: 24px;
  height: 24px;
}

.main-sheet-faq {
  width: min(1100px, calc(100% - 128px));
  margin: 210px auto 0;
  padding: 0 0 110px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1fr);
  gap: 96px;
  color: #111111;
}

.main-sheet-vision {
  width: min(1100px, 100%);
  box-sizing: border-box;
  padding: 0 64px;
  margin: 190px auto 0;
  color: #312A52;
}

.main-sheet-vision > h2 {
  margin: 32px 0 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 550;
}

.main-sheet-vision > h2 span {
  background: linear-gradient(90deg, #302951, #6D5EB7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-sheet-vision-subtitle {
  max-width: 590px;
  margin: 24px 0 0;
  color: #716B8D;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.main-sheet-vision-cards {
  position: relative;
  aspect-ratio: 1100 / 861;
  margin-top: 56px;
  overflow: visible;
  background: transparent;
}

.main-sheet-vision-backdrop,
.main-sheet-vision-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.main-sheet-vision-backdrop img {
  object-fit: fill;
  opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.main-sheet-vision-hover-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.main-sheet-vision-hover-cell {
  position: absolute;
  display: block;
  background: transparent;
  pointer-events: auto;
  transition: background-color .5s ease-out;
}

.main-sheet-vision-hover-cell:hover {
  background: rgba(109, 94, 183, .1);
  transition: background-color .08s ease-out;
}

.main-sheet-vision-card {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 33.36%;
  height: 33.33%;
  margin: 0;
  padding: 24px;
  border: .5px solid rgba(48, 41, 81, .1);
  border-radius: 0;
  background: transparent;
  color: #716B8D;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: default;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.main-sheet-vision-card[data-vision-card="0"] { left: 13.75%; top: 0; }
.main-sheet-vision-card[data-vision-card="1"] { right: 13.75%; top: 33.33%; }
.main-sheet-vision-card[data-vision-card="2"] { left: 13.75%; top: 66.66%; }

.main-sheet-vision-card.is-active {
  border-color: #6D5EB7;
  background: rgba(109, 94, 183, .08);
  color: #312A52;
  box-shadow: none;
}

.main-sheet-vision-number {
  min-width: 44px;
  color: #4D4878;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: rgba(49, 42, 82, .4);
}

.main-sheet-vision-card-text { display: flex; flex-direction: column; gap: 8px; }
.main-sheet-vision-copy-mobile { display: none; }
.main-sheet-vision-card-text strong { font-size: 22px; font-weight: 550; line-height: 1.5; letter-spacing: -0.01em; }
.main-sheet-vision-card-text span { font-size: 16px; font-weight: 450; line-height: 1.5; letter-spacing: -0.01em; }

.main-sheet-vision-marker {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  width: 10px;
  height: 10px;
  display: none;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  background: #6D5EB7;
}

.main-sheet-vision-card.is-active .main-sheet-vision-marker { display: block; }

@media (max-width: 700px) {
  .main-sheet-vision {
    width: min(330px, 100%);
    padding: 0;
    margin-top: 120px;
  }

  .main-sheet-vision > h2 { font-size: 32px; }
  .main-sheet-vision-cards { min-height: 760px; margin-top: 40px; aspect-ratio: auto; }
  .main-sheet-vision-backdrop { opacity: 0; }
  .main-sheet-vision-card {
    width: 78%;
    height: 220px;
    padding: 20px;
    background: #FFFFFF;
  }
  .main-sheet-vision-card[data-vision-card="0"],
  .main-sheet-vision-card[data-vision-card="2"] { left: 11%; }
  .main-sheet-vision-card[data-vision-card="1"] { right: 11%; }
  .main-sheet-vision-copy-desktop { display: none; }
  .main-sheet-vision-copy-mobile { display: inline; }
}

.main-sheet-faq-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.main-sheet-faq h2 {
  margin: 0;
  color: #312A52;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0;
}

.main-sheet-faq h2 span {
  color: #312A52;
}

.main-sheet-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.main-sheet-faq-item {
  border: 1px solid rgba(168, 161, 225, 0.2);
  border-radius: 8px;
  padding: 0 20px;
  background: #FFFFFF;
}

.main-sheet-faq-icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  order: 2;
  margin: -2px 0 0 auto;
  border-radius: 4px;
  color: #4D4878;
  background: transparent;
}

.main-sheet-faq-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.main-sheet-faq-plus {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  color: #4D4878;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.main-sheet-faq-plus::before,
.main-sheet-faq-plus::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 12px;
  height: 1px;
  background: #4D4878;
}

.main-sheet-faq-plus::after {
  transform: rotate(90deg);
}

.main-sheet-faq-plus svg { display: none; }

.main-sheet-faq-item[open] .main-sheet-faq-icon {
  box-shadow: none;
}

.main-sheet-faq-item[open] .main-sheet-faq-plus {
  transform: rotate(135deg);
}

.main-sheet-faq-item[open] summary {
  color: #312A52;
}

.main-sheet-faq-item summary {
  width: 100%;
  list-style: none;
  padding: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #312A52;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  font-weight: 550;
  cursor: pointer;
}

.main-sheet-faq-item summary::-webkit-details-marker { display: none; }

.main-sheet-faq-question {
  display: inline-block;
  transform: translateY(-2px);
}

.main-sheet-faq-answer {
  padding-left: 0;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.main-sheet-faq-item p {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #716B8D;
  font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 450;
}

.main-sheet-demo-cta {
  position: relative;
  width: calc(100% + 64px);
  min-height: 409px;
  margin: 64px 0;
  margin-left: -32px;
  padding: 104px 64px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(168, 161, 225, .1);
  color: #312A52;
}

.main-sheet-demo-cta-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,0) 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.9));
  mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,0) 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.9));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.main-sheet-demo-cta-grid svg {
  display: block;
  width: 100%;
  height: 100%;
}

.main-sheet-demo-cta-hover-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,0) 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.9));
  mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,0) 42%, rgba(0,0,0,0) 58%, rgba(0,0,0,.9));
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 16), var(--cell-w, 83px));
  grid-template-rows: repeat(var(--rows, 6), var(--cell-h, 80px));
  grid-auto-rows: var(--cell-h, 80px);
  overflow: hidden;
  pointer-events: none;
}

.main-sheet-demo-cta-hover-cell {
  display: block;
  pointer-events: auto;
  background-color: transparent;
  transition: background-color .5s ease-out;
}

.main-sheet-demo-cta-hover-cell:hover {
  background-color: rgba(109, 94, 183, .1);
  transition: background-color .08s ease-out;
}

.main-sheet-demo-cta-hover-cell.is-hovered {
  background-color: rgba(109, 94, 183, .1);
  transition: background-color .08s ease-out;
}

.main-sheet-demo-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 201px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  text-align: center;
}

.main-sheet-demo-cta h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 52px;
  line-height: 62.4px;
  font-weight: 550;
  letter-spacing: -.52px;
}

.main-sheet-demo-cta h2 span {
  background: linear-gradient(90deg, #302951, #6D5EB7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-sheet-demo-cta-button {
  display: flex;
  width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: #312A52;
  color: #FFFFFF;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  font-weight: 550;
  letter-spacing: -.16px;
  text-decoration: none;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px #4D4878, 0 .5px 0 #7D7993 inset, 0 0 0 .75px rgba(255,255,255,.36) inset, 0 21px 6px rgba(30,26,61,.01), 0 14px 6px rgba(30,26,61,.05), 0 8px 5px rgba(30,26,61,.16), 0 3px 3px rgba(30,26,61,.28), 0 1px 2px rgba(30,26,61,.32);
  transition: box-shadow .3s cubic-bezier(.215,.61,.355,1), color .2s cubic-bezier(.215,.61,.355,1), background .1s cubic-bezier(.215,.61,.355,1);
}

.main-sheet-demo-cta-button::before,
.main-sheet-demo-cta-button::after { content: ""; position: absolute; inset: 1px; z-index: 1; border-radius: inherit; }
.main-sheet-demo-cta-button::before { background: radial-gradient(100.92% 100% at 50% 0%, hsla(0,0%,100%,.12), hsla(0,0%,100%,.2)), #1D1A3B; opacity: 1; transition: opacity .2s cubic-bezier(.215,.61,.355,1); }
.main-sheet-demo-cta-button::after { background: radial-gradient(100.92% 100% at 50% 0%, hsla(0,0%,100%,.02), rgba(0,0,0,.16)), #4D4878; opacity: 0; transition: opacity .28s cubic-bezier(.165,.84,.44,1); }
.main-sheet-demo-cta-button span { position: relative; z-index: 2; bottom: 1px; }
.main-sheet-demo-cta-button-wrap { margin-top: 32px; }

.main-sheet-demo-cta-button:hover,
.main-sheet-demo-cta-button:focus-visible {
  background: #4D4878;
  color: #EEEFF7;
  box-shadow: 0 0 0 1px #1D1A3B, 0 .5px 0 rgba(255,255,255,.22) inset, 0 0 0 .75px rgba(255,255,255,.28) inset, 0 19px 6px rgba(30,26,61,.01), 0 13px 7px rgba(30,26,61,.04), 0 7px 5px rgba(30,26,61,.12), 0 3px 4px rgba(30,26,61,.24), 0 1px 1px rgba(30,26,61,.28);
  transform: none;
}
.main-sheet-demo-cta-button:hover::before,
.main-sheet-demo-cta-button:focus-visible::before { opacity: 0; }
.main-sheet-demo-cta-button:hover::after,
.main-sheet-demo-cta-button:focus-visible::after { opacity: 1; }

@media (max-width: 700px) {
  .support-sheet-site-footer { margin-bottom: -128px; }

  .main-sheet-site-footer {
    margin-bottom: -128px;
  }

  .main-sheet-site-footer-grid {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 164px;
    margin: 0;
    z-index: 2;
  }

  .main-sheet-site-footer-meta {
    position: absolute;
    right: 0;
    bottom: 172px;
    left: 0;
    width: min(330px, calc(100% - 36px));
    margin: 0 auto;
    z-index: 3;
  }

  #page-terms .support-sheet-footer,
  #page-privacy .support-sheet-footer {
    bottom: 0;
  }

  #page-terms .support-sheet-footer .main-sheet-site-footer-grid,
  #page-privacy .support-sheet-footer .main-sheet-site-footer-grid {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 164px;
    margin: 0;
    z-index: 2;
  }

  #page-terms .support-sheet-footer > span:not(.support-sheet-footer-links):not(.support-sheet-grid):not(.main-sheet-site-footer-grid),
  #page-privacy .support-sheet-footer > span:not(.support-sheet-footer-links):not(.support-sheet-grid):not(.main-sheet-site-footer-grid) {
    position: absolute;
    right: 0;
    bottom: 172px;
    left: 0;
    z-index: 3;
  }

  .main-sheet-demo-cta { width: calc(100% + 36px); min-height: 330px; margin: 48px 0 48px -18px; padding: 64px 20px; }
  .main-sheet-demo-cta-content { min-height: 202px; gap: 0; }
  .main-sheet-demo-cta-button-wrap { margin-top: 32px; }
  .main-sheet-demo-cta h2 { font-size: 32px; line-height: 38.4px; letter-spacing: -.32px; }
  .main-sheet-site-footer { height: 520px; min-height: 520px; margin-top: 56px; }
  .main-sheet-site-footer-grid {
    width: 100%;
    height: 164px;
  }

  .main-sheet-site-footer,
  .support-sheet-footer {
    overflow: visible;
  }

  .main-sheet-site-footer .main-sheet-site-footer-grid,
  .support-sheet-footer .main-sheet-site-footer-grid {
    right: auto;
    left: 50%;
    width: 100vw;
    margin-left: 0;
    transform: translateX(-50%);
  }

  #page-terms .support-sheet-footer .main-sheet-site-footer-grid,
  #page-privacy .support-sheet-footer .main-sheet-site-footer-grid {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .main-sheet .main-sheet-site-footer {
    overflow: visible;
  }

  .main-sheet .main-sheet-site-footer .main-sheet-site-footer-grid {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 164px;
    margin: 0;
    transform: translateX(-50%);
  }

  .main-sheet-site-footer-content {
    width: min(330px, calc(100% - 36px));
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-top: 48px;
  }
  .main-sheet-site-footer-content > .main-sheet-site-footer-column:nth-child(2) {
    grid-column: auto;
    align-items: center;
    text-align: center;
  }
  .main-sheet-site-footer-content > .main-sheet-site-footer-column:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
    text-align: center;
  }
  .main-sheet-site-footer-content > .main-sheet-site-footer-column:first-child {
    align-items: center;
    text-align: center;
  }
  .main-sheet-site-footer-meta {
    bottom: 172px;
    width: min(330px, calc(100% - 36px));
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .main-sheet-site-footer-tagline { grid-column: auto; }
  .main-sheet-site-footer-soc {
    justify-self: start;
  }

  .main-sheet-faq {
    width: min(330px, 100%);
    margin-top: 120px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    gap: 44px;
  }

  .main-sheet-faq-heading { gap: 28px; }
  .main-sheet-faq h2 { font-size: 32px; }
  .main-sheet-faq-item summary { padding: 20px 0 12px; font-size: 16px; line-height: 24px; }
  .main-sheet-faq-answer { padding-left: 0; padding-bottom: 20px; gap: 10px; }
}

@media (max-width: 1100px) {
  .main-sheet-nav-links {
    gap: 30px;
  }

  .main-sheet-login {
    right: 32px;
  }

  .main-sheet-hero h1 {
    font-size: 60px;
  }

  .main-sheet-hero p {
    font-size: 17px;
  }

  .main-sheet-feature {
    width: min(1100px, calc(100% - 80px));
  }

  .main-sheet-feature-scroll-track {
    height: auto;
  }

  .main-sheet-feature-scroll-track > .main-sheet-feature {
    position: relative;
  }
}

/* Keep every element in the reservation flow on the app font stack. */
.venue-flow-card,
#page-booking.booking-sheet--compact .calendar-card,
#page-review.confirmation-stage .confirmation-card,
#page-reservation-success .task-success-card,
.venue-flow-card button,
#page-booking.booking-sheet--compact button,
#page-review.confirmation-stage button,
#page-reservation-success .task-success-card button {
  font-family: inherit;
}

/* ---------- Venue sections (Početna) ---------- */
/* ---------- Compact venue reservation flow ---------- */

body.venue-flow-open {
  overflow: hidden;
}

.venue-detail.venue-detail--pattern.active {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(35, 35, 39, 0.2);
  backdrop-filter: blur(2px);
}

.venue-detail--pattern .venue-flow-backdrop {
  position: absolute;
  inset: 0;
}

.venue-flow-close {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.venue-flow-close:hover {
  background: #FFFFFF;
}

.venue-flow-close svg {
  width: 20px;
  height: 20px;
}

.venue-flow-card {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
  overflow: hidden;
  border-radius: 14px;
  color: var(--text-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.venue-flow-media {
  position: relative;
  width: 100%;
  height: 192px;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: inherit;
  background: #111;
  cursor: zoom-in;
  text-align: left;
}

.venue-flow-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.venue-flow-media:focus-visible {
  outline: 3px solid #A8A1E1;
  outline-offset: -3px;
}

.venue-gallery-dialog[hidden] {
  display: none;
}

.venue-gallery-dialog {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 24, 32, 0.64);
  backdrop-filter: blur(7px);
}

.venue-gallery-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 24px));
  background: transparent;
}

.venue-gallery-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.venue-gallery-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 12px;
  background: transparent;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
}

.venue-gallery-viewport::-webkit-scrollbar {
  display: none;
}

.venue-gallery-viewport:focus-visible {
  outline: none;
}

.venue-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.venue-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  scroll-snap-align: start;
}

.venue-gallery-slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.venue-gallery-nav {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.venue-gallery-nav:hover,
.venue-gallery-nav:focus-visible {
  color: var(--accent);
  background: #FFFFFF;
}

.venue-gallery-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body.venue-gallery-open {
  overflow: hidden;
}

.venue-flow-default-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}

.venue-flow-default-copy h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.venue-flow-direction {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.venue-flow-direction-arrow {
  font-size: 18px;
  line-height: 1;
}

.venue-flow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px 24px;
}

.venue-detail--pattern .venue-flow-content .teren-row {
  align-self: flex-start;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  margin: 0 !important;
  padding: 0;
}

.venue-detail--pattern .venue-flow-content .teren-pill {
  min-width: 22px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 10px;
  border: 1px solid #E4E4E7;
  border-radius: 8px;
  color: var(--text-primary);
  background: transparent;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.venue-detail--pattern .venue-flow-content .teren-pill:hover {
  border-color: #CFD2E6;
  color: #525CAA;
  background: #F7F8FF;
}

.venue-detail--pattern .venue-flow-content .teren-pill.selected {
  padding: 0 9px;
  border: 2px solid var(--accent);
  background: var(--accent-bg);
}

.venue-flow-copy {
  width: 100%;
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  white-space: pre-line;
  text-wrap: pretty;
}

.venue-detail--pattern .venue-flow-content .btn-book {
  width: 100%;
  min-width: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #FFFFFF;
  background: var(--accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.venue-detail--pattern .venue-flow-content .btn-book:hover:not(:disabled) {
  background: #6B7ADD;
}

.venue-detail--pattern .venue-flow-content .btn-book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.venue-detail--pattern .venue-flow-content .btn-book svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .venue-detail.venue-detail--pattern.active {
    align-items: center;
    padding: 12px;
  }

  .venue-flow-close {
    top: 12px;
    left: 12px;
  }

  .venue-gallery-dialog {
    padding: 12px;
  }

  .venue-gallery-panel {
    width: min(720px, calc(100vw - 24px));
  }

  .venue-gallery-carousel {
    gap: 10px;
  }

  .venue-gallery-nav {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

.venue-section {
  margin-bottom: 28px;
}

.venue-section-title {
  margin: 0 0 12px;
  color: #323237;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.venue-search-empty {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.venue-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 0 -32px;
  padding: 2px 32px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 32px;
  scroll-padding-right: 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.venue-row::-webkit-scrollbar {
  display: none;
}

.venue-card {
  flex: 0 0 min(377.5px, calc((100vw - 423px) / 2));
  scroll-snap-align: start;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #EDEDEE;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.015);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.venue-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.venue-card .app-logo {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  color: #2F2F33;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.venue-card .app-logo img {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: contain;
  transform: translateX(calc(-7px + var(--venue-logo-shift-x, 0px))) scale(var(--venue-logo-scale, 1));
}

/* Normalize each source logo's visible artwork without changing the card
   geometry, then align the visible logo edge with the venue-name text. */
.venue-card .logo-salata {
  --venue-logo-scale: 1;
  --venue-logo-shift-x: 4.3px;
}

.venue-card .logo-oranice {
  --venue-logo-scale: 1.29;
  --venue-logo-shift-x: 4.3px;
}

.venue-card .logo-trnje {
  --venue-logo-scale: 1.18;
  --venue-logo-shift-x: 4.1px;
}

.venue-card .logo-garfield {
  /* Keep the visible Garfield word aligned while reducing the logo footprint. */
  --venue-logo-scale: 1.12;
  --venue-logo-shift-x: -1.9px;
}

.venue-card .logo-rudes {
  --venue-logo-scale: 1.12;
  --venue-logo-shift-x: 3.5px;
}

.venue-card .logo-fairplay {
  --venue-logo-scale: 0.93;
  --venue-logo-shift-x: 4.5px;
}

.venue-card .logo-sportify {
  --venue-logo-scale: 1.03;
  --venue-logo-shift-x: 4.4px;
}

.venue-card .logo-salas {
  --venue-logo-scale: 1;
  --venue-logo-shift-x: 6px;
}

.venue-card .logo-garfield img {
  width: 82px;
  height: 82px;
}

@media (min-width: 701px) and (max-width: 900px) {
  .venue-card {
    flex-basis: calc((100vw - 292px) / 2);
  }
}

.venue-card .app-copy {
  min-width: 0;
  width: 100%;
}

.venue-card .app-copy h3 {
  overflow: visible;
  margin: 0 0 7px;
  color: #39393E;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.05;
  text-overflow: clip;
  white-space: normal;
}

.venue-card .app-copy p {
  overflow: hidden;
  margin: 0;
  color: #77777D;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: normal;
}

.venue-card .app-card-footer {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: -5px;
}

.venue-card .app-card-label {
  min-width: 0;
  color: #77777D;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
}

.venue-card .app-action {
  width: auto;
  height: auto;
  min-height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #7D8BE4;
  background: transparent;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18px;
}

.venue-card .app-action:hover {
  color: #525CAA;
  background: transparent;
  text-decoration: underline;
}

.venue-card .app-action svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Stat cards ---------- */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.stat-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--nav-hover-bg);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* ---------- Filters ---------- */

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

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

.filters-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-right: 4px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}

.filter-chip svg {
  width: 13px;
  height: 13px;
  color: var(--text-secondary);
}

.filter-chip:hover {
  background: var(--nav-hover-bg);
}

.filter-chip--text {
  border-style: solid;
  border-color: transparent;
  color: var(--text-secondary);
  padding-left: 8px;
  padding-right: 8px;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.date-range svg {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

/* ---------- Table ---------- */

.table-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.bookings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.bookings-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.bookings-table td {
  padding: 15px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.bookings-table tbody tr:last-child td {
  border-bottom: none;
}

.bookings-table tbody tr:hover {
  background: #FCFCFD;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
}

.customer-name {
  font-weight: 600;
  color: var(--text-primary);
}

.venue-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.venue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.amount-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.badge--upcoming {
  background: var(--accent-bg);
  color: var(--accent);
}

.badge--cancelled {
  background: var(--red-bg);
  color: var(--red);
}

.badge--finished {
  background: var(--green-bg);
  color: var(--green);
}

.due-cell, .created-cell {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.row-menu {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-menu:hover {
  background: var(--nav-hover-bg);
  color: var(--text-primary);
}

.row-menu svg {
  width: 16px;
  height: 16px;
}

/* ---------- Venue detail sheet ---------- */

.venue-detail {
  display: none;
  background: var(--main-bg);
}

.venue-detail.active {
  display: block;
}

.venue-detail-hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.venue-detail-gallery {
  display: flex;
  width: 110%;
  height: 110%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.venue-detail-gallery::-webkit-scrollbar {
  display: none;
}

.venue-detail-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
  background: #111;
}

.venue-detail-gallery-slide::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--gallery-image) center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.42;
  transform: scale(1.05);
}

.venue-detail-gallery-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-detail-gallery-slide--fit img {
  width: 84%;
  height: 84%;
  margin: 0;
  object-fit: contain;
}

.venue-detail-gallery-slide--sportify::before {
  display: none;
}

.venue-detail-gallery-slide--sportify img {
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  object-fit: cover !important;
}

.venue-detail-gallery-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
}

.venue-detail-gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.venue-detail-gallery-dot.active {
  background: #FFFFFF;
}

.venue-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-detail-inner {
  padding: 0 32px;
}

.venue-detail-back {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.venue-detail-back svg {
  width: 20px;
  height: 20px;
}

.venue-detail-body {
  padding: 18px 0 38px;
}

.venue-detail-body > * + * {
  margin-top: 14px;
}

.venue-detail-name {
  font-size: 25px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.venue-detail-meta {
  font-size: 15px;
  color: var(--text-secondary);
}

.venue-detail-type {
  font-size: 15px;
  color: var(--text-primary);
}

.venue-detail-court-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.2;
  margin-top: 14px !important;
}

.venue-detail-court-hint-arrow {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.venue-detail-divider {
  height: 1px;
  background: var(--border);
  margin-top: 18px !important;
}

.teren-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-top: 18px !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.teren-row::-webkit-scrollbar {
  display: none;
}

.teren-pill {
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #000000;
  white-space: nowrap;
  cursor: pointer;
}

.teren-pill.selected {
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  padding: 0 17px;
}

.venue-detail-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 18px 0 0;
}

.venue-detail-section-title--spaced {
  margin-top: 28px !important;
}

.venue-detail-description {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-line;
  margin: 14px 0 0;
}

.working-hours {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.working-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-primary);
}

.venue-detail-cta {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  background: var(--main-bg);
}

.venue-detail-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0), var(--main-bg));
}

.btn-book {
  position: relative;
  width: max-content;
  min-width: 190px;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.venue-detail-selection {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.venue-detail-selection-value {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-book:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Booking sheet (Odaberite vrijeme) ---------- */

.booking-sheet {
  display: none;
  background: var(--main-bg);
}

.booking-sheet.active {
  display: block;
}

.booking-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--main-bg);
  padding-top: 18px;
}

.booking-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  background: linear-gradient(to bottom, var(--main-bg), rgba(248, 248, 248, 0));
  pointer-events: none;
}

.booking-header-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.booking-back {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--main-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.booking-back svg {
  width: 20px;
  height: 20px;
}

.booking-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.date-row {
  display: flex;
  gap: 38px;
  overflow-x: auto;
  padding: 30px 32px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.date-row::-webkit-scrollbar {
  display: none;
}

.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.date-tile.unavailable {
  opacity: 0.42;
}

.date-weekday,
.date-month {
  font-size: 17px;
  color: var(--text-secondary);
}

.date-day {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  background: #F0F0F0;
}

.date-tile.selected .date-day {
  background: var(--accent);
  color: #FFFFFF;
}

.time-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 32px 38px;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  font-family: inherit;
  cursor: pointer;
}

.time-row.selected {
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  padding: 0 15px;
}

/* Matches the disabled .btn-continue opacity */
.time-row.unavailable,
.time-row.vacating {
  opacity: 0.45;
}

/* Same accent as the selected date on Upravljanje terminima */
.time-row.recurring-blocked {
  border-color: var(--accent);
}

.time-row:disabled {
  cursor: not-allowed;
}

.time-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.time-row svg {
  width: 14px;
  height: 14px;
  color: var(--text-secondary);
}

.booking-cta {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  background: var(--main-bg);
}

.booking-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0), var(--main-bg));
}

.btn-continue {
  width: max-content;
  min-width: 190px;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.booking-selection {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.booking-selection-value {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Review sheet (Pregled i potvrda) ---------- */

.review-sheet {
  display: none;
  background: var(--main-bg);
}

.review-sheet.active {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.review-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--main-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
}

.review-back {
  position: absolute;
  left: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--main-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.review-back svg {
  width: 20px;
  height: 20px;
}

.review-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-content {
  padding: 22px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.review-venue-row,
.review-datetime-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-datetime-row {
  padding-left: 46px;
}

.review-venue-thumb {
  width: 140px;
  height: 140px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-venue-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.review-venue-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.review-venue-address {
  font-size: 15px;
  color: var(--text-secondary);
}

.review-datetime-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-datetime-icon svg {
  width: 23px;
  height: 23px;
}

.review-date {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.review-time-range {
  font-size: 15px;
  color: var(--text-secondary);
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-inline: 14px;
  padding: 18px 32px;
}

.review-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

.review-divider--tight {
  margin-top: 16px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-row--total {
  align-items: center;
}

.review-row-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.review-row-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-row-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.review-cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 32px 18px;
  background: var(--main-bg);
}

.review-confirm-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reservation-success-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.reservation-success-note {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.reservation-success-note strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.btn-confirm {
  width: max-content;
  min-width: 190px;
  height: 56px;
  padding: 0 24px;
  border: none;
  border-radius: 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.review-change-selection {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.2;
}

.review-change-selection strong {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.reservation-success-check {
  width: 132px;
  height: 132px;
  margin: 18px auto 0;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-success-check svg {
  width: 76px;
  height: 76px;
  overflow: visible;
}

.reservation-success-check path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reservation-success-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reservation-success-content .review-venue-row {
  margin-bottom: 0;
}

.reservation-success-content .reservation-success-check {
  margin: auto;
}

.reservation-success-cta {
  margin-top: auto;
}

.review-korisnik-field {
  flex: 1;
  min-width: 0;
}

.review-korisnik-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-korisnik-input {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 100%;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--main-bg);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}

.review-korisnik-input::placeholder {
  color: var(--text-secondary);
}

.review-korisnik-confirm {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.review-korisnik-confirm.visible {
  display: flex;
}

.review-korisnik-confirm svg {
  width: 22px;
  height: 22px;
}

/* ---------- Termini timeline (Memo-style) ---------- */

.rezervacije-date-header {
  position: fixed;
  left: 248px;
  right: 0;
  top: 0;
  z-index: 2;
  background: var(--main-bg);
  margin: 0;
  padding-top: 8px;
}

#page-rezervacije {
  overflow: visible;
  padding-top: calc(var(--rezervacije-date-header-height, 104px) - 24px);
}

.rezervacije-date-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 24px;
  background: linear-gradient(to bottom, var(--main-bg), rgba(248, 248, 248, 0));
  pointer-events: none;
}

.rezervacije-date-header .date-row {
  padding-top: 14px;
}

.timeline {
  position: relative;
  padding-top: 0;
  padding-bottom: 120px;
}

.timeline.timeline--empty {
  padding-top: 0;
}

.nav-section--calendar .nav-subitems {
  padding-left: 0;
  margin-top: 1px;
}

.timeline-hour {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 68px;
  scroll-margin-top: 270px;
}

.timeline-hour-label {
  width: 52px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.48);
}

.timeline-hour-line {
  flex: 1;
  border-top: 1px dashed rgba(0, 0, 0, 0.17);
  margin-top: 8px;
}

.timeline-event {
  position: absolute;
  left: 54px;
  right: 0;
  border-radius: 8px;
  padding: 7px 10px 7px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  overflow: hidden;
  scroll-margin-top: 270px;
  cursor: pointer;
  z-index: 1;
}

.timeline-availability-slot {
  position: absolute;
  left: 54px;
  right: 0;
  z-index: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.timeline-availability-slot:hover,
.timeline-availability-slot:focus-visible {
  background: #EEEDFE;
  outline: none;
}

.timeline-event-bar {
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 2px;
}

/* ---------- Event options menu ---------- */

.event-menu {
  position: fixed;
  display: none;
  z-index: 100;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
  min-width: 210px;
  overflow: hidden;
}

.event-menu.open {
  display: block;
}

.event-menu-item {
  display: block;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--nav-active);
  text-align: left;
  cursor: pointer;
}

.event-menu-item:hover {
  background: var(--nav-hover-bg);
}

.event-menu-item.active {
  background: var(--nav-hover-bg);
}

.event-menu-item {
  display: flex;
  align-items: center;
}

.event-menu-item .founder-option-check {
  margin-left: auto;
  color: #7164C5;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.event-menu-item--danger {
  color: #FE373E;
}

.event-menu-divider {
  height: 1px;
  background: var(--border);
}

.event-menu-message {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--nav-active);
  line-height: 1.4;
}

.owner-new-termin-menu {
  width: min(380px, calc(100vw - 24px));
  min-width: min(280px, calc(100vw - 24px));
  overflow: visible;
  border-radius: 10px;
  background: oklch(1 0 0);
  color: oklch(0.247 0.006 258.361);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px oklch(0.946 0.003 264.542),
    0 1px 2px oklch(0 0 0 / 0.06),
    0 2px 6px oklch(0 0 0 / 0.05);
}

.owner-new-termin-form {
  overflow: hidden;
  padding: 0;
  border-radius: 10px;
}

.owner-new-termin-content {
  padding: 12px 12px 0;
}

.owner-new-termin-title {
  margin-bottom: 6px;
  color: oklch(0.247 0.006 258.361);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.owner-move-confirm-title {
  color: oklch(0.695 0.009 264.505);
}

.owner-new-termin-input {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 0;
  padding: 6px 10px;
  border: 1px solid oklch(0.946 0.003 264.542);
  border-radius: var(--radius-sm);
  outline: 0;
  background: oklch(0.961 0.001 286.375);
  color: oklch(0.247 0.006 258.361);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: normal;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.035);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.owner-new-termin-input::placeholder {
  color: oklch(0.695 0.009 264.505);
}

.owner-move-confirm-message {
  height: auto;
  min-height: 34px;
  color: #000000;
  line-height: 1.35;
  white-space: normal;
}

.owner-new-termin-input:focus {
  border-color: oklch(0.912 0.005 258.326);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
  background: oklch(0.961 0.001 286.375);
}

.owner-new-termin-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  padding: 12px 12px 10px;
  background: oklch(1 0 0);
  border-radius: 0 0 10px 10px;
}

.owner-new-termin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.owner-new-termin-cancel,
.owner-new-termin-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 18.75px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms cubic-bezier(0.23, 1, 0.32, 1), color 140ms cubic-bezier(0.23, 1, 0.32, 1), transform 140ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.owner-new-termin-cancel {
  padding-right: 10px;
  padding-left: 10px;
  color: oklch(0.247 0.006 258.361);
  background: oklch(1 0 0);
  box-shadow: 0 0 0 1px oklch(0.912 0.005 258.326), 0 0 4px oklch(0 0 0 / 0.04);
}

.owner-new-termin-cancel:hover {
  color: oklch(0.247 0.006 258.361);
  background: oklch(0.97 0.002 247.839);
}

.owner-new-termin-confirm {
  color: oklch(1 0 0);
  background: var(--accent);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14);
}

.owner-new-termin-confirm:hover:not(:disabled) {
  filter: saturate(0.9) brightness(1.04);
}

.owner-new-termin-cancel:active,
.owner-new-termin-confirm:active:not(:disabled) {
  transform: scale(0.96);
}

.owner-new-termin-confirm:disabled {
  color: oklch(1 0 0);
  background: var(--accent);
  cursor: default;
  opacity: 0.45;
}

.owner-new-termin-error {
  margin: 0;
  padding: 0 18px 14px;
  color: oklch(0.621 0.192 23.042);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.event-menu-row {
  display: flex;
}

.event-menu-row .event-menu-item {
  flex: 1;
  justify-content: center;
  text-align: center;
}

.event-menu-divider--vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
}

/* Scrollable time chooser used by Radno vrijeme in Postavke. */
.settings-time-menu {
  max-height: min(360px, calc(100vh - 16px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.timeline-event-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-event-time {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Customer reservations (Moji termini) ---------- */

#page-moji-termini {
  background: #F7F6FC;
}

.customer-terms-header {
  padding: 0 0 14px;
}

.customer-terms-header h1 {
  margin: 0;
  color: #323237;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.customer-terms-list {
  display: grid;
  grid-template-columns: minmax(0, min(377.5px, calc((100vw - 423px) / 2)));
  column-gap: 0;
  row-gap: 16px;
  padding-bottom: 32px;
}

/* Match the Početna venue-card treatment without adding card-level actions. */
.customer-reservation-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #EDEDEE;
  border-radius: 14px;
  overflow: visible;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.015);
  cursor: default;
  transition: none;
}

.customer-reservation-card:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.015);
  transform: none;
}

.venue-card .customer-reservation-date {
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.25;
}

.customer-reservation-detail {
  color: #77777D;
}

.customer-reservation-card .customer-reservation-rebook {
  width: auto;
  height: auto;
  min-height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #7D8BE4;
  background: transparent;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
}

@media (max-width: 900px) {
  .customer-terms-list {
    grid-template-columns: minmax(0, calc((100vw - 292px) / 2));
    column-gap: 0;
  }
}

@media (max-width: 700px) {
  .customer-terms-header {
    padding-bottom: 12px;
  }

  .customer-terms-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.customer-terms-message {
  padding: 36px 18px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---------- Auth sheet (Registracija / prijava) ---------- */

.auth-sheet {
  display: none;
  background: #F7F6FC;
  min-height: 100svh;
}

.auth-sheet.active {
  display: block;
}

.auth-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F7F6FC;
  display: flex;
  align-items: center;
  padding: 18px 32px;
}

.auth-back,
.auth-help {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #F7F6FC;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-back svg,
.auth-help svg {
  width: 20px;
  height: 20px;
}

/* Absolutely centered so the flanking back button and "Za poduzeća" button,
   which differ in width, don't pull the title off true center. */
.auth-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: none;
}

.auth-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn-social {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
}

.btn-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-social--google {
  gap: 6px;
}

.btn-social--apple img {
  transform: translateY(-1.5px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.auth-email-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #FFFFFF;
  font-size: 17px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}

.auth-email-input::placeholder {
  color: var(--text-secondary);
}

.btn-email-continue {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 28px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn-email-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.auth-business {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(92, 80, 145, 0.12);
}

.auth-business:hover {
  background: var(--card-bg);
  color: var(--accent);
}

.auth-magic-link-sent {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.auth-legal {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

.auth-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Same treatment as .auth-legal, sitting at the foot of Početna */
.pocetna-legal {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-top: 8px;
}

.pocetna-legal a {
  color: var(--text-secondary);
  text-decoration: underline;
}

#page-pocetna.is-searching .pocetna-legal {
  position: fixed;
  left: 248px;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 18px 32px 20px;
  background: #F7F6FC;
  box-shadow: 0 -6px 14px rgba(247, 246, 252, 0.9);
  box-sizing: border-box;
}

/* ---------- Postavke (venue settings) ---------- */

/* ---------- Partneri (founder dashboard) ---------- */

.partners-sheet-content {
  padding: 30px 32px 48px;
}

.partners-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.partners-heading h1 {
  margin: 0 0 5px;
  color: var(--text-primary);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
}

.partners-month-label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.4;
}

.partners-table-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
}

.partners-table-scroll {
  overflow-x: auto;
}

.partners-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  table-layout: fixed;
}

.partners-table th,
.partners-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.partners-table th {
  background: #F7F6FC;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.partners-table th:nth-child(1),
.partners-table td:nth-child(1) {
  width: 48%;
}

.partners-table th:nth-child(2),
.partners-table td:nth-child(2) {
  width: 27%;
}

.partners-table th:nth-child(3),
.partners-table td:nth-child(3) {
  width: 25%;
}

.partners-table tbody tr:last-child td {
  border-bottom: 0;
}

.partners-table tbody tr:hover {
  background: #FCFCFD;
}

.partners-table td {
  color: var(--text-primary);
  font-size: 14.5px;
}

.partners-name {
  font-weight: 600;
}

.partners-count {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.partners-date-input {
  width: 150px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-primary);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
}

.partners-date-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 139, 228, 0.14);
}

.partners-date-input.has-error {
  border-color: var(--red);
  background: var(--red-bg);
}

.partners-empty {
  height: 96px;
  color: var(--text-secondary) !important;
  text-align: center !important;
}

/* Reference-style founder workspace: airy header, toolbar and database rows. */
.partners-shell {
  min-height: 100vh;
  background: #FFFFFF;
  color: var(--text-primary);
}

#page-partners {
  background: #FFFFFF;
}

.partners-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 40px;
  border-bottom: 1px solid #EEEEF2;
  background: #FFFFFF;
}

.partners-breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #858592;
  font-size: 17px;
}

.partners-breadcrumb strong {
  color: #303041;
  font-weight: 650;
}

.partners-view-switch {
  display: flex;
  padding: 4px;
  border-radius: 10px;
  background: #F5F5F8;
}

.partners-view-switch button {
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858592;
  font: inherit;
  font-size: 13px;
  cursor: default;
}

.partners-view-switch button.is-active {
  background: #FFFFFF;
  color: #303041;
  box-shadow: 0 1px 3px rgba(42, 42, 58, 0.12);
}

.partners-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 40px 18px;
}

.partners-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #303041;
  font-size: 16px;
}

.partners-toolbar-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #EEF0FF;
  color: #7164C5;
}

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

.partners-toolbar-spacer {
  flex: 1;
}

.partners-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 290px;
  height: 42px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #E4E4EA;
  border-radius: 9px;
  background: #FFFFFF;
  color: #9A9AA6;
}

.partners-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 139, 228, 0.12);
}

.partners-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.partners-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
}

.partners-table-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 40px;
}

.partners-filter-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 11px 0 14px;
  border: 1px solid #E4E4EA;
  border-radius: 9px;
  background: #FFFFFF;
  color: #858592;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.partners-visibility-filter {
  margin-left: auto;
  height: 30px;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #F5F5F8;
  color: #303041;
  font-size: 14.5px;
  font-weight: 500;
}

.partners-filter-control:not(.partners-visibility-filter) {
  height: 30px;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #F5F5F8;
  color: #303041;
  font-size: 14.5px;
  font-weight: 500;
}

.partners-filter-control:not(.partners-visibility-filter) .partners-filter-icon {
  color: #000000;
}

#partners-sort.is-reservations .partners-filter-icon,
#partners-sort.is-reservations .partners-filter-icon * {
  color: #43B883 !important;
  stroke: #43B883 !important;
}

.partners-filter-control select {
  min-width: 116px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303041;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.partners-filter-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #858592;
}

.partners-filter-status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #43B883;
}

.partners-filter-status-dot--inactive {
  background: #E56B6F;
}

.partners-heading-label {
  display: block;
  width: 100%;
  max-width: 170px;
  margin: 0 auto;
  text-align: center;
}

.partners-table th:first-child .partners-heading-label {
  width: 100%;
  max-width: none;
  margin-left: 0;
  text-align: left;
}

.partners-filter-control:nth-child(2) select {
  min-width: 150px;
}

.partners-context {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 40px 22px;
}

.partners-context h1 {
  margin: 0 0 5px;
  color: #303041;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.partners-table-card {
  width: auto;
  box-sizing: border-box;
  margin: 0 40px 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.partners-table {
  min-width: 720px;
  table-layout: fixed;
}

.partners-table th,
.partners-table td {
  padding: 16px 22px;
}

.partners-table th {
  border-bottom: 0;
  background: #F7F7FA;
  color: #858592;
  font-size: 14.5px;
  font-weight: 500;
}

.partners-table th:first-child {
  border-radius: 10px 0 0 10px;
}

.partners-table th:last-child {
  border-radius: 0 10px 10px 0;
}

.partners-table th.partners-actions-heading,
.partners-table td.partners-actions-cell {
  width: 6%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.partners-table th:nth-child(2),
.partners-table th:nth-child(3),
.partners-table th:nth-child(4),
.partners-table th:nth-child(5),
.partners-table td:nth-child(2),
.partners-table td:nth-child(3),
.partners-table td:nth-child(4),
.partners-table td:nth-child(5) {
  text-align: center;
}

.partners-table th:nth-child(1),
.partners-table td:nth-child(1) { width: 32%; }

.partners-table th:nth-child(2),
.partners-table td:nth-child(2),
.partners-table th:nth-child(3),
.partners-table td:nth-child(3),
.partners-table th:nth-child(4),
.partners-table td:nth-child(4),
.partners-table th:nth-child(5),
.partners-table td:nth-child(5) { width: 15.5%; }

.partners-actions-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #E5E5EA;
  border-radius: 9px;
  background: #FFFFFF;
  color: #858592;
  cursor: pointer;
  transform: none;
}

.partners-actions-button svg {
  display: block;
  width: 12px;
  height: 12px;
}

.partners-actions-button span {
  display: block;
  line-height: 1;
}

.partners-actions-button:hover,
.partners-actions-button:focus-visible {
  border-color: #D7D7E0;
  background: #F8F8FA;
  outline: none;
}

.partners-table th {
  background: var(--nav-hover-bg);
  color: #383683;
}

.partners-table tbody tr {
  height: 88px;
}

.partners-table tbody tr:hover {
  background: #FCFCFE;
}

#page-partners .partners-table tbody tr:hover {
  background: #FFFFFF;
}

#page-partners .partners-table tbody tr.partners-row-withdrawn {
  opacity: 0.45;
}

.partners-table td {
  border-bottom: 1px solid #F0F0F3;
  font-size: 15px;
}

.partners-identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

.partners-logo {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 10px;
  background: #F0F2FF;
  color: #7164C5;
}

.partners-logo svg {
  width: 22px;
  height: 22px;
}

.partners-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.partners-identity-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.partners-identity-text strong {
  color: #303041;
  font-size: 14.5px;
  font-weight: 500;
}

.partners-identity-text small {
  color: #A1A1AA;
  font-size: 14.5px;
  font-weight: 500;
}

.partners-count {
  color: #303041;
  font-size: 14.5px !important;
  font-weight: 500;
}

.partners-revenue {
  color: #303041;
  font-size: 14.5px !important;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.partners-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.partners-status-pill--besplatni_period {
  background: #EBEAFE;
  color: #615CEB;
}

.partners-status-pill--placeno {
  background: #DFF7E9;
  color: #2EA15C;
}

.partners-status-pill--nije_placeno {
  background: #FFE5E2;
  color: #F23833;
}

.partners-status-pill:hover {
  filter: brightness(0.97);
}

.partners-date-input {
  display: block;
  width: 100%;
  max-width: 170px;
  border-color: transparent;
  background: transparent;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  line-height: 36px;
  padding-top: 0;
  text-align: center;
  transform: none;
}

.partners-date-input:hover {
  border-color: #E4E4EA;
  background: #F8F8FA;
}

.settings {
  max-width: 784px;
  padding: 28px 32px 40px;
}

.settings-block {
  margin-bottom: 34px;
}

/* Matches .venue-section-title ("Preporučeno") */
.settings-block-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.settings-block-desc {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.45;
}

.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.settings-divider {
  height: 1px;
  background: var(--border);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  min-height: 52px;
}

.settings-row-label {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-row-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-price-card {
  padding: 12px 16px;
}

.settings-price-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

.settings-price-row:hover,
.settings-price-row:focus-within {
  border-color: var(--accent);
}

.settings-price-currency,
.settings-price-input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-price-input {
  width: 7ch;
  min-width: 7ch;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
}

/* ---------- Mobile web shell ---------- */

.mobile-home-brand,
.mobile-menu-button,
.mobile-sidebar-backdrop {
  display: none;
}

.mobile-only-sidebar-item {
  display: none;
}

@media (max-width: 700px) {
  /* Sit directly below the fixed mobile topbar (same height as .topbar min-height) */
  .rezervacije-date-header {
    left: 0;
    top: calc(74px + env(safe-area-inset-top));
    padding-top: 0;
    /* Lets the date row size its gaps from the header width */
    container-type: inline-size;
    --date-tile-size: 50px;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .app {
    display: block;
    min-height: 100svh;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(82vw, 300px);
    height: 100svh;
    padding: 18px 12px;
    border-right: 1px solid var(--border);
    box-shadow: 14px 0 35px rgba(0, 0, 0, 0.12);
    transform: translateX(-105%);
    transition: transform 0.24s ease;
  }

  .app.terms-sheet-mode .sidebar {
    display: flex;
  }

  body.mobile-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: rgba(23, 23, 26, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    width: 100%;
    min-height: 100svh;
  }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 25;
    width: 100%;
    min-height: calc(74px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 18px 8px;
    gap: 0;
    background: var(--main-bg);
    isolation: isolate;
    transform: translateZ(0);
    will-change: transform;
  }

  .topbar::after {
    top: calc(100% - 4px);
    height: 12px;
  }

  /* Keep the Početna fade closer to the search bar without shifting the page content. */
  .main.is-pocetna-page .topbar::after {
    top: calc(100% - 10px);
  }

  /* Six tiles fill the timeline width: the first tile starts at the 00:00 label
     column and the last ends where the dashed hour lines end (18px in from each edge).
     The clip hides the partly visible tiles that would otherwise show in that margin. */
  .rezervacije-date-header .date-row {
    padding-top: 10px;
    padding-left: 18px;
    padding-right: 18px;
    gap: calc((100cqw - 36px - 6 * var(--date-tile-size)) / 5);
    clip-path: inset(0 18px);
  }

  .rezervacije-date-header .date-day {
    width: var(--date-tile-size);
    height: var(--date-tile-size);
  }

  .mobile-home-brand {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .mobile-home-brand img {
    display: block;
    width: auto;
    height: 40px;
    object-fit: contain;
  }

  .topbar .search-field,
  .topbar .btn-primary {
    display: none;
  }

  .main.is-pocetna-page .mobile-home-brand {
    display: none;
  }

  .main.is-pocetna-page .topbar .search-field {
    display: flex;
    max-width: none;
    margin-right: 18px;
  }

  .main.is-pocetna-page .topbar .search-field input {
    font-size: 16px;
  }

  .auth-business {
    display: none;
  }

  .sidebar .mobile-only-sidebar-item {
    display: flex;
  }

  .mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-button:active,
  body.mobile-sidebar-open .mobile-menu-button {
    background: var(--nav-hover-bg);
  }

  .mobile-menu-button svg {
    width: 24px;
    height: 24px;
  }

  .content {
    padding: calc(74px + env(safe-area-inset-top)) 18px 28px;
  }

  .main.is-main-page {
    min-height: 100svh;
  }

  .main.is-main-page .topbar {
    position: fixed;
    inset: 0 0 auto;
    background: #FFFFFF;
  }

  .main.is-main-page .topbar::after {
    top: 100%;
    height: 18px;
    background: #FFFFFF;
  }

  body.terms-view-active .topbar {
    background: #FFFFFF;
  }

  body.terms-view-active .topbar::after {
    background: #FFFFFF;
  }

  .main.is-main-page .topbar::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 100vh;
    background: #FFFFFF;
  }

  .main-sheet {
    min-height: calc(100svh - 104px - env(safe-area-inset-top));
    padding: 4px 0 34px;
  }

  .main-sheet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    top: calc(74px + env(safe-area-inset-top));
    min-height: 0;
    width: calc(100% + 36px);
    padding: 0 18px 8px;
    margin-top: -4px;
    margin-left: -18px;
    margin-bottom: 48px;
    background: #FFFFFF;
  }

  .main-sheet-nav.is-scrolled::after {
    right: 18px;
    left: 18px;
  }

  .main-sheet-brand {
    display: none;
  }

  .main-sheet-nav::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 8px;
    background: #FFFFFF;
  }

  .main-sheet-nav-links {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    width: 100%;
  }

  .main-sheet-nav-links button {
    flex: 0 1 auto;
    min-width: 0;
    padding: 8px 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .main-sheet-nav-links button::after {
    right: 3px;
    left: 3px;
  }

  .main-sheet-login {
    display: none;
  }

  .main-sheet-hero {
    width: min(330px, 100%);
    transform: translateY(-24px);
  }

  .main-sheet-hero-lines {
    width: 100vw;
    overflow: hidden;
  }

  .main-sheet-hero-lines img {
    top: -40.48%;
    width: 170.18vw;
  }

  .terms-sheet {
    min-height: 100svh;
    padding: 4px 0 96px;
  }

  #page-terms .terms-sheet,
  #page-privacy .terms-sheet {
    padding-bottom: 320px;
  }

  .terms-content {
    width: min(640px, calc(100% - 36px));
    margin: 48px auto 0;
  }

  .terms-content h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .terms-copy {
    margin-top: 48px;
  }

  .terms-copy p {
    font-size: 18px;
  }

  .terms-copy h2 {
    margin-top: 30px;
    font-size: 20px;
  }

  .main-sheet-hero h1 {
    font-size: 32px;
    line-height: 1.02;
  }

  .main-sheet-hero p {
    margin-top: 20px;
    font-size: 15px;
  }

  .main-sheet-cta {
    min-height: 46px;
    margin-top: 26px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 16px;
  }

  .main-sheet-feature {
    width: min(330px, 100%);
    flex-direction: column;
    gap: 34px;
    margin-top: 72px;
    transform: none;
    padding-bottom: 0;
  }

  .main-sheet-feature-scroll-track {
    height: auto;
  }

  .main-sheet-feature-scroll-track > .main-sheet-feature {
    position: relative;
  }

  .main-sheet-footer {
    width: min(330px, 100%);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    right: 18px;
    bottom: -24px;
    left: 18px;
    font-size: 12px;
  }

  .support-sheet-footer {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 520px;
    padding: 0;
    align-items: initial;
    justify-content: initial;
  }

  .support-sheet-footer > span:not(.support-sheet-footer-links):not(.support-sheet-grid):not(.main-sheet-site-footer-grid) {
    position: absolute;
    right: 0;
    bottom: 172px;
    left: 0;
    margin: 0;
    color: #716B8D;
    font-family: "Manrope", system-ui, -apple-system, "system-ui", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 450;
    line-height: 21px;
    text-align: center;
  }

  .support-sheet-footer-links {
    position: absolute !important;
    right: 0;
    bottom: 212px;
    left: 0;
    z-index: 1;
    text-align: center;
  }

  .main-sheet-feature-header {
    scroll-margin-top: calc(74px + env(safe-area-inset-top));
    gap: 28px;
    transform: none;
  }

  .main-sheet-feature h2 {
    font-size: 32px;
  }

  .main-sheet-feature-body {
    flex-direction: column;
    gap: 32px;
  }

  .main-sheet-feature-copy {
    width: 100%;
    padding: 0;
    align-self: auto;
    transform: none;
  }

  .main-sheet-feature h3 {
    font-size: 22px;
  }

  .main-sheet-feature-step {
    opacity: 1 !important;
    transition: none;
  }

  .main-sheet-feature p {
    font-size: 14px;
  }

  .main-sheet-feature-step-copy,
  .main-sheet-feature-step-copy:not(.is-active),
  .main-sheet-feature-step-copy.is-active {
    display: block;
    visibility: visible;
    max-height: none;
    margin-top: 12px !important;
    opacity: 1 !important;
    transition: none;
  }

  .main-sheet-feature-mobile-image {
    display: block;
    width: min(100%, 250px);
    height: auto;
    margin: 24px auto 40px;
  }

  .main-sheet-feature-secondary {
    margin-top: 42px;
    font-size: 22px;
  }

  .main-sheet-feature-visual {
    display: none;
  }

  .main-sheet-feature-carousel {
    position: relative;
    gap: 6px;
    transform: none;
    margin-bottom: 0;
  }

  .main-sheet-feature-image {
    width: min(100%, 250px);
    margin: 0 auto;
  }

  .main-sheet-feature-next {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
  }

  #page-pocetna.active {
    min-height: calc(100svh - 74px - env(safe-area-inset-top));
  }

  #page-pocetna #venue-sections {
    width: calc(100% + 0px);
  }

  .venue-section {
    margin-bottom: 26px;
  }

  .venue-section-title {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .venue-row {
    gap: 12px;
    margin: 0 -18px;
    padding: 2px 18px 8px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
  }

  #page-pocetna #venue-sections .venue-card {
    flex-basis: calc(100vw - 96px);
    border-radius: 14px;
  }

  .venue-card-image {
    height: 158px;
  }

  .venue-card-body {
    padding: 13px 14px 15px;
  }

  .pocetna-legal {
    padding-bottom: 10px;
  }

  #page-pocetna.is-searching .pocetna-legal {
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 18px 20px;
    text-align: center;
  }

  /* Keep every non-home page full-width while retaining its existing flow. */
  .page,
  .booking-sheet,
  .review-sheet,
  .auth-sheet,
  .venue-detail {
    max-width: 100%;
  }

  .partners-sheet-content {
    padding: 24px 18px 36px;
  }

  .partners-table th,
  .partners-table td {
    padding: 15px 14px;
  }

  .partners-workspace-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .partners-breadcrumb {
    gap: 8px;
    font-size: 14px;
  }

  .partners-view-switch {
    display: none;
  }

  .partners-toolbar {
    display: block;
    padding: 20px 18px 14px;
  }

  .partners-toolbar-title {
    margin-bottom: 14px;
  }

  .partners-search {
    width: 100%;
  }

  .partners-context {
    padding: 0 18px 18px;
  }

  .partners-context h1 {
    font-size: 22px;
  }

  .partners-table-controls {
    flex-wrap: wrap;
    padding: 18px;
  }

  .partners-filter-control {
    flex: 1 1 160px;
    justify-content: space-between;
  }

  .partners-table th:first-child .partners-heading-label {
    width: 100%;
    margin-left: 0;
  }

  .partners-table-card {
    width: auto;
    margin: 0 18px 30px;
  }
}

@media (max-width: 400px) {
  .rezervacije-date-header {
    --date-tile-size: 46px;
  }

  .rezervacije-date-header .date-weekday,
  .rezervacije-date-header .date-month {
    font-size: 16px;
  }

  .rezervacije-date-header .date-day {
    font-size: 17px;
  }
}

@media (min-width: 401px) and (max-width: 406px) {
  .rezervacije-date-header {
    --date-tile-size: 44px;
  }

  .rezervacije-date-header .date-weekday,
  .rezervacije-date-header .date-month {
    font-size: 15px;
  }

  .rezervacije-date-header .date-day {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .rezervacije-date-header {
    --date-tile-size: 42px;
  }

  .rezervacije-date-header .date-weekday,
  .rezervacije-date-header .date-month {
    font-size: 14px;
  }

  .rezervacije-date-header .date-day {
    font-size: 15px;
  }
}

/* Court rows */

.settings-teren-input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}

.settings-teren-input:hover {
  border-color: var(--border);
}

.settings-teren-input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}

.settings-remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.settings-remove:hover:not(:disabled) {
  background: var(--red-bg);
  color: var(--red);
}

.settings-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.settings-remove svg {
  width: 15px;
  height: 15px;
}

.settings-add {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
}

.settings-add:hover {
  background: var(--nav-hover-bg);
}

.settings-add svg {
  width: 15px;
  height: 15px;
}

/* Informacije editor */

.settings-textarea-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.settings-textarea-card:focus-within {
  border-color: var(--accent);
}

.settings-textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  border: none;
  outline: none;
  resize: vertical;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-primary);
}

.settings-save-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.btn-save {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.settings-saved-note {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--green);
}

/* Radno vrijeme selects */

.settings-select {
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M4 5.5L7 8.5L10 5.5' stroke='%23848386' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.settings-select {
  display: inline-flex;
  align-items: center;
  text-align: left;
  white-space: nowrap;
}

.settings-select:focus {
  outline: none;
  border-color: var(--accent);
}

.settings-dash {
  font-size: 14px;
  color: var(--text-secondary);
}

.icon-btn.active {
  background: var(--nav-hover-bg);
  color: var(--nav-active);
}

/* ---------- Auth session gating (Phase 1) ---------- */

.is-hidden { display: none !important; }

.auth-error {
  font-size: 14px;
  font-weight: 500;
  color: var(--red);
  text-align: center;
  margin-top: -6px;
}

.btn-logout {
  align-self: flex-start;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--red);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-logout:hover {
  background: var(--red-bg);
}

@media (max-width: 700px) {
  #page-booking .booking-cta--customer-reservation .booking-selection {
    display: none;
  }

  #page-booking .booking-cta--customer-reservation .btn-continue {
    width: 100%;
  }

  #page-review .review-confirm-cta--customer-reservation .review-change-selection {
    display: none;
  }

  #page-review .review-confirm-cta--customer-reservation .btn-confirm {
    width: 100%;
  }

  #page-reservation-success .reservation-success-note {
    display: none;
  }

  #page-reservation-success .reservation-success-cta .btn-confirm {
    width: 100%;
  }

  /* Let the court pills use the full viewport width, matching home rows. */
  .today-pill {
    left: 50%;
    bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .venue-detail-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .venue-detail-inner .teren-row {
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding-left: 18px;
    padding-right: 18px;
    scroll-padding-left: 18px;
    scroll-padding-right: 18px;
  }
}
/* ---------- Practice-flow calendar card ---------- */

#page-booking.booking-sheet--compact.active {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(35, 35, 39, 0.2);
  backdrop-filter: blur(2px);
}

#page-booking.booking-sheet--compact .calendar-flow-backdrop,
#page-review.confirmation-stage .confirmation-flow-backdrop,
#page-reservation-success .task-success-flow-backdrop {
  position: absolute;
  inset: 0;
}

#page-booking.booking-sheet--compact .calendar-card {
  position: relative;
  z-index: 1;
  width: 372px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

#page-booking.booking-sheet--compact .calendar-card-body {
  width: 100%;
  height: 258px;
  min-height: 258px;
  display: flex;
}

#page-booking.booking-sheet--compact .calendar-picker {
  width: 212px;
  min-width: 212px;
  height: 100%;
  flex: 0 0 212px;
  padding: 8px;
}

#page-booking.booking-sheet--compact .calendar-card-header {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#page-booking.booking-sheet--compact .calendar-toolbar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}

#page-booking.booking-sheet--compact .calendar-toolbar p {
  margin: 0;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

#page-booking.booking-sheet--compact .calendar-nav {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #252525;
  background: transparent;
}

#page-booking.booking-sheet--compact .calendar-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-booking.booking-sheet--compact .calendar-nav:hover:not(:disabled) {
  background: #f4f4f5;
}

#page-booking.booking-sheet--compact .calendar-nav:disabled {
  color: #c7c7cb;
  cursor: default;
}

#page-booking.booking-sheet--compact .calendar-weekdays,
#page-booking.booking-sheet--compact .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 0;
}

#page-booking.booking-sheet--compact .calendar-weekdays {
  margin-bottom: 8px;
  color: #71717a;
  font-size: 12.8px;
  line-height: 18.2857px;
  text-align: center;
}

#page-booking.booking-sheet--compact .calendar-weekdays span {
  display: grid;
  place-items: center;
  height: 18.2857px;
}

#page-booking.booking-sheet--compact .calendar-days {
  row-gap: 8px;
  grid-auto-rows: 28px;
}

#page-booking.booking-sheet--compact .calendar-day {
  min-width: 0;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #252525;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
}

#page-booking.booking-sheet--compact .calendar-day:hover:not(:disabled) {
  background: #f4f4f5;
}

#page-booking.booking-sheet--compact .calendar-day.is-today {
  box-shadow: none;
}

#page-booking.booking-sheet--compact .calendar-day.is-outside {
  color: #71717a;
  pointer-events: none;
}

#page-booking.booking-sheet--compact .calendar-day:disabled {
  color: #71717a;
  opacity: 0.5;
  background: #fff;
  cursor: not-allowed;
}

#page-booking.booking-sheet--compact .calendar-day.is-selected {
  border-radius: 10px 8px 8px 10px;
  color: #fff;
  background: #7d8be4;
  box-shadow: none;
}

#page-booking.booking-sheet--compact .calendar-day.is-selected:hover:not(:disabled) {
  color: #fff;
  background: color-mix(in oklab, #7d8be4 80%, transparent);
}

#page-booking.booking-sheet--compact .calendar-day.is-selected:disabled {
  color: #fff;
  background: #7d8be4;
  opacity: 1;
}

#page-booking.booking-sheet--compact .time-picker {
  width: 160px;
  height: 100%;
  flex: 0 0 160px;
  overflow: hidden;
  border-left: 1px solid #ededee;
}

#page-booking.booking-sheet--compact .time-picker-inner {
  height: 100%;
  overflow-y: auto;
  padding: 16px 20px;
}

#page-booking.booking-sheet--compact .time-picker-date {
  margin: 0 0 12px;
  color: #252525;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

#page-booking.booking-sheet--compact .time-slots {
  display: grid;
  gap: 6px;
}

#page-booking.booking-sheet--compact .time-slot {
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  color: #252525;
  background: #fff;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18.2857px;
  text-align: center;
}

#page-booking.booking-sheet--compact .time-slot:hover:not(:disabled) {
  border-color: #e4e4e7;
  color: #252525;
  background: #f4f4f5;
}

#page-booking.booking-sheet--compact .time-slot:disabled {
  color: #71717a;
  opacity: 0.5;
  background: #fff;
  cursor: not-allowed;
}

#page-booking.booking-sheet--compact .time-slot.is-selected {
  border-color: transparent;
  color: #fff;
  background: #7d8be4;
}

#page-booking.booking-sheet--compact .time-slot.is-selected:hover:not(:disabled) {
  border-color: transparent;
  color: #fff;
  background: color-mix(in oklab, #7d8be4 80%, transparent);
}

#page-booking.booking-sheet--compact .calendar-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}

#page-booking.booking-sheet--compact .calendar-footer-button {
  height: 32px;
  min-width: 78px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18.2857px;
}

#page-booking.booking-sheet--compact .calendar-cancel {
  border-color: #e4e4e7;
  color: #252525;
  background: #fff;
}

#page-booking.booking-sheet--compact .calendar-cancel:hover {
  background: #f4f4f5;
}

#page-booking.booking-sheet--compact .calendar-save {
  color: #fff;
  background: var(--accent);
}

#page-booking.booking-sheet--compact .calendar-save:hover {
  filter: brightness(0.96);
}

#page-booking.booking-sheet--compact .calendar-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Practice-flow confirmation card ---------- */

#page-review.confirmation-stage.active {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(35, 35, 39, 0.2);
  backdrop-filter: blur(2px);
}

#page-review.confirmation-stage .confirmation-card {
  position: relative;
  z-index: 1;
  width: min(372px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  color: #2b2b2f;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

#page-review.confirmation-stage .confirmation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px 24px;
  text-align: center;
}

#page-review.confirmation-stage .confirmation-media {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: #7d5ce8;
  background: #f1ebff;
}

#page-review.confirmation-stage .confirmation-media svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-review.confirmation-stage .confirmation-content h2 {
  max-width: 300px;
  margin: 0;
  color: #252529;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

#page-review.confirmation-stage .confirmation-content p {
  max-width: 292px;
  margin: 0;
  color: #77777d;
  font-size: 13px;
  line-height: 19px;
}

#page-review.confirmation-stage .confirmation-details {
  display: grid;
  gap: 14px;
  margin: 0 24px 32px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(245, 245, 247, 0.86);
}

#page-review.confirmation-stage .confirmation-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
}

#page-review.confirmation-stage .confirmation-detail-row dt {
  color: #77777d;
  font-weight: 500;
}

#page-review.confirmation-stage .confirmation-detail-row dd {
  margin: 0;
  color: #252529;
  font-weight: 600;
  text-align: right;
}

#page-review.confirmation-stage .confirmation-footer {
  display: flex;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

#page-review.confirmation-stage .confirmation-close {
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

#page-review.confirmation-stage .confirmation-close:hover {
  filter: brightness(0.96);
}

/* ---------- Practice-flow success card ---------- */

#page-reservation-success.reservation-success-sheet.active {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  min-height: 0;
  padding: 24px;
  background: rgba(35, 35, 39, 0.2);
  backdrop-filter: blur(2px);
}

#page-reservation-success .task-success-card {
  position: relative;
  z-index: 1;
  width: min(372px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  color: #2b2b2f;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

#page-reservation-success .task-success-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
}

#page-reservation-success .task-success-media {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7d5ce8;
  background: #f1ebff;
}

#page-reservation-success .task-success-media svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#page-reservation-success .task-success-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#page-reservation-success .task-success-copy h2 {
  margin: 0;
  color: #252529;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

#page-reservation-success .task-success-copy p {
  margin: 0;
  color: #77777d;
  font-size: 13px;
  line-height: 18px;
}

#page-reservation-success .task-success-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

#page-reservation-success .task-success-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#page-reservation-success .task-success-button {
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 18.2857px;
}

#page-reservation-success .task-success-confirm {
  color: #fff;
  background: var(--accent);
}

#page-reservation-success .task-success-confirm:hover {
  filter: brightness(0.96);
}

@media (max-width: 700px) {
  #page-booking.booking-sheet--compact.active,
  #page-review.confirmation-stage.active,
  #page-reservation-success.reservation-success-sheet.active {
    align-items: center;
    padding: 12px;
  }

  #page-booking.booking-sheet--compact .calendar-card {
    width: 212px;
    height: auto;
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }

  #page-booking.booking-sheet--compact .calendar-card-body {
    height: 450px;
    min-height: 450px;
    flex-direction: column;
  }

  #page-booking.booking-sheet--compact .calendar-picker {
    width: 212px;
    min-width: 212px;
    height: 258px;
    flex: 0 0 258px;
    padding: 8px;
  }

  #page-booking.booking-sheet--compact .calendar-toolbar {
    margin-top: 0;
    margin-bottom: 16px;
  }

  #page-booking.booking-sheet--compact .time-picker {
    width: 100%;
    height: 192px;
    flex: 0 0 192px;
    border-top: 1px solid #ededee;
    border-left: 0;
  }

  #page-booking.booking-sheet--compact .time-picker-inner {
    padding: 16px 20px;
  }

  #page-booking.booking-sheet--compact .time-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #page-booking.booking-sheet--compact .calendar-footer {
    flex: 0 0 auto;
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 12px 16px;
  }

  #page-booking.booking-sheet--compact .calendar-footer-button {
    width: 100%;
  }
}
