/* Account page — full-width dark background (match main site) */
body.account-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  background: #05070b !important;
  background-color: #05070b !important;
  overflow-x: hidden;
  box-sizing: border-box;
}
.account-page {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
}

/* Header (PC) */
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(22, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.account-header-logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

.account-header-logo .logo-atg {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 25%, #ede9fe 50%, #e9d5ff 75%, #f5f3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 0.2rem;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.account-header-logo .logo-store {
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 25%, #8b5cf6 50%, #7c3aed 75%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.3)) drop-shadow(0 0 12px rgba(139, 92, 246, 0.12));
}

.account-header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.account-header-back:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero (PC) */
.account-hero {
  position: relative;
  min-height: 320px;
  padding: 3rem 1.5rem 3rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1e1b4b 0%, #0f0f12 35%, #0f0f12 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.95;
}


/* When user uploads a background image, it’s set via inline style; this overlay keeps text readable */
.account-hero-bg::after {
  display: none;
}

/* Edit Image modal — dark theme, preview + zoom + rotate */
.edit-image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.edit-image-overlay[hidden] {
  display: none;
}

.edit-image-modal {
  background: #1e1e24;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.edit-image-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.edit-image-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.edit-image-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.edit-image-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.edit-image-preview-wrap {
  position: relative;
  width: 100%;
  background: #0f0f12;
  overflow: hidden;
}

.edit-image-preview-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-image-preview-circle .edit-image-preview-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform-origin: center center;
}

.edit-image-preview-rect {
  aspect-ratio: 3 / 1;
  max-height: 140px;
}

.edit-image-preview-rect .edit-image-preview-inner {
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform-origin: center center;
}

.edit-image-crop-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.edit-image-controls {
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.edit-image-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 160px;
}

.edit-image-zoom-icon {
  color: var(--text-muted);
  display: flex;
  flex-shrink: 0;
}

.edit-image-zoom-icon-large {
  transform: scale(1.2);
}

.edit-image-zoom-slider {
  flex: 1;
  height: 8px;
  accent-color: var(--accent-purple);
  min-width: 0;
}

.edit-image-position-row {
  flex: 1 1 100%;
}

.edit-image-position-row label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.edit-image-position-sliders {
  display: flex;
  gap: 0.5rem;
}

.edit-image-position-sliders input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: var(--accent-purple);
}

.edit-image-rotate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.edit-image-rotate-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.edit-image-rotate-btn svg {
  flex-shrink: 0;
}

.edit-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.edit-image-reset {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.edit-image-reset:hover {
  color: var(--text);
}

.edit-image-cancel {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.edit-image-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
}

.edit-image-apply {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--accent-purple);
  color: #fff;
}

.edit-image-apply:hover {
  filter: brightness(1.1);
}

.account-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1280px, 100%);
  margin: 0 auto;
  padding-left: clamp(0.75rem, 4vw, 2rem);
  padding-right: clamp(0.75rem, 4vw, 2rem);
  box-sizing: border-box;
}

.account-hero-content {
  text-align: center;
}

.account-hero-email {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
}

.account-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.account-avatar-change {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.account-avatar-change:hover {
  background: var(--accent-pink);
  transform: scale(1.05);
}

.account-avatar-change svg {
  flex-shrink: 0;
}

.account-avatar {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-card) 0%, #252530 100%);
  border: 4px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 1px var(--border), 0 12px 40px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-avatar-letter {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.account-avatar-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
}

.account-avatar-bg[data-empty] {
  display: none;
}

/* When user has a profile photo */
.account-avatar.has-profile-image .account-avatar-letter {
  display: none;
}

.account-avatar.has-profile-image .account-avatar-bg {
  display: block;
}

.account-avatar.has-profile-image {
  background: transparent;
}

.account-display-name {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.account-level-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Nav bar (PC) — horizontal strip with box */
.account-nav-bar {
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto 0;
  padding: 0 clamp(0.75rem, 4vw, 1.5rem) 1.25rem;
  box-sizing: border-box;
}

.account-nav.account-nav-landscape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-height: 56px;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.account-nav-bar + .account-layout {
  padding: 1.5rem 1.25rem 3rem;
}

@media (min-width: 900px) {
  .account-nav-bar + .account-layout {
    padding: 1.5rem 2rem 3rem;
  }
}

.account-layout {
  width: 100%;
  max-width: min(1440px, 100%);
  margin: 0 auto;
  padding-left: clamp(0.75rem, 4vw, 2rem);
  padding-right: clamp(0.75rem, 4vw, 2rem);
  box-sizing: border-box;
  background: #0f0f12;
  min-height: 50vh;
}

/* My Orders panel — moderate width */
#panel-orders.active .account-orders-epic-card {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}

.account-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.account-nav-item.active {
  background: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
}

.account-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.account-nav-icon svg {
  width: 100%;
  height: 100%;
}

.account-nav-item.active .account-nav-icon {
  opacity: 1;
}

/* ═══ Mobile (account page) ═══ */
@media (max-width: 768px) {
  .account-header {
    padding: 0.9rem 1rem;
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .account-header-logo {
    font-size: 1.5rem;
  }
  .account-header-back {
    font-size: 1rem;
    padding: 0.55rem 0.8rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .account-hero {
    min-height: 200px;
    padding: 1.75rem 1rem 2rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .account-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .account-avatar-wrap {
    margin-bottom: 0.75rem;
  }
  .account-avatar {
    width: 80px;
    height: 80px;
  }
  .account-avatar-letter {
    font-size: 1.6rem;
  }
  .account-display-name {
    font-size: 1.3rem;
  }
  .account-level-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .account-hero-email {
    font-size: 0.8rem;
  }
  .account-avatar-change {
    width: 28px;
    height: 28px;
    right: -2px;
    bottom: -2px;
  }
  .account-avatar-change svg {
    width: 12px;
    height: 12px;
  }
  .account-nav-bar {
    width: 100%;
    padding: 0 0 1rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .account-nav.account-nav-landscape {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 0.35rem;
  }
  .account-nav-item {
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    gap: 0.5rem;
    min-height: 44px;
    border-radius: 8px;
  }
  .account-nav-icon {
    width: 18px;
    height: 18px;
  }
  .account-nav-bar + .account-layout {
    padding: 1rem 1rem 2rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  .account-layout {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  .account-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .account-card-title {
    font-size: 1.05rem;
  }
  .account-card-desc {
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
  }
  .account-form-group input {
    padding: 0.75rem 1rem;
    min-height: 48px;
    font-size: 16px;
    border-radius: 8px;
  }
  .account-btn-primary {
    width: 100%;
    padding: 0.85rem 1rem;
    min-height: 48px;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .account-hero {
    min-height: 180px;
    padding: 1.5rem 0.75rem 1.5rem;
  }
  .account-avatar {
    width: 72px;
    height: 72px;
  }
  .account-avatar-letter {
    font-size: 1.4rem;
  }
  .account-display-name {
    font-size: 1.15rem;
  }
  .account-nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  .account-card {
    padding: 1rem;
  }
}

/* Content */
.account-content {
  flex: 1;
  min-width: 0;
}

.account-panel {
  display: none;
  animation: accountPanelIn 0.2s ease;
}

.account-panel.active {
  display: block;
}

@keyframes accountPanelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Cards (PC) */
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.account-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.account-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* Form — two-column landscape */
.account-form {
  max-width: 100%;
}

.account-form-cols .account-form-row {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .account-form-cols .account-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.account-form-cols .account-form-row .account-form-group {
  margin-bottom: 0;
}

.account-form-actions {
  margin-top: 0.5rem;
}

.account-form-group {
  margin-bottom: 1.25rem;
}

.account-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.account-form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-form-group input:hover {
  border-color: #3a3a45;
}

.account-form-group input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.account-form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.account-btn-primary {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.account-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.account-btn-primary:active {
  transform: scale(0.98);
}

/* Empty state */
.account-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.account-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.account-empty p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.account-empty span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══ Favorites — premium zone (account) ═══ */
#panel-favorites .account-card { background: transparent; border: none; padding: 0; }
#panel-favorites .account-card-desc { display: none; }

@keyframes favZoneBorder {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes favCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes favEmptyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
}

@keyframes favCountGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(244, 63, 94, 0.2); }
  50% { box-shadow: 0 0 20px rgba(244, 63, 94, 0.35); }
}

.fav-zone {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(28, 12, 38, 0.85) 0%, rgba(14, 8, 22, 0.95) 50%, rgba(18, 10, 28, 0.9) 100%);
  border: 1px solid rgba(244, 63, 94, 0.15);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.fav-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: favZoneBorder 4s ease-in-out infinite;
}

.fav-hero {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
}

.fav-hero-glow {
  display: none;
}

.fav-hero-inner { position: relative; z-index: 1; }

.fav-hero-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(244, 63, 94, 0.9);
  margin-bottom: 0.4rem;
}

.fav-hero-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #f9a8d4 40%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fav-hero-desc {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

.fav-hero-count {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f9a8d4;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
  animation: favCountGlow 3s ease-in-out infinite;
}

.fav-hero-line {
  position: absolute;
  bottom: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.35), rgba(168, 85, 247, 0.1), transparent 70%);
}

.fav-empty {
  position: relative;
  text-align: center;
  padding: 4rem 1.75rem;
  display: block;
}

.fav-empty-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(244, 63, 94, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 35%);
  pointer-events: none;
}

.fav-empty-inner { position: relative; z-index: 1; }

.fav-empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 2px dashed rgba(244, 63, 94, 0.25);
  border-radius: 50%;
  color: rgba(244, 63, 94, 0.4);
  font-size: 2.5rem;
  animation: favEmptyPulse 2.5s ease-in-out infinite;
}

.fav-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.fav-empty-desc {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.fav-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 14px;
  color: #fbcfe8;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.fav-empty-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.5s ease;
}

.fav-empty-cta:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(168, 85, 247, 0.18));
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
  box-shadow: 0 0 32px rgba(244, 63, 94, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.fav-empty-cta:hover::after { left: 120%; }

.fav-bento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem;
  padding: 1.5rem 1.75rem 1.75rem;
}

.fav-card {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  animation: favCardIn 0.5s ease both;
}

.fav-card:hover {
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(244, 63, 94, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}

.fav-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.fav-card-img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fav-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fav-card:hover .fav-card-img img { transform: scale(1.08); }

.fav-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.fav-card-heart {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  color: #f43f5e;
  font-size: 0.75rem;
  z-index: 2;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
  transition: transform 0.2s ease;
}

.fav-card:hover .fav-card-heart { transform: scale(1.08); }

.fav-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.7) 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.fav-card-cover:hover .fav-card-overlay { opacity: 1; }

.fav-card-overlay i {
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.fav-card-cover:hover .fav-card-overlay i { transform: translateX(3px); }

.fav-card-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
}

.fav-card-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.fav-card-name:hover { color: #f9a8d4; }

.fav-card-remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fav-card-remove:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

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

/* Wallet card */
.account-wallet-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.account-wallet-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.account-wallet-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: -0.02em;
}

/* ——— My Orders — Epic style (matches checkout/finish) ——— */
.account-orders-epic-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 48px rgba(168, 85, 247, 0.06);
  position: relative;
  overflow: hidden;
}
.account-orders-epic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), transparent);
  opacity: 0.8;
}
.account-orders-epic-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.account-orders-epic-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.2) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}
.account-orders-epic-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.account-orders-epic-desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-order-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.account-order-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2), 0 0 24px rgba(168, 85, 247, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.account-order-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), rgba(168, 85, 247, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.account-order-card:hover .account-order-card-glow {
  opacity: 1;
}
.account-order-card-main {
  position: relative;
  padding: 1.15rem 1.25rem;
  z-index: 1;
}
.account-order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
}
/* ——— Omega style: Order number ——— */
.account-order-card-id-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  position: relative;
  padding-left: 0.5rem;
}
.account-order-card-id-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.65) 0%, rgba(168, 85, 247, 0.55) 100%);
  border-radius: 2px;
  opacity: 0.95;
}
.account-order-card-id-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.4);
}
.account-order-card-id {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}
.account-order-card-id-wrap:hover .account-order-card-id {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 2px 16px rgba(6, 182, 212, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.account-order-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.account-order-status-placed {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(139, 92, 246, 0.2) 100%);
  color: #c4b5fd;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.account-order-status-paid {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3) 0%, rgba(22, 163, 74, 0.2) 100%);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.account-order-status-prepared {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(8, 145, 178, 0.2) 100%);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.account-order-status-delivered {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.account-order-status-completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.4) 0%, rgba(22, 163, 74, 0.3) 100%);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}
/* ——— Omega style: Placed (middle of top row) ——— */
.account-order-card-date-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.account-order-card-date-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.7) 0%, rgba(6, 182, 212, 0.5) 100%);
  border-radius: 0 2px 2px 0;
}
.account-order-card-date-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
  padding-left: 0.15rem;
}
.account-order-card-date-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}
/* ——— Omega style: Products ——— */
.account-order-card-items-wrap {
  margin-bottom: 1rem;
  position: relative;
}
.account-order-card-items-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.4rem;
}
.account-order-card-items {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  letter-spacing: 0.02em;
}
.account-order-card-items-wrap:hover .account-order-card-items {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.account-order-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.account-order-card-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.account-order-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #6d28d9 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.account-order-view-btn span { margin-right: 0.15rem; }
.account-order-view-btn svg { flex-shrink: 0; opacity: 0.95; }
.account-order-view-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5), 0 0 20px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.account-order-view-btn:active {
  transform: translateY(0);
}
.account-orders-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.account-orders-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: rgba(168, 85, 247, 0.4);
}
.account-orders-empty-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}
.account-orders-empty p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
#account-orders-empty-state {
  display: block;
}
.account-orders-list:not(:empty) #account-orders-empty-state {
  display: none;
}

.account-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.account-orders-pagination-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.25rem;
}
.account-orders-pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.account-orders-pagination-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}
.account-orders-pagination-btn-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(168, 85, 247, 0.5);
  color: #fff;
}

@media (max-width: 640px) {
  .account-orders-epic-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  .account-orders-epic-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .account-orders-epic-icon {
    width: 42px;
    height: 42px;
  }
  .account-order-card-main {
    padding: 1rem 1.1rem;
  }
  .account-order-card-top {
    flex-wrap: wrap;
  }
  .account-order-card-id {
    font-size: 0.88rem;
    padding: 0.35rem 0.5rem;
  }
  .account-order-card-date-wrap {
    padding: 0.45rem 0.55rem;
  }
  .account-order-card-items {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }
  .account-order-card-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .account-order-view-btn {
    width: 100%;
    justify-content: center;
  }
}

.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.account-modal-overlay[hidden] {
  display: none;
}
.account-modal {
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 15, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 60px rgba(168, 85, 247, 0.08);
}
.account-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
  opacity: 0.9;
}
.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}
.account-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}
.account-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.account-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}
.account-modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text, #fff);
}
/* Order detail modal — epic */
.account-order-detail-status-block {
  margin-bottom: 1.35rem;
}
.account-order-detail-status-block .account-order-status-tracker {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 40px rgba(34, 197, 94, 0.04);
}
.account-order-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  max-width: 72px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.account-order-stage-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.account-order-stage-done .account-order-stage-icon {
  background: linear-gradient(150deg, #a855f7 0%, #8b5cf6 40%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 4px 16px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.account-order-stage-done .account-order-stage-icon:hover {
  transform: scale(1.06);
}
.account-order-stage-done .account-order-stage-icon::after {
  display: none;
}
.account-order-stage-pending .account-order-stage-icon {
  background: rgba(255, 255, 255, 0.04);
  color: transparent;
  box-shadow: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.account-order-stage-pending .account-order-stage-icon::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.account-order-stage-pending .account-order-stage-icon i {
  display: none;
}
.account-order-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
.account-order-stage-pending .account-order-stage-label {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}
.account-order-detail-date,
.account-order-detail-total {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.account-order-detail-items {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.account-order-detail-accounts {
  margin-top: 1.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.account-credentials-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0.8rem 1.1rem;
  background: transparent;
  border: none;
  border-left: 4px solid rgba(6, 182, 212, 0.6);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.2s, border-left-color 0.2s;
}
.account-credentials-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: rgba(6, 182, 212, 0.9);
}
.account-credentials-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.35);
}
.account-credentials-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.account-credentials-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #67e8f9;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: 8px;
  transition: background 0.2s;
}
.account-credentials-toggle:hover .account-credentials-icon {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0.15) 100%);
}
.account-credentials-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.account-credentials-chevron {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.account-credentials-toggle:hover .account-credentials-chevron {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}
.account-credentials-body {
  padding: 0.9rem 1.1rem 1rem;
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 60vh;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}
.account-credentials-body-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-top-color: transparent;
}
.account-order-detail-acc {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-left: 4px solid rgba(34, 197, 94, 0.5);
  transition: border-left-color 0.2s, background 0.2s;
}
.account-order-detail-acc:last-of-type {
  margin-bottom: 0.65rem;
}
.account-order-detail-acc:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-left-color: rgba(34, 197, 94, 0.8);
}
.account-credential-product {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.account-credential-product::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.9);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}
.account-order-detail-acc p {
  margin: 0.4rem 0;
  word-break: break-all;
  padding: 0.45rem 0.7rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  transition: background 0.2s;
}
.account-order-detail-acc p:hover {
  background: rgba(0, 0, 0, 0.3);
}
.account-copy-btn {
  margin-left: 0.45rem;
  padding: 0.25rem 0.55rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.account-copy-btn:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.account-download-order-accounts {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 10px;
  color: #67e8f9;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.2);
}
.account-download-order-accounts:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}
.account-download-order-accounts i {
  font-size: 0.9em;
}

/* Support center – improved menu UI */
.support-center {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.support-center-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.support-center-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.support-center-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.support-center-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.support-center-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.support-center-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.support-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.support-search-wrap .support-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.support-search {
  width: 200px;
  min-width: 160px;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-search::placeholder {
  color: var(--text-muted);
}

.support-search:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.support-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.support-btn-create:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.support-info-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.support-info-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.support-info-box strong {
  color: var(--text);
  margin-right: 0.25rem;
}

/* Ticket list – cards */
.support-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.support-ticket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.support-ticket-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.support-ticket-card-main {
  min-width: 0;
  flex: 1;
}

.support-ticket-code {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.support-ticket-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.support-ticket-category {
  font-weight: 500;
}

.support-ticket-card-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.support-state-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.support-state-closed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.support-state-open {
  background: rgba(34, 197, 94, 0.2);
  color: #a855f7;
}

.support-state-pending {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.support-btn-show {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: var(--accent-purple);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.support-btn-show:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .support-ticket-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .support-ticket-card-side {
    justify-content: space-between;
  }
}

/* Support modals */
.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: support-overlay-in 0.2s ease-out;
}

@keyframes support-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.support-modal-overlay[hidden] {
  display: none;
}

.support-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.support-modal-create {
  background: rgba(38, 38, 45, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  max-width: 480px;
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-modal-create .support-modal-header {
  padding: 1.35rem 1.5rem;
}

.support-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.support-modal-create .support-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.support-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.support-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.support-modal-form,
.support-view-content {
  padding: 1.25rem;
}

.support-modal-create .support-modal-form {
  padding: 1.5rem;
}

.support-form-group {
  margin-bottom: 1rem;
}

.support-modal-create .support-form-group {
  margin-bottom: 1.15rem;
}

.support-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.support-modal-create .support-form-group label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.support-form-group input,
.support-form-group textarea,
.support-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.support-modal-create .support-input {
  background: rgba(28, 28, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
}

.support-form-group textarea,
.support-modal-create .support-input[rows] {
  resize: vertical;
  min-height: 100px;
}

.support-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.support-form-group input:focus,
.support-form-group textarea:focus,
.support-input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.support-modal-create .support-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

/* File upload */
.support-file-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(28, 28, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 1rem;
}

.support-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

.support-file-placeholder {
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
}

.support-file-icon {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.support-modal-actions-send {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.5rem;
  background: transparent;
}

.support-btn-send {
  padding: 0.65rem 1.75rem;
  background: #e85c2a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
}

.support-btn-send:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(232, 92, 42, 0.4);
}

.support-btn-primary {
  padding: 0.5rem 1.25rem;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
}

.support-btn-primary:hover {
  filter: brightness(1.1);
}

.support-btn-secondary {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.support-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Chat-style ticket view – modern bubble UI */
.support-chat-window {
  max-width: 520px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.support-chat-header-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.support-chat-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-chat-status {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-chat-status--open {
  background: rgba(34, 197, 94, 0.2);
  color: #a855f7;
}

.support-chat-status--pending {
  background: rgba(234, 179, 8, 0.25);
  color: #eab308;
}

.support-chat-status--closed {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.support-chat-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.support-chat-panel {
  flex: 1;
  min-height: 240px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0;
  scroll-behavior: smooth;
}

.support-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.support-chat-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Message bubbles */
.support-msg {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.support-msg--user {
  justify-content: flex-end;
}

.support-msg-bubble {
  max-width: 85%;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  word-break: break-word;
}

.support-msg--support .support-msg-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}

.support-msg--user .support-msg-bubble {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
}

.support-msg-sender {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.support-msg--user .support-msg-sender {
  opacity: 0.85;
}

.support-msg-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.support-msg-time {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.35rem;
  opacity: 0.75;
}

.support-chat-reply-wrap {
  display: flex;
  gap: 0.6rem;
  align-items: flex-end;
  flex-shrink: 0;
  padding: 0.25rem 0;
}

.support-chat-reply-wrap textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  padding: 0.65rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-chat-reply-wrap textarea::placeholder {
  color: var(--text-muted);
}

.support-chat-reply-wrap textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.support-chat-send-btn {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.support-chat-send-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.45);
}

.support-chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

.support-chat-actions {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* ========== SupportHub style (matches user screenshot) ========== */
.support-chat-hub {
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #1a1d24;
  flex-shrink: 0;
}

.hub-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0;
  font-family: inherit;
  transition: color 0.2s;
}

.hub-link:hover {
  color: #fff;
}

.hub-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hub-logo-accent {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hub-accent-line {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  flex-shrink: 0;
}

.hub-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.hub-back-link {
  margin: 0 0 0.75rem 0;
}

.hub-link-inline {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.hub-link-inline:hover {
  color: #fff;
}

.hub-ticket-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hub-meta {
  margin: 0 0 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.hub-meta--open {
  color: rgba(34, 197, 94, 0.95);
}

.hub-meta--pending {
  color: rgba(234, 179, 8, 0.95);
}

.hub-meta--closed {
  color: rgba(255, 255, 255, 0.45);
}

.hub-messages {
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hub-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.hub-msg {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.hub-msg--user {
  justify-content: flex-end;
}

.hub-msg-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hub-msg--user .hub-msg-bubble {
  background: rgba(255, 255, 255, 0.08);
}

.hub-msg-head {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.hub-msg-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.95);
}

.hub-compose {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.hub-attach {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.hub-attach:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.hub-compose textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
}

.hub-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hub-compose textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
}

.hub-send {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s;
}

.hub-send:hover {
  background: #2563eb;
  filter: brightness(1.05);
}

.hub-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== Ticket chat – new design ========== */
.ticket-chat {
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ticket-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.ticket-chat-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.ticket-chat-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ticket-chat-header-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ticket-chat-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-chat-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ticket-chat-meta--open {
  color: #4ade80;
}

.ticket-chat-meta--pending {
  color: #facc15;
}

.ticket-chat-meta--closed {
  color: rgba(255, 255, 255, 0.45);
}

.ticket-chat-tickets {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.ticket-chat-tickets:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.ticket-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.ticket-chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.ticket-chat-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
}

.ticket-chat-msg {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.ticket-chat-msg--user {
  justify-content: flex-end;
}

.ticket-chat-bubble {
  max-width: 80%;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  word-break: break-word;
}

.ticket-chat-msg--support .ticket-chat-bubble {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 4px;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ticket-chat-msg--user .ticket-chat-bubble {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-bottom-right-radius: 4px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.ticket-chat-head {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  opacity: 0.9;
}

.ticket-chat-msg--support .ticket-chat-head {
  color: rgba(255, 255, 255, 0.6);
}

.ticket-chat-msg--user .ticket-chat-head {
  color: rgba(255, 255, 255, 0.85);
}

.ticket-chat-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.52;
  white-space: pre-wrap;
  color: inherit;
}

.ticket-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  flex-shrink: 0;
}

.ticket-chat-attach {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ticket-chat-attach:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.ticket-chat-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ticket-chat-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ticket-chat-compose textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ticket-chat-send {
  flex-shrink: 0;
  padding: 0.6rem 1.3rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.ticket-chat-send:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

.ticket-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

/* ========== Support chat – unique UI ========== */
.sc-chat {
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0d0e12 0%, #13151a 40%, #0f1114 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 28px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sc-chat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06b6d4 0%, #0ea5e9 50%, #f59e0b 100%);
  opacity: 0.85;
  z-index: 1;
}

.sc-chat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.sc-chat-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.sc-chat-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sc-chat-title-block {
  flex: 1;
  min-width: 0;
}

.sc-chat-title {
  margin: 0 0 0.15rem 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-chat-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sc-chat-meta--open {
  color: #2dd4bf;
}

.sc-chat-meta--pending {
  color: #fbbf24;
}

.sc-chat-meta--closed {
  color: rgba(255, 255, 255, 0.4);
}

.sc-chat-status-pill {
  flex-shrink: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sc-chat-status-pill--open {
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
}

.sc-chat-status-pill--pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.sc-chat-status-pill--closed {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.sc-chat-my {
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
}

.sc-chat-my:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.sc-chat-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
}

.sc-chat-thread {
  flex: 1;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-behavior: smooth;
}

.sc-chat-empty {
  margin: 0;
  padding: 2.5rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.sc-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: 100%;
}

.sc-msg--support {
  flex-direction: row;
}

.sc-msg--user {
  flex-direction: row-reverse;
}

.sc-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sc-avatar--support {
  background: linear-gradient(145deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.35);
}

.sc-avatar--user {
  background: linear-gradient(145deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.sc-bubble {
  max-width: 78%;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  word-break: break-word;
}

.sc-msg--support .sc-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-bottom-left-radius: 4px;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.sc-msg--user .sc-bubble {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
  border: none;
  border-bottom-right-radius: 4px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.sc-bubble-head {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  opacity: 0.92;
}

.sc-msg--support .sc-bubble-head {
  color: rgba(6, 182, 212, 0.95);
}

.sc-msg--user .sc-bubble-head {
  color: rgba(255, 255, 255, 0.9);
}

.sc-bubble-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: inherit;
}

.sc-chat-compose {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  flex-shrink: 0;
}

.sc-chat-attach {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.sc-chat-attach:hover {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
}

.sc-chat-compose textarea {
  flex: 1;
  min-height: 42px;
  max-height: 96px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sc-chat-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.sc-chat-compose textarea:focus {
  outline: none;
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.sc-chat-send {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.sc-chat-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

.sc-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ========== Unique Chat Design – glass, avatars, thread ========== */
.support-chat-unique {
  position: relative;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.25), transparent 50%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(236, 72, 153, 0.12), transparent 45%),
    linear-gradient(180deg, #0f0f14 0%, #0a0a0e 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(99, 102, 241, 0.08);
  overflow: hidden;
}

.chat-unique-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-unique-close {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.chat-unique-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.02);
}

.chat-unique-header-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chat-unique-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-unique-title-wrap {
  min-width: 0;
}

.chat-unique-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-unique-meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.chat-unique-meta--open {
  color: #4ade80;
}

.chat-unique-meta--pending {
  color: #facc15;
}

.chat-unique-meta--closed {
  color: rgba(255, 255, 255, 0.45);
}

.chat-unique-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  gap: 1.25rem;
}

.chat-unique-messages {
  flex: 1;
  min-height: 200px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.chat-unique-empty {
  margin: 0;
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

/* Message rows with avatar */
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: 100%;
}

.chat-row--support {
  flex-direction: row;
}

.chat-row--user {
  flex-direction: row-reverse;
}

.chat-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chat-avatar--support {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.chat-avatar--user {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.chat-card {
  max-width: 78%;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
}

.chat-row--support .chat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.chat-row--support .chat-card::before {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 12px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-color: rgba(255, 255, 255, 0.06);
  border-left: 0;
  border-bottom: 0;
}

.chat-row--user .chat-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.9) 0%, rgba(244, 63, 94, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}

.chat-row--user .chat-card::before {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 12px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-left-color: rgba(236, 72, 153, 0.9);
  border-right: 0;
  border-bottom: 0;
}

.chat-card-sender {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  opacity: 0.95;
}

.chat-row--support .chat-card-sender {
  color: rgba(167, 139, 250, 0.95);
}

.chat-row--user .chat-card-sender {
  color: rgba(255, 255, 255, 0.9);
}

.chat-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.95);
}

.chat-card-time {
  display: block;
  font-size: 0.68rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* Compose – pill style */
.chat-unique-compose {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  flex-shrink: 0;
}

.chat-unique-attach {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.chat-unique-attach:hover {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
}

.chat-unique-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  line-height: 1.4;
}

.chat-unique-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.chat-unique-compose textarea:focus {
  outline: none;
}

.chat-unique-send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.chat-unique-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.chat-unique-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-unique-footer {
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.chat-unique-done {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.chat-unique-done:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ========== Chat V2 – coral & teal palette, refined ========== */
.support-chat-v2 {
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(175deg, #1a1f2e 0%, #121620 50%, #0d1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}

.support-chat-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #14b8a6 100%);
  opacity: 0.9;
  z-index: 1;
}

.support-chat-v2-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.support-chat-v2-back {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.support-chat-v2-back:hover {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
}

.support-chat-v2-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.support-chat-v2-meta {
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.support-chat-v2-meta--open {
  color: #a855f7;
}

.support-chat-v2-meta--pending {
  color: #fbbf24;
}

.support-chat-v2-meta--closed {
  color: rgba(255, 255, 255, 0.45);
}

.support-chat-v2-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 1.1rem 1rem;
}

.support-chat-v2-messages {
  flex: 1;
  min-height: 220px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  scroll-behavior: smooth;
}

.support-chat-v2-messages .support-msg {
  align-items: flex-start;
}

.support-chat-v2-messages .support-msg--user {
  align-items: flex-end;
}

.support-chat-v2-messages .support-msg-bubble {
  max-width: 82%;
  padding: 0.85rem 1.2rem;
  border-radius: 18px;
  position: relative;
}

/* Support = soft teal/slate bubble */
.support-chat-v2-messages .support-msg--support .support-msg-bubble {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-top-left-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* User = coral/orange bubble */
.support-chat-v2-messages .support-msg--user .support-msg-bubble {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-top-right-radius: 6px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.support-chat-v2-messages .support-msg-sender {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.92;
  margin-bottom: 0.35rem;
}

.support-chat-v2-messages .support-msg--support .support-msg-sender {
  color: rgba(20, 184, 166, 0.95);
}

.support-chat-v2-messages .support-msg-text {
  font-size: 0.93rem;
  line-height: 1.55;
}

.support-chat-v2-messages .support-msg-time {
  font-size: 0.68rem;
  margin-top: 0.45rem;
  opacity: 0.75;
}

.support-chat-v2-messages .support-chat-empty {
  color: rgba(255, 255, 255, 0.45);
  padding: 2.5rem 1rem;
}

.support-chat-v2-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.35) 100%);
  border-radius: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.support-chat-v2-attach {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.support-chat-v2-attach:hover {
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.15);
}

.support-chat-v2-attach-input {
  display: none;
}

.support-chat-v2-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 100px;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-chat-v2-compose textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.support-chat-v2-compose textarea:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.support-chat-v2-send {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
}

.support-chat-v2-send:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
}

.support-chat-v2-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.support-chat-v2-footer {
  padding: 0.8rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.support-chat-v2-done {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.support-chat-v2-done:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Wallet grid + info */
.account-wallet-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .account-wallet-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.account-wallet-info {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.account-wallet-info-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}

.account-wallet-info ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.account-wallet-info li {
  margin-bottom: 0.35rem;
}

.account-activity-section {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.account-subsection-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.account-placeholder-inline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Support info grid */
.account-info-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .account-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .account-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.account-info-block {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.account-info-block-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.account-info-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Settings list */
.account-settings-list {
  margin-top: 1rem;
}

.account-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.account-settings-item:last-child {
  border-bottom: none;
}

.account-settings-item div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.account-settings-item strong {
  font-size: 0.95rem;
  color: var(--text);
}

.account-settings-item span:not(.account-settings-badge) {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.account-settings-badge {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
