:root {
  --bg: #060e15;
  --card: #131b23;
  --white: #fff;
  --ink: #060e15;
  --gold: linear-gradient(90deg, #ba8d38, #f9e36d, #ba8d38);
  --gold-solid: #c3a158;
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: "Assistant", sans-serif;
  overflow-x: hidden;
  position: relative;
}

[hidden] { display: none !important; }

/* Corners */
.corner {
  position: absolute;
  top: 0;
  width: 180px;
  height: 180px;
  pointer-events: none;
}
.corner line { stroke: #e2c25e; stroke-width: 7; }
.corner--left { left: 0; }
.corner--right { right: 0; }

/* Layout */
.wrap {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  padding: 75px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  margin: 0 0 50px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

/* Loading */
.loader {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15);
  border-top-color: #f9e36d;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login { width: 100%; max-width: 600px; }

.btn-google {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: var(--radius);
  font: 400 20px "Assistant", sans-serif;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-google b { font-weight: 700; }
.btn-google .g-logo {
  width: 24px; height: 24px;
  position: absolute;
  right: 20px;
}
.btn-google:hover { box-shadow: 0 0 0 4px rgba(249, 227, 109, .35); }
.btn-google:active { transform: scale(.99); }
.btn-google:focus-visible { outline: 3px solid #f9e36d; outline-offset: 3px; }

.msg {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(249, 227, 109, .4);
  font-size: 18px;
  text-align: center;
}
.msg a { color: #f9e36d; }

/* Courses grid */
.courses {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  width: 100%;
}

.card {
  width: 300px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--gold);
  position: relative;
  overflow: hidden;
}
.card__inner {
  background: var(--card);
  border-radius: calc(var(--radius) - 2px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card__icon {
  height: 200px;
  display: grid;
  place-items: center;
}
.card__icon img { width: 100px; height: 100px; }

.card__body {
  padding: 0 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card__sub { margin: 0; font-size: 24px; font-weight: 400; }
.card__name { margin: 0 0 20px; font-size: 32px; font-weight: 700; line-height: 1.2; }

.card__btn {
  display: inline-block;
  padding: 14px 42px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 -1px 3px rgba(255,255,255,.5);
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
a.card__btn:hover { background: var(--gold); color: var(--ink); }
.card__btn[aria-disabled="true"] { opacity: .45; cursor: default; }

/* "Coming soon" ribbon (top-left corner) */
.card__ribbon {
  position: absolute;
  top: 34px;
  left: -58px;
  width: 230px;
  padding: 6px 0;
  background: var(--white);
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  transform: rotate(-45deg);
  z-index: 2;
}

/* Account bar */
.account {
  margin-top: 60px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 16px;
  color: rgba(255,255,255,.6);
}
.account a, .link {
  color: rgba(255,255,255,.85);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.account a:hover, .link:hover { color: #f9e36d; }

/* Mobile */
@media (max-width: 767px) {
  .wrap { padding: 60px 16px; }
  .title { font-size: 36px; margin-bottom: 36px; }
  .corner { width: 90px; height: 90px; }
  .courses { gap: 30px; }
  .card { width: 100%; max-width: 340px; }
  .account { flex-wrap: wrap; justify-content: center; }
}

/* Consent line + legal links */
.consent { margin: 14px 0 0; text-align: center; font-size: 15px; color: rgba(255,255,255,.65); }
.consent a { color: #f9e36d; }
.legal {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 24px 16px 32px;
  font-size: 14px; color: rgba(255,255,255,.4);
}
.legal a { color: rgba(255,255,255,.6); text-decoration: none; }
.legal a:hover { color: #f9e36d; text-decoration: underline; }
/* keep the legal footer at the bottom of short pages */
body:not(.course-page) { display: flex; flex-direction: column; }
body:not(.course-page) > .wrap { flex: 1; width: 100%; }

/* Legal documents (terms / accessibility) */
.doc-back { align-self: flex-start; margin-bottom: 24px; color: rgba(255,255,255,.65); text-decoration: none; font-size: 16px; }
.doc-back:hover { color: #f9e36d; }
.doc-sub { margin: -30px 0 32px; color: rgba(255,255,255,.6); font-size: 16px; text-align: center; }
.doc { width: 100%; max-width: 860px; padding: 4px; border-radius: var(--radius); background: var(--gold); }
.doc__in {
  padding: 32px 40px;
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255,255,255,.9);
}
.doc__in h2 { margin: 28px 0 8px; font-size: 22px; font-weight: 800; color: #f9e36d; }
.doc__in h2:first-child { margin-top: 0; }
.doc__in ol, .doc__in ul { margin: 0; padding-inline-start: 24px; }
.doc__in li { margin-bottom: 6px; }
.doc__in p { margin: 0 0 14px; }
.doc__in a { color: #f9e36d; }
@media (max-width: 767px) {
  .doc__in { padding: 22px 18px; font-size: 16px; }
  .doc-sub { margin-top: -20px; }
}
