* { box-sizing: border-box; }
:root { color-scheme: dark; --page: #090d13; --header: #111720; --surface: #141a22; --surface-raised: #1c232d; --border: #2b3440; --text: #f0f2f5; --muted: #929ba8; --accent: #ff8800; --blue: #3288ef; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
a { color: inherit; }
button, input, select { font: inherit; }
.dashboard-header { min-height: 72px; border-bottom: 1px solid var(--border); background: var(--header); }
.dashboard-header-inner { display: flex; width: min(100% - 48px, 1240px); min-height: 72px; align-items: center; gap: 18px; margin: 0 auto; }
.brand-lockup { display: flex; min-width: 0; flex: 1; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { display: grid; width: 138px; height: 48px; flex: 0 0 auto; align-content: center; justify-items: center; border: 1px solid #554222; border-radius: 13px; background: #030405; color: #e1b952; }
.brand-logo span { font-size: 12px; line-height: 12px; }
.brand-logo strong { font-family: Georgia, serif; font-size: 12px; letter-spacing: .08em; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { color: var(--muted); font-size: 13px; }
.icon-link, .icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--text); font-size: 23px; text-decoration: none; cursor: pointer; }
.icon-link:hover, .icon-button:hover { border-color: var(--border); background: var(--surface-raised); }
.logout-form { margin: 0; }
.dashboard-container { width: min(100% - 48px, 1240px); min-height: calc(100vh - 145px); margin: 0 auto; padding: 24px 0 110px; }
.tab-nav { display: flex; gap: 4px; padding: 6px; margin: 0 0 25px; overflow-x: auto; border-radius: 999px; background: #202630; scrollbar-width: thin; }
.tab-link { display: flex; min-width: 95px; min-height: 36px; flex: 1 0 auto; align-items: center; justify-content: center; padding: 0 13px; border-radius: 999px; color: #969eaa; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.tab-link:hover { color: var(--text); }
.tab-link.is-active { background: #080c12; color: var(--text); }
.eyebrow { display: block; margin-bottom: 6px; color: #919aa7; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 21px; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 18px; letter-spacing: -.025em; }
.muted { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.notice { padding: 13px 16px; margin: 0 0 18px; border: 1px solid #286342; border-radius: 14px; background: #10251b; color: #b9efcc; font-size: 14px; }
.notice-error { border-color: #753842; background: #2a171b; color: #ffd1d6; }
.stat-grid, .revenue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card, .panel-card { border: 1px solid var(--border); border-radius: 27px; background: var(--surface); }
.stat-card { display: grid; min-height: 102px; align-content: center; gap: 11px; padding: 19px 21px; }
.stat-card > span, .revenue-detail > div > span { color: var(--muted); font-size: 13px; }
.stat-card > strong { color: var(--accent); font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.overview-next { margin-top: 18px; padding: 23px 24px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading p { margin-bottom: 0; }
.text-link, .text-link-button { color: #d4d9e0; font-size: 13px; font-weight: 650; text-decoration: none; }
.text-link:hover, .text-link-button:hover, .row-actions a:hover { color: var(--accent); }
.text-link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.appointment-list { display: grid; }
.appointment-row { display: flex; min-height: 70px; align-items: center; gap: 17px; padding: 11px 4px; border-top: 1px solid var(--border); text-decoration: none; }
.appointment-row:hover .appointment-main strong { color: var(--accent); }
.appointment-date { display: grid; width: 47px; flex: 0 0 auto; gap: 3px; color: var(--muted); font-size: 12px; text-align: center; }
.appointment-date small { color: var(--text); font-size: 13px; font-weight: 700; }
.appointment-main { display: grid; flex: 1; gap: 4px; min-width: 0; }
.appointment-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.appointment-main small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.appointment-price { color: var(--accent); font-size: 14px; font-weight: 700; white-space: nowrap; }
.empty-state { padding: 20px 0; margin: 0; color: var(--muted); font-size: 14px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.calendar-toolbar h1 { font-size: 19px; }
.calendar-controls { display: flex; align-items: center; gap: 7px; }
.round-control, .today-control { display: grid; min-width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text); font-size: 21px; text-decoration: none; }
.today-control { min-width: 63px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 650; }
.round-control:hover, .today-control:hover { border-color: var(--accent); color: var(--accent); }
.primary-button, .secondary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border: 0; border-radius: 999px; background: linear-gradient(105deg, #388cf0, #ed8741); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s ease, transform .15s ease; }
.primary-button:hover, .secondary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.compact-button { min-height: 40px; margin-left: 8px; padding: 0 15px; white-space: nowrap; }
.secondary-button { background: var(--surface-raised); color: var(--text); }
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); overflow-x: auto; border: 1px solid var(--border); border-radius: 27px; background: var(--surface); scrollbar-color: #757a80 #1a2028; }
.calendar-day { min-height: 310px; border-right: 1px solid #262e38; }
.calendar-day:last-child { border-right: 0; }
.calendar-day-header { position: sticky; top: 0; display: grid; min-height: 75px; align-content: center; justify-items: center; gap: 8px; border-bottom: 1px solid var(--border); background: #141a22; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.calendar-day-header strong { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--text); font-size: 16px; }
.calendar-day.is-today .calendar-day-header strong { background: linear-gradient(120deg, #438cec, #e78051); }
.calendar-day-events { display: grid; align-content: start; gap: 9px; padding: 10px 7px; }
.calendar-event { display: grid; gap: 4px; padding: 10px 9px; border: 1px solid #2679ca; border-radius: 14px; background: #173755; color: #eef5ff; font-size: 12px; overflow-wrap: anywhere; }
.calendar-event > strong { font-size: 11px; }
.calendar-event > span { font-weight: 700; }
.calendar-event > small { color: #c2d7eb; line-height: 1.35; }
.calendar-event > a { justify-self: start; color: #a9d2fa; font-size: 11px; }
.calendar-event.status-concluido { border-color: #287247; background: #173729; }
.calendar-event.status-cancelado { border-color: #673b43; background: #321e23; opacity: .76; }
.no-events { padding: 10px 3px; color: #6f7986; font-size: 11px; text-align: center; }
.add-on-day { padding: 5px; color: #9aa4b0; font-size: 11px; text-align: center; text-decoration: none; }
.add-on-day:hover { color: var(--accent); }
.panel-card { padding: 25px; margin-bottom: 17px; }
.form-panel .section-heading { margin-bottom: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.form-grid label, .stack-form label { display: grid; gap: 8px; color: #e0e4e9; font-size: 14px; font-weight: 650; }
.form-grid input, .form-grid select, .stack-form input { width: 100%; min-width: 0; min-height: 45px; padding: 0 14px; border: 1px solid var(--border); border-radius: 15px; outline: none; background: #11171f; color: var(--text); }
.form-grid input:focus, .form-grid select:focus, .stack-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #3288ef24; }
.form-grid select { color-scheme: dark; }
.span-two { grid-column: 1 / -1; }
.form-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; }
.filter-grid { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.inline-note { margin: 17px 0 0; color: var(--muted); font-size: 13px; }
.management-list, .history-list, .schedule-groups { display: grid; gap: 10px; }
.management-row, .schedule-row { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 20px; border: 1px solid var(--border); border-radius: 25px; background: var(--surface); }
.management-row.is-inactive { opacity: .7; }
.management-copy { display: grid; min-width: 0; gap: 5px; }
.management-copy strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.management-copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.row-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 19px; }
.row-actions a, .row-actions button { padding: 4px; border: 0; background: none; color: #e4e7eb; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.row-actions .danger-link { color: #ff5b68; }
.calendar-toolbar + .form-panel { margin-bottom: 20px; }
.schedule-row { min-height: 64px; }
.schedule-row > strong { min-width: 95px; }
.schedule-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.schedule-chip { display: inline-flex; min-height: 34px; align-items: center; gap: 8px; padding: 4px 10px 4px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-raised); font-size: 12px; white-space: nowrap; }
.schedule-chip.is-blocked { border-color: #55412d; color: #f0c99e; }
.schedule-chip form { display: inline-flex; margin: 0; }
.schedule-chip button { display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #303844; color: var(--muted); cursor: pointer; }
.schedule-chip button:hover { background: #66323a; color: #fff; }
.revenue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.revenue-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.revenue-detail > div { display: grid; gap: 9px; }
.revenue-detail > div > strong { font-size: 22px; }
.history-row { min-height: 78px; }
.history-price { display: grid; flex: 0 0 auto; justify-items: end; gap: 5px; }
.history-price > strong { color: var(--accent); }
.history-price > a { color: #bfc6cf; font-size: 11px; }
.status-pill { padding: 3px 8px; border-radius: 999px; background: #252d37; color: #c0c8d2; font-size: 10px; }
.status-pill.status-concluido { background: #183b2a; color: #a5e1b9; }
.status-pill.status-cancelado { background: #3c2329; color: #f2b2ba; }
.form-divider { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; border-top: 1px solid var(--border); color: var(--text); }
.form-divider span { color: var(--muted); font-size: 12px; font-weight: 400; }
.dashboard-footer { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; min-height: 72px; align-items: center; justify-content: center; gap: clamp(120px, 42vw, 560px); border-top: 1px solid var(--border); background: #111720f2; backdrop-filter: blur(14px); }
.footer-shortcut { display: grid; min-width: 90px; justify-items: center; gap: 3px; color: #929ba7; text-decoration: none; }
.footer-shortcut span { font-size: 23px; line-height: 1.2; }
.footer-shortcut small { font-size: 12px; font-weight: 650; }
.footer-shortcut.is-active, .footer-shortcut:hover { color: var(--accent); }
.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(ellipse 55% 35% at 8% 0%, #12365a 0%, transparent 90%), radial-gradient(ellipse 55% 35% at 100% 0%, #382517 0%, transparent 95%), var(--page); }
.auth-card { width: min(100%, 440px); padding: 34px; border: 1px solid var(--border); border-radius: 28px; background: #141a22; box-shadow: 0 28px 90px #0007; }
.auth-brand { display: grid; width: 150px; height: 54px; align-content: center; justify-items: center; margin-bottom: 35px; border: 1px solid #554222; border-radius: 14px; background: #030405; color: #e1b952; font-family: Georgia, serif; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.auth-brand span { margin-top: 3px; color: #aeb4bd; font-family: Arial, sans-serif; font-size: 8px; letter-spacing: .11em; }
.auth-card h1 { margin-bottom: 8px; font-size: 26px; }
.auth-card > .muted { margin-bottom: 23px; }
.stack-form { display: grid; gap: 16px; }
.stack-form input { min-height: 48px; }
.stack-form .primary-button { width: 100%; margin-top: 4px; }
.auth-back-link { display: block; margin-top: 21px; color: var(--muted); font-size: 13px; text-align: center; text-decoration: none; }
.auth-back-link:hover { color: var(--accent); }
.dashboard-page :focus-visible, .auth-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (min-width: 980px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dashboard-header-inner, .dashboard-container { width: min(100% - 32px, 560px); }
  .dashboard-container { padding-top: 17px; }
  .dashboard-header, .dashboard-header-inner { min-height: 66px; }
  .brand-logo { width: 93px; height: 42px; border-radius: 11px; }
  .brand-logo strong { font-size: 10px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 12px; }
  .dashboard-header-inner { gap: 7px; }
  .icon-link, .icon-button { width: 34px; height: 38px; }
  .tab-nav { justify-content: flex-start; margin-bottom: 19px; }
  .tab-link { min-width: 88px; min-height: 35px; font-size: 13px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 92px; padding: 15px; border-radius: 22px; }
  .stat-card > span { font-size: 12px; }
  .stat-card > strong { font-size: 19px; }
  .overview-next, .panel-card { padding: 19px; border-radius: 23px; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; }
  .calendar-controls { width: 100%; }
  .calendar-controls .compact-button { margin-left: auto; }
  .week-calendar { grid-template-columns: repeat(7, minmax(145px, 1fr)); border-radius: 22px; }
  .calendar-day { min-height: 270px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-two, .form-actions { grid-column: 1; }
  .revenue-grid { grid-template-columns: 1fr; }
  .management-row, .schedule-row { align-items: flex-start; padding: 15px; border-radius: 21px; }
  .row-actions { gap: 10px; }
  .schedule-row { flex-direction: column; gap: 10px; }
  .schedule-chips { justify-content: flex-start; }
  .dashboard-footer { justify-content: space-around; gap: 0; }
}
@media (max-width: 420px) {
  .dashboard-header-inner, .dashboard-container { width: min(100% - 24px, 560px); }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 11px; }
  .brand-lockup { gap: 9px; }
  .brand-logo { width: 78px; height: 39px; }
  .stat-card { padding: 13px; }
  .calendar-controls { gap: 5px; }
  .round-control { min-width: 38px; height: 38px; }
  .compact-button { min-height: 38px; padding: 0 11px; font-size: 13px; }
  .history-row { align-items: flex-start; }
  .history-price { gap: 6px; }
  .history-price > strong { font-size: 13px; }
  .auth-card { padding: 26px 21px; border-radius: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
