:root {
  --bg: #0c0f14;
  --surface: #151a22;
  --border: #2a3344;
  --text: #e8ecf1;
  --muted: #8b97ab;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.locale-switch {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 120;
  display: flex;
  gap: 6px;
}

.locale-switch button {
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.locale-switch button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(59, 130, 246, 0.15);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}

.top-nav-inner {
  margin: 0 auto;
  max-width: 48rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.top-nav-brand {
  font-weight: 600;
  color: var(--text);
}

.top-nav-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.top-nav-sep {
  color: var(--muted);
}

.top-nav-link {
  font-size: 0.875rem;
  color: var(--muted);
}

.top-nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.top-nav-link-active {
  color: var(--text);
}

.top-nav-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.top-nav-logout {
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.top-nav-logout:hover {
  color: var(--text);
}

.page-body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 2rem 1rem;
}

.main-center {
  margin: 0 auto;
  display: flex;
  min-height: 100dvh;
  max-width: 32rem;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
}

.shell {
  margin: 0 auto;
  min-height: 100dvh;
  max-width: 32rem;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .shell {
    padding: 2rem 1rem;
  }
}

.shell-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .shell-header {
    margin-bottom: 2rem;
    gap: 1rem;
  }
}

h1 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}

.home-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
}

.feature-list {
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.feature-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.feature-list .dot {
  color: var(--text);
}

.actions-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-inline {
  display: inline-block;
  width: auto;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  text-decoration: none;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
}

.field .label-text {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}

.field textarea {
  min-height: 5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.note-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.text-error {
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.booking-tagline {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9375rem;
}

.service-btn:hover {
  border-color: var(--accent);
}

.day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.day-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
}

.day-chip-active {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 400px) {
  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.8125rem;
  cursor: pointer;
}

.slot-btn:hover {
  border-color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.back-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.success-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.profile-section {
  margin-top: 1.5rem;
  padding-bottom: 2rem;
}

.profile-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
}

.profile-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.profile-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-grid img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.tile-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .tile-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tile {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  text-align: center;
  font-weight: 500;
  color: var(--text);
  display: block;
}

.tile:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-plain li {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.schedule-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 5rem;
  font-size: 0.875rem;
}

.schedule-row input[type="time"] {
  width: 6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.25rem 0.35rem;
  font-size: 0.875rem;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.search-row input {
  flex: 1;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
}

.map-frame {
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

.map-frame iframe {
  width: 100%;
  height: 14rem;
  border: 0;
}
