*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  color: #e4f0f6;
  background: #040810;
  background-image:
    linear-gradient(155deg, rgba(6, 182, 212, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse 90% 65% at 0% 0%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(8, 145, 178, 0.18), transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 35%, rgba(10, 18, 32, 0.95), transparent);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.05) 0%, transparent 45%);
  z-index: 0;
}

[hidden] {
  display: none !important;
}

.ads-landing {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 3rem;
}

.ads-wrap {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 3rem 4rem;
  align-items: center;
}

.ads-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ads-main-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.12),
    0 0 90px rgba(6, 182, 212, 0.1),
    0 28px 56px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ads-main-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 8, 16, 0.7) 100%);
  z-index: 1;
}

.ads-main-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #22d3ee, #0891b2, transparent);
  z-index: 2;
  opacity: 0.85;
}

.ads-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.ads-main-photo.is-fading {
  opacity: 0.35;
}

.ads-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ads-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #0a1424;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.ads-thumb:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

.ads-thumb.is-active {
  border-color: #06b6d4;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
}

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

.ads-empty {
  margin: 0;
  color: rgba(228, 240, 246, 0.55);
  text-align: center;
}

.ads-content {
  padding: 0.5rem 0;
}

.ads-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #22d3ee;
  font-weight: 500;
}

.ads-headline {
  margin: 0 0 0.65rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f0f9ff;
  letter-spacing: 0.01em;
}

.ads-subheadline {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  color: #7dd3fc;
  letter-spacing: 0.02em;
}

.ads-line {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(228, 240, 246, 0.82);
}

.ads-line--price {
  font-weight: 500;
  color: #7dd3fc;
}

.ads-line--accent {
  color: #67e8f9;
  font-weight: 500;
}

.ads-cta {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(228, 240, 246, 0.68);
  max-width: 42ch;
}

.ads-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.ads-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.ads-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 45%, #0369a1 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 32px rgba(6, 182, 212, 0.4);
}

.ads-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.5);
}

.ads-btn:active {
  transform: translateY(0);
}

.ads-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .ads-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 520px;
  }

  .ads-content {
    text-align: center;
  }

  .ads-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .ads-actions {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .ads-thumbs {
    gap: 0.35rem;
  }

  .ads-actions {
    flex-direction: column;
    width: 100%;
  }

  .ads-btn {
    width: 100%;
  }
}

body.page-admin {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #f0f9ff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(6, 182, 212, 0.12), transparent 55%),
    #040810;
}

body.page-admin::before {
  display: none;
}

.page-admin a {
  color: #67e8f9;
  text-decoration: none;
}

.page-admin .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(4, 8, 16, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.page-admin .brand {
  color: #f0f9ff;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

.page-admin .top-link {
  color: rgba(228, 240, 246, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-admin .admin {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.page-admin .eyebrow {
  margin: 0 0 10px;
  color: #22d3ee;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.page-admin h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 0.95;
  margin: 0 0 18px;
  letter-spacing: 0;
  color: #f0f9ff;
}

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

.page-admin label {
  display: grid;
  gap: 8px;
  color: rgba(228, 240, 246, 0.72);
  font-size: 13px;
  text-align: left;
}

.page-admin input,
.page-admin textarea {
  width: 100%;
  background: #0a1424;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: #f0f9ff;
  font: inherit;
}

.page-admin textarea {
  resize: vertical;
}

.page-admin .stack {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.page-admin .upload-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}

.page-admin .hint {
  margin: 0;
  color: rgba(228, 240, 246, 0.55);
  font-size: 13px;
}

.page-admin .btn {
  justify-self: start;
  border: 0;
  background: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  color: #041018;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
}

.page-admin .btn-ghost {
  background: transparent;
  color: #f0f9ff;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.page-admin .form-error {
  color: #fca5a5;
  margin: 0;
}

.page-admin .admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.page-admin .admin-card {
  position: relative;
  display: grid;
  gap: 8px;
  background: #0a1424;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.18);
}

.page-admin .admin-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

.page-admin .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #22d3ee;
  color: #041018;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.page-admin .card-actions {
  display: flex;
  gap: 6px;
}

.page-admin .card-actions button {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 4px;
  cursor: pointer;
  font-size: 12px;
  color: #f0f9ff;
  border-radius: 6px;
}

.page-admin .card-actions button:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-admin .card-actions .danger {
  color: #fca5a5;
}

@media (max-width: 860px) {
  .page-admin h1 {
    font-size: 36px;
  }

  .page-admin .admin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-admin .top {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-admin .admin-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
