:root {
  /* ===== EASY TO EDIT: COLOURS ===== */
  --purple: #4f0f9f;
  --purple-dark: #32105f;
  --purple-link: #4a1f9c;
  --purple-light: #6d2acb;
  --ink: #23154d;
  --text: #27213d;
  --page-bg: #f7f7f7;
  --panel-bg: #f9d0d5;
  --white: #ffffff;
  --footer-purple: #480094;

  /* ===== EASY TO EDIT: TYPOGRAPHY ===== */
  --font-family: Arial, Helvetica, sans-serif;
  --font-size-body: 18px;
  --font-size-h1: 64px;
  --font-size-h2: 34px;

  /* ===== EASY TO EDIT: SPACING ===== */
  --page-max-width: 1050px;
  --panel-padding: 66px 94px 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  background: var(--page-bg);
}
.logout-loading{
  position:fixed;
  inset:0;
  background:rgba(35, 10, 70, 0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  z-index:9999;
  transition:opacity .2s ease;
}

.logout-loading.show{
  opacity:1;
  visibility:visible;
  pointer-events:all;
}

.logout-loading-box{
  width:360px;
  background:#fff;
  border-radius:12px;
  padding:30px 32px;
  text-align:center;
  box-shadow:0 12px 40px rgba(0,0,0,.25);
}

.loading-bar{
  width:100%;
  height:8px;
  background:#e5d9f2;
  border-radius:20px;
  overflow:hidden;
  margin-bottom:18px;
}

.loading-progress{
  width:0;
  height:100%;
  background:#5b00c8;
  border-radius:20px;
  animation:logoutProgress 3s linear forwards;
}

.loading-text{
  color:#35105f;
  font-size:18px;
  font-weight:700;
}

@keyframes logoutProgress{
  from{
    width:0%;
  }
  to{
    width:100%;
  }
}
.demo-banner {
  background: #181818;
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 12px;
}

/* ================= HEADER ================= */

.topbar {
  height: 58px;
  background: #f8f8f8;
  border-bottom: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 54px;
  font-size: 18px;
  color: var(--ink);
}

.language {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.language span {
  margin-left: 8px;
  font-size: 22px;
  font-weight: 700;
}

.hello strong { font-weight: 800; }

.main-nav {
  min-height: 124px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  background: linear-gradient(90deg,#5a00c6,#6900d7 55%,#5d00c9);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  object-fit: contain;
}

.bc-logo { width: 126px; height: 58px; }
.ielts-logo { width: 120px; height: 58px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  flex: 1;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.logout{min-width:141px;height:61px;padding:0 17px;border:0;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,rgba(132,78,225,.88),rgba(111,57,207,.78));box-shadow:0 5px 13px rgba(23,0,65,.25);color:#fff;font-size:21px;font-weight:700;cursor:pointer}
.logout-icon{width:32px;height:32px;display:inline-flex}.logout-icon svg{width:100%;height:100%}


/* ================= MAIN ================= */

.account-page {
  width: min(var(--page-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 36px;
}

h1 {
  margin: 0 0 58px;
  color: var(--ink);
  font-size: var(--font-size-h1);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.8px;
}

.account-panel {
  background: var(--panel-bg);
  padding: var(--panel-padding);
  margin-bottom: 36px;
  width: 100%;
}

.account-details {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}

.detail-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  font-size: 20px;
}

.detail-label { padding-left: 4px; }
.detail-value { font-weight: 700; }

.dotted-divider {
  border-top: 5px dotted var(--purple-link);
  margin: 0 0 44px;
}

.account-section { margin-bottom: 42px; }

.account-section h2 {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: var(--font-size-h2);
  line-height: 1.1;
  font-weight: 900;
}

.check-row,
.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  margin: 18px 0;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.4;
}

.check-row-indent { margin-left: 58px; }

.check-row input,
.radio-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  width: 39px;
  height: 39px;
  border: 3px solid var(--ink);
  background: transparent;
  flex: 0 0 39px;
  margin-top: 2px;
  position: relative;
}

.check-row input:checked + .custom-checkbox {
  border-color: var(--purple-link);
}

.check-row input:checked + .custom-checkbox::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 10px;
  border-left: 4px solid var(--purple-link);
  border-bottom: 4px solid var(--purple-link);
  transform: rotate(-45deg);
  left: 6px;
  top: 8px;
}

.custom-radio {
  width: 41px;
  height: 41px;
  border: 3px solid var(--purple-link);
  border-radius: 50%;
  background: #fff;
  flex: 0 0 41px;
  margin-top: 2px;
  position: relative;
}

.radio-row input:checked + .custom-radio::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--purple-link);
}

.phone { white-space: nowrap; }

.note,
.body-copy {
  font-size: var(--font-size-body);
  line-height: 1.42;
  margin: 28px 0 0;
}

.note strong { font-weight: 900; }

.notice-link,
.body-copy a {
  color: var(--purple-link);
  font-size: 18px;
  font-weight: 500;
}

.notice-link {
  display: block;
  width: fit-content;
  margin-top: 14px;
}

.terms-section .notice-link + .notice-link {
  margin-top: 8px;
}

.inner-divider {
  margin: 44px 0 36px;
}

.download-copy {
  margin: 0 0 25px;
}

.download-btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #6519b9, #4b1398);
  color: #fff;
  padding: 17px 22px;
  min-height: 56px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.download-btn:hover { filter: brightness(1.08); }
.download-btn:active { transform: translateY(1px); }

/* ================= FOOTER ================= */

footer {
  min-height: var(--footer-min-height);
  padding: 34px 56px 27px;
  background: linear-gradient(90deg,#5a00c6,#6900d7 55%,#5d00c9);
  color: var(--white);
}

.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 28px;
}

.links a {
  color: inherit;
  text-decoration: none;
  border-right: 1px solid #7c3ba9;
  padding-right: 12px;
}

.links a:last-child { border-right: 0; }

.legal {
  font-size: 12px;
  line-height: 1.5;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1250px) {
  .main-nav { gap: 22px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 18px; }
  .brand { gap: 18px; }
  .bc-logo { width: 108px; }
  .ielts-logo { width: 104px; }
}

@media (max-width: 900px) {
  :root {
    --font-size-h1: 48px;
    --font-size-h2: 31px;
    --panel-padding: 42px 34px;
  }

  .topbar { padding: 0 22px; }
  .main-nav { padding: 18px 22px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .logout { margin-left: auto; min-width: 130px; min-height: 56px; }
  .account-page { width: min(100% - 28px, var(--page-max-width)); }
  .detail-row { grid-template-columns: 170px 1fr; font-size: 21px; }
  .check-row, .radio-row { font-size: 20px; }
  .footer-inner { width: min(100% - 44px, 1650px); }
}

@media (max-width: 600px) {
  .demo-banner { font-size: 10px; }
  .topbar { height: 50px; font-size: 15px; padding: 0 14px; }
  .language { font-size: 15px; }
  .main-nav { padding: 14px; gap: 14px; }
  .brand { gap: 14px; }
  .bc-logo { width: 96px; height: 42px; }
  .ielts-logo { width: 82px; height: 42px; }
  .logout { font-size: 16px; min-width: 108px; min-height: 48px; }

  .account-page { padding-top: 38px; }
  h1 { margin-bottom: 36px; }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .check-row-indent { margin-left: 0; }
  .check-row, .radio-row { font-size: 18px; }
  .note, .body-copy { font-size: 17px; }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 38px;
  }

  .footer-links span { height: 22px; }
}


/* ================= SUCCESS MESSAGE ================= */

.success-message {
  display: none;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 26px;
  border: 4px solid #2fb579;
  background: rgba(255, 255, 255, .18);
  color: var(--text);
  font-size: 25px;
  line-height: 1.35;
}

.success-message.show {
  display: flex;
  animation: success-in .22s ease-out;
}

.success-icon {
  width: 48px;
  height: 48px;
  border: 5px solid #2fb579;
  border-radius: 50%;
  color: #2fb579;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= PHONE ROW ================= */

.phone-row {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  margin-top: 18px;
  font-size: 25px;
  line-height: 1.35;
}

.phone-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
}

.phone-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= DOWNLOAD LOADING ================= */

.download-btn.is-loading,
.download-btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  filter: none;
}

.download-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.button-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin .75s linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .success-message { font-size: 20px; }
  .phone-row { font-size: 20px; }
}

@media (max-width: 600px) {
  .success-message {
    font-size: 18px;
    padding: 16px;
    gap: 14px;
  }

  .success-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 28px;
  }

  .phone-row { font-size: 18px; }
}
