/* Hơ Mông — Account & Community */

.account-main { padding: 32px 0 72px; min-height: 60vh; }

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--purple-950);
  position: relative;
}

.auth-lang {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: padding 0.4s ease;
}

.auth-card--expanded {
  padding-bottom: 28px;
}

.auth-card__logo { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-card__logo img { height: 56px; width: auto; }

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  transition: var(--transition);
}

.auth-tab--active {
  background: linear-gradient(135deg, #ef4444, var(--gold));
  color: var(--white);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 8px;
}

.auth-sub { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; margin-bottom: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form[hidden] { display: none !important; }

.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.2), 0 0 12px rgba(239,68,68,0.1);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 28px;
  margin-top: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 48%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 10px 36px rgba(239, 68, 68, 0.55),
    0 0 28px rgba(251, 191, 36, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.35s ease;
  cursor: pointer;
}

.auth-submit:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow:
    0 14px 44px rgba(239, 68, 68, 0.65),
    0 0 36px rgba(251, 191, 36, 0.35);
}

.auth-submit:active { transform: translateY(-1px); }

.auth-submit--login {
  animation: auth-btn-pulse 2.8s ease-in-out infinite;
}

@keyframes auth-btn-pulse {
  0%, 100% {
    box-shadow:
      0 10px 36px rgba(239, 68, 68, 0.55),
      0 0 28px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow:
      0 12px 42px rgba(239, 68, 68, 0.7),
      0 0 40px rgba(251, 191, 36, 0.4);
  }
}

.auth-submit--secondary {
  font-size: 0.9375rem;
  padding: 14px 24px;
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: none;
  animation: none;
}

.auth-submit--secondary:hover {
  background: linear-gradient(135deg, rgba(239,68,68,0.9), rgba(245,158,11,0.85));
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.auth-social { display: flex; flex-direction: column; gap: 10px; }

/* Google Sign-In — official material button style */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #747775;
  border-radius: 4px;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.25px;
  color: #1f1f1f;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-font-smoothing: antialiased;
}

.auth-google-btn:hover {
  background: #f8faff;
  border-color: #747775;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.auth-google-btn:active {
  background: #f1f3f4;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.auth-google-btn:focus-visible {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.35);
}

.auth-google-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-google-btn__icon svg { display: block; width: 18px; height: 18px; }

.auth-google-btn__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.auth-social__btn:hover { transform: translateY(-2px); }

.auth-social__btn--fb { background: #1877f2; color: var(--white); }
.auth-social__btn--gg { background: var(--white); color: var(--gray-900); }
.auth-social__btn--otp { background: rgba(251,191,36,0.15); color: var(--gold-light); border: 1px solid rgba(251,191,36,0.35); }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

.auth-switch a { color: var(--gold-light); font-weight: 600; }

.auth-back:hover { color: var(--gold-light); }

.auth-show-accounts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.06);
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.auth-show-accounts:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.65);
  color: var(--white);
}

.auth-show-accounts__chevron {
  font-size: 0.75rem;
  transition: transform 0.35s ease;
}

.auth-show-accounts.is-open .auth-show-accounts__chevron { transform: rotate(180deg); }

.auth-accounts-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}

.auth-accounts-panel.is-open {
  max-height: 280px;
  opacity: 1;
  margin-top: 12px;
  padding-top: 4px;
}

.auth-accounts-panel[hidden] { display: block !important; }

.auth-accounts__title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}

.auth-accounts__list { display: flex; flex-direction: column; gap: 8px; }

.auth-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.auth-account-item:hover {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(91, 33, 182, 0.2);
  transform: translateX(4px);
}

.auth-account-item--selected {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(91, 33, 182, 0.28);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

.auth-account-item__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--white);
  flex-shrink: 0;
}

.auth-account-item__avatar--admin { background: linear-gradient(135deg, #ef4444, var(--gold)); }
.auth-account-item__avatar--customer { background: linear-gradient(135deg, var(--purple-800), var(--gold)); }

.auth-account-item__body { flex: 1; min-width: 0; }
.auth-account-item__name { font-weight: 700; font-size: 0.875rem; color: var(--white); }
.auth-account-item__creds {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  font-family: ui-monospace, monospace;
}

.auth-account-item__badge {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.auth-account-item__badge--admin {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.auth-account-item__badge--customer {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.auth-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: rgba(255,255,255,0.45);
  font-size: 0.875rem;
}

.auth-back:hover { color: var(--gold-light); }

/* Account layout */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.account-nav {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 12px;
  position: sticky;
  top: 96px;
}

.account-nav__user {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}

.account-nav__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 10px;
}

.account-nav__name { font-weight: 700; color: var(--white); font-size: 0.9375rem; }

.account-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: left;
  transition: var(--transition);
}

.account-nav__btn:hover { background: rgba(251,191,36,0.1); color: var(--gold-light); }
.account-nav__btn--active { background: rgba(251,191,36,0.15); color: var(--gold-light); }

.account-nav__btn--logout {
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  color: rgba(239,68,68,0.75);
}

.account-nav__btn--logout:hover {
  background: rgba(239,68,68,0.12);
  color: #f87171;
}

.account-panel { animation: step-in 0.35s ease; }
.account-panel[hidden] { display: none !important; }

.account-panel__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 24px;
}

/* Order cards */
.order-list { display: flex; flex-direction: column; gap: 16px; }

.order-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.3s, transform 0.3s;
}

.order-card:hover { border-color: rgba(251,191,36,0.3); transform: translateY(-2px); }

.order-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.order-card__id { font-weight: 700; color: var(--white); font-size: 0.9375rem; }
.order-card__date { font-size: 0.8125rem; color: rgba(255,255,255,0.45); }

.status-badge {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge--pending { background: rgba(251,191,36,0.2); color: var(--gold-light); border: 1px solid rgba(251,191,36,0.4); }
.status-badge--shipping { background: rgba(59,130,246,0.2); color: #93c5fd; border: 1px solid rgba(59,130,246,0.4); }
.status-badge--delivered { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(239,68,68,0.35); }

.order-card__items {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.order-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0,0,0,0.2);
}

.order-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.order-card__total {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gold-light);
}

.order-card__btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(251,191,36,0.4);
  border-radius: 999px;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.8125rem;
  transition: var(--transition);
}

.order-card__btn:hover { background: rgba(251,191,36,0.12); }

/* Order detail */
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}

.order-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.order-info-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.order-info-card p { color: var(--white); font-size: 0.9375rem; line-height: 1.6; }

.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-row img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.order-item-row__name { flex: 1; font-weight: 600; color: var(--white); font-size: 0.9375rem; }
.order-item-row__qty { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.order-item-row__price { font-weight: 700; color: var(--gold-light); }

.order-pricing { position: sticky; top: 96px; }

.pricing-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.pricing-row--discount { color: #ef4444; font-weight: 700; }
.pricing-row--discount span:last-child { color: var(--gold-light); }

.pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid rgba(251,191,36,0.25);
}

.pricing-total__label { font-weight: 700; color: var(--white); }
.pricing-total__val {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Profile & addresses */
.profile-form, .addr-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.addr-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.addr-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color 0.3s;
}

.addr-card--default { border-color: rgba(251,191,36,0.45); }

.addr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.addr-card__label { font-weight: 700; color: var(--gold-light); font-size: 0.875rem; }

.addr-card__default {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ef4444, var(--gold));
  color: var(--white);
  border-radius: 999px;
}

.addr-card__text { font-size: 0.875rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 12px; }

.addr-card__actions { display: flex; gap: 12px; }

.addr-card__actions button {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.addr-card__actions button:hover { color: var(--gold-light); }

/* Community */
.community-layout { max-width: 680px; margin: 0 auto; }

.group-banner {
  height: 160px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #4c1d95, #ef4444, var(--gold));
  background-size: cover;
  background-position: center;
  position: relative;
}

.group-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26,5,51,0.9));
  border-radius: inherit;
}

.group-header {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0 20px 20px;
  margin-bottom: 20px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.group-header__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold-light);
  padding-top: 48px;
}

.group-header__meta { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.composer:hover { border-color: rgba(251,191,36,0.35); }

.composer__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.composer__input {
  flex: 1;
  color: rgba(255,255,255,0.45);
  font-size: 0.9375rem;
}

.composer__media { color: var(--gold-light); font-size: 1.25rem; }

/* Post card */
.post-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.post-card:hover { border-color: rgba(255,255,255,0.15); }

.post-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 0;
}

.post-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-800), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 0.875rem;
}

.post-card__meta { flex: 1; }
.post-card__author { font-weight: 700; color: var(--white); font-size: 0.9375rem; }
.post-card__time { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.post-card__text {
  padding: 12px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.post-card__media {
  display: grid;
  gap: 2px;
}

.post-card__media--1 { grid-template-columns: 1fr; }
.post-card__media--2 { grid-template-columns: 1fr 1fr; }

.post-card__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
}

.post-card__actions {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4px;
}

.post-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.post-action:hover { background: rgba(255,255,255,0.05); color: var(--gold-light); }

.post-action--liked { color: #ef4444; }
.post-action--liked i { animation: heart-pop 0.4s ease; }

@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open { visibility: visible; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.is-open .modal__backdrop { opacity: 1; }

.modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #1a0533;
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s ease;
}

.modal.is-open .modal__box { transform: scale(1) translateY(0); }

.modal__title {
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 1.25rem;
}

.modal textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9375rem;
  resize: vertical;
  outline: none;
  margin-bottom: 16px;
}

.modal textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251,191,36,0.2); }

.upload-zone {
  border: 2px dashed rgba(251,191,36,0.35);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.upload-zone:hover, .upload-zone--drag { border-color: var(--gold); background: rgba(251,191,36,0.06); }
.upload-zone i { font-size: 2rem; color: var(--gold); margin-bottom: 8px; display: block; }

.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

.modal__actions { display: flex; gap: 12px; justify-content: flex-end; }

.modal__cancel {
  padding: 12px 24px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Post detail */
.post-detail-page { max-width: 680px; margin: 0 auto; padding-bottom: 100px; }

.comment-section {
  background: rgba(255,255,255,0.04);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 16px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.comment-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.comment-item__bubble {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  flex: 1;
}

.comment-item__author { font-weight: 700; font-size: 0.8125rem; color: var(--gold-light); margin-bottom: 2px; }
.comment-item__text { font-size: 0.875rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

.comment-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,5,51,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(251,191,36,0.15);
  padding: 12px 20px;
  z-index: 100;
}

.comment-bar__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.comment-bar__input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: var(--white);
  outline: none;
}

.comment-bar__input:focus { border-color: var(--gold); }

.comment-bar__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, var(--gold));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.empty-state-box {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255,255,255,0.45);
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .account-nav__user { display: none; }
  .account-nav__btn { flex: 1; justify-content: center; min-width: 100px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .order-pricing { position: static; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; }
  .group-banner { height: 120px; }
}
