:root {
  --primary: #0066FF;
  --primary-hover: #0052CC;
  --primary-light: #E6F0FF;
  --success: #00C853;
  --warning: #FF9800;
  --danger: #FF3D00;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* HEADER */
#app-header {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
}
.header-inner {
  max-width: 640px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.logo svg { flex-shrink: 0; }

/* LANGUAGE SELECTOR */
.lang-selector {
  display: flex;
  gap: 4px;
}
.lang-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-btn:hover { background: var(--bg); color: var(--text); }
.lang-btn.active { background: var(--primary); color: white; }

/* GUESTS BANNER */
.guests-banner {
  background: #FFF8E1;
  border-bottom: 1px solid #FFE082;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #7B5800;
  font-weight: 500;
}
.guests-banner span { margin-right: 4px; }

/* MAIN */
#app-main { padding: 24px 16px 48px; }

/* TOASTS */
#toast-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(400px, calc(100vw - 32px));
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.toast-error { background: #FFEBEE; border-left: 4px solid var(--danger); }
.toast-warning { background: #FFF3E0; border-left: 4px solid var(--warning); }
.toast-success { background: #E8F5E9; border-left: 4px solid var(--success); }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: pulse 1.5s infinite;
  border-radius: 8px;
}
@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ERROR STATE */
.error-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}
.error-state .error-icon { font-size: 40px; margin-bottom: 12px; }
.error-state p { margin-bottom: 16px; }

@media (min-width: 768px) {
  #app-main { padding: 32px 16px 64px; }
  .logo { font-size: 16px; }
}
