:root{
  --bg: #111827;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.04);
  --surface: rgba(17,24,39,.55);
  --text: #E5E7EB;
  --muted: rgba(229,231,235,.72);
  --border: rgba(255,255,255,.08);
  --accent: #67e8f9;
  --accent-rgb: 103,232,249;
  --accent-2: #a78bfa;
  --accent-2-rgb: 167,139,250;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --reveal-dy: 60px;

  --nav-bg: rgba(10,14,26,.70);
  --nav-bg-compact: rgba(10,14,26,.86);

  --page-accent: #00e0ff;
  --page-accent-rgb: 0,224,255;
  --page-accent-text: #061014;
}

html { scroll-behavior: smooth; }

body{
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.text-muted { color: var(--muted) !important; }

.container { max-width: 1040px; }

.site-nav{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--nav-bg) !important;
  border-bottom: 1px solid var(--border);
  transition: padding .15s ease, box-shadow .15s ease, background .15s ease;
}

.site-nav.nav--compact{
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  background: var(--nav-bg-compact) !important;
}

.navbar .nav-link { color: var(--muted) !important; }
.navbar .nav-link:hover { color: var(--text) !important; }
.navbar .navbar-brand { letter-spacing: .3px; }

.section{
  padding: 56px 0;
}

.section h2 { letter-spacing: .2px; }

.hero{
  padding: 70px 0 54px;
}

.hero .lead{
  color: var(--muted);
  max-width: 68ch;
}

.hero-badges .badge{
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(var(--accent-rgb), .25);
}

.card a{ color: var(--text); }
.card a:hover{ color: var(--accent); }

.btn-outline-secondary{
  border-color: var(--border) !important;
  color: var(--muted) !important;
}

.btn-outline-secondary:hover{
  border-color: rgba(var(--accent-rgb), .35) !important;
  color: var(--text) !important;
  background: rgba(var(--accent-rgb), .08) !important;
}

.form-control,
.form-select{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-control::placeholder{
  color: rgba(255,255,255,.45);
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(var(--accent-rgb), .35);
  box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .12);
}

.reveal{
  opacity: 0;
  transform: translateY(var(--reveal-dy)) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  pointer-events: none;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity:1; transform:none; transition:none; filter:none; }
  .site-nav{ transition:none; }
}

[id]{ scroll-margin-top: 90px; }

.form-select option,
select option{
  color: #111 !important;
  background: #fff !important;
}

.list-group-item{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.list-group-item-action:hover{
  background: rgba(255,255,255,.07) !important;
  color: var(--text) !important;
}

.post-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:.85rem;
  color: var(--muted);
}

.post-meta__line1,
.post-meta__line2{
  display:flex;
  align-items:center;
  gap:8px;
}

.post-meta__dot{ opacity:.6; }

@media (max-width: 576px){
  .post-meta{
    flex-direction:column;
    align-items:flex-start;
  }
}

.post-card__imgwrap{
  display:block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  overflow:hidden;
  aspect-ratio: 1.91 / 1;
}

.post-card__img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.post-card__imgwrap--placeholder .post-card__placeholder{
  width: 100%;
  height:100%;
  background:
    radial-gradient(500px 200px at 20% 20%, rgba(var(--accent-rgb), .20), transparent 55%),
    radial-gradient(500px 200px at 80% 30%, rgba(var(--accent-2-rgb), .22), transparent 55%),
    rgba(255,255,255,.04);
}

.post-card__footer{
  background: rgba(255,255,255,.03);
  border-top: 1px solid var(--border);
}

.brand-logo{
  height: 28px;
  width: auto;
  display: block;
}

.section--alt{
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

img,
svg,
video{
  max-width: 100%;
  height: auto;
}

.search-result__title{
  color: var(--text);
  text-decoration: none;
}

.search-result__title:hover{
  color: var(--accent);
  text-decoration: none;
}

.nav-social{
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-social__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.nav-social__link svg{
  display:block;
}

.nav-social__link--fb{
  background: #1877F2;
}

.nav-social__link--ig{
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.nav-social__link:hover,
.nav-social__link:focus-visible{
  transform: translateY(-1px) scale(1.06);
  filter: brightness(1.12) saturate(1.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.nav-social__link:focus-visible{
  outline: 2px solid rgba(var(--accent-rgb), .55);
  outline-offset: 2px;
}

.site-nav .container{
  position: relative;
}

.nav-social--mobile{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.nav-social--desktop{
  margin-right: 12px;
}

@media (max-width: 991.98px){
  .nav-social--mobile{
    z-index: 5;
  }

  .nav-social--mobile .nav-social__link{
    width: 44px;
    height: 44px;
    box-shadow:
      0 0 0 2px rgba(255,255,255,.80),
      0 10px 24px rgba(0,0,0,.45);
  }

  .nav-social--mobile .nav-social__link svg{
    width: 22px;
    height: 22px;
  }

  .nav-social--mobile .nav-social__link:active{
    transform: translateY(0) scale(0.98);
    filter: brightness(1.08) saturate(1.08);
  }

  .site-nav{
    overflow: visible;
  }

  .nav-social--mobile{
    left: calc(50% + 42px);
    top: calc(50% + 10px);
    transform: translate(-50%, -50%);
  }
}

.tiptap-wrap{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.tiptap-toolbar{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.tt-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: .9rem;
}

.tt-btn:hover{
  border-color: rgba(var(--accent-rgb), .35);
  background: rgba(var(--accent-rgb), .08);
}

.tt-btn--danger:hover{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
}

.tt-sep{
  width: 10px;
}

.tt-color{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}

.tt-color input{
  width: 34px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
}

.tiptap-editor .ProseMirror{
  padding: 14px;
  min-height: 360px;
  outline: none;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.tiptap-editor .ProseMirror p{ margin: 0 0 .9em; }
.tiptap-editor .ProseMirror h2{ margin: 1.2em 0 .5em; font-size: 1.35rem; }
.tiptap-editor .ProseMirror h3{ margin: 1.1em 0 .5em; font-size: 1.15rem; }
.tiptap-editor .ProseMirror ul,
.tiptap-editor .ProseMirror ol{ padding-left: 1.2em; }

.tiptap-editor .ProseMirror img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.tiptap-editor .ProseMirror iframe{
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 14px;
  display: block;
}

.tiptap-editor{
  min-height: 360px;
}

.prose{
  max-width: 78ch;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prose p{ margin: 0 0 1em; }
.prose h2{ margin: 1.6em 0 .6em; font-size: 1.5rem; }
.prose h3{ margin: 1.4em 0 .6em; font-size: 1.25rem; }
.prose ul,
.prose ol{ padding-left: 1.2em; margin: 0 0 1em; }

.prose blockquote{
  margin: 1.2em 0;
  padding-left: 14px;
  border-left: 3px solid rgba(var(--accent-rgb), .35);
  color: var(--muted);
}

.prose img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin: 1em 0;
}

.prose iframe{
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 14px;
  display: block;
  margin: 1em 0;
}

.prose a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.prose a:hover{
  color: #7cf0ff;
}

.prose a:focus-visible{
  outline: 2px solid rgba(var(--accent-rgb), .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.post-cover{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 40 / 21;
  max-height: 520px;
}

.post-cover__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-excerpt{
  margin-top: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(var(--accent-rgb), .18);
  background: rgba(var(--accent-rgb), .06);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.post-card__excerpt-link{
  display: block;
}

.site-nav .navbar-toggler{
  border-color: rgba(var(--accent-rgb), .35);
}

.site-nav .navbar-toggler:focus{
  box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb), .18);
}

.site-nav .navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2367e8f9' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

mark.hl{
  background: rgba(var(--page-accent-rgb), 0.22);
  color: inherit;
  padding: 0 .15em;
  border-radius: .25rem;
}

.fr-pagination .pagination{
  gap: .45rem;
}

.fr-pagination .page-item{
  display: flex;
}

.fr-pagination .page-link{
  min-width: 48px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  color: var(--page-accent);
  background: transparent;
  border: 1px solid rgba(var(--page-accent-rgb), 0.25);
  border-radius: .8rem;
  text-decoration: none;
  box-shadow: none;
}

.fr-pagination .page-link:hover{
  color: var(--page-accent);
  background: rgba(var(--page-accent-rgb), 0.12);
  border-color: rgba(var(--page-accent-rgb), 0.45);
}

.fr-pagination .page-link:focus{
  box-shadow: 0 0 0 .25rem rgba(var(--page-accent-rgb), 0.18);
}

.fr-pagination .page-item.disabled .page-link{
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.12);
  background: transparent;
}

.fr-pagination__form{
  margin: 0;
}

.fr-pagination__input{
  width: 84px;
  min-width: 84px;
  text-align: center;
  font-weight: 700;
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: var(--page-accent-text);
  padding-left: .45rem;
  padding-right: .45rem;
}

.fr-pagination__input:hover{
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: var(--page-accent-text);
}

.fr-pagination__input:focus{
  background: var(--page-accent);
  border-color: var(--page-accent);
  color: var(--page-accent-text);
  outline: none;
}

.fr-pagination__input::-webkit-outer-spin-button,
.fr-pagination__input::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.fr-pagination__input[type=number]{
  -moz-appearance: textfield;
  appearance: textfield;
}

.fr-pagination__total{
  min-width: auto;
  padding-left: .9rem;
  padding-right: .9rem;
  color: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,255,255,0.12) !important;
  background: transparent !important;
}

@media (max-width: 575.98px){
  .fr-pagination .page-link{
    min-width: 42px;
    height: 40px;
    padding: .45rem .7rem;
  }

  .fr-pagination__input{
    width: 74px;
    min-width: 74px;
  }
}

.admin-search-form{
  width: 100%;
  max-width: 520px;
}

.admin-posts-table{
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  margin-bottom: 0;
}

.admin-posts-table > :not(caption) > * > *{
  background: transparent !important;
  color: var(--text);
  border-bottom-color: var(--border) !important;
  vertical-align: middle;
}

.admin-posts-table thead th{
  font-size: .92rem;
  white-space: nowrap;
}

.admin-sort-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.admin-sort-link:hover{
  color: var(--accent);
}

.admin-sort-link.is-active{
  color: var(--accent);
}

.admin-sort-link__icon{
  opacity: .9;
  font-size: .9em;
  line-height: 1;
}

.admin-post-thumb{
  width: 220px;
  height: auto;
  aspect-ratio: 1200 / 630;
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.admin-post-thumb--placeholder{
  background:
    radial-gradient(120px 60px at 20% 20%, rgba(var(--accent-rgb), .18), transparent 55%),
    radial-gradient(120px 60px at 80% 30%, rgba(var(--accent-2-rgb), .18), transparent 55%),
    rgba(255,255,255,.04);
}

.admin-actions{
  min-width: 95px;
  align-items: flex-start;
}

@media (max-width: 991.98px){
  .admin-search-form{
    max-width: 100%;
  }
}

.admin-posts-table td:nth-child(2),
.admin-posts-table th:nth-child(2){
  width: 250px;
}

.admin-posts-table td:nth-child(3),
.admin-posts-table th:nth-child(3){
  width: auto;
  min-width: 0;
}

.admin-posts-table td:nth-child(6),
.admin-posts-table th:nth-child(6){
  width: 135px;
}

.admin-posts-table td:nth-child(7),
.admin-posts-table th:nth-child(7){
  width: 95px;
}

.tiptap-preview-wrap{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.tiptap-preview-head{
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.tiptap-preview{
  padding: 14px;
  min-height: 220px;
  max-width: none;
}

.tiptap-preview.prose{
  max-width: none;
}

.tiptap-preview iframe{
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  border: 0;
  border-radius: 14px;
  display: block;
  margin: 1em 0;
}