@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap');

/* ── Reset & Variables ───────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: color .08s ease, background-color .08s ease, border-color .08s ease, opacity .08s ease, transform .1s cubic-bezier(.34, 1.56, .64, 1), box-shadow .1s ease;
}

:root {
  --bg: #0c0c0e;
  --bg2: rgba(18, 18, 20, 0.85);
  --bg3: rgba(26, 26, 29, 0.9);
  --border: rgba(255, 255, 255, .07);
  --border2: rgba(255, 255, 255, .13);
  --text: #ffffff;
  --text2: #9ca3af;
  --text3: #6b7280;
  --body: 'Inter', sans-serif;
  --code: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 80px;
  background: var(--bg);
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #18181b;
  border-radius: 10px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #27272a;
  border: 3px solid var(--bg);
  background-clip: padding-box;
}

/* ── Animations (fast & smooth) ─────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes ping {

  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeInUp .15s cubic-bezier(.16, 1, .3, 1) both;
}

.stagger-1 {
  animation-delay: .02s;
}

.stagger-2 {
  animation-delay: .04s;
}

.stagger-3 {
  animation-delay: .06s;
}

.stagger-4 {
  animation-delay: .08s;
}

.icon {
  display: block;
  flex-shrink: 0;
  color: var(--icon-color, var(--text3));
}

.btn .icon,
.adm-btn .icon,
.hero-stat .icon {
  color: currentColor;
}

/* Card hover */
.card-hover {
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s ease !important;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover) !important;
}

/* ── Layout ──────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: rgba(14, 14, 16, .95);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  backdrop-filter: blur(12px);
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ── Sidebar brand ───────────────────────────────── */
.sidebar-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.sidebar-brand .logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 10px;
}

.sidebar-search-box svg {
  color: var(--text3);
  flex-shrink: 0;
}

.sidebar-search input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--body);
  font-size: 13px;
  outline: none;
}

.sidebar-search input::placeholder {
  color: var(--text3);
}

.sidebar-search-box:has(input:focus) {
  border-color: var(--border2);
  background: rgba(255, 255, 255, .07);
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0 20px;
  overflow-y: auto;
}

.nav-cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  cursor: pointer;
  user-select: none;
}

.nav-cat-label:hover {
  color: var(--text2);
}

.nav-cat-label svg:first-child {
  color: var(--text3);
}

.nav-cat-label .cat-arrow {
  margin-left: auto;
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1) !important;
  color: var(--text3);
}

.nav-cat-label.open .cat-arrow {
  transform: rotate(90deg);
}

.nav-page-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 28px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin: 1px 0;
}

.nav-page-link svg {
  color: var(--text3);
}

.nav-page-link:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.nav-page-link.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent2);
  border-left-color: var(--accent);
}

.nav-page-link.active svg {
  color: var(--accent2);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--text3);
}

.sidebar-footer a {
  color: var(--text3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sidebar-footer a:hover {
  color: var(--accent2);
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

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

.btn-primary {
  background: var(--accent);
  color: #052e16;
  box-shadow: var(--shadow-base);
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--text2);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 56px 40px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 20px;
}

.hero-badge .ping-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
}

.hero-badge .ping-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent2);
  animation: ping 1.4s ease-out infinite;
}

.hero-badge .ping-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent2);
}

.hero-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.hero-title span {
  color: var(--accent2);
}

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text2);
  backdrop-filter: blur(4px);
}

.hero-stat svg {
  color: var(--accent2);
}

/* ── Quick start grid ────────────────────────────── */
.qs-wrap {
  padding: 36px 40px 64px;
}

.qs-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 18px;
}

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

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

.qs-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent2);
}

.qs-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 10px;
}

.qs-card-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  padding: 3px 0;
}

.qs-card-link svg {
  color: var(--text3);
}

.qs-card-link:hover {
  color: var(--text);
}

.qs-card-link:hover svg {
  color: var(--accent2);
}

/* ── Content area ────────────────────────────────── */
.content-wrap {
  flex: 1;
  padding: 36px 40px 72px;
  max-width: 820px;
}

.content-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.content-header .page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.01em;
}

.content-header .page-title svg {
  color: var(--accent2);
}

.breadcrumb {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* Markdown */
.md-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
}

.md-body h1,
.md-body h2,
.md-body h3 {
  color: var(--text);
  line-height: 1.4;
  margin: 2em 0 .7em;
  font-weight: 600;
}

.md-body h1 {
  font-size: 22px;
  letter-spacing: -.02em;
}

.md-body h2 {
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.md-body h3 {
  font-size: 15px;
  color: var(--accent2);
}

.md-body p {
  margin-bottom: 1em;
}

.md-body strong {
  color: var(--text);
  font-weight: 600;
}

.md-body em {
  color: var(--text2);
  font-style: italic;
}

.md-body code {
  font-family: var(--code);
  font-size: 12.5px;
  background: rgba(255, 255, 255, .06);
  color: var(--accent2);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.md-body pre {
  background: rgba(20, 20, 20, .9);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  overflow-x: auto;
  margin: 1.2em 0;
}

.md-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

.md-body ul,
.md-body ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.md-body li {
  margin-bottom: .4em;
  color: var(--text2);
}

.md-body ul li::marker {
  color: var(--accent2);
}

.md-body ol li::marker {
  color: var(--accent2);
  font-weight: 600;
}

.md-body blockquote {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  padding: 14px 18px;
  margin: 1.2em 0;
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--text2);
}

.md-body a {
  color: var(--accent2);
}

/* Prev/next nav */
.page-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text2);
  font-size: 13px;
}

.page-nav-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  border-color: var(--border2);
}

.page-nav-btn.next {
  justify-content: flex-end;
}

/* ── Admin layout ────────────────────────────────── */
.adm-root {
  display: flex;
  min-height: 100vh;
  background: #09090b;
  color: #fafafa;
  font-family: var(--body);
}

.adm-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #111113;
  border-right: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid #27272a;
}

.adm-brand .brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
  flex-shrink: 0;
}

.adm-brand span {
  font-size: 15px;
  font-weight: 600;
  color: #fafafa;
}

.adm-nav {
  flex: 1;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #a1a1aa;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.adm-nav-item:hover {
  background: #18181b;
  color: #fafafa;
}

.adm-nav-item.active {
  background: #18181b;
  color: #fafafa;
}

.adm-nav-item.active svg {
  color: var(--accent2);
}

.adm-sidebar-foot {
  padding: 14px 10px;
  border-top: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.adm-topbar {
  background: #111113;
  border-bottom: 1px solid #27272a;
  padding: 0 28px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.adm-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #fafafa;
}

.adm-topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adm-content {
  padding: 28px 28px 64px;
}

.adm-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-base);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.adm-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
}

.adm-card-title .adm-card-title-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Form */
.adm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adm-grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.adm-fg {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adm-fg label {
  font-size: 12px;
  font-weight: 500;
  color: #a1a1aa;
}

.adm-fg input,
.adm-fg textarea,
.adm-fg select {
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #fafafa;
  font-family: var(--body);
  font-size: 13px;
  padding: 8px 11px;
  outline: none;
}

.adm-fg input:focus,
.adm-fg textarea:focus,
.adm-fg select:focus {
  border-color: #52525b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .04);
}

.adm-fg textarea {
  resize: vertical;
  min-height: 180px;
  font-family: var(--code);
  font-size: 12px;
  line-height: 1.6;
}

.adm-fg select option {
  background: #18181b;
}

.adm-hint {
  font-size: 11px;
  color: #52525b;
}

/* Buttons */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.adm-btn:hover {
  opacity: .85;
}

.adm-btn-primary {
  background: var(--accent);
  color: #052e16;
}

.adm-btn-ghost {
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid #3f3f46;
}

.adm-btn-danger {
  background: transparent;
  color: #f87171;
  border: 1px solid #3f3f46;
}

.adm-btn-danger:hover {
  background: #450a0a;
  border-color: #f87171;
  opacity: 1;
}

.adm-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.adm-btn-icon {
  padding: 5px 7px;
}

/* Item list */
.adm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.adm-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 11px 14px;
}

.adm-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a1a1aa;
}

.adm-list-info {
  flex: 1;
  min-width: 0;
}

.adm-list-name {
  font-size: 13px;
  font-weight: 500;
  color: #fafafa;
}

.adm-list-slug {
  font-size: 11px;
  color: #52525b;
  font-family: var(--code);
  margin-top: 1px;
}

.adm-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.adm-list-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.adm-list-order button {
  background: #27272a;
  border: none;
  color: #a1a1aa;
  border-radius: 4px;
  width: 18px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.adm-list-order button:hover {
  background: #3f3f46;
  color: #fff;
}

.adm-list-order svg {
  width: 11px;
  height: 11px;
}

/* Nested Hierarchy */
.adm-list-cat-header {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 6px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.adm-list-nested {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: 36px;
  margin-top: 6px;
}

.adm-list-nested .adm-list-item {
  background: #18181b;
  border-color: #27272a;
}

/* Toast Message */
.adm-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 99999;
  min-width: 320px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.adm-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.adm-toast-content {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}

.adm-toast-icon {
  color: var(--accent);
  display: flex;
}

.adm-toast.err .adm-toast-icon {
  color: #f87171;
}

.adm-toast-text {
  flex: 1;
  color: #fafafa;
  font-weight: 500;
  font-size: 13px;
}

.adm-toast-close {
  background: none;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  transition: 0.2s;
}

.adm-toast-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fafafa;
}

.adm-toast-progress {
  height: 3px;
  background: var(--accent);
  width: 100%;
  transform-origin: left;
  animation: toastProgress 10s linear forwards;
}

.adm-toast.err .adm-toast-progress {
  background: #f87171;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Tab panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeInUp .2s ease both;
}

/* Login */
.adm-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #09090b;
}

.adm-login-box {
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 36px 32px;
  width: 340px;
}

.adm-login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.adm-login-logo .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent2);
}

.adm-login-logo span {
  font-size: 16px;
  font-weight: 600;
}

.adm-login-box .adm-fg {
  margin-bottom: 12px;
}

.adm-login-hint {
  font-size: 12px;
  color: #52525b;
  margin-top: 10px;
}

/* Accent swatches */
.accent-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
}

.swatch:hover {
  transform: scale(1.15);
  border-color: #fff4;
}

/* ── Icon picker ─────────────────────────────────── */
.icon-picker {
  position: relative;
}

.icon-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #fafafa;
  font-family: var(--body);
  font-size: 13px;
  padding: 8px 11px;
  cursor: pointer;
}

.icon-picker-btn:hover {
  border-color: #52525b;
}

.icon-picker-btn .icon-preview {
  display: flex;
  color: var(--accent2);
  flex-shrink: 0;
}

.icon-picker-btn .ip-caret {
  margin-left: auto;
  color: #52525b;
}

.icon-picker-pop {
  display: none;
  position: fixed;
  z-index: 99998;
  width: 280px;
  max-height: 280px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .7);
  animation: fadeInUp .12s ease both;
}

.icon-picker.open .icon-picker-pop {
  display: block;
}

.icon-picker-search {
  width: 100%;
  background: #0f0f11;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  color: #fafafa;
  font-size: 12px;
  padding: 6px 9px;
  margin-bottom: 8px;
  outline: none;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.icon-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
}

.icon-opt:hover {
  background: #27272a;
  color: #fff;
}

.icon-opt.active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent2);
  border-color: var(--accent);
}

.icon-opt.hidden {
  display: none;
}

/* ── Markdown toolbar ────────────────────────────── */
.md-toolbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.md-toolbar button {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #a1a1aa;
  font-family: var(--code);
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  padding: 5px 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.md-toolbar button:hover {
  background: #27272a;
  color: #fff;
  border-color: #52525b;
}

.adm-divider {
  height: 1px;
  background: #27272a;
  margin: 20px 0;
}

/* Search highlight */
.search-hl {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 2px;
}

/* Top Nav & Floating Admin */
.top-nav {
  position: absolute;
  top: 24px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-socials a {
  color: var(--text3);
  transition: color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, .03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.top-socials a:hover {
  color: var(--accent2);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}

.top-nav-btn {
  padding: 6px 14px;
  font-size: 13px;
}

.floating-admin {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s, border-color .2s, box-shadow .2s;
}

.floating-admin:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.rowrain-signature {
  font-family: 'Dancing Script', cursive;
  font-style: italic;
  font-weight: 600;
  opacity: 0.6;
  font-size: 1.3em;
  letter-spacing: 0.5px;
  user-select: none;
  background: linear-gradient(135deg, var(--text2), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.rowrain-signature:hover {
  opacity: 1;
  transform: scale(1.05) rotate(-2deg);
  background: linear-gradient(135deg, #d8b4fe, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile & Tablet Responsiveness */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  z-index: 201;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 199;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: clamp(24px, 3.5vw, 32px);
  }

  .adm-grid3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    z-index: 200;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    width: 280px;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    left: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--r);
  }

  .mobile-overlay {
    display: block;
  }

  .hero {
    padding: 70px 20px 30px;
    text-align: center;
  }

  .hero-sub {
    margin: 0 auto 28px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .content-wrap {
    padding: 20px;
  }

  .qs-wrap {
    padding: 20px;
  }

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

  .top-nav {
    position: static;
    padding: 20px 20px 0;
    justify-content: center;
    margin-bottom: 20px;
  }

  .adm-grid,
  .adm-grid3 {
    grid-template-columns: 1fr;
  }

  .adm-sidebar {
    width: 64px;
  }

  .adm-sidebar .adm-brand span,
  .adm-nav-item span,
  .adm-sidebar-foot span {
    display: none;
  }

  .adm-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .adm-list-actions {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .floating-admin {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}