/* Modern customer profile and settings system. Visual-only overrides. */
.air-app #view-profile {
  --profile-ink: #092426;
  --profile-muted: #657477;
  --profile-line: rgba(9, 36, 38, 0.09);
  --profile-teal: #0f7f82;
  --profile-soft: #edf8f6;
  --profile-surface: #ffffff;
  display: grid;
  gap: 16px;
}

.air-app #view-profile::before {
  content: "Your Tapyme";
  display: block;
  margin: 2px 2px -6px;
  color: var(--profile-ink);
  font-size: 1.48rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.air-app #view-profile .profile-subnav {
  position: sticky;
  top: calc(65px + env(safe-area-inset-top, 0px));
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 7px;
  overflow-x: auto;
  margin: 0 -2px;
  padding: 5px;
  border: 1px solid var(--profile-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -25px rgba(6, 37, 40, 0.6);
  scrollbar-width: none;
}
.air-app #view-profile .profile-subnav::-webkit-scrollbar { display: none; }
.air-app #view-profile .profile-subnav button {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  color: #718083;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.air-app #view-profile .profile-subnav button.on {
  color: #fff;
  background: linear-gradient(135deg, #0c6e72, #119496);
  box-shadow: 0 9px 20px -13px rgba(7, 104, 108, .85);
}
.air-app #view-profile .profile-subnav button:active { transform: scale(.97); }

.air-app #view-profile .profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 22px;
  border: 0;
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 5%, rgba(168, 238, 189, .32), transparent 34%),
    linear-gradient(145deg, #0a4f54, #0b7477 58%, #119195);
  box-shadow: 0 24px 48px -36px rgba(3, 65, 69, .9);
  text-align: left;
}
.air-app #view-profile .profile-hero::after {
  content: "T";
  position: absolute;
  right: -10px;
  bottom: -40px;
  color: rgba(255,255,255,.08);
  font-size: 9rem;
  font-weight: 900;
  line-height: 1;
}
.air-app #view-profile .profile-av {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  margin: 0;
  border: 3px solid rgba(255,255,255,.72);
  border-radius: 22px;
  color: #063f43;
  background: linear-gradient(145deg, #e7ffdc, #7ee5c6);
  box-shadow: 0 12px 26px -18px rgba(0,0,0,.6);
  font-size: 1.3rem;
  font-weight: 850;
}
.air-app #view-profile .ph-body { position: relative; z-index: 1; min-width: 0; }
.air-app #view-profile .ph-body h2 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 820;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.air-app #view-profile .ph-body p {
  margin: 5px 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.78);
  font-size: .78rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.air-app #view-profile .profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.air-app #view-profile .pstat {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--profile-line);
  border-radius: 20px;
  background: var(--profile-surface);
  box-shadow: 0 14px 30px -28px rgba(7, 52, 56, .7);
  text-align: left;
}
.air-app #view-profile .pstat strong {
  color: var(--profile-ink);
  font-size: 1.18rem;
  font-weight: 820;
  letter-spacing: -0.035em;
}
.air-app #view-profile .pstat span {
  color: var(--profile-muted);
  font-size: .72rem;
  font-weight: 650;
}

.air-app #view-profile .auto-receipt-card,
.air-app #view-profile .profile-section,
.air-app #view-profile .privacy-card {
  padding: 20px;
  border: 1px solid var(--profile-line);
  border-radius: 24px;
  background: var(--profile-surface);
  box-shadow: 0 18px 38px -34px rgba(7, 52, 56, .72);
}
.air-app #view-profile .auto-receipt-head,
.air-app #view-profile .ps-head,
.air-app #view-profile .privacy-head {
  align-items: center;
}
.air-app #view-profile .auto-receipt-head h3,
.air-app #view-profile .ps-head h3,
.air-app #view-profile .privacy-head h2 {
  color: var(--profile-ink);
  letter-spacing: -0.03em;
}
.air-app #view-profile .auto-receipt-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #0b7175, #15a09d);
  font-size: 1rem;
  font-weight: 900;
}
.air-app #view-profile .auto-receipt-status,
.air-app #view-profile .ps-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #516164;
  background: #eef2f1;
  font-size: .66rem;
  font-weight: 820;
}
.air-app #view-profile .auto-receipt-status:not(:empty) { color: #096b5d; background: #e2f7ee; }
.air-app #view-profile .auto-receipt-card > p,
.air-app #view-profile .ps-sub,
.air-app #view-profile .privacy-head p {
  color: var(--profile-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.air-app #view-profile .auto-setting-row,
.air-app #view-profile .targeting-field,
.air-app #view-profile .targeting-location-box {
  min-height: 64px;
  padding: 15px 16px;
  border: 1px solid var(--profile-line);
  border-radius: 18px;
  background: #f9fbfa;
}
.air-app #view-profile .auto-setting-row strong,
.air-app #view-profile .targeting-field strong,
.air-app #view-profile .targeting-location-box strong {
  color: var(--profile-ink);
  font-size: .84rem;
}
.air-app #view-profile .auto-setting-row small,
.air-app #view-profile .targeting-field small,
.air-app #view-profile .targeting-location-box small {
  color: var(--profile-muted);
  font-size: .69rem;
  line-height: 1.4;
}
.air-app #view-profile .auto-setting-row input[type="checkbox"] {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ced8d6;
  cursor: pointer;
  transition: background .2s ease;
}
.air-app #view-profile .auto-setting-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.22);
  transition: transform .2s ease;
}
.air-app #view-profile .auto-setting-row input[type="checkbox"]:checked { background: var(--profile-teal); }
.air-app #view-profile .auto-setting-row input[type="checkbox"]:checked::after { transform: translateX(20px); }

.air-app #view-profile .targeting-field { display: grid; gap: 10px; }
.air-app #view-profile .targeting-field > span { display: grid; gap: 3px; }
.air-app #view-profile .targeting-field input,
.air-app #view-profile .targeting-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(9,36,38,.14);
  border-radius: 13px;
  outline: none;
  color: var(--profile-ink);
  background: #fff;
  font-size: .86rem;
}
.air-app #view-profile .targeting-field input:focus,
.air-app #view-profile .targeting-field select:focus {
  border-color: var(--profile-teal);
  box-shadow: 0 0 0 3px rgba(15,127,130,.12);
}

.air-app #view-profile .interest-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.air-app #view-profile .interest-chip {
  min-height: 52px;
  padding: 11px 12px;
  border: 1px solid var(--profile-line);
  border-radius: 16px;
  color: #46575a;
  background: #f8faf9;
  font-size: .78rem;
  font-weight: 720;
  text-align: left;
}
.air-app #view-profile .interest-chip.on {
  border-color: rgba(15,127,130,.28);
  color: #075f62;
  background: var(--profile-soft);
  box-shadow: inset 0 0 0 1px rgba(15,127,130,.08);
}

.air-app #view-profile .cat-bars { gap: 12px; }
.air-app #view-profile .cat-bar {
  grid-template-columns: minmax(90px, 1fr) minmax(90px, 1.6fr) 24px;
  gap: 10px;
}
.air-app #view-profile .cb-track { height: 9px; border-radius: 999px; background: #e7edeb; }
.air-app #view-profile .cb-track i { border-radius: inherit; background: linear-gradient(90deg, #0e777b, #58c9b6); }

.air-app #view-profile .profile-btn {
  min-height: 49px;
  border-radius: 15px;
  background: linear-gradient(135deg, #092e31, #0b4f53);
  box-shadow: 0 12px 24px -20px rgba(7,54,58,.9);
  font-size: .84rem;
  font-weight: 780;
}
.air-app #view-profile .profile-btn.light {
  color: #173235;
  background: #fff;
  box-shadow: none;
}
.air-app #view-profile #logout {
  color: #9c2f2f !important;
  border: 1px solid rgba(171,57,57,.18) !important;
  background: #fff7f7 !important;
  box-shadow: none !important;
}
.air-app #view-profile .preference-status {
  min-height: 18px;
  margin: 10px 2px 0;
  color: #08715f;
  font-size: .72rem;
  font-weight: 700;
}

@media (max-width: 390px) {
  .air-app #view-profile .profile-subnav { grid-template-columns: repeat(4, minmax(74px, 1fr)); }
  .air-app #view-profile .profile-hero { grid-template-columns: 60px minmax(0,1fr); padding: 19px; }
  .air-app #view-profile .profile-av { width: 58px; height: 58px; border-radius: 18px; }
  .air-app #view-profile .ph-body h2 { font-size: 1.12rem; }
  .air-app #view-profile .interest-chips { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .air-app #view-profile * { transition: none !important; }
}
