:root {
  --bg-start: #0f172a;
  --bg-end: #1e293b;
  --card-bg: rgba(15, 23, 42, 0.78);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --input-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(255, 255, 255, 0.2);
  --danger: #f43f5e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background: linear-gradient(145deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
}

.auth-body {
  overflow-x: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.auth-bg__blob {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 999px;
  filter: blur(120px);
}

.auth-bg__blob--left {
  top: -10%;
  left: -10%;
  background: rgba(79, 70, 229, 0.12);
}

.auth-bg__blob--right {
  right: -10%;
  bottom: -10%;
  background: rgba(147, 51, 234, 0.12);
}

.dashboard-page {
  overflow: hidden;
}

.dashboard-page #map-root {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 10;
}

.auth-page--landing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 560px);
}

.auth-card {
  width: min(640px, 100%);
  padding: 30px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.auth-card--landing {
  width: 100%;
  padding: 8px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: none;
}

.auth-card__tabs {
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-card__body {
  padding: 32px 32px 28px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #6366f1;
  color: #fff;
  transform: rotate(3deg);
}

.auth-logo__svg {
  width: 24px;
  height: 24px;
}

.auth-logo__text {
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-logo__text span {
  color: #818cf8;
}

.dashboard-page .auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.dashboard-page .auth-card {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  pointer-events: auto;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.map-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0f172a;
}

.map-view-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 45;
}

.auth-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

.title-row .auth-title {
  margin: 0;
}

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

.auth-subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #94a3b8;
  padding: 20px 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.is-active {
  color: #fff;
  border-bottom-color: #6366f1;
}

.form {
  display: none;
  gap: 20px;
}

.form.is-active {
  display: grid;
}

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

.field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.field span {
  margin-left: 4px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 16px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.6);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input:focus {
  outline: none;
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

input:invalid.user-touched {
  border-color: var(--danger);
}

.custom-select {
  position: relative;
}

.custom-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.custom-select.invalid .custom-select-trigger {
  border-color: var(--danger);
}

.custom-select-trigger {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 10px 34px 10px 12px;
  color: var(--text-main);
  background: var(--input-bg);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.98);
  overflow: hidden;
}

.custom-select-option {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text-main);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(139, 92, 246, 0.16);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #ffffff;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  border-radius: 18px;
  background: #4f46e5;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-submit:hover {
  background: #6366f1;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-footer a {
  color: #818cf8;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #a5b4fc;
}

@media (max-width: 640px) {
  .auth-card__body {
    padding: 24px 20px 22px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint {
  min-height: 20px;
  margin: -3px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hint.error {
  color: var(--danger);
}

.hint.success {
  color: #c4b5fd;
}

.request-message {
  min-height: 20px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  color: transparent;
}

.request-message.error {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.14);
}

.request-message.success {
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.14);
}

.request-message.info {
  color: var(--text-muted);
  border-color: var(--card-border);
  background: rgba(255, 255, 255, 0.05);
}

.places-search {
  margin-top: 12px;
  margin-bottom: 12px;
}

.places-search label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.places-search-row {
  position: relative;
}

.places-search-row input {
  width: 100%;
  min-width: 0;
  padding-right: 12px;
}

.places-search-row.places-search-row--has-value input {
  padding-right: 40px;
}

.places-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 1;
}

/* Иначе display:flex перебивает поведение атрибута hidden */
.places-search-clear[hidden] {
  display: none !important;
}

.places-search-clear:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.places-search-clear:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

.places-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.places-type-filter {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.places-type-filter:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.places-type-filter:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.45);
}

.places-type-filter--active {
  color: #f8f5ff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), rgba(99, 102, 241, 0.45));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.25);
}

@media (max-width: 520px) {
  .places-type-filters {
    gap: 6px;
  }

  .places-type-filter {
    padding: 9px 10px;
    font-size: 0.68rem;
  }
}

.btn-primary {
  margin-top: 2px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #f8f5ff;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

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

.profile-modal-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-action-btn {
  width: 100%;
}

.btn-logout {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.65);
  color: #ffe4e6;
}

.profile-modal-content {
  width: min(720px, 100%);
  padding: 34px 28px 28px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.profile-modal-content::before,
.profile-modal-content::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.profile-modal-content::before {
  top: -48px;
  right: -48px;
  background: rgba(79, 70, 229, 0.12);
}

.profile-modal-content::after {
  left: -48px;
  bottom: -48px;
  background: rgba(245, 158, 11, 0.08);
}

.profile-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
}

.profile-avatar-wrap {
  position: relative;
  margin-bottom: 22px;
  width: 128px;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: rgba(79, 70, 229, 0.12);
  border: 2px solid rgba(99, 102, 241, 0.26);
  color: #818cf8;
}

.profile-avatar__icon {
  width: 64px;
  height: 64px;
  opacity: 0.8;
}

.profile-rating-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #020617;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.2);
}

.profile-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transform: translateX(6px);
  white-space: nowrap;
}

.profile-title span {
  display: inline-block;
}

.profile-title span + span {
  margin-left: 8px;
}

.profile-title__accent {
  color: #818cf8;
}

.profile-info-grid {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.profile-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info-card__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
}

.profile-info-card__svg {
  width: 20px;
  height: 20px;
}

.profile-info-card__body {
  min-width: 0;
}

.profile-info-card__label {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-info-card__value {
  margin: 0;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.profile-modal-actions--double {
  position: relative;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: row;
  gap: 14px;
}

.profile-edit-form {
  display: grid;
  margin-top: 18px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-edit-field {
  margin: 0;
}

.profile-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.btn-profile-primary {
  flex: 1 1 0;
  border: none;
  background: #4f46e5;
  color: #fff;
  padding: 16px;
  border-radius: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.btn-profile-primary:hover {
  background: #6366f1;
}

.btn-logout--profile {
  flex: 1 1 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(30, 41, 59, 0.72);
  color: rgba(248, 250, 252, 0.78);
  padding: 16px;
  border-radius: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.btn-logout--profile:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.38);
  color: #fff;
}

.profile-modal-content #profile-message {
  position: relative;
  margin: 0 0 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .profile-modal-content {
    padding: 28px 18px 18px;
    border-radius: 28px;
  }

  .profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: 28px;
  }

  .profile-avatar-wrap {
    width: 108px;
  }

  .profile-avatar__icon {
    width: 54px;
    height: 54px;
  }

  .profile-title {
    font-size: 1.2rem;
  }

  .profile-info-card {
    align-items: flex-start;
  }

  .profile-modal-actions--double {
    flex-direction: column;
  }

  .profile-edit-grid,
  .profile-edit-actions {
    grid-template-columns: 1fr;
  }
}

.user-rooms-modal-content {
  position: relative;
  width: min(720px, 100%);
  padding: 36px 32px 30px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.user-rooms-modal-content::before,
.user-rooms-modal-content::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  filter: blur(56px);
  pointer-events: none;
}

.user-rooms-modal-content::before {
  top: -40px;
  right: -36px;
  background: rgba(99, 102, 241, 0.14);
}

.user-rooms-modal-content::after {
  left: -40px;
  bottom: -48px;
  background: rgba(79, 70, 229, 0.1);
}

.user-rooms-modal-content .modal-controls {
  z-index: 2;
}

.user-rooms-modal-content .modal-close-btn {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.user-rooms-modal-content .modal-close-btn:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.14);
}

.user-rooms-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 22px;
}

.user-rooms-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.user-rooms-title span {
  color: #818cf8;
}

.user-rooms-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 0.96rem;
  line-height: 1.45;
}

.user-rooms-message {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  text-align: center;
}

.user-rooms-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-height: min(500px, 58vh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(255, 255, 255, 0.04);
}

.user-rooms-list::-webkit-scrollbar {
  width: 8px;
}

.user-rooms-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.user-rooms-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 999px;
}

.user-rooms-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

.user-room-card {
  padding: 22px 22px 18px;
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.user-room-card__venue {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

.user-room-card__address {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.45;
}

.user-room-card__meta {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-room-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.user-room-card__key {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.user-room-card__val {
  margin: 0;
  text-align: right;
  color: #e2e8f0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.user-room-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.user-room-card__qr-btn {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.user-room-card__qr-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(129, 140, 248, 0.65);
  color: #fff;
}

.user-room-card__qr-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

.user-room-card__leave-btn {
  width: 100%;
  margin-top: 0;
  height: 48px;
  border: 2px solid rgba(244, 63, 94, 0.45);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
  color: #fecdd3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.user-room-card__leave-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.35) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
}

.user-room-card__leave-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.user-room-card__leave-btn:focus-visible {
  outline: 2px solid rgba(244, 63, 94, 0.6);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .user-rooms-modal-content {
    padding: 30px 20px 22px;
    border-radius: 28px;
  }

  .user-rooms-title {
    font-size: 1.55rem;
  }

  .user-rooms-list {
    max-height: min(540px, 62vh);
  }

  .user-room-card__val {
    font-size: 0.98rem;
  }

  .user-room-card__actions {
    grid-template-columns: 1fr;
  }
}

.room-qr-modal-content {
  width: min(400px, 100%);
  padding: 22px 20px 20px;
  border-radius: 24px;
  text-align: center;
}

.room-qr-modal__title {
  margin-right: 0;
  text-align: center;
  font-size: 1.35rem;
}

.room-qr-modal__hint {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.room-qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px auto 12px;
  padding: 14px;
  max-width: 240px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.room-qr-container img,
.room-qr-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.room-qr-url {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.4;
  word-break: break-all;
  text-align: left;
}

.room-qr-copy-btn {
  margin-top: 4px;
}

.room-qr-copy-feedback {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #6ee7b7;
  font-size: 0.85rem;
  font-weight: 600;
}

.room-qr-copy-feedback.hidden {
  display: none;
}

.room-qr-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.9rem;
  line-height: 1.4;
}

.room-qr-loading {
  margin: 0;
  padding: 24px 12px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.verify-page {
  max-width: 520px;
  margin: 0 auto;
}

.verify-card {
  text-align: left;
}

.verify-card__title {
  text-align: center;
  margin-bottom: 16px;
}

.verify-card__status {
  margin-bottom: 14px;
}

.verify-result {
  margin: 0 0 18px;
}

.verify-result .user-room-card {
  margin: 0;
}

.verify-check-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
}

.verify-check-badge--in {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.verify-check-badge--out {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.verify-result-raw {
  margin: 0;
  padding: 14px;
  max-height: min(360px, 50vh);
  overflow: auto;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.verify-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-card__link {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.create-room-modal-content {
  width: min(760px, 100%);
  padding: 32px 28px 28px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.create-room-head {
  text-align: center;
  margin-bottom: 28px;
}

.create-room-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.create-room-title span {
  color: #818cf8;
}

.create-room-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.create-room-form {
  display: grid;
  gap: 24px;
}

.create-room-field span {
  margin-left: 4px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.create-room-field input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.6);
}

.create-room-field input:focus {
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

.create-room-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

.create-room-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-room-note__icon {
  color: #818cf8;
  flex: 0 0 auto;
  margin-top: 2px;
}

.create-room-note__icon svg {
  width: 20px;
  height: 20px;
}

.create-room-note p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.6;
}

.create-room-submit {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #4f46e5;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.create-room-submit:hover {
  background: #6366f1;
}

.create-place-modal-content {
  width: min(860px, 100%);
  padding: 32px 28px 28px;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.create-place-head {
  text-align: center;
  margin-bottom: 28px;
}

.create-place-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.create-place-title span {
  color: #818cf8;
}

.create-place-subtitle {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.create-place-form {
  display: grid;
  gap: 24px;
}

.create-place-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.create-place-field span,
.create-place-hours__label,
.create-place-stub__label {
  margin-left: 4px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.create-place-field input,
.create-place-field .custom-select-trigger,
.create-place-rating-wrap input {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 18px 16px;
  background: rgba(15, 23, 42, 0.6);
}

.create-place-field input:focus,
.create-place-field .custom-select-trigger:focus,
.create-place-rating-wrap input:focus {
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

.create-place-select::after {
  right: 18px;
  color: #6366f1;
}

.create-place-select.invalid .custom-select-trigger {
  border-color: var(--danger);
}

.create-place-select .custom-select-trigger {
  padding-right: 46px;
}

.create-place-select .custom-select-options {
  top: calc(100% + 8px);
  border-radius: 18px;
}

.create-place-select .custom-select-option {
  padding: 14px 16px;
}

.create-place-hours {
  display: grid;
  gap: 10px;
}

.create-place-hours__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.create-place-hours__row .field {
  flex: 1 1 0;
}

.create-place-hours__dash {
  color: #64748b;
  font-size: 1.2rem;
  margin-top: 16px;
}

.create-place-workdays {
  display: grid;
  gap: 10px;
}

.create-place-workdays__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.create-place-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  cursor: pointer;
  color: #e2e8f0;
  font-size: 0.9rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.create-place-radio:has(input:checked) {
  border-color: #818cf8;
  background: rgba(129, 140, 248, 0.14);
}

.create-place-radio input {
  accent-color: #818cf8;
  width: 18px;
  height: 18px;
  margin: 0;
}

.count-sale-block {
  display: grid;
  gap: 10px;
}

.count-sale-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.count-sale-rows {
  display: grid;
  gap: 10px;
}

.count-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.create-sale-input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.95rem;
}

.create-sale-input:focus {
  outline: none;
  border-color: #818cf8;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

.count-sale-remove {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.count-sale-remove:hover {
  color: #f8fafc;
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.35);
}

.count-sale-add-btn {
  justify-self: start;
  margin-top: 2px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(129, 140, 248, 0.45);
  background: transparent;
  color: #a5b4fc;
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.count-sale-add-btn:hover {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.65);
  color: #e0e7ff;
}

@media (max-width: 640px) {
  .count-sale-row {
    grid-template-columns: 1fr;
  }

  .count-sale-remove {
    width: 100%;
    height: 42px;
  }
}

.create-place-stub-group {
  display: grid;
  gap: 22px;
}

.create-place-stub {
  display: grid;
  gap: 10px;
}

.create-place-file-input {
  display: none;
}

.create-place-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  padding: 20px;
  border-radius: 32px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.18);
  color: #94a3b8;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.create-place-dropzone:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
}

.create-place-dropzone__icon {
  width: 40px;
  height: 40px;
  color: #818cf8;
}

.create-place-dropzone span:last-child {
  font-size: 0.78rem;
}

.create-place-rating-wrap {
  position: relative;
}

.create-place-rating-wrap__suffix {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.create-place-rating-wrap input[disabled] {
  color: rgba(248, 250, 252, 0.7);
  cursor: default;
}

.create-place-submit {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #4f46e5;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.create-place-submit:hover {
  background: #6366f1;
}

.create-place-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}

@media (max-width: 640px) {
  .create-room-modal-content {
    padding: 28px 18px 18px;
    border-radius: 28px;
  }

  .create-room-title {
    font-size: 1.45rem;
  }

  .create-place-modal-content {
    padding: 28px 18px 18px;
    border-radius: 28px;
  }

  .create-place-title {
    font-size: 1.45rem;
  }

  .create-place-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .create-place-hours__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .create-place-hours__dash {
    display: none;
  }

}

.hidden {
  display: none !important;
}

.icon-btn {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.icon-btn:hover {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.16);
}

.places-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.place-item {
  margin: 0;
  list-style: none;
}

.place-card-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 28px;
  padding: 0;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.place-card-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.place-card-cover {
  min-height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(30, 41, 59, 0.15)),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.24), transparent 45%),
    rgba(30, 41, 59, 0.9);
  position: relative;
  overflow: hidden;
}

.place-card-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.42s ease-in-out;
}

.place-card-cover__image--fade {
  opacity: 0;
}

.place-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.08) 100%);
  z-index: 1;
}

.place-card-cover__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
}

.place-card-type-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.82);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.place-card-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
}

.place-card-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.place-card-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.place-card-info {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.place-card-info__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.place-card-info__label-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
  margin-bottom: 4px;
}

.place-card-info__label-wrap .place-card-info__label {
  margin: 0;
}

.place-card-info__workday-sep {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.place-card-info__workday {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place-card-info__label {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.place-card-info__value {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
}

.place-card-map-btn {
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.place-card-map-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #e0e7ff;
}

.place-card-map-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.place-item__card {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.place-item__card:hover {
  border-color: rgba(139, 92, 246, 0.7);
  background: rgba(139, 92, 246, 0.12);
}

.place-item__card:hover .place-focus-btn {
  background: rgba(139, 92, 246, 0.14);
  border-left-color: rgba(139, 92, 246, 0.4);
  color: #e9d5ff;
}

.place-btn {
  flex: 1;
  text-align: left;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.place-btn__name {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

.place-btn__type {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.place-item__card:hover .place-btn__name {
  color: #fff;
}

.place-item__card:hover .place-btn__type {
  color: rgba(203, 213, 225, 0.95);
}

.place-focus-btn {
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(196, 181, 253, 0.95);
  width: 48px;
  min-width: 48px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-left-color 0.15s ease;
}

.place-focus-btn svg {
  display: block;
  opacity: 0.95;
}

.place-item__card .place-focus-btn:hover {
  background: rgba(139, 92, 246, 0.32);
  color: #f5f3ff;
  border-left-color: rgba(167, 139, 250, 0.55);
}

.place-focus-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}

.place-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  z-index: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(16px, 4vh, 40px) 20px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  box-sizing: border-box;
}

.modal > .modal-content {
  flex-shrink: 0;
}

.modal.hidden {
  display: none;
}

.modal--stack {
  z-index: 1010;
}

.modal-content {
  width: min(520px, 100%);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 18px;
  position: relative;
}

.modal-title {
  margin-right: 26px;
}

.venue-modal-content {
  width: min(720px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.venue-hero {
  position: relative;
}

.venue-cover {
  min-height: 260px;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(30, 41, 59, 0.15)),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.24), transparent 45%),
    rgba(30, 41, 59, 0.9);
  position: relative;
  z-index: 1;
}

.venue-cover__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.venue-cover__overlay {
  z-index: 1;
}

.venue-cover__overlay {
  display: flex;
  min-height: 260px;
  align-items: flex-end;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.venue-hero__top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.venue-type-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.82);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.venue-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.venue-address {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
}

.venue-rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
}

.venue-modal-content .modal-controls {
  z-index: 5;
}

.venue-modal-content .modal-close-btn,
.venue-modal-content #modal-delete-btn,
.venue-modal-content #modal-edit-place-btn {
  position: relative;
  z-index: 6;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.venue-modal-content .modal-close-btn:hover,
.venue-modal-content #modal-delete-btn:hover,
.venue-modal-content #modal-edit-place-btn:hover {
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(99, 102, 241, 0.14);
}

.venue-body {
  padding: 32px 32px 28px;
}

.venue-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.venue-info-grid--single {
  margin-top: 16px;
}

.venue-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.venue-info-card__icon {
  color: #818cf8;
}

.venue-info-card__svg {
  width: 24px;
  height: 24px;
}

.venue-info-card__label {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.venue-info-card__value {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.venue-gallery {
  margin-top: 28px;
}

.venue-count-sale:not(.hidden) + .venue-gallery {
  margin-top: 14px;
}

.venue-gallery__title {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Unbounded", sans-serif;
}

.venue-gallery__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.venue-gallery__item {
  flex: 0 0 160px;
  height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(30, 41, 59, 0.4)),
    rgba(255, 255, 255, 0.04);
}

.venue-gallery__photo {
  flex: 0 0 160px;
  height: 112px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  cursor: zoom-in;
}

.interior-photo-modal-content {
  position: relative;
  width: min(90vw, 980px);
  padding: 14px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.interior-photo-modal-content .modal-controls {
  z-index: 6;
}

.interior-photo-modal-content .modal-close-btn {
  position: relative;
  z-index: 7;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.interior-photo-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interior-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.15s ease;
}

.interior-photo-nav:hover {
  background: rgba(0, 0, 0, 0.62);
}

.interior-photo-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.interior-photo-nav--prev {
  left: 10px;
}

.interior-photo-nav--next {
  right: 10px;
}

.interior-photo-nav span {
  display: block;
  margin-top: -2px;
}

.interior-photo-image {
  display: block;
  width: 100%;
  max-height: calc(90vh - 40px);
  object-fit: contain;
  border-radius: 14px;
}

.interior-photo-counter {
  margin: 10px 0 0;
  text-align: center;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 520px) {
  .interior-photo-nav {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }

  .interior-photo-nav--prev {
    left: 6px;
  }

  .interior-photo-nav--next {
    right: 6px;
  }
}

.venue-actions {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.place-edit-form {
  display: grid;
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 14px;
}

.place-edit-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.place-edit-form .venue-secondary-btn {
  min-height: 50px;
}

.venue-count-sale--compact {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.venue-count-sale__compact-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  line-height: 1.45;
  font-size: 0.88rem;
}

.venue-count-sale__compact-label {
  flex-shrink: 0;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venue-count-sale__compact-values {
  color: #94a3b8;
  font-weight: 500;
  min-width: 0;
}

.venue-count-sale__tier {
  white-space: nowrap;
}

.venue-count-sale__tier-discount {
  color: #6ee7b7;
  font-weight: 600;
}

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

.venue-primary-btn,
.venue-secondary-btn {
  width: 100%;
  border-radius: 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.venue-primary-btn {
  border: none;
  padding: 18px;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.venue-primary-btn:hover {
  background: #6366f1;
}

.venue-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  background: rgba(30, 41, 59, 0.7);
  color: rgba(248, 250, 252, 0.82);
}

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

.venue-secondary-btn--accent {
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.25);
}

.venue-secondary-btn--accent:hover {
  background: rgba(99, 102, 241, 0.1);
}

.venue-rooms-section {
  margin-top: 28px;
}

.venue-body--rooms-expanded .venue-actions {
  margin-top: 28px;
}

.venue-body--rooms-expanded .venue-rooms-section {
  margin-top: 24px;
}

.venue-body--rooms-expanded .modal-rooms-list {
  max-height: min(560px, 68vh);
}

.modal-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.modal-info p {
  margin: 10px 0;
  color: var(--text-muted);
}

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

.modal-rooms {
  margin-top: 0;
}

.modal-rooms-global-error {
  margin-top: 10px;
  margin-bottom: 0;
}

.modal-room-error {
  margin-top: 10px;
  margin-bottom: 0;
}

.modal-rooms-title {
  margin: 0 0 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.modal-rooms-empty {
  margin: 0;
  color: var(--text-muted);
}

.modal-rooms-loading {
  margin: 0;
  padding: 12px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.92rem;
}

.modal-rooms-list {
  display: grid;
  gap: 18px;
  max-height: min(380px, 55vh);
  overflow-y: auto;
  padding: 0 6px 28px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(255, 255, 255, 0.04);
  overscroll-behavior: contain;
}

.modal-rooms-list::-webkit-scrollbar {
  width: 8px;
}

.modal-rooms-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.modal-rooms-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 999px;
}

.modal-room-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  padding: 24px 24px 28px;
  transition: all 0.3s ease;
}

.modal-room-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.modal-room-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-room-head-info {
  flex: 1;
  min-width: 0;
}

.modal-room-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-room-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.modal-room-status-text {
  color: #34d399;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal-room-status--full .modal-room-status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.modal-room-status--full .modal-room-status-text {
  color: #f87171;
}

.modal-room-header .modal-room-name {
  flex: 1;
  min-width: 0;
}

.modal-room-places {
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
}

.modal-room-places-label {
  margin: 0 0 2px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-room-places-value {
  margin: 0;
  color: #818cf8;
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-room-places-value span {
  color: #475569;
}

.modal-room-discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.22);
}

.modal-room-discount__label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.modal-room-discount__value {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #a5b4fc;
  white-space: nowrap;
}

.modal-room-discount__value--muted {
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
}

.modal-room-join-btn {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 4px;
  height: 50px;
  border: 2px solid #4f46e5;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
  color: #f1f5f9;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.12);
}

.modal-room-join-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.2);
}

.modal-room-join-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-room-join-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-room-leave-btn {
  width: 100%;
  margin-top: 18px;
  margin-bottom: 4px;
  height: 50px;
  border: 2px solid rgba(244, 63, 94, 0.45);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.96) 100%);
  color: #fecdd3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.modal-room-leave-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.35) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
}

.modal-room-leave-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.modal-room-leave-btn:focus-visible {
  outline: 2px solid rgba(244, 63, 94, 0.6);
  outline-offset: 2px;
}

.modal-room-join-btn svg {
  display: block;
}

.modal-room-name {
  margin: 0;
  color: var(--text-main);
  font-family: "Unbounded", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-room-visit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
}

.modal-room-visit-icon {
  color: #818cf8;
  flex: 0 0 auto;
}

.modal-room-visit-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.modal-room-users-title {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-room-users-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
}

.modal-room-users-list li {
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-room-user-initials {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #6366f1;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.modal-room-user-name {
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .venue-modal-content {
    border-radius: 28px;
  }

  .venue-cover,
  .venue-cover__overlay {
    min-height: 220px;
  }

  .venue-cover__overlay,
  .venue-body {
    padding: 20px 18px;
  }

  .venue-hero__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .venue-info-grid,
  .venue-actions__row,
  .place-edit-form__actions {
    grid-template-columns: 1fr;
  }

  .venue-gallery__item {
    flex-basis: 136px;
    height: 96px;
  }

  .modal-room-header {
    flex-direction: column;
  }

  .modal-rooms-list {
    max-height: min(520px, 58vh);
  }

  .venue-body--rooms-expanded .modal-rooms-list {
    max-height: min(640px, 72vh);
  }

  .modal-room-join-btn,
  .modal-room-leave-btn {
    width: 100%;
    min-width: 0;
  }

  .dashboard-page .auth-page {
    justify-content: center;
    padding: 10px;
  }

  .dashboard-page .auth-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 20px 14px;
  }

  .auth-card {
    padding: 22px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
