/* ============================================================
   Breno Studio - Styles (Responsive: Mobile 320px+ / Desktop 768px+)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* === VARIAVEIS DARK (padrao) === */
:root,
[data-bs-theme="dark"] {
  --bg:         #0a0a0a;
  --surface:    #141414;
  --surface2:   #1e1e1e;
  --surface3:   #282828;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim:   #8a6f33;
  --text:       #f0ede8;
  --text2:      #a09d98;
  --text3:      #5a5754;
  --border:     #282828;
  --danger:     #e05252;
  --success:    #3fb950;
  --sidebar-w:  240px;
  --radius:     14px;
  --radius-sm:  8px;
  --font-head:  'Playfair Display', serif;
  --font-body:  'DM Sans', 'Segoe UI', sans-serif;
}

/* === VARIAVEIS LIGHT === */
[data-bs-theme="light"] {
  --bg:         #f4f1ec;
  --surface:    #ffffff;
  --surface2:   #eeebe5;
  --surface3:   #e2ddd6;
  --gold:       #8a6310;
  --gold-light: #a87c18;
  --gold-dim:   #c9a84c;
  --text:       #1a1714;
  --text2:      #5a5754;
  --text3:      #9a9794;
  --border:     #ddd9d2;
  --danger:     #c0392b;
  --success:    #27ae60;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  overflow-x: hidden;
}

/* ============================================================
   LAYOUT: SIDEBAR + MAIN
   ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 1.8rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: -.02em;
  margin-bottom: .2rem;
}
.sidebar-sub {
  font-size: .72rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.5rem;
  color: var(--text2);
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover  { color: var(--text); background: var(--surface2); }
.sidebar-link.active { color: var(--gold); border-left-color: var(--gold); background: var(--surface2); }
.sidebar-link i      { width: 18px; text-align: center; font-size: .95rem; }

.sidebar-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  font-size: .82rem;
  color: var(--text2);
  margin-bottom: .8rem;
}
.sidebar-user strong { display: block; color: var(--text); font-size: .88rem; }

/* === MAIN WRAPPER === */
.main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* === HEADER (topbar) === */
.header {
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: .75rem;
}
.brand-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.header-user {
  font-size: .78rem;
  color: var(--text2);
  text-align: right;
}
.header-user strong { display: block; color: var(--text); font-size: .82rem; }
.logout-btn {
  font-size: .75rem;
  color: var(--gold-dim);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.logout-btn:hover { color: var(--gold); }

/* === THEME TOGGLE === */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem .75rem;
  color: var(--text2);
  font-size: .75rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold-dim); color: var(--gold); }

/* === MAIN CONTENT === */
.main-content {
  flex: 1;
  padding-bottom: 2rem;
}

/* === BOTTOM NAV (mobile only) === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom));
  z-index: 150;
}
[data-bs-theme="light"] .bottom-nav { background: rgba(244,241,236,.97); }

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .45rem .25rem;
  cursor: pointer;
  transition: all .2s;
  background: none;
  border: none;
  color: var(--text3);
  font-family: var(--font-body);
  text-decoration: none;
}
.nav-item.active { color: var(--gold); }
.nav-item:hover  { color: var(--text2); }
.nav-item.active:hover { color: var(--gold-light); }
.nav-icon  { font-size: 1.15rem; }
.nav-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }

/* ============================================================
   AUTH PAGE
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem 1rem;
}
.auth-box {
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: .3rem;
}
.auth-sub {
  color: var(--text2);
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.auth-tabs {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 1.5rem;
}
.auth-tab {
  flex: 1;
  padding: .6rem;
  border: none;
  background: none;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: .85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
}
.auth-tab.active { background: var(--gold); color: #000; font-weight: 600; }
.auth-tab:hover:not(.active) { color: var(--text); }
.admin-link { text-align: center; margin-top: 1.5rem; font-size: .8rem; color: var(--text3); }
.admin-link a { color: var(--gold); text-decoration: underline; }

.field-check { margin: .5rem 0 .25rem; }
.check-label {
  display: flex; align-items: center; gap: .55rem;
  font-size: .82rem; color: var(--text2); cursor: pointer; user-select: none;
}
.check-label input[type="checkbox"] {
  accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .78rem;
  color: var(--text2);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dim); }
[data-bs-theme="light"] .field input,
[data-bs-theme="light"] .field select { background: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: block; width: 100%; padding: .9rem 1.5rem;
  background: var(--gold); color: #000; border: none;
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  margin-top: .5rem; transition: all .2s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { background: var(--gold-light); color: #000; }

.btn-secondary {
  display: block; width: 100%; padding: .85rem;
  background: none; color: var(--text2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .9rem; cursor: pointer; transition: all .2s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { border-color: var(--text3); color: var(--text); }

.btn-danger {
  display: inline-block; padding: .4rem .9rem;
  background: rgba(224,82,82,.1); color: var(--danger);
  border: 1px solid rgba(224,82,82,.25); border-radius: var(--radius-sm);
  font-size: .78rem; cursor: pointer; transition: all .2s; font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.btn-danger:hover { background: rgba(224,82,82,.2); }

.back-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--gold); font-size: .85rem; cursor: pointer;
  background: none; border: none; font-family: var(--font-body); padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:hover { color: var(--gold-light); }

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.section-header {
  padding: 1.25rem 1.25rem .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.section-label {
  padding: .5rem 1.25rem;
  font-size: .7rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text3); font-weight: 600;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-header { padding: 1.25rem 1.25rem 1rem; }
.services-header h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: .3rem; }
.services-header p  { color: var(--text2); font-size: .88rem; }

.services-grid {
  display: flex; flex-direction: column; gap: .7rem; padding: 0 1.25rem 1.5rem;
}
.service-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem 1.1rem; border: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  text-decoration: none; color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.service-card:hover { border-color: var(--gold-dim); background: var(--surface2); }
.service-info { flex: 1; min-width: 0; }
.service-name { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-desc { font-size: .8rem; color: var(--text2); line-height: 1.5; }
.service-price { font-family: var(--font-head); font-size: 1.1rem; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.service-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center;
  justify-content: center; font-size: .95rem; flex-shrink: 0; color: var(--gold-dim);
}

/* ============================================================
   CALENDAR
   ============================================================ */
.agendar-header { padding: 1.25rem 1.25rem .85rem; }
.agendar-header h2 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: .3rem; }
.service-selected-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface2); border: 1px solid var(--gold-dim);
  border-radius: 20px; padding: .3rem .8rem;
  font-size: .78rem; color: var(--gold); margin-top: .3rem;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Layout agendar: mobile stack, desktop 2 colunas */
.agendar-layout { padding: 0 1.25rem 1.5rem; }

.mini-calendar {
  margin: 0 0 1.25rem; background: var(--surface);
  border-radius: var(--radius); padding: .9rem; border: 1px solid var(--border);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem;
}
.cal-nav {
  background: none; border: none; color: var(--text2); cursor: pointer;
  font-size: 1rem; padding: .4rem .6rem; border-radius: var(--radius-sm);
  transition: all .2s; text-decoration: none; display: inline-flex;
  -webkit-tap-highlight-color: transparent;
  min-width: 36px; min-height: 36px; align-items: center; justify-content: center;
}
.cal-nav:hover { background: var(--surface3); color: var(--gold); }
.cal-month { font-weight: 600; font-size: .95rem; }

.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-name { text-align: center; font-size: .68rem; color: var(--text3); padding: .3rem 0; font-weight: 600; }
.cal-day {
  text-align: center; padding: .5rem .1rem; font-size: .82rem;
  border-radius: 6px; cursor: pointer; transition: all .2s;
  color: var(--text2); text-decoration: none; display: block;
  min-height: 34px; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.cal-day:hover        { background: var(--surface3); }
.cal-day.today        { color: var(--gold); font-weight: 700; }
.cal-day.selected     { background: var(--gold) !important; color: #000 !important; font-weight: 700; }
.cal-day.other-month  { color: var(--surface3); pointer-events: none; }
.cal-day.past         { color: var(--text3); pointer-events: none; opacity: .5; }
.cal-day.has-slot     { position: relative; }
.cal-day.has-slot::after {
  content: ''; position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: var(--gold-dim);
}

.slots-week  { }
.day-group   { margin-bottom: 1.25rem; }
.day-group-label {
  font-size: .82rem; font-weight: 600; color: var(--text2);
  margin-bottom: .6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--border);
}
.slots-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.slot-chip {
  padding: .5rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: .82rem; cursor: pointer; transition: all .2s;
  color: var(--text); text-decoration: none; display: inline-block;
  -webkit-tap-highlight-color: transparent;
  min-height: 38px; display: inline-flex; align-items: center;
}
.slot-chip:hover { border-color: var(--gold-dim); color: var(--gold); }
.slot-chip.busy { color: var(--text3); pointer-events: none; text-decoration: line-through; opacity: .5; }

/* ============================================================
   CONFIRMACAO
   ============================================================ */
.confirm-screen { padding: 0 1.25rem 2rem; }
.confirm-wrap   { padding: 0 1.25rem 2rem; }
.confirm-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
}
.confirm-card h2 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 1.1rem; color: var(--gold); }
.confirm-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px solid var(--border); gap: .5rem;
}
.confirm-row:last-of-type { border-bottom: none; }
.confirm-label { font-size: .75rem; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.confirm-val   { font-size: .92rem; font-weight: 500; text-align: right; word-break: break-word; }
.confirm-price { font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); }
.confirm-btns  { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; }

/* ============================================================
   SUCESSO
   ============================================================ */
.success-screen {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2.5rem 1.25rem;
}
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 1.25rem; color: #000;
  flex-shrink: 0;
}
.success-screen h2 { font-family: var(--font-head); font-size: 1.7rem; margin-bottom: .5rem; }
.success-screen p  { color: var(--text2); font-size: .92rem; margin-bottom: 1.5rem; line-height: 1.7; max-width: 320px; }

/* ============================================================
   MEUS AGENDAMENTOS
   ============================================================ */
.agend-list { padding: 0 1.25rem 1.5rem; }
.agend-item {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem 1.1rem; margin-bottom: .65rem; border: 1px solid var(--border);
}
.agend-item .serv-name { font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.agend-item .agend-meta {
  font-size: .8rem; color: var(--text2);
  display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.agend-item .agend-actions { margin-top: .7rem; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 20px;
  font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.badge-ok     { background: rgba(63,185,80,.15);   color: #3fb950; }
.badge-pend   { background: rgba(201,168,76,.12);  color: var(--gold); }
.badge-done   { background: rgba(63,185,80,.15);   color: #3fb950; }
.badge-cancel { background: rgba(224,82,82,.1);    color: var(--danger); }

/* ============================================================
   ADMIN - AGENDA
   ============================================================ */
.admin-calendar-area { padding: 1.25rem; }
.admin-month-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.admin-month-label { font-family: var(--font-head); font-size: 1.05rem; }

.admin-cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 1.25rem;
}
.admin-cal-head { text-align: center; font-size: .65rem; color: var(--text3); padding: .3rem 0; font-weight: 600; }
.admin-cal-cell {
  min-height: 48px; background: var(--surface); border-radius: 6px;
  padding: .3rem .25rem; cursor: pointer; transition: all .2s;
  border: 1px solid transparent; text-decoration: none; display: block;
  -webkit-tap-highlight-color: transparent;
}
.admin-cal-cell:hover       { border-color: var(--gold-dim); }
.admin-cal-cell.today-cell  { border-color: var(--gold-dim); }
.admin-cal-cell.selected-cell { background: var(--surface2); border-color: var(--gold); }
.admin-cal-cell.other-cell .cell-day { color: var(--text3); opacity: .4; }
.cell-day   { font-size: .72rem; color: var(--text2); margin-bottom: .15rem; }
.cell-count {
  font-size: .62rem; background: var(--gold); color: #000;
  border-radius: 3px; padding: .1rem .3rem; font-weight: 700; display: inline-block;
}

.agend-do-dia { margin-top: 1.25rem; }
.agend-do-dia h3 {
  font-size: .8rem; color: var(--text2); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .75rem; font-weight: 600;
}
.admin-appt {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: .85rem .9rem; margin-bottom: .5rem; border-left: 3px solid var(--gold);
  display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem;
}
.appt-time   { font-size: .8rem; font-weight: 700; color: var(--gold); min-width: 42px; flex-shrink: 0; padding-top: .05rem; }
.appt-info   { flex: 1; min-width: 0; padding: 0 .5rem; }
.appt-client { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-svc    { font-size: .76rem; color: var(--text2); }
.appt-tel    { font-size: .72rem; color: var(--text3); margin-top: .12rem; }
.appt-right  { text-align: right; flex-shrink: 0; }
.appt-val    { font-family: var(--font-head); font-size: .9rem; color: var(--gold-light); }

/* ============================================================
   ADMIN - FINANCEIRO
   ============================================================ */
.fin-area { padding: 1.25rem; }
.fin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: 1.5rem; }
.fin-card {
  background: var(--surface); border-radius: var(--radius-sm);
  padding: .9rem 1rem; border: 1px solid var(--border);
}
.fc-label { font-size: .7rem; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.fc-val   { font-family: var(--font-head); font-size: 1.2rem; }
.fc-val.gold { color: var(--gold); }

.fin-list h3 { font-size: .8rem; color: var(--text2); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-weight: 600; }
.fin-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: .8rem 0; border-bottom: 1px solid var(--border); gap: .75rem;
}
.fin-item:last-child { border-bottom: none; }
.fi-left  { flex: 1; min-width: 0; }
.fi-client { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fi-svc    { font-size: .74rem; color: var(--text2); }
.fi-right  { text-align: right; flex-shrink: 0; }
.fi-val    { font-size: .92rem; font-weight: 600; color: var(--gold); }
.fi-date   { font-size: .7rem; color: var(--text3); }

/* ============================================================
   ALERTS / EMPTY STATES
   ============================================================ */
.alert-box {
  background: rgba(201,168,76,.1); border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  font-size: .88rem; color: var(--gold); margin-bottom: 1rem;
}
.alert-box.error { background: rgba(224,82,82,.08); border-color: rgba(224,82,82,.3); color: var(--danger); }

.empty-state {
  text-align: center; padding: 2.5rem 1.25rem;
  color: var(--text3); font-size: .88rem; line-height: 1.7;
}
.empty-state i { font-size: 1.8rem; margin-bottom: .65rem; display: block; }

/* ============================================================
   RESPONSIVE - DESKTOP (>= 768px)
   ============================================================ */
@media (min-width: 768px) {

  /* Sidebar visivel, bottom nav some */
  .sidebar     { display: flex; }
  .bottom-nav  { display: none !important; }

  /* Main wrapper fica ao lado da sidebar */
  .main-wrapper { margin-left: var(--sidebar-w); }

  /* Logo no header some (esta na sidebar) */
  .header-brand-mobile { display: none; }

  /* Header no desktop: controles alinhados à direita */
  .header { padding: .85rem 2rem; justify-content: flex-end; }

  /* Conteudo preenche toda a largura disponivel apos a sidebar */
  .main-content { padding: 0 2rem 2rem; }

  /* Servicos: 2 colunas */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0 2rem;
  }
  .services-header { padding: 1.75rem 0 1.25rem; }

  /* Horarios: calendario + slots lado a lado */
  .agendar-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 0 0 2rem;
  }
  .mini-calendar { margin: 0; }
  .agendar-header { padding: 1.5rem 0 1rem; }

  /* Confirmar: card centralizado com max-width propria */
  .confirm-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
  }

  /* Admin agenda: calendario + agendamentos lado a lado */
  .admin-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
  }
  .admin-cal-cell  { min-height: 64px; }
  .cell-day        { font-size: .75rem; }
  .cell-count      { font-size: .66rem; }
  /* admin-calendar-area: main-content ja tem padding lateral */
  .admin-calendar-area { padding: 1.75rem 0; }
  .agend-do-dia    { margin-top: 0; }

  /* Admin financeiro: 4 cards na mesma linha */
  .fin-summary { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .fin-area    { padding: 1.75rem 0; }

  /* Meus agendamentos: 2 colunas */
  .agend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    padding: 0 0 2rem;
  }
  .agend-item { margin-bottom: 0; }

  /* Section headers com mais padding no desktop */
  .section-header    { padding: 1.75rem 0 1rem; }
  .section-header h2 { font-size: 1.6rem; }
  .section-label     { padding: .5rem 0; }

  /* Sucesso: centraliza o conteudo interno, nao o bloco todo */
  .success-screen { padding: 4rem 0; }
  .success-screen .btn-primary,
  .success-screen .btn-secondary { max-width: 300px; }
}

/* ============================================================
   RESPONSIVE - MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .sidebar              { display: none; }
  .bottom-nav           { display: flex; }
  .main-wrapper         { margin-left: 0; }
  .header-brand-mobile  { display: block; }

  /* Espaco abaixo para o bottom nav fixo */
  .main-content { padding-bottom: 80px; }

  /* Label do tema some no header mobile para nao sobrar */
  .theme-toggle span#theme-label { display: none; }
}

/* ============================================================
   RESPONSIVE - TELAS MUITO PEQUENAS (< 400px)
   ============================================================ */
@media (max-width: 400px) {
  html, body { font-size: 14px; }

  .header { padding: .75rem 1rem; }

  .services-header h2,
  .agendar-header h2,
  .section-header h2 { font-size: 1.3rem; }

  .services-grid { padding: 0 1rem 1.5rem; }
  .services-header,
  .section-label  { padding-left: 1rem; padding-right: 1rem; }
  .section-header { padding: 1rem 1rem .65rem; }
  .agendar-header { padding: 1rem 1rem .75rem; }
  .agendar-layout { padding: 0 1rem 1.5rem; }
  .agend-list     { padding: 0 1rem 1.5rem; }
  .admin-calendar-area { padding: 1rem; }
  .fin-area       { padding: 1rem; }
  .confirm-wrap   { padding: 0 1rem 2rem; }
  .success-screen { padding: 2rem 1rem; }

  .service-card  { padding: .85rem .9rem; gap: .6rem; }
  .service-icon  { width: 36px; height: 36px; font-size: .85rem; }
  .service-price { font-size: 1rem; }

  .admin-cal-cell { min-height: 40px; padding: .2rem .15rem; }
  .cell-day       { font-size: .65rem; }
  .cell-count     { font-size: .58rem; padding: .05rem .2rem; }

  .slot-chip { padding: .45rem .75rem; font-size: .78rem; }

  .confirm-card { padding: 1.1rem; }

  .fin-card { padding: .75rem .85rem; }
  .fc-val   { font-size: 1.05rem; }
}
