/* DCSC Account Center — elevated profile UI */
.profile-outer-wrapper {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
}

.profile-outer-wrapper .pro-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 48%, #eef4ff 100%) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
  padding: 28px 32px !important;
}

.profile-outer-wrapper .pro-hero-card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
  pointer-events: none;
}

.profile-outer-wrapper .pro-avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 22px !important;
  border: 3px solid #fff !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22) !important;
}

.profile-outer-wrapper .pro-hero-right {
  flex-direction: column;
  align-items: stretch;
  min-width: 280px;
}

.profile-outer-wrapper .pro-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-outer-wrapper .pro-hero-stat-box {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  padding: 14px 12px !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
}

.profile-outer-wrapper .pro-hero-stat-box .stat-value {
  color: #1d4ed8;
}

.profile-outer-wrapper .pro-hero-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.profile-outer-wrapper .btn-ghost {
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.profile-outer-wrapper .profile-sidebar {
  border-radius: 22px !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06) !important;
}

.profile-outer-wrapper .profile-sidebar::before {
  content: "เมนูบัญชี";
  display: block;
  padding: 16px 18px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.profile-outer-wrapper .profile-nav-link.active {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff) !important;
  border-color: #c7d2fe !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.profile-outer-wrapper .profile-content {
  border-radius: 22px !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06) !important;
}

.profile-outer-wrapper .pro-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

.profile-outer-wrapper .pro-section-head h2.section-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.profile-outer-wrapper .pro-section-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.profile-outer-wrapper .pro-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.profile-outer-wrapper .pro-filter-bar .form-select,
.profile-outer-wrapper .pro-filter-bar .form-control {
  border-radius: 12px !important;
  border-color: #dbeafe !important;
  background: #fff !important;
  min-height: 44px;
}

.profile-outer-wrapper .pro-metric-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-outer-wrapper .pro-metric-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-outer-wrapper .pro-metric-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-outer-wrapper .pro-metric-card {
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-outer-wrapper .pro-metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--metric-accent, #2563eb);
}

.profile-outer-wrapper .pro-metric-card__label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 6px;
}

.profile-outer-wrapper .pro-metric-card__value {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
}

.profile-outer-wrapper .pro-metric-card--primary { --metric-accent: #2563eb; }
.profile-outer-wrapper .pro-metric-card--warning { --metric-accent: #f59e0b; }
.profile-outer-wrapper .pro-metric-card--info { --metric-accent: #06b6d4; }
.profile-outer-wrapper .pro-metric-card--success { --metric-accent: #16a34a; }
.profile-outer-wrapper .pro-metric-card--dark { --metric-accent: #334155; }
.profile-outer-wrapper .pro-metric-card--danger { --metric-accent: #dc2626; }

.profile-outer-wrapper .pro-metric-card--money .pro-metric-card__value {
  font-size: 1.15rem;
}

.profile-outer-wrapper .order-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.profile-outer-wrapper .order-card .card-header {
  background: linear-gradient(180deg, #f8fafc, #fff) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 18px !important;
}

.profile-outer-wrapper .info-card {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

@media (max-width: 1100px) {
  .profile-outer-wrapper .pro-hero-card {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .profile-outer-wrapper .pro-hero-right {
    min-width: 0;
    width: 100%;
  }

  .profile-outer-wrapper .pro-metric-grid--4,
  .profile-outer-wrapper .pro-metric-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .profile-outer-wrapper .pro-hero-stats {
    grid-template-columns: 1fr;
  }

  .profile-outer-wrapper .pro-filter-bar {
    grid-template-columns: 1fr;
  }

  .profile-outer-wrapper .pro-metric-grid--4,
  .profile-outer-wrapper .pro-metric-grid--3 {
    grid-template-columns: 1fr;
  }
}
