:root {
  --bg: #060a10;
  --bg-soft: #0d1420;
  --bg-accent-1: rgba(35, 213, 255, 0.16);
  --bg-accent-2: rgba(0, 255, 163, 0.12);
  --text: #e9f5ff;
  --muted: #9ab3c8;
  --primary: #23d5ff;
  --primary-2: #00ffa3;
  --stroke: rgba(255, 255, 255, 0.16);
  --card: rgba(8, 15, 24, 0.78);
  --grid-line: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(4, 9, 15, 0.7);
  --btn-primary-text: #021119;
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --card-shadow: rgba(0, 0, 0, 0.25);
  --footer-text: #7f96a9;
}

html[data-theme="light"] {
  --bg: #eef6ff;
  --bg-soft: #dce9f8;
  --bg-accent-1: rgba(25, 118, 210, 0.14);
  --bg-accent-2: rgba(0, 174, 255, 0.1);
  --text: #102437;
  --muted: #4b6681;
  --primary: #0078d7;
  --primary-2: #12b0ff;
  --stroke: rgba(14, 48, 78, 0.2);
  --card: rgba(255, 255, 255, 0.88);
  --grid-line: rgba(9, 61, 106, 0.08);
  --header-bg: rgba(243, 249, 255, 0.84);
  --btn-primary-text: #ffffff;
  --btn-ghost-bg: rgba(255, 255, 255, 0.65);
  --card-shadow: rgba(16, 44, 71, 0.12);
  --footer-text: #4f6e8a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 20%, var(--bg-accent-1), transparent 45%),
    radial-gradient(circle at 85% 75%, var(--bg-accent-2), transparent 45%),
    linear-gradient(160deg, var(--bg), var(--bg-soft));
  overflow-x: hidden;
  transition: background 280ms ease, color 180ms ease;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  animation: floatGlow 8s ease-in-out infinite;
}

.bg-glow-1 {
  top: -120px;
  left: -120px;
  background: #1ab7ff;
}

.bg-glow-2 {
  bottom: -120px;
  right: -120px;
  background: #00ffa3;
  animation-delay: -3.5s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 6vw, 64px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: clamp(120px, 16vw, 190px);
  height: auto;
  display: block;
}

nav {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--text);
}

.auth-slot {
  position: relative;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-chip {
  border: 1px solid var(--stroke);
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.auth-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-chip-initials {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 26%, transparent);
}

.auth-chip-text {
  line-height: 1;
}

.auth-chip-badge {
  margin-left: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
}

.auth-chip-admin {
  border-color: rgba(255, 209, 92, 0.6);
  background: linear-gradient(130deg, rgba(255, 179, 71, 0.22), rgba(56, 211, 255, 0.2));
  box-shadow: 0 0 0 1px rgba(255, 207, 88, 0.24), 0 8px 24px rgba(28, 157, 255, 0.2);
}

.auth-chip-admin .auth-chip-text {
  font-weight: 700;
  color: #fef6dd;
}

.auth-chip-admin .auth-chip-avatar {
  border-color: rgba(255, 210, 96, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 205, 75, 0.22);
}

.auth-chip-admin .auth-chip-badge {
  color: #fff4cb;
  border-color: rgba(255, 209, 92, 0.72);
  background: rgba(255, 194, 70, 0.2);
}

.auth-menu-admin {
  border-color: rgba(255, 209, 92, 0.42);
  box-shadow: 0 14px 34px rgba(20, 68, 116, 0.36), 0 0 0 1px rgba(255, 206, 84, 0.2);
}

.auth-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: 0 12px 30px var(--card-shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
}

.auth-menu button:hover {
  border-color: var(--stroke);
  background: color-mix(in srgb, var(--btn-ghost-bg) 85%, transparent);
}

.auth-btn {
  border: 1px solid var(--stroke);
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.auth-user {
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.auth-modal-card {
  position: relative;
  width: min(460px, 92vw);
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  z-index: 1;
}

.profile-card {
  width: min(640px, 94vw);
  max-height: 90vh;
  overflow: auto;
}

.profile-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.profile-section label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-section input,
.profile-section textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.profile-section textarea {
  resize: vertical;
  min-height: 90px;
}

.profile-section .btn {
  width: 100%;
}

.profile-section h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.profile-avatar-wrap {
  display: grid;
  gap: 8px;
}

.profile-avatar-wrap input[type="file"] {
  width: 100%;
  color: var(--muted);
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.profile-danger .btn {
  justify-self: start;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--card) 84%, transparent);
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card h2 {
  margin: 8px 0 0;
  font-size: 2rem;
}

.dashboard-post-list {
  display: grid;
  gap: 12px;
}

.dashboard-post-row {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-post-row h3 {
  margin: 0;
  font-size: 1.05rem;
}

.dashboard-post-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

.dashboard-post-meta {
  font-size: 0.86rem;
}

.dashboard-post-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-brand-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.auth-brand-logo {
  width: min(180px, 55vw);
  height: auto;
  display: block;
}

.auth-title {
  text-align: center;
  margin: 0 0 10px;
}

.auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-tab {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.auth-tab.active {
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--stroke));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form .btn {
  margin-top: auto;
}

.captcha-wrap {
  margin-top: 6px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle:hover {
  background: color-mix(in srgb, var(--btn-ghost-bg) 90%, transparent);
  color: var(--text);
}

.eye-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-icon .eye-slash {
  opacity: 1;
  transition: opacity 140ms ease;
}

.password-toggle.is-visible .eye-icon .eye-slash {
  opacity: 0;
}

.auth-status {
  margin: 8px 0 0;
  min-height: 20px;
  color: var(--muted);
}

.auth-switcher {
  margin: 4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-switch-btn {
  margin-left: 6px;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.auth-status.error {
  color: #ff6b7c;
}

.auth-status.ok {
  color: #14cc8d;
}

.auth-verify-wait {
  margin-top: 8px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
}

.auth-verify-wait-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.auth-verify-wait .btn {
  padding: 8px 12px;
}

.is-hidden {
  display: none !important;
}

.verify-card {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

main {
  width: min(1050px, 92vw);
  margin: 30px auto 56px;
}

.hero {
  padding: clamp(42px, 8vw, 92px) 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

h1,
h2 {
  margin: 0;
  font-family: "Orbitron", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(35, 213, 255, 0.18);
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  line-height: 1.65;
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--btn-primary-text);
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 22px rgba(35, 213, 255, 0.25);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--stroke);
  background: var(--btn-ghost-bg);
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-radius: 50%;
  padding: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header .theme-toggle {
  display: none;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 220ms ease, transform 220ms ease;
  background: radial-gradient(circle, rgba(255, 229, 122, 0.45), rgba(255, 229, 122, 0) 68%);
}

.theme-toggle .bulb {
  position: relative;
  width: 14px;
  height: 18px;
  border: 2px solid #8aa2b8;
  border-radius: 50% 50% 42% 42%;
  background: rgba(110, 137, 164, 0.2);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle .bulb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 8px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: #8aa2b8;
}

.theme-toggle .bulb-filament {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 6px;
  height: 4px;
  transform: translateX(-50%);
  border: 1px solid rgba(218, 233, 248, 0.85);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

html[data-theme="light"] .theme-toggle {
  box-shadow: 0 0 0 1px rgba(255, 215, 90, 0.35), 0 0 18px rgba(255, 209, 77, 0.28);
}

html[data-theme="light"] .theme-toggle::before {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-toggle .bulb {
  border-color: #f6b400;
  background: linear-gradient(180deg, #ffe27a, #ffc54d);
  box-shadow: 0 0 12px rgba(255, 196, 61, 0.75);
}

html[data-theme="light"] .theme-toggle .bulb::after {
  background: #f0b300;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--stroke));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 32px);
  margin-top: 20px;
  box-shadow: 0 12px 40px var(--card-shadow);
}

.card h2 {
  font-size: clamp(1.3rem, 2.7vw, 2rem);
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 20px;
  text-align: center;
  color: var(--footer-text);
  border-top: 1px solid var(--stroke);
}

.site-footer p {
  margin: 0;
}

.footer-social {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-social a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--footer-text);
  background: var(--btn-ghost-bg);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--stroke));
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input,
.editor-form input,
.editor-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.search-input:focus,
.editor-form input:focus,
.editor-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 1px;
}

.addon-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.addon-card {
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  transition: transform 180ms ease, border-color 180ms ease;
}

.addon-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--stroke));
}

.addon-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.addon-card-body {
  padding: 12px;
}

.addon-card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.addon-card-body p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.addon-author {
  margin-top: 8px;
  display: inline-flex;
  font-size: 0.8rem;
  color: var(--muted);
}

.empty-state {
  color: var(--muted);
  margin: 16px 0 0;
}

.guideline-list {
  margin: 22px 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.plus-create {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 25%, transparent), color-mix(in srgb, var(--primary-2) 20%, transparent));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.plus-create span {
  font-size: 2rem;
  line-height: 1;
}

.editor-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.editor-shell {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 86%, transparent);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--stroke);
}

.editor-toolbar button {
  border: 1px solid var(--stroke);
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}

.rich-editor {
  min-height: 180px;
  padding: 12px;
  color: var(--text);
  line-height: 1.6;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.rich-editor:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: -2px;
}

.rich-editor h2 {
  margin: 10px 0;
  font-size: 1.3rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.preview-grid img,
.preview-grid video,
.preview-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--stroke);
}

.submit-status {
  margin: 4px 0 0;
  color: var(--muted);
}

.submit-status.error {
  color: #ff6b7c;
}

.submit-status.ok {
  color: #14cc8d;
}

.editor-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.button-builder {
  border: 1px dashed var(--stroke);
  border-radius: 14px;
  padding: 14px;
}

.button-builder h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.tag-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-list li {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 5px 8px 5px 10px;
  color: var(--text);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.small-remove {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: color-mix(in srgb, var(--stroke) 60%, transparent);
  color: var(--text);
}

.admin-switch {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-switch .search-input {
  width: min(320px, 100%);
}

.pending-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.pending-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 180px 1fr;
  align-items: center;
  background: color-mix(in srgb, var(--card) 85%, transparent);
}

.pending-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.pending-card h3 {
  margin: 0;
}

.pending-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.row-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-page {
  display: grid;
  gap: 14px;
}

.detail-cover {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border: 1px solid var(--stroke);
}

.detail-description {
  color: var(--muted);
  line-height: 1.75;
}

.author-chip {
  display: inline-flex;
  align-self: start;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-grid img,
.media-grid video,
.media-grid iframe {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 650ms cubic-bezier(0.2, 0.65, 0.35, 1) forwards;
}

.reveal:nth-child(1) {
  animation-delay: 80ms;
}

.reveal:nth-child(2) {
  animation-delay: 150ms;
}

.reveal:nth-child(3) {
  animation-delay: 230ms;
}

.reveal:nth-child(4) {
  animation-delay: 320ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(24px) translateX(16px);
  }
}

@media (max-width: 740px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-head {
    align-items: start;
    flex-direction: column;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-post-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .pending-card {
    grid-template-columns: 1fr;
  }
}
