:root {
  --arbeex-bg: #070b14;
  --arbeex-panel: rgba(12, 19, 34, 0.88);
  --arbeex-ink: #f4f7fb;
  --arbeex-muted: #97a7c3;
  --arbeex-line: rgba(84, 225, 255, 0.18);
  --arbeex-cyan: #37e5ff;
  --arbeex-lime: #b7ff3c;
  --arbeex-red: #ff4d67;
}

body {
  background:
    radial-gradient(circle at top, rgba(55, 229, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #05070d 0%, #0a1020 100%);
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.14;
}

.wp-site-blocks,
.editor-styles-wrapper {
  color: var(--arbeex-ink);
}

header.wp-block-template-part,
.wp-block-group.alignfull.is-layout-constrained:first-child {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.wp-block-site-logo,
.wp-block-site-title {
  position: relative;
}

.wp-block-site-title a,
.wp-block-site-logo img {
  filter: drop-shadow(0 0 18px rgba(55, 229, 255, 0.35));
}

.wp-block-button__link,
.arbeex-subscribe-button,
.arbeex-unlock-form button,
.arbeex-subscribe-form button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--arbeex-cyan), var(--arbeex-lime)) !important;
  color: #041019 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(55, 229, 255, 0.28);
}

.wp-block-query .wp-block-post,
.news-item,
.wp-block-post-template > li,
.wp-block-group.is-layout-constrained,
.wp-block-cover,
.wp-block-column {
  position: relative;
}

.wp-block-query .wp-block-post,
.news-item,
.wp-block-post-template > li {
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.92), rgba(11, 19, 35, 0.82));
  border: 1px solid var(--arbeex-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.wp-block-post-template > li {
  padding-bottom: 1rem;
}

.arbeex-missing-image {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(55, 229, 255, 0.28), rgba(183, 255, 60, 0.18)),
    radial-gradient(circle at top right, rgba(255, 77, 103, 0.24), transparent 35%),
    #0a1223;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.5rem;
}

.arbeex-missing-image span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(4, 12, 24, 0.45);
}

.arbeex-teaser {
  display: grid;
  gap: 1.25rem;
}

.arbeex-teaser-copy {
  color: #dce6f4;
}

.arbeex-paywall-card,
.arbeex-subscribe-dialog {
  background:
    radial-gradient(circle at top right, rgba(55, 229, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(10, 16, 29, 0.96));
  border: 1px solid rgba(55, 229, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
}

.arbeex-paywall-kicker,
.arbeex-brand-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(55, 229, 255, 0.08);
  border: 1px solid rgba(55, 229, 255, 0.2);
  color: var(--arbeex-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.arbeex-paywall-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.arbeex-login-pill {
  background: rgba(7, 17, 34, 0.8) !important;
  color: #f4f9ff !important;
  border: 1px solid rgba(70, 228, 255, 0.18) !important;
  box-shadow: none !important;
}

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

.arbeex-subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.arbeex-subscribe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.arbeex-subscribe-dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  margin: 8vh auto;
}

.arbeex-floating-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  padding: 0.95rem 1.2rem;
}

.arbeex-close-modal {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.arbeex-price {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  margin: 0.5rem 0;
}

.arbeex-price span {
  color: var(--arbeex-muted);
  font-size: 1rem;
  font-weight: 500;
}

.arbeex-subscribe-form,
.arbeex-unlock-form {
  display: grid;
  gap: 0.75rem;
}

.arbeex-recaptcha {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.arbeex-subscribe-form input,
.arbeex-unlock-form input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(151, 167, 195, 0.25);
  background: rgba(10, 16, 29, 0.7);
  color: #fff;
  padding: 0.9rem 1rem;
}

.arbeex-form-status {
  min-height: 1.25rem;
  color: var(--arbeex-lime);
}

.arbeex-unlock-status {
  min-height: 1.15rem;
  margin: 0.4rem 0 0;
  color: var(--arbeex-muted);
}

.arbeex-unlock-status.is-error {
  color: #ffd86b;
}

.arbeex-modal-footnote,
.arbeex-unlock-inline {
  margin-top: 1rem;
  color: var(--arbeex-muted);
}

body.logged-in .arbeex-open-subscribe,
body.logged-in .arbeex-floating-launcher,
body.logged-in [data-arbeex-subscribe="true"],
body.logged-in .arbeex-sticky-subscribe-banner,
body.logged-in .arbeex-subscribe-modal {
  display: none !important;
}

@media (max-width: 782px) {
  .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .arbeex-floating-launcher {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
