.page-contul-meu {
  background: var(--cj-cream, #FAF3E3);
  color: var(--cj-ink, #241812);
  font-family: var(--cj-sans, Inter, sans-serif);
}

.cj-account {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 72px;
}

.cj-account__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.cj-account__bar-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cj-account__out { margin: 0; }

.cj-account__logout {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cj-sienna, #8B2F1F);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cj-account__brand {
  display: block;
  line-height: 0;
}

.cj-account__brand img {
  height: 46px;
  width: auto;
  display: block;
}

.cj-account__kicker,
.cj-account__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cj-sienna, #8B2F1F);
  font-weight: 700;
}

.cj-account__hero {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.cj-account__balance,
.cj-account__panel,
.cj-account__card,
.cj-account__gate {
  background: #fff;
  border: 1px solid var(--cj-line, #E6D9C2);
  border-radius: 18px;
  padding: 18px 16px;
}

.cj-account__balance {
  background: #241812;
  color: #FAF3E3;
  border-color: #241812;
}

.cj-account__hello {
  margin: 0 0 8px;
  font-family: var(--cj-serif, Georgia, serif);
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.1;
}

.cj-account__warm,
.cj-account__next,
.cj-account__tier {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(250, 243, 227, 0.86);
}

.cj-account__points {
  margin: 8px 0 0;
  font-family: var(--cj-serif, Georgia, serif);
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.cj-account__track {
  height: 8px;
  margin: 14px 0 8px;
  border-radius: 99px;
  background: rgba(250, 243, 227, 0.16);
  overflow: hidden;
}

.cj-account__track span {
  display: block;
  height: 100%;
  width: var(--cj-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #F5B014, #E7C27A);
  transform-origin: left center;
}

html.cj-motion .cj-account__track span {
  animation: cj-fill 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cj-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.cj-account__panel h2,
.cj-account__card h2,
.cj-account summary {
  margin: 0 0 12px;
  font-family: var(--cj-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 400;
}

.cj-account summary {
  cursor: pointer;
  list-style: none;
}

.cj-account summary::-webkit-details-marker { display: none; }

.cj-account summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.cj-account details[open] > summary::after { transform: rotate(225deg); margin-top: 14px; }

.cj-account__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.cj-account__tiers li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 160ms ease, transform 160ms ease;
}

.cj-account__tiers li small { color: var(--cj-ink-muted, #8A7466); }

.cj-account__tiers li em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 12px;
  color: var(--cj-sienna, #8B2F1F);
}

.cj-account__tiers li.is-current {
  background: #241812;
  color: #FAF3E3;
}

.cj-account__tiers li.is-current small,
.cj-account__tiers li.is-current em { color: #F5B014; }

.cj-account__tiers li.is-next {
  background: #F8E7C4;
}

.cj-account__orders,
.cj-account__favs,
.cj-account__history {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cj-account__order {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--cj-line, #E6D9C2);
}

.cj-account__order:first-child { border-top: 0; padding-top: 0; }

.cj-account__order ul { margin: 4px 0 0; padding-left: 18px; }

.cj-account__when { margin: 0; font-weight: 700; }

.cj-account__pending,
.cj-account__note,
.cj-account__empty { margin: 6px 0 0; color: var(--cj-ink-soft, #5A463C); font-size: 14px; }

.cj-account__btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--cj-sienna, #8B2F1F);
  color: #FAF3E3;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.cj-account__btn:hover { transform: translateY(-1px); }

.cj-account__btn:active { transform: translateY(0); }

.cj-account__more { margin-top: 8px; }

.cj-account__more summary { font-size: 16px; margin-bottom: 0; }

.cj-account__split { display: grid; gap: 14px; margin-top: 14px; }

.cj-account__favs li,
.cj-account__history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--cj-line, #E6D9C2);
}

.cj-account__sub { margin-top: 14px; }

.cj-account__rules { margin-top: 14px; }
.cj-account__rules summary { cursor: pointer; font-weight: 700; }
.cj-account__rules p { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }

.cj-account__foot { margin: 18px 0 0; }
.cj-account__foot a { color: var(--cj-sienna, #8B2F1F); font-weight: 700; }

.cj-account__gate {
  max-width: 480px;
  margin: 12px auto 0;
}

.cj-account__gate h1 {
  font-family: var(--cj-serif, Georgia, serif);
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
  margin: 8px 0;
  overflow-wrap: break-word;
}

.cj-account__login {
  display: grid;
  gap: 6px;
  margin: 16px 0 8px;
}

.cj-account__login label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.cj-account__login input {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--cj-line, #E6D9C2);
  background: #fff;
  color: inherit;
}

.cj-account__login input:focus {
  outline: 2px solid var(--cj-sienna, #8B2F1F);
  outline-offset: 1px;
}

.cj-account__login .cj-account__btn {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}

.cj-account__hint {
  margin: 0;
  color: var(--cj-ink-soft, #5A463C);
  font-size: 13px;
}

.cj-account__error {
  margin: 0 0 4px;
  color: var(--cj-sienna, #8B2F1F);
  font-weight: 700;
  font-size: 14px;
}

html.cj-motion .cj-reveal {
  opacity: 0;
  transform: translateY(10px);
}

html.cj-motion .cj-reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

@media (min-width: 800px) {
  .cj-account__hero,
  .cj-account__split { grid-template-columns: 1.1fr 0.9fr; }
  .cj-account__hero--plain,
  .cj-account__split--one { grid-template-columns: 1fr; }
  .cj-account__brand img { height: 56px; }
  .cj-account__points { font-size: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .cj-account *,
  .cj-account *::before,
  .cj-account *::after {
    animation: none !important;
    transition: none !important;
  }
  html.cj-motion .cj-reveal,
  html.cj-motion .cj-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* t781u: identical single-line reorder buttons on Contul meu.
   Scoped to the order-row button so gate / back-to-shop buttons stay unchanged. */
.cj-account__order {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cj-account__order > div {
  min-width: 0;
  flex: 1 1 auto;
}
.cj-account__order form {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.cj-account__order .cj-account__btn {
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 168px;
  width: 168px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
}

/* t793u: Points hidden — keep the same gap between the greeting and the orders card. */
.cj-account__hero--plain { margin-bottom: 14px; }
