:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --surface: #151821;
  --surface-light: #1f2330;
  --text: #f2f2f2;
  --muted: #b2b6c2;
  --accent: #f6b26b;
  --accent-soft: rgba(246, 178, 107, 0.15);
  --member-accent: #f4a9a9;
  --admin-accent: #9bbcf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 13, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-image {
  height: 72px;
  width: auto;
  max-height: 100%;
}

.nav-home-link {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-home-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .cta {
  color: var(--accent);
  font-weight: 600;
}

.nav-links .member-link {
  color: var(--member-accent);
}

.nav-links .admin-link {
  color: var(--admin-accent);
}

.nav-links .member-link:hover,
.nav-links .admin-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
}

.hero {
  width: 100%;
}

.hero-slider {
  position: relative;
  height: 55vh;
  min-height: 320px;
  background: linear-gradient(120deg, rgba(12, 13, 16, 0.8), rgba(21, 24, 33, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --hero-image: none;
  --hero-next-image: none;
}

.hero-placeholder {
  background: radial-gradient(circle at top, rgba(246, 178, 107, 0.15), transparent),
    linear-gradient(120deg, rgba(12, 13, 16, 0.9), rgba(21, 24, 33, 0.8));
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: translateX(0);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-next-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(6%);
}

.hero-slider.is-transitioning::before {
  transition: opacity 1.2s ease, transform 1.2s ease;
  opacity: 0;
  transform: translateX(-6%);
}

.hero-slider.is-transitioning::after {
  transition: opacity 1.2s ease, transform 1.2s ease;
  opacity: 1;
  transform: translateX(0);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 2rem;
  color: white;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.hero-overlay h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  border: 2px solid rgba(255, 255, 255, 0.6);
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
}

.hero-helper {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.5rem 0;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-bleed {
  padding: 2rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.section-text h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.section-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.section-media {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.not-found {
  padding: 5rem 0;
}

.not-found__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.not-found__grid--right .not-found__media {
  order: 2;
}

.not-found__media img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.not-found__content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}

.not-found__lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.text-link {
  color: #8cc8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: #a6d7ff;
}

.upcoming-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.upcoming-empty__image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.upcoming-empty__content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.upcoming-empty__socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


.moon-hero {
  display: block;
  width: 100%;
  min-height: 260px;
  background-image: linear-gradient(95deg, rgba(12, 13, 16, 0.78), rgba(12, 13, 16, 0.25)), url('/static/pics/home/moon_hero.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.moon-hero__content {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.moon-hero h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.moon-hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
}

.moon-hero__description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.multi-select {
  min-height: 220px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 180px;
  background: linear-gradient(rgba(15, 9, 9, 0.15), rgba(15, 9, 9, 0.15)),
    url("/static/store/page/CDhero_asociate.jpg") center/cover no-repeat;
  border-radius: 0;
  text-align: center;
  padding: 2.5rem 1rem;
}

.hero-cta__content {
  max-width: 900px;
}

.hero-cta__highlight {
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  padding: 0.6em 1.2em;
  display: inline-block;
  border-radius: 8px;
}


.hero-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 0.6rem;
}

.hero-cta p {
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .upcoming-empty {
    grid-template-columns: 1fr;
  }
}

.mini-slider img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.placeholder {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards--three {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.cards .card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.placeholder-card {
  border: 1px dashed rgba(246, 178, 107, 0.35);
}

.placeholder-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(246, 178, 107, 0.12), transparent);
}

.card:hover {
  transform: translateY(-6px);
}

.card-content {
  padding: 1.2rem;
}

.card-content h3 {
  margin-bottom: 0.6rem;
}

.card-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-content .card-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.button {
  background: var(--accent);
  color: #1a1a1a;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 178, 107, 0.3);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.button.danger {
  background: #f26d6d;
  color: #1a1a1a;
}

.button.danger:hover {
  box-shadow: 0 8px 24px rgba(242, 109, 109, 0.35);
}

.login-submit {
  margin-bottom: 1.5rem;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.required-marker {
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.2rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-consent input {
  margin-top: 0.25rem;
}

.policy-box {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  max-height: 180px;
  overflow-y: auto;
}

.policy-box p {
  margin-bottom: 0.75rem;
}

.policy-box p:last-child {
  margin-bottom: 0;
}

.policy-box__marker {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.35rem;
}

.rich-editor {
  display: grid;
  gap: 0.75rem;
}

.rich-editor__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rich-editor__label {
  font-weight: 600;
  color: var(--text);
}

.rich-editor__switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.rich-editor__toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rich-editor__switch-slider {
  width: 42px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}

.rich-editor__switch-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rich-editor__toggle-input:checked + .rich-editor__switch-slider {
  background: rgba(246, 178, 107, 0.6);
}

.rich-editor__toggle-input:checked + .rich-editor__switch-slider::after {
  transform: translateX(20px);
  background: var(--surface);
}

.rich-editor__quill .ql-toolbar {
  border-radius: 12px 12px 0 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(6, 17, 33, 0.9);
}

.rich-editor__quill .ql-container {
  min-height: 320px;
  border-radius: 0 0 12px 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--text);
}

.rich-editor__quill .ql-editor {
  font-family: inherit;
  min-height: 300px;
}

.rich-editor__textarea {
  display: none;
  min-height: 320px;
}

.rich-editor__error {
  margin: 0;
  font-size: 0.95rem;
  color: #ffb3b3;
}

.rich-editor.is-raw .rich-editor__textarea {
  display: block;
}

.rich-editor.is-raw .rich-editor__quill {
  display: none;
}

.rich-editor .CodeMirror {
  display: none;
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.rich-editor.is-raw .CodeMirror {
  display: block;
}

.image-gallery {
  display: grid;
  gap: 0.75rem;
}

.image-main-field {
  display: grid;
  gap: 0.5rem;
}

.image-visibility-switch {
  justify-self: flex-start;
}

.image-gallery__dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  background: rgba(6, 17, 33, 0.35);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.image-gallery__dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(246, 178, 107, 0.08);
}

.image-gallery__panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(6, 17, 33, 0.65);
}

.image-gallery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.image-gallery__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .image-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.image-gallery__item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
  aspect-ratio: 1;
}

.image-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-gallery__delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.image-gallery__delete svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.image-gallery__item:hover .image-gallery__delete,
.image-gallery__delete:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.image-gallery__confirm {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.image-gallery__confirm.is-active {
  opacity: 1;
  pointer-events: auto;
}

.image-gallery__confirm-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  max-width: 460px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: grid;
  gap: 1rem;
}

.image-gallery__confirm-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.image-gallery__confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

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

.lightbox-content {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  cursor: pointer;
}

.image-gallery__item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(246, 178, 107, 0.2);
}

.image-gallery__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.image-gallery__pagination .button {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.image-gallery__page {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.button.small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

input,
textarea,
select {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
}

.info-card {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

.photo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.photo-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo-card:not(.photo-card--compact) img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-card:hover {
  transform: translateY(-6px);
}

.photo-info {
  padding: 0.8rem 1rem;
}

.photo-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.astrofoto-detail {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.astrofoto-detail img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.photo-meta {
  display: grid;
  gap: 1rem;
}

.photo-meta a.button.ghost {
  width: fit-content;
}

.astrofoto-versions {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.astrofoto-versions__list {
  display: grid;
  gap: 1rem;
}

.astrofoto-version-field {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(6, 17, 33, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.astrofoto-version-actions {
  display: flex;
  justify-content: flex-end;
}

.astrofoto-versions-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.astrofoto-version-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astrofoto-version-card__image {
  position: relative;
}

.astrofoto-version-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.astrofoto-version-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.astrofoto-version-card__open {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(6, 17, 33, 0.8);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.astrofoto-version-card:hover .astrofoto-version-card__open {
  opacity: 1;
  transform: translateY(0);
}

.astrofoto-version-card__open svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.astrofoto-version-card__meta {
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.75rem;
}

.astrofoto-version-card__meta p {
  color: var(--muted);
  font-size: 0.9rem;
}

.astrofoto-version-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.photo-meta ul {
  list-style: none;
  margin: 1rem 0;
  color: var(--muted);
}

.photo-meta ul li {
  line-height: 1.6;
}

.astrofoto-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(6, 17, 33, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.astrofoto-filters.is-collapsed {
  display: none;
}

.astrofoto-filters__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.astrofoto-filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.astrofoto-filters select,
.astrofoto-filters input[type="date"] {
  min-width: 180px;
}

.astrofoto-gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-info__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.photo-info__meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.astrofoto-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.astrofoto-pagination button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.astrofoto-pagination button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 960px) {
  .astrofoto-versions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .astrofoto-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .astrofoto-versions-grid {
    grid-template-columns: 1fr;
  }

  .astrofoto-gallery {
    grid-template-columns: 1fr;
  }
}

.blog-detail img {
  margin: 1.5rem 0;
  border-radius: 16px;
}

.content-image-link {
  display: inline-block;
}

.content-image {
  max-width: 600px;
  max-height: 400px;
  width: auto;
  height: auto;
  border-radius: 14px;
}

.blog-image {
  width: 50%;
  max-height: 800px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

.entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.visibility-badge {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.95rem;
}

.card .visibility-badge,
.blog-item .visibility-badge {
  margin-top: 0.5rem;
}

.entry-meta {
  margin-top: 0.35rem;
  color: var(--muted);
}

.blog-content {
  color: var(--muted);
}

.entry-actions {
  margin-top: 2rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  gap: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  margin-top: 2rem;
}

.contact-art {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.contact-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-gallery {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.profile-entry-list {
  display: grid;
  gap: 1rem;
}

.profile-entry {
  background: var(--surface);
  padding: 1rem 1.4rem;
  border-radius: 12px;
  display: grid;
  gap: 0.6rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.entry-header h3 {
  margin: 0;
}

.photo-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-card--compact img {
  height: 140px;
  object-fit: cover;
}

.profile-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.social-footer {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.social-footer__label {
  font-size: 0.95rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.equipment-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.equipment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface-light);
  border-radius: 12px;
}

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.alert {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.alert.success {
  background: rgba(46, 125, 50, 0.2);
  color: #a5d6a7;
}

.alert.error {
  background: rgba(198, 40, 40, 0.2);
  color: #ef9a9a;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.about-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.about-editor {
  margin-bottom: 2.5rem;
}

.about-content .section-grid {
  margin: 2rem 0;
}

.about-content h1 {
  color: var(--text);
}

.about-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.about-spacer {
  margin-top: 1.5rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: var(--surface-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.table {
  display: grid;
  gap: 0.6rem;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-radius: 10px;
}

.table-row.users-table {
  grid-template-columns: 1.5fr 3fr 1fr;
  align-items: start;
}

.table-header {
  font-weight: 600;
  background: var(--surface-light);
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.permissions-grid--header {
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.permissions-column {
  display: grid;
  gap: 0.5rem;
}

.permissions-form {
  display: grid;
  gap: 0.75rem;
}

.permissions-switch {
  font-size: 0.85rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .blog-item {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 600px) {
  .hero-slider {
    height: 45vh;
  }

  .nav-bar {
    padding: 1rem;
  }
}
