/* Emblema VIP */
.vip-badge {
  font-size: 16px;
  margin-left: 2px;
  color: #ffd700;
  filter: drop-shadow(0 0 2px #fff59e);
  vertical-align: middle;
}
.profile-modal-cosmetic-badge,
.chat-cosmetic-badge,
.post-cosmetic-badge,
.message-cosmetic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(102,118,234,0.12);
  color: #1f2d64;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(102,118,234,0.18);
}
.profile-modal-cosmetic-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(102,118,234,0.16);
}
.post-avatar.cosmetic-ring {
  box-shadow: inset 0 0 0 3px var(--cosmetic-ring-color, #7c3aed);
}
.cosmetic-active {
  box-shadow: 0 0 0 4px var(--cosmetic-color, rgba(124, 58, 237, 0.85));
}
.vip-pulse {
  animation: vip-pulse 1.6s ease-in-out infinite;
}
@keyframes vip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
  50% { box-shadow: 0 0 14px 4px rgba(255,255,255,0.35); }
}
:root {
  --bg-base: #ffffff;
  --bg-accent: #e6f2ff;
  --ink: #001a33;
  --muted: #4a6fa5;
  --card: #ffffff;
  --line: #b3d9ff;
  --primary: #0066cc;
  --primary-hover: #0052a3;
  --ring: rgba(0, 102, 204, 0.25);
  --stat-bg: #f0f5ff;
  --panel-bg: #f8fbff;
}

[data-theme="dark"] {
  --bg-base: #0d1b2a;
  --bg-accent: #1a2f4a;
  --ink: #e6f2ff;
  --muted: #9dbde8;
  --card: #162a4a;
  --line: #4a7ba7;
  --primary: #0099ff;
  --primary-hover: #0073cc;
  --ring: rgba(0, 153, 255, 0.3);
  --stat-bg: #1a3a5c;
  --panel-bg: #162a4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 102, 204, 0.12), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(0, 51, 102, 0.1), transparent 35%),
    linear-gradient(135deg, var(--bg-base), var(--bg-accent));
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.5;

/* Community cards styling for recommendations and search results */
.community-card, .social-result-card.community-search-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.community-banner {
  width: 100%;
  height: 90px;
  background-size: cover;
  background-position: center;
}

.community-banner.small { height: 56px; }

.community-card-body, .community-search-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.community-avatar {
  width: 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.community-info, .community-search-info {
  flex: 1;
}

.community-card-meta, .social-result-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.community-creator {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.community-badge { margin-left: 8px; }

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(102,118,234,0.08);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(102,118,234,0.12);
}

.community-action-row { padding: 10px; display:flex; gap:8px; align-items:center; }
}

.bg-shape-1 {
  width: 300px;
  height: 300px;
  background: #0066cc;
  top: -120px;
  right: -60px;
}

.bg-shape-2 {
  width: 260px;
  height: 260px;
  background: #0052a3;
  bottom: -100px;
  left: -80px;
}

.container {
  width: min(1000px, 92%);
  margin: 0 auto;
}

.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.card {
  width: min(520px, 100%);
  background: color-mix(in srgb, var(--card) 90%, #ffffff 10%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 16px 38px rgba(0, 61, 153, 0.12);
  animation: slideIn 0.5s ease-out;
}

.dashboard-shell {
  width: min(920px, 100%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #e6f2ff;
  color: #003d99;
  border: 1px solid #b3d9ff;
  overflow: hidden;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hidden {
  display: none;
}

.stats-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.stat-item {
  border: 1px solid var(--line);
  background: var(--stat-bg);
  border-radius: 14px;
  padding: 12px;
}

.stat-item h2 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.stat-item p {
  margin: 0;
  font-weight: 700;
  word-break: break-word;
}

.panel-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-box {
  border: 1px solid var(--line);
  background: var(--panel-bg);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 61, 153, 0.06);
}

.panel-box h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.panel-box p {
  margin: 0;
}

.status-list p + p {
  margin-top: 6px;
}

.compact-form {
  margin-top: 8px;
}

.pill-list {
  display: grid;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  border: 1px solid #b3d9ff;
  background: #f0f5ff;
}

.pill.warning {
  border-color: #4da6ff;
  background: #e6f2ff;
}

.pill.info {
  border-color: #0066cc;
  background: #e6f2ff;
}

.pill.success {
  border-color: #00b348;
  background: #e6ffe6;
}

.activity-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.activity-list li {
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.activity-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pager .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.muted {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 0.92rem;
}

.tips-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.tips-list li + li {
  margin-top: 6px;
}

.dashboard-actions {
  margin-top: 16px;
}

.home-layout {
  min-height: 100vh;
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px 0;
}

.home-hero {
  width: 100%;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-card {
  width: 100%;
  padding: 18px;
}

.feature-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.home-cta {
  width: 100%;
  padding: 20px;
  text-align: left;
}

.home-cta h2 {
  margin: 0 0 8px;
}

.home-cta p {
  margin: 0;
  color: var(--muted);
}

h1 {
  margin: 10px 0 8px;
  line-height: 1.2;
}

.lead {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin: 0;
  background: #e6f2ff;
  color: #003d99;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid #b3d9ff;
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
}

select {
  width: 100%;
  border: 1px solid #b3d9ff;
  background: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  font-size: 1rem;
}

input:focus {
  outline: 3px solid var(--ring);
  border-color: var(--primary);
}

select:focus {
  outline: 3px solid var(--ring);
  border-color: var(--primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 61, 153, 0.12);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-danger {
  color: #fff;
  background: #9d2828;
}

.btn-danger:hover {
  background: #7b1a1a;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid #b3d9ff;
  background: #f0f5ff;
}

.profile-action-btn {
  border: 0;
  background: linear-gradient(135deg, #4f86ff, #2d5fe0);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.profile-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(47, 93, 255, 0.18);
}

.cosmetics-card {
  background: var(--card);
  border: 1px solid #d8e4fb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(22, 39, 83, 0.08);
  margin-top: 14px;
}

.cosmetics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cosmetic-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e6f2ff;
  color: #0f2d61;
  font-weight: 700;
  font-size: 0.85rem;
}

.cosmetic-pill.mini {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.cosmetics-empty,
.cosmetics-status,
.cosmetics-note {
  color: var(--muted);
  margin: 0 0 12px;
}

.cosmetics-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.cosmetic-select {
  width: 100%;
  border: 1px solid #cbdaf1;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fbff;
  color: var(--ink);
}

.cosmetics-list {
  display: grid;
  gap: 10px;
}

.cosmetics-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #f6faff;
  border: 1px solid #d8e4fb;
  border-radius: 14px;
}

.cosmetics-item-name {
  font-weight: 700;
}

.cosmetics-item-price {
  color: #0f2d61;
  font-weight: 700;
}

  background: #eef4ff;
  border: 1px solid #d6e6ff;
  font-weight: 600;
}

.message.success {
  color: #236640;
  background: #eaf7ef;
  border-color: #b8e1c7;
}

.message.error {
  color: #8c1f1f;
  background: #fbeeee;
  border-color: #efc3c3;
}

.switch-link {
  margin: 14px 0 0;
  color: var(--muted);
}

.switch-link a {
  color: #0066cc;
  font-weight: 700;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 580px) {
  .card {
    padding: 22px;
    border-radius: 16px;
  }

  .dashboard-header {
    align-items: flex-start;
  }

  .avatar {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .activity-filters {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
  }

  .pager {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    flex-direction: column;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Theme toggle */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 64px;
  height: 64px;
  background: #25d366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
  text-decoration: none;
  padding: 0;
  color: white;
}

.whatsapp-button svg {
  width: 34px;
  height: 34px;
}

.whatsapp-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  background: #25d366;
}

.whatsapp-button:active {
  transform: scale(0.95);
}

/* Instagram Floating Button */
.instagram-button {
  position: fixed;
  bottom: 96px;
  left: 20px;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 8%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 99;
  text-decoration: none;
  padding: 0;
  color: white;
}

.instagram-button svg {
  width: 32px;
  height: 32px;
}

.instagram-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.instagram-button:active {
  transform: scale(0.95);
}

/* Header Navigation */
.header {
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  padding: 0.75rem 1.5rem;
  background: var(--input-bg);
  color: var(--text-muted, var(--muted));
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--card);
  color: var(--color-primary, var(--primary));
  border-color: var(--color-primary, var(--primary));
}

.nav-link.active {
  background: var(--color-primary, var(--primary));
  color: white;
  border-color: var(--color-primary, var(--primary));
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  width: min(480px, 92vw);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.modal-box h3 {
  margin: 0 0 12px;
}

.modal-box img {
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}

/* Sessions table */
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}

.sessions-table th,
.sessions-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}

.sessions-table th {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.sessions-table .current-badge {
  background: #e6f2ff;
  color: #003d99;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="dark"] .sessions-table .current-badge {
  background: #1e4d2b;
  color: #6fcf97;
}

/* Drag & drop upload */
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.drop-zone.drag-over {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop-zone-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 8px auto 0;
  display: block;
}

/* Charts */
.chart-container {
  position: relative;
  height: 180px;
  margin-top: 10px;
}

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 12px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.active { background: #d4edda; color: #155724; }
.status-badge.suspended { background: #f8d7da; color: #721c24; }
[data-theme="dark"] .status-badge.active { background: #1e4d2b; color: #6fcf97; }
[data-theme="dark"] .status-badge.suspended { background: #4d1e1e; color: #f97171; }

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-search input {
  flex: 1;
}

/* ==========================================
   RESPONSIVE MOBILE LAYOUT
   ========================================== */

/* Tablet e telas pequenas (até 768px) */
@media (max-width: 768px) {
  .container {
    width: min(100%, 95%);
    margin: 0 auto;
    padding: 0 10px;
  }

  /* Layout de 3 colunas para 1 coluna */
  .container[style*="grid-template-columns: 1fr 600px 1fr"],
  .container[style*="display: grid"] {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  .sidebar-left,
  .sidebar-right {
    order: 2;
  }

  .feed {
    order: 1;
    width: 100%;
  }

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .post-card,
  .sidebar-card,
  .post-composer {
    border-radius: 12px;
    padding: 12px;
  }

  .user-avatar {
    width: 56px;
    height: 56px;
  }

  .composer-input-wrapper {
    padding: 8px 12px;
  }

  .post-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .stat-item {
    padding: 10px;
  }

  .panel-box {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .header-logo {
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
  }

  .site-logo-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    object-fit: contain;
    vertical-align: middle;
  }

  .nav {
    gap: 8px;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Centralizar conteúdo */
  .center-screen {
    padding: 16px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }
}

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
  * {
    margin: 0;
    padding: 0;
  }

  body {
    padding: 0;
    margin: 0;
  }

  .container {
    width: 100%;
    margin: 0 auto;
    padding: 0 8px;
  }

  .header-content {
    padding: 0 8px;
    flex-direction: column;
    align-items: center;
  }

  .header-logo {
    font-size: 20px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .header-btn {
    width: 100%;
    padding: 10px;
  }

  .header-select select,
  .logout-btn,
  .login-btn {
    width: 100%;
  }

  .card {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .center-screen {
    min-height: auto;
    padding: 12px 0;
  }

  h1 {
    font-size: 20px;
    text-align: center;
  }

  .lead {
    font-size: 14px;
    text-align: center;
  }

  .post-composer {
    padding: 12px;
    margin: 0 8px;
  }

  .composer-header {
    gap: 10px;
  }

  .composer-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .composer-input-wrapper {
    padding: 8px 12px;
    border-radius: 16px;
  }

  .post-card {
    margin: 0 8px;
    padding: 12px;
  }

  .post-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .post-author-info {
    width: 100%;
  }

  .post-meta {
    width: 100%;
  }

  .post-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .post-composer .composer-actions {
    flex-direction: column-reverse;
  }

  .char-count {
    text-align: right;
    margin-bottom: 8px;
  }

  .sidebar-card {
    margin: 0 8px;
    padding: 12px;
  }

  .user-card {
    text-align: center;
  }

  .user-avatar {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
  }

  .user-name {
    font-size: 14px;
  }

  .user-email {
    font-size: 12px;
  }

  .stats-grid {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 10px;
  }

  .stat-item h2 {
    font-size: 0.75rem;
  }

  .stat-item p {
    font-size: 0.95rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .panel-box {
    padding: 12px;
    border-radius: 10px;
  }

  .panel-box h2 {
    font-size: 0.95rem;
  }

  .panel-box p {
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .form {
    gap: 12px;
  }

  label {
    font-size: 0.9rem;
  }

  input,
  select,
  textarea {
    padding: 10px;
    font-size: 16px; /* Previne zoom em iOS */
    border-radius: 8px;
  }

  .actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 14px;
  }

  .btn-primary,
  .btn-danger,
  .btn-ghost {
    width: 100%;
  }

  .profile-action-btn {
    width: 100%;
    padding: 12px;
  }
}

/* Notification System Styles */
.notifications-icon {
  position: relative;
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.notifications-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.notifications-dropdown {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 360px;
  max-height: 500px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.notifications-header h3 {
  margin: 0;
  font-size: 18px;
}

.unread-badge {
  display: inline-block;
  background: #ff4757;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}

.notification-item:hover {
  background: var(--panel-bg);
}

.notification-item.unread {
  background: rgba(66, 153, 225, 0.05);
  border-left: 4px solid var(--accent);
}

.notification-icon {
  font-size: 24px;
  min-width: 24px;
  text-align: center;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}

.notification-message {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
  line-height: 1.3;
  word-wrap: break-word;
}

.notification-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.notification-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  color: var(--muted);
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--accent);
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.notifications-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.btn-link {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.btn-link:hover {
  background: var(--panel-bg);
}

.btn-link.danger {
  color: #d32f2f;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.notification-toast {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-toast-moderator_promotion {
  border-left: 4px solid #667eea;
}

.notification-toast-community_update {
  border-left: 4px solid #29cc6d;
}

.notification-toast-message {
  border-left: 4px solid #ff9f1a;
}

.notification-toast-alert {
  border-left: 4px solid #e53238;
}

.notification-toast-success {
  border-left: 4px solid #29cc6d;
}

.notification-toast-info {
  border-left: 4px solid #4299e1;
}

.toast-icon {
  font-size: 24px;
  min-width: 24px;
  text-align: center;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}

.toast-message {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  padding: 4px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: var(--ink);
}

@media (max-width: 600px) {
  .notifications-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 400px;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

  /* Floating buttons mobile */
  .whatsapp-button {
    width: 56px;
    height: 56px;
    bottom: 16px;
    left: 16px;
  }

  .whatsapp-button svg {
    width: 28px;
    height: 28px;
  }

  .instagram-button {
    width: 56px;
    height: 56px;
    bottom: 80px;
    left: 16px;
  }

  .instagram-button svg {
    width: 26px;
    height: 26px;
  }

  /* Theme toggle mobile */
  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  /* Modal mobile */
  .modal-box {
    width: 90vw;
    max-width: 100%;
    padding: 16px;
    border-radius: 12px;
  }

  .modal-box h3 {
    font-size: 18px;
  }

  /* Tabelas mobile */
  .sessions-table,
  .admin-table {
    font-size: 0.8rem;
  }

  .sessions-table th,
  .sessions-table td,
  .admin-table th,
  .admin-table td {
    padding: 6px 4px;
  }

  /* Feed responsivo */
  .feed {
    gap: 12px;
  }

  .composer-textarea {
    min-height: 80px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .activity-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-actions {
    flex-direction: column;
    gap: 8px;
  }

  .pager {
    flex-direction: column;
    gap: 8px;
  }

  .pager button {
    width: 100%;
  }

  /* Home grid mobile */
  .home-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 14px;
  }

  .feature-card h2 {
    font-size: 1rem;
  }

  .home-cta {
    padding: 14px;
    text-align: center;
  }

  .home-cta h2 {
    font-size: 1.1rem;
  }

  /* Cosmetics card mobile */
  .cosmetics-card {
    padding: 12px;
    margin-top: 10px;
  }

  .cosmetics-card-header {
    flex-direction: column;
    gap: 10px;
  }

  .cosmetics-select-row {
    grid-template-columns: 1fr;
  }

  .cosmetic-select {
    width: 100%;
  }

  .cosmetics-item {
    flex-direction: column;
    gap: 8px;
  }

  /* Centralizar tudo */
  body {
    text-align: center;
  }

  .center-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Drop zone mobile */
  .drop-zone {
    padding: 16px;
  }

  .drop-zone-preview {
    width: 60px;
    height: 60px;
  }

  /* Chart mobile */
  .chart-container {
    height: 200px;
  }

  /* Ajustar background shapes para mobile */
  .bg-shape-1,
  .bg-shape-2 {
    display: none;
  }
}

/* Muito pequeno (até 360px) */
@media (max-width: 360px) {
  .card {
    padding: 12px;
  }

  h1 {
    font-size: 18px;
  }

  .header-logo {
    font-size: 18px;
    padding-left: 0;
  }

  .btn {
    padding: 10px;
    font-size: 12px;
  }

  .post-card,
  .sidebar-card,
  .post-composer {
    padding: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  input,
  select {
    padding: 8px;
    font-size: 14px;
  }

  .whatsapp-button,
  .instagram-button {
    width: 50px;
    height: 50px;
  }

  .whatsapp-button svg,
  .instagram-button svg {
    width: 24px;
    height: 24px;
  }
}

.post-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
}

.post-link:hover {
  text-decoration: underline;
}

/* Mention styles */
.mention-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  background: #f0f4ff;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mention-link:hover {
  background: #e6ecff;
  text-decoration: underline;
}

/* Print styles */
@media print {
  .whatsapp-button,
  .instagram-button,
  .theme-toggle {
    display: none !important;
  }
}
