﻿/* Global reset helpers (kept minimal to avoid surprises) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #202020;
  background: #fafafa;
  background-color: white;
  font-family: "Raleway", monospace;
}

::-webkit-scrollbar {
  height: 8px;
  width: 5px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 6px rgba(23, 26, 36, 0.5);
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(23, 26, 36, 0.5);
  border-radius: 5px;
}

h1, h2, h3, h4 {
  font-family: "Source Sans Pro", sans-serif;
}

p, a, i, .label, .value {
  font-family: "Open Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  flex-grow: 1;
  margin: 0 auto;
  position: relative;
  width: auto;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.flex-between {
  justify-content: space-between;
  align-items: center;
}

.pointer {
  cursor: pointer;
}

.account-details {
  width: fit-content;
  margin: 5% auto;
}
.account-details .title-and-body {
  text-align: center;
}
.account-details .title-and-body p {
  line-height: 24px;
}

.divider-line {
  width: 70px;
  height: 4px;
  margin: 15px auto;
  background: #BC1823;
}

/* Account details page */
.account-details {
  width: min(100%, 1120px);
  margin: 5% auto;
  padding: 0 24px 56px;
}
.account-details h3 {
  font-size: 22px;
  color: #202020;
  font-weight: bold;
  margin: 0;
}
.account-details .title-and-body {
  text-align: center;
  margin-bottom: 48px;
}
.account-details .title-and-body h2 {
  margin: 0;
  font-size: 32px;
}
.account-details .title-and-body p {
  margin: 0;
  color: #202020;
  font-size: 15px;
}

.account-summary, .update-password, .purchase-history {
  gap: 24px;
}

/* Left menu */
.detail-menu {
  width: 300px;
  min-height: 520px;
  padding: 20px 22px;
  background: #f9f9fa;
}
.detail-menu .menu-nav {
  gap: 14px;
  width: 100%;
}
.detail-menu .menu-nav .menu-nav-links {
  gap: 8px;
  /* Highlight current page (Account Summary) */
}
.detail-menu .menu-nav .menu-nav-links .menu-account-summary,
.detail-menu .menu-nav .menu-nav-links .menu-purchase-history,
.detail-menu .menu-nav .menu-nav-links .menu-update-password {
  background: white;
}
.detail-menu .menu-nav .menu-nav-links .menu-account-summary {
  border-top: 0;
}
.detail-menu .menu-nav .menu-nav-links a {
  display: block;
  padding: 12px 11px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #B0B0B0;
  border-left: 3px solid #B0B0B0;
  border-radius: 3px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.detail-menu .menu-nav .menu-nav-links a:hover {
  background: #fcfcfc;
  color: #202020;
  border-left-color: #202020;
}
.detail-menu .menu-nav .menu-nav-links a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(177, 18, 38, 0.28);
  border-radius: 6px;
}
.detail-menu .menu-nav .menu-nav-links .menu-account-summary a {
  color: #BC1823;
  font-weight: bold;
  border-left-color: #BC1823;
  background: rgba(177, 18, 38, 0.04);
}
.detail-menu .log-out-btn {
  display: inline-flex;
  width: 100%;
  padding: 10px 24px;
  border-radius: 3px;
  background: #BC1823;
  color: #fff;
  font-weight: semibold;
  font-size: 14px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.detail-menu .log-out-btn:hover {
  background: #a91010;
  transition: all 200ms ease;
}
.detail-menu .log-out-btn:active {
  transform: translateY(0);
}
.detail-menu .log-out-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.18);
}

/* Right content area */
.my-profile-and-info {
  flex: 1;
  min-width: 0;
  gap: 20px;
}

.my-profile {
  gap: 20px;
}
.my-profile .my-profile-content {
  gap: 12px;
  align-items: center;
  padding: 24px 12px;
  background: #f9f9fa;
}
.my-profile .image-container {
  width: 113px;
  height: 113px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}
.my-profile .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.my-profile .my-profile-title {
  align-items: center;
  text-align: center;
  gap: 0px;
}
.my-profile .my-profile-title h4 {
  margin: 0;
  font-size: 20px;
  color: #BC1823;
}
.my-profile .my-profile-title p {
  margin: 0;
  font-size: 12px;
  color: #202020;
}

.general-info {
  gap: 20px;
}
.general-info .edit-profile-btn {
  color: #BC1823;
  font-weight: bold;
  font-size: 16px;
}
.general-info .edit-profile-btn i {
  font-size: 14px;
}
.general-info .edit-profile-btn:hover {
  color: #a91010;
}

.general-info-content {
  padding: 22px 24px;
  background: #f9f9fa;
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 30px;
}

.info-item {
  min-width: 150px;
}
.info-item .label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #B0B0B0;
  margin-bottom: 8px;
}
.info-item .value {
  display: block;
  font-size: 14px;
  color: #202020;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Edit profile (form) */
.my-profile-edit {
  width: 100%;
  gap: 20px;
}
.my-profile-edit .profile-header {
  padding: 22px 24px;
  background: #f9f9fa;
}
.my-profile-edit .profile-header .profile-identity {
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.profile-avatar {
  width: 113px;
  height: 113px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-title {
  min-width: 0;
  color: #202020;
}
.profile-title h4 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
}
.profile-title p {
  margin: 0;
  font-size: 12px;
}

.change-photo-btn {
  border-radius: 4px;
  padding: 7px 20px;
  border: 2px solid #BC1823;
  background: transparent;
  color: #BC1823;
  font-size: 14px;
  font-weight: 600;
}
.change-photo-btn:hover {
  background: #BC1823;
  color: white;
  transition: all 200ms ease;
}

.btn-primary {
  background: #BC1823;
  color: #fff;
  border: 1px solid;
  border-radius: 3px;
  border-color: #BC1823;
  font-family: "Raleway", sans-serif;
  padding: 10px 24px;
}
.btn-primary:hover {
  background: #a91010;
  border-color: #a91010;
}

.edit-profile-form {
  background: #f9f9fa;
  padding: 22px 24px;
}
.edit-profile-form .form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px 20px;
  align-items: end;
  flex-wrap: wrap;
}
.edit-profile-form .form-field {
  display: flex;
  flex-direction: column;
  min-width: 160px;
}
.edit-profile-form .form-field--full {
  grid-column: 1/-1;
}
.edit-profile-form .field-label {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 13px;
  color: #5b5b5b;
  line-height: 25px;
  letter-spacing: 2%;
}
.edit-profile-form input,
.edit-profile-form .lm-select-wrapper {
  width: 100%;
  height: fit-content;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid #d7d7d7;
}
.edit-profile-form input:focus,
.edit-profile-form .lm-select-wrapper:focus {
  border: 1px solid #363636;
}
.edit-profile-form input, .edit-profile-form select, .edit-profile-form .lm-select-wrapper {
  background: transparent;
  color: #5b5b5b;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16px;
  font-weight: bold;
}
.edit-profile-form select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
}
.edit-profile-form select i {
  pointer-events: none;
}
.edit-profile-form .form-actions {
  margin-top: 16px;
}

.purchase-history {
  gap: 20px;
  width: 100%;
}
.purchase-history .purchase-history-details {
  gap: 20px;
  width: 100%;
}
.purchase-history .ph-table-container {
  padding: 22px 24px;
  background: #f9f9fa;
  width: 100%;
}
.purchase-history .ph-table-container .purchase-history-table {
  text-align: left;
  gap: 22px;
}
.purchase-history .ph-table-container .purchase-history-table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.purchase-history .ph-table-container .purchase-history-table .serialnum {
  min-width: 50px;
}
.purchase-history .ph-table-container .purchase-history-table .date {
  min-width: 90px;
}
.purchase-history .ph-table-container .purchase-history-table .transaction {
  min-width: 200px;
}
.purchase-history .ph-table-container .purchase-history-table .reward {
  min-width: 150px;
}
.purchase-history .ph-table-container .purchase-history-table .action {
  min-width: 110px;
}
.purchase-history .ph-table-container .purchase-history-table .view-details-link {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #BC1823;
}
.purchase-history .ph-table-container .purchase-history-table i {
  font-size: 14px;
}
.purchase-history .ph-table-container .purchase-history-table .purchase-details {
  gap: 20px;
}

.my-profile-and-update {
  gap: 20px;
}
.my-profile-and-update .my-profile-title h3 {
  color: #BC1823;
}

.account-update {
  gap: 20px;
  background: #f9f9fa;
  align-items: center;
  padding: 22px 24px;
}

.password-update-content {
  gap: 24px;
}
.password-update-content .update-password-form {
  gap: 16px;
}
.password-update-content .update-password-form .label {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 13px;
  line-height: 25px;
  color: #5b5b5b;
}
.password-update-content .update-password-form input {
  width: 100%;
  height: 54px;
  padding: 12px 14px;
  border: solid 1px #d7d7d7;
  border-radius: 3px;
  background: transparent;
}
.password-update-content .update-password-form input:focus, .password-update-content .update-password-form input:focus-visible {
  border: solid 1px transparent;
  border-color: #202020;
  outline: none;
}
.password-update-content .save-changes-btn {
  padding: 10px 24px;
  width: fit-content;
  border-radius: 3px;
  font-family: "Source Sans Pro", sans-serif;
}

.password-requirements {
  padding: 20px 16px;
  align-items: flex-start;
  min-height: 320px;
  height: fit-content;
  border-radius: 3px;
  border: solid 1px #d7d7d7;
}
.password-requirements h4 {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
}
.password-requirements ul {
  margin: 0;
  padding-left: 20px;
  width: 100%;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
}

/* =========================
   Membership page (prefixed)
   ========================= */
.membership-page {
  width: 100%;
}

.membership-hero {
  top: 0;
  position: relative;
  width: 100%;
  height: 80vh;
}

.membership-hero-media {
  height: 80vh;
  overflow: hidden;
  width: 100%;
}
.membership-hero-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.membership-hero-overlay {
  background: linear-gradient(270deg, rgba(63, 63, 63, 0.45) 30%, rgba(31, 31, 31, 0.83) 100%);
}

.membership-hero-inner {
  width: min(100%, 1120px);
  margin: 0;
  padding: 0 60px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.membership-hero-card {
  max-width: 600px;
  background: white;
  border: 1px solid #e6e6e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 80px 64px;
  justify-content: center;
  gap: 18px;
}
.membership-hero-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  color: #BC1823;
}
.membership-hero-card h1 {
  font-family: "Raleway", sans-serif;
  margin: 0;
  font-size: 42px;
  line-height: 45px;
  color: #202020;
}
.membership-hero-card p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #94959B;
}

.membership-hero-actions {
  gap: 18px;
  flex-wrap: wrap;
}

.membership-btn {
  font-family: "Raleway", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: semibold;
  border-radius: 3px;
  border: 2px solid transparent;
  background: transparent;
  color: #fff;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.membership-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(177, 18, 38, 0.28);
}

.membership-btn--primary {
  background: #BC1823;
  border-color: #BC1823;
  color: #fff;
}
.membership-btn--primary:hover {
  background: #a91010;
  border-color: #a91010;
  transition: all 200ms ease;
}

.membership-btn--ghost {
  border-color: #BC1823;
  color: #BC1823;
}
.membership-btn--ghost:hover {
  color: #fff;
  background: #BC1823;
  border-color: #BC1823;
  transition: all 200ms ease;
}

.membership-steps {
  margin: 120px auto;
}

.membership-steps-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  gap: 64px;
  justify-content: center;
}

.membership-steps-group {
  gap: 128px;
  align-items: center;
}

.membership-step-block {
  gap: 15px;
}
.membership-step-block h3 {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  color: #202020;
}
.membership-step-block .membership-step-line {
  width: 70px;
  height: 4px;
  background: #BC1823;
  margin: 0;
}
.membership-step-block p {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #94959B;
  max-width: 520px;
}

.membership-step-number {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 96px;
  font-weight: bold;
  color: #B0B0B0;
  letter-spacing: 2%;
}

.membership-step-number--active {
  color: #BC1823;
}

.membership-plans {
  width: 100%;
  background: #fafafa;
  padding: 86px 200px;
}

.membership-plans-inner {
  width: 100%;
  padding: 0 24px;
}

.membership-plans-header {
  text-align: center;
  gap: 15px;
  margin-bottom: 80px;
}

.membership-plans-title {
  width: fit-content;
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: #202020;
  letter-spacing: 0;
}

.membership-plans-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: #B0B0B0;
}

.membership-plan-card {
  position: relative;
  background: #fff;
  box-shadow: 1px 1px 14px 1px rgba(0, 0, 0, 0.16);
  min-height: 400px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 3px solid transparent;
  border-radius: 3px;
}

.membership-plan-badge {
  position: absolute;
  right: -14px;
  top: 10px;
  font-size: 13px;
  font-weight: font;
  color: #fff;
  background: #BC1823;
  padding: 9px 14px;
}
.membership-plan-badge::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 0;
  height: 0;
  border-left: 0px solid transparent;
  border-right: 13px solid transparent;
  border-top: 8px solid #a91010;
}

.membership-plan-body {
  padding: 18px 16px 10px;
}
.membership-plan-body ul, .membership-plan-body li {
  font-family: "Open sans", sans-serif;
  font-size: 13px;
  text-align: left;
  margin: 20% auto;
  color: #5b5b5b;
  text-decoration: none;
  list-style: none;
  padding: 0;
}
.membership-plan-body li {
  margin: 20px 0;
  padding: 0;
}

.membership-plan-name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: bold;
  color: #202020;
}

.membership-plan-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5b5b5b;
}

.membership-plan-card--featured {
  border-color: #BC1823;
  background: rgba(188, 24, 35, 0.1607843137);
  transform: translateY(-4px);
}
.membership-plan-card--featured .membership-plan-name {
  color: #BC1823;
}

.membership-plan-footer {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.membership-plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 2%;
  border-radius: 3px;
  border: 2px solid #BC1823;
  color: #BC1823;
  background: transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.membership-plan-cta:hover {
  background: #BC1823;
  color: white;
  transition: all 200ms ease;
}
.membership-plan-cta:focus-visible {
  outline: none;
  border: 2px solid #BC1823;
}

.membership-plan-cta--primary {
  background: #BC1823;
  border-color: #BC1823;
  color: #fff;
}
.membership-plan-cta--primary:hover {
  background: #a91010;
  border-color: #a91010;
}

.member-login-section {
  /*gap: -126px;*/
  /*width:65%*/
}

.member-login-card__title {
  margin: 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #BC1823;
  line-height: 25px;
}

.member-login-card__subtitle {
  margin: 0;
  font-size: 16px;
  color: #202020;
  line-height: 25px;
}

@media screen and (min-width: 1216px) {
  .container {
    max-width: 1152px;
  }
}
@media screen and (min-width: 1408px) {
  .container {
    max-width: 1344px;
  }
}
@media screen and (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}
@media screen and (max-width: 960px) {
  .membership-hero {
    height: 70vh;
  }
  .membership-hero-media {
    height: 70vh;
  }
  .membership-hero-inner {
    display: flex;
    justify-content: center;
  }
  .membership-hero-card {
    gap: 8px;
  }
  .membership-hero-card h3 {
    font-size: 13px;
    line-height: 18px;
  }
  .membership-hero-card h1 {
    font-size: 32px;
    line-height: normal;
  }
  .membership-hero-card p {
    font-size: 12px;
  }
  .membership-hero-actions {
    gap: 12px;
  }
  .membership-btn {
    font-size: 12px;
    padding: 10px 14px;
  }
  .membership-steps {
    margin: 80px auto;
  }
  .membership-steps-inner {
    gap: 32px;
    text-align: center;
  }
  .membership-steps-inner .membership-step-line {
    margin: 0 auto;
    display: none;
  }
  .membership-step-number {
    font-size: 64px;
  }
  .membership-plans {
    padding: 48px;
  }
  .membership-plans-header {
    gap: 4px;
    margin-bottom: 48px;
  }
  .detail-menu {
    width: 250px;
  }
}
@media screen and (max-width: 768px) {
  .membership-hero {
    height: 60vh;
  }
  .membership-hero-media {
    height: 60vh;
  }
  .membership-hero-card {
    max-width: 400px;
    padding: 64px 32px;
    gap: 4px;
  }
  .membership-hero-card h3 {
    font-size: 10px;
    line-height: normal;
  }
  .membership-hero-card h1 {
    font-size: 24px;
    line-height: normal;
  }
  .membership-hero-card p {
    font-size: 11px;
  }
  .membership-hero-actions {
    gap: 8px;
  }
  .membership-btn {
    font-size: 10px;
    padding: 6px 8px;
  }
  .membership-steps {
    margin: 40px auto;
  }
  #registerForm .ta-reg-form-content.ta-threeColumnmembership-steps-inner {
    gap: 10px;
    padding: 0 40px;
  }
  .membership-step-block {
    gap: 8px;
  }
  .membership-step-block h3 {
    font-size: 16px;
  }
  .membership-step-block p {
    font-size: 12px;
    line-height: 18px;
  }
  .membership-step-number {
    font-size: 42px;
  }
  .membership-plans {
    padding: 32px;
  }
  .membership-plans-header {
    gap: 4px;
    margin-bottom: 32px;
  }
  .membership-plans-header .divider-line {
    margin: 4px auto;
  }
  .membership-plans-title,
  .account-details .title-and-body h2 {
    font-size: 22px;
    line-height: normal;
  }
  .membership-plans-subtitle,
  .account-details .title-and-body p {
    font-size: 14px;
    line-height: normal;
  }
  .membership-plan-card {
    min-height: 150px;
  }
  .membership-plan-body ul, .membership-plan-body li {
    font-size: 12px;
    margin: 10% auto;
  }
  .membership-plan-body li {
    margin: 10px 0;
  }
  .detail-menu h3,
  .general-info h3 {
    font-size: 16px;
  }
  .detail-menu {
    width: 200px;
  }
  .detail-menu .menu-nav .menu-nav-links a {
    font-size: 14px;
  }
  .general-info {
    gap: 10px;
  }
  .general-info .edit-profile-btn {
    font-size: 14px;
  }
}
@media screen and (max-width: 560px) {
  .membership-hero-inner {
    padding: 0 30px;
  }
  .membership-hero-card {
    padding: 80px 40px;
  }
  .membership-hero-card {
    padding: 30px 18px;
    border: none;
    background: rgba(255, 255, 255, 0.6039215686);
  }
  .membership-hero-card p {
    color: #202020;
    line-height: 18px;
  }
  .membership-plan-body ul, .membership-plan-body li {
    margin: 5% auto;
  }
  .membership-plan-cta {
    line-height: normal;
  }
}
