* {
  box-sizing: border-box;
}

:root {
  color: #25182c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
}

body {
  margin: 0;
  background: #ffffff;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(88, 37, 100, 0.96), rgba(88, 37, 100, 0.72)),
    url("https://biddytarot.com/wp-content/uploads/2025/09/Biddy-Tarot-Card-Readers.jpg");
  background-color: #582564;
  background-position: center;
  background-size: cover;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(88, 37, 100, 0.96), rgba(88, 37, 100, 0.72)),
    url("https://biddytarot.com/wp-content/uploads/2025/09/Biddy-Tarot-Card-Readers.jpg");
  background-color: #582564;
  background-position: center;
  background-size: cover;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: clamp(230px, 28vw, 360px);
  max-height: 84px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
}

.main-nav a {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.public-page {
  padding: clamp(34px, 6vw, 78px) clamp(16px, 4vw, 48px) 78px;
}

.hero {
  width: min(980px, 100%);
  margin: 0 auto clamp(28px, 5vw, 54px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #6f3d78;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #655873;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.student-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.trust-strip {
  width: min(1180px, 100%);
  margin: 0 auto clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-strip div,
.ai-summary,
.faq-section {
  border: 1px solid rgba(88, 37, 100, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(43, 25, 54, 0.08);
}

.trust-strip div {
  padding: 16px;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: #582564;
  font-size: 0.95rem;
}

.trust-strip span {
  margin-top: 5px;
  color: #655873;
  font-size: 0.86rem;
  line-height: 1.45;
}

.student-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(88, 37, 100, 0.16);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(43, 25, 54, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.student-card:hover,
.student-card:focus-visible {
  transform: translateY(-5px);
  border-color: #c59a49;
  box-shadow: 0 24px 58px rgba(43, 25, 54, 0.2);
  outline: none;
}

.student-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: #efe7f3;
}

.student-card span {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.student-card strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.student-card small {
  color: #655873;
  font-size: 0.88rem;
}

.student-card em {
  color: #6f3d78;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.reader-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0 72px;
}

.reader-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 42px);
}

.reader-media img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(45, 28, 55, 0.22);
}

.certificate-card {
  margin-top: 16px;
  overflow: hidden;
  border: 2px solid rgba(197, 154, 73, 0.62);
  border-radius: 8px;
  background: #ffffff;
}

.certificate-card img {
  width: 100%;
  display: block;
}

.certificate-placeholder {
  min-height: 190px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #582564;
}

.reader-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.reader-copy h2 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.reader-copy p {
  color: #3b3044;
  line-height: 1.75;
}

.ai-summary {
  margin: 18px 0;
  padding: 16px;
  color: #34233e;
  font-weight: 800;
  line-height: 1.6;
  background: #fbf8fc;
}

.faq-section {
  width: min(980px, 100%);
  margin: clamp(28px, 5vw, 54px) auto 0;
  padding: clamp(18px, 3vw, 28px);
}

.reader-copy .faq-section {
  width: 100%;
}

.faq-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.faq-section details {
  border-top: 1px solid rgba(88, 37, 100, 0.12);
  padding: 14px 0;
}

.faq-section details:first-of-type {
  border-top: 0;
}

.faq-section summary {
  color: #25182c;
  font-weight: 900;
  cursor: pointer;
}

.faq-section p {
  margin: 10px 0 0;
  color: #655873;
  line-height: 1.7;
}

.lead {
  font-size: 1.08rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-item {
  padding: 14px;
  border: 1px solid rgba(88, 37, 100, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.detail-item span {
  display: block;
  color: #6f3d78;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.social-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-row a,
.primary-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.social-row a,
.primary-button {
  border: 0;
  padding: 10px 15px;
  color: #ffffff;
  background: #582564;
}

.ghost-button {
  border: 1px solid rgba(88, 37, 100, 0.18);
  padding: 9px 14px;
  color: #582564;
  background: #ffffff;
}

.empty-state {
  width: min(760px, calc(100% - 32px));
  margin: 80px auto;
  padding: 28px;
  border: 1px solid rgba(88, 37, 100, 0.14);
  border-radius: 8px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(43, 25, 54, 0.08);
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 40px);
  background: #f7f3f8;
}

.login-shell {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(88, 37, 100, 0.92), rgba(88, 37, 100, 0.76)),
    url("https://biddytarot.com/wp-content/uploads/2025/09/Biddy-Tarot-Card-Readers.jpg");
  background-size: cover;
  background-position: center;
}

.login-card,
.editor-panel,
.list-panel {
  border: 1px solid rgba(88, 37, 100, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(43, 25, 54, 0.08);
}

.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 15px;
  padding: 30px;
}

.login-card img {
  width: min(330px, 100%);
  margin: 0 auto;
  filter: invert(1);
}

.login-card h1,
.login-card p {
  margin: 0;
  text-align: center;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  color: #7a1830;
  background: #ffe7ee;
}

.success {
  padding: 12px;
  border-radius: 8px;
  color: #215531;
  background: #e5f8e8;
}

.admin-topbar {
  width: min(1400px, 100%);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.admin-topbar img {
  width: clamp(210px, 22vw, 330px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #582564;
}

.admin-grid {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
}

.editor-panel,
.list-panel {
  padding: clamp(18px, 3vw, 28px);
}

.panel-title,
.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3b3044;
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(88, 37, 100, 0.2);
  border-radius: 8px;
  padding: 11px 12px;
  color: #25182c;
  background: #ffffff;
}

textarea {
  resize: vertical;
}

.editor-panel > label,
.upload-grid {
  margin-top: 14px;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.upload-grid label {
  min-height: 86px;
  padding: 14px;
  border: 1px dashed rgba(88, 37, 100, 0.28);
  border-radius: 8px;
  color: #582564;
  background: #fbf8fc;
}

.student-list {
  display: grid;
  gap: 10px;
}

.admin-student {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(88, 37, 100, 0.12);
  border-radius: 8px;
}

.admin-student img {
  width: 64px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #efe7f3;
}

.admin-student div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-student span,
.admin-student small {
  color: #655873;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .student-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .header-inner,
  .admin-topbar,
  .reader-layout,
  .detail-grid,
  .form-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 116px;
    display: grid;
    justify-items: center;
    padding: 12px 0;
  }

  .brand img {
    width: min(78vw, 330px);
    object-position: center;
  }

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

  .panel-title,
  .list-tools {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .public-page {
    padding-inline: 12px;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }
}
