/* ============================================================
   ABC dos Bichos — Design System Completo
   Tema: Verde Petróleo + Dourado (Paleta da Logo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── VARIÁVEIS ── */
:root {
  --bg-deep:      #040f0f;
  --bg-dark:      #071a19;
  --bg-mid:       #0c2825;
  --bg-card:      rgba(10, 36, 34, 0.75);
  --bg-card-hover:rgba(14, 50, 46, 0.88);

  --primary:      #0d5c55;
  --primary-light:#13877d;
  --accent:       #c9a227;
  --accent-soft:  #e8c96b;
  --teal:         #d4af37;

  --text-white:   #fdf8ee;
  --text-light:   #f0e6c4;
  --text-muted:   #a89060;
  --text-dim:     #6b5a38;

  --border:       rgba(201, 162, 39, 0.2);
  --border-hover: rgba(201, 162, 39, 0.5);
  --glow:         0 0 20px rgba(201, 162, 39, 0.25);
  --glow-strong:  0 0 40px rgba(201, 162, 39, 0.4);

  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    30px;

  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:    'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-main); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ── PARTÍCULAS DE FUNDO ── */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(13, 92, 85, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(13, 92, 85, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #030d0c 50%, #020908 100%);
  pointer-events: none;
}
.ocean-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(201,162,39,0.04) 1px, transparent 1px),
    radial-gradient(circle at 85% 70%, rgba(13,92,85,0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(201,162,39,0.03) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px, 90px 90px;
  animation: drift 20s linear infinite;
}
@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-120px); }
}

/* ── WRAPPER GERAL ── */
.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   HEADER / NAVBAR
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--glow);
}
.nav-logo .logo-text {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.1;
}
.nav-logo .logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
}
.nav-links a:hover {
  background: var(--bg-card);
  color: var(--accent);
}
.nav-links a.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}
.btn-admin {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.btn-admin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,162,39,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,0.1);
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}
.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  animation: fadeInUp 0.7s ease;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--teal), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════
   FILTROS E BUSCA
══════════════════════════════════════ */
.catalog-controls {
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(13,92,85,0.4);
}
.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 10px 18px 10px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}
.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   GRID DE PEIXES
══════════════════════════════════════ */
.catalog-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* ── CARD DE PEIXE ── */
.fish-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeInUp 0.5s ease both;
  display: flex;
  flex-direction: column;
}
.fish-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.4);
  background: var(--bg-card-hover);
}
.fish-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-mid);
}
.fish-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fish-card:hover .fish-card-img img { transform: scale(1.08); }
.badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.badge-category.agua-doce {
  background: rgba(13,92,85,0.3);
  border: 1px solid rgba(13,92,85,0.6);
  color: #7dd9d0;
}
.badge-category.agua-salgada {
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.5);
  color: #e8c96b;
}
.badge-stock {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.badge-stock.in-stock {
  background: rgba(0, 245, 150, 0.2);
  border: 1px solid rgba(0, 245, 150, 0.4);
  color: #00f596;
}
.badge-stock.out-of-stock {
  background: rgba(255, 80, 80, 0.2);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8080;
}
.fish-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fish-name {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}
.fish-species {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 0.7rem;
}
.fish-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.fish-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.fish-price {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}
.fish-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-right: 2px;
}
.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-main);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  white-space: nowrap;
}
.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp:disabled {
  background: linear-gradient(135deg, #555, #444);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}
.btn-detail {
  padding: 10px 14px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.btn-detail:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.empty-state h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* ── MODAL DETALHE ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,13,26,0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glow-strong), 0 40px 80px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-img {
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 2rem;
}
.modal-body .modal-title {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.modal-body .modal-species {
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.modal-body .modal-desc {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.modal-body .modal-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.modal-meta-item {
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
}
.modal-meta-item strong {
  color: var(--accent);
  font-family: var(--font-main);
}
.modal-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.modal-price-big {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.btn-close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-close-modal:hover { background: rgba(255,0,0,0.3); }
.modal { position: relative; }

/* ── WHATSAPP FLUTUANTE ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
  animation: pulse-wpp 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.15); }
@keyframes pulse-wpp {
  0%, 100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5); }
  50%       { box-shadow: 0 6px 35px rgba(37, 211, 102, 0.8); }
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  background: rgba(5,13,26,0.6);
}
.site-footer .footer-logo {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.site-footer p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════
   ADMIN — LOGIN
══════════════════════════════════════ */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(13,92,85,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #040f0f, #020908);
}
.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--glow-strong), 0 40px 80px rgba(0,0,0,0.5);
}
.login-card .login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--glow);
}
.login-card h1 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.login-card .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-white);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: rgba(201,162,39,0.05);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}
.form-group select option { background: var(--bg-dark); color: var(--text-white); }
.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.btn-primary {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13,92,85,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,92,85,0.6);
}
.error-msg {
  background: rgba(255,80,80,0.15);
  border: 1px solid rgba(255,80,80,0.4);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #ff8080;
  margin-bottom: 1rem;
  display: none;
}
.error-msg.show { display: block; }

/* ══════════════════════════════════════
   ADMIN — PAINEL
══════════════════════════════════════ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(5,13,26,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-header .s-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sidebar-header .s-title {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}
.sidebar-header .s-title small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.sidebar-nav .nav-item:hover {
  background: var(--bg-card);
  color: var(--text-light);
  border-color: var(--border);
}
.sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, rgba(0,119,182,0.3), rgba(0,180,216,0.2));
  border-color: rgba(0,180,216,0.3);
  color: var(--accent);
}
.sidebar-nav .nav-item .nav-icon { font-size: 1.1rem; }
.sidebar-footer {
  padding: 1rem 0.8rem;
  border-top: 1px solid var(--border);
}
.btn-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  border-radius: var(--radius);
  color: #ff8080;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(255,80,80,0.2);
  border-color: rgba(255,80,80,0.6);
}

/* ── MAIN CONTENT ── */
.admin-main {
  flex: 1;
  overflow: auto;
  background: transparent;
}
.admin-main .page-section {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}
.admin-main .page-section.active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-header h2 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 700;
}
.page-header p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── DASHBOARD STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}
.stat-card .stat-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.stat-card .stat-value {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── BOTÕES ADMIN ── */
.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #00b09b, #096e57);
  border-radius: var(--radius);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,176,155,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,176,155,0.5);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,80,80,0.15);
  border: 1px solid rgba(255,80,80,0.4);
  border-radius: var(--radius-sm);
  color: #ff8080;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-danger:hover { background: rgba(255,80,80,0.25); border-color: rgba(255,80,80,0.7); }
.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.4);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-edit:hover { background: rgba(0,180,216,0.25); border-color: rgba(0,180,216,0.7); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── ADMIN FISH LIST ── */
.admin-fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.admin-fish-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.admin-fish-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}
.admin-fish-card .card-img {
  height: 160px;
  overflow: hidden;
  background: var(--bg-mid);
  position: relative;
}
.admin-fish-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.admin-fish-card:hover .card-img img { transform: scale(1.05); }
.admin-fish-card .card-img .inactive-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #ff8080;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-fish-card .card-info {
  padding: 1rem;
}
.admin-fish-card .card-name {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.admin-fish-card .card-species {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.admin-fish-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}
.admin-fish-card .card-price {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--accent);
}
.admin-fish-card .card-stock {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.admin-fish-card .card-actions {
  display: flex;
  gap: 0.5rem;
}

/* ── ESTOQUE TABLE ── */
.stock-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stock-table {
  width: 100%;
  border-collapse: collapse;
}
.stock-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.stock-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  color: var(--text-light);
  vertical-align: middle;
}
.stock-table tr:last-child td { border-bottom: none; }
.stock-table tr:hover td { background: rgba(255,255,255,0.02); }
.stock-table .fish-img-mini {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}
.stock-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stock-ctrl button {
  width: 28px;
  height: 28px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.stock-ctrl button:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.stock-ctrl .qty {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
  color: var(--accent);
}
.stock-status-ok  { color: #00f596; font-weight: 600; font-size: 0.8rem; }
.stock-status-low { color: #ffba08; font-weight: 600; font-size: 0.8rem; }
.stock-status-out { color: #ff8080; font-weight: 600; font-size: 0.8rem; }

/* ── MODAL ADMIN / FORM ── */
.modal-admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,13,26,0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-admin-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-admin {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glow-strong), 0 40px 80px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-admin-overlay.open .modal-admin { transform: scale(1); }
.modal-admin h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.modal-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── UPLOAD DE FOTO ── */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.photo-upload-area:hover {
  border-color: var(--accent);
  background: rgba(72,202,228,0.04);
}
.photo-upload-area.has-image { border-style: solid; border-color: var(--border-hover); }
.photo-upload-area img {
  max-height: 180px;
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: cover;
}
.photo-upload-area .upload-placeholder {
  color: var(--text-dim);
}
.photo-upload-area .upload-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.photo-upload-area .upload-text { font-size: 0.88rem; }
.photo-upload-area .upload-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.photo-upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.btn-remove-photo {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #ff8080;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-remove-photo:hover { opacity: 0.7; }

/* ── CONFIGURAÇÕES ── */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.settings-section h3 {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── ROW DE FORMULÁRIO ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

/* ── TOGGLE ── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
}
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: var(--transition);
}
.toggle input:checked + .toggle-slider {
  background: var(--primary);
  border-color: var(--primary-light);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: white;
}
.toggle-label { font-size: 0.88rem; color: var(--text-muted); }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9999;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(0,245,150,0.4); }
.toast.error   { border-color: rgba(255,80,80,0.4); }
.toast.success .toast-icon { color: #00f596; }
.toast.error   .toast-icon { color: #ff8080; }

/* ══════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════ */
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown  { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
  .catalog-controls { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-stats { gap: 1.5rem; }

  /* Admin mobile */
  .admin-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-header { flex: 1; }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
    gap: 2px;
  }
  .sidebar-nav .nav-item { padding: 8px 12px; font-size: 0.8rem; }
  .sidebar-footer { width: 100%; padding: 0.5rem; }
  .btn-logout { padding: 8px; }
  .admin-main .page-section { padding: 1.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-fish-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal-admin { padding: 1.5rem; }
}

/* ── HELPERS ── */
.d-none { display: none !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.text-muted { color: var(--text-muted); font-size: 0.85rem; }
