/* ============================================================
   IbraClube – Folha de estilos global
   (extraído e organizado do protótipo HTML)
============================================================ */

/* ── RESET & TOKENS ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:       #1B4F9B;
  --blue-dark:  #13397A;
  --blue-mid:   #2460B5;
  --blue-light: #E8EFF9;
  --orange:     #F07B23;
  --orange-dk:  #D4651A;
  --orange-lt:  #FEF0E6;
  --white:      #FFFFFF;
  --bg:         #F4F6FB;
  --card:       #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1A202C;
  --muted:      #64748B;
  --faint:      #94A3B8;
  --success:    #059669;
  --success-lt: #D1FAE5;
  --warn:       #B45309;
  --warn-lt:    #FEF3C7;
  --danger:     #DC2626;
  --danger-lt:  #FEE2E2;
  --gold:       #D97706;
  --gold-lt:    #FEF3C7;
  --silver:     #6B7280;
  --silver-lt:  #F3F4F6;
  --bronze:     #92400E;
  --bronze-lt:  #FDE68A44;
  --r-sm:       8px;
  --r-md:       12px;
  --r-lg:       16px;
  --r-xl:       22px;
  --shadow:     0 2px 12px rgba(27,79,155,.10);
  --shadow-lg:  0 8px 32px rgba(27,79,155,.15);
  --font:       'Nunito', sans-serif;
  --font-body:  'Nunito Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ──────────────────────────────────────────── */
.hidden  { display: none !important; }
.flex    { display: flex; }
.col     { flex-direction: column; }
.center  { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.w-full  { width: 100%; }
.text-center { text-align: center; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.p-16  { padding: 16px; }

/* ── BOTÕES ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 800;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: .02em;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(240,123,35,.35);
}
.btn-orange:hover { background: var(--orange-dk); box-shadow: 0 4px 18px rgba(240,123,35,.45); }
.btn-blue   { background: var(--blue); color: var(--white); box-shadow: 0 4px 14px rgba(27,79,155,.25); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost  { background: rgba(255,255,255,.15); color: white; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-danger { background: var(--danger); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm   { font-size: 12px; padding: 6px 14px; }
.btn-md   { font-size: 14px; padding: 11px 22px; }
.btn-lg   { font-size: 15px; padding: 14px 28px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── INPUTS ─────────────────────────────────────────────── */
.inp {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.inp:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,79,155,.12); }
.inp.is-error { border-color: var(--danger); }
.inp-label {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.inp-group { margin-bottom: 14px; }
.inp-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

/* ── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

/* ── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 8px; font-size: 11px; font-weight: 700;
  padding: 3px 8px; font-family: var(--font);
}
.badge-pending { background: var(--warn-lt);    color: var(--warn); }
.badge-ok      { background: var(--success-lt); color: var(--success); }
.badge-danger  { background: var(--danger-lt);  color: var(--danger); }
.badge-master  { background: var(--orange);     color: white; }
.badge-vendedor { background: #2D9E5F;          color: white; }

/* ── TIER BADGES ────────────────────────────────────────── */
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 20px; font-family: var(--font); font-weight: 700;
  padding: 3px 10px; font-size: 12px;
}
.tier-ouro   { background: var(--gold-lt);   color: var(--gold); }
.tier-prata  { background: var(--silver-lt); color: var(--silver); }
.tier-bronze { background: var(--bronze-lt); color: var(--bronze); }

/* ── ALERTAS ────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.alert-success { background: var(--success-lt); color: var(--success); border: 1px solid #6EE7B7; }
.alert-danger  { background: var(--danger-lt);  color: var(--danger);  border: 1px solid #FCA5A5; }
.alert-warn    { background: var(--warn-lt);    color: var(--warn);    border: 1px solid #FCD34D; }
.alert-info    { background: var(--blue-light); color: var(--blue);    border: 1px solid #BFDBFE; }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.prog-wrap { background: rgba(255,255,255,.15); border-radius: 6px; height: 7px; overflow: hidden; }
.prog-bar  { height: 100%; border-radius: 6px; background: var(--orange); transition: width .6s ease; }
.prog-wrap-light { background: var(--border); }
.prog-bar-blue { background: var(--blue); }

/* ── NAVBAR / LAYOUT ────────────────────────────────────── */
.site-nav {
  background: var(--blue);
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 900; color: white; font-size: 14px;
}
.nav-logo-text { font-family: var(--font); font-weight: 900; font-size: 18px; color: white; }
.nav-logo-text span { color: var(--orange); }

/* ── APP SHELL ──────────────────────────────────────────── */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
}
.app-header {
  background: var(--blue);
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: sticky; top: 0; z-index: 100;
}
.app-content { flex: 1; padding-bottom: 70px; }

/* ── BOTTOM NAV ─────────────────────────────────────────── */
.app-nav {
  height: 60px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
}
.nav-tab {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; background: none; border: none;
  font-family: var(--font-body); font-size: 10px; color: var(--faint);
  font-weight: 600; padding: 6px 0; transition: color .2s;
  text-decoration: none; position: relative;
}
.nav-tab.active, .nav-tab:focus { color: var(--orange); }
.nav-tab .tab-icon { font-size: 20px; line-height: 1; }
.nav-tab::after {
  content: ''; position: absolute; bottom: 0;
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--orange); opacity: 0; transition: opacity .2s;
}
.nav-tab.active::after { opacity: 1; }

/* ── HEADER LOGO ────────────────────────────────────────── */
.h-logo { display: flex; align-items: center; gap: 8px; }
.h-logo-ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 900; color: white; font-size: 13px;
}
.h-logo-text { font-family: var(--font); font-weight: 900; font-size: 16px; color: white; }
.h-logo-text span { color: var(--orange); }
.h-logo-sub { font-size: 10px; color: rgba(255,255,255,.55); }

/* ── HERO PONTOS ────────────────────────────────────────── */
.pts-hero {
  background: linear-gradient(150deg, var(--blue-dark), var(--blue));
  padding: 28px 20px 32px; text-align: center;
}
.pts-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.65); margin-bottom: 4px; font-family: var(--font); font-weight: 700; }
.pts-value { font-family: var(--font); font-weight: 900; font-size: 52px; color: white; line-height: 1; }
.pts-unit  { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 14px; }

/* ── LISTAS ─────────────────────────────────────────────── */
.list-item {
  background: white; border-bottom: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.list-item:last-child { border-bottom: none; }
.list-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* ── AVATAR ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 800; color: var(--blue);
  flex-shrink: 0;
}

/* ── STAT CARDS ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.stat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.stat-val { font-family: var(--font); font-weight: 900; font-size: 22px; color: var(--blue); }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── MASTER PAINEL ──────────────────────────────────────── */
.master-header {
  background: #111827;
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  position: sticky; top: 0; z-index: 100;
}
.master-tabs {
  display: flex; background: #1F2937; border-bottom: 1px solid #374151;
  overflow-x: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0;
  position: sticky; top: 56px; z-index: 99;
}
.master-tabs::-webkit-scrollbar { display: none; }
.master-tab {
  padding: 12px 18px; border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 700; white-space: nowrap;
  color: rgba(255,255,255,.45); border-bottom: 2px solid transparent;
  transition: color .2s; text-decoration: none; display: inline-block;
}
.master-tab:hover { color: rgba(255,255,255,.7); }
.master-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.unit-filter {
  background: #1F2937; padding: 10px 14px;
  display: flex; gap: 8px; overflow-x: auto; flex-shrink: 0;
}
.unit-filter::-webkit-scrollbar { display: none; }
.unit-chip {
  padding: 5px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.15);
  font-family: var(--font); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.55);
  text-decoration: none; display: inline-block;
}
.unit-chip.active { background: var(--orange); color: white; border-color: var(--orange); }

/* ── NOTIF DOT ──────────────────────────────────────────── */
.notif-dot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--orange); color: white;
  font-size: 10px; font-weight: 900; font-family: var(--font);
  padding: 0 4px; margin-left: 5px;
}

/* ── UPLOAD ZONE ────────────────────────────────────────── */
.upload-zone {
  display: block; width: 100%;
  border: 2px dashed var(--border); border-radius: var(--r-lg);
  padding: 28px 16px; text-align: center; cursor: pointer;
  background: var(--bg); transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.has-file { border-color: var(--blue); background: var(--blue-light); }
.upload-zone .upload-icon { font-size: 32px; margin-bottom: 6px; }
.upload-zone p   { font-size: 13px; color: var(--muted); }
.upload-zone small { font-size: 11px; color: var(--faint); }

/* ── PILL TABS ──────────────────────────────────────────── */
.pill-tabs { display: flex; background: var(--bg); border-radius: var(--r-md); padding: 3px; gap: 2px; }
.pill-tab {
  flex: 1; padding: 8px 4px; border: none; border-radius: 9px;
  font-family: var(--font); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .2s, color .2s; background: transparent; color: var(--muted);
  text-decoration: none; text-align: center; display: block;
}
.pill-tab.active { background: white; color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ── RANKING ────────────────────────────────────────────── */
.rank-item {
  background: white; border-bottom: 1px solid var(--border);
  padding: 11px 16px; display: flex; align-items: center; gap: 10px;
}
.rank-you { border: 2px solid var(--orange); background: var(--orange-lt); border-radius: var(--r-md); }

/* ── CATÁLOGO ───────────────────────────────────────────── */
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.cat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px 12px; display: flex; flex-direction: column;
}
.cat-icon { font-size: 32px; text-align: center; margin-bottom: 8px; }
.cat-name { font-family: var(--font); font-weight: 800; font-size: 12px; line-height: 1.3; margin-bottom: 4px; }
.cat-type { font-size: 10px; color: var(--faint); text-transform: capitalize; margin-bottom: 8px; }
.cat-pts  { font-family: var(--font); font-weight: 900; font-size: 16px; color: var(--orange); }

/* ── PENDING ALERT ──────────────────────────────────────── */
.pending-alert {
  background: var(--warn-lt); border-bottom: 1px solid #FCD34D;
  padding: 9px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--warn); font-weight: 600;
}
.pending-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }

/* ── TABELAS ────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: var(--bg); padding: 10px 14px; text-align: left; font-family: var(--font); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg); }

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: white; font-family: var(--font); font-weight: 700;
  font-size: 13px; padding: 10px 20px; border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3); z-index: 999; white-space: nowrap;
  opacity: 1; transition: opacity .3s;
}
.toast.hide { opacity: 0; pointer-events: none; }

/* ── SEÇÃO DA LANDING ───────────────────────────────────── */
.section-tag {
  font-family: var(--font);
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 6px; text-align: center;
}
.section-title {
  font-family: var(--font);
  font-size: clamp(22px, 6vw, 32px); font-weight: 900;
  color: var(--text); text-align: center; margin-bottom: 6px;
}
.section-sub {
  font-size: 14px; color: var(--muted);
  text-align: center; margin-bottom: 32px;
  max-width: 360px; margin-left: auto; margin-right: auto;
}

/* ── TOGGLE SWITCH ──────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle {
  position: relative; width: 44px; height: 24px;
  display: inline-block; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #CBD5E1; border-radius: 24px; transition: .2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .2s;
}
.toggle input:checked + .toggle-slider { background: var(--orange); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── PAGINAÇÃO ──────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; }
.page-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: white; font-family: var(--font); font-size: 13px; font-weight: 700;
  color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn:hover:not(.active) { background: var(--bg); }

/* ══════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════ */
.auth-page{
  min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(240,123,35,.22), transparent 60%),
    linear-gradient(160deg,#0F3370 0%,var(--blue) 55%,#2A6AC4 100%);
}
.auth-card{width:100%;max-width:410px;background:#fff;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--shadow-lg)}
.auth-hero-top{
  background:linear-gradient(150deg,var(--blue-dark),var(--blue));
  padding:34px 24px 26px;text-align:center;position:relative;overflow:hidden;
}
.auth-hero-top::before{content:'';position:absolute;inset:0;opacity:.5;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");}
.auth-hero-top>*{position:relative;z-index:1}
.auth-logo{height:52px;width:auto;margin:0 auto 8px;display:block;filter:drop-shadow(0 6px 18px rgba(0,0,0,.25))}
.auth-sub{font-size:13px;color:rgba(255,255,255,.8)}
.auth-body{padding:26px 24px 30px}

/* Cabeçalho de painel: identificação do usuário */
.panel-user{display:flex;align-items:center;gap:10px}
.panel-user-info{text-align:right;line-height:1.2}
.panel-user-name{font-family:var(--font);font-size:12.5px;font-weight:800;color:#fff}
.panel-user-role{font-size:10.5px;color:rgba(255,255,255,.65)}

/* ══════════════════════════════════════════════════════════
   DIRETÓRIO DE PINTORES (/pintores)
══════════════════════════════════════════════════════════ */
.dir-hero {
  position: relative; overflow: hidden; text-align: center; padding: 40px 22px 56px;
  background:
    radial-gradient(700px 320px at 50% -20%, rgba(240,123,35,.28), transparent 62%),
    linear-gradient(160deg, #0F3370 0%, var(--blue) 55%, #2A6AC4 100%);
}
.dir-hero::before {
  content:''; position:absolute; inset:0; opacity:.5;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.dir-hero > * { position: relative; z-index: 1; }
.dir-title { font-family:var(--font); font-weight:900; font-size:clamp(26px,6vw,36px); color:#fff; margin-bottom:8px; letter-spacing:-.01em; }
.dir-sub { font-size:14px; color:rgba(255,255,255,.82); max-width:440px; margin:0 auto; line-height:1.55; }
.dir-wrap { max-width:840px; margin:0 auto; padding:0 18px 60px; }
.dir-search {
  display:flex; gap:8px; background:#fff; border-radius:var(--r-xl); padding:10px;
  box-shadow:var(--shadow-lg); margin-top:-32px; position:relative; z-index:2; margin-bottom:8px;
}
.dir-search .inp { border:none; background:var(--bg); }
.dir-count { font-size:12.5px; color:var(--muted); margin:6px 2px 16px; font-weight:600; }
.dir-grid { display:grid; grid-template-columns:1fr; gap:12px; }
.dir-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--r-xl);
  padding:16px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow);
  transition:transform .18s, box-shadow .18s; text-decoration:none; color:inherit;
}
.dir-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.dir-av {
  width:64px; height:64px; border-radius:50%; padding:3px; flex-shrink:0;
  background:linear-gradient(135deg, var(--orange), #FFD9B8);
}
.dir-av > * { width:100% !important; height:100% !important; border:2px solid #fff; }
.dir-name { font-family:var(--font); font-weight:800; font-size:15.5px; color:var(--text); }
.dir-loc { font-size:12.5px; color:var(--muted); margin-top:2px; }
.dir-spec { font-size:12.5px; color:var(--blue); margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dir-go { font-size:12px; color:var(--blue); font-weight:800; margin-top:7px; }
@media (min-width:640px){ .dir-grid { grid-template-columns:1fr 1fr; } }

/* ══════════════════════════════════════════════════════════
   VITRINE PÚBLICA DO PINTOR
══════════════════════════════════════════════════════════ */
.vit-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 18px 22px 64px;
  background:
    radial-gradient(620px 300px at 50% -20%, rgba(240,123,35,.30), transparent 62%),
    linear-gradient(160deg, #0F3370 0%, var(--blue) 55%, #2A6AC4 100%);
}
.vit-hero::before {
  content:''; position:absolute; inset:0; opacity:.5;
  background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.vit-hero > * { position: relative; z-index: 1; }
.vit-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px; }
.vit-avatar-wrap {
  width: 116px; height: 116px; margin: 8px auto 14px; border-radius: 50%;
  padding: 4px; background: linear-gradient(135deg, var(--orange), #FFD9B8);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.vit-avatar-wrap > * { width: 100% !important; height: 100% !important; border: 3px solid #fff; }
.vit-name { font-family: var(--font); font-weight: 900; font-size: 24px; color:#fff; line-height:1.1; margin-bottom: 8px; letter-spacing:-.01em; }
.vit-tier {
  display:inline-flex; align-items:center; gap:6px;
  background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3);
  color:#fff; font-family:var(--font); font-weight:800; font-size:13px;
  padding:6px 16px; border-radius:30px;
}
.vit-loc { font-size:13px; color:rgba(255,255,255,.82); margin-top:10px; }

.vit-body { padding: 0 18px 24px; margin-top: -40px; position: relative; z-index: 2; }
.vit-card {
  background:#fff; border:1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 18px; margin-bottom: 14px;
}
.vit-card-title {
  font-family:var(--font); font-weight:800; font-size:12px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;
  display:flex; align-items:center; gap:7px;
}
.vit-bio { font-size:14.5px; color:var(--text); line-height:1.65; }
.vit-chips { display:flex; flex-wrap:wrap; gap:7px; }
.vit-chip {
  background:var(--blue-light); color:var(--blue); font-size:12.5px; font-weight:700;
  padding:6px 13px; border-radius:18px;
}
.vit-gallery { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.vit-photo {
  border-radius: var(--r-lg); overflow:hidden; cursor:pointer; position:relative;
  box-shadow: var(--shadow); aspect-ratio: 1/1; background:var(--bg);
}
.vit-photo img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .35s ease; }
.vit-photo:hover img { transform: scale(1.07); }
.vit-photo-cap {
  position:absolute; left:0; right:0; bottom:0; padding:14px 10px 7px;
  background:linear-gradient(transparent, rgba(0,0,0,.65)); color:#fff; font-size:11px; font-weight:600;
}
.vit-wpp-bar { position:sticky; bottom:0; padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px)); background:rgba(255,255,255,.92); backdrop-filter:blur(8px); border-top:1px solid var(--border); }
.btn-wpp { background:#25D366; color:#fff; box-shadow:0 4px 14px rgba(37,211,102,.4); }
.btn-wpp:hover { background:#1FBA59; }
.vit-foot { background:var(--blue-dark); padding:18px; text-align:center; }
.vit-empty { text-align:center; padding:30px 16px; color:var(--muted); }

/* lightbox */
.vit-lb { position:fixed; inset:0; background:rgba(0,0,0,.9); z-index:1000; display:none; align-items:center; justify-content:center; padding:20px; }
.vit-lb.open { display:flex; }
.vit-lb img { max-width:100%; max-height:90vh; border-radius:10px; }
.vit-lb-close { position:absolute; top:16px; right:20px; color:#fff; font-size:34px; cursor:pointer; line-height:1; background:none; border:none; }

/* ══════════════════════════════════════════════════════════
   PAINEL DO PINTOR — versão repaginada
══════════════════════════════════════════════════════════ */
.pp-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(240,123,35,.28), transparent 60%),
    linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 55%, #2A6AC4 100%);
  padding: 26px 20px 64px; text-align: center;
}
.pp-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.pp-hero > * { position: relative; z-index: 1; }
.pp-hero-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); font-family: var(--font); font-weight: 700; }
.pp-hero-value { font-family: var(--font); font-weight: 900; font-size: 54px; color: #fff; line-height: 1; margin: 4px 0 2px; }
.pp-hero-unit  { font-size: 12px; color: rgba(255,255,255,.65); margin-bottom: 12px; }

/* cartão flutuante de progresso, sobreposto ao hero */
.pp-card-float {
  margin: -48px 16px 0; position: relative; z-index: 5;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 18px;
}
.pp-prog-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pp-prog-label { font-family: var(--font); font-size: 13px; font-weight: 800; color: var(--text); }
.pp-prog-pct { font-size: 12px; color: var(--muted); font-weight: 700; }

/* botões de ação rápida */
.pp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.pp-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px; border-radius: var(--r-lg); text-decoration: none;
  font-family: var(--font); font-weight: 800; font-size: 13px;
  transition: transform .15s, box-shadow .15s;
}
.pp-action:active { transform: scale(.97); }
.pp-action-icon { font-size: 24px; }
.pp-action-primary { background: linear-gradient(135deg, var(--orange), var(--orange-dk)); color: #fff; box-shadow: 0 4px 14px rgba(240,123,35,.35); }
.pp-action-secondary { background: #fff; border: 1px solid var(--border); color: var(--blue); box-shadow: var(--shadow); }

/* mini-stats com ícone */
.pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 4px; }
.pp-stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.pp-stat-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--blue-light); }
.pp-stat-val { font-family: var(--font); font-weight: 900; font-size: 19px; line-height: 1; color: var(--blue); }
.pp-stat-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }

.pp-section-title { font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--text); margin: 8px 0 10px; display: flex; align-items: center; justify-content: space-between; }
.pp-section-title a { font-size: 12px; color: var(--blue); font-weight: 700; text-decoration: none; }

/* ── PAINÉIS (master/admin) — cabeçalhos de seção ───────── */
.panel-head { padding: 18px 16px 10px; }
.panel-title {
  font-family: var(--font); font-weight: 800; font-size: 17px;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.panel-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.panel-body { padding: 0 16px 24px; }

/* KPI cards (admin) tema claro */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.kpi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.kpi-card::after {
  content: ''; position: absolute; right: -10px; top: -10px;
  width: 56px; height: 56px; border-radius: 50%; opacity: .10;
  background: var(--accent, var(--blue));
}
.kpi-icon { font-size: 20px; margin-bottom: 8px; }
.kpi-val  { font-family: var(--font); font-weight: 900; font-size: 24px; line-height: 1; color: var(--accent, var(--blue)); }
.kpi-lbl  { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

.unit-perf-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.unit-perf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.unit-perf-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* ── LOGOS ──────────────────────────────────────────────── */
.brand-logo-img { height: 34px; width: auto; display: block; }
.brand-logo-nav { height: 38px; width: auto; display: block; }
.lp-nav-tag {
  font-family: var(--font); font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,.82); white-space: nowrap;
  padding-left: 14px; border-left: 1px solid rgba(255,255,255,.28);
}
.lp-nav-ibratin { height: 30px; width: auto; display: block; }
@media (max-width: 720px) {
  .lp-nav-tag { display: none; }
}
@media (max-width: 420px) {
  .lp-nav-ibratin { height: 24px; }
}
.brand-logo-hero { height: 64px; width: auto; display: block; margin: 0 auto 22px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.brand-logo-footer { height: 38px; width: auto; display: block; margin: 0 auto 10px; opacity: .95; }

/* ══════════════════════════════════════════════════════════
   LANDING PAGE — versão repaginada
══════════════════════════════════════════════════════════ */
.lp-nav {
  background: rgba(27,79,155,.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  padding: 0 22px; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.lp-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(240,123,35,.22), transparent 60%),
    linear-gradient(160deg, #0F3370 0%, var(--blue) 45%, #2A6AC4 100%);
  padding: 56px 22px 70px; text-align: center;
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-hero > * { position: relative; z-index: 1; }
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px; padding: 7px 16px;
  font-family: var(--font); font-size: 12px; font-weight: 800;
  color: #fff; letter-spacing: .04em; margin-bottom: 22px;
  text-transform: uppercase;
}
.lp-hero-title {
  font-family: var(--font); font-weight: 900;
  font-size: clamp(32px, 9vw, 54px); color: #fff;
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px;
}
.lp-hero-title span { color: var(--orange); }
.lp-hero-sub {
  font-size: clamp(15px,4vw,17px); color: rgba(255,255,255,.82);
  max-width: 420px; margin: 0 auto 30px; line-height: 1.6;
}
.lp-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* faixa de números */
.lp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 480px; margin: 34px auto 0;
  gap: 10px;
}
.lp-stat {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg); padding: 14px 8px; text-align: center;
}
.lp-stat-num { font-family: var(--font); font-weight: 900; font-size: clamp(20px,6vw,26px); color: #fff; line-height: 1; }
.lp-stat-lbl { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 5px; }

.lp-section { padding: 56px 22px; }
.lp-section-alt {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(240,123,35,.16), transparent 60%),
    linear-gradient(160deg, #0F3370 0%, var(--blue) 55%, #2A6AC4 100%);
}
.lp-section-alt::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-section-alt > * { position: relative; z-index: 1; }
.lp-section-alt .section-title { color: #fff; }
.lp-section-alt .section-tag { color: rgba(255,255,255,.6); }
.lp-section-alt .section-sub { color: rgba(255,255,255,.65); }

/* steps repaginados */
.lp-steps { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.lp-step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 20px; display: flex; gap: 18px; align-items: flex-start;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.lp-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-step-num {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  color: #fff; font-family: var(--font); font-weight: 900; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
}
.lp-step-num.orange { background: linear-gradient(135deg, var(--orange), var(--orange-dk)); }
.lp-step-title { font-family: var(--font); font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.lp-step-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* tiers */
.lp-tiers { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }
.lp-tier {
  border-radius: var(--r-xl); padding: 22px 20px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16);
  transition: transform .2s;
}
.lp-tier:hover { transform: translateY(-2px); }
.lp-tier-icon { font-size: 38px; }
.lp-tier-name { font-family: var(--font); font-weight: 900; font-size: 19px; color: #fff; }
.lp-tier-range { font-size: 13px; color: rgba(255,255,255,.7); }
.lp-tier-perk { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* benefícios */
.lp-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 0 auto; }
.lp-benefit {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px 16px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.lp-benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-benefit-icon { font-size: 34px; margin-bottom: 10px; }
.lp-benefit-title { font-family: var(--font); font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.lp-benefit-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* CTA */
.lp-cta {
  background:
    radial-gradient(800px 360px at 50% -10%, rgba(255,255,255,.20), transparent 60%),
    linear-gradient(135deg, var(--orange-dk), var(--orange));
  padding: 60px 22px; text-align: center; position: relative; overflow: hidden;
}
.lp-cta::before {
  content: ''; position: absolute; inset: 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.lp-cta > * { position: relative; z-index: 1; }
.lp-cta-title { font-family: var(--font); font-weight: 900; font-size: clamp(26px,7vw,38px); color: #fff; margin-bottom: 10px; }
.lp-cta-sub { font-size: 15px; color: rgba(255,255,255,.88); margin: 0 auto 28px; max-width: 340px; }

/* footer */
/* Marcas do Grupo Ibratin — dentro do rodapé azul */
.marcas-grupo {
  padding: 4px 0 22px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.14);
  margin-bottom: 22px;
}
.marcas-title {
  font-family: var(--font); font-weight: 800; font-size: 11px;
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 16px;
}
.marcas-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 30px 34px; flex-wrap: wrap;
}
.marca-logo {
  height: 40px; width: auto; max-width: 170px; object-fit: contain;
  opacity: .9; transition: opacity .2s;
}
.marca-logo:hover { opacity: 1; }
@media (max-width: 640px) {
  .marcas-logos { gap: 22px 26px; }
  .marca-logo { height: 32px; max-width: 130px; }
}
@media (max-width: 380px) {
  .marca-logo { height: 28px; max-width: 110px; }
}

.lp-footer {
  background:
    radial-gradient(700px 300px at 50% -12%, rgba(240,123,35,.10), transparent 60%),
    var(--blue-dark);
  padding: 36px 22px 28px; text-align: center;
}
.lp-footer-by { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.lp-footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }
.lp-footer-links { margin-top: 16px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.lp-footer-links a { color: rgba(255,255,255,.3); font-size: 11px; text-decoration: underline; }

/* animação de entrada */
@keyframes lpFade { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }
.lp-fade { animation: lpFade .55s ease both; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .app-shell { box-shadow: var(--shadow-lg); }
  .catalog-grid { grid-template-columns: 1fr 1fr 1fr; }
  .lp-tiers { grid-template-columns: repeat(3, 1fr); }
  .lp-benefits { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 479px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
