/* ============================================================
   Account Page — custom styles
   ============================================================ */

/* ── Page title / breadcrumb ──────────────────────────────── */
.tf-page-title {
  background: linear-gradient(135deg, var(--bg-6) 0%, #1a5c3f 100%);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.tf-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(245, 91, 36, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.tf-page-title .heading {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.tf-page-title .breadcrumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.tf-page-title .breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.tf-page-title .breadcrumbs a:hover {
  color: var(--primary);
}

.tf-page-title .breadcrumbs .icon {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Account layout ───────────────────────────────────────── */
.account-page-section {
  padding: 56px 0 72px;
  background: var(--bg);
}

/* ── Sidebar profile card ─────────────────────────────────── */
.account-sidebar {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 100px;
}

.account-sidebar__hero {
  background: linear-gradient(160deg, #0a2e1e 0%, var(--bg-6) 60%, #1a6040 100%);
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.account-sidebar__hero::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60px;
  background: #fff;
  border-radius: 50%;
}

.account-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.account-avatar .icon {
  font-size: 38px;
  color: #fff;
}

.account-sidebar__name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.account-sidebar__status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.account-sidebar__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── Sidebar nav ──────────────────────────────────────────── */
.account-sidebar__nav {
  padding: 36px 16px 20px;
  list-style: none;
  margin: 0;
}

.account-sidebar__nav li + li {
  margin-top: 2px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.account-nav-link .icon {
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.18s;
}

.account-nav-link:hover {
  background: var(--bg);
  color: var(--text);
}

.account-nav-link.active {
  background: rgba(245, 91, 36, 0.08);
  color: var(--primary);
  font-weight: 600;
}

.account-nav-link.active .icon {
  color: var(--primary);
}

.account-nav-link--danger:hover {
  background: rgba(240, 62, 62, 0.06);
  color: #f03e3e;
}

.account-nav-link--danger:hover .icon {
  color: #f03e3e;
}

.account-sidebar__divider {
  height: 1px;
  background: var(--line);
  margin: 8px 16px;
}

/* ── Main content cards ───────────────────────────────────── */
.account-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.account-card:last-child {
  margin-bottom: 0;
}

.account-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.account-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-card__title .icon {
  font-size: 20px;
  color: var(--primary);
}

/* ── Info fields ──────────────────────────────────────────── */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 576px) {
  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

.account-info-field {
  background: var(--bg);
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid transparent;
}

.account-info-field:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
  border-color: var(--line);
}

.account-info-field__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-info-field__label .icon {
  font-size: 13px;
}

.account-info-field__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.account-info-field__value[data-customer-account-status] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Status badge ─────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(61, 171, 37, 0.1);
  color: var(--success);
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Actions card ─────────────────────────────────────────── */
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-actions .tf-btn {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Welcome banner ───────────────────────────────────────── */
.account-welcome {
  background: linear-gradient(135deg, var(--bg-6) 0%, #1c6040 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.account-welcome::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(245, 91, 36, 0.12);
  pointer-events: none;
}

.account-welcome__text h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.account-welcome__text p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  margin: 0;
}

.account-welcome__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-welcome__icon .icon {
  font-size: 28px;
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .account-card {
    padding: 24px 20px;
  }

  .account-welcome {
    padding: 24px 20px;
  }

  .account-welcome__icon {
    display: none;
  }

  .tf-page-title {
    padding: 36px 0 28px;
  }

  .tf-page-title .heading {
    font-size: 24px;
  }
}
