/* ============================================================
   MSP — Meu Studio Pro
   Design System — Mobile First, Feminino, Premium
   ============================================================ */

/* --- Variáveis de cor --- */
:root {
  --nude:        #F5EDE4;
  --nude-light:  #FBF7F4;
  --rose:        #E8B4B8;
  --rose-mid:    #D4889B;
  --rose-dark:   #B5657A;
  --lilac:       #C9C0D8;
  --lilac-light: #EDE8F5;
  --gold:        #C9A84C;
  --gold-light:  #F0E4C3;
  --white:       #FFFFFF;
  --off-white:   #FDFAF8;
  --gray-100:    #F8F4F2;
  --gray-200:    #EEDDD7;
  --gray-300:    #D9C5BD;
  --gray-500:    #9B7F78;
  --gray-700:    #6B4F48;
  --gray-900:    #3A2825;
  --success:     #5CB97C;
  --warning:     #F0C04A;
  --danger:      #E05C6E;
  --info:        #6AABCC;
  --bg:          var(--off-white);
  --surface:     var(--white);
  --text:        var(--gray-900);
  --text-muted:  var(--gray-500);
  --border:      var(--gray-200);
  --primary:     var(--rose-dark);
  --primary-light: var(--rose);
  --shadow-sm:   0 1px 4px rgba(58,40,37,.07);
  --shadow-md:   0 4px 16px rgba(58,40,37,.10);
  --shadow-lg:   0 8px 32px rgba(58,40,37,.13);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --font-main:   'Nunito', 'Segoe UI', sans-serif;
  --transition:  .2s ease;
  --nav-h:       64px;
  --bottom-h:    64px;
}

/* --- Reset base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--rose-mid); }
img { max-width: 100%; height: auto; }
input, select, textarea, button { font-family: inherit; }

/* --- Typography --- */
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin-bottom: .75rem; }

/* --- Layout shell --- */
.app-shell {
  display: flex;
  min-height: 100dvh;
}

/* Sidebar desktop */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .brand-msp {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-logo .brand-sub {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-studio {
  padding: .8rem 1.2rem;
  font-size: .82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-nav { padding: .6rem 0; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.2rem;
  color: var(--gray-700);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-right: .6rem;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-nav a:hover { background: var(--nude-light); color: var(--primary); }
.sidebar-nav a.active { background: var(--nude); color: var(--primary); }
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-footer {
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
}

/* Main content area */
.main-content {
  flex: 1;
  margin-left: 240px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.page-content { padding: 1.5rem; flex: 1; }

/* Mobile bottom nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  height: var(--bottom-h);
  z-index: 200;
  padding: 0 .3rem;
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: .4rem .5rem;
  color: var(--gray-500);
  font-size: .65rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  min-width: 52px;
}
.bottom-nav a .nav-icon { font-size: 1.3rem; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a:hover { color: var(--primary); }

/* --- Cards --- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.card-subtitle { font-size: .8rem; color: var(--text-muted); margin-top: .15rem; }

/* Stat cards */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon {
  font-size: 1.6rem;
  margin-bottom: .4rem;
}
.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-card .stat-label {
  font-size: .76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-card.primary { background: linear-gradient(135deg, var(--rose-dark), var(--rose-mid)); color: white; border: none; }
.stat-card.primary .stat-value,
.stat-card.primary .stat-label { color: rgba(255,255,255,.9); }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--rose-mid); border-color: var(--rose-mid); color: white; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--nude); }
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.btn-gold {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-xl { padding: 1rem 2.2rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; display: flex; }
.btn-wa { background: #25D366; color: white; border-color: #25D366; }
.btn-wa:hover { background: #1DA851; border-color: #1DA851; color: white; }

/* --- Forms --- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 700; color: var(--gray-700); margin-bottom: .35rem; }
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--rose-mid); box-shadow: 0 0 0 3px rgba(212,136,155,.15); }
.form-control::placeholder { color: var(--gray-300); }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B7F78' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }
.form-row { display: grid; gap: 1rem; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }

/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.form-check-label { font-size: .88rem; color: var(--gray-700); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-success { background: #E5F7ED; color: #2E7D4F; }
.badge-warning { background: #FEF6DC; color: #9A6A00; }
.badge-danger  { background: #FDE8EB; color: #C0324A; }
.badge-info    { background: #E4F2FA; color: #1B6F96; }
.badge-gray    { background: var(--gray-100); color: var(--gray-700); }
.badge-rose    { background: var(--nude); color: var(--rose-dark); }

/* Status badges */
.status-agendado   { @extend .badge; } 
.badge-agendado    { background: #E4F2FA; color: #1B6F96; }
.badge-confirmado  { background: #E5F7ED; color: #2E7D4F; }
.badge-concluido   { background: var(--nude); color: var(--rose-dark); }
.badge-cancelado   { background: #FDE8EB; color: #C0324A; }
.badge-faltou      { background: #FEF6DC; color: #9A6A00; }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.table th {
  background: var(--gray-100);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-700);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--nude-light); }
.table-actions { display: flex; gap: .4rem; flex-wrap: nowrap; }

/* --- Alerts / Flash --- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success { background: #E5F7ED; border-color: #A8DBBF; color: #2E7D4F; }
.alert-danger  { background: #FDE8EB; border-color: #F4AABB; color: #C0324A; }
.alert-warning { background: #FEF6DC; border-color: #F5D98F; color: #9A6A00; }
.alert-info    { background: #E4F2FA; border-color: #A3CFEA; color: #1B6F96; }

/* --- Modal --- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58,40,37,.45);
  z-index: 500;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 1.5rem 1.2rem 2rem;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.modal-title { font-size: 1.1rem; font-weight: 800; }
.modal-close { font-size: 1.4rem; cursor: pointer; color: var(--text-muted); background: none; border: none; line-height: 1; }
.modal-close:hover { color: var(--primary); }

/* Pill indicator for modal */
.modal::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--gray-200);
  border-radius: 99px;
  margin: -1rem auto .8rem;
}

/* --- Agenda calendar --- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cal-day:hover { background: var(--nude); }
.cal-day.today { background: var(--primary); color: white; }
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
.cal-day.today.has-event::after { background: white; }
.cal-day.other-month { opacity: .35; }

/* Appointment cards on day view */
.appt-slot {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--rose-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: .5rem;
  box-shadow: var(--shadow-sm);
}
.appt-slot.status-confirmado { border-color: var(--success); }
.appt-slot.status-concluido  { border-color: var(--gold); }
.appt-slot.status-cancelado  { border-color: var(--danger); opacity: .6; }
.appt-slot.status-faltou     { border-color: var(--warning); }
.appt-time { font-size: .8rem; font-weight: 800; color: var(--text-muted); min-width: 40px; }
.appt-info { flex: 1; min-width: 0; }
.appt-client { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-service { font-size: .78rem; color: var(--text-muted); }
.appt-value { font-size: .88rem; font-weight: 700; color: var(--rose-dark); white-space: nowrap; }

/* --- Auth pages --- */
.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(160deg, var(--nude-light) 0%, var(--lilac-light) 100%);
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo .brand-msp {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--rose-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.auth-logo .brand-sub {
  font-size: .78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auth-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .25rem; }
.auth-subtitle { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: .8rem; }
.empty-state h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--gray-700); }
.empty-state p { font-size: .85rem; max-width: 300px; margin: 0 auto .8rem; }

/* --- Loading --- */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Page header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.3rem; margin: 0; }

/* --- Tabs --- */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--border); margin-bottom: 1.2rem; overflow-x: auto; }
.tab {
  padding: .6rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Search / Filter bar --- */
.filter-bar {
  display: flex;
  gap: .8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-wrap input { padding-left: 2.3rem; }

/* --- Client card (list view) --- */
.client-card {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: .5rem;
  transition: box-shadow var(--transition);
}
.client-card:hover { box-shadow: var(--shadow-md); }
.client-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--lilac));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 700; font-size: .95rem; }
.client-meta { font-size: .78rem; color: var(--text-muted); }

/* --- Finance items --- */
.finance-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
}
.finance-item:last-child { border-bottom: none; }
.finance-type { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.finance-type.receita { background: var(--success); }
.finance-type.despesa { background: var(--danger); }
.finance-info { flex: 1; min-width: 0; }
.finance-desc { font-weight: 600; font-size: .9rem; }
.finance-cat { font-size: .76rem; color: var(--text-muted); }
.finance-value { font-weight: 800; font-size: .95rem; white-space: nowrap; }
.finance-value.receita { color: var(--success); }
.finance-value.despesa { color: var(--danger); }

/* --- Landing page specific --- */
.landing-hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--nude-light) 0%, var(--lilac-light) 50%, var(--nude) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem 4rem;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  opacity: .18;
  pointer-events: none;
}
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,250,248,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-section { padding: 4rem 1.5rem; }
.landing-section .section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .6rem;
}
.landing-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}
.benefit-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-icon { font-size: 2rem; margin-bottom: .7rem; }
.benefit-title { font-weight: 700; margin-bottom: .4rem; }
.benefit-text { font-size: .85rem; color: var(--text-muted); }

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  border: 2px solid var(--border);
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .8rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pricing-first { font-size: .85rem; color: var(--text-muted); margin-bottom: .2rem; }
.pricing-price { font-size: 2.2rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: .25rem; }
.pricing-price span { font-size: 1rem; font-weight: 600; }
.pricing-period { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.2rem; }
.pricing-features { text-align: left; list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; padding: .3rem 0; }
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 800; flex-shrink: 0; }

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: .7rem; }
.testimonial-text { font-size: .9rem; color: var(--gray-700); margin-bottom: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .7rem; }
.testimonial-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--lilac)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; font-size: .9rem; }
.testimonial-name { font-weight: 700; font-size: .88rem; }
.testimonial-role { font-size: .76rem; color: var(--text-muted); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--primary); flex-shrink: 0; line-height: 1; }
.faq-question.open::after { content: '−'; }
.faq-answer { font-size: .88rem; color: var(--text-muted); padding-bottom: 1rem; display: none; }
.faq-answer.open { display: block; }

/* Subscription status banner */
.sub-banner {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.sub-banner.danger { background: #FDE8EB; border-color: var(--danger); }

/* --- Admin panel --- */
.admin-sidebar { background: #2B1F2A; }
.admin-sidebar .sidebar-logo .brand-msp { background: linear-gradient(135deg, #E8B4B8, #C9A84C); -webkit-background-clip: text; background-clip: text; }
.admin-sidebar .sidebar-logo .brand-sub { color: rgba(255,255,255,.5); }
.admin-sidebar .sidebar-studio { color: rgba(255,255,255,.4); border-color: rgba(255,255,255,.08); }
.admin-sidebar .sidebar-nav a { color: rgba(255,255,255,.7); }
.admin-sidebar .sidebar-nav a:hover, .admin-sidebar .sidebar-nav a.active { background: rgba(255,255,255,.08); color: white; }
.admin-sidebar .sidebar-footer { border-color: rgba(255,255,255,.08); }

/* --- PWA install banner --- */
.pwa-banner {
  position: fixed;
  bottom: calc(var(--bottom-h) + .5rem);
  left: .75rem;
  right: .75rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .8rem;
  z-index: 300;
  animation: slideUp .3s ease;
}
.pwa-banner.hidden { display: none; }
.pwa-icon { font-size: 1.6rem; flex-shrink: 0; }
.pwa-text { flex: 1; font-size: .82rem; font-weight: 600; }
.pwa-text span { display: block; color: var(--text-muted); font-weight: 400; font-size: .76rem; }

/* --- Helpers --- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-small   { font-size: .82rem; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.flex-1 { flex: 1; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.2rem 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding-bottom: var(--bottom-h); }
  .bottom-nav { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .landing-section { padding: 3rem 1rem; }
  .pricing-card.featured { transform: none; }
  .table th, .table td { padding: .6rem .7rem; font-size: .8rem; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .topbar-actions .btn span { display: none; }
  .auth-card { padding: 1.5rem 1.2rem; }
}
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* Google Fonts fallback via system fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');
