:root {
  --ink: #0f1b2d;
  --muted: #5f6f86;
  --paper: #eef2f7;
  --paper-2: #e2e8f1;
  --surface: #ffffff;
  --line: #d5dde9;
  --navy: #0b2545;
  --navy-2: #13386b;
  --accent: #4f8ff0;
  --red: #b4443a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 33, 30, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--navy-2); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand span, .brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--navy); color: var(--white); border-radius: 9px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }

.primary-button, .secondary-button, .google-button, .logout-button, .icon-button, .top-pro-link {
  border: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.primary-button { padding: 12px 16px; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 800; }
.primary-button:hover { background: var(--navy-2); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.secondary-button { padding: 12px 16px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 750; }
.secondary-button:hover { border-color: var(--navy); color: var(--navy); }
.large-button { min-width: 170px; padding: 14px 18px; }
.full-button { width: 100%; margin-top: 8px; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 18px; }
.icon-button:hover { background: var(--paper-2); }
.mobile-only { display: none; }

/* Auth */
.auth-page { min-height: 100vh; background: var(--paper); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-intro { padding: 42px clamp(32px, 6vw, 92px); display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: var(--white); }
.auth-intro .brand span { background: var(--white); color: var(--navy); }
.auth-intro .intro-copy { max-width: 620px; }
.auth-intro .eyebrow { color: #8fb3e8; }
.auth-intro h1 { margin: 0 0 20px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 78px); line-height: .98; letter-spacing: -.05em; font-weight: 500; }
.auth-intro .intro-copy p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.74); font-size: 17px; }
.intro-note { max-width: 440px; color: rgba(255,255,255,.56); font-size: 13px; }
.auth-panel { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(420px, 100%); padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; letter-spacing: -.04em; }
.auth-card > .muted { margin: 0 0 26px; }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 800; }
.google-button:hover { border-color: #9fb0c9; transform: translateY(-1px); }
.google-g { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-weight: 900; font-size: 12px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; font-size: 13px; }
.auth-foot a { color: var(--navy); font-weight: 800; }
.notice { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f3f6fb; font-size: 13px; margin-bottom: 14px; }
.notice.error { border-color: #e7c5c1; color: var(--red); background: #fbf2f0; }
.notice.success { border-color: #b9d0ea; color: var(--navy-2); background: #eaf3fb; }

/* Dashboard */
.app-page { min-height: 100vh; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 25px 18px 18px; background: #e3e9f3; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.sidebar-top { display: flex; justify-content: space-between; align-items: center; padding: 0 7px; }
.side-nav { margin-top: 34px; display: grid; gap: 4px; }
.nav-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 10px; background: transparent; border: 0; border-radius: 9px; color: #43536b; text-align: left; font-weight: 750; }
.nav-link:hover, .nav-link.active { background: rgba(11,37,69,.08); color: var(--navy); }
.nav-link > span:first-child { width: 20px; color: #8a97ab; font-size: 10px; font-weight: 800; }
.pro-pill { display: inline-block; margin-left: auto; padding: 3px 6px; border-radius: 5px; background: #dde8fa; color: #1e4d8c; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.sidebar-pro { margin-top: auto; padding: 18px; background: var(--navy); color: var(--white); border-radius: 14px; }
.sidebar-pro .mini-label { display: block; color: #8fb3e8; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-pro strong { display: block; margin: 8px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.08; font-weight: 500; }
.sidebar-pro p { margin: 0 0 14px; color: rgba(255,255,255,.67); font-size: 12px; }
.sidebar-pro a { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 12px; font-weight: 800; }
.sidebar-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(15,27,45,.12); }
.profile-mini { display: flex; align-items: center; gap: 10px; min-width: 0; }
.profile-mini img, .avatar-fallback { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.avatar-fallback { display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 10px; font-weight: 900; }
.profile-mini strong, .profile-mini small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-mini strong { font-size: 12px; }
.profile-mini small { color: var(--muted); font-size: 10px; max-width: 160px; }
.logout-button { margin-top: 10px; padding: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.logout-button:hover { color: var(--red); }
.main-wrap { width: calc(100% - var(--sidebar)); margin-left: var(--sidebar); }
.topbar { min-height: 96px; padding: 22px 34px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(238,242,247,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 34px; letter-spacing: -.04em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-pro-link { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 800; }
.top-pro-link span { color: #1e4d8c; margin-right: 5px; font-size: 9px; letter-spacing: .08em; }
.dashboard-content { padding: 28px 34px 50px; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.metric-card { padding: 18px 20px; min-height: 120px; border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.metric-card strong { display: block; margin: 13px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.metric-card small { color: var(--muted); font-size: 11px; }
.accent-metric { background: #e6eefb; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.task-tools { display: flex; gap: 8px; align-items: center; }
.search-box { width: 220px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.search-box span { color: var(--muted); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.select-control { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.task-list { display: grid; gap: 8px; }
.task-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 15px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.task-card:hover { border-color: #b3c0d4; }
.task-check { width: 22px; height: 22px; margin-top: 1px; border: 1px solid #aebbd0; border-radius: 50%; background: transparent; display: grid; place-items: center; font-size: 12px; color: transparent; }
.task-card.done .task-check { background: var(--navy); color: var(--white); border-color: var(--navy); }
.task-main { min-width: 0; }
.task-title { margin: 0; font-size: 14px; font-weight: 850; word-break: break-word; }
.task-card.done .task-title { color: #8591a5; text-decoration: line-through; }
.task-notes { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.task-meta span { padding: 3px 6px; border-radius: 5px; background: var(--paper-2); color: #4f5f78; font-size: 10px; font-weight: 800; }
.priority-high { color: var(--red) !important; background: #f7ebe8 !important; }
.priority-medium { color: #1e4d8c !important; background: #e6eefb !important; }
.priority-low { color: var(--navy-2) !important; background: #e3effc !important; }
.task-actions { display: flex; gap: 5px; }
.task-actions button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); }
.task-actions button:hover { color: var(--navy); border-color: #a9b8cf; }
.empty-state { padding: 42px 20px; text-align: center; border: 1px dashed #bccade; color: var(--muted); background: rgba(255,255,255,.6); }
.right-column { display: grid; gap: 12px; align-content: start; }
.side-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.card-kicker { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.progress-card { text-align: center; }
.ring { width: 126px; height: 126px; margin: 18px auto; border-radius: 50%; background: conic-gradient(var(--navy) 0deg, var(--navy) 0deg, #d5dde9 0deg); display: grid; place-items: center; position: relative; }
.ring::after { content: ""; position: absolute; inset: 10px; background: var(--surface); border-radius: 50%; }
.ring span { position: relative; z-index: 1; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.side-card h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.side-card p { margin: 0; color: var(--muted); font-size: 12px; }
.pro-callout { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pro-callout .card-kicker { color: #8fb3e8; }
.pro-callout p { color: rgba(255,255,255,.68); }
.text-link { display: inline-block; margin-top: 13px; font-size: 12px; font-weight: 850; }
.feature-panel { margin-top: 34px; padding-top: 6px; scroll-margin-top: 110px; }
.feature-panel #statsContent, .project-grid { min-height: 80px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats-box { padding: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; }
.stats-box span { color: var(--muted); font-size: 11px; }
.stats-box strong { display: block; margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.project-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.project-card h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.project-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.project-card small { color: var(--navy-2); font-weight: 800; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,27,45,.5); z-index: 100; }
.modal-card { width: min(650px, 100%); max-height: 92vh; overflow: auto; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.modal-small { width: min(480px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field > span { color: #475872; font-size: 11px; font-weight: 850; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--white); color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,.08); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 3px; }

/* Premium */
.premium-page { min-height: 100vh; }
.premium-header { padding: 24px 5vw; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(238,242,247,.9); }
.back-link { color: var(--muted); font-size: 12px; font-weight: 800; }
.premium-main { max-width: 1180px; margin: 0 auto; padding: 54px 5vw 80px; }
.premium-hero { min-height: 540px; display: grid; grid-template-columns: minmax(0,1.2fr) 360px; gap: 60px; align-items: center; }
.premium-copy h1 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(50px, 6vw, 88px); line-height: .98; font-weight: 500; letter-spacing: -.055em; }
.hero-lead { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; }
.premium-price { display: flex; align-items: baseline; gap: 7px; margin: 28px 0 16px; }
.premium-price strong { font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 500; }
.premium-price span { color: var(--muted); }
.current-plan { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.premium-sheet { padding: 24px; background: var(--navy); color: var(--white); border-radius: 20px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.sheet-topline, .sheet-line { display: flex; justify-content: space-between; gap: 20px; }
.sheet-topline { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.16); color: #8fb3e8; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.sheet-line { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.sheet-line.strong { font-size: 17px; font-weight: 800; }
.sheet-note { padding-top: 20px; color: rgba(255,255,255,.62); font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.feature-showcase { padding-top: 74px; }
.showcase-heading { max-width: 700px; }
.showcase-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.feature-list { margin-top: 28px; border-top: 1px solid var(--line); }
.feature-list article { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.feature-list article > span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.feature-list h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.feature-list p { max-width: 670px; margin: 0; color: var(--muted); }
.comparison-block { padding-top: 74px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.plan-card { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.featured-plan { border-color: var(--navy); box-shadow: var(--shadow); }
.featured-ribbon { position: absolute; top: 18px; right: 18px; padding: 5px 7px; border-radius: 5px; background: #dde8fa; color: #1e4d8c; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.plan-name { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.plan-card > strong { display: inline-block; margin-top: 12px; font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; }
.plan-card > small { color: var(--muted); margin-left: 6px; }
.plan-card > p { min-height: 42px; margin: 8px 0 16px; color: var(--muted); }
.plan-lines { display: grid; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.plan-lines span { color: #43536b; font-size: 12px; }
.premium-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.premium-disclaimer code { font-size: 10px; }

/* route */
.route-page { min-height: 100vh; display: grid; place-items: center; background: var(--navy); color: var(--white); }
.route-shell { text-align: center; }
.route-shell .brand-mark { margin: 0 auto 14px; background: var(--white); color: var(--navy); }
.route-shell .eyebrow { color: #8fb3e8; }
.route-shell h1 { margin: 0 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 44px; line-height: 1; font-weight: 500; }
.route-shell .muted { color: rgba(255,255,255,.62); }

@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 16px 0 40px rgba(0,0,0,.12); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid; place-items: center; }
  .workspace-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: repeat(2, 1fr); }
  .premium-hero { grid-template-columns: 1fr; }
  .premium-sheet { max-width: 420px; }
}

@media (max-width: 720px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: 320px; padding: 26px; }
  .auth-intro h1 { font-size: 48px; }
  .auth-panel { padding: 18px; }
  .auth-card { padding: 24px; }
  .topbar { padding: 18px; }
  .dashboard-content { padding: 20px 18px 40px; }
  .top-actions .top-pro-link { display: none; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .task-tools { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .right-column { grid-template-columns: 1fr; }
  .stats-grid, .project-grid, .plan-grid { grid-template-columns: 1fr; }
  .premium-main { padding-top: 32px; }
  .premium-copy h1 { font-size: 56px; }
  .premium-hero { min-height: auto; }
}

@media (max-width: 520px) {
  .summary-strip { grid-template-columns: 1fr; }
  .metric-card, .metric-card:nth-child(2), .metric-card:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .premium-copy h1 { font-size: 46px; }
  .feature-list article { grid-template-columns: 46px 1fr; }
}

/* ===== Responsividade reforçada ===== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(11, 37, 69, .55); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 25; }
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }
.sidebar { height: 100vh; height: 100dvh; overflow-y: auto; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.dashboard-content { max-width: 1480px; }
.topbar > div:nth-of-type(1), .topbar > div:first-of-type { min-width: 0; }
.topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-card:focus-within, .primary-button:focus-visible, .secondary-button:focus-visible, .icon-button:focus-visible, .nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (hover: none) and (pointer: coarse) {
  .icon-button { width: 44px; height: 44px; }
  .task-check { width: 26px; height: 26px; }
  .task-actions button { width: 40px; height: 40px; }
  .nav-link { padding: 13px 10px; }
  .field input, .field textarea, .field select, .select-control, .search-box input { font-size: 16px; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .dashboard-content, .topbar { padding-left: 24px; padding-right: 24px; }
  .search-box { width: 170px; }
}

@media (max-width: 980px) {
  .sidebar { width: min(300px, 86vw); }
  .topbar { justify-content: flex-start; padding: 16px 20px; min-height: 76px; }
  .topbar > div:first-of-type { flex: 1; }
  .top-actions { margin-left: auto; }
  .topbar h1 { font-size: 28px; }
  .dashboard-content { padding: 22px 20px 44px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .premium-sheet { transform: none; }
  .premium-header { padding: 18px 5vw; }
}

@media (max-width: 720px) {
  .auth-layout { min-height: 100vh; min-height: 100dvh; }
  .auth-intro { min-height: auto; gap: 28px; padding: 24px 22px 32px; }
  .auth-intro h1 { font-size: clamp(34px, 10vw, 48px); }
  .auth-intro .intro-copy p:not(.eyebrow) { font-size: 15px; }
  .auth-card h2 { font-size: 30px; }
  .topbar h1 { font-size: 24px; }
  .topbar .eyebrow { margin-bottom: 2px; }
  .top-actions .primary-button { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .section-heading h2 { font-size: 26px; }
  .select-control { width: 100%; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal-card, .modal-small { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 20px 18px max(20px, env(safe-area-inset-bottom)); }
  .form-actions { position: sticky; bottom: 0; background: var(--surface); padding-top: 10px; }
  .form-actions .primary-button, .form-actions .secondary-button { flex: 1; }
  .premium-header { padding: 14px 18px; }
  .premium-main { padding: 28px 18px 60px; }
  .premium-sheet { max-width: none; }
  .feature-showcase, .comparison-block { padding-top: 48px; }
  .feature-list h3 { font-size: 22px; }
  .plan-card { padding: 20px; }
  .auth-foot { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .topbar { padding: 12px 14px; gap: 10px; }
  .dashboard-content { padding: 16px 14px 36px; }
  .metric-card { min-height: 0; padding: 14px 16px; }
  .metric-card strong { font-size: 28px; margin-top: 8px; }
  .task-card { grid-template-columns: auto minmax(0, 1fr); padding: 13px; gap: 10px 12px; }
  .task-actions { grid-column: 2; justify-content: flex-end; }
  .side-card { padding: 16px; }
  .ring { width: 108px; height: 108px; margin: 14px auto; }
  .stats-box strong { font-size: 28px; }
  .premium-copy h1 { font-size: clamp(36px, 11vw, 46px); }
  .premium-price strong { font-size: 32px; }
  .large-button { width: 100%; }
  .feature-list article { gap: 12px; padding: 18px 0; }
}

@media (max-width: 360px) {
  .top-actions .primary-button { padding: 9px 10px; font-size: 12px; }
  .brand { font-size: 15px; }
  .auth-card { padding: 20px 16px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .auth-intro { min-height: 0; padding: 20px 28px; }
  .auth-intro h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Plano, modal Pro, Intelligence e estatísticas ===== */
.modal-text { margin: 4px 0 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.modal-small .form-actions a.primary-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.sidebar-pro .plan-now { display: block; }
.bars { display: grid; gap: 12px; margin-top: 18px; }
.bar-row .bar-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 13px; }
.bar-track { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--navy-2); transition: width .4s ease; }
.stats-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.intel-results { display: grid; gap: 10px; margin-top: 16px; }
.soon-tag { margin-left: 8px; padding: 2px 6px; border-radius: 5px; background: #dde8fa; color: #1e4d8c; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.plan-lines .muted-line { color: var(--muted); font-size: 12px; }
.hidden { display: none !important; }

/* ===== Logotipo ===== */
.brand span img { display: block; width: 76%; height: 76%; object-fit: contain; }
.brand-full { display: inline-block; }
.brand-full img { display: block; width: 168px; height: auto; }
.route-logo { display: block; width: min(220px, 56vw); height: auto; margin: 0 auto 22px; }
@media (max-width: 720px) { .brand-full img { width: 128px; } }
