/* ═══════════════════════════════════════
   ESCTECH — Design System
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:          #070a0e;
  --bg-2:        #0b0f14;
  --panel:       #111620;
  --panel-2:     #0e1319;
  --border:      rgba(255,255,255,0.06);
  --border-accent: rgba(0,240,255,0.15);
  --accent:      #00e5ff;
  --accent-2:    #00b4cc;
  --accent-glow: rgba(0,229,255,0.15);
  --accent-soft: rgba(0,229,255,0.08);
  --muted:       #6e7b8a;
  --muted-2:     #4a5568;
  --text:        #dde4ec;
  --text-2:      #a8b4c0;
  --danger:      #f85149;
  --danger-soft: rgba(248,81,73,0.12);
  --success:     #3fb950;
  --success-soft:rgba(63,185,80,0.12);
  --warn:        #e3a04f;
  --warn-soft:   rgba(227,160,79,0.12);
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.6);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ════════════════════════════════
   LANDING PAGE
════════════════════════════════ */

body.landing {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,255,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #050810 0%, #070a0e 100%);
}

/* ── LAND NAV ── */
.land-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,10,14,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.land-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.land-brand {
  font-size: 20px; font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.land-nav-links {
  display: flex; align-items: center; gap: 8px;
}

.land-nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.land-nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 160px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.stats-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: center;
  gap: 60px; flex-wrap: wrap;
}

.stats-bar-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.stats-num {
  font-size: 28px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.5px;
}

.stats-lbl {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── LAND SECTION ── */
.land-section { padding: 80px 24px; }
.land-wrap { max-width: 1100px; margin: 0 auto; }

.dark-section {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center; margin-bottom: 52px;
}

.section-header h2 {
  font-size: 34px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-header p { font-size: 16px; color: var(--muted); }

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.service-icon {
  font-size: 32px; margin-bottom: 14px;
}

.service-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
}

.service-card p {
  font-size: 14px; color: var(--muted); line-height: 1.6;
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: flex; align-items: flex-start;
  justify-content: center; gap: 0; flex-wrap: wrap;
}

.process-step {
  flex: 1; min-width: 160px; max-width: 220px;
  text-align: center; padding: 0 16px;
}

.step-num {
  font-size: 40px; font-weight: 800;
  color: var(--accent); opacity: 0.25;
  line-height: 1; margin-bottom: 12px;
  letter-spacing: -1px;
}

.process-step h4 {
  font-size: 16px; font-weight: 700; margin-bottom: 8px;
}

.process-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.process-arrow {
  font-size: 24px; color: var(--muted-2);
  padding: 0 4px; margin-top: 24px;
  flex-shrink: 0;
}

/* ── CONTACT ── */
.contact-grid {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}

.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  min-width: 240px;
  transition: border-color 0.2s;
}

.contact-item:hover { border-color: var(--border-accent); }

.contact-icon { font-size: 28px; flex-shrink: 0; }

.contact-label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--accent); font-weight: 500; font-size: 15px;
}

/* ── LAND FOOTER ── */
.land-footer {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  padding: 24px;
}

.land-footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ════════════════════════════════
   AUTH — LOGIN
════════════════════════════════ */

body:not(.landing):not(.has-sidebar) {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0,229,255,0.07), transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(167,139,250,0.05), transparent 60%),
    linear-gradient(180deg, #070a0e, #0b0f14);
}

.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
}

.login-wrap { width: 100%; max-width: 400px; }

.login-logo {
  text-align: center; margin-bottom: 36px;
}

.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  font-size: 30px;
  margin-bottom: 16px;
  box-shadow: 0 0 40px var(--accent-glow);
}

.login-logo h1 {
  font-size: 28px; font-weight: 800;
  color: var(--text); letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-logo h1 span { color: var(--accent); }

.login-logo p { font-size: 14px; color: var(--muted); }

.login-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.login-footer {
  text-align: center; margin-top: 20px;
  font-size: 12px; color: var(--muted-2);
}

.error-code {
  font-size: 80px; font-weight: 800;
  color: var(--accent); letter-spacing: -4px;
  line-height: 1; margin-bottom: 16px;
  opacity: 0.4;
}

/* ════════════════════════════════
   APP SHELL (autenticado)
════════════════════════════════ */

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
header {
  background: rgba(11,15,20,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding: 0;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.header-brand {
  display: flex; align-items: center; gap: 10px;
}

.brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-size: 16px;
}

.brand-name {
  font-size: 17px; font-weight: 800;
  color: var(--text); letter-spacing: -0.3px;
}

header nav {
  display: flex; align-items: center; gap: 2px;
}

header nav a {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

header nav a:hover {
  color: var(--text); background: rgba(255,255,255,0.05);
}

header nav a.active {
  color: var(--accent); background: var(--accent-soft);
}

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px; padding-left: 8px;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  padding: 4px 7px; border-radius: 6px;
  letter-spacing: 0.03em;
}

.lang-switch a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lang-switch a.active { color: var(--accent); background: var(--accent-soft); }

.land-nav-links .lang-switch { border-left: 1px solid var(--border); }

.nav-logout {
  color: var(--danger) !important;
  margin-left: 8px;
}

.nav-logout:hover { background: var(--danger-soft) !important; }

/* ── MAIN ── */
main { padding: 32px 0 60px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.footer-portfolio-link {
  color: var(--muted-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-portfolio-link:hover { color: var(--accent); border-color: var(--accent); }

/* ════════════════════════════════
   COMPONENTS
════════════════════════════════ */

/* ── ALERTS ── */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  margin-bottom: 20px;
}

.alert::before { font-size: 16px; flex-shrink: 0; }

.alert-ok {
  background: var(--success-soft);
  border: 1px solid rgba(63,185,80,0.25);
  color: var(--success);
}
.alert-ok::before { content: '✓'; }

.alert-erro {
  background: var(--danger-soft);
  border: 1px solid rgba(248,81,73,0.25);
  color: var(--danger);
}
.alert-erro::before { content: '!'; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.3px;
}

.page-header-sub {
  font-size: 14px; color: var(--muted); margin-top: 2px;
}

/* ── BADGES ── */
.badge-role {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

.badge-role.admin {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.badge-role.cliente {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(63,185,80,0.25);
}

.badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}

/* estados reais da BD: Em análise / Em reparação / Concluído */
.badge.estado-analise {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(227,160,79,0.25);
}
.badge.estado-reparacao {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.badge.estado-concluido {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(63,185,80,0.25);
}

.badge-lg { font-size: 13px; padding: 5px 14px; }

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.stat-card.accent { border-color: var(--border-accent); }
.stat-card.success { border-color: rgba(63,185,80,0.2); }
.stat-card.warn    { border-color: rgba(227,160,79,0.2); }

.stat-icon { font-size: 20px; margin-bottom: 14px; }

.stat-value {
  font-size: 36px; font-weight: 800;
  letter-spacing: -1px; line-height: 1;
  color: var(--accent);
}

.stat-card.success .stat-value { color: var(--success); }
.stat-card.warn    .stat-value { color: var(--warn); }

.stat-label {
  font-size: 12px; color: var(--muted);
  margin-top: 6px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── QUICK ACTIONS ── */
.quick-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}

/* ── CARD ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

/* ── TABLE ── */
.table { width: 100%; border-collapse: collapse; }

.table th {
  padding: 10px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); text-align: left;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.table tbody tr { transition: background 0.1s; }
.table tbody tr:hover { background: rgba(255,255,255,0.025); }
.table tbody tr[data-desc] { cursor: pointer; }
.table tbody tr[data-desc]:hover { background: var(--accent-soft); }
.table tbody tr:last-child td { border-bottom: none; }

.empty {
  color: var(--muted); text-align: center;
  padding: 32px !important; font-size: 14px;
}

.table-hint {
  font-size: 12px; color: var(--muted-2);
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── FORMS ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.field { margin-bottom: 18px; }
.field-full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea { min-height: 100px; resize: vertical; line-height: 1.6; }

/* estado inline select */
.estado-form select {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 6px;
  width: auto;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: filter 0.15s, transform 0.1s;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #020d10;
  box-shadow: 0 2px 12px rgba(0,229,255,0.25);
}

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  box-shadow: none;
}

.btn.secondary:hover { background: var(--accent-soft); }

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-full { width: 100%; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--panel);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg), 0 0 60px var(--accent-glow);
  animation: slideUp 0.2s ease;
}

@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-header strong { font-size: 14px; color: var(--accent); line-height: 1.4; }

.close-btn {
  background: none; border: none;
  color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1;
  padding: 0; margin-left: 8px; flex-shrink: 0;
  transition: color 0.15s;
}

.close-btn:hover { color: var(--text); }

#modal-content {
  font-size: 14px; color: var(--text-2);
  line-height: 1.7; white-space: pre-wrap;
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  gap: 5px; padding: 4px; border-radius: 8px;
  transition: background 0.15s;
}

.hamburger:hover { background: rgba(255,255,255,0.05); }

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SEARCH BAR ── */
.card-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}

.card-toolbar h3 { margin-bottom: 0; }

.search-input {
  width: 220px;
  padding: 7px 12px 7px 34px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e7b8a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder { color: var(--muted-2); }

/* ── MODE TOGGLE (nova entrada) ── */
.mode-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  width: fit-content;
}

.mode-btn {
  padding: 8px 20px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.mode-btn + .mode-btn {
  border-left: 1px solid var(--border);
}

.mode-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── NAV "Nova Entrada" destaque ── */
.nav-nova-entrada {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border: 1px solid var(--border-accent);
}

.nav-nova-entrada:hover {
  background: rgba(0,229,255,0.15) !important;
}

/* ── FORM TOGGLE ── */
.form-section {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-bottom 0.3s ease;
}

.form-section.open {
  max-height: 800px;
  opacity: 1;
  margin-bottom: 20px;
}

/* ── INFO CARD (dashboard cliente) ── */
.info-card { padding: 4px 0; }

.info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted);
}

/* ── CONTACT CARD ── */
.contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── ESTADO SELECT colorido ── */
.estado-select { cursor: pointer; font-weight: 600; font-size: 12px; width: auto; padding: 5px 10px; }
.estado-select.estado-analise  { border-color: rgba(227,160,79,0.4); color: var(--warn); }
.estado-select.estado-reparacao{ border-color: var(--border-accent); color: var(--accent); }
.estado-select.estado-concluido{ border-color: rgba(63,185,80,0.4); color: var(--success); }

/* ── FILE INPUT ── */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

.file-input-label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 44px;
}

.file-input-label:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.file-input-label .file-icon { font-size: 18px; flex-shrink: 0; }
.file-input-label .file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.field-hint { font-size: 11px; color: var(--muted-2); margin-top: 4px; display: block; }

/* ── FORM INLINE ── */
.form-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-inline select { width: auto; }

/* ── TEXT UTILS ── */
.text-muted { color: var(--muted); }
.text-muted-subtle { color: var(--muted-2); }
.text-body { font-size: 14px; line-height: 1.8; color: var(--text-2); white-space: pre-wrap; }
.price-value { font-size: 18px; font-weight: 700; color: var(--accent); }
.link-accent { color: var(--accent); }
.link-accent:hover { text-decoration: underline; }

/* ── PEDIDO GRID ── */
.pedido-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pedido-grid .card-full { grid-column: 1 / -1; }
.pedido-img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border);
  max-height: 400px; object-fit: contain;
  background: rgba(0,0,0,0.2);
}

/* ── INFO ROWS (alias card) ── */
.info-rows { display: flex; flex-direction: column; }

/* ── PAGINATION ── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 0 4px;
}
.page-info { font-size: 13px; color: var(--muted); }

/* ── HIDDEN ── */
.hidden { display: none !important; }

/* ── CHARTS (dashboard) ── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.donut-wrap {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}

.donut-svg { width: 140px; height: 140px; flex-shrink: 0; }

.donut-total {
  font-size: 20px; font-weight: 800;
  fill: var(--text);
}

.donut-sub {
  font-size: 7px; fill: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.chart-legend { list-style: none; font-size: 13px; color: var(--text-2); }
.chart-legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.chart-legend .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.bars-wrap {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; height: 160px; padding-top: 8px;
}

.bar-col {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; height: 100%;
}

.bar-value { font-size: 11px; color: var(--muted); margin-bottom: 6px; }

.bar-track {
  flex: 1; width: 100%; max-width: 32px;
  display: flex; align-items: flex-end;
  background: rgba(255,255,255,0.03);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  transition: height 0.3s ease;
}

.bar-label {
  font-size: 11px; color: var(--muted);
  margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */

@media (max-width: 768px) {
  .hero { padding: 120px 20px 70px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }

  .stats-bar-inner { gap: 32px; }

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

  .process-steps { flex-direction: column; align-items: center; gap: 16px; }
  .process-arrow { transform: rotate(90deg); margin: 0; }

  .land-footer-inner { flex-direction: column; text-align: center; gap: 16px; }

  /* hamburger nav */
  .hamburger { display: flex; }

  header nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(11,15,20,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    flex-direction: column;
    gap: 2px;
    z-index: 99;
  }

  header nav.open { display: flex; }

  header nav a {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
  }

  .nav-logout { margin-left: 0; margin-top: 6px; }

  /* search */
  .search-input { width: 100%; }
  .card-toolbar { flex-direction: column; align-items: stretch; }
  .card-toolbar h3 { margin-bottom: 8px; }

  /* ── TABELAS MOBILE ── */
  .card { padding: 14px; }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th {
    padding: 8px 10px;
    font-size: 10px;
    white-space: nowrap;
  }

  .table td {
    padding: 10px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* esconder colunas menos importantes */
  .col-hide-mobile { display: none !important; }

  /* botões nas tabelas menores */
  .table .btn { padding: 4px 10px; font-size: 12px; }

  /* select de estado mais compacto */
  .estado-select { font-size: 12px; padding: 4px 6px; max-width: 130px; }

  /* page header */
  .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quick-actions { flex-direction: column; }
  .quick-actions .btn { width: 100%; text-align: center; }
}

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

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .pedido-grid { grid-template-columns: 1fr; }
  .table { min-width: 360px; }
}
