/* ============================================================
   STYLE.CSS — Estilos globais do site + painel admin
   4 temas via CSS Custom Properties + classes no <body>
   ============================================================ */

/* ---------- 01. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; transition: background .4s, color .4s; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.2; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 02. TEMAS (VARIÁVEIS) ---------- */
/* Tema 1 — Dark Padrão */
body.theme-dark {
  --bg: #050505; --surface: rgba(255,255,255,.05); --surface-2: rgba(255,255,255,.09);
  --field-bg: rgba(255,255,255,.06); --border: rgba(255,255,255,.12);
  --text: #ffffff; --muted: #a1a1aa;
  --accent: #8b5cf6; --accent-2: #ec4899; --accent-soft: rgba(139,92,246,.35);
  --nav-bg: rgba(5,5,5,.65); --shadow: 0 18px 50px rgba(0,0,0,.55);
  --success: #22c55e; --danger: #ef4444; --warn: #f59e0b;
}
/* Tema 2 — Light Clean */
body.theme-light {
  --bg: #f5f5f5; --surface: rgba(255,255,255,.8); --surface-2: rgba(255,255,255,.95);
  --field-bg: #ffffff; --border: rgba(0,0,0,.09);
  --text: #17171b; --muted: #5a5a66;
  --accent: #6d28d9; --accent-2: #db2777; --accent-soft: rgba(109,40,217,.25);
  --nav-bg: rgba(245,245,245,.8); --shadow: 0 12px 32px rgba(0,0,0,.09);
  --success: #16a34a; --danger: #dc2626; --warn: #d97706;
}
/* Tema 3 — Cyberpunk (neon roxo + ciano) */
body.theme-cyberpunk {
  --bg: #09090b; --surface: rgba(168,85,247,.06); --surface-2: rgba(6,182,212,.08);
  --field-bg: rgba(255,255,255,.05); --border: rgba(168,85,247,.35);
  --text: #f4f4f5; --muted: #9d9daa;
  --accent: #a855f7; --accent-2: #06b6d4; --accent-soft: rgba(168,85,247,.4);
  --nav-bg: rgba(9,9,11,.7); --shadow: 0 0 34px rgba(168,85,247,.25);
  --success: #22d3ee; --danger: #f43f5e; --warn: #facc15;
}
/* Tema 4 — Ocean (azul + verde) */
body.theme-ocean {
  --bg: #0f172a; --surface: rgba(56,189,248,.07); --surface-2: rgba(16,185,129,.08);
  --field-bg: rgba(255,255,255,.06); --border: rgba(56,189,248,.28);
  --text: #e2e8f0; --muted: #94a3b8;
  --accent: #38bdf8; --accent-2: #10b981; --accent-soft: rgba(56,189,248,.35);
  --nav-bg: rgba(15,23,42,.72); --shadow: 0 18px 44px rgba(2,6,23,.6);
  --success: #10b981; --danger: #f87171; --warn: #fbbf24;
}

/* ---------- 03. UTILITÁRIOS ---------- */
.container { width: min(1140px, 92%); margin-inline: auto; }
.container--narrow { width: min(780px, 92%); }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hint { font-size: .82rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; font-size: .74rem; font-weight: 600; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.badge--type { color: var(--accent); border-color: var(--accent-soft); }
.badge--star { color: var(--warn); border-color: var(--warn); }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 2000; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.noscript-box { position: fixed; inset: auto 0 0 0; padding: 14px; text-align: center; background: var(--danger); color: #fff; z-index: 3000; }

/* ---------- 04. BOTÕES & INPUTS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; user-select: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 24px var(--accent-soft); }
.btn--primary:hover { box-shadow: 0 12px 32px var(--accent-soft); }
.btn--ghost { border-color: var(--border); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--soft { background: var(--accent-soft); color: var(--text); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 14px; font-size: .84rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 1.05rem; transition: border-color .18s, transform .18s; }
.icon-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.input { width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--field-bg); border: 1px solid var(--border); color: var(--text); transition: border-color .18s, box-shadow .18s; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--muted); opacity: .7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--bg); color: var(--text); }
.textarea { resize: vertical; min-height: 80px; }
.input--emoji { width: 74px; text-align: center; font-size: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field--full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1; min-width: 160px; }
.file-label { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px dashed var(--accent-soft); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: border-color .18s, background .18s; }
.file-label:hover { border-color: var(--accent); background: var(--surface-2); }
.upload-preview img { margin-top: 10px; max-height: 150px; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; }
/* Switch (interruptor) */
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: .92rem; font-weight: 500; }
.switch { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(20px); background: #fff; }

/* ---------- 05. TOASTS ---------- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 86vw); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: .9rem; animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2) both; border-left: 4px solid var(--accent); }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--warn { border-left-color: var(--warn); }
.toast.is-leaving { animation: toastOut .25s forwards; }

/* ---------- 06. CURSOR CUSTOMIZADO ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); opacity: .5; filter: blur(16px); pointer-events: none; z-index: 4000; transition: width .2s, height .2s, opacity .2s; will-change: transform; }
.cursor-glow.is-hover { width: 60px; height: 60px; opacity: .7; }

/* ---------- 07. NAVBAR ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.12rem; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); animation: pulseDot 2.4s infinite; }
.nav-links { display: flex; gap: 4px; }
.nav-link { position: relative; padding: 8px 12px; font-size: .92rem; font-weight: 500; color: var(--muted); border-radius: 10px; transition: color .18s; }
.nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 68px; left: 0; right: 0; z-index: 890; display: flex; flex-direction: column; padding: 14px 5%; gap: 4px; background: var(--nav-bg); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); animation: fadeDown .25s both; }
.mobile-menu .nav-link { padding: 12px; font-size: 1rem; }

/* ---------- 08. HERO ---------- */
.hero { position: relative; padding: 170px 0 90px; text-align: center; overflow: hidden; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; pointer-events: none; animation: floatOrb 12s ease-in-out infinite; }
.orb--1 { width: 380px; height: 380px; top: -80px; left: -100px; background: var(--accent); }
.orb--2 { width: 320px; height: 320px; bottom: -60px; right: -80px; background: var(--accent-2); animation-delay: -4s; }
.orb--3 { width: 220px; height: 220px; top: 40%; left: 55%; background: var(--accent); opacity: .18; animation-delay: -8s; }
.status-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); font-size: .88rem; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulseDot 1.8s infinite; }
.status-badge.is-closed .status-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; min-height: 1.2em; background: linear-gradient(120deg, var(--text) 30%, var(--accent) 70%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.theme-cyberpunk .hero-title { filter: drop-shadow(0 0 22px var(--accent-soft)); }
.type-caret { display: inline-block; width: 4px; height: .95em; margin-left: 6px; vertical-align: text-bottom; background: var(--accent); -webkit-text-fill-color: initial; animation: blinkCaret 1s steps(1) infinite; border-radius: 2px; }
.hero-roles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.role-chip { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .9rem; }
.hero-bio { max-width: 620px; color: var(--muted); font-size: 1.02rem; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(150px, 200px)); gap: 16px; margin-top: 22px; }
.stat-mini { padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat-number { font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; font-weight: 700; color: var(--accent); }
.stat-number--text { font-size: 1.25rem; }
.stat-label { font-size: .8rem; color: var(--muted); }

/* ---------- 09. SEÇÕES ---------- */
.section { padding: 84px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 700; color: var(--accent); }

/* ---------- 10. SERVIÇOS ---------- */
.service-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: transform .22s, border-color .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; font-size: 1.7rem; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--border); }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--muted); font-size: .93rem; }

/* ---------- 11. PORTFÓLIO ---------- */
.portfolio-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.search-box { display: flex; align-items: center; gap: 10px; padding: 4px 16px; flex: 1; min-width: 220px; border-radius: 999px; }
.search-box input { flex: 1; padding: 10px 0; background: none; border: none; outline: none; color: var(--text); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; font-weight: 600; color: var(--muted); transition: all .18s; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.result-count { font-size: .82rem; color: var(--muted); margin-left: auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; backdrop-filter: blur(12px); transition: transform .22s, border-color .22s, box-shadow .22s; animation: fadeUp .5s both; }
.work-card:hover, .work-card:focus-visible { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.work-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .4s; }
.work-thumb.is-loaded .thumb-img { opacity: 1; }
.work-card:hover .thumb-img { transform: scale(1.06); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--accent-soft), transparent); }
.work-type { position: absolute; top: 10px; right: 10px; padding: 4px 10px; font-size: .72rem; font-weight: 700; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; backdrop-filter: blur(6px); }
.work-featured { position: absolute; top: 10px; left: 10px; font-size: 1rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.work-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.work-cat { font-size: .74rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.work-title { font-size: 1.06rem; }
.work-desc { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Skeleton com pulsação enquanto a imagem carrega */
.skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, var(--surface-2) 40%, var(--border) 50%, var(--surface-2) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty-emoji { font-size: 2.6rem; }
.empty-state p { color: var(--muted); font-size: .92rem; }

/* ---------- 12. CALCULADORA ---------- */
.calc-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding: 32px; }
.calc-items { display: flex; flex-direction: column; gap: 20px; }
.calc-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.calc-item-info { display: flex; align-items: center; gap: 12px; }
.calc-item-icon { font-size: 1.6rem; }
.calc-item-info small { display: block; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 8px; }
.step-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 1.2rem; font-weight: 700; transition: border-color .15s, transform .15s; }
.step-btn:hover { border-color: var(--accent); transform: scale(1.06); }
.qty-input { width: 64px; text-align: center; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--field-bg); color: var(--text); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-summary { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.calc-row { display: flex; justify-content: space-between; gap: 10px; font-size: .94rem; }
.calc-row.is-discount strong { color: var(--success); }
.calc-row.is-urgent strong { color: var(--warn); }
.calc-row.is-total { padding-top: 12px; border-top: 1px solid var(--border); font-size: 1.15rem; }
.calc-row.is-total strong { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; color: var(--accent); }

/* ---------- 13. PREÇOS ---------- */
.price-card { position: relative; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; text-align: center; transition: transform .22s, border-color .22s, box-shadow .22s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.is-popular { border-color: var(--accent); box-shadow: 0 0 30px var(--accent-soft); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.price-emoji { font-size: 2.2rem; }
.price-value strong { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; color: var(--accent); }
.price-value small { color: var(--muted); }
.price-list { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); text-align: left; margin-bottom: 6px; }

/* ---------- 14. FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); backdrop-filter: blur(10px); overflow: hidden; transition: border-color .2s; }
.faq-item.is-open { border-color: var(--accent); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; text-align: left; font-size: .98rem; }
.faq-question .faq-arrow { transition: transform .3s; color: var(--accent); flex-shrink: 0; }
.faq-item.is-open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 20px 18px; color: var(--muted); font-size: .92rem; }

/* ---------- 15. CONTATO ---------- */
.contact-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.contact-emoji { font-size: 2rem; }
.contact-value { font-weight: 700; font-family: "Space Grotesk", sans-serif; word-break: break-all; color: var(--accent); }
.qr-box { padding: 12px; background: #ffffff; border-radius: 14px; border: 1px solid var(--border); }
.qr-box img { width: 180px; height: 180px; }

/* ---------- 16. FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 0; background: var(--surface); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 34px; }
.footer-bio { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 320px; }
.footer h4 { margin-bottom: 12px; font-size: .95rem; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: .9rem; transition: color .18s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding: 18px 0; border-top: 1px solid var(--border); font-size: .84rem; color: var(--muted); text-align: center; }

/* ---------- 17. FLUTUANTES (TEMA / TOPO) ---------- */
.floating-controls { position: fixed; right: 18px; bottom: 18px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { width: 52px; height: 52px; border-radius: 50%; font-size: 1.3rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 26px var(--accent-soft); transition: transform .18s; }
.fab:hover { transform: scale(1.1) rotate(8deg); }
.theme-panel { display: flex; flex-direction: column; gap: 4px; padding: 10px; animation: fadeUp .22s both; }
.theme-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; transition: background .15s; text-align: left; }
.theme-option:hover { background: var(--surface-2); }
.theme-option.is-active { background: var(--accent-soft); }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; }
.swatch--dark { background: #050505; }
.swatch--light { background: #f5f5f5; }
.swatch--cyber { background: linear-gradient(135deg, #a855f7, #06b6d4); }
.swatch--ocean { background: linear-gradient(135deg, #38bdf8, #10b981); }

/* ---------- 18. LIGHTBOX & MODAIS ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); }
.lightbox-dialog { position: relative; z-index: 2; width: min(920px, 94vw); max-height: 90vh; overflow-y: auto; padding: 20px; animation: popIn .3s cubic-bezier(.2,.9,.3,1.15) both; background: var(--bg); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 1rem; }
.lightbox-close:hover { border-color: var(--danger); color: var(--danger); }
.lightbox-media { border-radius: 14px; overflow: hidden; background: #000; }
.lightbox-media iframe, .lightbox-media video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.lightbox-media img { width: 100%; max-height: 66vh; object-fit: contain; background: #000; }
.lightbox-info { padding: 16px 6px 6px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lightbox-info p { color: var(--muted); font-size: .92rem; }
.confirm-dialog { position: relative; z-index: 2; width: min(420px, 92vw); padding: 26px; display: flex; flex-direction: column; gap: 18px; animation: popIn .25s both; background: var(--bg); }
.confirm-dialog p { font-weight: 600; }

/* ---------- 19. ADMIN: LOGIN ---------- */
.admin-body { min-height: 100vh; }
.login-screen { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.login-card { position: relative; z-index: 2; width: min(400px, 94vw); padding: 36px 30px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.login-card h1 { font-size: 1.5rem; }
.login-card .field { text-align: left; }
.login-logo { width: 66px; height: 66px; margin: 0 auto; display: grid; place-items: center; font-size: 1.8rem; border-radius: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px var(--accent-soft); }
.login-error { color: var(--danger); font-size: .88rem; font-weight: 600; }
.login-back { font-size: .86rem; color: var(--muted); }
.login-back:hover { color: var(--accent); }
.shake { animation: shake .4s; }

/* ---------- 20. ADMIN: LAYOUT ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; border-radius: 0; border-left: 0; border-top: 0; border-bottom: 0; }
.sidebar-brand { padding: 4px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: .92rem; font-weight: 600; color: var(--muted); text-align: left; transition: background .15s, color .15s; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.sidebar-footer { display: flex; flex-direction: column; gap: 8px; }
.admin-main { padding: 22px clamp(16px, 3vw, 36px) 60px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.admin-topbar { position: sticky; top: 12px; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; }
.admin-topbar h2 { font-size: 1.15rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.tab-section { display: flex; flex-direction: column; gap: 20px; animation: fadeUp .3s both; }
.panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.panel-head small { color: var(--muted); }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 21. ADMIN: DASHBOARD ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-card-icon { font-size: 1.4rem; }
.stat-card strong { font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; color: var(--accent); }
.stat-card small { color: var(--muted); font-size: .8rem; }
.storage-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--border); }
.storage-bar span { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.recent-item small { display: block; color: var(--muted); }

/* ---------- 22. ADMIN: LISTA DE TRABALHOS (DRAG & DROP) ---------- */
.works-list { display: flex; flex-direction: column; gap: 10px; }
.work-item { display: grid; grid-template-columns: auto 64px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .15s, opacity .15s, transform .15s; }
.work-item.dragging { opacity: .35; border-style: dashed; }
.work-item.drag-over { border-color: var(--accent); transform: scale(1.01); box-shadow: 0 0 0 3px var(--accent-soft); }
.drag-handle { cursor: grab; font-size: 1.2rem; color: var(--muted); padding: 6px; user-select: none; }
.drag-handle:active { cursor: grabbing; }
.work-item-thumb { width: 64px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--surface); display: grid; place-items: center; font-size: 1.3rem; border: 1px solid var(--border); }
.work-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-item-info { min-width: 0; }
.work-item-info strong { display: block; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-item-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.work-item-actions { display: flex; gap: 6px; }
.work-item-actions .icon-btn { width: 34px; height: 34px; font-size: .85rem; border-radius: 10px; }

/* ---------- 23. ADMIN: CATEGORIAS / FAQ ---------- */
.cat-list, .faq-admin-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.cat-emoji { font-size: 1.3rem; }
.cat-name { font-weight: 600; flex: 1; }
.faq-admin-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.faq-admin-item .faq-admin-text { flex: 1; min-width: 0; }
.faq-admin-item strong { font-size: .92rem; display: block; }
.faq-admin-item p { font-size: .82rem; color: var(--muted); margin-top: 3px; }

/* ---------- 24. ADMIN: PUBLICAR ---------- */
.publish-guide { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: decimal; font-size: .9rem; color: var(--muted); }
.publish-guide li::marker { color: var(--accent); font-weight: 700; }
.publish-guide code { padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: .82rem; color: var(--accent); }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.sync-pill--ok { color: var(--success); border-color: var(--success); }
.sync-pill--busy { color: var(--warn); border-color: var(--warn); animation: pulseDot 1.2s infinite; }
.sync-pill--err { color: var(--danger); border-color: var(--danger); }

/* ---------- 25. SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- 26. KEYFRAMES ---------- */
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes blinkCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }
@keyframes floatOrb { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -30px) scale(1.08); } 66% { transform: translate(-24px, 22px) scale(.94); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }

/* ---------- 27. RESPONSIVIDADE ---------- */
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--border); }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .side-link { white-space: nowrap; }
  .sidebar-footer { flex-direction: row; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .calc-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding-top: 140px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .result-count { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
  .work-item { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
  .work-item-thumb { display: none; }
  .work-item-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .floating-controls { right: 12px; bottom: 12px; }
  .fab { width: 46px; height: 46px; font-size: 1.1rem; }
  .admin-topbar { flex-wrap: wrap; }
}

/* ---------- 28. ACESSIBILIDADE / MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none; }
  .reveal { opacity: 1; transform: none; }
}
@media (pointer: coarse) { .cursor-glow { display: none; } }
