/* Account page — new design */
.account-page {
  min-height: 100vh;
  background: var(--bg-dark);
  font-family: 'Outfit', sans-serif;
}

/* Header */
.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.4rem;
  letter-spacing: 0.02em;
}

.account-header-logo .logo-atg {
  color: var(--text);
  margin-right: 0.2rem;
}

.account-header-logo .logo-store {
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.account-header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  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 — larger banner area */
.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 {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.15), transparent);
  pointer-events: 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;
  max-width: 1280px;
  margin: 0 auto;
}

.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;
}

/* Landscape nav bar — horizontal strip below hero */
.account-nav-bar {
  max-width: 1280px;
  margin: 0 auto 0;
  padding: 0 1.25rem 1rem;
}

.account-nav.account-nav-landscape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
}

.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 {
  max-width: 1280px;
  margin: 0 auto;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  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;
}

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

/* 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 */
.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);
}

/* 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;
}

/* Orders table */
.account-orders-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.account-orders-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.account-orders-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.account-orders-empty td {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

/* Support center */
.support-center {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

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

.support-center-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.support-center-title-icon {
  color: var(--text);
  flex-shrink: 0;
}

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

.support-btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent-purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  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-btn-create:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

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

.support-search {
  width: 220px;
  padding: 0.6rem 1rem 0.6rem 2.25rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

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

.support-search:focus {
  outline: none;
  border-color: var(--accent-purple);
}

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

.support-info-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

.support-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.support-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.support-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.support-empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.support-state-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.support-state-closed {
  background: var(--accent-purple);
  color: #fff;
}

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

.support-btn-show {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.support-btn-show:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Support modals */
.support-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.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 */
.support-chat-window {
  max-width: 720px;
  width: 95%;
  background: #2a2a30;
  border-color: rgba(255, 255, 255, 0.06);
}

.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #32323a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.support-chat-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.support-chat-body {
  padding: 1rem;
  background: #2a2a30;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-chat-panel {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  max-height: 480px;
  min-height: 280px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.support-chat-messages {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1a1a1a;
}

.support-chat-line {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-chat-line:last-child {
  margin-bottom: 0;
}

.support-chat-sender {
  font-weight: 600;
  color: #1a1a1a;
}

.support-chat-sender.support-chat-user {
  color: #c45a2a;
}

.support-chat-reply-wrap {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.support-chat-reply-wrap textarea {
  flex: 1;
  min-height: 56px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.support-chat-reply-wrap textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.25);
}

.support-chat-actions {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #32323a;
}

/* 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;
}
