/**
 * TES Profile Premium Style v1.1.4
 * Premium full-screen mobile app design system for TES profiles + account area.
 */

body.tes-profile-premium {
  /* TES design system */
  --tes-pps-purple: #7022ff;
  --tes-pps-pink: #fd217a;
  --tes-pps-orange: #ff7e5f;
  --tes-pps-green: #22c55e;
  --tes-pps-gold: #f5b301;
  --tes-pps-text: #0f172a;
  --tes-pps-muted: #64748b;
  --tes-pps-bg: #ffffff;
  --tes-pps-gradient: linear-gradient(135deg, #7022ff 0%, #fd217a 52%, #ff7e5f 100%);
  --tes-pps-gradient-btn: linear-gradient(135deg, #7022ff 0%, #fd217a 100%);
  --tes-pps-gradient-soft: linear-gradient(135deg, rgba(112, 34, 255, 0.1) 0%, rgba(253, 33, 122, 0.07) 100%);
  --tes-pps-inset: 16px;
  --tes-pps-gap-sm: 10px;
  --tes-pps-gap: 16px;
  --tes-pps-gap-lg: 22px;
  --tes-pps-radius-xl: 28px;
  --tes-pps-radius-lg: 26px;
  --tes-pps-radius-md: 20px;
  --tes-pps-radius-input: 16px;
  --tes-pps-cover-h: clamp(190px, 44vw, 220px);
  --tes-pps-avatar: 112px;
  --tes-pps-avatar-overlap: calc(var(--tes-pps-avatar) * 0.45);
  --tes-pps-name-max: 90%;
  --tes-pps-btn-h: 88px;
  --tes-pps-shadow: 0 14px 36px rgba(112, 34, 255, 0.07);
  --tes-pps-shadow-soft: 0 6px 20px rgba(15, 23, 42, 0.05);
  --tes-pps-shadow-card: 0 10px 28px rgba(15, 23, 42, 0.05);
  --tes-pps-font-bio: 0.9375rem;
  background: var(--tes-pps-bg) !important;
  color: var(--tes-pps-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== Global typography in app scope ===== */
body.tes-profile-premium,
body.tes-profile-premium p,
body.tes-profile-premium li,
body.tes-profile-premium label,
body.tes-profile-premium .field-help,
body.tes-profile-premium .muted {
  font-family: inherit;
}

body.tes-profile-premium .field-help,
body.tes-profile-premium .muted,
body.tes-profile-premium .review-card p,
body.tes-profile-premium .gig-card .content p,
body.tes-profile-premium .venue-description,
body.tes-profile-premium .directory-card .content {
  font-size: var(--tes-pps-font-bio) !important;
  line-height: 1.55 !important;
  color: var(--tes-pps-muted) !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== Full screen ===== */
body.tes-profile-premium-fullscreen main,
body.tes-profile-premium-fullscreen .single-page,
body.tes-profile-premium-fullscreen .single-hero,
body.tes-profile-premium-fullscreen .tes-fb-profile-shell {
  padding: 0 !important;
  margin: 0 !important;
}

body.tes-profile-premium-fullscreen .container,
body.tes-profile-premium-fullscreen .single-hero .container,
body.tes-profile-premium-fullscreen .single-page .section .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.tes-profile-premium-fullscreen .section {
  padding-top: 0 !important;
  padding-bottom: var(--tes-pps-gap) !important;
}

body.tes-profile-premium-fullscreen .single-page .section .container {
  padding-left: var(--tes-pps-inset) !important;
  padding-right: var(--tes-pps-inset) !important;
}

body.tes-profile-premium-account .page-content.panel {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

body.tes-profile-premium-account .section > .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.tes-profile-premium-account .account-dashboard {
  padding: 0 !important;
}

body.tes-profile-premium-account .account-dashboard .grid-2 {
  display: block !important;
  margin: 0 !important;
}

/* ===== Profile card ===== */
body.tes-profile-premium .tes-fb-profile-shell .single-layout {
  display: block;
}

body.tes-profile-premium .tes-fb-profile-card,
body.tes-profile-premium #account-top.tes-fb-profile-card {
  padding: 0 !important;
  overflow: visible !important;
  position: relative;
  background: var(--tes-pps-bg) !important;
  border: none !important;
  box-shadow: none !important;
}

body.tes-profile-premium-fullscreen .tes-fb-profile-card,
body.tes-profile-premium-account #account-top.tes-fb-profile-card {
  border-radius: 0 !important;
}

body.tes-profile-premium .tes-fb-profile-card::before {
  display: none !important;
}

/* ===== Cover — shorter premium hero ===== */
body.tes-profile-premium .tes-fb-cover,
body.tes-profile-premium .tes-fb-cover--account {
  position: relative;
  height: var(--tes-pps-cover-h) !important;
  min-height: var(--tes-pps-cover-h) !important;
  max-height: var(--tes-pps-cover-h) !important;
  margin: 0 !important;
  overflow: hidden;
  background: var(--tes-pps-gradient-soft);
}

body.tes-profile-premium-fullscreen .tes-fb-cover,
body.tes-profile-premium-account .tes-fb-cover--account {
  border-radius: 0 0 var(--tes-pps-radius-xl) var(--tes-pps-radius-xl);
}

body.tes-profile-premium .tes-fb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.tes-profile-premium .tes-fb-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 20, 0.04) 0%, rgba(12, 10, 38, 0.32) 100%);
  pointer-events: none;
}

body.tes-profile-premium .tes-fb-cover-edit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  gap: 0;
  background: #fff !important;
  border: 2px solid rgba(112, 34, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--tes-pps-text) !important;
  cursor: pointer;
}

body.tes-profile-premium .tes-fb-cover-edit-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.85rem;
  line-height: 1;
}

body.tes-profile-premium .tes-fb-cover-edit span:not(.tes-fb-cover-edit-icon) {
  display: none !important;
}

body.tes-profile-premium .tes-fb-cover-form {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

body.tes-profile-premium .tes-fb-cover-form .tes-fb-cover-edit {
  pointer-events: auto;
}

body.tes-profile-premium .tes-fb-cover-edit input,
body.tes-profile-premium .tes-fb-avatar-input {
  display: none;
}

/* ===== Compact header ===== */
body.tes-profile-premium .site-header {
  background: #fff !important;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(231, 233, 247, 0.9);
}

body.tes-profile-premium .header-wrap {
  padding: 8px 0 !important;
  gap: 10px !important;
}

body.tes-profile-premium .brand-badge {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

body.tes-profile-premium .brand-logo-wrap,
body.tes-profile-premium .brand-logo {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}

body.tes-profile-premium .brand-title {
  font-size: 0.92rem !important;
}

body.tes-profile-premium .brand-subtitle {
  font-size: 0.68rem !important;
}

/* ===== Premium profile shell (template-driven layout) ===== */
body.tes-profile-premium .tes-premium-profile-shell {
  display: block;
  width: 100%;
}

body.tes-profile-premium .tes-premium-hero {
  display: block !important;
  width: 100%;
  padding: 0 var(--tes-pps-inset);
}

/* Act owner dashboard: DOM order is chips → actions → profile switch → bio; neutralize legacy theme flex order */
body.tes-profile-premium .account-dashboard .tes-premium-act-owner-stack,
body.tes-profile-premium .account-dashboard .tes-premium-hero-actions,
body.tes-profile-premium .account-dashboard .tes-premium-bio-wrap,
body.tes-profile-premium .account-dashboard .tes-fb-bio--full,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account,
body.tes-profile-premium .account-dashboard .tes-your-profiles-panel,
body.tes-profile-premium .account-dashboard .tes-premium-profile-shell > .tes-premium-bio-wrap {
  order: unset !important;
}

/* Block stack inside hero: action buttons only; display:block so flex order cannot reorder siblings */
body.tes-profile-premium-account .tes-premium-act-owner-stack,
body.tes-profile-premium .account-dashboard .tes-premium-act-owner-stack {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.tes-profile-premium .tes-premium-act-owner-stack .tes-premium-hero-actions {
  padding: 0 var(--tes-pps-inset);
  margin: 0 0 var(--tes-pps-gap-sm);
}

body.tes-profile-premium .tes-premium-cover-wrap,
body.tes-profile-premium .tes-premium-cover-wrap.tes-fb-cover,
body.tes-profile-premium .tes-premium-cover-wrap.tes-fb-cover--account {
  display: block;
  width: 100%;
  margin: 0;
}

body.tes-profile-premium .tes-premium-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin-top: calc(var(--tes-pps-avatar-overlap) * -1);
  z-index: 3;
}

body.tes-profile-premium .tes-premium-avatar-wrap {
  position: relative;
  left: auto;
  top: auto;
  width: var(--tes-pps-avatar);
  max-width: var(--tes-pps-avatar);
  margin: 0 auto;
  z-index: 4;
  flex-shrink: 0;
}

body.tes-profile-premium .tes-premium-avatar-wrap .tes-fb-avatar-form,
body.tes-profile-premium .tes-premium-avatar-wrap .tes-fb-avatar-wrap {
  display: block;
  margin: 0;
  width: 100%;
}

body.tes-profile-premium .tes-premium-meta,
body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy,
body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy--account {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0 !important;
  padding: 10px var(--tes-pps-inset) 8px !important;
  margin: 0;
  text-align: center;
  position: relative;
  justify-content: flex-start !important;
  align-self: stretch;
  box-sizing: border-box;
}

/* Act + venue unified profile cards */
body.tes-profile-premium .tes-fb-profile-card--teg_act,
body.tes-profile-premium .tes-fb-profile-card--teg_bar,
body.tes-profile-premium .tes-fb-profile-card--teg_restaurant,
body.tes-profile-premium #account-top.tes-fb-profile-card--account {
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
}

body.tes-profile-premium-fullscreen .single-layout-act,
body.tes-profile-premium-fullscreen .single-layout-venue {
  display: block !important;
}

body.tes-profile-premium .tes-premium-bio-wrap {
  display: block;
  width: 100%;
  margin: 0 0 var(--tes-pps-gap);
  position: relative;
}

body.tes-profile-premium .tes-premium-dashboard-tools {
  display: flex;
  flex-direction: column;
  gap: var(--tes-pps-gap);
  width: 100%;
  padding: 0 var(--tes-pps-inset) var(--tes-pps-gap-sm);
}

/* Act owner shell-level bio after profile switch (dashboard.php) */
body.tes-profile-premium .tes-premium-profile-shell > .tes-premium-bio-wrap {
  padding: 0 var(--tes-pps-inset);
  margin: 0 0 var(--tes-pps-gap);
}

body.tes-profile-premium .tes-premium-profile-shell > .tes-premium-dashboard-tools + .tes-premium-bio-wrap {
  margin-top: 0;
}

body.tes-profile-premium .tes-premium-profile-shell > .tes-premium-dashboard-tools:not(:last-child) {
  padding-bottom: 0;
}

/* Act owner dashboard: action buttons in hero, bio after profile switch (DOM order in dashboard.php) */
body.tes-profile-premium .tes-premium-hero-actions {
  width: 100%;
  padding: 0 var(--tes-pps-inset);
  margin: 0 0 var(--tes-pps-gap-sm);
  box-sizing: border-box;
}

body.tes-profile-premium .tes-premium-hero-actions .tes-fb-actions--account {
  margin: 0;
}

/* Neutralize legacy theme grid/flex order on old wrappers if present */
body.tes-profile-premium .tes-fb-profile-main,
body.tes-profile-premium .tes-fb-profile-main--account {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Avatar */
body.tes-profile-premium .tes-fb-avatar,
body.tes-profile-premium .tes-fb-avatar--empty {
  width: var(--tes-pps-avatar) !important;
  height: var(--tes-pps-avatar) !important;
  max-width: var(--tes-pps-avatar) !important;
  max-height: var(--tes-pps-avatar) !important;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff !important;
  background: #fff;
  box-shadow:
    0 0 0 3px rgba(112, 34, 255, 0.2),
    0 0 28px rgba(253, 33, 122, 0.22),
    0 10px 28px rgba(15, 23, 42, 0.12) !important;
}

body.tes-profile-premium .tes-fb-avatar-form,
body.tes-profile-premium .tes-fb-avatar-form--account,
body.tes-profile-premium .tes-fb-avatar-wrap,
body.tes-profile-premium .tes-fb-avatar-wrap--editable {
  position: relative;
  z-index: 5;
}

body.tes-profile-premium .tes-fb-avatar-edit {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff !important;
  border: 2px solid rgba(112, 34, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  font-size: 0.78rem;
  cursor: pointer;
}

/* Title block */
body.tes-profile-premium .tes-fb-profile-copy,
body.tes-profile-premium .tes-fb-profile-copy--account {
  width: 100%;
  min-width: 0;
  max-width: 100% !important;
}

body.tes-profile-premium .tes-fb-title-row {
  position: static;
  display: block;
  width: var(--tes-pps-name-max);
  max-width: var(--tes-pps-name-max);
  margin: 0 auto 8px;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

body.tes-profile-premium .tes-premium-name-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  width: auto;
  flex-wrap: nowrap;
}

body.tes-profile-premium .tes-premium-name-text {
  display: inline;
  text-align: center;
}

body.tes-profile-premium .tes-premium-name-text .tes-fb-title {
  display: inline;
  margin: 0 !important;
  font-size: clamp(1.55rem, 5.2vw, 1.95rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #1e293b !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}

body.tes-profile-premium .tes-fb-title {
  margin: 0 !important;
  flex: 0 1 auto;
  font-size: clamp(1.55rem, 5.2vw, 1.95rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #1e293b !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
}

body.tes-profile-premium .tes-premium-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1da1f2 0%, #0084ff 100%);
  color: #fff;
  box-shadow:
    0 0 0 2px #fff,
    0 4px 12px rgba(29, 155, 240, 0.35);
  vertical-align: middle;
}

body.tes-profile-premium .tes-premium-verified-badge__icon {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}

body.tes-profile-premium .tes-heart--title {
  position: absolute;
  right: var(--tes-pps-inset);
  top: 10px;
  transform: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(253, 33, 122, 0.25) !important;
  background: #fff !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
  font-size: 1.1rem;
  color: var(--tes-pps-pink) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 6;
}

body.tes-profile-premium .tes-heart--title:active {
  transform: scale(0.96);
}

body.tes-profile-premium .tes-fb-title-row .tes-profile-bell-menu {
  position: absolute;
  right: var(--tes-pps-inset);
  top: 6px;
  margin-left: 0;
  z-index: 6;
}

body.tes-profile-premium .tes-fb-title-row .tes-profile-bell {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(112, 34, 255, 0.15);
  background: #fff;
  box-shadow: var(--tes-pps-shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Rating — centred, gold (act + venue) */
body.tes-profile-premium .tes-profile-rating-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  margin: 4px auto 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
  text-align: center;
}

body.tes-profile-premium .tes-profile-rating-stars {
  color: var(--tes-pps-gold);
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

body.tes-profile-premium .tes-profile-rating-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.2;
}

body.tes-profile-premium .tes-profile-rating-copy strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--tes-pps-text);
}

body.tes-profile-premium .tes-profile-rating-copy span {
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

body.tes-profile-premium .tes-premium-meta .tes-fb-subline {
  display: none !important;
}

body.tes-profile-premium .tes-fb-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 var(--tes-pps-gap-sm);
  color: var(--tes-pps-muted) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  text-align: center;
}

body.tes-profile-premium .tes-fb-subline span:not(:last-child)::after {
  content: "•";
  margin-left: 4px;
  color: #cbd5e1;
}

/* Category pill */
body.tes-profile-premium .tes-fb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  width: 100%;
  justify-content: center;
}

body.tes-profile-premium .tes-fb-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(112, 34, 255, 0.08) !important;
  border: 1px solid rgba(112, 34, 255, 0.15) !important;
  color: #5b21b6 !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  box-shadow: none !important;
}

body.tes-profile-premium .tes-fb-chip--warning {
  background: rgba(255, 126, 95, 0.1) !important;
  border-color: rgba(255, 126, 95, 0.3) !important;
  color: #c2410c !important;
}

/* ===== Bio — premium card with animated accent ===== */
body.tes-profile-premium .tes-fb-bio,
body.tes-profile-premium .tes-fb-bio--full {
  width: 100%;
  margin: 0 !important;
  padding: 22px 22px 22px 46px !important;
  border-radius: var(--tes-pps-radius-lg) !important;
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%) !important;
  border: 1px solid rgba(112, 34, 255, 0.07) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  color: #4b5563 !important;
  font-size: var(--tes-pps-font-bio) !important;
  line-height: 1.55 !important;
  font-weight: 400;
  text-align: left !important;
  max-width: 100% !important;
  position: relative;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

body.tes-profile-premium .tes-fb-bio--full::before {
  display: none !important;
}

/*
 * Bio accent — NEVER use border-left:dotted here.
 * On mobile Safari / Android WebView / high-DPR Chromium, CSS dotted borders
 * paint as a thick solid near-black slab. Paint dots via repeating-linear-gradient.
 */
body.tes-profile-premium .tes-premium-bio-accent {
  position: absolute;
  left: 22px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  z-index: 2;
  pointer-events: none;
  border: 0 !important;
  border-left: 0 !important;
  background-color: transparent;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(112, 34, 255, 0.45) 0 2.5px,
    transparent 2.5px 7px
  );
  background-repeat: repeat-y;
  background-position: center top;
  animation: tes-pps-accent-glow 3.6s ease-in-out infinite;
}

body.tes-profile-premium .tes-premium-bio-accent::before {
  content: "✦";
  position: absolute;
  left: -7px;
  top: -6px;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--tes-pps-purple);
  text-shadow: 0 0 8px rgba(112, 34, 255, 0.45);
}

body.tes-profile-premium .tes-premium-bio-accent::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tes-pps-purple) 0%, var(--tes-pps-pink) 100%);
  box-shadow: 0 0 10px rgba(112, 34, 255, 0.4);
}

@keyframes tes-pps-accent-glow {
  0%,
  100% {
    opacity: 0.62;
  }

  50% {
    opacity: 1;
  }
}

body.tes-profile-premium .tes-fb-bio p,
body.tes-profile-premium .tes-fb-bio--full p {
  margin: 0 0 8px !important;
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  max-width: none !important;
  word-break: normal;
  overflow-wrap: break-word;
}

body.tes-profile-premium .tes-fb-bio p:last-child,
body.tes-profile-premium .tes-fb-bio--full p:last-child {
  margin-bottom: 0 !important;
}

/* ===== Venue directions CTA (premium hero) ===== */
body.tes-profile-premium .tes-premium-directions-wrap {
  display: block;
  width: 100%;
  margin: 0 auto 14px;
}

body.tes-profile-premium .tes-premium-directions-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px 14px 14px;
  border-radius: 24px;
  background: #fff;
  border: 2px solid transparent;
  background-image:
    linear-gradient(#fff, #fff),
    var(--tes-pps-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow:
    0 10px 28px rgba(112, 34, 255, 0.1),
    0 0 18px rgba(253, 33, 122, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

body.tes-profile-premium .tes-premium-directions-card:active {
  transform: scale(0.985);
}

body.tes-profile-premium .tes-premium-directions-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tes-pps-gradient-soft);
  color: var(--tes-pps-purple);
}

body.tes-profile-premium .tes-premium-directions-card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

body.tes-profile-premium .tes-premium-directions-card__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

body.tes-profile-premium .tes-premium-directions-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--tes-pps-text);
  letter-spacing: -0.01em;
}

body.tes-profile-premium .tes-premium-directions-card__subtext {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tes-pps-muted);
}

body.tes-profile-premium .tes-premium-directions-card__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--tes-pps-purple);
}

body.tes-profile-premium .tes-premium-directions-card__arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  body.tes-profile-premium .tes-premium-directions-card:hover {
    transform: translateY(-1px);
    box-shadow:
      0 14px 32px rgba(112, 34, 255, 0.14),
      0 0 22px rgba(253, 33, 122, 0.1);
  }
}

body.tes-profile-premium .act-detail-card--map {
  display: none !important;
}

body.tes-profile-premium .tes-fb-subline,
body.tes-profile-premium .tes-fb-bio,
body.tes-profile-premium .tes-fb-chip-row {
  max-width: 100% !important;
}

/* ===== Stats bar ===== */
body.tes-profile-premium .act-stats-panel--compact,
body.tes-profile-premium .act-stats-panel--bottom {
  margin: 0 0 var(--tes-pps-gap) !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100%;
}

body.tes-profile-premium .account-dashboard .act-stats-panel--bottom {
  margin: var(--tes-pps-gap) var(--tes-pps-inset) !important;
  width: auto;
}

body.tes-profile-premium .act-stats-panel .section-head {
  display: none !important;
}

body.tes-profile-premium .act-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 4px;
  border-radius: var(--tes-pps-radius-lg);
  background: #fafafa !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

body.tes-profile-premium .act-stat-card {
  position: relative;
  padding: 6px 4px;
  text-align: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.tes-profile-premium .act-stat-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: #e2e8f0;
}

body.tes-profile-premium .act-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tes-pps-muted);
}

body.tes-profile-premium .act-stat-value {
  margin-top: 2px;
  font-size: clamp(1rem, 3.2vw, 1.3rem);
  font-weight: 800;
  color: var(--tes-pps-purple);
}

/* ===================================================================
   ACTION BUTTONS — 2×2 equal grid + subtitles
   =================================================================== */

body.tes-profile-premium .account-dashboard .tes-fb-actions--account,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: var(--tes-pps-btn-h) !important;
  gap: 14px !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-holiday-settings,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-holiday-settings {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-holiday-settings > summary,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-holiday-settings > summary {
  list-style: none !important;
  width: 100% !important;
  height: 100% !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-holiday-settings > summary::-webkit-details-marker,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-holiday-settings > summary::-webkit-details-marker {
  display: none !important;
}

/* Shared button shell */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account summary.tes-fb-btn {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100% !important;
  height: 100% !important;
  min-height: var(--tes-pps-btn-h) !important;
  max-height: var(--tes-pps-btn-h) !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  border-radius: 22px !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  flex: none !important;
  order: unset !important;
}

/* Icons */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary::before,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--primary::before {
  content: "📅";
  font-size: 1.1rem;
  line-height: 1;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--edit::before,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--edit::before {
  content: "✏️";
  font-size: 1.05rem;
  line-height: 1;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn--holiday::before,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account summary.tes-fb-btn--holiday::before {
  content: "🌴";
  font-size: 1.05rem;
  line-height: 1;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]::before,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]::before {
  content: "⏸";
  font-size: 1.05rem;
  line-height: 1;
}

/* Subtitles */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary[data-dashboard-modal-open="add-gig-modal"]::after,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--primary[data-dashboard-modal-open="add-gig-modal"]::after {
  content: "Create a new gig";
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.88;
  line-height: 1.2;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--edit::after,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--edit::after {
  content: "Update your details";
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.2;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn--holiday::after,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account summary.tes-fb-btn--holiday::after {
  content: "Turn off availability";
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.2;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]::after,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]::after {
  content: "Stop showing gigs";
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.75;
  line-height: 1.2;
}

/* Add Gig — gradient */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--primary {
  background: var(--tes-pps-gradient-btn) !important;
  background-image: var(--tes-pps-gradient-btn) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 12px 28px rgba(112, 34, 255, 0.28), 0 0 20px rgba(253, 33, 122, 0.1) !important;
  font-size: 0.82rem !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary::after {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Edit Profile */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--edit,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn--edit {
  background: #fff !important;
  background-image: none !important;
  color: #5b21b6 !important;
  border: 1.5px solid rgba(112, 34, 255, 0.35) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

/* Holiday */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn--holiday,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account summary.tes-fb-btn--holiday,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--holiday.is-on,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--holiday.is-off {
  background: #fff !important;
  background-image: none !important;
  color: #b45309 !important;
  border: 1.5px solid rgba(255, 126, 95, 0.45) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

/* Pause */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open],
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open] {
  background: #fff !important;
  background-image: none !important;
  color: #be185d !important;
  border: 1.5px solid rgba(253, 33, 122, 0.4) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]:disabled {
  opacity: 0.4 !important;
}

/* Hover / active — kill theme black borders */
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary:hover,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary:focus-visible {
  transform: translateY(-1px) !important;
  background: var(--tes-pps-gradient-btn) !important;
  background-image: var(--tes-pps-gradient-btn) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 16px 32px rgba(112, 34, 255, 0.32) !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--edit:hover,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn--holiday:hover,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]:hover {
  transform: translateY(-1px) !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(112, 34, 255, 0.1) !important;
  border-color: rgba(112, 34, 255, 0.45) !important;
  color: inherit !important;
}

body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn:active,
body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn:active,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account .tes-fb-btn:active,
body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account summary.tes-fb-btn:active {
  transform: scale(0.98) !important;
}

@media (hover: hover) and (pointer: fine) {
  body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--primary:hover,
  body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn--edit:hover,
  body.tes-profile-premium .account-dashboard .tes-fb-actions--account summary.tes-fb-btn--holiday:hover,
  body.tes-profile-premium .account-dashboard .tes-fb-actions--account .tes-fb-btn[data-pause-gigs-open]:hover {
    transform: translateY(-2px) !important;
  }
}

body.tes-profile-premium .tes-holiday-settings__panel {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border-radius: var(--tes-pps-radius-md);
  background: #fff !important;
  border: 1px solid rgba(255, 126, 95, 0.2) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

/* Public profile actions */
body.tes-profile-premium .tes-premium-profile-shell > .tes-fb-actions--simple,
body.tes-profile-premium .tes-fb-actions--simple {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: var(--tes-pps-gap) var(--tes-pps-inset) var(--tes-pps-gap-lg) !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.tes-profile-premium .single-page .tes-fb-actions--simple .tes-fb-btn {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 20px !important;
  border: 1px solid rgba(112, 34, 255, 0.12) !important;
  background: #fff !important;
  color: var(--tes-pps-text) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
}

body.tes-profile-premium .single-page .tes-fb-actions--simple .tes-fb-btn--primary {
  background: var(--tes-pps-gradient-btn) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(112, 34, 255, 0.25) !important;
}

/* ===== Unified cards ===== */
body.tes-profile-premium .panel,
body.tes-profile-premium .review-panel,
body.tes-profile-premium .dashboard-reviews-panel,
body.tes-profile-premium .single-page .panel,
body.tes-profile-premium .act-profile-details-panel,
body.tes-profile-premium .gigs-manager-panel,
body.tes-profile-premium .account-dashboard .grid-2 > .panel:not(#account-top) {
  border-radius: var(--tes-pps-radius-xl) !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  background: #fff !important;
  padding: var(--tes-pps-gap) !important;
}

body.tes-profile-premium .portrait-gig-grid .gig-card,
body.tes-profile-premium .directory-card.gig-card {
  border-radius: var(--tes-pps-radius-lg) !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  background: #fff !important;
}

body.tes-profile-premium .review-card {
  padding: 12px 14px;
  border-radius: var(--tes-pps-radius-md);
  background: #f8fafc !important;
  border: 1px solid #eef2f7 !important;
  margin-bottom: 8px;
}

body.tes-profile-premium .review-summary {
  padding: 12px;
  border-radius: var(--tes-pps-radius-md);
  background: var(--tes-pps-gradient-soft) !important;
  margin-bottom: 10px;
}

body.tes-profile-premium .review-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tes-pps-purple);
}

body.tes-profile-premium .act-detail-card {
  padding: 12px;
  border-radius: var(--tes-pps-radius-md);
  background: #fafafa !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
}

body.tes-profile-premium .tes-your-profiles-panel {
  width: 100%;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
  border-radius: var(--tes-pps-radius-lg) !important;
  background: linear-gradient(180deg, #fff 0%, #fbf9ff 100%) !important;
  border: 1px solid rgba(112, 34, 255, 0.08) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  text-align: center;
  box-sizing: border-box;
}

body.tes-profile-premium .tes-your-profiles-title {
  margin: 0 0 12px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #16214f !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.tes-profile-premium .tes-your-profiles-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 12px !important;
}

body.tes-profile-premium .tes-profile-circle-form {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.tes-profile-premium .tes-profile-circle,
body.tes-profile-premium button.tes-profile-circle,
body.tes-profile-premium span.tes-profile-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px rgba(39, 26, 87, 0.12) !important;
}

body.tes-profile-premium .tes-profile-circle.is-current {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
}

body.tes-profile-premium .tes-profile-circle img,
body.tes-profile-premium .tes-profile-circle__fallback {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50% !important;
}

body.tes-profile-premium .tes-profile-circle__fallback {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Text wrapping — profile/dashboard areas */
body.tes-profile-premium .tes-premium-profile-shell,
body.tes-profile-premium .tes-premium-dashboard-tools,
body.tes-profile-premium .tes-your-profiles-panel,
body.tes-profile-premium .tes-linked-performers {
  word-break: normal;
}

body.tes-profile-premium .tes-fb-title,
body.tes-profile-premium .tes-premium-name-text .tes-fb-title,
body.tes-profile-premium .tes-fb-title-row .tes-fb-title,
body.tes-profile-premium .tes-your-profiles-title,
body.tes-profile-premium .tes-fb-chip,
body.tes-profile-premium .tes-fb-btn,
body.tes-profile-premium .tes-profile-circle__fallback,
body.tes-profile-premium .act-stat-label,
body.tes-profile-premium .review-card strong,
body.tes-profile-premium .gig-card h3,
body.tes-profile-premium .directory-card h3,
body.tes-profile-premium .tes-linked-performers h3 {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

body.tes-profile-premium .tes-linked-performers {
  margin: var(--tes-pps-gap) var(--tes-pps-inset) !important;
  padding: var(--tes-pps-gap) !important;
  border-radius: var(--tes-pps-radius-xl) !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  background: #fff !important;
}

body.tes-profile-premium .single-page .section-head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tes-pps-text);
  margin-bottom: 8px;
}

/* ===== Social ===== */
body.tes-profile-premium .act-profile-social-inline,
body.tes-profile-premium .venue-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--tes-pps-gap);
}

body.tes-profile-premium .social-pill {
  position: relative;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
  border: none !important;
  box-shadow: var(--tes-pps-shadow-card) !important;
  overflow: hidden;
}

body.tes-profile-premium .social-pill span:not(.social-pill-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.tes-profile-premium .social-pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

body.tes-profile-premium .social-instagram .social-pill-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
}

body.tes-profile-premium .social-facebook .social-pill-icon {
  background: #1877f2;
  color: #fff;
}

body.tes-profile-premium .social-tiktok .social-pill-icon {
  background: #111;
  color: #fff;
}

/* ===================================================================
   FORMS & MODALS — app-style
   =================================================================== */

body.tes-profile-premium .dashboard-modal-panel[open],
body.tes-profile-premium .dashboard-modal-panel:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  background: var(--tes-pps-bg) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

body.tes-profile-premium .dashboard-modal-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 14px var(--tes-pps-inset) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: none !important;
}

body.tes-profile-premium .dashboard-modal-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--tes-pps-text) !important;
  margin: 0 !important;
}

body.tes-profile-premium .dashboard-modal-close,
body.tes-profile-premium [data-dashboard-modal-close] {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(112, 34, 255, 0.1) !important;
  background: #fff !important;
  color: var(--tes-pps-text) !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
  font-size: 1.2rem !important;
  cursor: pointer;
}

body.tes-profile-premium .dashboard-modal-panel[open] > form,
body.tes-profile-premium .dashboard-modal-panel:not([hidden]) > form {
  flex: 1 1 auto !important;
  padding: var(--tes-pps-gap) var(--tes-pps-inset) calc(var(--tes-pps-gap-lg) + env(safe-area-inset-bottom)) !important;
  display: grid !important;
  gap: var(--tes-pps-gap) !important;
  max-width: 680px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.tes-profile-premium .teg-form,
body.tes-profile-premium .compact-profile-form,
body.tes-profile-premium .venue-dashboard-form {
  display: grid !important;
  gap: var(--tes-pps-gap) !important;
}

body.tes-profile-premium .teg-form label,
body.tes-profile-premium .compact-profile-form label,
body.tes-profile-premium .dashboard-modal-panel label {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: var(--tes-pps-text) !important;
  margin-bottom: 6px !important;
  display: block;
}

body.tes-profile-premium .teg-form input[type="text"],
body.tes-profile-premium .teg-form input[type="email"],
body.tes-profile-premium .teg-form input[type="url"],
body.tes-profile-premium .teg-form input[type="date"],
body.tes-profile-premium .teg-form input[type="time"],
body.tes-profile-premium .teg-form input[type="password"],
body.tes-profile-premium .teg-form input[type="number"],
body.tes-profile-premium .teg-form input[type="tel"],
body.tes-profile-premium .teg-form select,
body.tes-profile-premium .teg-form textarea,
body.tes-profile-premium .compact-profile-form input,
body.tes-profile-premium .compact-profile-form select,
body.tes-profile-premium .compact-profile-form textarea,
body.tes-profile-premium .dashboard-modal-panel input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.tes-profile-premium .dashboard-modal-panel select,
body.tes-profile-premium .dashboard-modal-panel textarea {
  width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-radius: var(--tes-pps-radius-input) !important;
  border: 1px solid rgba(112, 34, 255, 0.1) !important;
  background: #fff !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  color: var(--tes-pps-text) !important;
  box-sizing: border-box !important;
}

body.tes-profile-premium .teg-form textarea,
body.tes-profile-premium .compact-profile-form textarea,
body.tes-profile-premium .dashboard-modal-panel textarea {
  min-height: 100px !important;
  resize: vertical;
}

body.tes-profile-premium .teg-form input::placeholder,
body.tes-profile-premium .teg-form textarea::placeholder,
body.tes-profile-premium .dashboard-modal-panel input::placeholder,
body.tes-profile-premium .dashboard-modal-panel textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

body.tes-profile-premium .teg-form input:focus,
body.tes-profile-premium .teg-form select:focus,
body.tes-profile-premium .teg-form textarea:focus,
body.tes-profile-premium .dashboard-modal-panel input:focus,
body.tes-profile-premium .dashboard-modal-panel select:focus,
body.tes-profile-premium .dashboard-modal-panel textarea:focus {
  outline: none !important;
  border-color: rgba(112, 34, 255, 0.35) !important;
  box-shadow: 0 0 0 3px rgba(112, 34, 255, 0.1), var(--tes-pps-shadow-soft) !important;
}

body.tes-profile-premium .teg-form .row,
body.tes-profile-premium .compact-profile-form .row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--tes-pps-gap) !important;
}

body.tes-profile-premium .teg-form .btn,
body.tes-profile-premium .teg-form button[type="submit"],
body.tes-profile-premium .compact-profile-form .btn,
body.tes-profile-premium .dashboard-modal-panel .btn-primary,
body.tes-profile-premium .dashboard-modal-panel button[type="submit"]:not(.dashboard-modal-close) {
  width: 100% !important;
  min-height: 52px !important;
  padding: 14px 18px !important;
  border-radius: 20px !important;
  border: none !important;
  background: var(--tes-pps-gradient-btn) !important;
  background-image: var(--tes-pps-gradient-btn) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 10px 24px rgba(112, 34, 255, 0.25) !important;
  cursor: pointer;
}

body.tes-profile-premium .teg-form .btn-secondary,
body.tes-profile-premium .dashboard-modal-panel .btn-secondary {
  background: #fff !important;
  background-image: none !important;
  color: var(--tes-pps-text) !important;
  border: 1.5px solid rgba(112, 34, 255, 0.2) !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
}

body.tes-profile-premium .dashboard-form-section,
body.tes-profile-premium .teg-form .panel,
body.tes-profile-premium .edit-profile-panel .compact-profile-form {
  padding: var(--tes-pps-gap) !important;
  border-radius: var(--tes-pps-radius-lg) !important;
  background: #fafafa !important;
  border: 1px solid rgba(112, 34, 255, 0.06) !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
}

body.tes-profile-premium body.dashboard-modal-open {
  overflow: hidden !important;
}

/* Override theme black button rules in account area only */
body.tes-profile-premium.account-dashboard .account-dashboard .btn,
body.tes-profile-premium.tes-profile-premium-account .account-dashboard .btn {
  border-color: rgba(112, 34, 255, 0.15) !important;
}

body.tes-profile-premium .account-dashboard .gigs-manager-panel .dashboard-event-actions--compact .btn,
body.tes-profile-premium .account-dashboard .gigs-manager-panel .dashboard-event-actions--compact .btn-compact-action {
  background: #fff !important;
  color: var(--tes-pps-text) !important;
  border: 1px solid rgba(112, 34, 255, 0.15) !important;
  box-shadow: var(--tes-pps-shadow-soft) !important;
  border-radius: 14px !important;
}

body.tes-profile-premium .account-dashboard .gigs-manager-panel .dashboard-event-actions--compact .btn:hover {
  background: #fafafa !important;
  border-color: rgba(112, 34, 255, 0.25) !important;
  color: var(--tes-pps-text) !important;
}

/* ===== Mobile-first ===== */
@media (max-width: 720px) {
  body.tes-profile-premium {
    --tes-pps-inset: 14px;
    --tes-pps-cover-h: clamp(190px, 46vw, 220px);
    --tes-pps-avatar: 108px;
    --tes-pps-btn-h: 86px;
    --tes-pps-gap: 14px;
    --tes-pps-font-bio: 0.875rem;
  }

  body.tes-profile-premium .tes-premium-identity {
    gap: 8px;
  }

  body.tes-profile-premium .tes-fb-title,
  body.tes-profile-premium .tes-premium-name-text .tes-fb-title {
    font-size: clamp(1.35rem, 5.2vw, 1.6rem) !important;
  }

  body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy,
  body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy--account {
    min-height: 0 !important;
  }

  body.tes-profile-premium {
    --tes-pps-font-bio: 0.9375rem;
    --tes-pps-name-max: 92%;
  }

  body.tes-profile-premium .tes-premium-meta,
  body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy,
  body.tes-profile-premium .tes-premium-meta.tes-fb-profile-copy--account {
    padding: 8px var(--tes-pps-inset) 6px !important;
  }

  body.tes-profile-premium .tes-fb-title-row {
    width: var(--tes-pps-name-max);
    max-width: var(--tes-pps-name-max);
    margin: 0 auto 8px;
    padding: 0;
  }

  body.tes-profile-premium .tes-premium-name-block {
    flex-wrap: nowrap;
    max-width: 100%;
  }

  body.tes-profile-premium .tes-premium-name-text .tes-fb-title,
  body.tes-profile-premium .tes-fb-title-row .tes-fb-title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
  }

  body.tes-profile-premium .tes-heart--title,
  body.tes-profile-premium .tes-fb-title-row .tes-profile-bell-menu {
    top: 8px;
  }

  body.tes-profile-premium .tes-premium-verified-badge {
    flex: 0 0 auto;
  }

  body.tes-profile-premium .tes-fb-bio,
  body.tes-profile-premium .tes-fb-bio--full {
    padding: 20px 18px 20px 42px !important;
    line-height: 1.56 !important;
    font-size: 0.9375rem !important;
  }

  body.tes-profile-premium .account-dashboard .tes-fb-actions--account,
  body.tes-profile-premium .tes-fb-profile-card .tes-fb-actions--account {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: var(--tes-pps-btn-h) !important;
    gap: 12px !important;
  }

  body.tes-profile-premium .act-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
  }

  body.tes-profile-premium .act-stat-card:not(:last-child)::after {
    display: none;
  }

  body.tes-profile-premium .header-wrap {
    padding: 6px 0 !important;
  }
}

@media (min-width: 900px) {
  body.tes-profile-premium-fullscreen .single-page .section .container,
  body.tes-profile-premium-account .account-dashboard .act-stats-panel,
  body.tes-profile-premium-account .account-dashboard .dashboard-reviews-panel,
  body.tes-profile-premium-account .account-dashboard .gigs-manager-panel {
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Wrapped app: never show bio accent bar (WebView / stale CSS safety) */
html.tes-native-app .tes-premium-bio-accent,
html.tes-native-app .tes-premium-bio-accent::before,
html.tes-native-app .tes-premium-bio-accent::after {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
  border: 0 !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.tes-native-app body.tes-profile-premium .tes-fb-bio,
html.tes-native-app body.tes-profile-premium .tes-fb-bio--full {
  padding-left: 22px !important;
}
