:root {
  --ink: #243044;
  --muted: #617087;
  --paper: #fffaf0;
  --panel: #ffffff;
  --line: #dfe7ef;
  --blue: #42a5f5;
  --green: #56c271;
  --yellow: #ffd45a;
  --red: #ff7a7a;
  --orange: #ffad4f;
  --teal: #38c6bd;
  --shadow: 0 18px 50px rgba(36, 48, 68, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(66, 165, 245, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(86, 194, 113, 0.11) 1px, transparent 1px),
    linear-gradient(135deg, #fff6d8 0%, #e4fbff 48%, #fff0f0 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.tagline-track {
  width: 100%;
  margin-bottom: 18px;
  overflow: hidden;
  border: 2px solid rgba(15, 138, 123, 0.16);
  border-radius: 10px;
  background: linear-gradient(90deg, #ffffff, #ecfffb, #fff7cf);
  box-shadow: 0 10px 26px rgba(15, 138, 123, 0.12);
}

.tagline-train {
  display: flex;
  width: max-content;
  animation: taglineTrain 16s linear infinite;
}

.tagline-train span {
  flex: 0 0 auto;
  padding: 8px 22px;
  color: #0b5f57;
  -webkit-text-stroke: 0.35px rgba(255, 212, 90, 0.78);
  text-shadow:
    0 1px 0 #fff3bf,
    0 2px 7px rgba(20, 184, 166, 0.28);
  font-size: 1.14rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes taglineTrain {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  border: 3px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.58) 48%, rgba(255, 250, 240, 0.26)),
    url("../images/murid-seronok-belajar.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 10px 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: #137c74;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: #4d5d74;
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  display: none;
  place-items: center;
  min-height: 280px;
  padding: 22px;
  border: 3px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24px 24px, rgba(255, 212, 90, 0.52) 0 7px, transparent 8px),
    linear-gradient(145deg, #ffffff, #eafffb);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(260px, 82%);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 20px rgba(36, 48, 68, 0.2));
}

.year-section {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: 0;
}

.member-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #12b8a6, #087f73);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 26px rgba(15, 138, 123, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.member-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  width: min(590px, 100%);
  flex: 0 0 min(590px, 100%);
  gap: 12px;
}

.signup-nav-button {
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #5ac8fa, #007aff);
  text-decoration: none;
}

.profile-nav-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #34c759, #0f8a7b);
}

.admin-nav-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, #ff9f0a, #ff375f);
}

.member-button::before {
  content: "";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #ffffff;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 19px 19px;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 19px 19px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

#memberButton::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5Zm-3 8V7a3 3 0 0 1 6 0v3H9Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5Zm-3 8V7a3 3 0 0 1 6 0v3H9Z'/%3E%3C/svg%3E");
}

.signup-nav-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 4a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}

.profile-nav-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-4.42 0-8 2.24-8 5v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1c0-2.76-3.58-5-8-5Z'/%3E%3C/svg%3E");
}

.admin-nav-button::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5.1 3.4 9.8 8 11 4.6-1.2 8-5.9 8-11V5l-8-3Zm0 5a3 3 0 0 1 1.5 5.6V17a1.5 1.5 0 0 1-3 0v-4.4A3 3 0 0 1 12 7Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5.1 3.4 9.8 8 11 4.6-1.2 8-5.9 8-11V5l-8-3Zm0 5a3 3 0 0 1 1.5 5.6V17a1.5 1.5 0 0 1-3 0v-4.4A3 3 0 0 1 12 7Z'/%3E%3C/svg%3E");
}

.member-actions .member-button {
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: normal;
}

.member-button:hover,
.member-button:focus-visible {
  filter: saturate(1.06) brightness(1.02);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 18px 34px rgba(15, 23, 42, 0.18);
  outline: 3px solid rgba(0, 122, 255, 0.18);
  outline-offset: 3px;
}

.member-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.year-card {
  position: relative;
  min-height: 170px;
  padding: 18px 14px;
  border: 0;
  border-radius: 8px;
  color: #172235;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 22px rgba(36, 48, 68, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(36, 48, 68, 0.86);
  font-size: 0.72rem;
  font-weight: 900;
}

.year-card:hover,
.year-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(36, 48, 68, 0.18);
  outline: 3px solid rgba(36, 48, 68, 0.18);
  outline-offset: 3px;
}

.year-card.is-selected {
  outline: 4px solid #243044;
  outline-offset: 3px;
}

.year-label,
.card-note {
  display: block;
  font-weight: 800;
}

.year-label {
  font-size: 0.86rem;
  text-transform: uppercase;
}

.year-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 4rem;
  line-height: 0.9;
}

.card-note {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.card-red {
  background: linear-gradient(160deg, #ff9f9f, #ffd3d3);
}

.card-yellow {
  background: linear-gradient(160deg, #ffd75f, #fff0a6);
}

.card-green {
  background: linear-gradient(160deg, #63d984, #c9f4d5);
}

.card-blue {
  background: linear-gradient(160deg, #62b8ff, #d7efff);
}

.card-orange {
  background: linear-gradient(160deg, #ffb35b, #ffe1b4);
}

.card-teal {
  background: linear-gradient(160deg, #45d2c9, #c6f7f2);
}

.selection-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  border: 3px solid rgba(255, 212, 90, 0.95);
  border-radius: 12px;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 158, 179, 0.25), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(110, 203, 255, 0.28), transparent 22%),
    linear-gradient(135deg, #ffffff 0%, #fff8d6 45%, #e7fffb 100%);
  box-shadow: 0 16px 34px rgba(15, 138, 123, 0.12);
}

.selection-kicker {
  color: #137c74;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.selection-panel h3 {
  margin: 4px 0 4px;
  font-size: 1.45rem;
}

.selection-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-head h3 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  line-height: 1.15;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff8aa5, #14b8a6);
  font-size: 1.9rem;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(255, 138, 165, 0.22);
}

.contact-fields {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid rgba(15, 138, 123, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-fields input,
.contact-fields select,
.contact-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 2px solid #cfeee9;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(15, 138, 123, 0.06);
}

.contact-fields textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

.contact-fields input:focus,
.contact-fields select:focus,
.contact-fields textarea:focus {
  border-color: #38c6bd;
  outline: 3px solid rgba(56, 198, 189, 0.2);
}

.contact-submit {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #243044, #0f8a7b);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 138, 123, 0.22);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: linear-gradient(135deg, #172235, #0b6f64);
  outline: 3px solid rgba(255, 212, 90, 0.45);
  outline-offset: 3px;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.contact-message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.4;
}

.contact-message[data-type="success"] {
  color: #047857;
}

.contact-message[data-type="error"] {
  color: #be123c;
}

.contact-message[data-type="info"] {
  color: #2f6fb3;
}

.next-link {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: #243044;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(36, 48, 68, 0.5);
}

.login-modal.is-open {
  display: grid;
}

.login-box {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  border: 4px solid #ffd45a;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(36, 48, 68, 0.3);
}

.login-box h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

.login-note {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.close-login {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #243044;
  background: #fff3bf;
  font-weight: 900;
  cursor: pointer;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form label {
  color: #243044;
  font-size: 0.88rem;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  padding: 12px 13px;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.login-form input:focus {
  border-color: #38c6bd;
  outline: 3px solid rgba(56, 198, 189, 0.2);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: stretch;
}

.password-field button {
  width: 54px;
  height: 50px;
  min-width: 54px;
  max-width: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #243044;
  background: #fff3bf;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  overflow: hidden;
}

.eye-icon {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-open {
  display: block;
}

.eye-closed {
  display: none;
}

.password-field button.is-visible .eye-open {
  display: none;
}

.password-field button.is-visible .eye-closed {
  display: block;
}

.auth-message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.auth-message[data-type="error"] {
  color: #c93838;
}

.auth-message[data-type="success"] {
  color: #137c74;
}

.auth-message[data-type="info"] {
  color: #2f6fb3;
}

.login-form button {
  margin-top: 8px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #243044;
  font-weight: 900;
  cursor: pointer;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-form .secondary-login {
  margin-top: 0;
  color: #243044;
  background: #fff3bf;
}

.membership-link {
  display: block;
  color: #137c74;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.membership-link:hover,
.membership-link:focus-visible {
  text-decoration: underline;
}

.membership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.membership-copy,
.membership-card {
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.membership-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.membership-copy ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.7;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 18px;
  color: #137c74;
}

.plan-price strong {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 0.9;
}

.plan-price span {
  color: var(--muted);
  font-weight: 900;
}

.membership-detail {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-row {
  padding: 12px;
  border: 2px solid rgba(36, 48, 68, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.detail-row span,
.detail-row strong {
  display: block;
}

.detail-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-row strong {
  margin-top: 4px;
  font-size: 1rem;
}

.payment-placeholder {
  padding: 14px;
  border-radius: 8px;
  color: #243044;
  background: #fff3bf;
  font-weight: 850;
  line-height: 1.55;
}

.payment-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #243044;
  font: inherit;
  font-weight: 900;
  cursor: not-allowed;
  opacity: 0.76;
}

.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.membership-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: #137c74;
  font-weight: 900;
  text-decoration: none;
}

.membership-actions a:last-child {
  color: #243044;
  background: #ffffff;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #243044;
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(36, 48, 68, 0.1);
}

.subject-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.subject-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.year-bubble {
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 8px;
  color: #ffffff;
  background: #137c74;
  font-size: 4.4rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(19, 124, 116, 0.24);
}

.subject-section,
.gate-panel {
  margin-top: 24px;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.subject-card {
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  color: #172235;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(36, 48, 68, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.subject-card:hover,
.subject-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(36, 48, 68, 0.18);
  outline: 3px solid rgba(36, 48, 68, 0.18);
  outline-offset: 3px;
}

.subject-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.7rem;
  font-weight: 900;
}

.subject-card strong,
.subject-card span {
  display: block;
}

.subject-card strong {
  font-size: 1.2rem;
  line-height: 1.18;
}

.subject-card span:last-child {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 800;
}

.subject-malay {
  background: linear-gradient(160deg, #ff9f9f, #ffd3d3);
}

.subject-english {
  background: linear-gradient(160deg, #62b8ff, #d7efff);
}

.subject-science {
  background: linear-gradient(160deg, #63d984, #c9f4d5);
}

.subject-math {
  background: linear-gradient(160deg, #ffd75f, #fff0a6);
}

.subject-islam {
  background: linear-gradient(160deg, #45d2c9, #c6f7f2);
}

.dynamic-subject-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px dashed rgba(15, 118, 110, 0.22);
}

.dynamic-subject-block h2 {
  margin: 0 0 6px;
  color: #172235;
  font-size: clamp(1.2rem, 2.7vw, 1.65rem);
}

.dynamic-subject-block p {
  margin: 0 0 14px;
  color: #60708a;
  font-weight: 800;
  line-height: 1.55;
}

.dynamic-subject-card {
  min-height: 124px;
  border: 2px solid rgba(15, 118, 110, 0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(255,255,255,.24)),
    linear-gradient(160deg, #ccfbf1, #dbeafe);
}

.dynamic-subject-card .subject-icon {
  background: #ffffff;
  color: #0f766e;
}

.gate-panel {
  border: 3px dashed rgba(36, 48, 68, 0.18);
}

.gate-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.gate-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.gate-plan-link {
  display: inline-block;
  margin-left: 8px;
  background: #137c74;
}

@media (max-width: 420px) {
  .password-field {
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .password-field button {
    min-height: 48px;
  }
}

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

  .hero-visual {
    min-height: 220px;
  }

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

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

  .section-heading {
    flex-wrap: wrap;
  }

  .member-actions {
    width: 100%;
  }

  .membership-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .member-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .member-actions .member-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
    padding: 18px 0;
  }

  .tagline-track {
    margin-bottom: 14px;
  }

  .tagline-train {
    animation-duration: 12s;
  }

  .tagline-train span {
    padding: 7px 16px;
    font-size: 0.98rem;
  }

  .hero {
    gap: 18px;
    min-height: unset;
    padding: 24px;
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.48)),
      url("../images/murid-seronok-belajar.jpg");
    background-position: center;
    background-size: cover;
  }

  h1 {
    font-size: 2.6rem;
  }

  .lede {
    font-size: 1rem;
  }

  .hero-visual {
    display: none;
  }

  .year-section {
    padding: 18px;
  }

  .section-heading {
    display: block;
  }

  .member-button {
    width: 100%;
    margin-top: 0;
  }

  .member-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 14px;
    gap: 10px;
  }

  .member-actions .member-button,
  .signup-nav-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

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

  .year-card {
    min-height: 145px;
  }

  .year-card strong {
    font-size: 3.2rem;
  }

  .selection-panel {
    grid-template-columns: 1fr;
  }

  .next-link {
    display: block;
    width: 100%;
    margin-top: 14px;
  }

  .top-nav,
  .subject-hero {
    display: block;
  }

  .home-link {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }

  .subject-hero {
    padding: 22px;
  }

  .year-bubble {
    width: 96px;
    margin-top: 18px;
    font-size: 3.2rem;
  }

  .subject-section,
  .gate-panel {
    padding: 18px;
  }

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

  .subject-card {
    min-height: 148px;
  }

  .gate-plan-link {
    margin-left: 0;
  }

  .membership-copy,
  .membership-card {
    padding: 20px;
  }

  .plan-price {
    display: block;
  }

  .membership-actions a {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .year-grid,
  .subject-grid {
    grid-template-columns: 1fr;
  }
}
