/* Account hub — sticky sidebar + tab panels (Sky Paw) */

.account-hub {
  position: relative;
  z-index: 0;
  padding: 1.25rem 0 2.5rem;
  min-height: calc(100vh - var(--nav-h) - 4rem);
  /* Soft solid mist — pairs with frosted white shell cards */
  background: #e6eef6;
  isolation: isolate;
}

/* Atmosphere graphic removed — solid base only */
.account-hub-bg {
  display: none;
}

.account-hub > .container {
  position: relative;
  z-index: 1;
}

/* Frosted unified shell — header + nav + body live in one card */
.account-shell-card {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h) - 4.5rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 54, 66, 0.08);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(15, 40, 72, 0.04),
    0 16px 40px rgba(15, 40, 72, 0.07);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/*
  No nested cards — flatten inner surfaces to borders/dividers only
  so the shell reads as one continuous panel.
*/
.account-hub .account-card,
.account-hub .account-feed-card,
.account-hub .account-feed-card.post,
.account-hub .account-feed-card.comm-card,
.account-hub .account-feed-card.feed-card,
.account-hub .post.feed-card,
.account-hub .post.comm-card,
.account-hub .compose-v2.comm-card,
.account-hub .compose-v2,
.account-hub .account-stat,
.account-hub .account-wish,
.account-hub .account-wish-card,
.account-hub .account-perk,
.account-hub .account-gate,
.account-hub .account-login-card,
.account-hub .track-lookup,
.account-hub .track-panel,
.account-hub .track-empty,
.account-hub .account-hero,
.account-hub .account-membership-hero,
.account-hub .account-shortcut,
.account-hub .account-order,
.account-hub .account-post,
.account-hub .account-skel .post,
.account-hub .account-skel .comm-card,
.account-hub .account-skel.account-card,
.account-hub .account-skel-card {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.account-hub .account-card,
.account-hub .account-feed-card,
.account-hub .account-feed-card.post,
.account-hub .account-feed-card.comm-card,
.account-hub .post.feed-card,
.account-hub .compose-v2.comm-card,
.account-hub .compose-v2,
.account-hub .account-gate,
.account-hub .account-login-card,
.account-hub .track-lookup,
.account-hub .track-panel,
.account-hub .track-empty,
.account-hub .account-hero,
.account-hub .account-membership-hero,
.account-hub .account-skel-card {
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 14px;
}

.account-hub .account-stat,
.account-hub .account-wish,
.account-hub .account-wish-card,
.account-hub .account-perk,
.account-hub .account-shortcut {
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 12px;
  background: transparent !important;
}

.account-hub .account-stat:hover,
.account-hub .account-shortcut:hover,
.account-hub .account-login-card:hover,
.account-hub .post.feed-card:hover {
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.04) !important;
  box-shadow: none !important;
  transform: none;
}

.account-hub .account-order,
.account-hub .account-post {
  border: 0;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.account-hub .account-order:last-child,
.account-hub .account-post:last-child {
  border-bottom: 0;
}

.account-hub .account-order:hover {
  box-shadow: none !important;
}

.account-hub .account-card + .account-card,
.account-hub .account-feed-card + .account-feed-card,
.account-hub .account-compose + .account-feed {
  margin-top: 0.85rem;
}

.account-shell {
  /* legacy alias — layout lives on .account-shell-card */
  display: contents;
}

/* —— Sidebar —— */
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 2;
  border-right: 1px solid rgba(42, 54, 66, 0.08);
  background: transparent;
  min-height: 100%;
}

.account-nav-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.account-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 1rem 1rem;
  background: transparent;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
}

.account-nav-user .avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.25);
}

.account-nav-user strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.2;
}

.account-nav-user small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0.45rem;
  gap: 0.2rem;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-nav-link img {
  width: 18px;
  height: 18px;
  opacity: 0.72;
  flex-shrink: 0;
}

.account-nav-link:hover {
  background: rgba(24, 119, 242, 0.08);
  color: var(--teal-deep);
}

.account-nav-link.is-active {
  background: rgba(24, 119, 242, 0.14);
  color: var(--teal-deep);
  box-shadow: inset 3px 0 0 var(--teal);
}

.account-nav-link.is-active img {
  opacity: 1;
}

.account-nav-link .badge-count {
  margin-left: auto;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.15);
  color: var(--teal-deep);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

/* —— Panels —— */
.account-panels {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  min-height: 100%;
}

.account-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.45rem;
  animation: accountFadeIn 0.28s ease;
  min-height: 100%;
}

.account-panel.is-active {
  display: flex;
}

@keyframes accountFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.05rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
}

.account-panel-head h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 0.25rem;
}

.account-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.account-panel-title-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  opacity: 0.88;
}

.account-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 1.25em;
}

.account-panel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.account-card {
  background: transparent;
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 14px;
  box-shadow: none;
  padding: 1.15rem 1.2rem;
}

.account-card + .account-card {
  margin-top: 0.85rem;
}

.account-card-title-wrap {
  margin: 0 0 0.85rem;
}

.account-card-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #1a334d;
  margin: 0;
  line-height: 1.2;
}

.account-card-title img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.88;
}

.account-card-title-wrap .account-profile-hint {
  margin-top: 0.35rem;
}

/* Profile */
.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.2rem;
  background: transparent;
  border-radius: 14px;
  border: 1px solid rgba(42, 54, 66, 0.1);
  margin-bottom: 0.85rem;
}

.account-hero .avatar {
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
}

.account-hero-meta h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.2rem;
}

.account-hero-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.account-stat {
  background: transparent;
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 12px;
  padding: 0.75rem 0.65rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-stat:hover {
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.04);
}

.account-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--teal-deep);
  line-height: 1.1;
}

.account-stat span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 650;
}

.account-pets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-pet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 650;
}

.account-pet-emoji {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.account-connected {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.12);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Orders */
.account-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 640px;
  width: 100%;
}

.account-order-card {
  border: 1px solid rgba(90, 120, 150, 0.14);
  border-radius: 14px;
  background: #f7fafc;
  overflow: hidden;
  box-shadow: none;
}

.account-order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid rgba(90, 120, 150, 0.1);
  background: linear-gradient(180deg, rgba(232, 241, 248, 0.7), rgba(247, 250, 252, 0.4));
}

.account-order-card-titles {
  min-width: 0;
  flex: 1;
}

.account-order-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.account-order-id {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #1e3348;
  margin: 0;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: #6a7d90;
  margin: 0.3rem 0 0;
}

.account-order-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.account-order-meta-item img {
  opacity: 0.65;
  flex-shrink: 0;
}

.account-status,
.account-pay-badge,
.account-kind-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.25;
  border: 1px solid transparent;
}

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

.account-kind-badge img {
  opacity: 0.75;
}

.account-status.is-pending {
  background: rgba(196, 150, 72, 0.14);
  border-color: rgba(196, 150, 72, 0.22);
  color: #8a6418;
}

.account-status.is-ordered {
  background: rgba(80, 130, 180, 0.12);
  border-color: rgba(80, 130, 180, 0.2);
  color: #3a6a92;
}

.account-status.is-progress,
.account-status.is-packed {
  background: rgba(70, 145, 165, 0.12);
  border-color: rgba(70, 145, 165, 0.2);
  color: #2f6f82;
}

.account-status.is-delivered {
  background: rgba(75, 145, 115, 0.14);
  border-color: rgba(75, 145, 115, 0.22);
  color: #2a6b50;
}

.account-status.is-cancelled {
  background: rgba(170, 110, 110, 0.12);
  border-color: rgba(170, 110, 110, 0.2);
  color: #8a4545;
}

.account-pay-badge.is-paid {
  background: rgba(75, 145, 115, 0.12);
  border-color: rgba(75, 145, 115, 0.2);
  color: #2a6b50;
}

.account-pay-badge.is-partial {
  background: rgba(196, 150, 72, 0.12);
  border-color: rgba(196, 150, 72, 0.2);
  color: #8a6418;
}

.account-pay-badge.is-pay-pending,
.account-pay-badge.is-unpaid {
  background: rgba(140, 120, 140, 0.1);
  border-color: rgba(140, 120, 140, 0.16);
  color: #6a5a6e;
}

.account-kind-badge {
  background: rgba(110, 135, 160, 0.1);
  border-color: rgba(110, 135, 160, 0.16);
  color: #4f6578;
}

.account-kind-badge.is-sale {
  background: rgba(80, 130, 180, 0.1);
  border-color: rgba(80, 130, 180, 0.18);
  color: #3a6a92;
}

.account-btn-track {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(60, 110, 160, 0.28);
  background: rgba(255, 255, 255, 0.85);
  color: #2f5f88;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
}

.account-btn-track img {
  opacity: 0.85;
}

.account-btn-track:hover {
  background: rgba(232, 241, 248, 0.98);
  border-color: rgba(60, 110, 160, 0.42);
}

.account-order-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem 0.9rem;
}

.account-order-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 220px;
  min-width: 0;
}

.account-order-products-empty {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.82rem;
}

.account-order-product {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.account-order-product-media {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(230, 238, 246, 0.95);
  border: 1px solid rgba(90, 120, 150, 0.1);
  flex-shrink: 0;
}

.account-order-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-order-product-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.account-order-product-copy strong {
  font-size: 0.84rem;
  font-weight: 750;
  color: #243447;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-order-product-copy .muted {
  font-size: 0.72rem;
}

.account-order-product-total {
  font-size: 0.82rem;
  font-weight: 750;
  color: #243447;
  white-space: nowrap;
  flex-shrink: 0;
}

.account-order-totals {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 0 0 168px;
  min-width: 148px;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(90, 120, 150, 0.12);
}

.account-order-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: #5a6d7e;
  padding: 0.2rem 0.1rem;
}

.account-order-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 650;
}

.account-order-stat-label img {
  opacity: 0.7;
  flex-shrink: 0;
}

.account-order-stat strong {
  font-weight: 750;
  color: #243447;
  font-variant-numeric: tabular-nums;
}

.account-order-stat.is-paid {
  background: rgba(75, 145, 115, 0.08);
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
}

.account-order-stat.is-savings {
  background: #fff1f1;
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
  color: #c81e1e;
}
.account-order-stat.is-savings strong {
  color: #c81e1e;
}
.account-order-stat.is-savings .account-order-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.account-order-product-copy .offer-regular {
  font-size: 0.7rem;
}
.account-order-offer {
  font-size: 0.68rem;
}

.account-order-stat.is-due {
  background: rgba(196, 150, 72, 0.1);
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
}

.account-order-stat.is-grand {
  margin-top: 0.15rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(90, 120, 150, 0.18);
  font-size: 0.8rem;
  color: #1e3348;
}

.account-order-stat.is-grand strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #143a66;
}

.account-order-stat .is-paid-amt {
  color: #2a6b50;
}

.account-order-stat .is-due-amt {
  color: #8a6418;
}

/* Legacy single-row orders (if any remain) */
.account-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.95rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
  background: transparent;
}

.account-order + .account-order {
  margin-top: 0;
}

.account-order:last-child {
  border-bottom: 0;
}

.account-order-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .account-orders-list {
    max-width: none;
  }

  .account-order-card-head {
    flex-wrap: wrap;
  }

  .account-btn-track {
    margin-left: auto;
  }

  .account-order-totals {
    flex: 1 1 100%;
  }
}

/* Wishlist */
.account-wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-wish,
.account-wish-card {
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.account-wish-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  position: relative;
}

.account-wish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-wish-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #c44;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.account-wish-body {
  padding: 0.75rem 0.85rem 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-wish-body strong {
  font-size: 0.86rem;
  line-height: 1.3;
}

.account-wish-price {
  font-weight: 800;
  color: var(--teal-deep);
  font-size: 0.95rem;
}

.account-wish-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
}

.account-wish-actions .btn {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.76rem;
  border-radius: 10px;
}

/* Posts */
.account-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 54, 66, 0.08);
  background: transparent;
}

.account-post + .account-post {
  margin-top: 0;
}

.account-post:last-child {
  border-bottom: 0;
}

.account-post-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.account-post-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--sky-soft, #eef4ff);
  border: 1px solid var(--line);
}

.account-post strong {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.account-post-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.account-post-aside {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

/* Feed-style My posts */
.account-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 640px;
}

.account-compose {
  max-width: 640px;
  margin-bottom: 0.85rem;
}

.account-compose .compose-v2 {
  margin: 0;
}

.account-feed-card {
  margin: 0;
}

.account-feed-card .account-badge {
  margin: 0;
  line-height: 1.2;
}

.account-feed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.9rem;
  border-top: 1px solid var(--line);
}

.account-feed-hint {
  font-size: 0.78rem;
}

/* Photo · name/feeling · badge/date · edit — one flex row */
.account-hub .post-head.account-feed-head {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.account-feed-identity {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  text-align: left;
}

.account-feed-identity .avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.account-feed-nameplate {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.account-feed-nameplate .post-author {
  font-size: 0.95rem;
  font-weight: 750;
  white-space: nowrap;
}

.account-feed-nameplate .ep-feeling {
  font-size: 0.86rem;
  white-space: nowrap;
}

.account-feed-info {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 0;
}

.account-feed-info .account-badge {
  flex-shrink: 0;
  white-space: nowrap;
}

.account-feed-info .post-time {
  font-size: 0.78rem;
  color: #667788;
  font-weight: 500;
  white-space: nowrap;
}

.account-feed-edit {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.08);
  color: var(--teal-deep, #1877f2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.account-feed-edit:hover {
  background: rgba(24, 119, 242, 0.16);
  transform: translateY(-1px);
}

.account-feed-stats {
  border-top: 1px solid var(--line);
}

.account-feed-pending-note {
  margin: 0;
  padding: 0 1rem 0.85rem;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .account-feed-nameplate .ep-feeling {
    white-space: normal;
  }

  .account-feed-info .post-time {
    display: none;
  }
}

/* Skeleton shimmer — opaque blocks only */
@keyframes epSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.account-hub .account-skel {
  background: transparent;
}

.account-hub .account-skel .post,
.account-hub .account-skel .comm-card,
.account-hub .account-skel.account-card,
.account-hub .account-skel-card {
  background: transparent !important;
  opacity: 1;
  box-shadow: none !important;
}

.account-hub .skeleton-block,
.account-skel .skeleton-block {
  background: linear-gradient(90deg, #e2ebf7 0%, #f0f5fb 45%, #e2ebf7 100%);
  background-size: 200% 100%;
  animation: epSkeleton 1.2s ease-in-out infinite;
  opacity: 1;
}

.account-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 750;
  flex-shrink: 0;
}

.account-badge.pending {
  background: rgba(240, 162, 2, 0.15);
  color: #b87a00;
}

.account-badge.approved {
  background: rgba(24, 119, 242, 0.15);
  color: var(--teal-deep);
}

.account-badge.rejected {
  background: rgba(196, 75, 75, 0.12);
  color: #a33;
}

/* Membership */
.account-membership-hero {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(42, 54, 66, 0.1);
  margin-bottom: 0.85rem;
}

.account-membership-hero .pill {
  margin-bottom: 0.65rem;
}

.account-membership-hero h2 {
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

.account-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.account-perk {
  background: transparent;
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 12px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.account-perk span {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

/* Login */
.account-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.account-login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(42, 54, 66, 0.1);
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.account-login-card:hover {
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.04);
}

.account-login-card img {
  width: 36px;
  height: 36px;
}

.account-login-card strong {
  font-size: 0.92rem;
}

.account-login-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .account-shell-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .account-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(42, 54, 66, 0.08);
    background: transparent;
    position: sticky;
    top: calc(var(--nav-h) + 0.35rem);
    z-index: 6;
  }

  .account-nav-user {
    display: none;
  }

  .account-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .account-nav-list::-webkit-scrollbar {
    display: none;
  }

  .account-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    box-shadow: none;
  }

  .account-nav-link.is-active {
    box-shadow: none;
    background: var(--teal);
    color: #fff;
  }

  .account-nav-link.is-active img {
    filter: brightness(0) invert(1);
  }

  .account-nav-link .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
  }

  .account-nav-link:not(.is-active) .badge-count {
    background: rgba(24, 119, 242, 0.15);
    color: var(--teal-deep);
  }

  .account-panel {
    padding: 1.05rem 1rem 1.25rem;
  }

  .account-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .account-perks {
    grid-template-columns: 1fr;
  }

  .account-wish-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .account-hub {
    padding-top: 0.85rem;
  }

  .account-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .account-stats {
    grid-template-columns: 1fr 1fr;
  }

  .account-stats .account-stat:last-child {
    grid-column: 1 / -1;
  }

  .account-wish-grid {
    grid-template-columns: 1fr;
  }

  .account-login-grid {
    grid-template-columns: 1fr;
  }

  .account-order-actions {
    width: 100%;
  }

  .account-order-actions .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-panel {
    animation: none;
  }
}



.account-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.account-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.account-shortcut {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(42, 54, 66, 0.1);
  background: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.account-shortcut:hover {
  border-color: rgba(24, 119, 242, 0.35);
  background: rgba(24, 119, 242, 0.04);
}

.account-shortcut img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.85;
}

.account-shortcut strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
}

.account-shortcut small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.12rem;
}

.account-gate {
  text-align: center;
  padding: 2rem 1.25rem 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.account-gate-illust {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(24, 119, 242, 0.22);
}

.account-gate-illust img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-gate h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.account-gate .btn {
  margin-top: 1rem;
}

.account-empty {
  text-align: center;
  padding: 2rem 1.25rem;
}

.account-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(187, 212, 252, 0.55), rgba(24, 119, 242, 0.12));
}

.account-empty h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.account-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.account-membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.account-connected.mt-1 {
  margin-top: 0.55rem;
  display: inline-flex;
}

/* —— Overview profile: readable, separated sections —— */
.account-panel-body {
  gap: 1rem;
}

.account-hub .account-hero {
  background: linear-gradient(
    125deg,
    rgba(24, 119, 242, 0.1) 0%,
    rgba(232, 241, 250, 0.95) 48%,
    rgba(245, 249, 252, 0.98) 100%
  ) !important;
  border: 1px solid rgba(24, 119, 242, 0.16) !important;
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  margin-bottom: 0;
  align-items: center;
  gap: 1.1rem;
}

.account-hub .account-hero .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.4rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 6px 18px rgba(24, 119, 242, 0.18);
}

.account-hero-meta h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: #143a66;
  letter-spacing: -0.02em;
}

.account-hero-meta p {
  font-size: 0.9rem;
  color: #5a6f86;
  line-height: 1.45;
}

.account-connected {
  background: rgba(24, 119, 242, 0.14);
  color: #0c63d4;
  border: 1px solid rgba(24, 119, 242, 0.18);
}

.account-profile-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1rem;
}

.account-top-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.account-top-row .account-hero {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}

.account-top-row .account-profile-block--phone {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 900px) {
  .account-top-row {
    flex-direction: row;
    align-items: stretch;
  }

  .account-top-row .account-hero,
  .account-top-row .account-profile-block--phone {
    flex: 1 1 0;
  }
}

.account-hub .account-profile-block,
.account-hub .account-shortcuts-card {
  background: #f7fafc !important;
  border: 1px solid rgba(42, 54, 66, 0.1) !important;
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.25rem;
  box-shadow: none !important;
}

.account-hub .account-profile-block--phone {
  background: #f3f8fc !important;
  border-color: rgba(24, 119, 242, 0.18) !important;
  border-left: 3px solid #1877f2;
}

.account-hub .account-profile-block--addresses {
  background: #f5f8f6 !important;
  border-color: rgba(46, 125, 90, 0.16) !important;
  border-left: 3px solid #3d9b6e;
}

.account-hub .account-shortcuts-card {
  background: #f6f7fb !important;
  border-color: rgba(70, 85, 110, 0.12) !important;
  border-left: 3px solid #6b7c93;
  margin-top: 0;
}

/* Orders / membership / empty panels — same readable surface language */
.account-hub .account-panel-body > .account-card:not(.account-profile-block):not(.account-shortcuts-card) {
  background: #f8fafc !important;
  border: 1px solid rgba(42, 54, 66, 0.1) !important;
  border-radius: 16px;
  padding: 1.15rem 1.2rem;
}

.account-hub .account-membership-hero {
  background: linear-gradient(
    160deg,
    rgba(24, 119, 242, 0.1),
    rgba(245, 249, 252, 0.98)
  ) !important;
  border: 1px solid rgba(24, 119, 242, 0.16) !important;
}

.account-section-head,
.account-profile-block-head {
  margin-bottom: 0.55rem;
}

.account-section-head .account-card-title-wrap,
.account-profile-block-head .account-card-title-wrap {
  margin-bottom: 0;
}

.account-profile-block-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.account-profile-block-head--row .account-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.account-hub .account-card-title {
  margin: 0;
  color: #1a334d;
}

.account-profile-hint {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #6a7d90;
}

.account-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.account-inline-form .account-field {
  flex: 1 1 240px;
  min-width: 0;
}

.account-field {
  display: grid;
  gap: 0.32rem;
}

.account-field-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c7188;
}

.account-hub .account-field .field {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1.5px solid rgba(42, 54, 66, 0.14);
  padding: 0.6rem 0.85rem;
  background: #fff !important;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  resize: vertical;
  box-shadow: 0 1px 0 rgba(15, 40, 72, 0.03);
}

.account-hub .account-field .field:focus {
  outline: none;
  border-color: rgba(24, 119, 242, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.14);
}

.account-hub .account-field select.field {
  cursor: pointer;
}

.account-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.account-field--full {
  grid-column: 1 / -1;
}

.account-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: #2a3642;
  margin-bottom: 0.85rem;
}

.account-address-form {
  margin-top: 0.15rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(42, 54, 66, 0.1);
}

.account-address-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.account-address-list {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-hub .account-address-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(42, 54, 66, 0.1);
  border-radius: 12px;
  background: #fff;
  border-bottom: 1px solid rgba(42, 54, 66, 0.1);
}

.account-hub .account-address-item:last-child {
  border-bottom: 1px solid rgba(42, 54, 66, 0.1);
  padding-bottom: 0.9rem;
}

.account-address-item-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.account-address-item-top strong {
  font-size: 0.95rem;
  color: #1a334f;
}

.account-address-item-main p {
  margin: 0.12rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a4f63;
}

.account-address-item-main .muted {
  color: #6a7d90;
}

.account-address-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
  align-items: center;
}

.account-address-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(42, 54, 66, 0.16);
}

/* Button roles — clear hierarchy */
.account-hub .account-btn-save {
  background: #1877f2;
  color: #fff;
  border: 1px solid #0c63d4;
  font-weight: 750;
  min-height: 42px;
  padding: 0.5rem 1.05rem;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.22);
}

.account-hub .account-btn-save:hover:not(:disabled) {
  background: #0c63d4;
}

.account-hub .account-btn-add {
  background: #fff;
  color: #0c63d4;
  border: 1.5px solid rgba(24, 119, 242, 0.4);
  font-weight: 750;
  min-height: 38px;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
}

.account-hub .account-btn-add:hover {
  background: rgba(24, 119, 242, 0.06);
}

.account-hub .account-btn-edit {
  background: #fff;
  color: #1f5f9e;
  border: 1px solid rgba(31, 95, 158, 0.28);
  font-weight: 700;
  border-radius: 9px;
}

.account-hub .account-btn-quiet {
  background: transparent;
  color: #5c7188;
  border: 1px solid rgba(92, 113, 136, 0.28);
  font-weight: 650;
  border-radius: 9px;
}

.account-hub .account-btn-danger {
  background: #fff;
  color: #b44747;
  border: 1px solid rgba(180, 71, 71, 0.3);
  font-weight: 700;
  border-radius: 9px;
}

.account-hub .account-btn-danger:hover {
  background: rgba(180, 71, 71, 0.06);
}

.account-form-error {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(196, 75, 75, 0.08);
  color: #a33;
  font-size: 0.82rem;
  font-weight: 650;
}

.account-form-ok {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(46, 139, 87, 0.1);
  color: #1f8f5f;
  font-size: 0.82rem;
  font-weight: 650;
}

.account-hub .account-shortcut {
  background: #fff !important;
  border: 1px solid rgba(42, 54, 66, 0.1) !important;
  border-radius: 12px;
  padding: 0.9rem 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.account-hub .account-shortcut:hover {
  border-color: rgba(24, 119, 242, 0.35) !important;
  background: rgba(24, 119, 242, 0.04) !important;
  transform: translateY(-1px);
}

.account-shortcut strong {
  color: #1a334f;
}

.account-shortcut small {
  color: #6a7d90;
}

.account-shortcut-grid {
  gap: 0.7rem;
}

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

  .account-hub .account-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Track embedded in account hub */
.track-page--embedded {
  max-width: none;
  padding: 0;
}

.track-hero--compact {
  padding: 0 0 1rem;
  margin-bottom: 0.5rem;
}

.track-hero--compact h1 {
  display: none;
}

.account-stat {
  text-decoration: none;
  color: inherit;
}

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

@media (max-width: 560px) {
  .account-membership-actions {
    flex-direction: column;
  }
  .account-membership-actions .btn {
    width: 100%;
  }
}