/* ═══════════════════════════════════════════════════════════════════════════
   PortalIDEAR — app.css
   Paleta: Azul escuro + Roxo | Visual Startup/SaaS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts já importado via HTML ─────────────────────────────────── */

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  --c-navy:        #0f172a;
  --c-blue:        #1e3a8a;
  --c-blue-mid:    #2563eb;
  --c-purple:      #7c3aed;
  --c-violet:      #4f46e5;
  --c-indigo:      #6366f1;
  --c-text:        #1e293b;
  --c-text-muted:  #64748b;
  --c-bg:          #f8fafc;
  --c-bg-alt:      #f1f5f9;
  --c-white:       #ffffff;
  --c-border:      #e2e8f0;
  --c-success:     #10b981;
  --c-warning:     #f59e0b;
  --c-danger:      #ef4444;
  --c-info:        #0ea5e9;

  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #4f46e5 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --gradient-card: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.flex-grow-1 { flex-grow: 1; }

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
#mainNav {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: .75rem 0;
  transition: all .3s ease;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white) !important;
  letter-spacing: -.5px;
}

.brand-icon { margin-right: .3rem; }
.brand-highlight { color: var(--c-indigo); }

.nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .75rem !important;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--c-white) !important;
  background: rgba(255,255,255,0.08);
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--gradient-hero);
  padding: 6rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--c-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.4);
  color: #a5b4fc;
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.15;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 520px;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--gradient-card);
  border: none;
  color: white;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(99,102,241,.4);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.5);
  color: white;
}
.btn-hero-secondary {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: white;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all .25s;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.18);
  color: white;
}
.hero-stats { display: flex; gap: 2rem; }
.hero-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: white; }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.6); }

/* Hero floating cards */
.hero-illustration { position: relative; height: 360px; }
.hero-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: white;
  font-size: .85rem;
  animation: float 6s ease-in-out infinite;
}
.hero-card i { font-size: 1.5rem; }
.hero-card strong { display: block; font-weight: 600; }
.hero-card small { color: rgba(255,255,255,.7); font-size: .75rem; }
.floating-card-1 { top: 10%; left: 0; animation-delay: 0s; }
.floating-card-2 { top: 40%; right: 5%; animation-delay: 2s; }
.floating-card-3 { bottom: 10%; left: 15%; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── Section Helpers ──────────────────────────────────────────────────────── */
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.section-tag {
  display: inline-block;
  background: rgba(99,102,241,.12);
  color: var(--c-violet);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.5px;
}
.section-subtitle { color: var(--c-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }

/* ─── How It Works ─────────────────────────────────────────────────────────── */
.how-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  transition: all .3s;
  height: 100%;
  position: relative;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.how-card-featured {
  background: var(--gradient-card);
  border-color: transparent;
  color: white;
}
.how-card-featured p { color: rgba(255,255,255,.85); }
.how-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(99,102,241,.12);
  line-height: 1;
  margin-bottom: .5rem;
}
.how-card-featured .how-number { color: rgba(255,255,255,.2); }
.how-icon { font-size: 2rem; margin-bottom: 1rem; color: var(--c-violet); }
.how-card-featured .how-icon { color: rgba(255,255,255,.9); }
.how-card h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }

/* ─── Idea Card ────────────────────────────────────────────────────────────── */
.idea-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
  overflow: hidden;
}
.idea-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(99,102,241,.3);
  transform: translateY(-3px);
}
.idea-card-header { padding: 1.25rem 1.25rem .75rem; }
.idea-card-title { font-size: 1rem; font-weight: 700; color: var(--c-navy); line-height: 1.4; margin: 0; }
.idea-card-body { padding: 0 1.25rem .75rem; flex-grow: 1; }
.idea-card-description { font-size: .88rem; color: var(--c-text-muted); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-card-section { background: var(--c-bg-alt); border-radius: var(--radius-sm); padding: .6rem .75rem; margin-top: .6rem; }
.idea-card-secondary { font-size: .82rem; color: var(--c-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea-card-footer { padding: .75rem 1.25rem 1.25rem; border-top: 1px solid var(--c-border); }
.idea-stats { display: flex; gap: 1.25rem; }
.stat-item { display: flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--c-text-muted); }
.idea-card-meta small { font-size: .78rem; }

/* ─── Badges ───────────────────────────────────────────────────────────────── */
.badge-segment {
  background: rgba(30,58,138,.12) !important;
  color: var(--c-blue) !important;
  border: 1px solid rgba(30,58,138,.2);
  font-weight: 600;
  font-size: .72rem;
}
.badge-solution {
  background: rgba(124,58,237,.12) !important;
  color: var(--c-purple) !important;
  border: 1px solid rgba(124,58,237,.2);
  font-weight: 600;
  font-size: .72rem;
}
.badge-size {
  background: rgba(16,185,129,.1) !important;
  color: #059669 !important;
  border: 1px solid rgba(16,185,129,.2);
  font-weight: 600;
  font-size: .72rem;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--gradient-card) !important;
  border-color: transparent !important;
  font-weight: 600;
  border-radius: var(--radius-sm) !important;
  transition: all .25s !important;
  box-shadow: 0 2px 8px rgba(99,102,241,.3) !important;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.4) !important;
}
.btn-purple {
  background: var(--c-purple) !important;
  border-color: var(--c-purple) !important;
  color: white !important;
}
.bg-purple { background-color: var(--c-purple) !important; }

/* ─── Page Header ──────────────────────────────────────────────────────────── */
.page-header { background: var(--gradient-dark); }
.page-title { font-weight: 700; font-size: 1.8rem; }
.bg-gradient-dark { background: var(--gradient-dark) !important; }

/* ─── Benefits ─────────────────────────────────────────────────────────────── */
.section-benefits { background: var(--gradient-dark) !important; }
.benefit-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s;
  height: 100%;
}
.benefit-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.benefit-card i { font-size: 2.5rem; color: #a5b4fc; display: block; margin-bottom: 1rem; }
.benefit-card h5 { color: white; font-weight: 700; margin-bottom: .5rem; }
.benefit-card p { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }
.benefit-mini { padding: 1.25rem; background: var(--c-bg-alt); border-radius: var(--radius); }

.bg-gradient-primary { background: var(--gradient-dark) !important; }

/* ─── CTA ──────────────────────────────────────────────────────────────────── */
.cta-title { font-size: 2.2rem; font-weight: 800; color: var(--c-navy); letter-spacing: -.5px; }
.cta-subtitle { color: var(--c-text-muted); font-size: 1.1rem; max-width: 540px; margin: .75rem auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  color: rgba(255,255,255,.55);
  position: relative;
  overflow: hidden;
}
/* Brilho decorativo no canto superior direito */
.site-footer::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(99,102,241,.09) 0%, transparent 70%);
  pointer-events: none;
}
/* Linha accent gradiente no topo */
.footer-accent-bar {
  height: 3px;
  background: var(--gradient-card);
}

/* Marca */
.footer-brand { font-size: 1.4rem; font-weight: 700; color: white; }
.footer-tagline { color: rgba(255,255,255,.88); font-weight: 600; font-size: 1rem; }
.footer-description { color: rgba(255,255,255,.4); font-size: .875rem; line-height: 1.65; }

/* Cabeçalhos das colunas */
.footer-heading {
  color: white;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Links */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  transition: color .2s, padding-left .2s;
}
.footer-links a i { opacity: .45; transition: opacity .2s; font-size: .8rem; }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links a:hover i { opacity: 1; }

/* Contato */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .875rem;
  color: rgba(255,255,255,.5);
}
.footer-contact-item i { color: var(--c-indigo); font-size: 1rem; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; word-break: break-all; }
.footer-contact-item a:hover { color: white; }

/* Botão CTA no rodapé */
.btn-footer-cta {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 8px;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
}
.btn-footer-cta:hover {
  background: rgba(99,102,241,.3);
  border-color: rgba(99,102,241,.7);
  color: white;
  transform: translateY(-1px);
}

/* Redes sociais */
.footer-social { display: flex; gap: .5rem; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  text-decoration: none;
  transition: all .22s;
}
.social-btn:hover {
  background: rgba(99,102,241,.22);
  border-color: rgba(99,102,241,.5);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 0;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
}
.footer-bottom strong { color: rgba(255,255,255,.55); font-weight: 600; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0 1.5rem; }

/* ─── Detail Card ──────────────────────────────────────────────────────────── */
.detail-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.detail-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-navy);
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--c-bg-alt);
  margin-bottom: 1rem;
}
.detail-content { font-size: .95rem; line-height: 1.75; white-space: pre-wrap; }

/* ─── Engagement Stats ─────────────────────────────────────────────────────── */
.engagement-stats { display: flex; flex-direction: column; gap: 1rem; }
.engagement-item { display: flex; align-items: center; gap: 1rem; }
.engagement-item i { font-size: 1.75rem; }

/* ─── Comment ──────────────────────────────────────────────────────────────── */
.comment-item {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-indigo);
  margin-bottom: .75rem;
}
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.comment-content { font-size: .9rem; color: var(--c-text); }

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.modal-panel {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}
.modal-header-custom h5 { margin: 0; font-weight: 700; }
.modal-body-custom { padding: 1.5rem; }
.btn-close-custom { background: none; border: none; cursor: pointer; color: var(--c-text-muted); font-size: 1.1rem; padding: .25rem; border-radius: 4px; transition: all .2s; }
.btn-close-custom:hover { background: var(--c-bg-alt); color: var(--c-text); }

/* ─── Cocreators list (admin) ─────────────────────────────────────────────── */
.cocreators-list { display: flex; flex-direction: column; }
.cocreator-item { display: flex; align-items: flex-start; gap: .75rem; padding: .4rem 0; }
.cocreator-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient-card);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ─── Settings Page ──────────────────────────────────────────────────────── */
.settings-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.settings-card-header > i {
  font-size: 1.6rem;
  margin-top: .15rem;
  flex-shrink: 0;
}
.text-indigo { color: var(--c-indigo) !important; }

/* Campo senha com botão olho embutido */
.input-password-group {
  position: relative;
}
.input-password-group .form-control {
  padding-right: 2.6rem;
}
.btn-eye {
  position: absolute;
  right: .6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  transition: color .15s;
}
.btn-eye:hover { color: var(--c-text); }

/* Avatar circular pequeno na tabela de usuários */
.user-avatar-sm {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gradient-card);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.users-table-wrapper { overflow-x: auto; }

/* ─── Admin Comments (detalhe da ideia) ──────────────────────────────────── */
.admin-comments-list { display: flex; flex-direction: column; gap: .75rem; }
.admin-comment-item {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
}
.admin-comment-item.opacity-50 { opacity: .5; }
.admin-comment-form {
  background: rgba(99,102,241,.04);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  padding: 1rem;
}
.btn-xs {
  padding: .15rem .45rem;
  font-size: .72rem;
  border-radius: 4px;
  line-height: 1.4;
}

/* ─── LGPD Notice ──────────────────────────────────────────────────────────── */
.lgpd-notice {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius);
  padding: 1rem;
}

/* ─── Form Card ────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}
@media (max-width: 576px) { .form-card { padding: 1.5rem; } }
.form-section { border-bottom: 1px solid var(--c-border); padding-bottom: 2rem; margin-bottom: 2rem; }
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-navy);
  margin-bottom: 1.5rem;
}
.form-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-card);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.anon-toggle {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: all .2s;
}
.anon-toggle:hover { border-color: var(--c-indigo); }

/* ─── Success State ────────────────────────────────────────────────────────── */
.success-state { }
.success-icon i {
  font-size: 5rem;
  color: var(--c-success);
  display: block;
  animation: pop .5s ease-out;
}
@keyframes pop { 0% { transform: scale(.5); opacity:0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity:1; } }

/* ─── Filters Bar ──────────────────────────────────────────────────────────── */
.filters-bar {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* ─── Loading Spinner ──────────────────────────────────────────────────────── */
.loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem; }
.loading-full { min-height: 300px; }

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: .9rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  z-index: 99999;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  animation: slideUp .3s ease-out;
  max-width: 360px;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-success { background: #065f46; color: #a7f3d0; border-left: 4px solid var(--c-success); }
.toast-error   { background: #7f1d1d; color: #fca5a5; border-left: 4px solid var(--c-danger); }

/* ─── Pagination ───────────────────────────────────────────────────────────── */
.pagination .page-link {
  border-radius: var(--radius-sm) !important;
  border-color: var(--c-border);
  color: var(--c-text);
  font-weight: 500;
  margin: 0;
}
.pagination .page-item.active .page-link { background: var(--gradient-card) !important; border-color: transparent !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN AREA
   ═══════════════════════════════════════════════════════════════════════════ */
.admin-wrapper { display: flex; min-height: 100vh; background: #f0f2f7; }

/* Sidebar */
.admin-sidebar {
  width: 240px;
  background: var(--c-navy);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: transform .3s ease;
}
.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: -.3px;
}
.sidebar-nav { padding: 1rem 0; flex-grow: 1; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  color: white;
  background: rgba(255,255,255,.06);
}
.sidebar-link.active {
  color: #a5b4fc;
  background: rgba(99,102,241,.15);
  border-left-color: var(--c-indigo);
}
.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-divider { height: 1px; background: rgba(255,255,255,.08); margin: .75rem 1.25rem; }

/* Main content */
.admin-main {
  margin-left: 240px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  background: white;
  border-bottom: 1px solid var(--c-border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-user-badge {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
}

/* Admin content */
.admin-content { padding: 2rem 1.5rem; }
.admin-page-header { margin-bottom: 1.75rem; }
.admin-page-title { font-size: 1.5rem; font-weight: 700; color: var(--c-navy); margin-bottom: .25rem; }

/* KPI Cards */
.kpi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: all .25s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-icon { font-size: 1.6rem; opacity: .8; }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.kpi-label { font-size: .8rem; color: var(--c-text-muted); font-weight: 500; }
.kpi-total  .kpi-icon, .kpi-total  .kpi-value { color: var(--c-navy); }
.kpi-pending .kpi-icon, .kpi-pending .kpi-value { color: var(--c-warning); }
.kpi-approved .kpi-icon, .kpi-approved .kpi-value { color: var(--c-success); }
.kpi-votes  .kpi-icon, .kpi-votes  .kpi-value { color: var(--c-violet); }
.kpi-cocreation .kpi-icon, .kpi-cocreation .kpi-value { color: var(--c-blue-mid); }
.kpi-rejected .kpi-icon, .kpi-rejected .kpi-value { color: var(--c-danger); }
.kpi-comments .kpi-icon, .kpi-comments .kpi-value { color: var(--c-info); }
.kpi-mod .kpi-icon, .kpi-mod .kpi-value { color: var(--c-purple); }

/* Chart Card */
.chart-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.chart-title { font-weight: 700; color: var(--c-navy); margin-bottom: 1rem; }

/* Status progress bars */
.progress-bar.status-pending  { background: var(--c-warning); }
.progress-bar.status-approved { background: var(--c-success); }
.progress-bar.status-rejected { background: var(--c-danger); }
.progress-bar.status-validated{ background: var(--c-blue-mid); }
.progress-bar.status-mvp      { background: var(--c-purple); }
.progress-bar.status-archived { background: var(--c-text-muted); }

/* Top ideas */
.top-ideas-list { display: flex; flex-direction: column; gap: .75rem; }
.top-idea-row { display: flex; align-items: center; gap: .75rem; }
.top-rank { font-weight: 800; color: var(--c-indigo); width: 24px; text-align: center; flex-shrink: 0; }
.top-idea-title { font-size: .88rem; font-weight: 600; color: var(--c-navy); text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-idea-title:hover { color: var(--c-violet); }
.top-votes { font-size: .85rem; font-weight: 700; flex-shrink: 0; }

/* Admin table */
.admin-table { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table thead th { background: #f8fafc; color: var(--c-text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; border-bottom: 2px solid var(--c-border); }
.admin-table tbody td { vertical-align: middle; font-size: .88rem; }

/* Contact admin card */
.contact-admin-card { border-left: 4px solid var(--c-warning); }

/* Admin login */
.admin-login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gradient-dark); padding: 1rem; }
.admin-login-card { background: white; border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 576px) {
  .hero-section { padding: 4rem 0 6rem; }
  .hero-title { font-size: 2rem; }
  .toast-notification { bottom: 1rem; right: 1rem; left: 1rem; }
}

/* ─── Blog ─────────────────────────────────────────────────────────────────── */
.blog-card { transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }
.blog-card .card-title { font-weight: 700; }

.blog-content { font-size: 1.05rem; line-height: 1.8; color: var(--c-navy); }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.blog-content h2 { font-size: 1.6rem; font-weight: 700; margin: 1.75rem 0 .75rem; }
.blog-content h3 { font-size: 1.3rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content ul, .blog-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-content blockquote { border-left: 4px solid var(--c-indigo); padding-left: 1rem; color: var(--c-text-muted); font-style: italic; margin: 1.25rem 0; }
.blog-content a { color: var(--c-violet); }
