/* ============================================================
   account.css — user account page (.acc-* prefix)
   ============================================================ */

/* ---- Form atoms (shared with auth pages) ---- */
.au-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.au-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(31,31,30,0.7);
}
.au-field__input {
  height: 3rem;
  padding: 0 1rem;
  background: var(--gx-white);
  border: 1.5px solid var(--gx-gray-light);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--gx-dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.au-field__input::placeholder { color: rgba(31,31,30,0.3); }
.au-field__input:focus {
  border-color: var(--gx-dark);
  background: #fff;
}
.au-field__hint {
  font-size: 0.75rem;
  color: rgba(31,31,30,0.45);
  margin-top: 0.15rem;
}

/* ---- Hero ---- */
.acc-hero {
  position: relative;
  padding: 9rem 0 3.5rem;
  background:
    radial-gradient(ellipse 50% 75% at 50% 50%, rgba(201,236,102,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(80,110,255,0.10) 0%, transparent 70%),
    linear-gradient(180deg, #0c1020 0%, var(--gx-darker) 70%);
  color: var(--gx-white);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.acc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(201,236,102,0.06) 1px, transparent 1.5px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px, 60px 60px, 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
}

.acc-hero__inner {
  max-width: 36rem;
  margin: 0 auto;
}
.acc-hero__desc { margin-left: auto; margin-right: auto; }
.acc-hero__eyebrow { color: var(--gx-lime); display: inline-block; margin-bottom: 1rem; }

.acc-hero__title {
  font-family: var(--gx-font-heading);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  color: var(--gx-white);
}
.acc-hero__desc { color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/* ---- Body layout ---- */
.acc-body {
  background: var(--gx-off-white);
  padding: 3rem 0 5rem;
  min-height: 60vh;
}

.acc-layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ---- Sidebar ---- */
.acc-side {
  position: sticky;
  top: 6.5rem;
  background: var(--gx-white);
  border: 1px solid var(--gx-gray-light);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acc-side__user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gx-gray-light);
}

.acc-side__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gx-lime);
}

.acc-side__name {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gx-dark);
}
.acc-side__email {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.55);
}

.acc-side__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-side__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: var(--gx-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(31,31,30,0.7);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.acc-side__link svg { flex-shrink: 0; }
.acc-side__link:hover {
  background: var(--gx-off-white);
  color: var(--gx-dark);
}
.acc-side__link.is-active {
  background: var(--gx-dark);
  color: var(--gx-lime);
}

.acc-side__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 22px;
  background: var(--gx-lime);
  color: var(--gx-dark);
  font-size: 0.7rem;
  font-weight: 700;
}
.acc-side__link.is-active .acc-side__badge {
  background: var(--gx-lime);
  color: var(--gx-dark);
}

.acc-side__signout {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(31,31,30,0.6);
  border-top: 1px solid var(--gx-gray-light);
  padding-top: 1rem;
  transition: color 0.2s;
}
.acc-side__signout:hover { color: var(--gx-dark); }

/* ---- Content ---- */
.acc-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.acc-panel { display: none; }
.acc-panel.is-active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: accFade 0.3s ease;
}
@keyframes accFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.acc-panel__head { margin-bottom: 0.25rem; }
.acc-panel__title {
  font-family: var(--gx-font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--gx-dark);
}
.acc-panel__sub {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(31,31,30,0.55);
}

/* ---- Cards ---- */
.acc-card {
  background: var(--gx-white);
  border: 1px solid var(--gx-gray-light);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.acc-card--danger { border-color: rgba(220, 38, 38, 0.25); }

.acc-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.acc-card__heading {
  font-family: var(--gx-font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--gx-dark);
}

.acc-card__meta {
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.5);
}

.acc-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(31,31,30,0.7);
  line-height: 1.6;
}

/* ---- Tags ---- */
.acc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: var(--gx-off-white);
  color: rgba(31,31,30,0.6);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.acc-tag--lime { background: var(--gx-lime); color: var(--gx-dark); }
.acc-tag--ok   { background: rgba(34, 197, 94, 0.12); color: #15803d; }

/* ---- Profile photo ---- */
.acc-profile-photo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gx-gray-light);
  flex-wrap: wrap;
}

.acc-profile-photo__avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gx-lime);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.acc-profile-photo__name {
  font-family: var(--gx-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--gx-dark);
}
.acc-profile-photo__role {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.875rem;
  color: rgba(31,31,30,0.55);
}
.acc-profile-photo__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ---- Forms (extends auth.css au-field tokens) ---- */
.acc-form { display: flex; flex-direction: column; gap: 1.25rem; }

.acc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.acc-form__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* ---- License row ---- */
.acc-license {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--gx-off-white);
  border-radius: 14px;
  flex-wrap: wrap;
}

.acc-license__chip {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--gx-dark);
  color: var(--gx-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-license__info { flex: 1; }
.acc-license__no {
  font-family: var(--gx-font-mono);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
  color: var(--gx-dark);
  font-size: 0.95rem;
}
.acc-license__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.55);
}

/* ---- Bookings tabs ---- */
.acc-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  background: var(--gx-white);
  border: 1px solid var(--gx-gray-light);
  border-radius: 14px;
  padding: 0.4rem;
  align-self: flex-start;
}
.acc-tabs__btn {
  padding: 0.55rem 1rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(31,31,30,0.6);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s, color 0.18s;
}
.acc-tabs__btn span {
  font-size: 0.7rem;
  background: var(--gx-off-white);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  color: rgba(31,31,30,0.5);
  font-weight: 600;
}
.acc-tabs__btn:hover { color: var(--gx-dark); }
.acc-tabs__btn.is-active {
  background: var(--gx-dark);
  color: var(--gx-lime);
}
.acc-tabs__btn.is-active span {
  background: rgba(255,255,255,0.12);
  color: var(--gx-lime);
}

/* ---- Booking item ---- */
.acc-bookings { display: flex; flex-direction: column; gap: 1rem; }

.acc-booking {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.25rem;
  background: var(--gx-white);
  border: 1px solid var(--gx-gray-light);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acc-booking:hover {
  border-color: var(--gx-dark);
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.acc-booking__img {
  background-size: cover;
  background-position: center;
  border-right: 1px solid var(--gx-gray-light);
  min-height: 11rem;
}

.acc-booking__body {
  padding: 1.25rem 1.5rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.acc-booking__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.acc-booking__car {
  font-family: var(--gx-font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--gx-dark);
}

.acc-booking__when {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gx-dark);
  font-weight: 500;
}
.acc-booking__loc {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(31,31,30,0.55);
}

.acc-booking__foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--gx-gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.acc-booking__price {
  font-family: var(--gx-font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gx-dark);
}

.acc-booking__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.acc-booking--past .acc-booking__img { filter: grayscale(0.4); }

/* ---- Link buttons ---- */
.acc-link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gx-dark);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.acc-link-btn:hover { color: var(--gx-lime-dark); }
.acc-link-btn--muted { color: rgba(31,31,30,0.5); }
.acc-link-btn--muted:hover { color: var(--gx-dark); }
.acc-link-btn--danger { color: #b91c1c; }
.acc-link-btn--danger:hover { color: #7f1d1d; }

/* ---- Payment cards ---- */
.acc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.acc-payment-card {
  background: linear-gradient(135deg, #1a1f2e 0%, var(--gx-dark) 100%);
  color: var(--gx-white);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 9rem;
  position: relative;
  overflow: hidden;
}
.acc-payment-card::before {
  content: '';
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(201,236,102,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.acc-payment-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acc-payment-card__brand {
  font-family: var(--gx-font-heading);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.acc-payment-card__num {
  font-family: var(--gx-font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin: auto 0 0;
  color: rgba(255,255,255,0.95);
}

.acc-payment-card__bot {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.acc-payment-card--default {
  background:
    linear-gradient(135deg, var(--gx-dark) 0%, #0c1020 100%);
  outline: 2px solid var(--gx-lime);
  outline-offset: 2px;
}

.acc-payment-add {
  background: var(--gx-white);
  border: 2px dashed var(--gx-gray-light);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  min-height: 9rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(31,31,30,0.55);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.acc-payment-add:hover {
  border-color: var(--gx-dark);
  color: var(--gx-dark);
  background: var(--gx-off-white);
}

/* ---- Sessions ---- */
.acc-sessions { list-style: none; padding: 0; margin: 0; }
.acc-sessions li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gx-gray-light);
  flex-wrap: wrap;
}
.acc-sessions li:last-child { border-bottom: 0; }
.acc-sessions__device {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gx-dark);
  margin: 0;
}
.acc-sessions__meta {
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.5);
  margin: 0.15rem 0 0;
}

/* ---- Toggles ---- */
.acc-toggles { list-style: none; padding: 0; margin: 0; }
.acc-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gx-gray-light);
}
.acc-toggles li:last-child { border-bottom: 0; }
.acc-toggles__label {
  margin: 0;
  font-weight: 500;
  color: var(--gx-dark);
}
.acc-toggles__hint {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: rgba(31,31,30,0.55);
  max-width: 22rem;
}

.acc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.acc-switch input { opacity: 0; width: 0; height: 0; }
.acc-switch span {
  position: absolute;
  inset: 0;
  background: var(--gx-gray-light);
  border-radius: 100px;
  transition: background 0.2s;
}
.acc-switch span::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gx-white);
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.acc-switch input:checked + span {
  background: var(--gx-dark);
}
.acc-switch input:checked + span::before {
  transform: translateX(18px);
  background: var(--gx-lime);
}

/* ---- Outline button on light surfaces (dark text + dark border) ---- */
.acc-content .gx-btn--outline,
.acc-license .gx-btn--outline {
  color: var(--gx-dark);
  border-color: rgba(31,31,30,0.18);
  background: var(--gx-white);
}
.acc-content .gx-btn--outline .gx-btn__circle,
.acc-license .gx-btn--outline .gx-btn__circle {
  background: var(--gx-dark);
  color: var(--gx-white);
}
.acc-content .gx-btn--outline:hover,
.acc-license .gx-btn--outline:hover {
  background: var(--gx-dark);
  color: var(--gx-lime);
  border-color: var(--gx-dark);
}
.acc-content .gx-btn--outline:hover .gx-btn__circle,
.acc-license .gx-btn--outline:hover .gx-btn__circle {
  background: var(--gx-lime);
  color: var(--gx-dark);
}

/* ---- Danger button ---- */
.acc-btn-danger.gx-btn--outline {
  border-color: rgba(220, 38, 38, 0.4);
  color: #b91c1c;
  align-self: flex-start;
}
.acc-btn-danger.gx-btn--outline:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: var(--gx-white);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .acc-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .acc-side {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .acc-side__user { padding-bottom: 0; border-bottom: 0; }
  .acc-side__nav {
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .acc-side__signout { border-top: 0; padding-top: 0; }
  .acc-side__link { flex: 1 1 auto; }
}

@media (max-width: 768px) {
  .acc-form__grid { grid-template-columns: 1fr; }
  .acc-booking { grid-template-columns: 1fr; }
  .acc-booking__img { min-height: 9rem; border-right: 0; border-bottom: 1px solid var(--gx-gray-light); }
  .acc-booking__body { padding: 1.25rem; }
  .acc-card { padding: 1.25rem; }
}
