:root {
  --bg: #000000;
  --panel: #111111;
  --panel-2: #1a1a1a;
  --border: #262626;
  --text: #f0f0f0;
  --muted: #888888;
  --accent: #ffffff;
  --accent-2: #c8cdd6;
  --ok: #36c98a;
  --danger: #ff5d6c;
  --sidebar-w: 240px;
  --sidebar-bg: #000000;
  --sidebar-text: #f0f0f0;
  --sidebar-border: #262626;
}

body.light-mode {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #eef0f4;
  --border: #d8dde6;
  --text: #1a1d24;
  --muted: #5a6377;
  --accent: #1a1d24;
  --accent-2: #3a4253;
  --ok: #1a9d6b;
  --danger: #d63a4a;
  --sidebar-bg: #ffffff;
  --sidebar-text: #1a1d24;
  --sidebar-border: #d8dde6;
}
body.light-mode .topbar { background: rgba(255,255,255,0.85); }
body.light-mode .preview-canvas { background: repeating-conic-gradient(#e9ecf1 0% 25%, #f5f6f8 0% 50%) 50% / 20px 20px; }
body.light-mode * { scrollbar-color: #c0c6d2 transparent; }
body.light-mode ::-webkit-scrollbar-thumb { background: #c0c6d2; }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: #a8aebc; }

/* === Light mode: titulos com gradient (override geral) === */
body.light-mode .hero-text h1,
body.light-mode .hero h1,
body.light-mode .sidebar .brand-text .b1,
body.light-mode .gal-hero-text h1,
body.light-mode .pd-title,
body.light-mode .my-header-text h1,
body.light-mode .share-header h1,
body.light-mode .cb-header h1,
body.light-mode .up-hero h1,
body.light-mode .cfg-header h1,
body.light-mode .land-title,
body.light-mode .land-title-2,
body.light-mode .gen-hero h1 {
  background: linear-gradient(135deg, #0a0a0a 0%, #2a2e36 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Land-title (sem .land-title-2) usa cor sólida no light mode pra contraste maximo */
body.light-mode .land-title { color: #0a0a0a; -webkit-text-fill-color: initial; background: none; }

body.light-mode .sidebar .brand-text .b2 { color: #1a1d24; }
body.light-mode .sidebar .nav-section .icon-circle.blue { background: rgba(26,29,36,0.08); color: #1a1d24; }
body.light-mode .tool-card .icon-box.blue { background: rgba(26,29,36,0.08); color: #1a1d24; }
body.light-mode button.primary { color: #ffffff; }
body.light-mode .seg button.active { color: #ffffff; }

/* Hero badges no light mode (pill que estava clarinho demais) */
body.light-mode .hero-badge,
body.light-mode .land-pill {
  background: rgba(0,0,0,0.06);
  color: #1a1d24;
  border-color: rgba(0,0,0,0.12);
}

/* Section titles e textos auxiliares no light mode */
body.light-mode .section-title { color: #5a6377; }
body.light-mode .land-section-head h2,
body.light-mode .land-tools-grid .land-tool { color: #1a1d24; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* === SCROLLBAR (cinza fino, padronizado) === */
* { scrollbar-width: thin; scrollbar-color: #2a3140 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #2a3140; border-radius: 5px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #3a4253; background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

/* === TOPBAR === */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,17,21,0.85); backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 40;
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  flex: 1; max-width: 480px;
  transition: border-color .15s, background .15s;
}
.search-box:focus-within { border-color: var(--accent-2); background: var(--panel-2); }
.search-box svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; stroke-width: 2; }
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; padding: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box kbd {
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 11px; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 6px;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(54,201,138,0.08); border: 1px solid rgba(54,201,138,0.2);
}
.topbar-status .status-dot-online {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px rgba(54,201,138,0.6);
}
.topbar-btn {
  background: transparent; border: none; color: var(--muted);
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
  position: relative;
}
.topbar-btn:hover { background: var(--panel); color: var(--text); }
.topbar-btn svg { width: 18px; height: 18px; }
.topbar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #4a4f5a 0%, #2a2e36 100%);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* === HERO CARD === */
.hero-card {
  margin: 24px 36px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--panel) 0%, rgba(255,255,255,0.04) 60%, var(--panel) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-left { display: flex; align-items: center; gap: 20px; flex: 1; min-width: 0; position: relative; }
.hero-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg);
  color: var(--accent-2); font-weight: 800; font-size: 22px;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  overflow: hidden;
}
.hero-avatar img {
  width: 70%; height: 70%; object-fit: contain; display: block;
  filter: brightness(1.1);
}
/* Logo no modo claro: inverte cor pra preto */
body.light-mode .hero-avatar img,
body.light-mode .topbar-logo {
  filter: brightness(0);
}
.hero-text h1 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  margin: 6px 0 12px; color: var(--muted); font-size: 14px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08); color: var(--accent-2);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-icon-box {
  width: 96px; height: 96px; border-radius: 18px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent-2);
  position: relative;
}
.hero-icon-box svg { width: 44px; height: 44px; stroke-width: 1.6; }

@media (max-width: 768px) {
  .topbar { padding: 12px 16px; gap: 8px; }
  .search-box kbd { display: none; }
  .topbar-status { display: none; }
  .hero-card { margin: 16px; padding: 20px; flex-direction: column; align-items: flex-start; }
  .hero-icon-box { width: 64px; height: 64px; }
  .hero-icon-box svg { width: 28px; height: 28px; }
}

/* === SIDEBAR === */
/* Sidebar sempre dark (design consistente com a brand "preta"). */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width .2s;
}
body.sidebar-collapsed { --sidebar-w: 70px; }

.sidebar .sidebar-header {
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.sidebar .brand-text {
  font-family: 'Inter', system-ui, sans-serif;
  display: flex; align-items: baseline; gap: 5px; line-height: 1; user-select: none;
  font-size: 16px; font-weight: 800;
}
.sidebar .brand-text .b1 {
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffffff 0%, #b8bfca 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sidebar .brand-text .b-amp {
  font-weight: 300; font-style: italic; color: #6c7589;
}
.sidebar .brand-text .b2 {
  letter-spacing: 0.14em;
  color: #ffffff;
}
.sidebar .toggle-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; width: 32px; height: 32px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar .toggle-btn:hover { color: var(--text); border-color: var(--accent-2); }
.sidebar .toggle-btn svg { width: 16px; height: 16px; }

.sidebar nav { padding: 8px 0; flex: 1; }

/* Section header (clickable accordion) */
.sidebar .nav-section {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; cursor: pointer;
  background: none; border: none; width: 100%;
  text-align: left; color: var(--text);
  transition: background .15s;
  position: relative;
}
.sidebar .nav-section:hover { background: var(--panel-2); }
.sidebar .nav-section .icon-circle {
  width: 22px; height: 22px;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: var(--text);
}
.sidebar .nav-section .icon-circle svg { width: 18px; height: 18px; stroke-width: 1.8; }
.sidebar .nav-section .icon-circle.blue { background: transparent; color: #ffffff; }
.sidebar .nav-section .icon-circle.green { background: transparent; color: #36c98a; }
.sidebar .nav-section .icon-circle.purple { background: transparent; color: #a78bfa; }
.sidebar .nav-section .icon-circle.orange { background: transparent; color: #ffb84d; }
.sidebar .nav-section .icon-circle.pink { background: transparent; color: #ff8094; }
.sidebar .nav-section .icon-circle.gray { background: transparent; color: var(--muted); }
.sidebar .nav-section .label {
  flex: 1; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--text);
}
.sidebar .nav-section .chevron {
  color: var(--muted); transition: transform .2s;
  display: flex; align-items: center;
}
.sidebar .nav-section .chevron svg { width: 16px; height: 16px; }
.sidebar .nav-section[aria-expanded="true"] .chevron { transform: rotate(90deg); }

/* Items inside section */
.sidebar .nav-items {
  overflow: hidden;
  max-height: 1000px;
  transition: max-height .25s ease;
}
.sidebar .nav-items.collapsed { max-height: 0; }
.sidebar .nav-items a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 28px;
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: all .15s;
  border-left: 3px solid transparent;
  margin-left: 25px;
}
.sidebar .nav-items a:hover {
  background: var(--panel-2);
  color: var(--text);
  border-left-color: var(--accent-2);
}
.sidebar .nav-items a.active {
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-left-color: var(--accent);
  color: var(--accent-2);
  font-weight: 600;
}
.sidebar .nav-items a.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.sidebar .nav-items a .icon { display: flex; align-items: center; justify-content: center; width: 18px; flex-shrink: 0; }
.sidebar .nav-items a .icon svg { width: 16px; height: 16px; stroke-width: 2; }
/* Garante que o label do nav item fica em UMA linha (sem quebrar quando tem badge ao lado) */
.sidebar .nav-items a > span:not(.icon):not(.badge):not(.badge-soon):not(.badge-new) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.sidebar .nav-items a .badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 8px; padding: 1px 5px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 700;
}
.sidebar .nav-items a .badge-soon {
  background: rgba(255,184,77,0.14); border-color: rgba(255,184,77,0.3);
  color: #ffb84d;
}
.sidebar .nav-items a .badge-new {
  background: rgba(54,201,138,0.14); border-color: rgba(54,201,138,0.3);
  color: var(--ok);
}

/* Footer */
.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.sidebar-footer .footer-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; cursor: pointer;
  background: none; border: none; width: 100%;
  text-align: left; color: var(--text);
  text-decoration: none;
  font-size: 13px; transition: background .15s;
}
.sidebar-footer .footer-item:hover { background: var(--panel-2); }
.sidebar-footer .footer-item .icon-circle {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--panel-2);
  color: var(--muted);
}
.sidebar-footer .footer-item .icon-circle.user-avatar {
  background: linear-gradient(135deg, #4a4f5a 0%, #2a2e36 100%);
  color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0;
}
.sidebar-footer .footer-item .icon-circle svg { width: 16px; height: 16px; }
.sidebar-footer .footer-item .info { flex: 1; min-width: 0; }
.sidebar-footer .footer-item .info .title { font-weight: 600; font-size: 13px; }
.sidebar-footer .footer-item .info .sub { font-size: 11px; color: var(--muted); }

/* Collapsed state */
body.sidebar-collapsed .sidebar .brand-text,
body.sidebar-collapsed .sidebar .nav-section .label,
body.sidebar-collapsed .sidebar .nav-section .chevron,
body.sidebar-collapsed .sidebar .nav-items,
body.sidebar-collapsed .sidebar-footer .footer-item .info { display: none !important; }
body.sidebar-collapsed .sidebar .sidebar-header { padding: 18px 12px; justify-content: center; }
body.sidebar-collapsed .sidebar .nav-section { padding: 10px 12px; justify-content: center; }
body.sidebar-collapsed .sidebar-footer .footer-item { padding: 10px 12px; justify-content: center; }

/* === MAIN === */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-header {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 100%);
}
.page-header h1 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 24px; font-weight: 700;
}
.page-header p {
  margin: 6px 0 0; color: var(--muted); font-size: 14px;
}

/* === LAYOUT (controls + preview) === */
.layout {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px;
  padding: 24px 36px; flex: 1;
}

/* === PANEL === */
.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
}
.panel h2 {
  margin: 0 0 14px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); font-weight: 600;
}
.panel .info-box {
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.panel .info-box strong { color: var(--text); }

/* === DROP ZONE === */
.drop {
  display: block; width: 100%;
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 22px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--panel-2); }
.drop p { margin: 4px 0; }
.drop .hint { color: var(--muted); font-size: 12px; }

/* === ROWS / SLIDERS === */
.row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.row label { flex: 0 0 90px; color: var(--muted); font-size: 13px; }
.row input[type="range"] { flex: 1; }
.row .val { flex: 0 0 50px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }

/* === POSITION GRID === */
.pos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 100%; max-width: 180px; margin: 8px 0;
}
.pos-grid button {
  aspect-ratio: 1; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; color: transparent;
  transition: all .12s;
}
.pos-grid button:hover { border-color: var(--accent-2); }
.pos-grid button.active {
  background: var(--accent); border-color: var(--accent);
}

/* === SEGMENTED CONTROL === */
.seg {
  display: grid; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; margin-bottom: 14px;
}
.seg.cols-2 { grid-template-columns: 1fr 1fr; }
.seg.cols-3 { grid-template-columns: repeat(3, 1fr); }
.seg button {
  background: transparent; color: var(--muted); border: none;
  padding: 8px; border-radius: 6px; cursor: pointer;
  font-size: 13px; font-weight: 500;
}
.seg button.active { background: var(--accent); color: var(--bg); }

/* === PREVIEW === */
.preview-wrap {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; min-height: 400px;
  display: flex; flex-direction: column;
}
.preview-canvas {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#1a1f29 0% 25%, #141821 0% 50%) 50% / 20px 20px;
  border-radius: 8px; overflow: hidden; min-height: 360px;
  position: relative;
}
.preview-canvas canvas, .preview-canvas img { max-width: 100%; max-height: 70vh; display: block; }
.preview-canvas .empty { color: var(--muted); font-size: 14px; text-align: center; padding: 40px; }

/* === FILE LIST === */
.file-list {
  margin-top: 10px; max-height: 140px; overflow-y: auto; overflow-x: hidden;
  font-size: 13px; color: var(--muted);
}
.file-list .item {
  padding: 4px 8px; border-radius: 4px; display: flex;
  justify-content: space-between; align-items: center; gap: 8px;
  cursor: pointer; min-width: 0;
}
.file-list .item:hover, .file-list .item.active { background: var(--panel-2); color: var(--text); }
.file-list .item.active { color: var(--accent-2); }
.file-list .item .actions { display: flex; gap: 4px; align-items: center; }
.file-list .item .dl {
  background: none; border: none; cursor: pointer;
  padding: 2px 4px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 16px;
}
.file-list .item .dl svg { width: 14px; height: 14px; }
.file-list .item .dl:hover { color: var(--ok); }
.file-list .item .status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); margin-right: 6px;
}
.file-list .item .status-dot.processing { background: var(--accent); animation: pulse 1.2s infinite; }
.file-list .item .status-dot.done { background: var(--ok); }
.file-list .item .status-dot.error { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* === LOGO PREVIEW === */
.logo-preview {
  margin-top: 10px; padding: 8px; background: var(--panel-2);
  border-radius: 6px; display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.logo-preview img { max-width: 60px; max-height: 40px; background: #fff3; border-radius: 4px; padding: 2px; }
.logo-preview > span,
.file-list .item > span:not(.actions) {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.logo-preview .logo-remove,
.file-list .item .x {
  flex-shrink: 0; width: 24px; height: 24px;
  border: none; background: rgba(255,255,255,0.06);
  color: var(--muted); border-radius: 50%;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.logo-preview .logo-remove:hover,
.file-list .item .x:hover { background: rgba(255,93,108,0.18); color: var(--danger); }

/* === ACTIONS === */
.actions {
  padding: 18px 36px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; align-items: center;
  background: var(--panel);
}
button.primary {
  background: var(--accent); color: var(--bg); border: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
  cursor: pointer; font-size: 14px;
}
button.primary:hover:not(:disabled) { background: var(--accent-2); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
button.ghost:hover { border-color: var(--accent); }
.progress { flex: 1; height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.status { color: var(--muted); font-size: 13px; }
.status.ok { color: var(--ok); }
.status.warn { color: #ffb84d; }

/* === INPUTS === */
input[type="file"] { display: none; }
select, input[type="number"], input[type="text"] {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  padding: 6px 10px; border-radius: 6px; font-size: 13px;
}

/* === HOMEPAGE TOOL GRID === */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; padding: 28px 36px;
}
.tool-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; text-decoration: none; color: var(--text);
  transition: all .18s; display: flex; flex-direction: column; min-height: 180px;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, var(--bg) 100%);
  transform: translateY(-2px);
}
.tool-card.disabled { opacity: 0.55; cursor: not-allowed; }
.tool-card.disabled:hover { transform: none; border-color: var(--border); background: var(--bg); }
.tool-card .icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--panel-2);
  color: var(--text);
}
.tool-card .icon-box svg { width: 28px; height: 28px; stroke-width: 1.8; }
.tool-card .icon-box.blue { background: rgba(255,255,255,0.08); color: #ffffff; }
.tool-card .icon-box.purple { background: rgba(167,139,250,0.14); color: #a78bfa; }
.tool-card .icon-box.green { background: rgba(54,201,138,0.14); color: #36c98a; }
.tool-card .icon-box.orange { background: rgba(255,184,77,0.14); color: #ffb84d; }
.tool-card .icon-box.pink { background: rgba(255,93,108,0.14); color: #ff8094; }
.tool-card .icon-box.cyan { background: rgba(125,211,252,0.14); color: #7dd3fc; }
.tool-card .icon-box.gray { background: rgba(139,148,167,0.10); color: var(--muted); }
.tool-card h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
}
.tool-card p {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1;
}
.tool-card .tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; padding: 4px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.tool-card .tag.ready { background: rgba(54,201,138,0.15); color: var(--ok); }
.tool-card .tag.soon { background: rgba(255,255,255,0.06); color: var(--muted); }

/* Hero on homepage */
.hero {
  padding: 48px 36px 24px;
}
.hero h1 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 640px;
  line-height: 1.55;
}
.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 700; padding: 0 36px;
  margin: 24px 0 -10px;
}

/* === PROFILE MODAL === */
.profile-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.profile-modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.profile-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.profile-modal-header h3 {
  margin: 0; font-size: 14px; font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
}
.profile-modal-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 4px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.profile-modal-close:hover { color: var(--text); background: var(--panel-2); }
.profile-modal-close svg { width: 18px; height: 18px; }
.profile-modal-body { padding: 16px 18px 18px; overflow-y: auto; flex: 1; }
.profile-avatar-wrap {
  position: relative; width: 64px; height: 64px;
  margin: 0 auto 14px;
}
.profile-avatar-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #4a4f5a 0%, #2a2e36 100%);
  color: #fff; font-weight: 700; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--accent); overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
}
.profile-avatar-edit {
  position: absolute; bottom: 0; right: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 2px solid var(--panel);
}
.profile-avatar-edit svg { width: 14px; height: 14px; }
.profile-field { margin-bottom: 10px; }
.profile-field label {
  display: block; font-size: 10px; color: var(--muted);
  margin-bottom: 4px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.profile-field input {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 11px; font-size: 13px; outline: none;
}
.profile-field input:focus { border-color: var(--accent-2); }
.profile-field input:disabled { opacity: 0.6; cursor: not-allowed; }
.profile-actions {
  display: flex; gap: 8px; margin-top: 14px;
}
.profile-btn-save {
  flex: 1; background: var(--accent); color: var(--bg);
  border: none; padding: 9px; border-radius: 8px;
  font-weight: 700; font-size: 12.5px; cursor: pointer;
  transition: background .15s;
}
.profile-btn-save:hover { background: var(--accent-2); }
.profile-btn-logout {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(255,93,108,0.3); padding: 9px 12px;
  border-radius: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer;
}
.profile-btn-logout:hover { background: rgba(255,93,108,0.08); }
.profile-status {
  margin-top: 14px; font-size: 12px; min-height: 16px; text-align: center;
}
.profile-status.ok { color: var(--ok); }
.profile-status.error { color: var(--danger); }

/* Tabs no modal de perfil */
.profile-tabs {
  display: flex; gap: 3px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 2px; margin-bottom: 10px;
}
.profile-tab {
  flex: 1; background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 7px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .12s;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active { background: var(--accent); color: var(--bg); }
.profile-tab svg { width: 14px; height: 14px; }

.profile-tab-pane { display: none; margin-bottom: 10px; }
.profile-tab-pane.active { display: block; }

.profile-help {
  font-size: 11.5px; color: var(--muted); margin-bottom: 8px; line-height: 1.45;
}

.profile-avatar-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px;
  max-height: 180px; overflow-y: auto;
  padding: 3px; margin: 0 -3px;
}
@media (max-width: 480px) { .profile-avatar-grid { grid-template-columns: repeat(5, 1fr); } }
.avt-pick {
  background: var(--panel-2); border: 2px solid transparent;
  border-radius: 12px; cursor: pointer;
  padding: 0; overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: all .12s;
}
.avt-pick:hover { transform: scale(1.06); border-color: var(--accent-2); }
.avt-pick.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}
.avt-pick img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.profile-upload-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px; border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all .12s;
}
.profile-upload-btn:hover { border-color: var(--accent-2); }
.profile-upload-btn svg { width: 14px; height: 14px; }

/* === HIDDEN === */
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* === Marca d'agua Free banner === */
.wm-free-banner {
  margin: 0 36px 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,184,77,0.06), rgba(167,139,250,0.04));
  border: 1px solid rgba(255,184,77,0.3);
  border-radius: 12px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.wm-free-banner > svg {
  width: 22px; height: 22px; color: #ffb84d; flex-shrink: 0;
  background: rgba(255,184,77,0.16); padding: 8px; border-radius: 9px;
  box-sizing: content-box;
}
.wm-free-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wm-free-banner strong { font-size: 13.5px; }
.wm-free-banner span { font-size: 12.5px; color: var(--muted); }
.wm-free-banner strong:not(:first-child),
.wm-free-banner span strong { color: var(--text); }
.wm-free-cta {
  background: var(--accent); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700;
  text-decoration: none; flex-shrink: 0;
}
@media (max-width: 600px) {
  .wm-free-banner { margin: 0 16px 14px; }
}

/* === No-sidebar (landing publica) === */
body.no-sidebar .sidebar { display: none; }
body.no-sidebar .main { margin-left: 0; }

/* Topbar pública (com logo + login + signup) */
.topbar-public {
  padding: 14px 28px;
}
.topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  flex-shrink: 0;
  margin-right: 8px;
}
.topbar-logo {
  width: 30px; height: 30px;
  filter: brightness(1.05);
}
.topbar-brandtext {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800; font-size: 13px; letter-spacing: 0.1em;
  display: flex; align-items: baseline; gap: 4px;
}
.topbar-brandtext .amp { font-weight: 300; font-style: italic; color: var(--muted); }
@media (max-width: 600px) {
  .topbar-brandtext { display: none; }
}

.topbar-login {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.topbar-login:hover { border-color: var(--accent-2); }

.topbar-signup {
  background: var(--accent); color: var(--bg);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: all .15s;
}
.topbar-signup:hover { background: var(--accent-2); }

/* === Lang toggle === */
.lang-toggle { position: relative; }
.lang-btn {
  display: inline-flex !important; align-items: center; gap: 4px;
  padding: 0 8px; min-width: 56px; height: 36px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-btn .lang-current { font-family: 'Inter', system-ui, sans-serif; }
.lang-btn .lang-chev { width: 12px; height: 12px; opacity: 0.6; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; min-width: 180px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 4px;
  z-index: 200;
  display: none;
}
/* Mobile: alinha o dropdown pela esquerda do botão pra não sair da tela */
@media (max-width: 600px) {
  .lang-menu {
    right: auto !important;
    left: 0 !important;
    min-width: 160px;
    max-width: calc(100vw - 24px);
  }
}
.lang-menu.open { display: block; }
body.light-mode .lang-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 7px;
  color: var(--text); font-size: 13px;
  text-align: left;
  transition: background .12s;
}
.lang-opt:hover { background: var(--panel-2); }
.lang-opt.active { background: var(--panel-2); font-weight: 700; }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-name { flex: 1; }
.lang-code {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--panel-2); padding: 2px 6px; border-radius: 4px;
}
.lang-opt.active .lang-code { background: var(--accent); color: var(--bg); }

/* ============================================================
   PAGINAS LEGAIS (.legal-*) — termos, privacidade, faq
   ============================================================ */

.legal-wrap {
  padding: 50px 36px 60px;
  max-width: 1100px; margin: 0 auto;
}

.legal-pill {
  display: inline-block; margin-bottom: 22px;
  font-size: 11px; letter-spacing: 0.1em;
}

.legal-title {
  margin: 0 0 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text);
  max-width: 920px;
}
body.light-mode .legal-title { color: #0a0a0a; }

.legal-sub {
  margin: 0 0 14px;
  font-size: 16px; line-height: 1.55; color: var(--muted);
  max-width: 720px;
}
.legal-meta {
  margin: 0 0 36px;
  font-size: 13px; color: var(--muted);
}

.legal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 800px) { .legal-grid { grid-template-columns: 1fr; } }

.legal-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.legal-card h3 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.legal-card p {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted);
}
.legal-card p strong { color: var(--text); }
.legal-card ul {
  margin: 0; padding: 0 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-card li {
  font-size: 13.5px; line-height: 1.5; color: var(--muted);
}
.legal-card li strong { color: var(--text); }

.legal-card-summary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255,184,77,0.08), rgba(255,184,77,0.02));
  border-color: rgba(255,184,77,0.3);
}

.legal-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text); font-weight: 700; text-decoration: none;
  font-size: 14px; margin-top: 4px;
}
.legal-link svg { width: 16px; height: 16px; }
.legal-link:hover { text-decoration: underline; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 18px 22px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-body a { color: var(--text); text-decoration: underline; font-weight: 600; }

/* Footer global expandido (.land-footer já existe — extensão) */
.land-foot-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px;
  padding: 50px 36px 28px;
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) {
  .land-foot-cols { grid-template-columns: 1fr 1fr 1fr; gap: 24px; padding: 30px 16px 18px; }
}
@media (max-width: 600px) {
  .land-foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .land-foot-cols { grid-template-columns: 1fr; }
}
.land-foot-col h4 {
  margin: 0 0 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--muted);
}
.land-foot-col a {
  display: block;
  color: var(--text); text-decoration: none;
  font-size: 14px; padding: 4px 0;
  transition: color .12s;
}
.land-foot-col a:hover { color: var(--muted); }
.land-foot-brand-col strong {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800; letter-spacing: 0.1em; font-size: 16px;
  display: block; margin-bottom: 8px;
}
.land-foot-brand-col p {
  margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55;
  max-width: 320px;
}
.land-foot-social {
  display: flex; gap: 10px; margin-top: 14px;
}
.land-foot-social a {
  width: 34px; height: 34px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px;
  transition: all .15s;
}
.land-foot-social a:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.land-foot-social svg { width: 16px; height: 16px; }

.land-foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
  padding: 18px 36px;
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* === Botões de ação no histórico do Chat IA === */
.hist-actions-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 0 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.hist-act-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px; border-radius: 7px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .12s;
}
.hist-act-btn:hover { border-color: var(--accent-2); }
.hist-act-btn svg { width: 13px; height: 13px; }
.hist-act-btn.hist-act-publish {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white; border-color: transparent;
}
.hist-act-btn.hist-act-publish:hover { transform: translateY(-1px); }

/* === Dropdown "Abrir em..." (detalhe prompt) === */
.pd-open-wrap { position: relative; }
.pd-open-wrap .pd-chev { width: 12px; height: 12px; opacity: 0.6; margin-left: 2px; }
.pd-open-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding: 4px;
  z-index: 200;
  display: flex; flex-direction: column;
}
body.light-mode .pd-open-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.pd-open-menu button {
  text-align: left; padding: 9px 12px;
  background: transparent; border: none; cursor: pointer;
  border-radius: 7px;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--text);
  transition: background .12s;
}
.pd-open-menu button:hover { background: var(--panel-2); }
.pd-open-menu button strong { font-size: 13px; font-weight: 700; }
.pd-open-menu button span { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }

/* === Página /guia.html === */
.guide-wrap .guide-steps {
  display: flex; flex-direction: column; gap: 18px;
  margin: 30px 0 50px;
}
.guide-step {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; gap: 22px;
  align-items: flex-start;
}
.guide-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white; font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', system-ui, sans-serif;
}
.guide-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-content h3 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.guide-content p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.guide-content p strong { color: var(--text); }
.guide-content p a { color: var(--text); font-weight: 600; }
.guide-content ul { margin: 4px 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.guide-content li { font-size: 14px; line-height: 1.55; color: var(--muted); }
.guide-content li strong { color: var(--text); }
.guide-tips h2 {
  margin: 30px 0 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 800; letter-spacing: -0.01em;
}
.guide-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 50px; justify-content: center;
}
@media (max-width: 700px) {
  .guide-step { flex-direction: column; padding: 22px; }
  .guide-num { width: 38px; height: 38px; font-size: 18px; }
}

/* === Tooltip de primeiro uso (Camada 1) === */
.tut-tip {
  position: fixed;
  background: var(--panel); border: 1px solid var(--accent-2);
  border-radius: 14px; padding: 16px 18px;
  max-width: 320px; z-index: 300;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  display: flex; flex-direction: column; gap: 10px;
}
body.light-mode .tut-tip { box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.tut-tip-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}
.tut-tip-head strong {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
}
.tut-tip-head strong svg { width: 14px; height: 14px; color: #a78bfa; }
.tut-tip-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); padding: 2px;
}
.tut-tip-close:hover { color: var(--text); }
.tut-tip-close svg { width: 16px; height: 16px; }
.tut-tip p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.tut-tip a { color: var(--text); font-weight: 700; text-decoration: none; }
.tut-tip a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .topbar-login { display: none; }
}

/* ============================================================
   ADMIN (.adm-*)
   ============================================================ */
.adm-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 0 36px 40px; max-width: 1100px;
}
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; padding: 0 16px 30px; } }

.adm-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}

.adm-form { display: flex; flex-direction: column; gap: 14px; }
.adm-form .gal-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start; padding: 11px 16px;
}
.adm-form .gal-btn-primary svg { width: 14px; height: 14px; }
.adm-form textarea {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; font-size: 14px; font-family: inherit; resize: vertical;
  outline: none;
}
.adm-form textarea:focus { border-color: var(--accent-2); }

.adm-history { display: flex; flex-direction: column; gap: 10px; max-height: 480px; overflow-y: auto; }
.adm-hist-item {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.adm-hist-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px;
}
.adm-hist-type {
  background: var(--panel); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.adm-hist-aud {
  background: rgba(167,139,250,0.14); color: #a78bfa;
  padding: 2px 8px; border-radius: 999px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 10px;
}
.adm-hist-time { color: var(--muted); font-size: 11px; margin-left: auto; }
.adm-hist-del {
  background: transparent; border: none; cursor: pointer; color: var(--muted);
  padding: 4px; border-radius: 6px; display: inline-flex;
}
.adm-hist-del:hover { color: var(--danger); background: rgba(255,93,108,0.1); }
.adm-hist-del svg { width: 14px; height: 14px; }
.adm-hist-item strong { font-size: 13.5px; font-weight: 600; }
.adm-hist-item p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.adm-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.adm-stats .my-stat { padding: 12px; }
.adm-stats .val { font-size: 18px; }

/* ============================================================
   NOTIFICACOES (sininho dropdown) — .notif-*
   ============================================================ */

.topbar-btn { position: relative; overflow: visible; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: #dc2626; color: white;
  font-size: 10px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  box-sizing: border-box; line-height: 1;
  box-shadow: 0 4px 12px rgba(220,38,38,0.45);
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.notif-panel {
  position: fixed; z-index: 250;
  width: 380px; max-width: calc(100vw - 24px);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  max-height: 70vh; overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.notif-head strong {
  font-size: 14px; font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
}
.notif-mark-all {
  background: transparent; border: none;
  color: var(--accent-2); cursor: pointer;
  font-size: 11.5px; font-weight: 600; padding: 4px 8px;
  border-radius: 6px;
}
.notif-mark-all:hover { background: var(--panel-2); }

.notif-list { flex: 1; overflow-y: auto; }
.notif-loading, .notif-empty {
  padding: 40px 24px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.notif-empty svg { width: 32px; height: 32px; color: var(--muted); margin-bottom: 4px; }
.notif-empty p { margin: 0; font-size: 14px; color: var(--text); font-weight: 600; }
.notif-empty small { font-size: 12px; color: var(--muted); }

.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .12s;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--panel-2); }
.notif-item.unread { background: rgba(167,139,250,0.05); }
.notif-item.unread:hover { background: rgba(167,139,250,0.10); }

.notif-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--panel-2); color: var(--accent-2);
}
.notif-icon svg { width: 15px; height: 15px; }
.notif-icon.notif-feature { background: rgba(167,139,250,0.16); color: #a78bfa; }
.notif-icon.notif-bugfix { background: rgba(255,184,77,0.16); color: #ffb84d; }
.notif-icon.notif-promo { background: rgba(54,201,138,0.16); color: var(--ok); }
.notif-icon.notif-announcement { background: rgba(125,211,252,0.16); color: #7dd3fc; }

.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.notif-title-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--muted);
}
.notif-tag {
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.notif-time { font-size: 10.5px; color: var(--muted); }
.notif-body strong {
  font-size: 13px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.notif-body p {
  margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

.notif-dot {
  position: absolute; top: 16px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,0.2);
}

@media (max-width: 600px) {
  .notif-panel { width: calc(100vw - 24px); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .brand-text, .sidebar .brand-tag,
  .sidebar nav a span:not(.icon):not(.badge),
  .sidebar nav .nav-section,
  .sidebar nav a .badge,
  .sidebar-footer { display: none; }
  .main { margin-left: 64px; }
  .layout { grid-template-columns: 1fr; padding: 16px; }
  .tool-grid { padding: 16px; }
  .hero { padding: 24px 16px; }
  .hero h1 { font-size: 24px; }
  .page-header { padding: 18px 20px; }
  .actions { padding: 14px 20px; flex-wrap: wrap; }
}

/* ============================================================
   GALERIA DE PROMPTS (.gal-*)
   ============================================================ */

.gal-hero {
  padding: 36px 36px 18px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.gal-hero-text .hero-badge { margin-bottom: 14px; }
.gal-hero-text h1 {
  margin: 0 0 10px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gal-hero-text p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 640px; }

.gal-byok {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(167,139,250,0.06) 0%, rgba(54,201,138,0.04) 100%);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 12px;
}
.gal-byok-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(167,139,250,0.16); color: #a78bfa;
  display: flex; align-items: center; justify-content: center;
}
.gal-byok-icon svg { width: 18px; height: 18px; }
.gal-byok-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gal-byok-text strong { font-size: 13px; color: var(--text); }
.gal-byok-text span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.gal-byok-link {
  align-self: center; font-size: 12px; font-weight: 700;
  color: #a78bfa; text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: 7px; flex-shrink: 0;
}
.gal-byok-link:hover { background: rgba(167,139,250,0.12); }

.gal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; padding: 0 36px 18px;
}
.gal-stat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.gal-stat-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
}
.gal-stat-value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 800; color: var(--text);
}

/* === Filters === */
.gal-filters {
  position: sticky; top: 60px; z-index: 30;
  padding: 14px 36px;
  background: rgba(15,17,21,0.90); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.light-mode .gal-filters { background: rgba(245,246,248,0.92); }

.gal-filter-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.gal-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 12px; flex: 1; min-width: 220px;
  transition: border-color .15s;
}
.gal-search:focus-within { border-color: var(--accent-2); }
.gal-search svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.gal-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px;
}
.gal-search input::placeholder { color: var(--muted); }

.gal-period { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.gal-chip {
  background: transparent; border: none; color: var(--muted);
  padding: 6px 11px; border-radius: 6px; cursor: pointer;
  font-size: 12px; font-weight: 600; transition: all .12s;
}
.gal-chip:hover { color: var(--text); }
.gal-chip.active { background: var(--accent); color: var(--bg); }

.gal-toggle {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 12px; cursor: pointer;
  font-size: 12px; font-weight: 600; user-select: none;
  transition: all .12s;
}
.gal-toggle:has(input:checked) {
  background: rgba(167,139,250,0.14); border-color: rgba(167,139,250,0.4); color: #a78bfa;
}
.gal-toggle input { display: none; }
.gal-toggle span { display: flex; align-items: center; gap: 6px; }
.gal-toggle svg { width: 14px; height: 14px; }

.gal-select {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--text); padding: 7px 10px; border-radius: 9px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}

.gal-clear {
  display: flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid rgba(255,93,108,0.3);
  color: var(--danger); padding: 7px 11px; border-radius: 9px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.gal-clear:hover { background: rgba(255,93,108,0.08); }
.gal-clear svg { width: 13px; height: 13px; }

.gal-advanced {
  margin-top: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
}
.gal-advanced summary {
  cursor: pointer; padding: 10px 14px; font-size: 12px; font-weight: 600;
  color: var(--muted); user-select: none;
  display: flex; align-items: center; gap: 6px;
}
.gal-advanced summary:hover { color: var(--text); }
.gal-advanced[open] summary { border-bottom: 1px solid var(--border); color: var(--text); }
.gal-adv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  padding: 14px;
}
.gal-adv-block label {
  display: block; font-size: 10px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; margin-bottom: 8px;
}
.gal-chip-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.gal-fchip {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); padding: 5px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all .12s;
}
.gal-fchip:hover { color: var(--text); border-color: var(--accent-2); }
.gal-fchip.active {
  background: rgba(167,139,250,0.14); border-color: #a78bfa; color: #a78bfa;
}

/* === Grid === */
.gal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 24px 36px;
}
@media (max-width: 1024px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gal-grid { grid-template-columns: 1fr; padding: 14px; } }

/* === Card estilo Banana: imagem 1:1 + tag-title topo + likes topo + preview no body + footer fixo === */
.gal-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.gal-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.gal-card-img {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  overflow: hidden;
  text-decoration: none;
}
.gal-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gal-card:hover .gal-card-img img { transform: scale(1.04); }

/* Tag de titulo (canto superior esquerdo) */
.gal-card-tag {
  position: absolute; top: 12px; left: 12px;
  max-width: 60%;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  backdrop-filter: blur(8px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Likes no footer (canto direito) */
.gal-card-likes-foot {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  margin-left: auto;
}
.gal-card-likes-foot svg { width: 13px; height: 13px; color: #ff8094; fill: currentColor; }

/* Badges extras (PRO, RASCUNHO, TESTADO, FAV) — coluna inferior esquerda */
.gal-card-extras {
  position: absolute; bottom: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px);
}
.gal-pro-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white; font-size: 10px; font-weight: 800;
  padding: 4px 9px; border-radius: 6px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.gal-pro-badge svg { width: 10px; height: 10px; stroke-width: 3; }

.gal-validated-badge {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(54,201,138,0.95); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(54,201,138,0.4);
}
.gal-validated-badge svg { width: 14px; height: 14px; stroke-width: 2.5; }

/* Body: preview do prompt sempre visivel */
.gal-card-body {
  padding: 14px 16px 12px; flex: 1;
  display: flex; flex-direction: column;
}
.gal-card-preview {
  margin: 0; color: var(--text);
  font-size: 13px; line-height: 1.55; font-weight: 500;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  word-break: break-word;
}

/* Footer: Copiar/Editar + autor + likes */
.gal-card-footer {
  display: flex; align-items: center;
  padding: 10px 14px 14px;
  gap: 10px;
}
.gal-card-footer .gal-card-author {
  flex: 1; min-width: 0;
  text-align: left;
}
.gal-card-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .12s;
}
.gal-card-copy:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.gal-card-copy.copied { background: var(--ok); color: white; border-color: var(--ok); }
.gal-card-copy svg { width: 13px; height: 13px; stroke-width: 2.5; }

.gal-card-author {
  font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
  overflow: hidden; min-width: 0;
}
.gal-card-author-min { font-size: 12px; color: var(--muted); }
.gal-card-actions { display: inline-flex; align-items: center; gap: 8px; }

/* Stats no footer (cards owner) */
.gal-card-stats {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; color: var(--muted); font-weight: 600;
  flex: 1; min-width: 0; overflow: hidden;
}
.gal-card-stats span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.gal-card-stats svg { width: 11px; height: 11px; }

/* Botoes editar/excluir no footer (own) */
.my-own-footer { padding: 10px 14px 12px; }
.my-own-buttons { display: inline-flex; gap: 4px; flex-shrink: 0; }
.my-own-buttons .my-act-edit,
.my-own-buttons .my-act-delete {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 9px; border-radius: 7px;
  cursor: pointer; transition: all .12s;
  display: inline-flex; align-items: center; justify-content: center;
}
.my-own-buttons .my-act-edit:hover { color: var(--accent-2); border-color: var(--accent-2); }
.my-own-buttons .my-act-delete:hover { color: var(--danger); border-color: rgba(255,93,108,0.5); background: rgba(255,93,108,0.08); }
.my-own-buttons svg { width: 13px; height: 13px; }

/* === Loader / empty / end === */
.gal-loader, .gal-end, .gal-empty {
  text-align: center; padding: 28px; color: var(--muted); font-size: 13px;
}
.gal-empty { padding: 60px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gal-empty svg { width: 36px; height: 36px; color: var(--muted); margin-bottom: 6px; }
.gal-empty h3 { margin: 0; font-size: 16px; color: var(--text); }
.gal-empty p { margin: 0; }

.gal-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: gal-spin .7s linear infinite;
  margin-right: 8px; vertical-align: -2px;
}
@keyframes gal-spin { to { transform: rotate(360deg); } }

/* === Pro modal === */
.gal-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.gal-modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; max-width: 420px; width: 100%;
  padding: 32px 28px 26px; text-align: center; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.gal-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--muted);
  cursor: pointer; padding: 4px; border-radius: 6px;
}
.gal-modal-close:hover { color: var(--text); background: var(--panel-2); }
.gal-modal-close svg { width: 18px; height: 18px; }
.gal-modal-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.gal-modal-icon svg { width: 28px; height: 28px; stroke-width: 2.4; }
.gal-modal h2 {
  margin: 0 0 10px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 800;
}
.gal-modal p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.gal-modal p strong { color: var(--text); }
.gal-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gal-btn-primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed); color: white; border: none;
  padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 13px;
  cursor: pointer; box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}
.gal-btn-primary:hover { box-shadow: 0 6px 16px rgba(124,58,237,0.5); }
.gal-btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.gal-btn-ghost:hover { border-color: var(--accent-2); }

/* === Toast === */
#toastHost {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 250; display: flex; flex-direction: column-reverse; gap: 8px;
  pointer-events: none;
}
.gal-toast {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-left: 3px solid var(--ok);
  padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: all .25s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.gal-toast.error { border-left-color: var(--danger); }
.gal-toast.show { opacity: 1; transform: translateY(0); }

/* Galeria responsive */
@media (max-width: 900px) {
  .gal-hero { grid-template-columns: 1fr; padding: 24px 16px 12px; }
  .gal-stats { grid-template-columns: repeat(3, 1fr); padding: 0 16px 14px; gap: 8px; }
  .gal-stat-card { padding: 12px; }
  .gal-stat-value { font-size: 20px; }
  .gal-filters { padding: 12px 16px; top: 56px; }
  .gal-adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gal-hero h1 { font-size: 22px; }
  .gal-stat-label { font-size: 10px; }
}

/* ============================================================
   PROMPT DETAIL (.pd-*)
   ============================================================ */

.pd-back-wrap { padding: 18px 36px 0; }
.pd-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px;
}
.pd-back:hover { color: var(--text); background: var(--panel); }
.pd-back svg { width: 14px; height: 14px; }

.pd-loader-full {
  text-align: center; padding: 80px 24px;
  color: var(--muted); font-size: 14px;
}

.pd-empty {
  text-align: center; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pd-empty svg { width: 42px; height: 42px; color: var(--muted); }
.pd-empty h2 { margin: 0; font-size: 22px; font-family: 'Inter', system-ui, sans-serif; }

.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px; padding: 22px 36px 40px;
  align-items: start;
}

/* === Esquerda: media === */
.pd-media { position: sticky; top: 84px; }
.pd-cover-wrap {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.pd-cover { width: 100%; height: auto; display: block; }
.pd-watermark {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  backdrop-filter: blur(4px);
}
.pd-pro-badge { top: 14px; left: 14px; }
.pd-validated-badge { top: 14px; right: 14px; }

.pd-variations { margin-top: 18px; }
.pd-variations h4 {
  margin: 0 0 10px; font-size: 11px; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.08em; font-weight: 700;
}
.pd-variations-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.pd-variations-grid img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
}

/* === Direita: info === */
.pd-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-info .hero-badge { align-self: flex-start; }
.pd-title {
  margin: 4px 0 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}
body.light-mode .pd-title {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.pd-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: var(--muted); font-size: 13px;
}
.pd-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pd-meta svg { width: 13px; height: 13px; }
.pd-dot { color: var(--border); }

/* Card generico */
.pd-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  position: relative;
}
.pd-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pd-card-title {
  margin: 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.pd-card-title svg { width: 14px; height: 14px; }

/* Prompt card */
.pd-prompt-card { padding-bottom: 16px; }
.pd-prompt-text {
  margin: 0 0 14px; padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  max-height: 360px; overflow-y: auto;
}
.pd-prompt-card.locked .pd-prompt-text {
  filter: blur(5px); user-select: none; pointer-events: none;
  max-height: 140px;
}
.pd-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(15,17,21,0.4) 0%, rgba(15,17,21,0.95) 80%);
  border-radius: 14px; gap: 10px; padding: 24px;
  text-align: center;
}
body.light-mode .pd-lock-overlay {
  background: linear-gradient(180deg, rgba(245,246,248,0.4) 0%, rgba(245,246,248,0.95) 80%);
}
.pd-lock-overlay > svg {
  width: 40px; height: 40px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  color: #a78bfa;
  background: rgba(167,139,250,0.16);
  padding: 16px; border-radius: 50%;
  box-sizing: content-box;
}
.pd-lock-overlay p { margin: 0; color: var(--text); font-size: 14px; max-width: 320px; }
.pd-lock-overlay strong { color: #a78bfa; }
.pd-lock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white; font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 6px;
}
.pd-lock-pill svg { width: 11px; height: 11px; }

.pd-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
  position: relative; z-index: 2;
}
.pd-actions .gal-btn-primary,
.pd-actions .gal-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; font-size: 13px;
  text-decoration: none;
}
.pd-actions svg { width: 14px; height: 14px; }
.pd-actions .gal-btn-primary.copied { background: var(--ok); }

/* Engage */
.pd-engage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px;
}
.pd-engage-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text);
  padding: 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.pd-engage-btn:hover { border-color: var(--accent-2); }
.pd-engage-btn.on { background: rgba(255,93,108,0.1); border-color: rgba(255,93,108,0.4); color: #ff8094; }
.pd-engage-btn.on svg { fill: currentColor; }
.pd-engage-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Detail grid */
.pd-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px;
}
.pd-detail-grid > div { display: flex; flex-direction: column; gap: 4px; }
.pd-detail-grid label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); font-weight: 700;
}
.pd-pill {
  align-self: flex-start; display: inline-block;
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text);
  text-transform: capitalize;
}

/* Tags */
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tag {
  display: inline-block;
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}

/* Validations */
.pd-validations { display: flex; flex-direction: column; gap: 12px; }
.pd-val-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border-radius: 10px;
  background: var(--panel-2);
}
.pd-val-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #4a4f5a 0%, #2a2e36 100%);
  color: white; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.pd-val-body { flex: 1; min-width: 0; }
.pd-val-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px;
}
.pd-val-head strong { color: var(--text); }
.pd-val-status {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; padding: 2px 7px; border-radius: 999px; font-weight: 600;
}
.pd-val-status svg { width: 11px; height: 11px; stroke-width: 2.5; }
.pd-val-status.ok { background: rgba(54,201,138,0.15); color: var(--ok); }
.pd-val-status.bad { background: rgba(255,93,108,0.12); color: var(--danger); }
.pd-val-body p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Related */
.pd-related { padding: 0 36px 40px; }
.pd-related h3 {
  margin: 0 0 14px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--muted);
}
.pd-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.pd-related-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: all .18s;
}
.pd-related-card:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.pd-related-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--panel-2); }
.pd-related-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-related-body {
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.pd-related-body strong {
  font-size: 13px; font-weight: 600;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; min-width: 0;
}
.pd-related-body span {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted); font-weight: 600; flex-shrink: 0;
}
.pd-related-body svg { width: 12px; height: 12px; }

/* Responsive prompt detail */
@media (max-width: 980px) {
  .pd-grid { grid-template-columns: 1fr; padding: 18px 18px 30px; gap: 22px; }
  .pd-media { position: static; }
  .pd-related { padding: 0 18px 30px; }
  .pd-related-grid { grid-template-columns: 1fr 1fr; }
  .pd-back-wrap { padding: 14px 18px 0; }
}
@media (max-width: 600px) {
  .pd-title { font-size: 22px; }
  .pd-related-grid { grid-template-columns: 1fr; }
  .pd-engage { grid-template-columns: 1fr; }
  .pd-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   COMPARTILHAR PROMPT (.share-*)
   ============================================================ */

.share-gate {
  text-align: center; padding: 90px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.share-gate svg { width: 42px; height: 42px; color: var(--muted); }
.share-gate h2 { margin: 0; font-size: 22px; font-family: 'Inter', system-ui, sans-serif; }
.share-gate p { margin: 0; color: var(--muted); max-width: 360px; }

.share-header { padding: 28px 36px 12px; max-width: 900px; }
.share-header .hero-badge { display: inline-block; margin-bottom: 12px; }
.share-header h1 {
  margin: 0 0 8px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.light-mode .share-header h1 {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.share-header p { margin: 0; color: var(--muted); font-size: 14px; }

/* Stepper pills */
.share-stepper {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  padding: 12px 36px 0; max-width: 900px;
  overflow-x: auto;
}
.share-step-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 12.5px; font-weight: 600;
  flex-shrink: 0;
}
.share-step-pill .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--panel-2); color: var(--muted);
  font-size: 11px; font-weight: 700;
}
.share-step-pill.active { border-color: var(--accent); color: var(--text); }
.share-step-pill.active .num { background: var(--accent); color: var(--bg); }
.share-step-pill.done { border-color: rgba(54,201,138,0.4); color: var(--ok); }
.share-step-pill.done .num { background: var(--ok); color: white; }
.share-step-line { flex: 0 0 24px; height: 1px; background: var(--border); }

/* Form */
.share-form {
  padding: 22px 36px 40px; max-width: 900px;
  display: flex; flex-direction: column; gap: 14px;
}
.share-step { display: none; flex-direction: column; gap: 14px; }
.share-step.active { display: flex; }

/* Layout single-page: todas as sections visíveis com headings claros. */
.share-form-single { gap: 28px; }
.share-form-single .share-step { padding-top: 8px; }
.share-section-h {
  margin: 0 0 4px;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.share-section-h::before {
  content: ''; flex: 0 0 4px; height: 18px;
  background: var(--accent); border-radius: 2px;
}
.share-actions-single { justify-content: flex-end; margin-top: 8px; }

.share-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.share-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 600px) { .share-grid-2 { grid-template-columns: 1fr; } }

.share-label {
  font-size: 12px; color: var(--text); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.share-label .req { color: var(--danger); }
.share-help { margin: -2px 0 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.share-help strong { color: var(--text); }
.share-pill-min {
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 9px; padding: 2px 7px; border-radius: 999px;
  color: var(--muted); font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.share-form textarea,
.share-form input[type="text"],
.share-form .share-select {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  outline: none; resize: vertical;
  transition: border-color .15s;
}
.share-form textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; line-height: 1.55; }
.share-form textarea:focus,
.share-form input[type="text"]:focus,
.share-form .share-select:focus { border-color: var(--accent-2); }

.share-counter {
  align-self: flex-end; font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Polir IA card */
.share-polish-head {
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
}
.share-polish-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-polish-head strong { font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.share-polish-head span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.share-polish-head .gal-btn-ghost { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.share-polish-head svg { width: 14px; height: 14px; }
.share-polish-result {
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.share-polish-result strong { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.share-polish-result pre {
  margin: 0; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, Menlo, monospace; color: var(--text);
}
.share-polish-actions { display: flex; gap: 8px; }

/* Tags input */
.share-tags-input {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
  min-height: 44px;
}
.share-tags-input input {
  flex: 1; min-width: 140px; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; padding: 4px 0;
}
.share-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.share-tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent); color: var(--bg);
  font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.share-tag-pill button {
  background: none; border: none; color: var(--bg);
  font-size: 14px; line-height: 1; cursor: pointer; opacity: 0.7;
  padding: 0; margin-left: 2px;
}
.share-tag-pill button:hover { opacity: 1; }

/* Drop zone */
.share-drop {
  display: block; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 20px; min-height: 220px;
  transition: border-color .15s, background .15s;
  position: relative;
}
.share-drop:hover, .share-drop.over { border-color: var(--accent); background: var(--panel-2); }

.share-drop-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; min-height: 180px; color: var(--muted);
}
.share-drop-empty svg { width: 36px; height: 36px; }
.share-drop-empty strong { color: var(--text); font-size: 14px; }
.share-drop-empty span { font-size: 12px; }

.share-drop-preview { position: relative; display: flex; justify-content: center; }
.share-drop-preview img {
  max-width: 100%; max-height: 360px;
  border-radius: 10px; object-fit: contain;
  display: block;
}
.share-drop-remove {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.share-drop-remove:hover { background: rgba(0,0,0,0.85); }
.share-drop-remove svg { width: 14px; height: 14px; }

/* Toggle */
.share-toggle {
  display: flex; align-items: center; gap: 14px; cursor: pointer; user-select: none;
}
.share-toggle input { display: none; }
.share-toggle-bullet {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  position: relative; transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.share-toggle-bullet::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: all .2s;
}
.share-toggle input:checked + .share-toggle-bullet {
  background: rgba(54,201,138,0.18); border-color: var(--ok);
}
.share-toggle input:checked + .share-toggle-bullet::after {
  background: var(--ok); transform: translateX(18px);
}
.share-toggle > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.share-toggle strong { font-size: 13.5px; }
.share-toggle small { font-size: 12px; color: var(--muted); }

/* Summary */
.share-summary h3 {
  margin: 0 0 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--muted);
}
.share-summary-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
.share-summary-cover {
  aspect-ratio: 4/5;
  border-radius: 10px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.share-summary-cover img { width: 100%; height: 100%; object-fit: cover; }
.share-summary-noimg {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px;
}
.share-summary-noimg svg { width: 28px; height: 28px; }
.share-summary-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.share-summary-info h4 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px; font-weight: 700; word-break: break-word;
}
.share-sum-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  align-items: start; font-size: 13px;
}
.share-sum-row label { color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; font-weight: 700; padding-top: 3px; }
.share-sum-row span { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.share-sum-row .muted { color: var(--muted); font-style: italic; }
@media (max-width: 600px) {
  .share-summary-grid { grid-template-columns: 1fr; }
  .share-summary-cover { max-width: 240px; margin: 0 auto; }
}

/* Limit card */
.share-limit {
  flex-direction: row; align-items: center; gap: 14px;
  background: rgba(255,184,77,0.08);
  border-color: rgba(255,184,77,0.3);
}
.share-limit > svg {
  width: 28px; height: 28px; color: #ffb84d; flex-shrink: 0;
}
.share-limit > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.share-limit strong { color: var(--text); font-size: 13.5px; }
.share-limit p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.share-limit .gal-btn-primary { flex-shrink: 0; }

/* Actions */
.share-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 8px;
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 30%);
  margin-top: 6px;
  padding-bottom: 8px;
}
.share-actions .gal-btn-ghost,
.share-actions .gal-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
}
.share-actions svg { width: 14px; height: 14px; }
.share-step-info {
  flex: 1; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600;
}

.share-status { font-size: 12px; color: var(--muted); min-height: 16px; }
.share-status.global { text-align: center; padding: 8px; font-weight: 600; }

/* Chip grid (categoria/extras compartilhado com filtros da galeria) */
.share-chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   AREA PESSOAL (.my-*)
   ============================================================ */

.my-header {
  padding: 28px 36px 12px; max-width: 1200px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.my-header-text { flex: 1; min-width: 280px; }
.my-header-text .hero-badge { display: inline-block; margin-bottom: 12px; }
.my-header-text h1 {
  margin: 0 0 6px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.light-mode .my-header-text h1 {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.my-header-text p { margin: 0; color: var(--muted); font-size: 14px; }
.my-share-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.my-share-btn svg { width: 14px; height: 14px; }

/* Stats */
.my-stats {
  padding: 0 36px 14px; max-width: 1200px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.my-stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.my-stat > svg {
  width: 22px; height: 22px; color: var(--accent-2);
  background: var(--panel-2); padding: 8px; border-radius: 9px;
  flex-shrink: 0; box-sizing: content-box;
}
.my-stat > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-stat .lbl {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600;
}
.my-stat .val {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 800; color: var(--text);
}

/* Top prompt card */
.my-top-card {
  display: flex; align-items: center; gap: 16px;
  margin: 0 36px 18px; max-width: 1200px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(167,139,250,0.06) 0%, rgba(54,201,138,0.04) 100%);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 14px; text-decoration: none; color: var(--text);
  transition: all .18s;
}
.my-top-card:hover { border-color: rgba(167,139,250,0.4); transform: translateY(-1px); }
.my-top-cover {
  width: 64px; height: 80px; border-radius: 8px;
  background-color: var(--panel-2); background-size: cover; background-position: center;
  flex-shrink: 0; border: 1px solid var(--border);
}
.my-top-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.my-top-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #a78bfa; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
}
.my-top-label svg { width: 13px; height: 13px; }
.my-top-info h3 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; font-weight: 700;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
}
.my-top-meta {
  font-size: 12px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
}
.my-top-meta svg { width: 12px; height: 12px; }
.my-top-chevron { color: var(--muted); flex-shrink: 0; }
.my-top-chevron { width: 18px; height: 18px; }

/* Tabs */
.my-tabs {
  padding: 0 36px;
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px; max-width: 1200px;
  overflow-x: auto;
}
.my-tab {
  background: transparent; border: none; cursor: pointer;
  padding: 12px 16px; color: var(--muted);
  font-size: 13px; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.my-tab:hover { color: var(--text); }
.my-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.my-tab-count {
  background: var(--panel-2); border: 1px solid var(--border);
  font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.my-tab.active .my-tab-count {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}

/* Grid wrapping (limita largura na area pessoal) */
.my-header ~ .gal-grid,
#myApp .gal-grid,
#favApp .gal-grid {
  max-width: 1200px; padding: 0 36px 40px;
}

/* Badges nos cards (rascunho/testado/favorito) — agora ficam dentro de .gal-card-extras */
.my-draft-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,184,77,0.95); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 6px;
  box-shadow: 0 4px 10px rgba(255,184,77,0.4);
}
.my-draft-badge svg { width: 11px; height: 11px; }
.my-draft-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(255,184,77,0.14); color: #ffb84d;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.my-tested-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(54,201,138,0.95); color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 6px;
  box-shadow: 0 4px 10px rgba(54,201,138,0.4);
}
.my-tested-badge svg { width: 11px; height: 11px; stroke-width: 2.5; }
.my-fav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(167,139,250,0.95); color: white;
}
.my-fav-badge svg { width: 14px; height: 14px; fill: currentColor; }

/* Botao remove favorito (no footer) */
.my-unfav-btn {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; padding: 4px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.my-unfav-btn:hover { color: var(--danger); background: rgba(255,93,108,0.12); }
.my-unfav-btn svg { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .my-header, .my-stats, .my-top-card, .my-tabs,
  #myApp .gal-grid, #favApp .gal-grid { padding-left: 16px; padding-right: 16px; }
  .my-stats { grid-template-columns: repeat(2, 1fr); }
  .my-tabs { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 480px) {
  .my-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .my-stat { padding: 12px; }
  .my-stat .val { font-size: 18px; }
}

/* ============================================================
   CONFIGURACOES (.cfg-*)
   ============================================================ */

.cfg-wrap { padding: 28px 36px 40px; max-width: 800px; }
.cfg-header { margin-bottom: 18px; }
.cfg-header .hero-badge { display: inline-block; margin-bottom: 12px; }
.cfg-header h1 {
  margin: 0 0 8px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.light-mode .cfg-header h1 {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cfg-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cfg-header strong { color: var(--text); }

.cfg-banner {
  display: flex; gap: 14px; padding: 14px 16px;
  background: rgba(54,201,138,0.06);
  border: 1px solid rgba(54,201,138,0.2);
  border-radius: 12px; margin-bottom: 18px;
}
.cfg-banner > svg { color: var(--ok); width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cfg-banner > div { display: flex; flex-direction: column; gap: 4px; }
.cfg-banner strong { font-size: 13px; color: var(--text); }
.cfg-banner span { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.cfg-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 14px;
}
.cfg-card-head { display: flex; align-items: flex-start; gap: 14px; }
.cfg-provider-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--panel-2); color: var(--accent-2);
}
.cfg-provider-icon.groq { background: rgba(255,184,77,0.14); color: #ffb84d; }
.cfg-provider-icon.openai { background: rgba(54,201,138,0.14); color: #36c98a; }
.cfg-provider-icon.openrouter { background: rgba(167,139,250,0.14); color: #a78bfa; }
.cfg-provider-icon svg { width: 20px; height: 20px; }

.cfg-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cfg-card-info h3 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.cfg-card-info p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cfg-card-info strong { color: var(--text); }

.cfg-tag-free, .cfg-tag-paid, .cfg-tag-mix {
  font-size: 9px; padding: 2px 7px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.cfg-tag-free { background: rgba(54,201,138,0.16); color: var(--ok); }
.cfg-tag-paid { background: rgba(167,139,250,0.16); color: #a78bfa; }
.cfg-tag-mix { background: rgba(255,184,77,0.16); color: #ffb84d; }

.cfg-howto {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--accent-2); text-decoration: none;
  font-weight: 600; margin-top: 4px;
}
.cfg-howto:hover { color: var(--text); text-decoration: underline; }
.cfg-howto svg { width: 12px; height: 12px; }

.cfg-status {
  font-size: 11px; padding: 4px 9px; border-radius: 999px;
  font-weight: 700; flex-shrink: 0;
}
.cfg-status.ok { background: rgba(54,201,138,0.14); color: var(--ok); }
.cfg-status.error { background: rgba(255,93,108,0.14); color: var(--danger); }
.cfg-status.testing { background: rgba(255,184,77,0.14); color: #ffb84d; }

.cfg-key-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cfg-input-wrap {
  flex: 1; min-width: 240px; position: relative;
  display: flex; align-items: center;
}
.cfg-input-wrap input {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 44px 10px 13px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px;
  outline: none;
}
.cfg-input-wrap input:focus { border-color: var(--accent-2); }
.cfg-eye {
  position: absolute; right: 6px;
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.cfg-eye:hover { color: var(--text); background: var(--border); }
.cfg-eye svg { width: 15px; height: 15px; }

.cfg-test-btn, .cfg-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 13px; flex-shrink: 0;
}
.cfg-test-btn svg, .cfg-save-btn svg { width: 13px; height: 13px; }

.cfg-section-title {
  margin: 24px 0 10px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.cfg-misc {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 14px;
}
.cfg-misc > div { flex: 1; min-width: 0; }
.cfg-misc strong { display: block; font-size: 13.5px; }
.cfg-misc p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.cfg-danger {
  color: var(--danger); border-color: rgba(255,93,108,0.3) !important;
  display: inline-flex; align-items: center; gap: 6px;
}
.cfg-danger:hover { background: rgba(255,93,108,0.08); border-color: var(--danger) !important; }
.cfg-danger svg { width: 13px; height: 13px; }

@media (max-width: 600px) {
  .cfg-wrap { padding: 18px 16px 30px; }
  .cfg-card-head { flex-wrap: wrap; }
  .cfg-status { order: -1; }
  .cfg-misc { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   CONSTRUTOR DE PROMPTS (.cb-*)
   ============================================================ */

.cb-header {
  padding: 28px 36px 12px; max-width: 1200px;
}
.cb-header .hero-badge { display: inline-block; margin-bottom: 12px; }
.cb-header h1 {
  margin: 0 0 8px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.light-mode .cb-header h1 {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cb-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 720px; }

.cb-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 380px;
  gap: 24px;
  padding: 18px 36px 40px;
  max-width: 1200px;
  align-items: start;
}

/* === Esquerda: blocos === */
.cb-blocks { display: flex; flex-direction: column; gap: 12px; }

.cb-block {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}

.cb-block-head {
  display: flex; align-items: center; gap: 10px;
}
.cb-block-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--panel-2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.cb-block-head h3 {
  margin: 0; flex: 1;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px; font-weight: 700;
}
.cb-tier-free, .cb-tier-pro {
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cb-tier-free { background: rgba(54,201,138,0.14); color: var(--ok); }
.cb-tier-pro {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  display: inline-flex; align-items: center; gap: 4px;
}
.cb-tier-pro svg { width: 9px; height: 9px; stroke-width: 3; }

/* Chips */
.cb-options { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .12s;
}
.cb-chip:hover { color: var(--text); border-color: var(--accent-2); }
.cb-chip.active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.cb-chip-custom {
  border-style: dashed;
}
.cb-chip-custom.active {
  background: var(--panel-2); border-color: var(--accent-2); color: var(--accent-2);
  border-style: solid;
}

.cb-extra {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-family: inherit;
  outline: none; width: 100%;
}
.cb-extra:focus { border-color: var(--accent-2); }

/* Pro lock */
.cb-block-pro.locked {
  position: relative;
  background: linear-gradient(135deg, rgba(167,139,250,0.04) 0%, rgba(124,58,237,0.02) 100%);
}
.cb-block-pro.locked::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,17,21,0.0) 0%, rgba(15,17,21,0.55) 100%);
  border-radius: 12px;
  pointer-events: none;
}
body.light-mode .cb-block-pro.locked::after {
  background: linear-gradient(180deg, rgba(245,246,248,0.0) 0%, rgba(245,246,248,0.55) 100%);
}
.cb-block-pro.locked .cb-options,
.cb-block-pro.locked .cb-extra { opacity: 0.55; pointer-events: none; }

/* Pro CTA */
.cb-pro-cta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(167,139,250,0.08) 0%, rgba(124,58,237,0.04) 100%);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 14px;
}
.cb-pro-cta > svg {
  width: 22px; height: 22px;
  color: #a78bfa; background: rgba(167,139,250,0.16);
  padding: 9px; border-radius: 50%;
  flex-shrink: 0; box-sizing: content-box;
}
.cb-pro-cta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cb-pro-cta strong { font-size: 13.5px; }
.cb-pro-cta span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cb-pro-cta .gal-btn-primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  flex-shrink: 0;
}

/* === Direita: preview pane === */
.cb-preview-pane { position: sticky; top: 76px; }
.cb-preview-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.cb-preview-head {
  display: flex; align-items: center; justify-content: space-between;
}
.cb-preview-head h4 {
  margin: 0; font-size: 11px; text-transform: uppercase;
  color: var(--muted); letter-spacing: 0.08em; font-weight: 700;
}
.cb-char-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.cb-preview-text {
  margin: 0; padding: 14px 16px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
  min-height: 160px; max-height: 380px; overflow-y: auto;
}
.cb-preview-text.cb-preview-empty { color: var(--muted); font-style: italic; }

.cb-preview-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cb-preview-actions .gal-btn-primary,
.cb-preview-actions .gal-btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; font-size: 12.5px; flex: 1;
  justify-content: center;
}
.cb-preview-actions .gal-btn-primary.copied { background: var(--ok); color: white; }
.cb-preview-actions svg { width: 13px; height: 13px; }
#clearBtn { flex: 0 0 auto; padding: 8px 11px; }

.cb-preview-hint {
  font-size: 11.5px; color: var(--muted); line-height: 1.55;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.cb-preview-hint strong { color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
  .cb-layout { grid-template-columns: 1fr; padding: 14px 16px 30px; }
  .cb-preview-pane { position: static; }
  .cb-header { padding: 20px 16px 8px; }
}

/* ============================================================
   UPGRADE / PLANOS (.up-*)
   ============================================================ */

.up-hero {
  text-align: center; padding: 40px 24px 18px; max-width: 760px; margin: 0 auto;
}
.up-hero .hero-badge { display: inline-block; margin-bottom: 14px; }
.up-hero h1 {
  margin: 0 0 10px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #c8cdd6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.light-mode .up-hero h1 {
  background: linear-gradient(135deg, #1a1d24 0%, #5a6377 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.up-hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.up-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 20px 36px 24px; max-width: 1100px; margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 920px) { .up-cards { grid-template-columns: 1fr; padding: 16px; } }

.up-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.up-card:hover { transform: translateY(-2px); }

.up-card-head h2 {
  margin: 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 800;
}
.up-sub { color: var(--muted); font-size: 13px; }

.up-price {
  display: flex; align-items: baseline; gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.up-currency { font-size: 20px; color: var(--muted); font-weight: 700; }
.up-amount {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 44px; font-weight: 800; line-height: 1;
}
.up-cents { font-size: 22px; font-weight: 700; }
.up-period { color: var(--muted); font-size: 13px; margin-left: 6px; font-weight: 600; }
.up-price-soon .up-amount { font-size: 28px; color: var(--muted); }
.up-yearly-hint {
  display: block;
  font-size: 12px; color: var(--muted);
  margin-top: -8px; margin-bottom: 4px;
}
.up-yearly-hint strong { color: var(--text); }

.up-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.up-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; line-height: 1.5; color: var(--text);
}
.up-features li svg {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px;
  color: var(--ok); stroke-width: 3;
}
.up-features strong { color: var(--text); }

.up-btn-primary {
  background: var(--accent); color: var(--bg); border: none;
  padding: 12px; border-radius: 10px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .12s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.up-btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.up-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.up-btn-primary svg { width: 14px; height: 14px; }

.up-btn-secondary {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  padding: 11px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .12s;
}
.up-btn-secondary:hover { border-color: var(--accent-2); }
.up-btn-secondary svg { width: 14px; height: 14px; }

.up-card-foot {
  font-size: 11.5px; color: var(--muted);
  text-align: center;
}
.up-card-foot.ok { color: var(--ok); }
.up-card-foot.error { color: var(--danger); }

/* PRO destaque */
.up-pro {
  background: linear-gradient(180deg, rgba(167,139,250,0.10) 0%, var(--panel) 60%);
  border-color: rgba(167,139,250,0.4);
  box-shadow: 0 12px 40px rgba(124,58,237,0.15);
  transform: scale(1.02);
}
.up-pro:hover { transform: scale(1.02) translateY(-2px); }
@media (max-width: 920px) { .up-pro { transform: none; } }
.up-pro .up-amount {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.up-pro .up-currency { color: #a78bfa; }
.up-pro .up-btn-primary {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  box-shadow: 0 6px 16px rgba(124,58,237,0.4);
}
.up-pro .up-btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 22px rgba(124,58,237,0.55);
}
.up-badge-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(124,58,237,0.4);
}
.up-pro.current { border-color: var(--ok); }
.up-pro.current .up-btn-primary {
  background: var(--ok); box-shadow: 0 4px 12px rgba(54,201,138,0.4);
}

/* STUDIO em breve */
.up-studio { opacity: 0.85; }
.up-features-soon li { color: var(--muted); }
.up-features-soon li svg { color: var(--muted); }
.up-badge-soon {
  position: absolute; top: 14px; right: 14px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted);
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.up-waitlist {
  display: flex; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px;
}
.up-waitlist input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; padding: 4px 8px;
  min-width: 0;
}
.up-waitlist .up-btn-secondary {
  background: var(--panel); padding: 8px 12px; font-size: 12px;
  flex-shrink: 0;
}

/* Banner por que mais barato */
.up-banner {
  margin: 24px 36px 0; max-width: 1100px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(54,201,138,0.06) 0%, rgba(167,139,250,0.04) 100%);
  border: 1px solid rgba(54,201,138,0.2);
  border-radius: 14px;
  display: flex; gap: 16px; align-items: flex-start;
  margin-left: auto; margin-right: auto;
}
.up-banner-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: rgba(54,201,138,0.16); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.up-banner-icon svg { width: 18px; height: 18px; }
.up-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.up-banner-text strong { font-size: 14px; }
.up-banner-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.up-banner-text strong:not(:first-child), .up-banner-text p strong { color: var(--text); }
.up-compare { font-weight: 600; font-size: 13.5px !important; color: var(--text) !important; }
.up-compare s { color: var(--muted); }

/* Modal checkout */
.up-modal-checkout { max-width: 460px; text-align: left; }
.up-modal-checkout h2 { text-align: center; }
.up-modal-checkout > p { text-align: center; }
.up-checkout-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.up-field { display: flex; flex-direction: column; gap: 6px; }
.up-field label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); font-weight: 700;
}
.up-field label .req { color: var(--danger); }
.up-field label .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.up-field input {
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; font-size: 14px; outline: none;
  font-variant-numeric: tabular-nums;
}
.up-field input:focus { border-color: var(--accent-2); }
.up-checkout-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; margin-top: 4px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 9px;
}
.up-checkout-summary span { font-size: 13px; color: var(--muted); font-weight: 600; }
.up-checkout-summary strong { font-size: 16px; color: var(--text); }
.up-checkout-form .gal-modal-actions { margin-top: 6px; }
.up-checkout-form .gal-btn-primary {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  transition: box-shadow .15s, transform .1s;
}
.up-checkout-form .gal-btn-primary:hover {
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}
.up-checkout-form .gal-btn-primary:active { transform: translateY(0); }
.up-checkout-form .gal-btn-primary svg { width: 16px; height: 16px; }
.up-checkout-status { font-size: 12px; min-height: 16px; text-align: center; color: var(--muted); }
.up-checkout-status.error { color: var(--danger); }
.up-checkout-status.ok { color: var(--ok); }

/* FAQ */
.up-faq { padding: 30px 36px 50px; max-width: 760px; margin: 0 auto; }
.up-faq h2 {
  margin: 0 0 18px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px; font-weight: 700;
}
.up-faq details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 8px;
}
.up-faq details[open] { border-color: var(--accent-2); }
.up-faq summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.up-faq summary::after {
  content: '+'; font-size: 18px; color: var(--muted); font-weight: 400;
}
.up-faq details[open] summary::after { content: '−'; }
.up-faq p { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   ASSINATURA (.sub-*)
   ============================================================ */

.sub-content { padding: 0 36px 40px; max-width: 800px; }
.sub-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  margin-bottom: 14px;
}
.sub-current {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.sub-plan-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 700;
}
.sub-plan-info h2 {
  margin: 6px 0 4px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 26px; font-weight: 800;
}
.sub-plan-info p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 480px; }
.sub-plan-action .gal-btn-primary { display: inline-flex; align-items: center; gap: 6px; }

.sub-section-title {
  margin: 0 0 14px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.sub-section-title svg { width: 14px; height: 14px; }

.sub-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.sub-row:last-of-type { border-bottom: none; }
.sub-row label { color: var(--muted); font-weight: 600; }
.sub-row span { color: var(--text); font-weight: 600; }

.sub-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 12px;
}
.sub-actions .gal-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none;
}
.sub-actions svg { width: 13px; height: 13px; }

/* === Fatura pendente / em atraso === */
.pending-invoice {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(255,184,77,0.08);
  border-color: rgba(255,184,77,0.35);
  flex-wrap: wrap;
}
.pending-invoice.overdue {
  background: rgba(255,93,108,0.08);
  border-color: rgba(255,93,108,0.4);
}
.pending-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,184,77,0.18); color: #ffb84d;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pending-icon svg { width: 22px; height: 22px; }
.pending-invoice.overdue .pending-icon { background: rgba(255,93,108,0.18); color: var(--danger); }
.pending-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.pending-body h3 { margin: 0; font-size: 15px; color: var(--text); }
.pending-body > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pending-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.pending-meta strong { color: var(--text); font-weight: 600; }
.pending-action { flex-shrink: 0; }
.pending-action .gal-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
}
.pending-action svg { width: 14px; height: 14px; }

/* === Histórico de pagamentos === */
.pay-history-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pay-history-row:last-child { border-bottom: none; }
.pay-history-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-history-main strong { color: var(--text); font-size: 14px; }
.pay-history-meta { color: var(--muted); font-size: 12px; }
.pay-history-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.pay-history-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted);
  text-transform: uppercase;
}
.pay-status-received, .pay-status-confirmed, .pay-status-received_in_cash {
  background: rgba(54,201,138,0.14); color: var(--ok);
}
.pay-status-overdue {
  background: rgba(255,93,108,0.14); color: var(--danger);
}
.pay-status-pending {
  background: rgba(255,184,77,0.14); color: #ffb84d;
}
.pay-status-refunded {
  background: rgba(167,139,250,0.14); color: #a78bfa;
}
.pay-history-link {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--muted);
  text-decoration: none; transition: background .15s, color .15s;
}
.pay-history-link:hover { background: var(--panel-2); color: var(--text); }
.pay-history-link svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
  .sub-content { padding: 0 16px 30px; }
  .sub-current { flex-direction: column; align-items: flex-start; }
  .pending-invoice { flex-direction: column; }
  .pending-action { width: 100%; }
  .pending-action .gal-btn-primary { width: 100%; justify-content: center; }
}

/* === Configurações: zona de perigo === */
.cfg-danger-title { color: var(--danger); margin-top: 24px !important; }
.cfg-card-danger { border-color: rgba(255,93,108,0.25); }
.cfg-card-danger > div > strong { color: var(--danger); }

/* === Modal de exclusão de conta === */
.delete-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.delete-modal[hidden] { display: none; }
.delete-modal-content {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 14px;
}
.delete-modal-content h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 18px; color: var(--danger);
}
.delete-modal-content h2 svg { width: 22px; height: 22px; }
.delete-modal-content p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.delete-list {
  margin: 0; padding-left: 20px;
  color: var(--muted); font-size: 13.5px; line-height: 1.7;
}
.delete-list li { margin-bottom: 2px; }
.delete-confirm-label { font-size: 13px; color: var(--text); }
.delete-confirm-label strong { color: var(--danger); user-select: text; }
.delete-modal input[type="email"] {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}
.delete-modal input[type="email"]:focus { border-color: var(--accent-2); }
.delete-modal input[type="email"]::placeholder { color: var(--muted); opacity: 0.6; }
.delete-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px;
}
.delete-modal-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.delete-modal-actions button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.delete-modal-actions .gal-spinner {
  margin: 0;
  vertical-align: 0;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.delete-confirm-btn {
  background: var(--danger) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(255, 93, 108, 0.25) !important;
  transition: box-shadow .15s, transform .1s, filter .15s;
}
.delete-confirm-btn:hover {
  box-shadow: 0 4px 14px rgba(255, 93, 108, 0.4) !important;
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.delete-confirm-btn:active { transform: translateY(0); }
.delete-confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; filter: none; }
.cancel-sub-status {
  background: rgba(255, 93, 108, 0.1);
  border: 1px solid rgba(255, 93, 108, 0.3);
  color: var(--danger);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.delete-keep-info {
  background: rgba(54,201,138,0.08);
  border-left: 3px solid var(--ok);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px !important;
  color: var(--muted) !important;
}
.delete-keep-info strong { color: var(--ok); }

/* === Zona de perigo dentro do modal de perfil === */
.profile-danger-zone {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.profile-danger-warn {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,93,108,0.06);
  border: 1px solid rgba(255,93,108,0.2);
  border-radius: 10px; padding: 12px 14px;
}
.profile-danger-warn > svg {
  width: 20px; height: 20px; color: var(--danger);
  flex-shrink: 0; margin-top: 2px;
}
.profile-danger-warn > div { flex: 1; min-width: 0; }
.profile-danger-warn strong { display: block; font-size: 13.5px; color: var(--danger); margin-bottom: 4px; }
.profile-danger-warn p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.profile-btn-delete {
  background: transparent;
  border: 1px solid rgba(255,93,108,0.4);
  color: var(--danger);
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: background .15s, border-color .15s;
}
.profile-btn-delete:hover {
  background: rgba(255,93,108,0.1);
  border-color: var(--danger);
}
.profile-btn-delete svg { width: 14px; height: 14px; }

/* === Chat sessions modal === */
.sessions-list { max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sessions-loading, .sessions-empty {
  text-align: center; padding: 30px; color: var(--muted); font-size: 13px;
}
.session-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .12s;
}
.session-item:hover { border-color: var(--accent-2); }
.session-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.session-info strong {
  font-size: 13.5px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
}
.session-meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.session-preview {
  font-size: 12px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.session-load {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 7px 12px; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
}
.session-load:hover { border-color: var(--accent-2); }
.session-del {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.session-del:hover { color: var(--danger); background: rgba(255,93,108,0.08); }
.session-del svg { width: 14px; height: 14px; }

/* ============================================================
   LANDING PUBLICA (.land-*)
   ============================================================ */

.land-hero { padding: 60px 36px 40px; max-width: 1100px; margin: 0 auto; }
.land-pill {
  display: inline-flex; align-items: center;
  margin-bottom: 22px; padding: 8px 18px;
  border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.land-title {
  margin: 0 0 22px; font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--text);
}
.land-title-2 {
  background: linear-gradient(135deg, #ffffff 0%, #888 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-mode .land-title-2 {
  background: linear-gradient(135deg, #1a1d24 0%, #888 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.land-sub {
  margin: 0 0 32px; font-size: 17px; line-height: 1.55;
  color: var(--muted); max-width: 680px;
}
.land-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 50px; }
.land-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .15s;
}
.land-cta-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.land-cta-primary svg { width: 16px; height: 16px; }
.land-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all .15s;
}
.land-cta-secondary:hover { border-color: var(--accent); }
.land-cta-secondary svg { width: 14px; height: 14px; }

.land-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.land-stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px 26px;
  display: flex; flex-direction: column; gap: 4px;
}
.land-stat-num {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 36px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.land-stat-lbl { font-size: 13px; color: var(--muted); font-weight: 500; }

.land-section { padding: 60px 36px 40px; max-width: 1100px; margin: 0 auto; }
.land-section-head { margin-bottom: 32px; max-width: 720px; }
.land-section-head.center { text-align: center; margin: 0 auto 32px; }
.land-section-head h2 {
  margin: 0 0 12px; font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.land-section-head p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
.land-section-cta { text-align: center; margin-top: 28px; }
.land-pill-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; background: var(--panel);
  border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.land-pill-cta:hover { border-color: var(--accent); }
.land-pill-cta svg { width: 14px; height: 14px; }

.land-grid { padding: 0 !important; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1024px) { .land-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .land-grid { grid-template-columns: 1fr; } }

.land-premium-section {
  position: relative;
}
.land-premium-section::before {
  content: '';
  position: absolute; inset: -20px -36px;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
  border-radius: 24px;
}

.land-how {
  padding: 40px 36px; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 800px) { .land-how { grid-template-columns: 1fr; padding: 30px 16px; } }
.land-how-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.land-how-card.highlight {
  background: linear-gradient(135deg, rgba(255,184,77,0.06), rgba(255,184,77,0.02));
  border-color: rgba(255,184,77,0.3);
}
.land-tag {
  display: inline-block; align-self: flex-start;
  background: var(--bg); color: var(--text);
  padding: 6px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.land-tag.yellow { background: #ffb84d; color: #1a1d24; }
.land-how-card h3 {
  margin: 6px 0 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
}
.land-how-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.land-how-card strong { color: var(--text); }
.land-link { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; margin-top: 6px; }
.land-link:hover { text-decoration: underline; }

.land-tools { padding: 60px 36px 40px; max-width: 1100px; margin: 0 auto; }
.land-tools-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 28px;
}
@media (max-width: 800px) { .land-tools-grid { grid-template-columns: repeat(2, 1fr); } }
.land-tool {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.land-tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.land-tool svg {
  width: 22px; height: 22px;
  background: var(--panel-2); padding: 8px; border-radius: 9px;
  color: var(--accent-2); box-sizing: content-box; flex-shrink: 0;
}

.land-pricing { padding: 60px 36px; max-width: 1100px; margin: 0 auto; text-align: center; }
.land-pricing .land-cta-primary { margin-top: 20px; }

.land-footer {
  padding: 30px 36px; max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.land-foot-brand strong {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800; letter-spacing: 0.06em; font-size: 14px;
}
.land-foot-brand span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.land-foot-links { display: flex; gap: 18px; }
.land-foot-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.land-foot-links a:hover { color: var(--text); }

@media (max-width: 700px) {
  .land-hero { padding: 40px 16px 30px; }
  .land-section, .land-tools, .land-pricing { padding-left: 16px; padding-right: 16px; }
  .land-stats { grid-template-columns: 1fr; }
  .land-stat-num { font-size: 28px; }
}

/* ============================================================
   GERAR IMAGENS (.gen-*)
   ============================================================ */

.gen-hero { padding: 50px 36px 24px; max-width: 800px; margin: 0 auto; text-align: center; }
.gen-hero .gen-badge {
  background: rgba(167,139,250,0.14);
  border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin-bottom: 18px;
}
.gen-hero .gen-badge svg { width: 13px; height: 13px; }
.gen-hero h1 {
  margin: 0 0 12px; font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gen-hero p { margin: 0 auto; font-size: 16px; color: var(--muted); line-height: 1.55; max-width: 640px; }

.gen-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 30px 36px; max-width: 1100px; margin: 0 auto;
}
@media (max-width: 900px) { .gen-grid { grid-template-columns: repeat(2, 1fr); padding: 20px 16px; } }
@media (max-width: 600px) { .gen-grid { grid-template-columns: 1fr; } }

.gen-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.gen-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(167,139,250,0.14); color: #a78bfa;
  display: flex; align-items: center; justify-content: center;
}
.gen-icon svg { width: 20px; height: 20px; }
.gen-card h3 {
  margin: 4px 0 0; font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; font-weight: 700;
}
.gen-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.gen-cta {
  margin: 30px auto 60px; max-width: 800px;
  background: linear-gradient(135deg, rgba(167,139,250,0.08), rgba(124,58,237,0.04));
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 18px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center;
}
.gen-cta-text h2 {
  margin: 0 0 8px; font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 700;
}
.gen-cta-text p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.gen-waitlist { width: 100%; max-width: 460px; }
.gen-waitlist .gal-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: 12.5px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed); color: white;
}
.gen-waitlist .gal-btn-primary svg { width: 14px; height: 14px; }

/* ========================================
   TUTORIAL PAGE
   ======================================== */
.tut-hero {
  padding: 36px 36px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.tut-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin: 8px 0 8px;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tut-hero p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding: 12px 36px 60px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
}

.tut-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(150deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  filter: brightness(0.78) saturate(0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition:
    transform .35s cubic-bezier(.34, 1.4, .5, 1),
    filter .25s ease,
    box-shadow .35s ease,
    border-color .25s ease,
    background .35s ease;
  transform-style: preserve-3d;
  will-change: transform, filter;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Glow gradient atrás do card (revelado no hover) */
.tut-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg,
    rgba(167, 139, 250, 0.4),
    rgba(54, 201, 138, 0.2) 40%,
    rgba(124, 58, 237, 0.4));
  border-radius: 18px;
  opacity: 0;
  z-index: -1;
  filter: blur(14px);
  transition: opacity .35s ease;
}

.tut-card:hover,
.tut-card:focus-visible,
.tut-card:active,
.tut-card.tapped {
  filter: brightness(1.12) saturate(1.15);
  transform: translateY(-8px) translateZ(20px) scale(1.02);
  box-shadow: 0 22px 44px rgba(124, 58, 237, 0.32);
  border-color: var(--accent-2);
  background: linear-gradient(150deg, var(--panel-2) 0%, var(--panel) 100%);
}
.tut-card:hover::before,
.tut-card:focus-visible::before,
.tut-card:active::before,
.tut-card.tapped::before {
  opacity: 1;
}

.tut-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(124, 58, 237, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1),
              background .35s ease,
              box-shadow .35s ease;
}
.tut-card-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }

.tut-card:hover .tut-card-icon,
.tut-card:active .tut-card-icon,
.tut-card.tapped .tut-card-icon {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.32), rgba(124, 58, 237, 0.18));
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.tut-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tut-card-body h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tut-card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.tut-card-meta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.tut-card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Light mode */
body.light-mode .tut-card { filter: brightness(0.92) saturate(0.85); }
body.light-mode .tut-card:hover,
body.light-mode .tut-card:active,
body.light-mode .tut-card.tapped {
  filter: brightness(1.02) saturate(1.1);
  box-shadow: 0 22px 44px rgba(124, 58, 237, 0.18);
}

/* Modal de detalhe do tutorial */
.tut-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.tut-modal[hidden] { display: none; }
.tut-modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: tutModalIn .25s cubic-bezier(.34, 1.4, .5, 1);
}
@keyframes tutModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tut-modal-close {
  position: sticky;
  top: 14px;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: background .15s, color .15s;
}
.tut-modal-close:hover { background: var(--danger); color: white; border-color: var(--danger); }
.tut-modal-close svg { width: 18px; height: 18px; }

.tut-modal-body { padding: 0 32px 32px; margin-top: -36px; }

.tut-modal-head {
  display: flex; align-items: center; gap: 16px;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.tut-modal-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(124, 58, 237, 0.12));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}
.tut-modal-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.tut-modal-head h2 {
  margin: 0; font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
}
.tut-modal-intro {
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.tut-modal-sections {
  display: flex; flex-direction: column; gap: 20px;
}
.tut-section {
  padding: 16px 18px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .15s;
}
.tut-section:hover { border-color: var(--accent-2); }
.tut-section h3 {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tut-section-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.tut-section-body strong { color: var(--text); }
.tut-section-body code {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.tut-section-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tut-section-body a:hover { color: var(--accent); }

/* Bloco de prompt copiável dentro de um tópico (ex: prompt de enhance) */
.tut-copyblock {
  position: relative;
  margin: 12px 0 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.tut-pre {
  margin: 0;
  padding: 14px 16px;
  padding-top: 44px;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}
.tut-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.tut-copy-btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.tut-copy-btn.copied { background: var(--ok); }
.tut-copy-btn svg { width: 13px; height: 13px; }

/* Imagens ilustrativas dentro dos tópicos (prints de tela, fluxos, etc).
   Se o arquivo não existir, a tag é escondida via onerror inline (degradação
   graciosa — texto continua legível sem o print). */
.tut-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 14px auto 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

/* Botão "Entrar com Google" usado em login.html e cadastro.html */
.oauth-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  margin-bottom: 14px;
}
.oauth-btn:hover:not(:disabled) {
  background: #f6f7f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.oauth-btn:active:not(:disabled) { transform: translateY(1px); }
.oauth-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.oauth-btn svg { flex-shrink: 0; }

.oauth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tut-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform .15s, box-shadow .25s;
}
.tut-modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.5);
}
.tut-modal-cta svg { width: 16px; height: 16px; }

/* Gate de login no Tutorial (cards visíveis, conteúdo só pra logados) */
.tut-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.tut-gate-actions .tut-modal-cta {
  margin-top: 0;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.tut-gate-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.tut-gate-secondary:hover {
  border-color: var(--accent-2);
  color: var(--text);
  background: rgba(167, 139, 250, 0.06);
}
.tut-gate-secondary strong { color: var(--accent-2); margin-left: 4px; }
.tut-gate-note {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
}
.tut-gate-note svg { width: 14px; height: 14px; color: var(--ok); }

/* Tutorial — Responsivo */
@media (max-width: 768px) {
  .tut-hero { padding: 24px 18px 16px; }
  .tut-grid { grid-template-columns: 1fr; padding: 8px 16px 40px; gap: 14px; }
  .tut-card { padding: 18px; }
  .tut-card-icon { width: 48px; height: 48px; }
  .tut-card-icon svg { width: 24px; height: 24px; }
  .tut-modal { padding: 0; align-items: flex-end; }
  .tut-modal-card { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .tut-modal-body { padding: 0 20px 24px; }
  .tut-modal-head h2 { font-size: 18px; }
}

/* Sidebar — destaque do botão de tutorial */
.sidebar-footer .footer-item .icon-circle.accent {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(124, 58, 237, 0.12));
  color: var(--accent-2);
}
.sidebar-footer .footer-item.active {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.sidebar-footer .footer-item.active .icon-circle.accent {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(124, 58, 237, 0.25));
}

/* ========================================
   MOBILE COMPAT — fixes consolidados
   ======================================== */

/* Evita scroll horizontal indesejado em qualquer página */
html, body { overflow-x: hidden; max-width: 100vw; }

@media (max-width: 768px) {
  /* Topbar — hide login/signup buttons on mobile (sidebar tem CTA) */
  .topbar-signup, .topbar-login { display: none !important; }
  .topbar-status { display: none; }

  /* Search box reduz quando topbar tem outras coisas */
  .search-box { padding: 6px 10px; }
  .search-box input { font-size: 14px; min-height: 36px; }
  .search-box kbd { display: none; }

  /* Topbar geral mais compacta */
  .topbar { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .topbar-actions { gap: 6px; }
  .topbar-btn { width: 38px; height: 38px; }
  .topbar-avatar { width: 34px; height: 34px; font-size: 13px; }

  /* Galeria — força 1 coluna no advanced */
  .gal-adv-grid { grid-template-columns: 1fr !important; gap: 12px; padding: 12px; }

  /* Botões secundários e chips com tap target maior */
  .gal-chip,
  .gal-filter-chip,
  .gal-btn-ghost,
  .gal-btn-secondary {
    min-height: 38px;
    padding: 8px 14px;
  }

  /* Inputs de configuração com altura confortável pra digitar */
  .cfg-input-wrap input,
  .field input,
  .up-field input,
  input[type="email"],
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="tel"] {
    min-height: 44px;
    font-size: 16px; /* 16px previne zoom auto do iOS */
  }
  textarea { font-size: 16px; }

  /* Marca d'água — card de plano stack vertical */
  .wm-plan-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .wm-plan-row > * { width: 100%; }

  /* Cards de planos no upgrade — full width */
  .up-card { padding: 20px 16px; }

  /* Modais ocupam quase toda a tela */
  .gal-modal,
  .delete-modal-content,
  .up-modal-checkout {
    max-width: 100% !important;
    margin: 0;
    border-radius: 16px;
  }

  /* Hero/headers menos espaço */
  .hero-badge { font-size: 10px; padding: 4px 10px; }
  h1 { font-size: 22px !important; line-height: 1.3; }

  /* Footer da landing — texto centralizado pra evitar overflow */
  .land-footer { text-align: center; padding: 20px 16px; }

  /* Sidebar full-overlay quando aberta no mobile (já existente, garantindo) */
  .sidebar-collapsed .sidebar { transform: translateX(-100%); }
}

/* ========================================
   TOPBAR HELP BUTTON (atalho pro Tutorial)
   ======================================== */
.topbar-help {
  position: relative;
  color: var(--accent-2);
}
.topbar-help svg {
  width: 18px; height: 18px;
  stroke-width: 2;
}
.topbar-help:hover {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.4);
}
/* Pontinho de "novo" sutilmente piscando */
.topbar-help::after {
  content: '';
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 2px var(--panel), 0 0 8px rgba(167, 139, 250, 0.6);
  animation: topbarHelpPulse 2s ease-in-out infinite;
}
@keyframes topbarHelpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================
   LANDING — HERO GUIDE HINT (Primeira vez? Guia →)
   ======================================== */
.land-guide-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .15s;
}
.land-guide-hint:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}
.land-guide-hint svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

/* ========================================
   LANDING — HERO GLOW (sutil, visual polish)
   ======================================== */
.land-hero {
  position: relative;
  overflow: hidden;
}
.land-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(167, 139, 250, 0.18) 0%,
    rgba(124, 58, 237, 0.08) 30%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.land-hero > * { position: relative; z-index: 1; }
body.light-mode .land-hero::before {
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(54, 201, 138, 0.06) 30%,
    transparent 70%
  );
}

/* ========================================
   MOBILE BOTTOM NAVIGATION (estilo app nativo)
   ======================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: none; /* ocultado em desktop, mostrado em mobile via media query */
  align-items: flex-end;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(13, 14, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
body.light-mode .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  min-width: 56px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: color .15s, background .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.mbn-item svg { width: 22px; height: 22px; stroke-width: 2; }
.mbn-item:hover, .mbn-item:active { color: var(--text); }
.mbn-item.active { color: var(--accent-2); }
.mbn-item.active svg { stroke: var(--accent-2); }

/* Botão central destacado (FAB style) */
.mbn-center { padding: 0 12px 8px; min-width: 64px; }
.mbn-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  margin-top: -22px; /* eleva em relação aos outros */
  margin-bottom: 4px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
  transition: transform .2s cubic-bezier(.34, 1.4, .5, 1);
}
.mbn-center:hover .mbn-fab, .mbn-center:active .mbn-fab {
  transform: scale(1.08);
}
.mbn-center .mbn-fab svg { width: 24px; height: 24px; stroke: white; }
.mbn-center.active .mbn-fab {
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
}

/* Mostrar apenas em mobile + esconder sidebar (bottom nav substitui) */
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  .main {
    padding-bottom: 100px !important;
    margin-left: 0 !important;       /* sobrescreve o 64px do bloco antigo */
    width: 100% !important;
  }
  .sidebar {
    display: none !important;        /* esconde totalmente em mobile */
  }
  body { --sidebar-w: 0 !important; }
}

/* Esconder em telas com sidebar aberta full screen (raro) */
body.sidebar-open .mobile-bottom-nav { display: none; }

/* === Páginas de auth (login/cadastro) — mobile fullscreen === */
@media (max-width: 600px) {
  body:has(.auth-wrap) {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .auth-wrap {
    max-width: 100% !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 32px 22px !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .auth-wrap h1 { font-size: 26px !important; }
  .auth-wrap .field input {
    min-height: 48px !important;
    font-size: 16px !important;  /* evita zoom auto do iOS */
    padding: 12px 16px !important;
  }
  .auth-wrap .submit-btn {
    min-height: 50px !important;
    font-size: 15px !important;
  }
  .auth-brand .b1, .auth-brand .b2 { font-size: 26px !important; }
  .auth-brand .b-amp { font-size: 20px !important; }
}

/* === Cards 2-col em mobile (em vez de 1-col) — mais visual === */
@media (max-width: 600px) {
  .gal-grid,
  .land-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
  }
}
@media (max-width: 380px) {
  .gal-grid,
  .land-grid {
    grid-template-columns: 1fr !important;
  }
}

/* === Hero typography melhorada em mobile === */
@media (max-width: 768px) {
  .land-hero {
    padding: 24px 18px 32px;
  }
  .land-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.15 !important;
    margin: 12px 0 16px !important;
  }
  .land-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .land-cta-row {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .land-cta-row a {
    width: 100%;
    justify-content: center;
  }
  .land-stats {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-top: 24px;
  }
  .land-stat {
    padding: 14px 16px;
  }
  .land-stat-num {
    font-size: 24px !important;
  }
}

/* Telas muito pequenas (iPhone SE 1ª gen, Galaxy S5) */
@media (max-width: 380px) {
  .topbar { padding: 10px 12px; }
  .topbar-btn { width: 36px; height: 36px; }
  .topbar-avatar { width: 32px; height: 32px; font-size: 12px; }
  h1 { font-size: 20px !important; }
  .tut-card { padding: 16px; }
  .tut-card-icon { width: 44px; height: 44px; }
  .tut-card-icon svg { width: 22px; height: 22px; }
  .tut-card-body h3 { font-size: 15px; }
  .tut-card-body p { font-size: 13px; }
}
