/* =========================================================
   Vendix Social · Design System
   Laranja · Branco · Preto
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --orange-50:  #FFF4EC;
  --orange-100: #FFE3CC;
  --orange-200: #FFC89A;
  --orange-400: #FF8A1F;
  --orange-500: #FF6A00;
  --orange-600: #F04E00;
  --orange-700: #C93C00;
  --red-700:    #C41E0A;
  --grad: linear-gradient(135deg, #FFB21A 0%, #FF6A00 48%, #E8380D 100%);
  --grad-soft: linear-gradient(135deg, #FFF4EC 0%, #FFE9D9 100%);

  --black: #0B0B0C;
  --ink-900: #141416;
  --ink-800: #1C1C1F;
  --ink-700: #2A2A2E;
  --ink-500: #5E5E66;
  --ink-400: #8A8A93;
  --ink-300: #B9B9C0;
  --line: #ECEAE6;
  --line-strong: #DEDBD5;
  --bg: #F7F6F3;
  --white: #FFFFFF;

  --green: #16A34A; --green-bg: #EAF7EF;
  --blue:  #2563EB; --blue-bg:  #EBF1FE;
  --red:   #DC2626; --red-bg:   #FDECEC;
  --gray-bg: #F1F0ED;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,16,18,.04), 0 1px 1px rgba(16,16,18,.03);
  --shadow: 0 1px 2px rgba(16,16,18,.04), 0 8px 24px -8px rgba(16,16,18,.10);
  --shadow-lg: 0 24px 60px -20px rgba(16,16,18,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --sidebar: 264px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  color: var(--ink-900); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0 0 .4em; line-height: 1.2; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 1em; }
a { color: var(--orange-600); text-decoration: none; }
a:hover { color: var(--orange-700); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { background: var(--ink-900); color: #FDE7D6; padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
img { max-width: 100%; }
.ico { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--ink-500); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 }
.mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.text-right { text-align: right; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- App shell ---------------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--black) var(--sidebar), var(--bg) var(--sidebar)); }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--black); color: #D8D8DC;
  display: flex; flex-direction: column; padding: 22px 16px 16px;
  border-right: 1px solid #000;
}
.sidebar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 260px; pointer-events: none;
  background: radial-gradient(420px 200px at 0% 0%, rgba(255,106,0,.20), transparent 70%);
}
.logo { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; position: relative; color: #fff; }
.logo img { width: 38px; height: 38px; }
.logo strong { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.logo span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-400); font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #6B6B73; padding: 16px 12px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px;
  color: #BDBDC4; font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: #17171A; color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(255,106,0,.18), rgba(255,106,0,.04)); color: #fff; box-shadow: inset 2px 0 0 var(--orange-500); }
.nav a.active .ico { color: var(--orange-400); }
.nav .pill { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--orange-500); color: #fff; border-radius: 99px; padding: 1px 7px; }
.nav .pill.dim { background: #26262A; color: #BDBDC4; }

.sidebar-cta {
  margin: 18px 4px 0; padding: 16px; border-radius: 16px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1B1B1E, #111113); border: 1px solid #232327;
}
.sidebar-cta::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .25; filter: blur(8px); }
.sidebar-cta strong { color: #fff; font-family: var(--font-display); font-size: 14px; display: block; margin-bottom: 4px; }
.sidebar-cta p { font-size: 12.5px; color: #9A9AA2; margin: 0 0 12px; position: relative; z-index: 1; }

.sidebar-user { margin-top: auto; padding-top: 14px; border-top: 1px solid #1E1E22; display: flex; align-items: center; gap: 10px; position: relative; }
.sidebar-user .who { min-width: 0; flex: 1; }
.sidebar-user .who strong { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .who span { font-size: 12px; color: #7C7C85; }
.sidebar-user a { color: #7C7C85; padding: 6px; border-radius: 8px; }
.sidebar-user a:hover { color: #fff; background: #1B1B1F; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 13px; color: #fff; background: var(--grad); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; }
.avatar.square { border-radius: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 32px; background: rgba(247,246,243,.85); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .page-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-900); }
.brand-switch { position: relative; }
.brand-switch select {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong); background: #fff;
  border-radius: 99px; padding: 8px 34px 8px 14px; font: inherit; font-weight: 500; cursor: pointer; min-width: 180px;
}
.brand-switch::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-500); border-bottom: 2px solid var(--ink-500); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.content { padding: 28px 32px 60px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--ink-500); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2;
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s, color .15s; white-space: nowrap;
  color: var(--ink-900); background: #fff; border-color: var(--line-strong);
}
.btn:hover { border-color: var(--ink-300); color: var(--ink-900); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(255,90,0,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px -8px rgba(255,90,0,.65), inset 0 1px 0 rgba(255,255,255,.25); filter: saturate(1.08); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: var(--ink-800); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-500); }
.btn-ghost:hover { background: var(--gray-bg); color: var(--ink-900); border-color: transparent; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: var(--red-bg); border-color: #F5C2C2; color: var(--red); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Cards ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; }
.card-body { padding: 22px; }
.card-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: #FCFBFA; border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

/* Stat tiles */
.stat { padding: 20px 22px; position: relative; overflow: hidden; }
.stat .label { font-size: 12.5px; color: var(--ink-500); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .label .ico { color: var(--orange-500); }
.stat .value { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: 8px; line-height: 1; }
.stat .delta { font-size: 12.5px; margin-top: 8px; color: var(--ink-500); }
.stat .delta.up { color: var(--green); } .stat .delta.down { color: var(--red); }
.stat.hero { background: var(--black); color: #fff; border-color: var(--black); }
.stat.hero::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,0,.6) 0%, rgba(232,56,13,.25) 40%, transparent 70%); }
.stat.hero .label { color: #A5A5AD; } .stat.hero .label .ico { color: var(--orange-400); }
.stat.hero .delta { color: #A5A5AD; position: relative; z-index: 1; }

/* Welcome banner */
.welcome {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px 30px; color: #fff; margin-bottom: 22px;
  background: radial-gradient(600px 260px at 100% 0%, rgba(255,138,0,.55), transparent 60%), radial-gradient(400px 200px at 80% 120%, rgba(232,56,13,.6), transparent 60%), var(--black);
}
.welcome h1 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.welcome p { color: #C9C9CF; margin: 0; max-width: 560px; }
.welcome .actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.welcome .btn:not(.btn-primary) { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.welcome .btn:not(.btn-primary):hover { background: rgba(255,255,255,.14); }
.welcome img.mark { position: absolute; right: 30px; top: 50%; width: 120px; transform: translateY(-50%) rotate(-8deg); opacity: .95; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }

/* ---------------- Badges / chips ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--gray-bg); color: var(--ink-500); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge.orange { background: var(--orange-50); color: var(--orange-700); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.blue { background: var(--blue-bg); color: var(--blue); }
.badge.red { background: var(--red-bg); color: var(--red); }
.badge.dark { background: var(--black); color: #fff; }
.net { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: #fff; flex-shrink: 0; }
.net.instagram { background: linear-gradient(45deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.net.linkedin { background: #0A66C2; }
.net .ico { width: 14px; height: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; transition: all .15s;
}
.chip:hover { border-color: var(--orange-200); }
.chip input { display: none; }
.chip.on, .chip:has(input:checked) { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------------- Forms ---------------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink-700); }
label .hint { font-weight: 400; color: var(--ink-400); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number],
input[type=datetime-local], input[type=date], input[type=search], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 13px; font: inherit; font-weight: 400; color: var(--ink-900);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(255,106,0,.12); }
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
input[type=color] { width: 44px; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid h3 { margin: 10px 0 -4px; font-size: 14px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font); }
.field-row { display: flex; gap: 12px; align-items: flex-end; }
.counter { font-size: 12px; color: var(--ink-400); text-align: right; margin-top: 4px; }
.counter.over { color: var(--red); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--orange-500); }
.switch input:checked::after { transform: translateX(16px); }

/* ---------------- Alerts / flash ---------------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert-success { background: var(--green-bg); color: #116B34; border-color: #CBEBD7; }
.alert-error { background: var(--red-bg); color: #A11C1C; border-color: #F5C8C8; }
.alert-info { background: var(--orange-50); color: var(--orange-700); border-color: var(--orange-100); }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--black); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .25s ease; display: flex; gap: 8px; align-items: center; }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); font-weight: 600; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #FCFBFA; white-space: nowrap; }
.table td { padding: 14px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FDFCFB; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--gray-bg); display: grid; place-items: center; color: var(--ink-400); flex-shrink: 0; }
.caption-cell { max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-700); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-500); }
.empty .ico-wrap { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-500); }
.empty h3 { color: var(--ink-900); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs a.active, .tabs button.active { color: var(--ink-900); border-bottom-color: var(--orange-500); }
.seg { display: inline-flex; background: var(--gray-bg); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button { padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-500); border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg a.active, .seg button.active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* ---------------- Lists ---------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: 12.5px; color: var(--ink-500); }
.date-box { width: 46px; text-align: center; border-radius: 10px; background: var(--orange-50); color: var(--orange-700); padding: 5px 0; flex-shrink: 0; line-height: 1.1; }
.date-box b { display: block; font-family: var(--font-display); font-size: 17px; }
.date-box span { font-size: 10.5px; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }

/* Bars chart (CSS) */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--grad); min-height: 4px; position: relative; }
.bars .bar i.zero { background: var(--line); }
.bars .bar span { font-size: 11px; color: var(--ink-400); }
.bars .bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-700); }

/* ---------------- Brands ---------------- */
.brand-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.brand-card .top { display: flex; align-items: center; gap: 12px; }
.brand-card .accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.brand-card .conn { display: flex; flex-direction: column; gap: 8px; }
.conn-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #FAF9F7; border: 1px solid var(--line); font-size: 13px; }
.conn-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- Post editor ---------------- */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.editor-side { position: sticky; top: 84px; }
.types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.type-opt { border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--ink-500); transition: all .15s; background: #fff; }
.type-opt input { display: none; }
.type-opt .ico { display: block; margin: 0 auto 6px; }
.type-opt:hover { border-color: var(--orange-200); }
.type-opt:has(input:checked) { border-color: var(--orange-500); color: var(--orange-700); background: var(--orange-50); box-shadow: 0 0 0 3px rgba(255,106,0,.1); }
.type-opt.disabled { opacity: .35; pointer-events: none; }

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 26px; text-align: center; cursor: pointer;
  background: #FCFBFA; transition: all .15s; color: var(--ink-500);
}
.dropzone:hover, .dropzone.drag { border-color: var(--orange-500); background: var(--orange-50); color: var(--orange-700); }
.dropzone .ico-wrap { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; margin: 0 auto 10px; box-shadow: var(--shadow-sm); color: var(--orange-500); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--gray-bg); border: 1px solid var(--line); cursor: grab; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; }
.media-item .idx { position: absolute; bottom: 5px; left: 5px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.media-item.dragging { opacity: .4; }

.ai-inline { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--orange-100); margin-bottom: 10px; }
.ai-inline input { margin: 0; background: #fff; }
.ai-inline .ico { color: var(--orange-600); }

/* Phone previews */
.phone { background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; max-width: 360px; margin: 0 auto; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ig-head .ring { padding: 2px; border-radius: 50%; background: linear-gradient(45deg, #FEDA75, #FA7E1E, #D62976, #962FBF); }
.ig-head .ring .avatar { border: 2px solid #fff; width: 32px; height: 32px; }
.ig-head strong { font-size: 13.5px; }
.ig-media { aspect-ratio: 4/5; background: linear-gradient(135deg, #F2F0EC, #E8E5E0); display: grid; place-items: center; color: var(--ink-300); position: relative; overflow: hidden; }
.ig-media.story { aspect-ratio: 9/16; }
.ig-media img, .ig-media video { width: 100%; height: 100%; object-fit: cover; }
.ig-media .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-media .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); }
.ig-media .dots i.on { background: #fff; }
.ig-media .counter-pill { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.ig-actions { display: flex; gap: 14px; padding: 10px 14px 4px; color: var(--ink-900); }
.ig-actions .last { margin-left: auto; }
.ig-caption { padding: 4px 14px 16px; font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; max-height: 220px; overflow-y: auto; }
.ig-caption b { margin-right: 5px; }
.ig-caption .tag { color: #00376B; }
.li-post { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.li-head { display: flex; gap: 10px; padding: 14px 14px 8px; }
.li-head strong { display: block; font-size: 14px; }
.li-head span { font-size: 12px; color: var(--ink-400); }
.li-text { padding: 0 14px 12px; font-size: 13.5px; white-space: pre-wrap; word-wrap: break-word; max-height: 220px; overflow-y: auto; }
.li-media img { width: 100%; display: block; max-height: 360px; object-fit: cover; }
.li-actions { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid var(--line); color: var(--ink-500); font-size: 12.5px; font-weight: 600; }

/* ---------------- Calendar ---------------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-head h2 { margin: 0 8px; min-width: 190px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal .dow { padding: 10px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); font-weight: 600; border-bottom: 1px solid var(--line); background: #FCFBFA; }
.cal .day { min-height: 128px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .15s; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.other { background: #FBFAF8; }
.cal .day.other .num { color: var(--ink-300); }
.cal .day.today .num { background: var(--grad); color: #fff; }
.cal .day.drop { background: var(--orange-50); }
.cal .day .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 600; }
.cal .day .add { position: absolute; top: 8px; right: 8px; opacity: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--black); color: #fff; transition: opacity .15s; }
.cal .day:hover .add { opacity: 1; }
.cal .ev { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--gray-bg); color: var(--ink-700); cursor: grab; overflow: hidden; white-space: nowrap; border-left: 3px solid var(--ev-color, var(--orange-500)); }
.cal .ev:hover { filter: brightness(.97); }
.cal .ev .t { color: var(--ink-400); font-weight: 500; }
.cal .ev.published { opacity: .65; cursor: pointer; }
.cal .ev.failed { background: var(--red-bg); color: var(--red); }
.cal .ev .net { width: 16px; height: 16px; border-radius: 5px; }
.cal .ev .net .ico { width: 10px; height: 10px; }
.cal .more { font-size: 11.5px; color: var(--ink-500); font-weight: 600; padding: 3px 7px; }

/* ---------------- AI Studio ---------------- */
.studio { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.tool-list { display: flex; flex-direction: column; gap: 4px; padding: 10px; position: sticky; top: 84px; }
.tool-list .group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-400); font-weight: 600; padding: 12px 10px 4px; }
.tool-btn { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink-700); cursor: pointer; text-align: left; width: 100%; }
.tool-btn:hover { background: var(--gray-bg); }
.tool-btn.active { background: var(--black); color: #fff; }
.tool-btn .ti { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); flex-shrink: 0; }
.tool-btn.active .ti { background: var(--grad); color: #fff; }
.tool-btn small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-400); }
.tool-btn.active small { color: #9A9AA2; }
.ai-output { min-height: 260px; }
.ai-result { white-space: pre-wrap; word-wrap: break-word; line-height: 1.65; font-size: 14px; }
.ai-result h1, .ai-result h2, .ai-result h3 { font-size: 15px; margin: 16px 0 6px; }
.ai-blocks { display: flex; flex-direction: column; gap: 12px; }
.ai-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #FCFBFA; position: relative; }
.ai-block .ai-block-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.ai-block:hover .ai-block-actions { opacity: 1; }
.ai-block .ai-block-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--orange-600); margin-bottom: 6px; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ad-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.ad-table td.len { width: 70px; text-align: right; font-size: 12px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.ad-table td.len.over { color: var(--red); font-weight: 700; }
.ad-table tr:hover td { background: #fff; }
.ad-table .cp { opacity: 0; cursor: pointer; color: var(--ink-400); }
.ad-table tr:hover .cp { opacity: 1; }
.thinking { display: flex; gap: 12px; align-items: center; color: var(--ink-500); padding: 30px 0; justify-content: center; }
.thinking .orb { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }

/* Google/Meta ad previews */
.gad { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; font-family: Arial, sans-serif; }
.gad .sp { font-size: 12px; color: #202124; font-weight: 700; }
.gad .url { font-size: 12px; color: #4D5156; margin-bottom: 4px; }
.gad .h { color: #1A0DAB; font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.gad .d { color: #4D5156; font-size: 14px; line-height: 1.5; }

/* ---------------- Assistant (chat) ---------------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--black); box-shadow: 0 14px 34px -10px rgba(0,0,0,.55), 0 0 0 4px rgba(255,106,0,.18); display: grid; place-items: center; transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab img { width: 34px; height: 34px; }
.chat-fab .online { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid var(--black); }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 95; width: 390px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: popIn .22s ease;
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.chat-top { padding: 16px 18px; background: var(--black); color: #fff; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.chat-top::after { content: ''; position: absolute; right: -40px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(24px); }
.chat-top .bot { width: 40px; height: 40px; border-radius: 12px; background: #1B1B1E; display: grid; place-items: center; position: relative; z-index: 1; }
.chat-top .bot img { width: 26px; }
.chat-top strong { display: block; font-family: var(--font-display); }
.chat-top span { font-size: 12px; color: #A5A5AD; display: flex; align-items: center; gap: 6px; }
.chat-top span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22C55E; }
.chat-top button { margin-left: auto; background: none; border: 0; color: #A5A5AD; cursor: pointer; position: relative; z-index: 1; padding: 4px; }
.chat-top button:hover { color: #fff; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FBFAF8; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--black); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-400); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; background: #FBFAF8; }
.chat-suggest button { font: inherit; font-size: 12.5px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--orange-100); background: var(--orange-50); color: var(--orange-700); cursor: pointer; font-weight: 500; }
.chat-suggest button:hover { background: var(--orange-100); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { margin: 0; min-height: 44px; max-height: 120px; resize: none; border-radius: 12px; padding: 11px 13px; }
.chat-form button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; cursor: pointer; flex-shrink: 0; display: grid; place-items: center; }
.chat-page { height: calc(100vh - 170px); min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.chat-page .chat-msgs { padding: 24px; }
.chat-page .msg { max-width: 72%; }

/* ---------------- Modal ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(11,11,12,.55); backdrop-filter: blur(4px); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: popIn .2s ease; }
.modal-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 18px 24px 24px; }

/* ---------------- Reports ---------------- */
.report { background: #fff; }
.report-cover { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; margin-bottom: 20px; }
.report-cover::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,0,.55) 0%, rgba(232,56,13,.25) 40%, transparent 70%); }
.report-cover h1 { color: #fff; font-size: 28px; position: relative; z-index: 1; }
.report-cover .sub { color: #B5B5BC; position: relative; z-index: 1; }
.report-cover .logo-r { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; position: relative; z-index: 1; }
.report-cover .logo-r img { width: 34px; }
.report-cover .logo-r strong { font-family: var(--font-display); font-size: 18px; }
.chart-box { position: relative; height: 240px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-500); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.top-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.top-post { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.top-post .ph { aspect-ratio: 1; background: var(--gray-bg); overflow: hidden; }
.top-post .ph img { width: 100%; height: 100%; object-fit: cover; }
.top-post .st { padding: 8px 10px; display: flex; gap: 10px; font-size: 12px; color: var(--ink-500); font-weight: 600; }
.chart-tip { position: absolute; pointer-events: none; background: var(--black); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); display: none; z-index: 5; }

/* ---------------- Auth ---------------- */
.auth-body { min-height: 100vh; background: var(--black); display: grid; place-items: center; padding: 24px 16px; position: relative; overflow-x: hidden; }
.auth-body::before { content: ''; position: fixed; width: 700px; height: 700px; border-radius: 50%; background: var(--grad); filter: blur(140px); opacity: .28; top: -300px; right: -200px; pointer-events: none; }
.auth-body::after { content: ''; position: fixed; width: 500px; height: 500px; border-radius: 50%; background: #E8380D; filter: blur(160px); opacity: .18; bottom: -250px; left: -150px; pointer-events: none; }
.auth-wrap { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.install-wrap { max-width: 640px; }
.auth-card { background: #fff; border-radius: 24px; padding: 34px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.auth-card form.form-grid { display: grid; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand img { width: 44px; }
.auth-brand strong { font-family: var(--font-display); font-size: 22px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.auth-brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); font-weight: 700; }
.auth-foot { text-align: center; color: #77777F; font-size: 12.5px; margin-top: 18px; }
.checks { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; }
.checks li.ok { color: var(--green); } .checks li.bad { color: var(--red); font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 22px; }
.step { display: flex; gap: 12px; }
.step > b { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.step > div { min-width: 0; flex: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; }
  .welcome img.mark { display: none; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 120; transform: translateX(-100%); transition: transform .25s ease; }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 110; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 90px; }
  .grid-2, .grid-3, .grid-main, .studio, .editor { grid-template-columns: minmax(0, 1fr); }
  .page-head > form, .page-head > div { max-width: 100%; }
  .page-head form.flex { flex-wrap: wrap; }
  .page-head input[type=search] { width: 100% !important; flex: 1 1 160px; }
  .tool-list { position: static; flex-direction: row; overflow-x: auto; }
  .tool-list .group { display: none; }
  .tool-btn { flex-shrink: 0; width: auto; }
  .tool-btn small { display: none; }
  .brand-switch select { min-width: 0; max-width: 150px; }
  .topbar .page-title { display: none; }
  .cal .day { min-height: 84px; padding: 4px; }
  .cal .ev .t, .cal .ev .lbl { display: none; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .stat .value { font-size: 24px; }
  .auth-card { padding: 24px; }
  .checks { grid-template-columns: 1fr; }
  .topbar .btn-label { display: none; }
  .chat-panel { right: 16px; bottom: 88px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .cal .dow { font-size: 10px; padding: 8px 4px; letter-spacing: 0; }
}

/* ---------------- Print (PDF) ---------------- */
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .chat-fab, .chat-panel, .no-print, .toast-wrap { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .report-cover, .stat.hero, .net, .badge, .bars .bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Markdown gerado pela IA */
.ai-result h3, .msg h3 { font-size: 15px; margin: 14px 0 4px; }
.ai-result hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.code-block { white-space: pre-wrap; margin: 8px 0; font-size: 13px; line-height: 1.55; }
.md-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0; white-space: normal; }
.md-table th { text-align: left; background: var(--black); color: #fff; padding: 8px 10px; font-weight: 600; }
.md-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table tr:nth-child(even) td { background: #FBFAF8; }
.msg .md-table th { background: var(--ink-700); }
.pdf-mode .chart-tip { display: none !important; }
.fb-ad { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; font-size: 13.5px; }
.fb-ad .fb-top { display: flex; gap: 8px; padding: 12px; align-items: center; }
.fb-ad .fb-top small { display: block; color: var(--ink-400); font-size: 11.5px; }
.fb-ad .fb-text { padding: 0 12px 10px; white-space: pre-wrap; }
.fb-ad .fb-img { aspect-ratio: 1.91/1; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 20px; padding: 20px; text-align: center; }
.fb-ad .fb-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F4F4F2; }
.fb-ad .fb-foot .grow strong { display: block; }
.fb-ad .fb-foot .grow span { color: var(--ink-500); font-size: 12.5px; }
.history-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.history-item:hover { background: var(--gray-bg); }
.history-item .grow { min-width: 0; }
.history-item .grow div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { color: var(--ink-300); background: none; border: 0; cursor: pointer; padding: 4px; }
.fav.on { color: var(--orange-500); }
.fav.on svg { fill: currentColor; }

/* ---------------- Contas conectadas / login social ---------------- */
.connect-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; position: relative; overflow: hidden; }
.connect-card p { margin: 0 0 6px; flex: 1; }
.connect-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.connect-card.instagram .connect-ico { background: linear-gradient(45deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); }
.connect-card.facebook .connect-ico { background: #1877F2; }
.connect-card.linkedin .connect-ico { background: #0A66C2; }
.connect-tag { position: absolute; top: 18px; right: 18px; }
.btn-social { color: #fff !important; border: 0; }
.btn-social.instagram { background: linear-gradient(90deg, #F58529, #DD2A7B 50%, #8134AF); }
.btn-social.facebook { background: #1877F2; }
.btn-social.linkedin { background: #0A66C2; }
.btn-social:hover { filter: brightness(1.07); }
.acc-av { position: relative; flex-shrink: 0; }
.acc-av .net { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #fff; }
.acc-av .avatar { width: 42px; height: 42px; }
.acc-actions { margin-left: 4px; }
.social-login { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.social-login .btn { justify-content: center; padding: 12px 16px; font-size: 14.5px; border-radius: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-400); font-size: 12.5px; margin: 20px 0 -6px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; user-select: none; }
.acc-chip input { display: none; }
.acc-chip .avatar { width: 26px; height: 26px; font-size: 10px; }
.acc-chip .net { width: 16px; height: 16px; border-radius: 5px; }
.acc-chip .net .ico { width: 10px; height: 10px; }
.acc-chip:hover { border-color: var(--orange-200); }
.acc-chip:has(input:checked) { background: var(--black); color: #fff; border-color: var(--black); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.acc-chip.disabled { opacity: .45; pointer-events: none; }
.acc-chip.expired { border-style: dashed; }
@media (max-width: 600px) { .acc-actions { width: 100%; justify-content: flex-end; } }
.conn-add { color: var(--ink-500); border-style: dashed; background: #fff; }
.conn-add:hover { color: var(--ink-900); border-color: var(--orange-200); background: var(--orange-50); }
