:root {
  --bg: #0f1115;
  --surface: #171923;
  --surface-2: #1d2230;
  --surface-3: #222838;
  --primary: #4f8cff;
  --primary-soft: #7aa2ff;
  --accent: #f5a623;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* App Layout */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0b0d12;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-brand {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar a {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  color: var(--muted);
}

.sidebar a:hover {
  background: #171923;
  color: var(--text);
}

.main-area {
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: #0b0d12;
}

.content {
  padding: 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

/* removed dark layout overrides */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7aa2ff);
  color: #fff;
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.28);
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.messages {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.message {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.78);
    color: #e5eefb;
}

.message-success {
    border-color: rgba(34, 197, 94, 0.45);
}

.message-error {
    border-color: rgba(248, 113, 113, 0.55);
}

.payment-form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(79, 140, 255, 0.08);
  color: var(--primary);
}

.nav-pill {
  border: 1px solid rgba(79, 140, 255, 0.45);
  border-radius: 999px;
  color: var(--text) !important;
  padding: 0.6rem 0.95rem !important;
}

.nav-pill-secondary {
  background: linear-gradient(135deg, var(--primary), #6ea1ff);
  border-color: var(--primary);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(79, 140, 255, 0.25);
}

.site-main {
  padding: 2.25rem 0 4.5rem;
}

.saas-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: 560px;
}

.saas-hero-copy,
.saas-hero-panel,
.feature-card,
.pricing-card,
.plan-benefits article,
.plan-note,
.contact-card,
.contact-steps article,
.cta-band,
.blocked-panel {
  background: linear-gradient(180deg, rgba(29, 34, 48, 0.96) 0%, rgba(23, 25, 35, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.saas-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.saas-hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(79, 140, 255, 0.18), transparent 46%);
  pointer-events: none;
}

.saas-hero-copy > * {
  position: relative;
}

.saas-hero-copy h1,
.page-heading h1,
.blocked-panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.7vw, 4.4rem);
  line-height: 1.05;
  max-width: 920px;
}

.saas-hero-copy p,
.page-heading p,
.contact-card p,
.plan-note p,
.feature-card p,
.plan-benefits p,
.blocked-panel p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.saas-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-trust-row span,
.payment-row span {
  color: var(--text);
  background: rgba(15, 17, 21, 0.62);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.saas-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-top: 3px solid var(--primary);
}

.dashboard-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.dashboard-preview-top span {
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-preview-top strong {
  font-size: 2.1rem;
  color: var(--text);
}

.preview-chart {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  min-height: 220px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f1115;
}

.preview-chart span {
  flex: 1;
  min-height: 42px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #7aa2ff, var(--primary));
}

.preview-chart .bar-42 { height: 42%; }
.preview-chart .bar-48 { height: 48%; }
.preview-chart .bar-58 { height: 58%; }
.preview-chart .bar-66 { height: 66%; }
.preview-chart .bar-78 { height: 78%; }
.preview-chart .bar-86 { height: 86%; }

.preview-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 17, 21, 0.7);
}

.preview-list span {
  color: var(--muted);
}

.preview-list strong {
  color: var(--primary-soft);
}

.saas-hero-panel span,
.pricing-header span,
.eyebrow,
.contact-kicker,
.blocked-panel .eyebrow {
  color: var(--primary-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.feature-grid,
.contact-layout,
.plan-benefits,
.contact-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature-card,
.contact-card,
.plan-note,
.plan-benefits article {
  padding: 1.45rem;
}

.feature-card h2,
.contact-card h2,
.plan-note h2,
.plan-benefits h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.12);
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin: 2rem 0 1.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.page-heading {
  max-width: 820px;
  margin-bottom: 1.75rem;
}

.page-heading-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1rem;
  align-items: start;
}

.plans-layout-single {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
}

.pricing-card {
  position: relative;
  padding: 2rem;
}

.pricing-card-featured {
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: 0 24px 64px rgba(79, 140, 255, 0.18), 0 18px 48px rgba(0, 0, 0, 0.32);
}

.recommended-badge {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.14);
  border: 1px solid rgba(79, 140, 255, 0.45);
  color: var(--primary-soft);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
}

.pricing-header {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.35rem;
  padding-right: 8rem;
}

.pricing-header strong {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: var(--primary-soft);
  line-height: 1;
}

.pricing-header small {
  color: var(--muted);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.pricing-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 17, 21, 0.64);
}

.pricing-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.18rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card-primary {
  border-color: rgba(79, 140, 255, 0.36);
}

.contact-card .btn {
  margin-top: 1.35rem;
}

.contact-steps {
  margin-top: 1rem;
}

.contact-steps article {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
}

.contact-steps strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(79, 140, 255, 0.14);
  color: var(--primary-soft);
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem;
}

.cta-band h2 {
  margin: 0;
  max-width: 760px;
}

.blocked-panel {
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.hero-copy {
  background: linear-gradient(180deg, #1a1d29 0%, #171923 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.hero-copy .eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card,
.form-card,
.table-card,
.calendar-card,
.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #1d2230;
  border: 1px solid var(--border);
}

.form-section {
  display: grid;
  gap: 1.5rem;
}

.form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.form-wrapper h2 {
  margin-top: 0;
}

.field-group {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.field-group label {
  font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f1115;
  padding: 0.9rem 1rem;
  color: var(--text);
}

.field-group small {
  color: var(--muted);
}

.field-error-message {
  color: #c53030;
  font-size: 0.9rem;
}

.slot-info {
  margin: 1rem 0 0;
  padding: 1rem 1rem;
  border-radius: 16px;
  background: #1d2230;
  color: var(--primary-soft);
  border: 1px solid var(--border);
}

.schedule-panel {
  margin-top: 1.5rem;
}

.schedule-list,
.day-intervals {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.schedule-list li,
.day-intervals li {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #1d2230;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.schedule-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6ea1ff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(79, 140, 255, 0.32);
}

/* Status colors */
.status-success { color: #22c55e; }
.status-warning { color: #f59e0b; }
.status-danger { color: #ef4444; }

/* Tables */
.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.table-card tr:hover {
  background: #1d2230;
}

/* Inputs focus */
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79,140,255,0.25);
}

/* Scrollbar */
::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #2a2f3f;
  border-radius: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.btn-secondary {
  background: #1d2230;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-tertiary {
  background: #1a1d29;
  color: var(--text);
}

.btn-danger {
  background: #c53030;
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #9a2222;
}

.dashboard-overview {
  display: grid;
  gap: 1.5rem;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
}

.summary-card {
  padding: 1.5rem;
}

.summary-card h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.summary-card p {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.os-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.os-card {
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.os-card h3 {
  margin-top: 0;
}

.os-actions-panel,
.timeline-panel,
.info-panel {
  margin-top: 1.5rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline-list li {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: #1b2030; /* darker, consistent with cards */
  border: 1px solid rgba(255,255,255,0.08);
  color: #eaeef5;
}

.timeline-list li small {
  color: #aab2bf; /* improve timestamp readability */
}

.timeline-list li p {
  color: #e6e9ef; /* main text stronger */
}

.timeline-list strong {
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .os-summary-grid {
    grid-template-columns: 1fr;
  }
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-field label {
  font-size: 0.95rem;
  color: var(--muted);
}

.overflow-table {
  overflow-x: auto;
}

.status-form,
.delete-form {
  display: flex;
  gap: 0.5rem;
  flex-direction: column;
}

.status-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  background: #0f1115;
  color: var(--text);
}

.status-form button,
.delete-form button {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th,
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(31, 79, 139, 0.08);
  text-align: left;
  vertical-align: top;
}

thead th {
  font-size: 0.9rem;
  color: var(--muted);
}

tbody tr:hover {
  background: #1d2230;
}

.calendar-panel {
  margin-top: 2rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
}

.calendar-card {
  padding: 1.25rem;
}

.calendar-card.full {
  border: 1px solid #f5a623;
  background: #2a2116;
}

.calendar-card h3 {
  margin: 0 0 0.75rem;
}

.calendar-status {
  margin-top: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: #0b0d12;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  color: var(--muted);
}

.footer-inner p {
  max-width: 520px;
  margin: 0.8rem 0 0;
  line-height: 1.6;
}

.footer-brand {
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--primary-soft);
}

@media (max-width: 900px) {
  .hero-section,
  .saas-hero,
  .feature-grid,
  .plans-layout,
  .contact-layout,
  .plan-benefits,
  .contact-steps,
  .summary-grid,
  .filters-form,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .saas-hero {
    min-height: 0;
  }

  .cta-band,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .pricing-header {
    padding-right: 0;
  }

  .recommended-badge {
    position: static;
    width: fit-content;
    margin-bottom: 1rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .site-main {
    padding-top: 1rem;
  }

  .site-nav {
    width: 100%;
    gap: 0.45rem;
  }

  .site-nav a,
  .nav-pill {
    font-size: 0.88rem;
    padding: 0.5rem 0.65rem !important;
  }

  .saas-hero-copy,
  .saas-hero-panel,
  .pricing-card,
  .contact-card,
  .cta-band {
    border-radius: 16px;
    padding: 1.25rem;
  }

  .saas-hero-copy h1,
  .page-heading h1 {
    font-size: 2rem;
  }

  .hero-actions .btn,
  .contact-card .btn,
  .cta-band .btn {
    width: 100%;
  }

  .preview-chart {
    min-height: 150px;
  }

  .field-group input,
  .field-group select,
  .field-group textarea {
    font-size: 0.95rem;
  }

  .table-card {
    padding: 1rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem;
  }
}

/* Estilos para Paginação */
.table-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.table-header-actions h2 {
  margin: 0;
  flex: 1;
}

.table-header-actions .btn {
  white-space: nowrap;
  margin-left: auto;
}

.public-link-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: end;
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.public-link-panel h2 {
  margin: 0;
}

.public-link-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.public-link-copy input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f1115;
  color: var(--text);
  padding: 0.85rem 1rem;
}

.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.95rem;
  color: var(--text);
}

.pagination-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pagination-buttons .btn {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.pagination-buttons .btn:disabled,
.pagination-buttons .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .pagination-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Layout de Detalhes da OS */
.os-detail-panel {
  display: grid;
  gap: 1.5rem;
}

.os-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.os-main {
  display: grid;
  gap: 1rem;
}

.os-sidebar {
  display: grid;
  gap: 1rem;
}

.os-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
}

.os-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--primary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-row p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.os-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.os-table th,
.os-table td {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  font-size: 0.9rem;
}

.os-table th {
  background: var(--surface-3);
  font-weight: 600;
  color: var(--text);
}

.os-table tbody tr:hover {
  background: var(--surface-3);
}

.os-total {
  padding-top: 0.75rem;
  text-align: right;
  font-size: 0.95rem;
  color: var(--primary-soft);
  font-weight: 600;
}

/* Sidebar cards stronger contrast */
.os-sidebar .os-card {
  background: linear-gradient(180deg, var(--surface-3), var(--surface));
}

/* Section separation */
.card-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.5rem;
}

/* Empty states */
.empty-state {
  color: var(--muted);
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.form-row input,
.form-row select {
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.form-row .btn {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
}

.financial-summary {
  background: #f8fafe;
  padding: 1rem;
  border-radius: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 0.8rem 0;
  margin: 0.5rem 0;
}

.summary-row strong {
  color: var(--primary);
  font-weight: 600;
}

.summary-row .profit {
  color: #22863a;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.status-completed {
  background: #22863a;
  color: #fff;
}

.status-badge.status-in_execution {
  background: #f5a623;
  color: #fff;
}

.status-badge.status-received {
  background: #4f79c2;
  color: #fff;
}

.status-badge.status-canceled {
  background: #c53030;
  color: #fff;
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  padding: 0.8rem;
  border-left: 3px solid var(--primary);
  background: #f8fafe;
  margin-bottom: 0.5rem;
  border-radius: 6px;
}

.timeline-list small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Gráficos Responsivos */
.chart-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: stretch;
  gap: 1rem;
  margin-top: 1rem;
}

.chart-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.15rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.chart-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.chart-card-header {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.chart-card-header span,
.chart-card h2 {
  margin: 0 0 1rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: uppercase;
}

.chart-card-header span {
  margin: 0;
}

.chart-card-header strong {
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
}

.chart-card canvas {
  flex: 1;
  width: 100%;
  min-height: 0;
  max-height: 245px;
}

.chart-card-donut {
  min-height: 320px;
}

.chart-card-donut canvas {
  max-height: 220px;
}

@media (max-width: 1200px) {
  .chart-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-card-donut {
    grid-column: 1 / -1;
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .os-layout {
    grid-template-columns: 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .chart-panel {
    grid-template-columns: 1fr;
  }

  .chart-card {
    min-height: 280px;
  }

  .os-table th,
  .os-table td {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Site institucional - Oficina Online */
body.public-page {
  background: #f4f7fb;
  color: #172033;
}

body.public-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e4e9f2;
  box-shadow: 0 8px 28px rgba(26, 38, 64, 0.08);
  backdrop-filter: blur(16px);
}

body.public-page .brand {
  color: #172033;
}

body.public-page .brand-mark {
  background: #1f6fff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(31, 111, 255, 0.24);
}

body.public-page .site-nav a {
  color: #34425e;
}

body.public-page .site-nav a:hover {
  background: #edf4ff;
  color: #1f6fff;
}

body.public-page .nav-pill {
  border: 1px solid #c9d8ef;
  color: #1f4f8b !important;
}

body.public-page .nav-pill-secondary {
  background: #1f6fff;
  border-color: #1f6fff;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(31, 111, 255, 0.25);
}

body.public-page .site-main {
  padding: 0 0 4rem;
}

body.public-page .btn {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

body.public-page .btn-primary {
  background: #1f6fff;
  color: #fff;
  box-shadow: 0 14px 26px rgba(31, 111, 255, 0.26);
}

body.public-page .btn-secondary {
  background: #fff;
  border: 1px solid #c9d8ef;
  color: #1f4f8b;
}

body.public-page .form-section {
  padding: 2rem 0 4rem;
}

body.public-page .form-wrapper {
  width: min(100%, 760px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(37, 63, 112, 0.12);
}

body.public-page .form-wrapper h2 {
  color: #101828;
}

body.public-page .form-wrapper p {
  color: #526173;
}

body.public-page .field-group label {
  color: #172033;
}

body.public-page .field-group input,
body.public-page .field-group select,
body.public-page .field-group textarea {
  background: #fff;
  border-color: #b8c7dc;
  color: #101828;
}

body.public-page .field-group input::placeholder,
body.public-page .field-group textarea::placeholder {
  color: #718096;
}

body.public-page .field-group input[type="file"] {
  background: #f8fbff;
  color: #172033;
}

body.public-page .field-group input:focus,
body.public-page .field-group select:focus,
body.public-page .field-group textarea:focus {
  border-color: #1f6fff;
  box-shadow: 0 0 0 3px rgba(31, 111, 255, 0.14);
}

body.public-page .field-group .errorlist,
body.public-page .field-error-message {
  color: #b42318;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 2rem;
  align-items: center;
  min-height: 620px;
  padding: 4rem 0 3rem;
}

.public-hero-copy {
  display: grid;
  gap: 1.2rem;
}

.public-eyebrow {
  margin: 0;
  color: #1f6fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero h1,
.public-page-head h1 {
  margin: 0;
  color: #101828;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.public-hero-copy > p:not(.public-eyebrow),
.public-page-head p,
.public-feature-card p,
.public-contact-card p {
  margin: 0;
  color: #5d6b82;
  font-size: 1.05rem;
  line-height: 1.7;
}

.public-actions,
.public-payment-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.public-payment-note span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  background: #fff;
  color: #34425e;
  font-weight: 700;
}

.system-mockup {
  overflow: hidden;
  border: 1px solid #d8e2f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(37, 63, 112, 0.18);
}

.mockup-topbar {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid #edf1f7;
  background: #f8fbff;
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c8d5e8;
}

.mockup-content {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 410px;
}

.mockup-sidebar {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.1rem;
  background: #10223d;
  color: #fff;
}

.mockup-sidebar strong {
  margin-bottom: 0.5rem;
}

.mockup-sidebar span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.mockup-main {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: #f5f8fc;
}

.mockup-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mockup-summary article {
  padding: 0.9rem;
  border: 1px solid #e0e8f5;
  border-radius: 14px;
  background: #fff;
}

.mockup-summary span {
  display: block;
  color: #6b7890;
  font-size: 0.78rem;
}

.mockup-summary strong {
  display: block;
  margin-top: 0.45rem;
  color: #172033;
  font-size: 1.1rem;
}

.mockup-chart {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  min-height: 165px;
  padding: 1rem;
  border: 1px solid #e0e8f5;
  border-radius: 16px;
  background: #fff;
}

.mockup-chart span {
  flex: 1;
  min-height: 38px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #79a8ff, #1f6fff);
}

.mockup-chart .bar-42 { height: 42%; }
.mockup-chart .bar-48 { height: 48%; }
.mockup-chart .bar-58 { height: 58%; }
.mockup-chart .bar-66 { height: 66%; }
.mockup-chart .bar-78 { height: 78%; }

.mockup-table {
  display: grid;
  gap: 0.65rem;
}

.mockup-table span {
  height: 14px;
  border-radius: 999px;
  background: #dce7f6;
}

.public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin: 0 0 3rem;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(37, 63, 112, 0.09);
}

.public-stats article {
  padding: 1.35rem;
  border-right: 1px solid #edf1f7;
}

.public-stats article:last-child {
  border-right: 0;
}

.public-stats strong {
  display: block;
  color: #1f6fff;
  font-size: 1.45rem;
}

.public-stats span {
  color: #5d6b82;
}

.public-section-head,
.public-page-head {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.public-section-head h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.public-card-grid,
.public-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-feature-card,
.public-contact-card,
.public-pricing-card,
.public-cta {
  border: 1px solid #dce5f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(37, 63, 112, 0.09);
}

.public-feature-card,
.public-contact-card {
  padding: 1.5rem;
}

.public-feature-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #edf4ff;
  color: #1f6fff;
  font-weight: 900;
}

.public-feature-card h3,
.public-contact-card h2 {
  margin: 0 0 0.75rem;
  color: #172033;
}

.public-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.8rem;
  background: #10223d;
}

.public-cta h2 {
  max-width: 780px;
  margin: 0;
  color: #fff;
}

.public-pricing-wrap {
  display: grid;
  justify-content: center;
}

.public-pricing-card {
  position: relative;
  width: min(100%, 540px);
  padding: 2rem;
  border-color: #9fc2ff;
}

.public-pricing-card .pricing-header {
  padding-right: 8rem;
}

.public-pricing-card .pricing-header span {
  color: #1f6fff;
}

.public-pricing-card .pricing-header strong {
  color: #101828;
}

.public-pricing-card .pricing-list li {
  background: #f7faff;
  border-color: #dce5f2;
  color: #34425e;
}

.public-pricing-card .btn {
  width: 100%;
  margin-top: 1.25rem;
}

.public-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.public-page .site-footer {
  border-top: 1px solid #e4e9f2;
  background: #fff;
}

body.public-page .footer-brand {
  color: #172033;
}

body.public-page .footer-inner,
body.public-page .footer-inner p,
body.public-page .footer-nav a {
  color: #5d6b82;
}

body.public-page .footer-nav a:hover {
  color: #1f6fff;
}

@media (max-width: 980px) {
  .public-hero,
  .public-card-grid,
  .public-contact-grid,
  .public-stats {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: 0;
    padding-top: 2.5rem;
  }

  .mockup-content {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
  }

  .public-stats article {
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }

  .public-stats article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  body.public-page .header-inner,
  body.public-page .footer-inner,
  .public-cta {
    align-items: stretch;
  }

  body.public-page .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  body.public-page .site-nav a,
  body.public-page .nav-pill {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.86rem;
  }

  .public-hero h1,
  .public-page-head h1 {
    font-size: 2.2rem;
  }

  .public-actions .btn,
  .public-cta .btn {
    width: 100%;
  }

  .public-pricing-card,
  .public-feature-card,
  .public-contact-card,
  .public-cta {
    border-radius: 14px;
    padding: 1.25rem;
  }

  .public-pricing-card .pricing-header {
    padding-right: 0;
  }

  .public-pricing-card .recommended-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .mockup-summary {
    grid-template-columns: 1fr;
  }
}

/* Cadastro publico: tema dedicado com contraste forte */
body.public-page .signup-section {
  padding: 2.25rem 0 4rem !important;
}

body.public-page .signup-wrapper {
  width: min(100%, 880px) !important;
  margin: 0 auto !important;
  padding: 2.5rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(31, 111, 255, 0.28) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98)) !important;
  box-shadow: 0 24px 60px rgba(31, 79, 139, 0.18) !important;
  color: #101828 !important;
}

body.public-page .signup-wrapper h2 {
  margin: 0 0 0.55rem !important;
  color: #0b1b34 !important;
  font-size: clamp(1.7rem, 3vw, 2.25rem) !important;
  font-weight: 900 !important;
}

body.public-page .signup-wrapper > p {
  margin: 0 0 1.6rem !important;
  color: #34425e !important;
  font-size: 1rem !important;
}

body.public-page .signup-wrapper .field-group {
  gap: 0.45rem !important;
  margin-bottom: 1.15rem !important;
}

body.public-page .signup-wrapper .field-group label {
  color: #10223d !important;
  font-size: 0.95rem !important;
  font-weight: 850 !important;
}

body.public-page .signup-wrapper .field-group input,
body.public-page .signup-wrapper .field-group select,
body.public-page .signup-wrapper .field-group textarea {
  min-height: 54px !important;
  border: 1px solid #9db3d3 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #101828 !important;
  box-shadow: inset 0 1px 0 rgba(16, 24, 40, 0.04) !important;
}

body.public-page .signup-wrapper .field-group input::placeholder,
body.public-page .signup-wrapper .field-group textarea::placeholder {
  color: #66758d !important;
}

body.public-page .signup-wrapper .field-group input[type="file"] {
  padding: 0.85rem 1rem !important;
  background: #edf4ff !important;
  color: #172033 !important;
  border-color: #8fb6ff !important;
}

body.public-page .signup-wrapper .field-group input:focus,
body.public-page .signup-wrapper .field-group select:focus,
body.public-page .signup-wrapper .field-group textarea:focus {
  outline: none !important;
  border-color: #1f6fff !important;
  box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.16) !important;
}

body.public-page .signup-wrapper .btn-primary {
  width: 100% !important;
  margin-top: 0.5rem !important;
  background: linear-gradient(135deg, #1f6fff, #0f8bdc) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(31, 111, 255, 0.32) !important;
}

body.public-page .signup-wrapper .errorlist {
  margin: 0.35rem 0 0 !important;
  padding-left: 1.1rem !important;
  color: #b42318 !important;
}

.public-booking-page {
  background: #f4f7fb;
  color: #172033;
}

.public-booking-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.public-booking-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(37, 63, 112, 0.09);
}

.public-booking-brand img,
.public-booking-brand .brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.public-booking-brand h1 {
  margin: 0.15rem 0;
  color: #101828;
}

.public-booking-brand p {
  margin: 0;
  color: #5d6b82;
}

.public-booking-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: start;
}

.public-booking-services,
.public-booking-form .form-wrapper {
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(37, 63, 112, 0.1);
}

.public-booking-services {
  padding: 1.5rem;
}

.public-booking-services h2,
.public-booking-form h2 {
  margin-top: 0;
  color: #101828;
}

.public-booking-page .service-list li {
  border-color: #dce5f2;
  background: #f7faff;
  color: #172033;
}

.public-booking-page .slot-info {
  background: #edf4ff;
  border-color: #b8cff5;
  color: #1f4f8b;
}

.public-booking-success {
  display: grid;
  justify-content: center;
}

.public-booking-success .panel-card {
  width: min(100%, 720px);
  padding: 2rem;
  border: 1px solid #dce5f2;
  border-radius: 16px;
  background: #fff;
  color: #172033;
  text-align: center;
  box-shadow: 0 16px 40px rgba(37, 63, 112, 0.1);
}

.public-booking-success h1 {
  margin-top: 0;
  color: #101828;
}

.public-booking-success p {
  color: #5d6b82;
}

.invoice-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

@media (max-width: 780px) {
  .public-link-panel,
  .public-link-copy,
  .public-booking-grid {
    grid-template-columns: 1fr;
  }

  .public-link-copy .btn {
    width: 100%;
  }
}
