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

:root {
  --accent: #3059e1;
  --accent-dark: #2448c4;
  --accent-light: #eef1fc;
  --text: #111;
  --text-muted: #888;
  --text-secondary: #555;
  --border: #ebebeb;
  --bg: #f2f3f7;
  --bg-card: #fff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --nav-h: 56px;
  --bottom-h: 72px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ── TOPNAV ── */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.logo img { height: 32px; width: auto; display: block; }
.nav-left, .nav-right {
  display: flex; align-items: center; gap: 6px; min-width: 60px;
}
.nav-right { justify-content: flex-end; }
.nav-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: background 0.15s;
}
.nav-icon:active { background: var(--bg); }
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 6px;
  padding: 4px 8px;
  letter-spacing: 0.5px;
}

/* ── BOTTOM NAV ── */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-h);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.bn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: color 0.15s;
  padding-top: 8px;
}
.bn svg { transition: transform 0.15s; }
.bn.active { color: var(--accent); }
.bn.active svg { transform: scale(1.1); }
.bn:active { opacity: 0.7; }

/* ── BUTTONS ── */
.btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--accent-light); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* ── INPUTS ── */
.input-group { margin-bottom: 14px; }
.input-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; letter-spacing: 0.3px; }
.input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.input:focus { border-color: var(--accent); }
.input.error { border-color: #e53935; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── MESSAGES ── */
.msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}
.msg.show { display: block; }
.msg-error { background: #fdecea; color: #c62828; }
.msg-success { background: #e8f5e9; color: #2e7d32; }

/* ── PAGE WRAPPER ── */
.page {
  padding-top: calc(var(--nav-h) + 16px);
  padding-bottom: calc(var(--bottom-h) + 16px);
  min-height: 100vh;
}
.page-content { padding: 0 16px; }

/* ── SECTION TITLE ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

/* ── SPINNER ── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   REFACTORED STYLES - Moved from individual HTML files
   ============================================ */

/* Iframe page layout - for band.html and all profile-*.html */
.iframe-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.iframe-page .topnav {
  flex-shrink: 0;
}

.iframe-page .bottomnav {
  flex-shrink: 0;
}

.iframe-wrap {
  flex: 1;
  overflow: hidden;
  background: #fff;
  position: relative;
  padding-top: 56px;
  padding-bottom: 72px;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.iframe-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
}

/* Home page specific styles */
.home-wrap {
  padding: calc(var(--nav-h) + 24px) 16px calc(var(--bottom-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.greeting {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 0 4px;
}

.greeting span {
  color: var(--accent);
}

.hero {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.hero::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-label {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.65;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  max-width: 280px;
}

.hero-btn {
  display: inline-block;
  padding: 11px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: background 0.15s, border-color 0.15s;
}

.hero-btn:active {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 12px;
}

.info-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.info-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Profile page specific styles */
.profile-wrap {
  padding: calc(var(--nav-h) + 20px) 16px calc(var(--bottom-h) + 20px);
}

.profile-header {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 3px;
}

.profile-email {
  font-size: 12px;
  opacity: 0.75;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.15s;
  cursor: pointer;
  width: 100%;
  border: none;
  font-family: inherit;
}

.menu-item:active {
  transform: scale(0.98);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.menu-icon.red {
  background: #fdecea;
  color: #c62828;
}

.menu-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.menu-arrow {
  color: var(--text-muted);
}

.menu-sep {
  height: 8px;
}

/* Booking page specific styles */
.booking-wrap {
  padding: calc(var(--nav-h) + 20px) 16px calc(var(--bottom-h) + 20px);
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

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

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

.srv-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s;
}

.srv-card:active {
  transform: scale(0.97);
}

.srv-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  background: var(--accent-light);
}

.srv-img-ph {
  width: 100%;
  height: 100px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.35;
}

.srv-body {
  padding: 10px 12px 12px;
}

.srv-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 34px;
}

.srv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.srv-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}


.srv-loading {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

/* Iframe mode for booking page */
body.iframe-mode {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.iframe-mode .topnav {
  flex-shrink: 0;
}

body.iframe-mode .bottomnav {
  flex-shrink: 0;
}

body.iframe-mode .booking-wrap {
  display: none;
}

body.iframe-mode .iframe-wrap {
  display: block;
  flex: 1;
  overflow: hidden;
  background: #fff;
}

/* Studio Page Styles */
.studio-wrap {
  padding: calc(var(--nav-h) + 20px) 16px calc(var(--bottom-h) + 20px);
}

.studio-header {
  text-align: center;
  margin-bottom: 32px;
}


.studio-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.info-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.info-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.studio-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  margin-top: 8px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
/* Cart icon styles */
.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: monospace;
}