/* ════════════════════════════════════════════════════════════════
   Clippi — Folha de estilo única
   Tokens · Temas · Portfólio público · Dashboard · Formulários · Landing
   ════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:        #F8F7F4;
  --surface:   #FFFFFF;
  --border:    #E8E4DF;
  --text:      #1A1A1A;
  --muted:     #7A7570;
  --accent:    #7712C6;
  --accent-lt: #F3EAFB;
  --tag-bg:    #E9D9F6;
  --tag-text:  #5D0E9A;
  --sidebar:   #18121F;
  --sidebar-hover:  rgba(255,255,255,0.07);
  --sidebar-active: rgba(119,18,198,0.55);
  --green:     #22C55E;
  --yellow:    #F59E0B;
  --red:       #EF4444;
  --sidebar-w: 220px;
}

/* ── Temas (sobrescrevem só os acentos) ── */
[data-tema="roxo"]  { --accent:#7712C6; --accent-lt:#F3EAFB; --tag-bg:#E9D9F6; --tag-text:#5D0E9A; }
[data-tema="azul"]  { --accent:#2251CC; --accent-lt:#EAF0FD; --tag-bg:#DDE8FB; --tag-text:#1A3E9E; }
[data-tema="verde"] { --accent:#0B9E8E; --accent-lt:#E6F7F5; --tag-bg:#D0F0EC; --tag-text:#076E62; }
[data-tema="cinza"] { --accent:#5C6370; --accent-lt:#F0F1F2; --tag-bg:#E4E6E9; --tag-text:#3A3F47; }

html { scroll-behavior: smooth; font-size: 17px; }
@media (min-width: 1500px) { html { font-size: 18px; } }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}
body.modal-open { overflow: hidden; }

a { color: inherit; }

/* ════════════════════════════════════════════
   NAV (portfólio público + landing)
   ════════════════════════════════════════════ */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--accent); text-decoration: none;
}
.clip-icon { flex-shrink: 0; color: var(--accent); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.28rem;
  color: var(--accent); text-decoration: none; font-weight: 600;
  vertical-align: middle;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.nav-menu-toggle svg { width: 24px; height: 24px; }
.nav-cta { font-size: 0.82rem !important; font-weight: 600 !important; color: var(--accent) !important; border: 1.5px solid var(--accent); padding: 0.4rem 0.9rem; border-radius: 6px; text-transform: none !important; letter-spacing: 0 !important; }
.nav-cta:hover { background: var(--accent-lt); }

/* ════════════════════════════════════════════
   HERO (portfólio)
   ════════════════════════════════════════════ */
.hero { max-width: 1080px; margin: 0 auto; padding: 5rem 2rem 4rem; display: grid; grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; }
.hero-photo { position: relative; }
.hero-photo-placeholder { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-lt), var(--tag-bg)); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: var(--accent); border: 3px solid var(--border); letter-spacing: -0.02em; overflow: hidden; }
.hero-photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.status-badge { position: absolute; bottom: 8px; right: 8px; color: #fff; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 2px solid var(--bg); }
.status-badge.is-disponivel   { background: var(--green); }
.status-badge.is-em_projeto   { background: var(--yellow); }
.status-badge.is-indisponivel { background: var(--red); }
.hero-info { padding-top: 0.25rem; }
.hero-eyebrow { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.hero-name { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--text); margin-bottom: 0.9rem; }
.hero-bio { color: var(--muted); font-size: 0.92rem; line-height: 1.75; max-width: 480px; margin-bottom: 1.8rem; white-space: pre-line; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: var(--accent); color: #fff; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.7rem 1.35rem; border-radius: 6px; text-decoration: none; transition: opacity 0.2s; border: none; cursor: pointer; }
.btn-primary:hover { opacity: 0.88; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; background: transparent; color: var(--accent); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em; padding: 0.7rem 1.35rem; border-radius: 6px; border: 1.5px solid var(--accent); text-decoration: none; transition: background 0.2s; cursor: pointer; }
.btn-ghost:hover { background: var(--accent-lt); }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.82rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.social-link:hover { color: var(--accent); }
.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ════════════════════════════════════════════
   SEÇÕES (portfólio)
   ════════════════════════════════════════════ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.portfolio section { padding: 4rem 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.section-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* PROJETOS */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow 0.22s, transform 0.22s; }
.project-card:hover { box-shadow: 0 8px 28px rgba(119,18,198,0.12); transform: translateY(-2px); }
.project-media { position: relative; width: 100%; padding-top: 62%; background: var(--tag-bg); overflow: hidden; flex-shrink: 0; }
.project-media img, .project-media .media-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.38s ease; }
.project-card:hover .project-media img, .project-card:hover .project-media .media-video-thumb { transform: scale(1.04); }
.project-media-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-lt), var(--tag-bg)); }
.project-media-placeholder span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); opacity: 0.45; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,26,26,0.22); transition: background 0.2s; }
.project-card:hover .play-overlay { background: rgba(26,26,26,0.36); }
.play-btn { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.93); display: flex; align-items: center; justify-content: center; transition: transform 0.2s; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.play-overlay:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 18px; height: 18px; fill: var(--accent); margin-left: 2px; }
.media-badge { position: absolute; top: 0.65rem; left: 0.65rem; background: rgba(255,255,255,0.92); color: var(--tag-text); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; backdrop-filter: blur(4px); }
.project-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.project-title { font-size: 0.98rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.project-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin-bottom: 0.9rem; flex: 1; }
.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-top: auto; }
.project-media-tags { display: flex; gap: 0.3rem; }
.media-tag { display: inline-flex; align-items: center; justify-content: center; background: var(--tag-bg); color: var(--tag-text); padding: 4px; border-radius: 4px; }
.media-tag svg { display: block; }

/* CURRÍCULO */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-period { font-size: 0.72rem; font-weight: 600; color: var(--accent); padding-top: 0.1rem; }
.timeline-role { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; letter-spacing: -0.01em; }
.timeline-org { font-size: 0.84rem; font-weight: 500; color: var(--muted); margin-bottom: 0.5rem; }
.timeline-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.68; }
.cv-subhead { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.5rem 0 0.5rem; }
.cv-subhead:first-child { margin-top: 0; }

/* DEPOIMENTOS */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; }
.testimonial-quote { font-size: 0.95rem; font-style: italic; line-height: 1.75; color: var(--text); margin-bottom: 1.1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-lt); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.testimonial-name { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.testimonial-title { font-size: 0.76rem; color: var(--muted); }

/* FOOTER */
footer.site-footer { border-top: 1px solid var(--border); padding: 2rem; text-align: center; font-size: 0.73rem; color: var(--muted); }
footer.site-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
footer.site-footer .sep { margin: 0 0.4rem; opacity: 0.35; }
.footer-legal { display: block; margin-top: 0.5rem; }
footer.site-footer .footer-legal a { color: #9a9a9a; font-weight: 500; }
footer.site-footer .footer-legal a:hover { color: var(--accent); }
.footer-legal .sep { opacity: 0.3; }

.section-empty { color: var(--muted); font-size: 0.85rem; }

/* ════════════════════════════════════════════
   MODAL DE PROJETO
   ════════════════════════════════════════════ */
.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(15,12,20,0.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border-radius: 14px; width: 100%; max-width: 860px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; transform: translateY(16px) scale(0.98); transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1); box-shadow: 0 32px 80px rgba(0,0,0,0.28); }
.modal-backdrop.is-open .modal { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-category { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tag-text); background: var(--tag-bg); padding: 3px 9px; border-radius: 4px; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background 0.15s, color 0.15s; flex-shrink: 0; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { overflow-y: auto; flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
.modal-media-col { background: #0F0C14; display: flex; flex-direction: column; position: relative; min-height: 320px; }
.modal-gallery { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.modal-gallery-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.modal-gallery-item.active { opacity: 1; pointer-events: auto; }
.modal-gallery-item img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.modal-gallery-item iframe { width: 100%; height: 100%; border: none; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; backdrop-filter: blur(4px); }
.gallery-nav:hover { background: rgba(255,255,255,0.28); }
.gallery-nav.prev { left: 0.75rem; }
.gallery-nav.next { right: 0.75rem; }
.gallery-nav svg { width: 16px; height: 16px; }
.gallery-nav[hidden] { display: none; }
.modal-thumbs { display: flex; gap: 0.5rem; padding: 0.65rem 0.75rem; overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.modal-thumb { width: 52px; height: 38px; border-radius: 4px; overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color 0.15s; position: relative; }
.modal-thumb.active { border-color: var(--accent); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); }
.modal-thumb .thumb-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 1px; }
.modal-info-col { padding: 1.8rem 1.6rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.4rem; }
.modal-title { font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.3; letter-spacing: -0.02em; }
.modal-year { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.3rem; }
.modal-description { font-size: 0.92rem; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.modal-divider { height: 1px; background: var(--border); }
.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; }
.modal-action-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.modal-action-link:last-child { border-bottom: none; }
.modal-action-link:hover { color: var(--tag-text); }
.modal-action-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════ */
.landing-hero { max-width: 880px; margin: 0 auto; padding: 6rem 2rem 4rem; text-align: center; }
.landing-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.landing-title { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 1.3rem; }
.landing-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 540px; margin: 0 auto 2.2rem; }
.landing-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.landing-features { max-width: 1080px; margin: 0 auto; padding: 2rem 2rem 5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; text-align: center; }
.feature-icon { width: 44px; height: 44px; border-radius: 9px; background: var(--accent-lt); display: flex; align-items: center; justify-content: center; color: var(--accent); margin: 0 auto 1rem; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.addr-chip { color: var(--accent); background: var(--accent-lt); padding: 1px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.landing-secondary { margin-top: 0.9rem; }

/* modal: solicitar convite */
.invite-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(15,12,20,0.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.invite-backdrop.open { opacity: 1; visibility: visible; }
.invite-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem; box-shadow: 0 24px 70px rgba(0,0,0,0.28); transform: translateY(12px) scale(0.98); transition: transform 0.28s cubic-bezier(0.34,1.3,0.64,1); }
.invite-backdrop.open .invite-card { transform: translateY(0) scale(1); }
.invite-close-x { position: absolute; top: 1rem; right: 1rem; }

/* ════════════════════════════════════════════
   FORMULÁRIO CENTRADO (login, convite, depoimento)
   ════════════════════════════════════════════ */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2.2rem; box-shadow: 0 10px 36px rgba(0,0,0,0.05); }
.auth-card.wide { max-width: 520px; }
.auth-brand { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: 1.2rem; color: var(--accent); margin-bottom: 1.4rem; justify-content: center; }
.auth-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.3rem; text-align: center; }
.auth-sub { font-size: 0.92rem; color: var(--muted); text-align: center; margin-bottom: 1.6rem; line-height: 1.6; }
.auth-footer { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 1.4rem; }
.auth-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.full-btn { width: 100%; justify-content: center; padding: 0.8rem; font-size: 0.92rem; }

/* ════════════════════════════════════════════
   OFFLINE / 404
   ════════════════════════════════════════════ */
.neutral-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 1.1rem; }
.neutral-screen .clip-big { color: var(--accent); opacity: 0.9; }
.neutral-screen h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.neutral-screen p { font-size: 0.9rem; color: var(--muted); max-width: 360px; }
.neutral-screen a { font-size: 0.8rem; color: var(--accent); text-decoration: none; font-weight: 600; }

/* ════════════════════════════════════════════
   FORM FIELDS (compartilhado)
   ════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field + .field { margin-top: 1rem; }
.field-full { grid-column: 1 / -1; }
label { font-size: 0.8rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.label-hint { font-size: 0.72rem; color: var(--muted); font-weight: 400; margin-left: 0.35rem; }
input[type=text], input[type=url], input[type=email], input[type=password],
textarea, select {
  width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--border); border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--text); background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(119,18,198,0.1); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2rem; }
.select-wrap::after { content: ''; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); pointer-events: none; }

/* alertas/flash */
.alert { padding: 0.7rem 0.9rem; border-radius: 8px; font-size: 0.82rem; margin-bottom: 1rem; }
.alert-sucesso { background: #DCFCE7; color: #15803D; }
.alert-erro    { background: #FEF2F2; color: #B91C1C; }
.alert-aviso   { background: #FEF9C3; color: #92400E; }

/* ════════════════════════════════════════════
   DASHBOARD / SUPERADMIN
   ════════════════════════════════════════════ */
body.app { display: flex; height: 100%; }
html, body.app { height: 100%; }

.sidebar { width: var(--sidebar-w); background: var(--sidebar); display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 0.45rem; padding: 1.4rem 1.2rem 1rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 0.5rem; }
.sidebar-brand span { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sidebar-section { padding: 0.6rem 1rem 0.2rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); }
.sidebar-link { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 1rem; margin: 0 0.5rem; border-radius: 6px; text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.88rem; font-weight: 500; transition: background 0.15s, color 0.15s; cursor: pointer; }
.sidebar-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.8; }
.sidebar-link:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-link.active { background: var(--sidebar-active); color: #fff; }
.sidebar-link.active svg { opacity: 1; }
.sidebar-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.sidebar-bottom { margin-top: auto; padding: 1rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.07); }
.sidebar-user { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.6rem; border-radius: 6px; }
.sidebar-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-name { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.sidebar-user-slug { font-size: 0.65rem; color: rgba(255,255,255,0.35); }
.sidebar-logout { display: block; text-align: center; margin: 0.5rem 0.5rem 0; font-size: 0.72rem; color: rgba(255,255,255,0.4); text-decoration: none; padding: 0.4rem; border-radius: 6px; }
.sidebar-logout:hover { color: #fff; background: var(--sidebar-hover); }

.main { flex: 1; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }
.topbar { min-height: 52px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 1.8rem; flex-shrink: 0; position: sticky; top: 0; z-index: 50; }
.topbar-title { font-size: 0.92rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.topbar-brand { display: none; align-items: center; text-decoration: none; }
.topbar-fixed-title { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.topbar-fixed-title svg { width: 17px; height: 17px; color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.preview-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.15s; }
.preview-link:hover { color: var(--accent); }
.preview-link svg { width: 13px; height: 13px; }
.page-content { padding: 1.8rem; flex: 1; overflow-y: auto; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.8rem; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.page-header p { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; padding: 0.6rem 1.15rem; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; transition: opacity 0.15s, background 0.15s; white-space: nowrap; }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost-sm { background: transparent; color: var(--muted); border: 1px solid var(--border); padding: 0.4rem 0.8rem; font-size: 0.78rem; border-radius: 5px; }
.btn-ghost-sm:hover { color: var(--text); border-color: var(--text); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #FECACA; }
.btn-danger:hover { background: #FEF2F2; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { opacity: 0.88; }

/* stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stat-card-body { min-width: 0; }
.stat-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 23px; height: 23px; }
.stat-icon.c-accent { background: var(--accent-lt); color: var(--accent); }
.stat-icon.c-green  { background: #DCFCE7; color: #15803D; }
.stat-icon.c-blue   { background: #E2ECFF; color: #2251CC; }
.stat-icon.c-amber  { background: #FEF3C7; color: #B45309; }
.stat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.stat-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.stat-sub b { color: var(--green); font-weight: 600; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-yellow { background: #FEF9C3; color: #92400E; }
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-red { background: #FEE2E2; color: #B91C1C; }
.badge-accent { background: var(--accent-lt); color: var(--tag-text); }

/* tabela */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border); background: var(--bg); }
th { padding: 0.7rem 1rem; text-align: left; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
td { padding: 0.9rem 1rem; font-size: 0.86rem; color: var(--text); vertical-align: middle; }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
.td-muted { color: var(--muted); font-size: 0.82rem; }
.project-thumb-sm { width: 48px; height: 36px; border-radius: 4px; object-fit: cover; background: var(--tag-bg); display: block; flex-shrink: 0; }
.project-thumb-placeholder { width: 48px; height: 36px; border-radius: 4px; background: var(--tag-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--tag-text); }
.project-thumb-placeholder svg { width: 16px; height: 16px; }
.td-title { display: flex; align-items: center; gap: 0.75rem; }
.td-title-text { font-weight: 500; color: var(--text); }
.td-title-cat { font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; }
.actions-cell { display: flex; gap: 0.4rem; align-items: center; }
.icon-btn { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all 0.15s; text-decoration: none; }
.icon-btn svg { width: 13px; height: 13px; }
.icon-btn:hover { background: var(--bg); color: var(--text); border-color: var(--text); }
.icon-btn.danger:hover { background: #FEF2F2; color: var(--red); border-color: #FECACA; }
.drag-handle { width: 20px; color: var(--border); cursor: grab; display: flex; align-items: center; justify-content: center; }
.drag-handle svg { width: 14px; height: 14px; }
tr.dragging { opacity: 0.45; }
tr.drag-over { box-shadow: inset 0 2px 0 var(--accent); }

/* form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid.full { grid-template-columns: 1fr; }

/* upload */
.upload-zone { border: 2px dashed var(--border); border-radius: 8px; padding: 2rem 1rem; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; background: var(--bg); }
.upload-zone.dragover, .upload-zone:hover { border-color: var(--accent); background: var(--accent-lt); }
.upload-zone svg { width: 28px; height: 28px; color: var(--muted); margin-bottom: 0.5rem; }
.upload-zone p { font-size: 0.78rem; color: var(--muted); }
.upload-zone p b { color: var(--accent); font-weight: 600; }
.media-grid-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
.media-preview-item { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--tag-bg); }
.media-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
#existingMedia .media-preview-item img, #newImagePreview .media-preview-item img { cursor: pointer; }
.media-preview-item.is-cover img { cursor: crosshair; }
.media-preview-item.is-cover { outline: 3px solid var(--accent); outline-offset: -3px; }
.cover-badge { display: none; position: absolute; top: 4px; left: 4px; background: var(--accent); color: #fff; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; }
.media-preview-item.is-cover .cover-badge { display: inline-block; }
.foco-dot { display: none; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.35); transform: translate(-50%, -50%); pointer-events: none; }
.media-preview-item.is-cover .foco-dot { display: block; }
.foco-hint { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin-top: 0.6rem; }
.media-remove { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; opacity: 0; transition: opacity 0.15s; }
.media-preview-item:hover .media-remove { opacity: 1; }
.video-url-item { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.45rem 0.6rem; margin-top: 0.5rem; }
.video-url-thumb { width: 44px; height: 30px; border-radius: 4px; object-fit: cover; flex-shrink: 0; background: var(--tag-bg); }
.video-url-label { font-size: 0.72rem; color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-url-remove { color: var(--muted); background: none; border: none; cursor: pointer; padding: 2px; }
.video-url-remove svg { width: 12px; height: 12px; }
.file-current { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.file-current a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* status toggle */
.status-toggle { display: flex; gap: 0.5rem; }
.status-opt { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; text-align: center; cursor: pointer; font-size: 0.72rem; font-weight: 600; color: var(--muted); transition: all 0.15s; user-select: none; }
.status-opt:hover { border-color: var(--accent); color: var(--accent); }
.status-opt.active-pub { border-color: var(--green); background: #DCFCE7; color: #15803D; }
.status-opt.active-draft { border-color: var(--yellow); background: #FEF9C3; color: #92400E; }
.status-opt.active-hidden { border-color: var(--border); background: #F3F4F6; color: #6B7280; }

/* perfil */
.profile-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: start; }
.profile-photo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.profile-avatar-lg { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-lt), var(--tag-bg)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: var(--accent); border: 3px solid var(--border); overflow: hidden; }
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-label { font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.form-card-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--text); letter-spacing: -0.01em; }
.form-divider { height: 1px; background: var(--border); margin: 1.4rem 0; }

/* toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; gap: 1rem; }
.toggle-label { font-size: 0.88rem; font-weight: 500; }
.toggle-hint { font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 99px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; left: 3px; top: 3px; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* social rows */
.social-row { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.65rem; }
.social-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-icon svg { width: 14px; height: 14px; color: var(--muted); }

/* cv entries */
.cv-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.cv-entry-body { flex: 1; }
.cv-entry-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.cv-entry-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.cv-entry-actions { display: flex; gap: 0.35rem; flex-shrink: 0; padding-top: 0.1rem; }
.cv-group-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.5rem 0 0.75rem; }
.cv-group-label:first-of-type { margin-top: 0; }

/* depoimentos admin */
.testimonial-entry { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 0.75rem; }
.testimonial-entry-quote { font-size: 0.88rem; font-style: italic; color: var(--text); margin-bottom: 0.6rem; line-height: 1.6; }
.testimonial-entry-author { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.testimonial-entry-name { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.testimonial-entry-role { font-size: 0.76rem; color: var(--muted); }

/* abas */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.tab { padding: 0.6rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count { background: var(--tag-bg); color: var(--tag-text); border-radius: 99px; padding: 0 6px; font-size: 0.62rem; margin-left: 0.3rem; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,12,20,0.5); backdrop-filter: blur(3px); z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; background: var(--surface); z-index: 201; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.34, 1.1, 0.64, 1); box-shadow: -8px 0 32px rgba(0,0,0,0.12); }
.drawer-backdrop.open .drawer { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-title { font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.drawer-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); display: flex; gap: 0.65rem; flex-shrink: 0; }
.close-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.close-btn:hover { background: var(--border); color: var(--text); }
.close-btn svg { width: 13px; height: 13px; }

/* toast */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400; background: var(--text); color: #fff; padding: 0.7rem 1.1rem; border-radius: 8px; font-size: 0.78rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.18); transform: translateY(10px); opacity: 0; transition: all 0.25s ease; pointer-events: none; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 14px; height: 14px; color: var(--green); }
.toast.is-erro svg { color: var(--red); }

/* empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 1rem; opacity: 0.3; }
.empty-state p { font-size: 0.85rem; }

/* theme picker */
.theme-picker { display:flex; gap:1rem; flex-wrap:wrap; margin-top:0.4rem; }
.theme-opt { display:flex; flex-direction:column; align-items:center; gap:0.4rem; cursor:pointer; }
.theme-opt input[type=radio] { display:none; }
.theme-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, transform 0.15s; font-size: 0.7rem; font-weight: 700; color: #fff; }
.theme-opt input:checked + .theme-swatch { border-color: var(--text); transform: scale(1.12); }
.theme-opt input:checked + .theme-swatch::after { content: '✓'; }
.theme-name { font-size:0.63rem; font-weight:600; color:var(--muted); }

/* copy link box */
.copy-box { display: flex; gap: 0.5rem; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 0.4rem 0.5rem 0.4rem 0.8rem; }
.copy-box input { border: none; background: transparent; flex: 1; font-size: 0.78rem; padding: 0; }
.copy-box input:focus { box-shadow: none; }

/* botão de menu (suspenso, mobile) + overlay */
.menu-toggle { display: none; }
.sidebar-overlay { display: none; }
.topbar-left { display: flex; align-items: center; gap: 0.6rem; }

/* ════════════════════════════════════════════
   PÁGINAS DE CONTEÚDO (termos, privacidade, ajuda)
   ════════════════════════════════════════════ */
.legal { padding: 3rem 0 4rem; }
.legal .container { max-width: 760px; }
.legal-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 0.4rem; }
.legal-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; }
.legal p { font-size: 0.95rem; line-height: 1.75; color: #3a3a3a; margin-bottom: 1rem; }
.legal h2 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; margin: 2.2rem 0 0.7rem; color: var(--text); }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal li { font-size: 0.95rem; line-height: 1.7; color: #3a3a3a; margin-bottom: 0.4rem; }
.legal a { color: var(--accent); font-weight: 500; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal em { color: var(--text); font-style: normal; font-weight: 600; }

/* ════════════════════════════════════════════
   BANNER DE COOKIES
   ════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 450;
  max-width: 560px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.16);
  padding: 1rem 1.1rem; display: flex; align-items: center; gap: 1rem;
  transform: translateY(140%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-text { font-size: 0.82rem; color: var(--muted); line-height: 1.55; flex: 1; }
.cookie-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cookie-ok { flex-shrink: 0; }
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .drawer { width: 100%; }
  .landing-features { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-media-col { min-height: 220px; max-height: 280px; }
  .modal-info-col { padding: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* ── Sidebar vira painel deslizante por cima do conteúdo ── */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    height: 100vh; width: 80vw; max-width: 280px;
    z-index: 330;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: 8px 0 32px rgba(0,0,0,0.25);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 325;
    background: rgba(15,12,20,0.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .sidebar-overlay.open { opacity: 1; visibility: visible; }

  /* botão de menu suspenso no topo (esquerda) — só o ícone, sem caixa */
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 38px; flex-shrink: 0;
    border: none; background: transparent;
    color: var(--text); cursor: pointer; padding: 0;
  }
  .menu-toggle:hover { color: var(--accent); }
  .menu-toggle svg { width: 22px; height: 22px; }

  /* no mobile (sem menu lateral): mostra a marca, esconde o título fixo */
  .topbar-brand { display: inline-flex; }
  .topbar-fixed-title { display: none; }

  /* paddings menores para não cortar conteúdo */
  .page-content { padding: 1.1rem; }
  .topbar { padding: 0 1rem; }
  .page-header { margin-bottom: 1.2rem; }
  .landing-hero { padding: 4rem 1.5rem 2.5rem; }
  .landing-features { padding: 1rem 1.5rem 3.5rem; }

  /* abas roláveis horizontalmente */
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; }

  /* botões de cabeçalho ocupam melhor o espaço */
  .page-header .btn { flex: 0 1 auto; }
  .copy-box { flex-wrap: wrap; }

  .profile-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .stat-value { font-size: 1.5rem; }
  /* menu do portfólio: dropdown à direita no mobile (não afeta landing/conteúdo) */
  body.portfolio .nav-menu-toggle { display: inline-flex; }
  body.portfolio .nav-links {
    display: none; position: absolute; top: 56px; right: 1rem;
    flex-direction: column; gap: 0; min-width: 190px; padding: 0.4rem 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.14); z-index: 120;
  }
  body.portfolio .nav-links.open { display: flex; }
  body.portfolio .nav-links li { width: 100%; }
  body.portfolio .nav-links a { display: block; padding: 0.7rem 1.2rem; font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: var(--text); }
  body.portfolio .nav-links a:hover { background: var(--bg); color: var(--accent); }

  .hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-photo { display: flex; justify-content: center; }
  .hero-photo-placeholder { width: 140px; height: 140px; font-size: 1.6rem; }
  .status-badge { right: calc(50% - 70px + 8px); }
  .hero-bio { margin: 0 auto 1.8rem; }
  .hero-actions, .social-links { justify-content: center; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.2rem; }
}
