/*
 * Visual compartilhado da área da cliente (agendar.html, home-cliente.html, perfil.html).
 * Mesmo padrão da página de recepção do estúdio (estudio.html): rosé da marca NailsControl
 * (o mesmo da landing/login) com o dourado do ícone do app, topo em degradê com brilhos,
 * cards brancos arredondados com sombra suave.
 */
:root {
  --primary: #c97a7e;
  --primary-hover: #b5676b;
  --primary-deep: #a8546a;
  --primary-soft: #fbeef0;
  --primary-tint: #f6dde1;
  --gold: #e9c46a;
  --gold-soft: #fbf3dc;
  --bg: #faf7f6;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #efe7e8;
  --input-border: #e8dcde;
  --success: #2e9d63;
  --success-soft: #e6f5ec;
  --danger: #c0392b;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(110, 50, 60, 0.04), 0 8px 24px -12px rgba(110, 50, 60, 0.16);
  --shadow-lg: 0 24px 48px -20px rgba(120, 45, 65, 0.35);
  --gradient-cta: linear-gradient(135deg, #dc8b98 0%, var(--primary) 45%, var(--primary-deep) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
svg { display: block; flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(201, 122, 126, 0.55);
  outline-offset: 2px;
}

/* ── TOPO EM DEGRADÊ ── */
.c-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 16px 26px;
  background:
    radial-gradient(120% 90% at 0% 0%, #f2a1b3 0%, transparent 60%),
    radial-gradient(100% 80% at 100% 100%, #9e4a63 0%, transparent 65%),
    linear-gradient(150deg, #e28d9f 0%, var(--primary) 50%, var(--primary-deep) 100%);
  border-radius: 0 0 32px 32px;
}
.c-hero::after {
  /* círculo translúcido, como no ícone do app */
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
.c-sparkle { position: absolute; pointer-events: none; animation: c-twinkle 4s ease-in-out infinite; }
.c-sparkle.s1 { top: 70px; right: 30%; width: 14px; color: #fff; opacity: 0.8; }
.c-sparkle.s2 { top: 22px; right: 34%; width: 20px; color: var(--gold); animation-delay: 1.2s; }
.c-sparkle.s3 { bottom: 26px; right: 9%; width: 13px; color: #fff3cf; animation-delay: 2.1s; }
@keyframes c-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(0.75) rotate(12deg); opacity: 0.5; }
}

.c-topbar {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.c-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}
.c-brand-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(145deg, #fff 0%, var(--primary-tint) 100%);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px -6px rgba(80, 20, 40, 0.5);
}
.c-brand-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-brand-text { min-width: 0; }
.c-brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-brand-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.c-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.c-pill:hover { background: rgba(255, 255, 255, 0.28); }
.c-pill svg { width: 16px; height: 16px; }
.c-pill.icon-only { width: 36px; padding: 0; }
.c-pill.gold { background: rgba(233, 196, 106, 0.28); border-color: rgba(255, 233, 170, 0.55); color: #fff7dc; }

.c-hero-body { position: relative; z-index: 2; max-width: 600px; margin: 22px auto 0; }
.c-hero-title { font-size: clamp(1.45rem, 5.5vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.c-hero-subtitle { margin-top: 4px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.9); }

/* ── CARDS E BOTÕES ── */
.c-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.c-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: var(--gradient-cta);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(168, 84, 106, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, filter 0.2s, box-shadow 0.2s;
}
.c-btn-primary:hover { filter: brightness(1.05); }
.c-btn-primary:active { transform: scale(0.98); }
.c-btn-primary:disabled {
  background: #ece6e7;
  color: #a1a1a6;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
.c-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.c-btn-soft:hover { background: var(--primary-tint); }
.c-btn-soft svg { width: 16px; height: 16px; }

/* Barra fixa no rodapé (continuar / salvar) */
.c-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
