/* ==========================================================================
   Profile panel — user account pages
   Scoped under .profile-shell
   ========================================================================== */

.profile-shell {
  --profile-success: #22C55E;
  --profile-success-soft: #F0FDF4;
  --profile-warning: #F59E0B;
  --profile-warning-soft: #FFFBEB;
  --profile-danger: #EF4444;
  --profile-danger-soft: #FEF2F2;
}

.profile-shell .wrapper.default {
  background-color: var(--home-bg);
}

.profile-page {
  background-color: var(--home-bg);
  padding: 20px 0 32px;
  direction: rtl;
  min-height: 50vh;
}

.profile-page .container {
  max-width: var(--home-container);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 992px) {
  .profile-layout {
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .profile-layout .profile-main {
    flex: 1;
    min-width: 0;
  }

  .profile-layout .profile-aside {
    flex: 0 0 280px;
    max-width: 280px;
    position: sticky;
    top: 88px;
    align-self: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.profile-user-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  padding: 24px 16px;
  text-align: center;
  margin-bottom: 12px;
}

.profile-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--home-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.profile-user-avatar img {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.profile-user-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 14px;
}

.profile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-user-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  background: var(--home-surface);
  color: var(--home-text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.profile-user-action:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
  background: var(--home-accent-soft);
}

.profile-user-action--danger:hover {
  border-color: var(--profile-danger);
  color: var(--profile-danger);
  background: var(--profile-danger-soft);
}

@media (max-width: 991px) {
  .profile-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-align: right;
  }

  .profile-user-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .profile-user-avatar img {
    width: 26px;
    height: 26px;
  }

  .profile-user-name {
    flex: 1;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-user-actions {
    flex-direction: row;
    gap: 6px;
  }

  .profile-user-action {
    padding: 7px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .profile-user-action-extra {
    display: none;
  }
}

.profile-nav {
  display: none;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  overflow: hidden;
}

@media (min-width: 992px) {
  .profile-nav {
    display: block;
  }
}

.profile-nav-header {
  padding: 14px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--home-text-muted);
  border-bottom: 1px solid var(--home-border);
  background: var(--home-bg);
}

.profile-nav-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--home-radius-sm);
  color: var(--home-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.profile-nav-link i {
  font-size: 16px;
  color: var(--home-accent);
}

.profile-nav-link:hover {
  background: var(--home-accent-soft);
  color: var(--home-text);
}

.profile-nav-link.is-active,
.profile-nav-link.router-link-active {
  background: var(--home-accent-soft);
  color: var(--home-accent-hover);
}

.profile-mobile-nav {
  display: block;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  overflow: hidden;
}

@media (min-width: 992px) {
  .profile-mobile-nav {
    display: none;
  }
}

.profile-mobile-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--home-surface);
  background: var(--home-accent);
  cursor: pointer;
  list-style: none;
}

.profile-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.profile-mobile-nav .profile-nav-list {
  padding: 8px;
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.profile-card {
  position: relative;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-sm);
  overflow: hidden;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--home-border);
}

.profile-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 0;
}

.profile-card-title i {
  color: var(--home-accent);
  font-size: 18px;
}

.profile-card-body {
  padding: 20px;
}

@media (max-width: 576px) {
  .profile-card-header {
    padding: 14px 16px;
  }

  .profile-card-body {
    padding: 16px;
  }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .profile-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-form-grid .profile-form-field--full {
    grid-column: 1 / -1;
  }
}

.profile-form-field label.field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text-muted);
  margin-bottom: 6px;
}

.profile-input-wrap {
  position: relative;
}

.profile-input-wrap .field-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--home-text-muted);
  font-size: 16px;
  pointer-events: none;
}

.profile-input {
  width: 100%;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  padding: 11px 14px;
  font-size: 0.875rem;
  color: var(--home-text);
  background: var(--home-surface);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-input-wrap .profile-input {
  padding-right: 40px;
}

.profile-input:focus {
  outline: none;
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px rgba(71, 187, 156, 0.12);
}

.profile-input.is-invalid {
  border-color: var(--profile-danger);
}

.profile-input:read-only {
  background: var(--home-bg);
  color: var(--home-text-muted);
}

.profile-field-error {
  font-size: 0.75rem;
  color: var(--profile-danger);
  margin-top: 4px;
}

.profile-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--home-text);
}

.profile-radio input[type='radio'] {
  width: 18px;
  height: 18px;
  accent-color: var(--home-accent);
  cursor: pointer;
}

.profile-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--home-text-muted);
  margin-bottom: 10px;
}

.profile-form-field + .profile-checkbox-row {
  margin-top: 14px;
}

.profile-checkbox-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--home-accent);
  margin-top: 2px;
  cursor: pointer;
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.profile-shell .btn-profile-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--home-radius-sm);
  background: var(--home-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.profile-shell .btn-profile-primary:hover {
  background: var(--home-accent-hover);
}

.profile-shell .btn-profile-primary:disabled {
  background: var(--home-border);
  color: var(--home-text-muted);
  cursor: not-allowed;
}

.profile-shell .btn-profile-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.profile-shell .btn-profile-outline:hover {
  border-color: var(--home-accent);
  color: var(--home-accent);
  background: var(--home-accent-soft);
}

.profile-shell .btn-profile-outline--danger {
  border-color: var(--profile-danger);
  color: var(--profile-danger);
}

.profile-shell .btn-profile-outline--danger:hover {
  background: var(--profile-danger-soft);
}

.profile-shell .btn-profile-outline--accent {
  border-color: var(--home-accent);
  color: var(--home-accent);
}

/* --------------------------------------------------------------------------
   Filter tabs (orders)
   -------------------------------------------------------------------------- */

.profile-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-filter-tab {
  position: relative;
  cursor: pointer;
}

.profile-filter-tab input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-filter-tab span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text-muted);
  background: var(--home-surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.profile-filter-tab input:checked + span,
.profile-filter-tab.is-active span {
  border-color: var(--home-accent);
  color: var(--home-accent-hover);
  background: var(--home-accent-soft);
}

/* --------------------------------------------------------------------------
   Data table
   -------------------------------------------------------------------------- */

.profile-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.profile-table th,
.profile-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--home-border);
}

.profile-table thead th {
  background: var(--home-bg);
  color: var(--home-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.profile-table tbody tr:hover {
  background: var(--home-bg);
}

.profile-table .btn-profile-outline {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .profile-table--stack,
  .profile-table--stack tbody {
    display: block;
  }

  .profile-table--stack thead {
    display: none;
  }

  .profile-table--stack tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .profile-table--stack tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    padding: 12px 14px;
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
  }

  .profile-table--stack tbody tr:hover {
    background: none;
  }

  .profile-table--stack td {
    padding: 0;
    border: 0;
    text-align: right;
  }

  .profile-table--stack td[data-label]::before {
    content: attr(data-label) ': ';
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--home-text-muted);
  }

  .profile-table--stack .cell-index {
    display: none;
  }

  .profile-table--stack .cell-date {
    grid-column: 1;
    grid-row: 1;
    font-weight: 600;
    color: var(--home-text);
  }

  .profile-table--stack .cell-amount {
    grid-column: 1;
    grid-row: 2;
    font-weight: 700;
    color: var(--home-text);
  }

  .profile-table--stack .cell-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.profile-empty {
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--home-border);
  border-radius: var(--home-radius-md);
  background: var(--home-bg);
  color: var(--home-text-muted);
  font-size: 0.875rem;
}

.profile-empty img {
  width: 72px;
  margin-bottom: 12px;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Address cards
   -------------------------------------------------------------------------- */

.profile-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 576px) {
  .profile-address-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .profile-address-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-address-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  padding: 16px;
  min-height: 180px;
}

.profile-address-card .address-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--home-text);
  text-align: center;
  margin-bottom: 8px;
}

.profile-address-card .address-desc {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--home-text-muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 14px;
}

.profile-address-card .address-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.profile-address-card--add {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
  background: var(--home-bg);
}

.profile-address-card--add img {
  width: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.profile-address-card--add .address-desc {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Credit / balance
   -------------------------------------------------------------------------- */

.profile-balance-card {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  background: var(--home-accent-soft);
  margin-bottom: 20px;
}

.profile-balance-label {
  font-size: 0.875rem;
  color: var(--home-text-muted);
  margin-bottom: 8px;
}

.profile-balance-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--home-text);
}

.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--home-border);
  padding-bottom: 12px;
}

.profile-tab-link {
  flex: 1 1 0;
  text-align: center;
  padding: 8px 16px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text-muted);
  text-decoration: none;
  cursor: pointer;
  background: var(--home-surface);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.profile-tab-link.is-active,
.profile-tab-link.active {
  border-color: var(--home-accent);
  color: var(--home-accent-hover);
  background: var(--home-accent-soft);
}

.profile-tab-pane {
  padding-top: 8px;
}

/* --------------------------------------------------------------------------
   Transactions list
   -------------------------------------------------------------------------- */

.profile-txn-header {
  display: none;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px 14px;
  background: var(--home-bg);
  border-radius: var(--home-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--home-text-muted);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .profile-txn-header {
    display: grid;
  }
}

.profile-txn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-txn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  background: var(--home-surface);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .profile-txn-row {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
  }
}

.profile-txn-row.is-deposit {
  border-right: 3px solid var(--profile-success);
}

.profile-txn-row.is-withdraw {
  border-right: 3px solid var(--profile-danger);
}

.profile-txn-type {
  font-weight: 600;
  color: var(--home-text);
}

.profile-txn-order {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--home-accent);
  text-decoration: none;
}

.profile-txn-order:hover {
  color: var(--home-accent-hover);
  text-decoration: underline;
}

.profile-txn-amount.is-deposit {
  color: var(--profile-success);
  font-weight: 700;
}

.profile-txn-amount.is-withdraw {
  color: var(--profile-danger);
  font-weight: 700;
}

.profile-txn-balance {
  font-weight: 600;
  color: var(--home-text);
}

.profile-txn-date {
  color: var(--home-text-muted);
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .profile-txn-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 0;
  }

  .profile-txn-title,
  .profile-txn-date {
    grid-column: 1 / -1;
  }

  .profile-txn-amount,
  .profile-txn-balance {
    padding-top: 8px;
    border-top: 1px dashed var(--home-border);
  }

  .profile-txn-balance {
    text-align: left;
  }

  .profile-txn-amount::before,
  .profile-txn-balance::before {
    content: attr(data-label) ': ';
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--home-text-muted);
  }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.profile-shell .pager {
  margin-top: 20px;
}

.profile-shell .pager-page {
  border-radius: var(--home-radius-sm);
  color: var(--home-text-muted);
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.profile-shell .pager-page:hover {
  color: var(--home-accent);
  background: var(--home-accent-soft);
}

.profile-shell .pager-page.is-active {
  background-color: var(--home-accent);
  border-color: var(--home-accent);
  color: #fff;
}

.profile-shell .pager-page--partition {
  margin: 0 12px;
}

.profile-shell .pager-next,
.profile-shell .pager-prev {
  color: var(--home-text-muted);
  transition: color 0.2s;
}

.profile-shell .pager-next:hover,
.profile-shell .pager-prev:hover {
  color: var(--home-accent);
}

/* --------------------------------------------------------------------------
   Activity cards (reviews / questions)
   -------------------------------------------------------------------------- */

.profile-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-activity-card {
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  padding: 16px;
}

.profile-activity-card .activity-top {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.profile-activity-card .activity-img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: var(--home-radius-sm);
  border: 1px solid var(--home-border);
  overflow: hidden;
}

.profile-activity-card .activity-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-activity-card .activity-body {
  flex: 1;
  min-width: 0;
  position: relative;
}

.profile-activity-card .activity-status {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--home-radius-md);
}

.profile-activity-card .activity-status.is-confirmed {
  background: var(--profile-success-soft);
  color: var(--profile-success);
}

.profile-activity-card .activity-status.is-pending {
  background: var(--profile-warning-soft);
  color: var(--profile-warning);
}

.profile-activity-card .activity-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--home-text);
  margin: 28px 0 6px;
}

.profile-activity-card .activity-text {
  font-size: 0.8125rem;
  color: var(--home-text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.profile-activity-card .activity-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--home-border);
}

.profile-activity-card .activity-dates {
  font-size: 0.75rem;
  color: var(--home-text-muted);
  line-height: 1.8;
}

.profile-activity-card .activity-dates .date-created {
  color: var(--home-text-muted);
}

.profile-activity-card .activity-dates .date-confirmed {
  color: var(--profile-success);
}

.profile-activity-card .activity-actions {
  display: flex;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Loading overlay
   -------------------------------------------------------------------------- */

.profile-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.profile-loading-overlay img {
  width: 40px;
}

/* --------------------------------------------------------------------------
   Modal overrides (address / review / question)
   -------------------------------------------------------------------------- */

.profile-shell .modal-content {
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-md);
  box-shadow: var(--home-shadow-md);
}

.profile-shell .modal-header {
  background: var(--home-bg);
  border-bottom: 1px solid var(--home-border);
  padding: 16px 20px;
}

.profile-shell .modal-header .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--home-text);
}

.profile-shell .modal-body {
  padding: 20px;
}

.profile-shell .modal-footer,
.profile-shell .profile-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px 20px;
  border-top: 1px solid var(--home-border);
}

.profile-shell .btn-save {
  background: var(--home-accent) !important;
  border-color: var(--home-accent) !important;
  color: #fff !important;
  border-radius: var(--home-radius-sm);
  font-weight: 700;
  padding: 10px 20px;
}

.profile-shell .btn-reject,
.profile-shell .btn-cancel {
  background: var(--home-surface) !important;
  border: 1px solid var(--home-border) !important;
  color: var(--home-text-muted) !important;
  border-radius: var(--home-radius-sm);
  font-weight: 600;
  padding: 10px 20px;
}

.profile-shell .gateway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.profile-shell .gateway-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  cursor: pointer;
  text-align: center;
}

.profile-shell .gateway-card:has(input:checked) {
  border-color: var(--home-accent);
  background: var(--home-accent-soft);
}

.profile-shell .gateway-card input[type='radio'] {
  position: absolute;
  opacity: 0;
}

.profile-shell .credit-info-text {
  font-size: 0.875rem;
  color: var(--home-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.profile-shell .credit-info-text p {
  margin-bottom: 8px;
}

/* Legacy form class compatibility (modals) */
.profile-shell .form-account-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text-muted);
  margin: 12px 0 6px;
}

.profile-shell .form-account-row {
  margin-bottom: 12px;
}

.profile-shell .input-field,
.profile-shell .form-control {
  width: 100%;
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius-sm);
  padding: 11px 14px;
  font-size: 0.875rem;
  color: var(--home-text);
  background: var(--home-surface);
  box-sizing: border-box;
}

.profile-shell .input-field:focus,
.profile-shell .form-control:focus {
  outline: none;
  border-color: var(--home-accent);
  box-shadow: 0 0 0 3px rgba(71, 187, 156, 0.12);
}

.profile-shell .input-field.is-invalid,
.profile-shell .form-control.is-invalid {
  border-color: var(--profile-danger);
}

.profile-shell .text-danger {
  font-size: 0.75rem;
  color: var(--profile-danger);
  margin-top: 4px;
}

.profile-shell .gateway-card span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--home-text);
}

.profile-shell .gateway-card img {
  height: 36px;
  object-fit: contain;
}

.profile-shell .profile-input--textarea,
.profile-shell textarea.input-field,
.profile-shell textarea.profile-input {
  min-height: 100px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Activity modals (review / question)
   Teleported to body, so not scoped under .profile-shell
   -------------------------------------------------------------------------- */

.profile-activity-modal .activity-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-border);
}

@media (min-width: 576px) {
  .profile-activity-modal .activity-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-activity-modal .activity-meta-item--full {
    grid-column: 1 / -1;
  }
}

.profile-activity-modal .activity-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--home-text-muted);
  margin-bottom: 4px;
}

.profile-activity-modal .activity-meta dd {
  font-size: 0.875rem;
  color: var(--home-text);
  margin: 0;
}

.profile-activity-modal .address-form-field + .address-form-field {
  margin-top: 16px;
}

.address-modal.profile-activity-modal .address-input:read-only,
.address-modal.profile-activity-modal .address-textarea:read-only {
  background: var(--home-bg);
  color: var(--home-text);
}

.profile-activity-modal .activity-answer {
  padding: 12px 14px;
  border-radius: var(--home-radius-sm);
  background: var(--home-accent-soft);
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--home-text);
  white-space: pre-wrap;
}
