:root {
  --bg: #0b1020;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --accent: #7c5cff;
  --accent2: #20d3ff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: #070a12;
  background-image:
    radial-gradient(1200px 650px at 30% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(32, 211, 255, 0.10), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
.container { width: min(920px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 18, 0.55);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.14);
}
.nav { display: flex; gap: 10px; }
.nav__link { padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; color: var(--muted); }
.nav__link:hover { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.04); }

.hero { padding: 28px 0 16px; }
.hero__title { margin: 0; font-size: 34px; letter-spacing: -0.6px; }
.hero__subtitle { margin: 10px 0 0; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px 0 30px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(255,255,255,0.08);
}
.tile__imgwrap {
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tile__img { width: 100%; height: auto; object-fit: contain; display: block; }
.tile__meta { padding: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tile__title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__sub { color: var(--muted); font-size: 13px; }

.tile--slot {
  cursor: default;
}
.tile--slot:hover {
  transform: none;
  border-color: var(--border);
  background: var(--card);
}
.tile__imgwrap--slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot-placeholder {
  text-align: center;
  padding: 18px;
}
.slot-placeholder__badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
}
.slot-placeholder__hint {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.3px; }
.muted { color: var(--muted); }

.form { display: grid; gap: 10px; margin-top: 14px; }
.label { font-size: 13px; color: var(--muted); }
.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--text);
}
.input:focus { outline: none; border-color: rgba(32, 211, 255, 0.6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(124, 92, 255, 0.6);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(32, 211, 255, 0.75));
  color: #071024;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }
.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--border);
}

.flashwrap { margin: 16px 0; display: grid; gap: 10px; }
.flash {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}
.flash--success { border-color: rgba(32, 211, 255, 0.45); }
.flash--error { border-color: rgba(255, 90, 125, 0.55); }

.memehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.memeimg { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: rgba(0,0,0,0.16); }
.memeimg img { width: 100%; height: auto; display: block; }

.footer { padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 26px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; }

.infinite { padding: 8px 0 32px; }
.infinite__status { text-align: center; padding: 10px 0; }
.infinite__sentinel { height: 1px; }

/* legacy ad-slot styles removed (ads now use .tile layout) */
