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

/* ============================================================
   Slime Reviews — Dark Theme Design System
   ============================================================ */
:root {
  /* Surfaces */
  --bg-deep: #04070a;
  --bg-primary: #06090d;
  --bg-secondary: #0a0f14;
  --bg-elevated: #0e1519;
  --bg-card: rgba(13, 20, 24, 0.72);
  --bg-card-hover: rgba(18, 27, 30, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.028);
  --bg-glass-strong: rgba(255, 255, 255, 0.055);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(163, 230, 53, 0.14);
  --border-hover: rgba(74, 222, 128, 0.35);

  /* Text */
  --text-primary: #e8f0ea;
  --text-secondary: #8ba397;
  --text-muted: #4f6358;

  /* Accents — slime */
  --accent: #4ade80;
  --accent-lime: #a3e635;
  --accent-emerald: #22c55e;
  --accent-teal: #14b8a6;
  --gradient: linear-gradient(135deg, #a3e635, #4ade80 45%, #14b8a6);
  --gradient-soft: linear-gradient(135deg, rgba(163,230,53,0.16), rgba(20,184,166,0.16));
  --glow: rgba(74, 222, 128, 0.45);
  --glow-soft: rgba(74, 222, 128, 0.16);

  /* Semantic */
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.1);
  --success: #4ade80;

  /* Radii */
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 11px;
  --radius-xs: 7px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 44px rgba(74,222,128,0.14);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease);
  --transition-fast: 0.15s var(--ease);

  /* Page width — how much of the screen the site uses */
  --page-max: 1600px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; width: 100%; }

/* Ambient aurora backdrop */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 12%, rgba(74,222,128,0.10), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 85%, rgba(20,184,166,0.08), transparent 60%),
    radial-gradient(ellipse 60% 35% at 55% 50%, rgba(163,230,53,0.045), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Fine grain / mesh noise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(74,222,128,0.35); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74,222,128,0.65); }
::selection { background: rgba(74,222,128,0.28); color: #fff; }

/* ============================================================
   Header
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 7, 10, 0.72);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.4;
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  gap: 16px;
}

.header-info { min-width: 0; display: flex; align-items: center; gap: 13px; }

/* Slime logo mark */
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
  animation: bob 4s ease-in-out infinite;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 11px rgba(74,222,128,0.5));
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}

.header-titles { min-width: 0; }

header h1 {
  font-size: 21px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

header a {
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
  -webkit-text-fill-color: unset;
  color: inherit;
}

header a:hover {
  opacity: 0.8;
}

header .subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.1px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* live pulse dot */
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.header-nav { flex-shrink: 0; }

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12.5px;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  transition: var(--transition);
  -webkit-text-fill-color: var(--text-secondary);
}

.header-nav a:hover {
  border-color: var(--border-hover);
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: rgba(74,222,128,0.12);
  box-shadow: 0 0 22px rgba(74,222,128,0.12);
  transform: translateY(-1px);
}

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Empty state
   ============================================================ */
.empty {
  text-align: center;
  color: var(--text-muted);
  margin-top: 110px;
  font-size: 15px;
  font-weight: 500;
  animation: fadeIn 0.8s var(--ease);
}

.empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   Message feed
   ============================================================ */
/* Inline grid — compact review cards flowing left-to-right in rows */
.messages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 13px;
  align-items: start;
}

.message {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
  animation: slideUp 0.45s var(--ease) both;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 0 3px 3px 0;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}

.message:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.message:hover::before { opacity: 1; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--bg-glass-strong);
  border: 2px solid var(--border);
  transition: var(--transition);
  object-fit: cover;
}

.message:hover .avatar {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(74,222,128,0.22);
}

.body { flex: 1; min-width: 0; }

.meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.name {
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  letter-spacing: -0.2px;
}

.username {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.meta-spacer { flex: 1; }

.time {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.edited {
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(74,222,128,0.1);
  padding: 2px 7px;
  border-radius: 5px;
}

.content {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
  color: var(--text-primary);
  font-weight: 400;
}

/* Custom Discord emojis rendered inline as images */
.emoji {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.28em;
  object-fit: contain;
  margin: 0 1px;
  display: inline-block;
}

.reaction .emoji {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin: 0;
}

/* Large jumbo emoji when a message is only emoji(s) */
.content.jumbo .emoji { width: 2.4em; height: 2.4em; vertical-align: -0.4em; }

/* ============================================================
   Attachments
   ============================================================ */
.attachments {
  margin-top: 13px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.attachments a:not(.image-link) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 11px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-weight: 500;
}

.attachments a:not(.image-link)::before {
  content: '\1F4CE';
  font-size: 12px;
  opacity: 0.7;
}

.attachments a:not(.image-link):hover {
  border-color: var(--border-hover);
  color: #fff;
  background: rgba(74,222,128,0.12);
}

.image-link {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.image-link:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 28px rgba(74,222,128,0.16);
}

.preview-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.image-link:hover .preview-img { transform: scale(1.04); }

.image-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.image-link:hover::after { opacity: 1; }

/* ============================================================
   Reactions
   ============================================================ */
.reactions {
  margin-top: 11px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  padding: 4px 11px;
  border-radius: 9px;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
  font-weight: 600;
}

.reaction:hover {
  border-color: var(--border-hover);
  background: rgba(74,222,128,0.1);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   Details disclosure
   ============================================================ */
.details-toggle {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.details-toggle::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}

.details-toggle:hover { color: var(--accent); }
.details-toggle:hover::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.details {
  display: none;
  margin-top: 13px;
  background: var(--bg-glass);
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  animation: fadeIn 0.25s var(--ease);
}

.details table { width: 100%; border-collapse: collapse; }
.details table tr:last-child td { border-bottom: none; }

.details table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  vertical-align: top;
}

.details table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  width: 124px;
  padding-right: 16px;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.5px;
}

.details table td:last-child {
  color: var(--text-secondary);
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  padding: 24px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.page-btn:hover {
  background: var(--gradient);
  color: #04070a;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
  -webkit-text-fill-color: #04070a;
}

.page-info {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 0 14px;
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   Stats (admin)
   ============================================================ */
.stats {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 24px 34px;
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 158px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(74,222,128,0.12), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after { opacity: 1; }

.stat-card .num {
  font-size: 34px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-card .label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ============================================================
   Admin tools & buttons
   ============================================================ */
.admin-tools { display: flex; gap: 8px; margin-top: 13px; }

.admin-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(248,113,113,0.22);
  padding: 7px 15px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.2px;
}

.admin-tools button::before { content: '\1F5D1'; font-size: 12px; }

.admin-tools button:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(248,113,113,0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--gradient);
  color: #04070a;
  padding: 10px 22px;
  border-radius: 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
  -webkit-text-fill-color: #04070a;
  box-shadow: 0 4px 16px rgba(74,222,128,0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow);
}

.btn-secondary {
  background: var(--bg-glass-strong);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  -webkit-text-fill-color: var(--text-secondary);
  box-shadow: none;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: rgba(74,222,128,0.1);
  box-shadow: 0 0 22px rgba(74,222,128,0.12);
}

.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 28px;
}

.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
}

.admin-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(74,222,128,0.25);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  flex-shrink: 0;
  position: relative;
  margin-top: 70px;
  padding: 0 24px;
  background:
    linear-gradient(180deg, transparent, rgba(6,9,13,0.6) 30%, rgba(4,7,10,0.9)),
    radial-gradient(ellipse 90% 100% at 50% 100%, rgba(74,222,128,0.09), transparent 70%);
  border-top: 1px solid var(--border);
  z-index: 1;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--gradient);
  opacity: 0.5;
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 40px;
}

.footer-brand { max-width: 380px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 15px;
}

.footer-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(74,222,128,0.45));
}

.footer-logo .footer-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.footer-logo .footer-name:hover {
  opacity: 0.8;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  color: #04070a;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px var(--glow);
}

.footer-social svg { width: 19px; height: 19px; display: block; }

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 0;
  transition: var(--transition-fast);
  width: fit-content;
}

.footer-col a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-col a:hover::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.footer-bottom {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
}

/* Powered by badge */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: 100px;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.powered-by img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 7px rgba(74,222,128,0.45));
  transition: transform 0.4s var(--ease-spring);
}

.powered-by strong {
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* shine sweep on hover */
.powered-by::before {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
  pointer-events: none;
}

.powered-by:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(74,222,128,0.09);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-soft);
}

.powered-by:hover img { transform: rotate(-10deg) scale(1.1); }
.powered-by:hover::before { left: 130%; }

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
    padding: 42px 0 34px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 560px) {
  .site-footer { margin-top: 48px; padding: 0 16px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 28px;
    text-align: center;
    justify-items: center;
  }
  .footer-brand { max-width: none; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-col a:hover { transform: none; }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 18px 0 24px;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .header-inner { padding: 13px 16px; gap: 10px; }
  .header-info { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; }
  header h1 { font-size: 17px; }
  header .subtitle { font-size: 11px; }

  .admin-header { padding: 14px 16px; }

  main { padding: 18px 12px; }

  .empty { margin-top: 64px; font-size: 14px; }
  .empty-icon { width: 56px; height: 56px; font-size: 24px; border-radius: 16px; }

  .message {
    padding: 14px;
    gap: 11px;
    border-radius: 13px;
  }

  .message::before { width: 2px; }

  .avatar { width: 38px; height: 38px; border-radius: 11px; }

  .meta { gap: 6px; }
  .name { font-size: 13.5px; }
  .username { font-size: 11px; }
  .time { font-size: 10px; }

  .content { font-size: 13.5px; line-height: 1.6; }

  .image-link { max-width: 100%; }
  .preview-img { max-height: 170px; }

  .reaction { font-size: 12px; padding: 3px 9px; border-radius: 7px; }

  .details-toggle { font-size: 10px; }
  .details { font-size: 12px; padding: 11px 13px; }
  .details table td { font-size: 11px; padding: 5px 0; }
  .details table td:first-child { width: 94px; padding-right: 10px; }

  .pagination { gap: 7px; padding: 18px 0; }
  .page-btn { padding: 8px 17px; font-size: 12px; border-radius: 11px; }
  .page-info { font-size: 12px; }

  .stats { gap: 9px; }
  .stat-card { padding: 17px 18px; min-width: 0; flex: 1; border-radius: 16px; }
  .stat-card .num { font-size: 26px; }
  .stat-card .label { font-size: 10px; letter-spacing: 0.9px; }

  .admin-header { flex-direction: column; gap: 12px; text-align: center; }
  .admin-user { font-size: 12px; }
  .admin-user img { width: 24px; height: 24px; }
  .header-actions { gap: 7px; }
  .btn { padding: 8px 15px; font-size: 12px; border-radius: 11px; }

  .header-inner { flex-direction: column; text-align: center; }
  .header-info { flex-direction: column; text-align: center; gap: 8px; }
  header .subtitle { justify-content: center; }

  .header-actions { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 400px) {
  header h1 { font-size: 15.5px; }
  header .subtitle { font-size: 10px; }

  .message { padding: 12px; gap: 9px; }
  .avatar { width: 34px; height: 34px; }
  .content { font-size: 13px; }
  .preview-img { max-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
