/* ===== SPLASH SCREEN ===== */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #1a0010 0%,
      #3d0026 25%,
      #1e0033 50%,
      #4a0020 75%,
      #0d0018 100%
    );
  animation: splashBgShift 8s ease-in-out infinite alternate;
}

@keyframes splashBgShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(15deg) brightness(1.1); }
  100% { filter: hue-rotate(-10deg) brightness(0.95); }
}

/* Camada de textura/brilho */
.splash-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(233,30,99,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 65%, rgba(156,39,176,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(255,80,120,0.10) 0%, transparent 50%);
  animation: splashGlow 5s ease-in-out infinite alternate;
}

@keyframes splashGlow {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* Partículas */
.splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(233,30,99,0.6);
  box-shadow: 0 0 8px rgba(233,30,99,0.4);
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-20vh) scale(1.2) rotate(360deg); opacity: 0; }
}

/* Corações flutuantes */
.splash-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.splash-heart-float {
  position: absolute;
  bottom: -30px;
  animation: heartRise linear infinite;
  user-select: none;
}
@keyframes heartRise {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) scale(1) rotate(20deg); opacity: 0; }
}

/* Conteúdo da splash */
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem;
  text-align: center;
  min-height: 100vh;
}

.splash-logo-wrap {
  animation: splashLogoIn 1s cubic-bezier(.22,1,.36,1) both;
}
@keyframes splashLogoIn {
  0%   { opacity: 0; transform: translateY(-40px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-logo {
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow:
    0 0 40px rgba(233,30,99,0.8),
    0 0 80px rgba(233,30,99,0.4),
    0 4px 24px rgba(0,0,0,0.6);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 40px rgba(233,30,99,0.8), 0 0 80px rgba(233,30,99,0.4), 0 4px 24px rgba(0,0,0,0.6); }
  50%       { text-shadow: 0 0 60px rgba(233,30,99,1),   0 0 120px rgba(233,30,99,0.6), 0 4px 24px rgba(0,0,0,0.6); }
}

.splash-tagline {
  font-size: clamp(0.8rem, 3vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  animation: splashLogoIn 1.2s 0.3s cubic-bezier(.22,1,.36,1) both;
}

.splash-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: splashCtaIn 1s 0.6s cubic-bezier(.22,1,.36,1) both;
}
@keyframes splashCtaIn {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.splash-desc {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(233,30,99,0.5), 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: btnPulseRing 2.5s 1.5s ease-in-out infinite;
}
.splash-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 8px 40px rgba(233,30,99,0.7), 0 4px 16px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, #f44, #e91e63);
}
.splash-btn:active {
  transform: scale(0.98);
}
@keyframes btnPulseRing {
  0%   { box-shadow: 0 4px 30px rgba(233,30,99,0.5), 0 0 0 0 rgba(233,30,99,0.4); }
  70%  { box-shadow: 0 4px 30px rgba(233,30,99,0.5), 0 0 0 14px rgba(233,30,99,0); }
  100% { box-shadow: 0 4px 30px rgba(233,30,99,0.5), 0 0 0 0 rgba(233,30,99,0); }
}

.splash-age {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.05em;
}

/* Saída da splash */
.splash-exit {
  animation: splashOut 0.7s ease-in forwards;
}
@keyframes splashOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* Login com fundo desfocado */
.login-wrap {
  position: relative;
}
.login-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg,
      #1a0010 0%,
      #3d0026 30%,
      #1e0033 60%,
      #4a0020 100%
    );
  z-index: -2;
}
.login-wrap::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(233,30,99,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(156,39,176,0.18) 0%, transparent 55%);
  z-index: -1;
  filter: blur(40px);
}

/* Fade in do login */
.login-fade-in {
  animation: loginFadeIn 0.6s ease both;
}
@keyframes loginFadeIn {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== BLOQUEIO DE USUÁRIO ===== */
#other-profile-block-btn {
  font-size: 13px;
  padding: 8px 14px;
  gap: 5px;
  display: inline-flex;
  align-items: center;
}
#blocked-profile-banner {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f5f4f0;
  --color-bg-tertiary: #eeede8;
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #666;
  --color-border: rgba(0,0,0,0.10);
  --color-border-hover: rgba(0,0,0,0.22);
  --color-accent: #e91e63;
  --color-accent-light: #fce4ec;
  --color-accent-dark: #c2185b;
  --color-success: #3B6D11;
  --color-success-light: #EAF3DE;
  --color-danger: #A32D2D;
  --color-danger-light: #FCEBEB;
  --color-warning: #854F0B;
  --color-warning-light: #FAEEDA;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-primary: #1c1c1e;
    --color-bg-secondary: #2c2c2e;
    --color-bg-tertiary: #111113;
    --color-text-primary: #f0f0f0;
    --color-text-secondary: #aaa;
    --color-border: rgba(255,255,255,0.10);
    --color-border-hover: rgba(255,255,255,0.22);
  }
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

.hidden { display: none !important; }

input, select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 0.5px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(233,30,99,0.12);
}
input[disabled] { opacity: .6; cursor: not-allowed; }

button {
  cursor: pointer;
  border: 0.5px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 14px;
  padding: 9px 18px;
  transition: background .15s, transform .1s;
  font-family: inherit;
}
button:hover { background: var(--color-bg-secondary); }
button:active { transform: scale(0.98); }

button.primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
button.primary:hover { background: var(--color-accent-dark); }

button.danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
button.danger:hover { background: #791F1F; }

button.success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
button.success:hover { background: #27500A; }

.card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.metric {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.metric .val { font-size: 28px; font-weight: 500; }
.metric .lbl { font-size: 12px; color: var(--color-text-secondary); margin-top: 4px; }

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.badge.active    { background: #EAF3DE; color: #27500A; }
.badge.inactive  { background: #F1EFE8; color: #5F5E5A; }
.badge.admin     { background: #EEEDFE; color: #3C3489; }
.badge.weekly    { background: #E6F1FB; color: #0C447C; }
.badge.monthly   { background: #fce4ec; color: #c2185b; }
.badge.semiannual{ background: #E1F5EE; color: #085041; }
.badge.annual    { background: #fce4ec; color: #c2185b; }
.badge.blocked   { background: #FCEBEB; color: #791F1F; }
.badge.warning   { background: #FAEEDA; color: #633806; }

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  z-index: 9999;
  display: none;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.err { color: var(--color-danger); font-size: 12px; margin-top: 4px; }

nav {
  background: var(--color-bg-primary);
  border-bottom: 0.5px solid var(--color-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .logo { font-weight: 600; font-size: 20px; color: var(--color-accent); letter-spacing: -0.5px; }
nav .nav-right { display: flex; align-items: center; gap: 12px; }

.sidebar {
  width: 200px;
  background: var(--color-bg-primary);
  border-right: 0.5px solid var(--color-border);
  min-height: calc(100vh - 56px);
  padding: 1rem 0;
  position: fixed;
  top: 56px;
  left: 0;
  display: flex;
  flex-direction: column;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 1.25rem;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.sidebar a:hover, .sidebar a.active {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
}
.sidebar a.active { color: var(--color-accent); font-weight: 500; }
.sidebar a i { font-size: 18px; }

.main { margin-left: 200px; padding: 1.5rem; min-height: calc(100vh - 56px); }
.page-title { font-size: 20px; font-weight: 500; margin-bottom: 1.25rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 1.25rem; }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 1.25rem; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
  border-bottom: 0.5px solid var(--color-border);
}
td { padding: 10px 12px; border-bottom: 0.5px solid var(--color-border); }
tr:last-child td { border-bottom: none; }

/* Ações da tabela (três pontinhos) */
.actions-cell {
  text-align: center;
  vertical-align: middle;
}
.action-dots {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-weight: bold;
  transform: rotate(90deg);
}
.action-dots:hover {
  color: var(--color-accent);
  background: var(--color-bg-secondary);
  border-radius: 4px;
}
.user-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 100;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.user-action-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  border-radius: 0;
}
.user-action-menu button:hover {
  background: var(--color-bg-secondary);
}
.user-action-menu button.danger {
  color: var(--color-danger);
}
.user-action-menu button.danger:hover {
  background: var(--color-danger-light);
}

.tabs { display: flex; gap: 4px; border-bottom: 0.5px solid var(--color-border); margin-bottom: 1.75rem; }
.tab {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--color-text-secondary);
  transition: color .15s, border-color .15s;
  user-select: none;
}
.tab.active { border-bottom-color: var(--color-accent); color: var(--color-accent); font-weight: 500; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
}
.login-box {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 380px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  grid-template-columns: 2fr;
}

.login-logo { font-size: 26px; font-weight: 600; color: var(--color-accent); margin-bottom: 4px; }
.login-sub { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 1.75rem; }

.form-row { margin-bottom: 1rem; }
.form-label { font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; display: block; }

.plan-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s;
}
.plan-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.plan-card.featured { border: 2px solid var(--color-accent); }
.plan-price { font-size: 24px; font-weight: 500; }
.plan-period { font-size: 12px; color: var(--color-text-secondary); }
.plan-name { font-size: 14px; font-weight: 500; }
.plan-feature { font-size: 12px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 6px; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
}

/* ========== PERFIL ========== */
.profile-header {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  position: relative;
}

.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -1.5rem -1.5rem 0 -1.5rem;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.profile-cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-cover:hover .profile-cover-overlay {
  opacity: 1;
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-top: -40px;
  margin-bottom: 0.75rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: white;
  border: 4px solid var(--color-bg-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background-size: cover;
  background-position: center;
}

.profile-edit-avatar {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.profile-edit-avatar:hover { background: var(--color-accent-light); }

.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.profile-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-badge {
  background: var(--color-bg-secondary);
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.profile-badge-purple {
  background: #fce4ec;
  color: #c2185b;
}

.profile-stats {
  display: flex;
  gap: 32px;
  padding: 12px 0;
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
  margin-bottom: 12px;
}

.profile-stat {
  text-align: center;
}
.profile-stat-number {
  font-weight: 700;
  font-size: 20px;
}
.profile-stat-label {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.profile-bio {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
}
.profile-bio:hover {
  background: var(--color-border);
}

.profile-info-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 13px;
}
.profile-info-label {
  width: 80px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.profile-info-value {
  flex: 1;
  color: var(--color-text-primary);
}

.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}
.profile-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.profile-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.profile-tab-content {
  display: none;
}
.profile-tab-content.active {
  display: block;
}

.profile-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-feed-post {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.profile-feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-feed-post-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-feed-post-time {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-left: auto;
}

.profile-feed-post-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.profile-feed-post-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 8px;
}

.profile-feed-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0.5px solid var(--color-border);
}

.profile-feed-like-btn, .profile-feed-comment-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 99px;
}

.profile-feed-like-btn.liked {
  color: #c0392b;
}

.profile-feed-like-btn:hover, .profile-feed-comment-btn:hover {
  background: var(--color-bg-secondary);
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.profile-gallery-item {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.profile-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-actions {
  margin-top: 1rem;
  text-align: right;
}

/* ========== PÁGINA DE BUSCA ========== */
.search-layout {
  display: flex;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.search-filters {
  width: 280px;
  flex-shrink: 0;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.search-filters-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--color-border);
}

.reset-filters {
  margin-left: auto;
  background: none;
  color: var(--color-accent);
  padding: 4px 8px;
  font-size: 12px;
  border: none;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-section-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text-primary);
}

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.filter-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-range input {
  width: 70px;
  text-align: center;
}

.apply-filters-btn {
  width: 100%;
  background: var(--color-accent);
  color: white;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apply-filters-btn:hover {
  background: var(--color-accent-dark);
}

.search-results {
  flex: 1;
}

.search-results-header {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.search-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.search-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  color: white;
  background-size: cover;
  background-position: center;
}

.search-card-info {
  padding: 12px;
}

.search-card-name {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.search-card-username {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.search-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.search-card-detail {
  font-size: 11px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-card-detail i {
  font-size: 12px;
}

.search-card-distance {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
}

.search-location-info {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========== NOTIFICAÇÕES ========== */
.notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 9px; height: 9px;
  background: #c0392b;
  border-radius: 50%;
  border: 2px solid var(--color-bg-primary);
  transform: translate(50%, -50%);
}
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 500;
  overflow: hidden;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 0.5px solid var(--color-border);
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--color-border);
  cursor: pointer;
  transition: background .12s;
  font-size: 13px;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--color-bg-secondary); }
.notif-item.unread { background: var(--color-accent-light); }
.notif-item.unread:hover { background: #e0dff8; }
.notif-item-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.notif-icon-like   { background: #fce4e4; color: #c0392b; }
.notif-icon-comment{ background: #e8f4fd; color: #1a6fa8; }
.notif-icon-follow { background: #eaf3de; color: #27500a; }
.notif-type-badge {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg-primary);
  font-size: 9px;
}
.notif-type-badge.notif-icon-like    { background: #e74c3c; color: #fff; }
.notif-type-badge.notif-icon-comment { background: #1a6fa8; color: #fff; }
.notif-type-badge.notif-icon-follow  { background: #27ae60; color: #fff; }
.notif-text { flex: 1; line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }
.notif-empty { text-align: center; padding: 2rem; color: var(--color-text-secondary); font-size: 13px; }

/* ========== MENSAGENS ========== */
.msg-widget {
  position: fixed;
  bottom: 0;
  right: 24px;
  width: 320px;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  z-index: 400;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#msg-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--color-border);
  background: var(--color-accent);
  color: #fff;
  user-select: none;
}
#msg-widget-header i { color: #fff; }
#msg-widget-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
#msg-widget-body.open {
  max-height: 420px;
  overflow: hidden;
}
.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--color-border);
  cursor: pointer;
  transition: background .12s;
}
.msg-conv-item:hover { background: var(--color-bg-secondary); }
.msg-conv-name { font-size: 13px; font-weight: 500; }
.msg-conv-preview { font-size: 12px; color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.msg-conv-unread {
  background: #1e88e5;
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  margin-left: auto;
  animation: pulseBlue 1s infinite;
}
@keyframes pulseBlue {
  0% { opacity: 0.6; transform: scale(0.9); }
  70% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.6; transform: scale(0.9); }
}
#msg-chat-header {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 0.5px solid var(--color-border);
  background: var(--color-bg-secondary);
}
#msg-chat-messages {
  height: 240px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.msg-bubble {
  max-width: 75%;
  padding: 7px 11px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.msg-bubble.mine {
  background: var(--color-accent);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}
.msg-bubble.theirs {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.msg-bubble-time { font-size: 10px; opacity: .65; margin-top: 3px; }
.msg-conv-empty { text-align: center; padding: 2rem 1rem; font-size: 13px; color: var(--color-text-secondary); }

/* ========== FEED ========== */
.feed-post {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 12px;
  transition: box-shadow .15s;
}
.feed-post:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.feed-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-post-name { font-size: 14px; font-weight: 500; }
.feed-post-time { font-size: 11px; color: var(--color-text-secondary); margin-left: auto; }
.feed-post-body { font-size: 14px; line-height: 1.6; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.feed-post-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 10px; display: block; }
.feed-post-actions { display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 0.5px solid var(--color-border); }
.feed-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 99px;
  font-size: 13px; color: var(--color-text-secondary);
  background: transparent; border: none; cursor: pointer;
  transition: background .13s, color .13s;
}
.feed-action-btn:hover { background: var(--color-bg-secondary); color: var(--color-text-primary); }
.feed-action-btn.liked { color: #c0392b; }
.feed-action-btn.liked i { color: #c0392b; }
.feed-action-btn i { font-size: 17px; }
.feed-comment-section { margin-top: 10px; border-top: 0.5px solid var(--color-border); padding-top: 10px; display: none; }
.feed-comment-section.open { display: block; }
.feed-comment-item { display: flex; gap: 8px; margin-bottom: 8px; }
.feed-comment-bubble { background: var(--color-bg-secondary); border-radius: var(--radius-md); padding: 7px 10px; flex: 1; font-size: 13px; }
.feed-comment-author { font-weight: 500; font-size: 12px; margin-bottom: 2px; }
.feed-comment-input-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.feed-comment-input-row input { font-size: 13px; padding: 7px 12px; }
.feed-plan-badge { font-size: 10px; padding: 1px 7px; border-radius: 99px; font-weight: 600; letter-spacing: .3px; }
.feed-plan-free { background: #f1efe8; color: #5f5e5a; }
.feed-plan-paid { background: #fce4ec; color: #c2185b; }

/* ========== MODAL ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 0.5px solid var(--color-border);
  font-weight: 600;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 0.5px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
  .search-layout {
    flex-direction: column;
  }
  .search-filters {
    width: 100%;
    position: static;
  }
  .profile-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-name {
    font-size: 20px;
  }
  .main {
    margin-left: 0;
    padding: 1rem;
  }
  .sidebar {
    display: none;
  }
  .profile-stats {
    gap: 16px;
  }
  .profile-stat-number {
    font-size: 16px;
  }
  .grid4, .grid2, .grid3 {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* ========== NOVOS ESTILOS ========== */
.profile-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
}
.profile-edit-btn-icon {
  background: var(--color-bg-secondary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.profile-edit-btn-icon:hover {
  background: var(--color-border);
}
.profile-edit-btn-icon i {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.feed-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--color-border);
  margin: 16px 0 16px 0;
}
.feed-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.feed-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.profile-stat {
  cursor: pointer;
}
.profile-stat:hover .profile-stat-number {
  color: var(--color-accent);
}

/* Estilos para registro em etapas */
#reg-step1, #reg-step2, #reg-step3 {
  transition: opacity 0.2s;
}
.terms-row {
  margin-top: 10px;
  margin-bottom: 5px;
}
.terms-row a {
  text-decoration: none;
}
.password-field {
  position: relative;
}
.toggle-password {
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color 0.2s;
}
.toggle-password:hover {
  color: var(--color-accent);
}
/* ===== LOGIN EXTRAS ===== */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px 0;
  color: var(--color-text-secondary);
  font-size: 12px;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--color-border-hover);
}
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.google-btn:hover {
  background: var(--color-bg-secondary);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

/* ===== CITY AUTOCOMPLETE ===== */
.city-suggestions {
  position: absolute;
  z-index: 500;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
  margin-top: 2px;
}
.city-suggestion-item {
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background .1s;
  color: var(--color-text-primary);
}
.city-suggestion-item:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
}
.form-row { position: relative; }

/* ===== NOTIF UNREAD DOT ===== */
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ===== FORGOT MODAL ===== */
#forgot-modal {
  display: none;
}

/* ===== POST ACTION MENU ===== */
.post-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 20px;
  color: var(--color-text-secondary);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background .13s, color .13s;
}
.post-menu-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-accent);
}
.post-action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 200;
  min-width: 160px;
  overflow: hidden;
}
.post-action-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.post-action-menu button:hover {
  background: var(--color-bg-secondary);
}
.post-action-menu button.danger {
  color: var(--color-danger);
}
.post-action-menu button.danger:hover {
  background: var(--color-danger-light);
}