.account-screen{
  min-height:100vh;
  background:#f5f7fb;
}

.account-shell{
  max-width:1024px;
  padding-top:28px;
  padding-bottom:40px;
}

.hidden{
  display:none !important;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.account-home{
  display:grid;
  gap:18px;
}

.account-hero{
  display:flex;
  align-items:center;
  gap:18px;
  padding:22px;
  border:1px solid #e5e7eb;
  border-radius:24px;
  background:#fff;
  box-shadow:0 16px 36px rgba(15,23,42,0.05);
}

.avatar-wrapper{
  position:relative;
  flex-shrink:0;
}

.account-avatar{
  width:104px;
  height:104px;
  border-radius:24px;
  object-fit:cover;
  border:1px solid #dbe2ea;
  background:#f8fafc;
}

.avatar-overlay{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  padding:7px 12px;
  border:none;
  border-radius:999px;
  background:rgba(15,23,42,0.82);
  color:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.account-hero-copy{
  min-width:0;
}

.account-hero-copy h1{
  margin:0;
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  line-height:1.03;
  letter-spacing:-0.05em;
}

.account-status{
  margin-top:10px;
}

.account-banner{
  padding:12px 14px;
  border-radius:16px;
  font-size:14px;
  line-height:1.5;
}

.account-banner.red{
  background:#fee2e2;
  color:#991b1b;
}

.account-banner.yellow{
  background:#fef3c7;
  color:#92400e;
}

.section-launcher-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.section-launcher{
  min-height:74px;
  padding:18px 16px;
  border:1px solid #e5e7eb;
  border-radius:20px;
  background:#fff;
  color:#111827;
  font-size:16px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,0.04);
  transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.section-launcher:hover{
  transform:translateY(-1px);
  border-color:#cbd5e1;
  box-shadow:0 18px 32px rgba(15,23,42,0.06);
}

.section-launcher.is-locked{
  color:#94a3b8;
  background:#f8fafc;
}

.section-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  padding:16px;
}

.section-overlay-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,15,28,0.58);
  backdrop-filter:blur(8px);
}

.section-overlay-panel{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  width:min(920px, 100%);
  max-height:calc(100vh - 32px);
  margin:0 auto;
  border-radius:24px;
  background:#fff;
  border:1px solid #e5e7eb;
  box-shadow:0 28px 80px rgba(15,23,42,0.22);
  overflow:hidden;
}

.section-overlay-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:20px 22px;
  border-bottom:1px solid #eef2f7;
}

.section-overlay-header h2{
  margin:0;
  font-size:22px;
  letter-spacing:-0.03em;
}

.overlay-close-btn{
  width:42px;
  height:42px;
  border:none;
  border-radius:14px;
  background:#f3f4f6;
  color:#111827;
  font-size:24px;
  cursor:pointer;
}

.section-overlay-body{
  flex:1 1 auto;
  overflow-y:auto;
  padding:18px;
}

.overlay-card{
  padding:18px;
  border:1px solid #eef2f7;
  border-radius:20px;
  background:#fff;
}

.profile-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.profile-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "label action"
    "value action";
  align-items:start;
  gap:6px 12px;
  padding:16px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.profile-row > span{
  grid-area:label;
}

.profile-row.profile-row-address{
  grid-column:1 / -1;
}

.profile-row > span{
  color:#6b7280;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.profile-value{
  grid-area:value;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.profile-value span{
  font-size:15px;
  font-weight:600;
  color:#111827;
  word-break:break-word;
}

.profile-subtext{
  color:#6b7280;
  font-size:12px;
}

.profile-address-line{
  font-size:14px;
  line-height:1.55;
}

#displayAddressStatus{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.profile-status-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.profile-status-chip.success{
  background:#dcfce7;
  color:#166534;
}

.profile-status-chip.warning{
  background:#fef3c7;
  color:#b45309;
}

.profile-status-chip.danger{
  background:#fee2e2;
  color:#b91c1c;
}

.profile-status-chip.muted{
  background:#f1f5f9;
  color:#475569;
}

.profile-status-copy{
  color:#64748b;
  font-size:12px;
  font-weight:600;
}

.edit-btn{
  grid-area:action;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fff;
  color:#475569;
  cursor:pointer;
}

.verify-panel{
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.filter-row,
.transaction-filter-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.filter-row{
  margin-bottom:14px;
}

.filter-btn,
.transaction-filter-btn{
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:9px 12px;
  background:#fff;
  color:#4b5563;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.filter-btn.is-active,
.transaction-filter-btn.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.account-listing-grid,
.saved-listings-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.account-listing-card,
.saved-item{
  position:relative;
  display:grid;
  min-width:0;
  overflow:hidden;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,0.05);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}

.account-listing-card:hover,
.saved-item:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 32px rgba(15,23,42,0.08);
}

.listing-thumb-wrap{
  position:relative;
  aspect-ratio:1.22 / 1;
  overflow:hidden;
  background:#f1f5f9;
}

.listing-thumb{
  width:100px;
  height:100px;
  object-fit:cover;
}

.listing-badge-stack,
.listing-tag-stack{
  position:absolute;
  top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.listing-badge-stack{
  left:10px;
}

.listing-tag-stack{
  right:10px;
  align-items:flex-end;
}

.listing-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(15,23,42,0.82);
  color:#fff;
  font-size:11px;
  font-weight:700;
}

.listing-chip.featured{
  background:#1d4ed8;
}

.listing-chip.boosted{
  background:#0f172a;
}

.listing-chip.tag{
  background:#ffffff;
  color:#111827;
  border:1px solid rgba(255,255,255,0.7);
}

.sold-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,0.58);
  color:#fff;
  font-size:15px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.listing-card-body{
  display:grid;
  gap:6px;
  padding:12px 12px 13px;
}

.listing-card-title{
  margin:0;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  color:#111827;
}

.listing-card-price{
  color:#111827;
  font-size:16px;
  font-weight:800;
}

.listing-card-sub{
  color:#64748b;
  font-size:12px;
}

.timer-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.timer-pill,
.meta-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 9px;
  border-radius:999px;
  background:#eef4ff;
  color:#1d4ed8;
  font-size:11px;
  font-weight:700;
}

.timer-pill.boosted{
  background:#f1f5f9;
  color:#0f172a;
}

.meta-pill{
  background:#f8fafc;
  color:#64748b;
}

.saved-seller{
  color:#6b7280;
  font-size:12px;
}

.saved-swipe{
  position:relative;
  overflow:hidden;
  border-radius:16px;
}

.saved-delete{
  position:absolute;
  inset:0;
  left:auto;
  right:0;
  width:80px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  background:#ef4444;
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.saved-item{
  display:grid;
  grid-template-columns:78px minmax(0, 1fr);
  align-items:stretch;
  min-height:78px;
  transform:translateX(0);
  border-radius:16px;
  box-shadow:0 8px 16px rgba(15,23,42,0.05);
}

.saved-item .listing-thumb-wrap{
  aspect-ratio:auto;
  min-height:78px;
}

.saved-item .listing-badge-stack,
.saved-item .listing-tag-stack,
.saved-item .timer-pill-row,
.saved-item .listing-card-sub{
  display:none;
}

.saved-item .listing-card-body{
  align-content:center;
  gap:3px;
  padding:9px 11px;
}

.saved-item .listing-card-title{
  font-size:13px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.saved-item .listing-card-price{
  font-size:13px;
  font-weight:800;
  letter-spacing:-0.02em;
}

.saved-listings-grid{
  grid-template-columns:1fr;
  gap:12px;
}

.saved-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.saved-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  background:#f3f4f6;
  color:#475569;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.saved-card-meta{
  color:#64748b;
  font-size:10px;
  font-weight:600;
}

.saved-item.swiped{
  transform:translateX(-80px);
}

.empty{
  padding:18px 0 6px;
  text-align:center;
  color:#6b7280;
  font-size:14px;
}

.review-summary{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-bottom:16px;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
}

.review-stat{
  padding:12px 14px;
  border:1px solid #eef2f7;
  border-radius:14px;
  background:#f9fafb;
}

.review-stat-label{
  display:block;
  margin-bottom:6px;
  color:#64748b;
  font-size:11px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.review-stat strong{
  color:#111827;
  font-size:15px;
  font-weight:800;
}

.rating-label{
  color:#64748b;
  font-size:13px;
  font-weight:700;
}

.rating-value{
  font-size:28px;
  font-weight:800;
  color:#111827;
  line-height:1;
}

.rating-stars{
  color:#f59e0b;
  font-size:13px;
}

.rating-count{
  color:#64748b;
  font-size:13px;
  font-weight:700;
}

.reviews-list{
  display:grid;
  gap:12px;
}

.review-card{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border:1px solid #eef2f7;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,0.04);
}

.review-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.review-name-rating{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}

.review-name-rating .name{
  font-size:14px;
  font-weight:700;
  color:#111827;
}

.review-name-rating .stars{
  color:#f59e0b;
  font-size:12px;
}

.review-top .time{
  color:#6b7280;
  font-size:12px;
}

.review-text{
  color:#334155;
  font-size:14px;
  line-height:1.6;
}

.transactions-toolbar{
  display:grid;
  gap:12px;
  margin-bottom:14px;
}

.transactions-search{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  color:#111827;
  font-size:14px;
  outline:none;
}

.transactions-list{
  display:grid;
  gap:10px;
}

.transaction-month-group{
  display:grid;
  gap:8px;
}

.transaction-month-title{
  color:#6b7280;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.transaction-item{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  min-height:64px;
  padding:10px 14px;
  border:1px solid #e7ecf3;
  border-radius:18px;
  background:#fff;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,0.045);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.transaction-item:hover{
  transform:translateY(-1px);
  border-color:#d5deea;
  box-shadow:0 16px 28px rgba(15,23,42,0.075);
}

.transaction-preview-main{
  min-width:0;
  display:grid;
  gap:6px;
}

.transaction-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.transaction-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.transaction-meta-separator{
  width:4px;
  height:4px;
  border-radius:999px;
  background:#cbd5e1;
}

.transaction-preview-side{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  white-space:nowrap;
}

.transaction-title{
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  color:#111827;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.transaction-date,
.transaction-time{
  color:#6b7280;
  font-size:12px;
  line-height:1.2;
}

.transaction-amount{
  font-size:15px;
  font-weight:800;
  color:#111827;
  letter-spacing:-0.03em;
}

.transaction-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:0 9px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  flex-shrink:0;
}

.transaction-status.status-success{
  background:#dcfce7;
  color:#166534;
}

.transaction-status.status-pending{
  background:#fef3c7;
  color:#b45309;
}

.transaction-status.status-failed{
  background:#fee2e2;
  color:#dc2626;
}

.empty-state-card{
  padding:20px;
  border:1px dashed #d1d5db;
  border-radius:16px;
  background:#fafafa;
  color:#475569;
}

.settings-stack{
  display:grid;
  gap:12px;
}

.setting-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fafbfc;
}

.settings-inline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
}

.setting-row > span,
.settings-inline > span{
  font-size:15px;
  font-weight:600;
  color:#111827;
}

.settings-block{
  display:grid;
  align-items:stretch;
}

.settings-links-row{
  justify-content:flex-start;
  flex-wrap:wrap;
}

.settings-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#fff;
  color:#111827;
  font-size:13px;
  font-weight:700;
}

.settings-actions{
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
}

.settings-actions .btn{
  min-width:150px;
}

.switch{
  position:relative;
  display:inline-block;
  width:52px;
  height:30px;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#d1d5db;
  transition:0.2s ease;
}

.slider::before{
  content:"";
  position:absolute;
  left:3px;
  top:3px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 6px 14px rgba(15,23,42,0.12);
  transition:0.2s ease;
}

.switch input:checked + .slider{
  background:#2563eb;
}

.switch input:checked + .slider::before{
  transform:translateX(22px);
}

.password-panel{
  margin-top:14px;
}

.password-box{
  display:grid;
  gap:12px;
}

.password-field{
  position:relative;
}

.password-field input{
  width:100%;
  min-height:48px;
  padding:0 48px 0 14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
  font-size:14px;
  outline:none;
}

.password-eye{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  cursor:pointer;
}

.password-eye img{
  width:18px;
  height:18px;
}

.password-rules{
  display:grid;
  gap:6px;
  list-style:none;
  color:#6b7280;
  font-size:12px;
}

.password-rules li{
  color:#ef4444;
}

.password-rules li.valid{
  color:#16a34a;
}

.forgot-pass{
  border:none;
  background:none;
  color:#2563eb;
  font-size:13px;
  font-weight:700;
  padding:0;
  cursor:pointer;
  text-align:left;
}

.btn:disabled{
  opacity:0.7;
  cursor:not-allowed;
  box-shadow:none;
}

.btn.is-loading,
.btn.saving,
.avatar-overlay.is-loading{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.btn.is-loading::before,
.btn.saving::before,
.avatar-overlay.is-loading::before{
  content:"";
  width:14px;
  height:14px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin 0.65s linear infinite;
}

.saving{
  opacity:0.6;
  pointer-events:none;
}

.btn.danger{
  background:#ef4444;
  color:#fff;
}

.btn.danger:hover{
  background:#dc2626;
}

.ios-modal-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  padding:32px 16px;
  background:rgba(0,0,0,0.45);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  z-index:1200;
}

.address-modal{
  width:100%;
  max-width:500px;
  border-radius:18px;
  background:#fff;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  animation:fadeIn 0.2s ease;
}

.address-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:16px;
  border-bottom:1px solid #eef2f7;
}

.address-modal-header h2{
  margin:0;
  font-size:18px;
  font-weight:700;
}

.close-btn{
  border:none;
  background:none;
  color:#6b7280;
  font-size:18px;
  cursor:pointer;
}

.address-modal-body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:60vh;
  overflow-y:auto;
}

.subtitle{
  margin:0;
  color:#6b7280;
  font-size:14px;
  line-height:1.5;
}

.account-confirm-modal .subtitle{
  color:#374151;
}

.address-modal-body textarea{
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:12px;
  font-size:14px;
  outline:none;
  resize:none;
}

.file-upload{
  position:relative;
  padding:18px;
  border:2px dashed #d1d5db;
  border-radius:12px;
  text-align:center;
  cursor:pointer;
}

.file-upload:hover{
  border-color:#2563eb;
}

.file-upload input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}

.info-box{
  padding:12px;
  border-radius:12px;
  background:#f8fafc;
  color:#4b5563;
  font-size:13px;
  line-height:1.5;
}

.address-modal-footer{
  display:flex;
  gap:10px;
  padding:16px;
  border-top:1px solid #eef2f7;
}

.address-modal-footer .btn{
  flex:1;
}

.modal-form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.modal-form-label{
  font-size:12px;
  font-weight:700;
  color:#111827;
}

.modal-form-input{
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid #d1d5db;
  border-radius:14px;
  background:#f8fafc;
  color:#111827;
  font-size:15px;
  outline:none;
}

.modal-form-note{
  margin:0;
  color:#6b7280;
  font-size:12px;
  line-height:1.5;
}

.modal-form-error{
  display:none;
  margin:0;
  color:#dc2626;
  font-size:12px;
  line-height:1.45;
}

.modal-form-error.show{
  display:block;
}

.ios-notice{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%) translateY(-20px);
  max-width:min(92vw, 360px);
  padding:12px 18px;
  border-radius:12px;
  background:#111827;
  color:#fff;
  font-size:14px;
  text-align:center;
  opacity:0;
  transition:all 0.22s ease;
  z-index:1400;
  box-shadow:0 10px 24px rgba(15,23,42,0.18);
}

.ios-notice.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.header-name-text{
  font-weight:700;
}

.verified-badge-inline{
  font-size:12px;
  font-weight:600;
  margin-left:6px;
}

.seller-badge{
  font-size:13px;
  padding:4px 10px;
  border-radius:999px;
  background:#f3f4f6;
  color:#6b7280;
  display:inline-block;
}

.seller-badge.verified{
  background:#e0f2fe;
  color:#0369a1;
  font-weight:600;
}

.owner-badge{
  margin-left:6px;
  vertical-align:middle;
  filter:drop-shadow(0 0 6px rgba(124,58,237,0.5));
}

.verified-icon{
  width:18px;
  height:18px;
  margin-left:6px;
  vertical-align:middle;
  fill:#2563eb;
  filter:drop-shadow(0 0 4px rgba(37,99,235,0.4));
}

.role-label{
  font-size:16px;
  margin-left:6px;
  font-weight:800;
  padding:4px 10px;
  border-radius:999px;
}

.role-label.owner{
  color:#7c3aed;
  background:#e0f2fe;
}

body.modal-open{
  overflow:hidden;
}

@keyframes fadeIn{
  from{transform:scale(0.96); opacity:0;}
  to{transform:scale(1); opacity:1;}
}

@keyframes spin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

.theme-dark{
  background:#0b1220;
  color:#e5e7eb;
}

.theme-dark .account-hero,
.theme-dark .section-launcher,
.theme-dark .section-overlay-panel,
.theme-dark .overlay-card,
.theme-dark .account-listing-card,
.theme-dark .saved-item,
.theme-dark .review-summary,
.theme-dark .review-card,
.theme-dark .review-stat,
.theme-dark .transaction-item,
.theme-dark .address-modal{
  background:#111827;
  border-color:#1f2937;
  box-shadow:0 14px 34px rgba(0,0,0,0.24);
}

.theme-dark .account-hero-copy h1,
.theme-dark .section-overlay-header h2,
.theme-dark .profile-value span,
.theme-dark .listing-card-title,
.theme-dark .listing-card-price,
.theme-dark .transaction-title,
.theme-dark .transaction-amount,
.theme-dark .settings-inline > span,
.theme-dark .setting-row > span{
  color:#f9fafb;
}

.theme-dark .overlay-close-btn,
.theme-dark .edit-btn,
.theme-dark .filter-btn,
.theme-dark .transaction-filter-btn,
.theme-dark .settings-link,
.theme-dark .transactions-search,
.theme-dark .password-field input,
.theme-dark .slider,
.theme-dark .modal-form-input,
.theme-dark .address-modal-body textarea,
.theme-dark .meta-pill,
.theme-dark .timer-pill.boosted{
  background:#0f172a;
  color:#e5e7eb;
  border-color:#374151;
}

.theme-dark .profile-row,
.theme-dark .verify-panel,
.theme-dark .setting-row,
.theme-dark .section-overlay-header,
.theme-dark .address-modal-header,
.theme-dark .address-modal-footer{
  border-color:#1f2937;
}

.theme-dark .account-banner.red{
  background:#3b0d14;
  color:#fecaca;
}

.theme-dark .account-banner.yellow{
  background:#3b2b10;
  color:#fde68a;
}

.theme-dark .section-launcher.is-locked{
  background:#0f172a;
}

.theme-dark .account-banner,
.theme-dark .profile-subtext,
.theme-dark .profile-private,
.theme-dark .profile-row > span,
.theme-dark .profile-status-copy,
.theme-dark .listing-card-sub,
.theme-dark .saved-seller,
.theme-dark .review-text,
.theme-dark .review-stat-label,
.theme-dark .transaction-date,
.theme-dark .transaction-time,
.theme-dark .saved-card-meta,
.theme-dark .transaction-month-title,
.theme-dark .subtitle,
.theme-dark .info-box,
.theme-dark .password-rules,
.theme-dark .modal-form-note{
  color:#94a3b8 !important;
}

@media (max-width:900px){
  .section-launcher-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .review-summary{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1080px){
  .account-listing-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:760px){
  .account-shell{
    padding-top:18px;
  }

  .account-hero{
    padding:18px;
    align-items:flex-start;
  }

  .account-avatar{
    width:84px;
    height:84px;
    border-radius:20px;
  }

  .section-overlay{
    padding:0;
  }

  .section-overlay-panel{
    width:100%;
    max-height:100vh;
    min-height:100vh;
    border-radius:0;
  }

  .section-overlay-body{
    padding:14px;
  }

  .overlay-card{
    padding:14px;
    border-radius:18px;
  }

  .profile-row{
    grid-template-columns:1fr;
    grid-template-areas:
      "label"
      "value"
      "action";
    gap:8px;
  }

  .edit-btn{
    justify-self:start;
  }

  .account-listing-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .saved-listings-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .transaction-item{
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
    gap:10px;
    padding:10px 12px;
  }

  .transaction-preview-side{
    width:auto;
    justify-content:flex-end;
  }

  .saved-listings-grid{
    grid-template-columns:1fr;
  }

  .review-top,
  .setting-row,
  .settings-inline,
  .address-modal-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .review-summary,
  .profile-grid{
    grid-template-columns:1fr;
  }

  .transaction-title-row{
    gap:8px;
  }
}
