
/* plus-jakarta-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* plus-jakarta-sans-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/plus-jakarta-sans-v12-latin-italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* plus-jakarta-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-600.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* plus-jakarta-sans-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/plus-jakarta-sans-v12-latin-600italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-600italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* plus-jakarta-sans-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-800.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}

/* plus-jakarta-sans-800italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/plus-jakarta-sans-v12-latin-800italic.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('fonts/plus-jakarta-sans-v12-latin-800italic.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}





:root {
  color-scheme: dark;
  --bg: #07080c;
  --card: rgba(14, 16, 24, .78);
  --card-border: rgba(255, 255, 255, .12);
  --text: #f6f7fb;
  --muted: #b7bdc9;
  --accent: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #25283a 0, #07080c 42%, #030406 100%);
  color: var(--text);
}

.public-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.8)), var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: .9;
  z-index: -2;
}

.public-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.12), transparent 34%);
  z-index: -1;
}

.link-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 16px;
  display: grid;
  align-items: center;
}

.hero-card {
  width: 100%;
  padding: 28px 18px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 90px rgba(0,0,0,.42);
  text-align: center;
}

.logo {
  max-width: 120px;
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 18px;
}

.logo-fallback {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
  letter-spacing: .08em;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4rem);
  letter-spacing: -.05em;
  line-height: .95;
}

.intro {
  margin: 14px auto 0;
  max-width: 460px;
  color: var(--muted);
  line-height: 1.55;
}

.links-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}

.link-button strong { display: block; font-size: 1rem; }
.link-button small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.link-button b { font-size: 1.1rem; opacity: .75; }

.link-button-highlighted {
  border-color: rgba(255, 140, 0, .72);
  background: linear-gradient(120deg, rgba(255, 106, 0, .26), rgba(255, 64, 0, .18));
  box-shadow: 0 10px 30px rgba(255, 94, 0, .22);
}

.link-button-highlighted:hover,
.link-button-highlighted:focus-visible {
  background: linear-gradient(120deg, rgba(255, 120, 0, .34), rgba(255, 76, 0, .24));
  border-color: rgba(255, 170, 64, .95);
}

.fire-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  margin-right: .38em;
  color: #ff9b29;
  vertical-align: -0.08em;
}

.fire-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-footer {
  margin-top: 30px;
  font-size: .74rem;
  color: var(--muted);
  opacity: .9;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.admin-body {
  color-scheme: light;
  background:
    radial-gradient(1200px 700px at -10% -10%, rgba(37, 99, 235, .10), transparent 60%),
    radial-gradient(1100px 700px at 110% 0%, rgba(14, 165, 233, .10), transparent 58%),
    linear-gradient(180deg, #f7faff 0%, #eff4fb 100%);
  color: #0f172a;
  padding: 26px 14px 38px;
}

.admin-wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-nav,
.admin-card {
  border: 1px solid #d6e0ef;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96));
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  padding: 20px;
  margin-bottom: 18px;
}

.admin-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 14px;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.admin-nav strong {
  font-size: 1.08rem;
  color: #0b1220;
  letter-spacing: .01em;
}

.admin-card h1,
.admin-card h2 {
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.admin-card h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.admin-card h2 {
  font-size: 1.25rem;
  color: #0b1220;
}

.admin-card p {
  margin: 0 0 12px;
  color: #52607a;
}

.admin-nav a,
.button,
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #d7e0ec;
  border-radius: 999px;
  padding: 9px 16px;
  background: #ffffff;
  color: #1c2739;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.admin-nav a:hover,
.button:hover,
button:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: #b7c7de;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .10);
}

.admin-nav a:focus-visible,
.button:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .45);
  outline-offset: 2px;
}

.admin-nav .ghost,
.ghost,
.btn-secondary {
  background: #eef3fa;
  border-color: #d0dced;
  color: #30415d;
}

.btn-danger {
  background: #fff1f2;
  border-color: #fbc7cf;
  color: #b4233d;
}

.actions .btn-secondary,
.actions .btn-danger {
  min-width: 110px;
  font-weight: 700;
  justify-content: center;
}

.actions .btn-danger:hover {
  border-color: #f5aab7;
  box-shadow: 0 6px 16px rgba(180, 35, 61, .16);
}

input, textarea, select {
  width: 100%;
  border: 1px solid #cdd8e8;
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:hover, textarea:hover, select:hover {
  border-color: #acc1dd;
}

input:focus, textarea:focus, select:focus {
  border-color: #6b8fc9;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

input[type="checkbox"] {
  accent-color: #2563eb;
}

label { display: grid; gap: 7px; margin: 12px 0; color: #334155; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td {
  padding: 15px 12px;
  border-bottom: 1px solid #e2eaf5;
  text-align: left;
  vertical-align: top;
}
th {
  color: #5f6f88;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
tbody tr:hover td {
  background: #f5f8fd;
}
.table-wrap table td:first-child,
.table-wrap table th:first-child {
  padding-left: 14px;
}
.table-wrap table td:last-child,
.table-wrap table th:last-child {
  padding-right: 14px;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d8e3f2;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.stat span {
  color: #667991;
  font-size: .86rem;
}
.stat b {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
  color: #0f172a;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.actions form {
  margin: 0;
}
.table-tools {
  margin-bottom: 12px;
}

.links-table td {
  vertical-align: middle;
}

.links-table .sortable-row {
  cursor: move;
}

.links-table .sortable-row.is-dragging td {
  opacity: .5;
}

.links-table .sortable-row:hover td {
  background: #f2f7ff;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cbd8ea;
  background: #edf3fb;
  font-weight: 900;
  letter-spacing: .06em;
  color: #587095;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.badge-success {
  background: #e8fbf2;
  border-color: #98e5bf;
  color: #157347;
}

.badge-warm {
  background: #fff6e9;
  border-color: #f6d29b;
  color: #9a5e07;
}

.badge-muted {
  background: #eef3fb;
  border-color: #d4deed;
  color: #556985;
}

@media (max-width: 768px) {
  .admin-card,
  .admin-nav {
    border-radius: 18px;
    padding: 14px;
  }

  .admin-nav {
    align-items: flex-start;
  }

  .admin-nav .actions {
    width: 100%;
  }

  .admin-nav .actions a {
    flex: 1 1 calc(50% - 8px);
  }

  .actions .btn,
  .actions button {
    min-height: 36px;
    padding: 8px 12px;
  }

  .links-table {
    min-width: 900px;
  }
}
