/* =============================================
   CLICKS — Design System (Light Clean)
   ============================================= */

/* --- Reset & Variáveis --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Garante que hidden sempre oculta, mesmo com display:flex/grid no CSS */
[hidden] { display: none !important; }

/* --- Tabler Icons --- */
.ti { font-size: 1.1em; line-height: 1; vertical-align: middle; }
.nav-icon .ti { font-size: 1.15rem; }
.stat-icon .ti { font-size: 1.6rem; }
.empty-icon .ti { font-size: 3rem; display: block; }
.alert-icon .ti { font-size: 1rem; }
@keyframes ti-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ti-spin { animation: ti-spin 1s linear infinite; }

:root {
  --primary:       #f7b403;
  --primary-dark:  #e26008;
  --primary-light: #fff8e6;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --gray-50:       #f9fafb;
  --gray-100:      #f3f4f6;
  --gray-200:      #e5e7eb;
  --gray-300:      #d1d5db;
  --gray-400:      #9ca3af;
  --gray-500:      #6b7280;
  --gray-600:      #4b5563;
  --gray-700:      #374151;
  --gray-800:      #1f2937;
  --gray-900:      #111827;
  --white:         #ffffff;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07);
  --shadow:        0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.12);
  --sidebar-w:     240px;
  --topbar-h:      60px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:    150ms ease;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;  /* logo centralizado */
  position: relative;
}
.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.logo-text { color: var(--primary); }
.logo-img  { max-height: 36px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.nav-link {
  font-size: .875rem;
  color: var(--gray-600);
  padding: .25rem .5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); text-decoration: none; }

.nav-user { position: relative; cursor: pointer; }
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}
.nav-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  font-weight: 600; font-size: .75rem;
}
.nav-user::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 12px;
}
.nav-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown a {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-dropdown a:hover { background: var(--gray-50); color: var(--primary); text-decoration: none; }
.nav-dropdown hr { border: none; border-top: 1px solid var(--gray-200); margin: .25rem 0; }
.nav-user:hover .nav-dropdown { display: block; }

/* --- Hamburger --- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Mobile nav --- */
@media (max-width: 640px) {
  .header-inner {
    justify-content: space-between;
  }
  .site-logo {
    position: static;
    transform: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: .75rem 1rem 1rem;
    gap: .25rem;
    z-index: 105;
  }
  .site-nav.is-open { display: flex; }
  .nav-link {
    padding: .6rem .75rem;
    font-size: .95rem;
  }
  .nav-user { width: 100%; }
  .nav-user::after { display: none; }
  .nav-dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-100);
    border-radius: 0;
    margin-top: .25rem;
    padding: .25rem 0;
  }
  .nav-user:hover .nav-dropdown { display: none; }
  .nav-user.is-open .nav-dropdown { display: block; }
  .nav-avatar, .nav-avatar-placeholder {
    width: 28px; height: 28px;
    font-size: .7rem;
  }
  .site-nav .btn { width: 100%; justify-content: center; margin-top: .25rem; }
}

/* --- Botões --- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem; font-weight: 500;
  cursor: pointer; border: 1.5px solid transparent;
  transition: var(--transition);
  line-height: 1;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary   { background: var(--primary); color: #1a1000; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost     { background: transparent; color: var(--gray-600); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger    { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-sm        { padding: .3rem .7rem; font-size: .8rem; }
.btn-xs        { padding: .2rem .4rem; font-size: .75rem; }
.btn-lg        { padding: .75rem 1.5rem; font-size: 1rem; }
.btn-block     { display: flex; width: 100%; justify-content: center; }
.btn-google {
  display: flex; align-items: center; gap: .6rem; justify-content: center;
  width: 100%; padding: .65rem 1rem;
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); font-size: .875rem; font-weight: 500;
  color: var(--gray-700); cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-300); text-decoration: none; }

/* --- Forms --- */
.form-group   { display: flex; flex-direction: column; gap: .4rem; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-layout  { display: flex; flex-direction: column; gap: 1.2rem; }
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; padding-top: .5rem; }
.form-hint    { font-size: .8rem; color: var(--gray-500); margin-top: .25rem; }

label         { font-size: .875rem; font-weight: 500; color: var(--gray-700); display: flex; justify-content: space-between; }
.label-link   { font-weight: 400; color: var(--primary); font-size: .8rem; }
.req          { color: var(--danger); }

.form-control {
  width: 100%;
  padding: .55rem .75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .875rem; font-family: var(--font);
  background: var(--white); color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-control:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.form-color { padding: .3rem; height: 42px; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.input-password { position: relative; }
.input-password .form-control { padding-right: 2.5rem; }
.toggle-pass {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0;
}
.input-with-action { display: flex; gap: .5rem; }
.input-with-action .form-control { flex: 1; }
.input-prefix { display: flex; }
.input-prefix .prefix {
  padding: .55rem .75rem; background: var(--gray-100); border: 1.5px solid var(--gray-300);
  border-right: none; border-radius: var(--radius) 0 0 var(--radius); color: var(--gray-500);
}
.input-prefix .form-control { border-radius: 0 var(--radius) var(--radius) 0; }

.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 400; font-size: .875rem; }
.checkbox-label input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); }

.filters-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-search { flex: 1; min-width: 200px; }
.filter-select { min-width: 150px; }

/* --- Alerts --- */
.alert {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; border-radius: var(--radius);
  font-size: .875rem; margin-bottom: 1rem;
}
.alert-icon { font-weight: 700; font-size: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* --- Badges --- */
.badge {
  display: inline-block; padding: .2rem .55rem;
  border-radius: 20px; font-size: .75rem; font-weight: 500;
  white-space: nowrap;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-purple { background: #fff3cc; color: #e26008; }
.badge-pro    { background: #fef3c7; color: #b45309; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: .9375rem; font-weight: 600; color: var(--gray-800); }
.card-action { font-size: .8rem; color: var(--primary); }
.card-header-actions { display: flex; gap: .4rem; }
.card-body { padding: 1.25rem; }
.card-body.p0 { padding: 0; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }

/* --- Tables --- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table th { font-size: .75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.table tbody tr:hover { background: var(--gray-50); }
.table tbody tr:last-child td { border-bottom: none; }
.actions-cell { white-space: nowrap; display: flex; gap: .4rem; align-items: center; }
.inline-form  { display: inline; }
.user-row     { display: flex; align-items: center; gap: .75rem; }
.table-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.text-muted   { color: var(--gray-500); }
.text-sm      { font-size: .8rem; }
.text-center  { text-align: center; }
.text-green   { color: var(--success); }
.text-gray    { color: var(--gray-400); }

/* --- Layout dashboard --- */
.main-content { min-height: calc(100vh - var(--topbar-h) - 56px); }
.dashboard-layout { display: flex; gap: 0; min-height: calc(100vh - var(--topbar-h)); }
.dashboard-main   { flex: 1; padding: 1.75rem; max-width: 100%; overflow: hidden; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.375rem; font-weight: 700; color: var(--gray-900); }
.header-actions { display: flex; gap: .75rem; }

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-h));
  position: sticky;
  top: var(--topbar-h);
}
.sidebar-user {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gray-200); flex-shrink: 0;
}
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--white);
  font-weight: 700;
}
.sidebar-user-name  { font-weight: 600; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-link  { font-size: .75rem; color: var(--gray-500); }
.sidebar-user-info  { overflow: hidden; }
.sidebar-nav        { padding: .75rem 0; display: flex; flex-direction: column; }
.nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem;
  font-size: .875rem; color: var(--gray-600);
  transition: var(--transition); border-radius: 0;
  text-decoration: none;
}
.nav-item:hover { background: var(--gray-50); color: var(--primary); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-icon      { width: 18px; text-align: center; font-size: 1rem; }
.nav-divider   { height: 1px; background: var(--gray-100); margin: .5rem 0; }
.nav-section   {
  padding: .5rem 1rem .15rem;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--gray-400);
  margin-top: .25rem;
  display: flex; align-items: center; gap: .3rem;
}
.nav-logout:hover { color: var(--danger); background: #fee2e2; }

/* --- Links na Bio (linklist) --- */
.ll-tabs { display:flex; gap:0; border-bottom:2px solid var(--border,#e2e8f0); margin-bottom:1.5rem; }
.ll-tab-btn {
  padding:.6rem 1.25rem; font-size:.9rem; font-weight:600; cursor:pointer;
  border:none; background:none; color:#64748b;
  border-bottom:3px solid transparent; margin-bottom:-2px;
  display:flex; align-items:center; gap:.4rem; transition:color .15s;
}
.ll-tab-btn:hover { color:#374151; }
.ll-tab-btn.active { color:var(--primary,#f7b403); border-bottom-color:var(--primary,#f7b403); }
.ll-tab-panel { display:none; }
.ll-tab-panel.active { display:block; }
.ll-cols { display:grid; grid-template-columns:1fr 340px; gap:1.25rem; align-items:start; }
@media(max-width:860px) { .ll-cols { grid-template-columns:1fr; } }
.ll-items { display:flex; flex-direction:column; gap:.5rem; }
.ll-item {
  background:#fff; border:1px solid var(--border,#e2e8f0); border-radius:12px;
  padding:.75rem .9rem; display:flex; align-items:center; gap:.7rem;
  transition:box-shadow .15s, border-color .15s;
}
.ll-item:hover { box-shadow:0 2px 10px rgba(0,0,0,.07); border-color:#cbd5e1; }
.ll-item.dragging { opacity:.4; box-shadow:0 0 0 2px var(--primary,#f7b403); }
.ll-drag-handle { color:#d1d5db; cursor:grab; flex-shrink:0; font-size:1rem; line-height:1; padding:.2rem 0; }
.ll-drag-handle:active { cursor:grabbing; color:#94a3b8; }
.ll-item-thumb {
  width:42px; height:42px; border-radius:8px; flex-shrink:0;
  background:#f1f5f9; display:flex; align-items:center; justify-content:center;
  overflow:hidden; color:#94a3b8; font-size:1rem;
}
.ll-item-thumb img { width:100%; height:100%; object-fit:cover; }
.ll-item-body  { flex:1; min-width:0; }
.ll-item-title { font-weight:700; font-size:.88rem; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ll-item-url   { font-size:.76rem; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:.15rem; }
.ll-item-actions { display:flex; gap:.25rem; flex-shrink:0; }
.ll-edit-form { margin-top:.6rem; display:none; flex-direction:column; gap:.4rem; padding-top:.6rem; border-top:1px solid var(--border,#e2e8f0); }
.ll-edit-form.open { display:flex; }
.ll-edit-row  { display:flex; gap:.4rem; align-items:center; }
.ll-add-search { position:relative; margin-bottom:.6rem; }
.ll-add-search input { padding-left:2.2rem; }
.ll-add-search .search-icon { position:absolute; left:.7rem; top:50%; transform:translateY(-50%); color:#94a3b8; pointer-events:none; }
.ll-available { display:flex; flex-direction:column; gap:.35rem; max-height:400px; overflow-y:auto; }
.ll-link-option {
  display:flex; align-items:center; gap:.6rem; padding:.5rem .65rem;
  border:1px solid var(--border,#e2e8f0); border-radius:9px; cursor:pointer;
  background:#fafafa; transition:background .12s, border-color .12s; width:100%; text-align:left;
}
.ll-link-option:hover { background:#fff; border-color:var(--primary,#f7b403); }
.ll-link-option-title { font-weight:600; font-size:.82rem; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#1e293b; }
.ll-link-option-url   { font-size:.72rem; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ll-empty   { text-align:center; padding:2rem 1rem; color:#94a3b8; }
.ll-empty i { font-size:2rem; display:block; margin-bottom:.5rem; }
/* Aparência (aba) */
.ap-layout { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; align-items:start; }
@media(max-width:780px) { .ap-layout { grid-template-columns:1fr; } }

.ap-section-label {
  font-size:.75rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; color:var(--gray-400,#94a3b8);
  margin:0 0 .45rem;
}

.ap-social-row {
  display:flex; align-items:center; gap:.5rem;
  padding:.35rem .5rem; border-radius:10px;
  border:1px solid transparent; transition:border-color .15s, background .15s;
}
.ap-social-row:hover { background:#f8fafc; border-color:var(--border,#e2e8f0); }
.ap-social-filled   { background:#fffbeb; border-color:#fde68a !important; }

.ap-social-icon {
  width:32px; height:32px; border-radius:8px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:.95rem;
}
.ap-social-name {
  width:76px; flex-shrink:0; font-size:.8rem; font-weight:600; color:#374151;
}
.ap-social-input { flex:1; font-size:.8rem; padding:.3rem .5rem; min-width:0; }
.ap-clear-btn {
  flex-shrink:0; background:none; border:none; cursor:pointer;
  color:#94a3b8; padding:.2rem; line-height:1; border-radius:5px;
  transition:color .15s, background .15s;
}
.ap-clear-btn:hover { color:#ef4444; background:#fee2e2; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon { font-size: 1.5rem; width: 48px; height: 48px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-blue   { background: #fff3cc; }
.stat-green  { background: #dcfce7; }
.stat-purple { background: #ffe8d6; }
.stat-orange { background: #fef3c7; }
.stat-teal   { background: #d1fae5; }
.stat-value  { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.stat-label  { font-size: .8rem; color: var(--gray-500); }

/* --- Links grid --- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.link-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.link-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }
.link-card-secret { border-left: 3px solid var(--warning); }
.link-card-thumb  { height: 120px; overflow: hidden; background: var(--gray-100); }
.link-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-card-body   { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.link-card-top    { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.link-card-title  { font-size: .875rem; font-weight: 600; color: var(--gray-900); flex: 1; line-height: 1.3; }
.link-card-desc   { font-size: .8rem; color: var(--gray-500); line-height: 1.5; }
.link-card-url    { display: flex; align-items: center; gap: .4rem; }
.short-url        { font-size: .78rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.link-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .5rem; border-top: 1px solid var(--gray-100); }
.link-actions     { display: flex; gap: .3rem; }
.link-stats       { display: flex; gap: .75rem; font-size: .78rem; color: var(--gray-500); flex-wrap: wrap; }
.link-tags        { display: flex; flex-wrap: wrap; gap: .3rem; }
.link-thumb-row   { display: flex; align-items: center; gap: .75rem; }
.link-thumb-sm    { width: 36px; height: 36px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--gray-200); flex-shrink: 0; }
.link-title       { font-size: .875rem; font-weight: 500; color: var(--gray-800); }
.link-short       { font-size: .78rem; }

.btn-copy {
  background: none; border: none; cursor: pointer; color: var(--gray-400);
  padding: .2rem; font-size: .9rem; transition: var(--transition);
}
.btn-copy:hover { color: var(--primary); }
.btn-copy-sm { font-size: .78rem; padding: .2rem .4rem; }

.tag { display: inline-block; padding: .15rem .45rem; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.tag-check { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.tags-picker { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --- Pagination --- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; }
.page-btn {
  padding: .4rem .75rem; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); font-size: .875rem; text-decoration: none;
  transition: var(--transition);
}
.page-btn:hover     { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-btn.active    { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* --- Dashboard cols --- */
.dashboard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }

/* --- Empty states --- */
.empty-state     { padding: 2rem; text-align: center; color: var(--gray-500); font-size: .875rem; }
.empty-state a   { color: var(--primary); }
.empty-state-full { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; gap: 1rem; }
.empty-state-full h2 { font-size: 1.25rem; color: var(--gray-700); }
.empty-state-full p  { color: var(--gray-500); }
.empty-icon { font-size: 3rem; }

/* --- Auth --- */
.auth-wrapper {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo   { text-align: center; margin-bottom: 1.5rem; font-size: 1.75rem; }
.auth-logo a { display: block; }
.auth-title  { font-size: 1.375rem; font-weight: 700; text-align: center; margin-bottom: .35rem; }
.auth-sub    { color: var(--gray-500); text-align: center; font-size: .875rem; margin-bottom: 1.5rem; }
.auth-form   { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-footer { text-align: center; font-size: .875rem; color: var(--gray-500); margin-top: 1.25rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider span { color: var(--gray-400); font-size: .8rem; }

/* --- Hero (home) --- */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 60%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero-title { font-size: 2.75rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; margin-bottom: 1rem; }
.hero-sub   { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.hero .share-bar { justify-content: center; margin-top: 1.25rem; margin-bottom: 2rem; }
.hero .share-label { color: var(--gray-500); font-size: .75rem; }
.hero .share-btn {
  background: var(--white);
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.hero .share-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: scale(1.1);
}
.hero-search { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.hero-search-input { flex: 1; }

.home-stats { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 2rem 0; }
.home-stats-grid { display: flex; justify-content: center; gap: 4rem; }
.home-stat-val { font-size: 2rem; font-weight: 800; color: var(--primary); }
.home-stat-lbl { color: var(--gray-500); font-size: .875rem; }
.home-stat { text-align: center; }

.features { padding: 4rem 0; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header .section-title { margin-bottom: 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.feature-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.feature-card p  { font-size: .875rem; color: var(--gray-500); }

/* --- Link na Bio promo section --- */
.bio-promo {
  background: linear-gradient(135deg, #fff8e6 0%, #fff3d0 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 4rem 0;
}
.bio-promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .bio-promo-inner { grid-template-columns: 1fr; }
  .bio-promo-visual { display: none; }
}
.bio-promo-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--primary); color: #1a1000;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  padding: .3rem .75rem; border-radius: 999px;
  margin-bottom: .9rem;
}
.bio-promo-text h2 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; color: var(--gray-900); }
.bio-promo-text p  { font-size: 1rem; color: var(--gray-600); line-height: 1.65; max-width: 480px; margin-bottom: 1.5rem; }
.bio-promo-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.bio-promo-features { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.bio-promo-features li { font-size: .88rem; color: var(--gray-600); display: flex; align-items: center; gap: .5rem; }
.bio-promo-features li .ti { color: var(--primary-dark); font-size: .95rem; }

/* Phone mockup */
.bio-phone-mock {
  width: 180px; height: 320px;
  background: var(--gray-900);
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  position: relative;
}
.bio-phone-mock::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 6px; background: #333; border-radius: 4px;
}
.bio-phone-screen {
  background: var(--white);
  border-radius: 20px;
  height: 100%;
  padding: 22px 14px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  overflow: hidden;
}
.bio-mock-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.bio-mock-name  { width: 80px; height: 10px; background: var(--gray-200); border-radius: 5px; }
.bio-mock-bio   { width: 110px; height: 8px; background: var(--gray-100); border-radius: 5px; margin-bottom: 4px; }
.bio-mock-link  {
  width: 100%; height: 34px; border-radius: 8px;
  transition: opacity .3s;
}

.home-recent { padding: 3rem 0 4rem; }

/* --- Página pública --- */
.profile-page { background-color: var(--gray-50); }
.profile-page--bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}
.profile-page--bg .profile-banner {
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.profile-page--bg .profile-content {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  margin-bottom: 2rem;
  padding: 1.75rem;
}
.profile-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 3rem 0; color: white; }
.profile-banner-inner { display: flex; align-items: center; gap: 1.5rem; }
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: cover; flex-shrink: 0;
}
.profile-name     { font-size: 1.5rem; font-weight: 700; }
.profile-username { color: rgba(255,255,255,.8); margin-bottom: .5rem; }
.profile-bio      { color: rgba(255,255,255,.9); font-size: .875rem; margin-bottom: .5rem; }
.profile-stats    { display: flex; gap: .75rem; color: rgba(255,255,255,.7); font-size: .875rem; }
.profile-content  { padding: 2rem 0; }
.profile-filters  { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.cat-filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-chip {
  padding: .3rem .75rem; border-radius: 20px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  font-size: .8rem; color: var(--gray-600);
  text-decoration: none; transition: var(--transition);
}
.cat-chip:hover  { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.cat-chip.active { background: var(--primary); border-color: var(--primary); color: white; }
.chip-count { font-size: .7rem; opacity: .7; }
.search-form    { display: flex; gap: .5rem; }
.search-form-sm { max-width: 400px; }

/* --- Page Links Manager --- */
.link-inherit-list { display: flex; flex-direction: column; gap: .5rem; }
.link-inherit-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem .75rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s;
}
.link-inherit-row.inherited { border-color: var(--primary); background: var(--primary-light); }
.link-inherit-info { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.link-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.link-thumb-placeholder {
  width: 40px; height: 40px; border-radius: 6px; flex-shrink: 0;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  color: var(--gray-400);
}
.link-inherit-title { font-weight: 500; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.page-check-list { display: flex; flex-wrap: wrap; gap: .5rem .75rem; }

/* --- QR Logo Selector --- */
.qr-logo-options { display: flex; flex-direction: column; gap: .5rem; }
.qr-logo-opt { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.qr-logo-opt input[type=radio] { display: none; }
.qr-logo-opt-inner {
  flex: 1; display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background .15s;
}
.qr-logo-opt input:checked + .qr-logo-opt-inner {
  border-color: var(--primary); background: var(--primary-light);
}

/* --- Page Thumb Upload Bar --- */
.page-thumb-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.page-thumb-preview {
  width: 80px; height: 48px; object-fit: cover;
  border-radius: 6px; border: 1.5px solid var(--gray-200); flex-shrink: 0;
}
.page-thumb-empty {
  width: 80px; height: 48px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px dashed var(--gray-300); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-300); font-size: 1.4rem;
}
.page-thumb-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* --- Page Banner (thumb da página pública) --- */
.page-banner {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--gray-100);
}

/* --- Layout Link na Bio --- */
.no-header { padding-top: 0; }
.no-header .bio-page { min-height: 100vh; }

.bio-page {
  min-height: calc(100vh - var(--topbar-h));
  background: var(--gray-50);
  padding: 2.5rem 1rem 4rem;
}
.bio-container { max-width: 620px; margin: 0 auto; }
.bio-header { text-align: center; margin-bottom: 2rem; }
.bio-avatar-wrap { margin-bottom: 1rem; }
.bio-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; display: block; margin: 0 auto;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}
.bio-avatar-placeholder {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--primary); color: #1a1000;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.bio-name     { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: .2rem; }
.bio-username { font-size: .85rem; color: var(--gray-500); margin-bottom: .5rem; }
.bio-bio      { font-size: .875rem; color: var(--gray-600); line-height: 1.55; max-width: 380px; margin: 0 auto .6rem; }
.bio-stats    { font-size: .78rem; color: var(--gray-400); }

.bio-cats {
  display: flex; flex-wrap: wrap; gap: .4rem;
  justify-content: center; margin-top: 1.75rem; margin-bottom: 1.5rem;
}

.bio-links { display: flex; flex-direction: column; gap: .75rem; }
.bio-link-btn {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: var(--gray-900);
  transition: all 150ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}
.bio-link-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.09);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--gray-900);
}
.bio-link-thumb {
  width: 46px; height: 46px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; margin-right: 1rem;
}
.bio-link-icon {
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0; margin-right: 1rem;
}
.bio-link-body  { flex: 1; min-width: 0; }
.bio-link-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio-link-desc  { font-size: .78rem; color: var(--gray-500); margin-top: .1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bio-link-meta  { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; flex-wrap: wrap; }
.bio-link-arrow { color: var(--gray-400); margin-left: .75rem; flex-shrink: 0; }
.bio-link-clicks { font-size: .72rem; color: var(--gray-400); }

/* --- Search results --- */
.search-hero { padding: 3rem 0 2rem; text-align: center; }
.search-input { max-width: 100%; font-size: 1rem; padding: .75rem 1rem; }
.search-form { max-width: 640px; margin: 1rem auto 0; }
.search-results-header { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .875rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.search-results-header .share-bar { margin-top: 0; }
.links-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.link-result-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1rem;
  transition: var(--transition);
}
.link-result-card:hover { box-shadow: var(--shadow); }
.result-thumb { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; background: var(--gray-100); }
.result-thumb-placeholder { display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.result-body   { flex: 1; }
.result-title  { font-size: .9375rem; font-weight: 600; margin-bottom: .3rem; }
.result-desc   { font-size: .8rem; color: var(--gray-500); margin-bottom: .5rem; }
.result-meta   { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: .8rem; color: var(--gray-500); }
.result-author { color: var(--primary); }
.result-url    { color: var(--gray-400); }

/* --- Profile edit --- */
.profile-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.two-cols       { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.avatar-upload-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.avatar-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray-200); }

.thumb-preview { max-width: 200px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.thumb-preview-wrap { min-height: 40px; }

.layout-picker { display: flex; gap: .75rem; }

.mini-stat { background: var(--gray-50); border-radius: var(--radius); padding: .5rem .75rem; text-align:center; }
.mini-stat-val { display:block; font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }
.mini-stat-lbl { display:block; font-size: .72rem; color: var(--gray-500); margin-top: .1rem; }
.layout-option {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: .9rem; border: 2px solid var(--gray-200); border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition); text-align: center;
}
.layout-option input[type=radio] { display: none; }
.layout-option:hover { border-color: var(--primary); }
.layout-option.active { border-color: var(--primary); background: var(--primary-light); }
.layout-icon { font-size: 1.5rem; color: var(--gray-400); }
.layout-option.active .layout-icon { color: var(--primary-dark); }
.layout-label { font-size: .8rem; font-weight: 500; color: var(--gray-600); }

.site-preview {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1rem;
}
.preview-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.preview-title { font-weight: 600; font-size: .875rem; margin-bottom: .3rem; }
.preview-desc  { font-size: .8rem; color: var(--gray-500); }

/* --- Edit link layout --- */
.edit-link-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; }
.edit-right       { display: flex; flex-direction: column; gap: 1.25rem; }
.short-url-display { display: flex; align-items: center; gap: .5rem; background: var(--gray-50); padding: .6rem .75rem; border-radius: var(--radius); border: 1.5px solid var(--gray-200); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.mini-stat  { text-align: center; padding: .75rem .5rem; background: var(--gray-50); border-radius: var(--radius); }
.mini-stat-val { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.mini-stat-lbl { font-size: .75rem; color: var(--gray-500); }
.qr-panel     { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.qr-image     { max-width: 180px; border-radius: var(--radius); border: 1px solid var(--gray-200); }
.qr-placeholder { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem; color: var(--gray-400); }
.qr-placeholder span { font-size: 2.5rem; }
.qr-placeholder p    { font-size: .875rem; }

/* --- Categories / Tags --- */
.cat-row { display: flex; align-items: center; gap: .5rem; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: .75rem; }
.tag-item   { display: flex; align-items: center; gap: .4rem; }

/* --- Analytics --- */
.period-tabs { display: flex; gap: .4rem; }
.period-tab {
  padding: .35rem .75rem; border-radius: var(--radius);
  font-size: .8rem; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-600);
  text-decoration: none; transition: var(--transition);
}
.period-tab:hover  { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.period-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.perm-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

/* --- Admin Layout --- */
.admin-body { background: var(--gray-50); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--gray-900);
  color: white;
  display: flex; flex-direction: column;
  position: sticky; top: 0; min-height: 100vh;
}
.admin-logo {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1.1rem; font-weight: 700;
}
.admin-logo a { color: white; text-decoration: none; }
.admin-badge { font-size: .7rem; background: var(--primary); padding: .15rem .4rem; border-radius: 4px; margin-left: .4rem; }
.admin-sidebar .nav-item { color: rgba(255,255,255,.7); }
.admin-sidebar .nav-item:hover { background: rgba(255,255,255,.1); color: white; }
.admin-sidebar .nav-item.active { background: var(--primary); color: white; }
.admin-sidebar .nav-divider { background: rgba(255,255,255,.1); }
.admin-sidebar .nav-logout:hover { color: var(--danger); background: rgba(239,68,68,.15); }
.admin-main    { flex: 1; display: flex; flex-direction: column; }
.admin-topbar  { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: .75rem 1.5rem; display: flex; justify-content: flex-end; }
.admin-content { padding: 1.75rem; flex: 1; }

/* --- Modal --- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600; font-size: 1rem;
}
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--gray-500); text-decoration: none; }
.modal-box .form-layout { padding: 1.25rem 1.5rem; }

/* --- Site footer --- */
.site-footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 2.5rem 0 1.25rem; margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand {}
.footer-logo { height: 38px; object-fit: contain; display: block; margin-bottom: .75rem; }
.footer-tagline { font-size: .82rem; color: var(--gray-400); line-height: 1.5; max-width: 240px; }
.footer-col {}
.footer-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); margin-bottom: .65rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer-links a { font-size: .85rem; color: var(--gray-500); text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--primary-dark); }
.footer-bottom { border-top: 1px solid var(--gray-100); padding-top: 1rem; text-align: center; font-size: .78rem; color: var(--gray-400); }

/* --- Misc utils --- */
.mb-1 { margin-bottom: 1rem; }
.two-cols  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .edit-link-layout  { grid-template-columns: 1fr; }
  .profile-layout    { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-5      { grid-template-columns: repeat(3, 1fr); }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar          { width: 100%; min-height: auto; position: static; }
  .sidebar-nav      { flex-direction: row; flex-wrap: wrap; padding: .5rem; }
  .nav-item         { flex: none; }
  .nav-section, .nav-divider { display: none; }
  .sidebar-user     { display: none; }
  .dashboard-main   { padding: 1rem; }
  .dashboard-cols   { grid-template-columns: 1fr; }
  .two-cols         { grid-template-columns: 1fr; }
  .form-row         { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .hero-title       { font-size: 2rem; }
  .admin-layout     { flex-direction: column; }
  .admin-sidebar    { width: 100%; min-height: auto; position: static; }
  .links-grid       { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .profile-banner-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .auth-card    { padding: 1.5rem; }
}

/* ============================================================
   SHARE BAR — botões de compartilhamento social
   ============================================================ */
.share-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.share-label {
  font-size: .78rem;
  color: var(--gray-500);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-right: .2rem;
  white-space: nowrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
  text-decoration: none;
  color: #fff;
  background: var(--gray-400);
}
.share-btn:hover { transform: scale(1.12); opacity: .9; }
.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #229ed9; }
.share-copy     { background: var(--gray-600); }
.share-copied   { background: var(--success, #22c55e) !important; }

/* Bio layout: centralizado */
.bio-container .share-bar {
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: .25rem;
}

/* Grid layout: alinhado com as info do perfil */
.profile-info .share-bar {
  margin-top: .75rem;
}
@media (max-width: 768px) {
  .profile-info .share-bar { justify-content: center; }
}

/* Feedback de disponibilidade de slug */
.input-ok    { border-color: var(--success, #22c55e) !important; }
.input-error { border-color: var(--danger,  #ef4444) !important; }
