:root {
  --bg: #0b1020;
  --card: #131b31;
  --line: #26324e;
  --text: #eef3ff;
  --muted: #93a1be;
  --accent: #47a8ff;
  --accent2: #7857ff;
  --danger: #ff5f74;
  --ok: #40d39c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(circle at top, #172244 0, #0b1020 42%);
  color: var(--text);
  font:
    15px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  min-height: 100vh;
}
a {
  color: #72bdff;
  text-decoration: none;
}
.shell {
  width: min(1120px, 92%);
  margin: auto;
}
.narrow {
  width: min(760px, 92%);
}
.centered {
  margin-inline: auto;
}
header {
  border-bottom: 1px solid var(--line);
  background: #0b1020dd;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
}
.brand {
  font-weight: 900;
  letter-spacing: -1px;
  font-size: 22px;
}
.brand span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.hero {
  text-align: center;
  padding: 70px 0 30px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 15px;
  letter-spacing: -2px;
}
.muted {
  color: var(--muted);
}
.card {
  background: linear-gradient(145deg, #151e36, #11182c);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 20px 60px #0004;
  margin: 24px 0;
}
.card.narrow.centered {
  width: min(760px, 100%);
  margin: 24px auto;
}
.drop {
  border: 2px dashed #405175;
  border-radius: 16px;
  padding: 42px 20px;
  text-align: center;
  cursor: pointer;
}
.drop.drag {
  border-color: var(--accent);
  background: #47a8ff10;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-weight: 750;
  cursor: pointer;
}
.button.ghost {
  background: #202b45;
}
.button.danger {
  background: var(--danger);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1325;
  color: var(--text);
  border-radius: 9px;
  padding: 12px;
  margin-top: 6px;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #93a1be 50%),
    linear-gradient(135deg, #93a1be 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
label {
  display: block;
  color: #bac5da;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.alert {
  padding: 13px 16px;
  border-radius: 9px;
  margin: 14px 0;
}
.error {
  background: #ff5f7420;
  color: #ff9cab;
}
.success {
  background: #40d39c20;
  color: #7aebc2;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}
.tile {
  background: #0d1528;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tile img {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
}
.tile .meta {
  padding: 12px;
  overflow: hidden;
}
.codes {
  display: grid;
  gap: 12px;
}
.code-row {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 8px;
  align-items: end;
}
.code-row input {
  font-family: monospace;
}
.code-field {
  display: grid;
  gap: 8px;
}
.code-field select,
.code-field textarea {
  margin-top: 0;
}
.image-main {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  margin: auto;
  border-radius: 12px;
}
.stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.admin-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 24px;
}
.admin-nav a,
.pagination a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111a30;
}
.admin-nav a.active,
.pagination a.active {
  color: #fff;
  border-color: #529eff;
  background: linear-gradient(135deg, #2d75c7, #6547d6);
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.admin-metrics > * {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 22px;
  color: var(--text);
  background: linear-gradient(145deg, #151e36, #11182c);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.admin-metrics strong {
  font-size: 25px;
}
.admin-metrics span {
  color: var(--muted);
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h2 {
  margin: 0;
}
.admin-thumb {
  display: block;
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 7px;
  background: #0b1020;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
button.danger {
  background: var(--danger);
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share {
  color: #fff;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 750;
}
.whatsapp {
  background: #20b75a;
}
.facebook {
  background: #2864c7;
}
.twitter {
  background: #111;
}
.telegram {
  background: #229ed9;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table-scroll {
  overflow-x: auto;
}
.source-url {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
footer {
  text-align: center;
  color: var(--muted);
  padding: 50px 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: #c9d5ed;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-box {
  background: #0d1528;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
}
.feature-box h2 {
  font-size: 17px;
  margin: 10px 0 7px;
}
.feature-box p,
.hosting-note {
  color: var(--muted);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-weight: 900;
}
.hosting-note {
  margin: 20px 3px 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.prose {
  max-width: 850px;
  margin-inline: auto;
}
.prose h2 {
  margin-top: 28px;
}
.prose p {
  color: #bdc8de;
}
.hero.compact {
  padding-bottom: 12px;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
}
.small {
  font-size: 12px;
}
.preview-list {
  margin: 15px 0;
  text-align: left;
}
.preview-list div {
  padding: 6px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 650px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: 1;
  }
  .code-row {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 45px;
  }
  nav {
    gap: 10px;
    font-size: 13px;
  }
  .nav-icon {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .admin-metrics,
  .admin-columns {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
}
@media (min-width: 651px) and (max-width: 900px) {
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
