/* ЭЛМИ — космический интерфейс */
@font-face {
  font-family: 'Poiret One';
  src: url('/assets/fonts/PoiretOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #02040b;
  --panel: #0b0f1b;
  --panel-2: #0e1424;
  --text: #f7f3e8;
  --muted: #b7b1a3;
  --accent: #ffd300;
  --accent-strong: #ffb800;
  --border: rgba(255, 211, 0, 0.2);
  --glow: rgba(255, 211, 0, 0.25);
  --success: #3ddc97;
  --danger: #ff6b6b;
  --shadow: 0 22px 50px rgba(2, 4, 11, 0.65);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poiret One', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 900px at 50% 110%, rgba(20, 35, 90, 0.5), transparent 65%),
    radial-gradient(900px 700px at 10% -10%, rgba(10, 20, 60, 0.55), transparent 60%),
    #02040b;
  overflow-x: hidden;
}

.starfield { position: fixed; inset: -60% 0 0 0; height: 160%; z-index: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; animation: star-fall 22s linear infinite; opacity: .55; }
.stars.layer1 {
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 0, transparent 60%),
    radial-gradient(1px 1px at 80% 10%, #fff 0, transparent 60%),
    radial-gradient(1px 1px at 50% 70%, #fff 0, transparent 60%),
    radial-gradient(1px 1px at 30% 40%, #fff 0, transparent 60%),
    radial-gradient(1px 1px at 70% 50%, #fff 0, transparent 60%);
  background-size: 300px 300px;
}
.stars.layer2 {
  opacity: .4;
  filter: blur(.6px);
  background-size: 420px 420px;
  animation-duration: 34s;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 30%, #d8e6ff 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 15%, #d8e6ff 0, transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 65%, #d8e6ff 0, transparent 60%);
}
.stars.layer3 {
  opacity: .25;
  filter: blur(1px);
  background-size: 520px 520px;
  animation-duration: 45s;
  background-image:
    radial-gradient(2px 2px at 20% 15%, #b7c6ff 0, transparent 60%),
    radial-gradient(2px 2px at 45% 80%, #b7c6ff 0, transparent 60%);
}

@keyframes star-fall {
  0% { transform: translateY(0); }
  100% { transform: translateY(70%); }
}

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; gap: 18px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 211, 0, 0.12);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.brand h1 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
  font-size: 22px;
}
.brand, .brand h1, .brand small { font-family: 'Poiret One', 'Segoe UI', sans-serif; }

.top-links { display: flex; gap: 16px; flex-wrap: wrap; }
.link { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(255, 211, 0, 0.4); }
.link:hover { color: var(--accent-strong); }

.tabs { display: grid; gap: 16px; padding: 24px 32px 32px; }
.tab-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 12px; border: 1px solid rgba(255, 211, 0, 0.12); border-radius: 16px;
  background: rgba(10, 14, 28, 0.7);
}
.tab-bar label {
  cursor: pointer; padding: 8px 12px; border-radius: 12px; color: var(--muted);
  border: 1px solid transparent; font-weight: 600;
}

.panel {
  display: none;
  background: linear-gradient(180deg, rgba(11, 15, 27, 0.9), rgba(6, 9, 18, 0.95));
  border: 1px solid rgba(255, 211, 0, 0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

#tab-home:checked ~ .tab-bar label[for="tab-home"],
#tab-register:checked ~ .tab-bar label[for="tab-register"],
#tab-login:checked ~ .tab-bar label[for="tab-login"],
#tab-search:checked ~ .tab-bar label[for="tab-search"],
#tab-profile:checked ~ .tab-bar label[for="tab-profile"],
#tab-booking:checked ~ .tab-bar label[for="tab-booking"],
#tab-notify:checked ~ .tab-bar label[for="tab-notify"],
#tab-client:checked ~ .tab-bar label[for="tab-client"],
#tab-master:checked ~ .tab-bar label[for="tab-master"],
#tab-mailing:checked ~ .tab-bar label[for="tab-mailing"],
#tab-chat:checked ~ .tab-bar label[for="tab-chat"],
#tab-admin:checked ~ .tab-bar label[for="tab-admin"] {
  color: var(--text);
  background: rgba(255, 211, 0, 0.12);
  border-color: var(--border);
}

#tab-home:checked ~ [data-tab="home"],
#tab-register:checked ~ [data-tab="register"],
#tab-login:checked ~ [data-tab="login"],
#tab-search:checked ~ [data-tab="search"],
#tab-profile:checked ~ [data-tab="profile"],
#tab-booking:checked ~ [data-tab="booking"],
#tab-notify:checked ~ [data-tab="notify"],
#tab-client:checked ~ [data-tab="client"],
#tab-master:checked ~ [data-tab="master"],
#tab-mailing:checked ~ [data-tab="mailing"],
#tab-chat:checked ~ [data-tab="chat"],
#tab-admin:checked ~ [data-tab="admin"] {
  display: block;
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: rgba(10, 14, 28, 0.9);
  border: 1px solid rgba(255, 211, 0, 0.08);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.card h3 { margin: 0 0 8px 0; font-size: 18px; }
.card small { color: var(--muted); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.wrap { flex-wrap: wrap; }

.cta-primary {
  background: linear-gradient(140deg, #0b1b3b, #0a1024);
  color: var(--accent);
  border-radius: 18px;
  padding: 12px 20px;
  font-weight: 700;
  border: 1px solid rgba(255, 211, 0, 0.2);
  box-shadow:
    0 18px 34px rgba(10, 16, 36, 0.6),
    0 14px 0 rgba(5, 8, 18, 0.9),
    inset 0 6px 18px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.cta-primary:hover { transform: translateY(-2px); }

.cta-secondary {
  background: rgba(8, 12, 24, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px 20px;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.cta-secondary:hover { transform: translateY(-2px); }

.form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(255, 211, 0, 0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
}
textarea { min-height: 90px; resize: vertical; }

.list { display: grid; gap: 12px; }
.list .item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(9, 12, 22, 0.85);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 211, 0, 0.08);
}

.badge {
  background: rgba(255, 211, 0, 0.16);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.profile-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.avatar { width: 72px; height: 72px; border-radius: 16px; background: rgba(255, 211, 0, 0.12); border: 1px solid rgba(255, 211, 0, 0.2); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; align-items: start; }
.gallery-tile { border-radius: 14px; background: rgba(255, 211, 0, 0.08); border: 1px solid rgba(255, 211, 0, 0.2); padding: 8px; display: grid; gap: 6px; width: 100%; max-width: 220px; }
.gallery-layout { align-items: start; }
.gallery-layout .gallery-grid { margin-top: 0; }
#gallery-list { display: none; }
.gallery-layout {
  grid-template-columns: 1fr;
  justify-items: center;
}
.gallery-layout .form {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.gallery-layout .form input,
.gallery-layout .form button {
  width: 100%;
}
.gallery-layout .form .grid.two {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-layout .form .grid.two #add-gallery {
  height: 44px;
}
@media (max-width: 900px) {
  .gallery-layout .form { max-width: 100%; }
  .gallery-layout .form .grid.two { grid-template-columns: 1fr; }
}
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.slot {
  background: rgba(10, 14, 28, 0.9);
  border: 1px solid rgba(255, 211, 0, 0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.slot.active {
  background: rgba(255, 211, 0, 0.18);
  border-color: rgba(255, 211, 0, 0.7);
  color: var(--accent);
  font-weight: 700;
}

.calendar { display: grid; gap: 12px; }
.calendar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.day-cell {
  height: 38px;
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.9);
  border: 1px solid rgba(255, 211, 0, 0.12);
  color: var(--text);
  text-align: center;
  cursor: pointer;
}
.day-cell.muted { color: rgba(255,255,255,0.35); }
.day-cell.today { border-color: rgba(255, 211, 0, 0.5); }
.day-cell.active {
  background: rgba(255, 211, 0, 0.18);
  border-color: rgba(255, 211, 0, 0.7);
  color: var(--accent);
  font-weight: 700;
}
.day-cell.off { opacity: 0.4; }
.day-cell.has-booking {
  position: relative;
}
.day-cell.has-booking::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 211, 0, 0.85);
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.schedule-card .calendar-title {
  text-align: center;
  font-weight: 700;
  color: var(--text);
}
.schedule-list .schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(10, 14, 28, 0.75);
  border: 1px solid rgba(255, 211, 0, 0.12);
}
.schedule-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 211, 0, 0.12);
  border: 1px solid rgba(255, 211, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  flex: 0 0 auto;
}
.schedule-meta {
  flex: 1;
  min-width: 0;
}
.schedule-meta small {
  color: var(--muted);
}
.schedule-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chat { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.chat .bubble {
  padding: 8px 10px; border-radius: 14px;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid rgba(255, 211, 0, 0.1);
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
}
.chat .bubble.self {
  background: rgba(255, 211, 0, 0.12);
  border: 1px solid rgba(255, 211, 0, 0.25);
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat .bubble-text { line-height: 1.3; }
.chat .bubble-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 211, 0, 0.25);
}
.chat-header { margin-bottom: 8px; }

.footer { padding: 24px 32px; color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .gallery-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .tabs { padding: 20px; }
  .tab-bar { gap: 8px; }
}


.note {
  background: rgba(255, 211, 0, 0.1);
  border: 1px dashed rgba(255, 211, 0, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.form input,
.form select,
.form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.form input[type="text"],
.form input[type="date"],
.form input[type="time"],
.form input[type="email"],
.form input[type="password"],
.form select {
  height: 44px;
  line-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.grid.three,
.grid.two {
  align-items: stretch;
}
.grid.three,
.grid.two {
  min-width: 0;
}
.grid.three input,
.grid.two input {
  min-width: 0;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.time-grid { align-items: start; }
.time-block { width: 100%; }
.mobile-only { display: none; }
.grid.two.mobile-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.select-wrap {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.select-wrap select {
  background: rgba(8, 12, 24, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 211, 0, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
}
@media (max-width: 720px) {
  .search-row { grid-template-columns: 1fr; }
  .time-range-input { display: none; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .grid.three input:last-child { grid-column: 1 / -1; }
  .time-grid { grid-template-columns: 1fr; }
  .grid.two.mobile-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .range-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .range-row input { min-width: 0; width: 100%; }
  .grid.three input[type="date"] { text-align: center; }
  .time-grid input[type="time"] { text-align: center; }
  .mobile-only {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 6px;
  }
  .panel { padding: 18px; }
  .card { padding: 16px; }
  .card-row { grid-template-columns: 52px 1fr; }
  .card-avatar { width: 52px; height: 52px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-actions .cta-primary,
  .card-actions .cta-secondary {
    padding: 8px 10px;
    font-size: 13px;
  }
  .card-slots { margin-top: 4px; }
  .sort-wrap { display: none; }
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 211, 0, 0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}
.badge-count:empty { display: none; }
.badge-count.has-badge {
  background: rgba(255, 211, 0, 0.9);
  color: #101018;
}

#chat-tab-badge {
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
}


.avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 211, 0, 0.2);
  background: rgba(255, 211, 0, 0.08);
}
.avatar#client-avatar,
#client-avatar.avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 0, 0.2);
  background: rgba(255, 211, 0, 0.08);
  background-size: cover;
  background-position: center;
}
.gallery-tile {
  background-size: cover;
  background-position: center;
}


.day-btn {
  background: rgba(8, 12, 24, 0.9);
  color: var(--text);
  border: 1px solid rgba(255, 211, 0, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}
.day-btn.active {
  background: rgba(255, 211, 0, 0.18);
  border-color: var(--accent);
  color: var(--accent);
}


.delete-btn {
  margin-left: 8px;
  padding: 6px 10px;
  font-size: 12px;
}
.gallery-tile {
  position: relative;
}
.gallery-tile .delete-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
}
.gallery-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.gallery-tile:hover .gallery-actions,
.gallery-image.show-actions .gallery-actions {
  opacity: 1;
  pointer-events: auto;
}
.gallery-actions .mini-btn {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 211, 0, 0.45);
  background: rgba(10, 14, 28, 0.8);
  color: var(--text);
}
.gallery-image {
  position: relative;
  width: 100%;
  height: 120px;
  max-width: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 211, 0, 0.08);
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-meta {
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.gallery-meta strong { font-weight: 700; }
.gallery-meta span { color: var(--muted); }
.gallery-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}


.card-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.card-carousel .item {
  scroll-snap-align: start;
  min-width: 280px;
}
.card-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.card-meta { min-width: 0; }
.card-slots { margin-top: 6px; }

#search-results {
  max-height: 640px;
  overflow-y: auto;
  padding-right: 6px;
}
.item.card-clickable { display: grid; gap: 8px; overflow: hidden; }
.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 211, 0, 0.2);
  background: rgba(255, 211, 0, 0.08);
}


.card-vertical {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}
.card-vertical .item {
  min-width: auto;
}
.cta-secondary.active {
  border-color: rgba(255, 211, 0, 0.6);
  color: var(--accent);
}


.view-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.view-toggle .cta-secondary {
  padding: 8px 12px;
}


body[data-view="client"] .profile-editor {
  display: none;
}
body[data-view="master"] .public-view {
  margin-top: 0;
}
body.booking-only .public-view {
  display: none;
}
body.booking-only #public-profile-card {
  display: none;
}
body.booking-only [data-tab="profile"] > h2 {
  display: none;
}


.logo-frame {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 211, 0, 0.25);
  background: rgba(255, 211, 0, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(3);
  transform-origin: center;
}

.tabs { position: relative; }
.tab-bar { position: sticky; top: 0; z-index: 20; pointer-events: auto; }
.tab-bar label.active {
  color: var(--text);
  background: rgba(255, 211, 0, 0.12);
  border: 1px solid var(--border);
}
.panel { position: relative; z-index: 1; margin-top: 12px; display: none; }
.panel.active { display: block; }

.brand { cursor: pointer; }
.logo-frame {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 211, 0, 0.25);
  background: rgba(255, 211, 0, 0.06);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
}

.card-vertical {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 6px;
}
.card-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}
.card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 211, 0, 0.2);
  background: rgba(255, 211, 0, 0.08);
}
.card-clickable { cursor: pointer; }
.card-clickable:hover {
  border-color: rgba(255, 211, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 211, 0, 0.12) inset;
}
.cta-secondary.active {
  border-color: rgba(255, 211, 0, 0.6);
  color: var(--accent);
}
body[data-view="client"] .profile-editor { display: none; }

.input-with-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.avatar-uploader {
  position: relative;
  height: 54px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 211, 0, 0.35);
  background: rgba(255, 211, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.avatar-uploader input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.avatar-placeholder {
  color: var(--muted);
  font-size: 13px;
}
.avatar-uploader img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-uploader.has-image .avatar-placeholder { display: none; }
.avatar-uploader.has-image img { display: block; }
.avatar-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 1px solid rgba(255, 211, 0, 0.4);
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 11px;
  display: none;
}
.avatar-uploader.has-image .avatar-remove { display: inline-flex; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  margin: 12vh auto 0;
  width: min(420px, 92vw);
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid rgba(255, 211, 0, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.image-viewer.active { display: flex; }
.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.image-viewer img {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 211, 0, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.image-viewer-btn {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 211, 0, 0.4);
  background: rgba(10, 14, 28, 0.85);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
}


.top-login { display: flex; align-items: center; }
.top-login .cta-primary { padding: 10px 16px; }
.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.0);
  transform-origin: center;
}


.item.selectable { cursor: pointer; }
.item.selectable.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 211, 0, 0.4); }
.day.off { opacity: 0.4; }
.day.today { border-color: rgba(255, 211, 0, 0.5); }
.cta-row { position: relative; z-index: 5; pointer-events: auto; }
.cta-row button,
.cta-row a,
.cta-row input { position: relative; z-index: 6; pointer-events: auto; }
