/* ========================================================================== 
   AFRIMEET — ESPACE MEMBRE PREMIUM
   Harmonise l'onboarding et toutes les pages connectées avec la nouvelle
   direction artistique lilas, blanche et violette de la page d'accueil.
   ========================================================================== */

:root {
  --app-purple: #7529d8;
  --app-purple-dark: #5d1db8;
  --app-purple-soft: #f0e5fb;
  --app-purple-wash: #faf7fe;
  --app-pink: #dc3975;
  --app-ink: #28222f;
  --app-text: #686170;
  --app-muted: #918998;
  --app-line: #e8e1ed;
  --app-white: #ffffff;
  --app-green: #178560;
  --app-shadow: 0 18px 55px rgba(73, 43, 94, .1);
  --app-shadow-soft: 0 9px 28px rgba(73, 43, 94, .07);
}

/* --- Formulaires et actions partagés --- */

#complete-profile-page-view *,
#bio-profile-page-view *,
#details-profile-page-view *,
#authenticated-app-view *,
#public-profile-page-view *,
#filters-page-view *,
#affinities-page-view *,
#visits-page-view *,
#conversations-page-view *,
#messaging-page-view *,
#subscription-page-view *,
#my-account-page-view *,
.mobile-bottom-nav * {
  box-sizing: border-box;
}

#complete-profile-page-view,
#bio-profile-page-view,
#details-profile-page-view,
#authenticated-app-view,
#public-profile-page-view,
#filters-page-view,
#affinities-page-view,
#visits-page-view,
#conversations-page-view,
#messaging-page-view,
#subscription-page-view,
#my-account-page-view {
  color: var(--app-ink);
  font-family: 'Poppins', 'Inter', sans-serif;
}

.btn-primary,
.btn-auth-premium-black {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #8c34dc);
  box-shadow: 0 11px 27px rgba(117, 41, 216, .22);
}

.btn-primary:hover,
.btn-auth-premium-black:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple-dark), var(--app-purple));
  box-shadow: 0 15px 34px rgba(117, 41, 216, .29);
}

.btn-auth-premium-black::after {
  display: none;
}

.btn-badoo-outline {
  color: var(--app-purple-dark);
  background: #fff;
  border-color: #ddd2e7;
  box-shadow: 0 5px 16px rgba(73, 43, 94, .05);
}

.btn-badoo-outline:hover {
  color: #fff;
  background: var(--app-purple);
  border-color: var(--app-purple);
}

.form-input,
.auth-input,
.auth-textarea {
  color: var(--app-ink);
  background: #fbf9fd;
  border-color: #ded6e5;
}

.form-input:focus,
.auth-input:focus,
.auth-textarea:focus {
  background: #fff;
  border-color: var(--app-purple);
  box-shadow: 0 0 0 4px rgba(117, 41, 216, .1);
}

/* --- Parcours de création du profil --- */

#complete-profile-page-view.auth-page-wrapper,
#bio-profile-page-view.auth-page-wrapper,
#details-profile-page-view.auth-page-wrapper {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  padding-bottom: 38px;
  background:
    radial-gradient(circle at 12% 12%, rgba(117, 41, 216, .1), transparent 27%),
    radial-gradient(circle at 90% 84%, rgba(220, 57, 117, .065), transparent 24%),
    #f8f5fd;
}

#complete-profile-page-view .auth-bg-img,
#complete-profile-page-view .auth-bg-overlay,
#bio-profile-page-view .auth-bg-img,
#bio-profile-page-view .auth-bg-overlay,
#details-profile-page-view .auth-bg-img,
#details-profile-page-view .auth-bg-overlay {
  display: none;
}

#complete-profile-page-view .auth-top-bar,
#bio-profile-page-view .auth-top-bar,
#details-profile-page-view .auth-top-bar {
  position: relative;
  z-index: 50;
  padding: 22px 28px 0;
}

#complete-profile-page-view .btn-auth-back-black,
#bio-profile-page-view .btn-auth-back-black,
#details-profile-page-view .btn-auth-back-black,
#public-profile-page-view .btn-auth-back-black,
#filters-page-view .btn-auth-back-black,
#affinities-page-view .btn-auth-back-black,
#visits-page-view .btn-auth-back-black,
#subscription-page-view .btn-auth-back-black,
#my-account-page-view .btn-auth-back-black {
  min-height: 42px;
  padding: 0 17px;
  color: var(--app-purple-dark);
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e3dbea;
  border-radius: 999px;
  box-shadow: 0 7px 22px rgba(73, 43, 94, .08);
  font-size: .76rem;
  font-weight: 700;
}

#complete-profile-page-view .btn-auth-back-black:hover,
#bio-profile-page-view .btn-auth-back-black:hover,
#details-profile-page-view .btn-auth-back-black:hover,
#public-profile-page-view .btn-auth-back-black:hover,
#filters-page-view .btn-auth-back-black:hover,
#affinities-page-view .btn-auth-back-black:hover,
#visits-page-view .btn-auth-back-black:hover,
#subscription-page-view .btn-auth-back-black:hover,
#my-account-page-view .btn-auth-back-black:hover {
  color: #fff;
  background: var(--app-purple);
  border-color: var(--app-purple);
  box-shadow: 0 11px 28px rgba(117, 41, 216, .2);
}

#complete-profile-page-view .profile-complete-container,
#bio-profile-page-view .profile-complete-container,
#details-profile-page-view .profile-complete-container {
  width: 100%;
  max-width: 780px;
  padding: 28px 18px 42px;
  margin: auto;
}

#complete-profile-page-view .profile-complete-card,
#bio-profile-page-view .profile-complete-card,
#details-profile-page-view .profile-complete-card {
  position: relative;
  overflow: hidden;
  padding: 34px 38px 38px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(224, 214, 232, .92);
  border-radius: 28px;
  box-shadow: var(--app-shadow);
  backdrop-filter: none;
  animation: none;
}

#bio-profile-page-view .profile-complete-container {
  max-width: 670px;
}

#details-profile-page-view .profile-complete-container {
  max-width: 880px;
}

.onboarding-step-header {
  margin-bottom: 19px;
}

#complete-profile-page-view .auth-brand,
#bio-profile-page-view .auth-brand,
#details-profile-page-view .auth-brand {
  color: var(--app-purple-dark);
  font-size: 1.26rem;
}

#complete-profile-page-view .auth-brand .brand-logo-text,
#bio-profile-page-view .auth-brand .brand-logo-text,
#details-profile-page-view .auth-brand .brand-logo-text,
#authenticated-app-view .landing-brand .brand-logo-text {
  color: var(--app-purple-dark);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--app-purple-dark);
}

#complete-profile-page-view .step-badge-pill,
#bio-profile-page-view .step-badge-pill,
#details-profile-page-view .step-badge-pill {
  color: var(--app-purple-dark);
  background: var(--app-purple-soft);
  border: 1px solid #dfc8f5;
  font-size: .68rem;
  letter-spacing: .02em;
}

.profile-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 4px 1px 28px;
}

.profile-progress::before,
.profile-progress::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: #e6ddeb;
}

.profile-progress::after {
  right: auto;
  background: linear-gradient(90deg, var(--app-purple-dark), #9b5de5);
}

#complete-profile-page-view .profile-progress::after { width: 25%; }
#bio-profile-page-view .profile-progress::after { width: 50%; }
#details-profile-page-view .profile-progress::after { width: 75%; }

.profile-progress-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #a09aa5;
  font-size: .68rem;
  font-weight: 600;
}

.profile-progress-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: #fff;
  border: 2px solid #e0d8e6;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
}

.profile-progress-item.done span,
.profile-progress-item.active span {
  color: #fff;
  background: var(--app-purple);
  border-color: var(--app-purple);
  box-shadow: 0 5px 15px rgba(117, 41, 216, .2);
}

.profile-progress-item.active {
  color: var(--app-purple-dark);
}

.profile-progress-item.done span {
  font-size: 0;
}

.profile-progress-item.done span::before {
  content: '✓';
  font-size: .76rem;
}

#complete-profile-page-view .onboarding-title,
#bio-profile-page-view .onboarding-title,
#details-profile-page-view .onboarding-title {
  margin: 0 0 8px;
  color: var(--app-ink);
  font-size: clamp(1.62rem, 4vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}

#complete-profile-page-view .onboarding-subtitle,
#bio-profile-page-view .onboarding-subtitle,
#details-profile-page-view .onboarding-subtitle {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--app-text);
  font-size: .89rem;
  line-height: 1.68;
}

#complete-profile-page-view .photo-stats-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 26px;
  padding: 10px;
  background: var(--app-purple-wash);
  border: 1px solid #e8def0;
  border-radius: 18px;
}

#complete-profile-page-view .stat-item,
#complete-profile-page-view .stat-item.highlight {
  min-height: 100%;
  padding: 11px;
  color: #5f5865;
  background: #fff;
  border: 1px solid #ece5f1;
  border-radius: 13px;
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.42;
}

#complete-profile-page-view .stat-item.highlight {
  color: var(--app-purple-dark);
  background: #f5edfc;
  border-color: #dac1f2;
}

#complete-profile-page-view .stat-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--app-purple);
  background: #f2e9fb;
  box-shadow: none;
}

#complete-profile-page-view .stat-icon-svg svg {
  width: 15px;
  height: 15px;
}

#complete-profile-page-view .photo-grid-label {
  margin: 0 0 12px;
  color: var(--app-ink);
  font-size: .82rem;
}

#complete-profile-page-view .photo-grid-label small {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: .65rem;
  font-weight: 500;
}

#complete-profile-page-view .count-badge,
#bio-profile-page-view .count-badge {
  color: var(--app-purple-dark) !important;
  background: var(--app-purple-soft) !important;
}

#complete-profile-page-view .profile-photos-grid {
  gap: 11px;
  margin-bottom: 15px;
}

#complete-profile-page-view .photo-slot {
  border-radius: 16px;
}

#complete-profile-page-view .photo-slot.empty {
  background: #fbf9fd;
  border: 1.5px dashed #cfc1da;
}

#complete-profile-page-view .photo-slot.empty:hover {
  background: #f5edfc;
  border-color: var(--app-purple);
}

#complete-profile-page-view .empty-slot-content .plus-icon {
  color: var(--app-purple);
}

#complete-profile-page-view .btn-upload-gallery {
  height: 50px;
  margin-bottom: 22px;
  color: var(--app-purple-dark);
  background: #fff;
  border: 1px solid #dcd1e5;
  box-shadow: var(--app-shadow-soft);
}

#complete-profile-page-view .btn-upload-gallery:hover {
  color: #fff;
  background: var(--app-purple);
  border-color: var(--app-purple);
}

#complete-profile-page-view .photo-guidelines-section {
  padding: 18px;
  background: #fbf9fd;
  border: 1px solid #e7e0eb;
  border-radius: 18px;
}

#complete-profile-page-view .guidelines-title {
  color: var(--app-ink);
  font-size: .9rem;
}

#complete-profile-page-view .guidelines-title svg {
  color: var(--app-purple);
}

#complete-profile-page-view .guidelines-content-grid {
  grid-template-columns: 175px 1fr;
  gap: 18px;
}

#complete-profile-page-view .guide-infographic-img-compact {
  border-color: #e3dbea;
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(73, 43, 94, .11);
}

#complete-profile-page-view .rule-item {
  gap: 9px;
  color: #5f5964;
  font-size: .73rem;
}

#bio-profile-page-view .auth-textarea {
  min-height: 180px;
  padding: 18px;
  border-radius: 16px;
  line-height: 1.65;
  resize: vertical;
}

#bio-profile-page-view .security-warning-box {
  color: #765b22;
  background: #fffaf0;
  border-color: #f0dfb6;
  border-radius: 15px;
}

#bio-profile-page-view .security-warning-box svg {
  stroke: #9a7120;
}

#details-profile-page-view .auth-form-group,
#details-profile-page-view .auth-form-row {
  padding: 18px;
  background: #fbf9fd;
  border: 1px solid #ebe4ef;
  border-radius: 18px;
}

#details-profile-page-view .auth-form-row {
  gap: 13px;
  margin-bottom: 12px;
}

#details-profile-page-view .auth-form-group .auth-form-row {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#details-profile-page-view .auth-input {
  height: 47px;
  background-color: #fff;
  border-radius: 12px;
}

#details-profile-page-view .age-calculated-info {
  color: var(--app-green);
  background: #edf9f4;
  border-color: #c8eada;
}

#details-profile-page-view .details-extra-section {
  margin-top: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(117, 41, 216, .07), transparent 32%),
    #fbf9fd;
  border: 1px solid #e7deed;
  border-radius: 20px;
}

#details-profile-page-view .details-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e9e1ee;
}

#details-profile-page-view .details-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--app-purple);
  background: #efe3fa;
  border: 1px solid #ddc8ef;
  border-radius: 13px;
}

#details-profile-page-view .details-section-icon svg {
  width: 19px;
  height: 19px;
}

#details-profile-page-view .details-section-heading h2 {
  margin: 1px 0 4px;
  color: var(--app-ink);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -.02em;
}

#details-profile-page-view .details-section-heading p {
  margin: 0;
  color: var(--app-text);
  font-size: .78rem;
  line-height: 1.5;
}

#details-profile-page-view .details-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}

#details-profile-page-view .details-field {
  min-width: 0;
}

#details-profile-page-view .details-field .auth-label {
  margin: 0 0 7px;
  color: #514957;
  font-size: .75rem;
}

#details-profile-page-view .details-field .auth-input {
  height: 49px;
  padding-right: 36px;
  background: #fff;
  border-color: #ddd3e4;
  box-shadow: 0 3px 11px rgba(73, 43, 94, .035);
}

#details-profile-page-view .details-section-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  color: #827889;
  font-size: .7rem;
  line-height: 1.45;
}

#details-profile-page-view .details-section-note::before {
  content: '✓';
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: var(--app-green);
  background: #eaf7f1;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
}

#details-profile-page-view .details-extra-section + .btn-auth-premium-black {
  margin-top: 22px !important;
}

/* --- Cadre partagé de l'espace membre --- */

#authenticated-app-view,
#public-profile-page-view,
#filters-page-view,
#affinities-page-view,
#visits-page-view,
#subscription-page-view,
#my-account-page-view {
  background:
    radial-gradient(circle at 85% 5%, rgba(117, 41, 216, .07), transparent 22%),
    #faf8fc !important;
}

#authenticated-app-view > .landing-header {
  min-height: 74px;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--app-line) !important;
  box-shadow: 0 8px 28px rgba(73, 43, 94, .055) !important;
  backdrop-filter: blur(16px);
}

#authenticated-app-view .landing-brand {
  color: var(--app-purple-dark);
}

#authenticated-app-view .nav-menu-item {
  min-height: 40px;
  padding: 0 13px;
  color: #625a69;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8rem;
}

#authenticated-app-view .nav-menu-item:hover {
  color: var(--app-purple-dark);
  background: #f5eefb;
  border-color: #eadcf5;
}

#authenticated-app-view .nav-menu-item.premium-menu-btn {
  color: #76530d;
  background: #fff9ec;
  border-color: #f1dfb5;
}

#authenticated-app-view > .landing-container {
  max-width: 1180px;
  padding-top: 42px !important;
  animation: none;
}

#authenticated-app-view .feed-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

#authenticated-app-view .feed-heading-copy {
  max-width: 720px;
}

#authenticated-app-view .feed-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: #28765d;
  background: #edf9f4;
  border: 1px solid #c8e8da;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
}

#authenticated-app-view .feed-live-badge i {
  width: 7px;
  height: 7px;
  background: #28a778;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(40, 167, 120, .12);
  animation: feed-live-pulse 2s ease-in-out infinite;
}

#authenticated-app-view #feed-main-title {
  margin: 11px 0 5px !important;
  color: var(--app-ink) !important;
  font-size: clamp(1.72rem, 3vw, 2.25rem) !important;
  line-height: 1.14;
  letter-spacing: -.04em;
}

#authenticated-app-view #feed-target-gender-subtitle {
  margin: 0 !important;
  color: var(--app-text) !important;
  font-size: .9rem !important;
  line-height: 1.55;
}

#authenticated-app-view .feed-filter-button {
  display: flex;
  min-width: 190px;
  height: 58px;
  padding: 0 17px;
  align-items: center;
  gap: 11px;
  color: var(--app-purple-dark);
  background: #fff;
  border: 1px solid #ded3e6;
  border-radius: 17px;
  box-shadow: 0 9px 25px rgba(73, 43, 94, .08);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

#authenticated-app-view .feed-filter-button:hover {
  transform: translateY(-2px);
  border-color: #c8ace0;
  box-shadow: 0 13px 30px rgba(73, 43, 94, .13);
}

#authenticated-app-view .feed-filter-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #974ae2);
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(117, 41, 216, .2);
}

#authenticated-app-view .feed-filter-button > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

#authenticated-app-view .feed-filter-button strong {
  font-size: .8rem;
}

#authenticated-app-view .feed-filter-button small {
  margin-top: 3px;
  color: #8b8191;
  font-size: .62rem;
}

#authenticated-app-view .feed-discovery-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  color: #6d6373;
  background: rgba(255, 255, 255, .76);
  border: 1px solid #ebe3ef;
  border-radius: 12px;
  font-size: .68rem;
}

#authenticated-app-view .feed-discovery-toolbar {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#authenticated-app-view .feed-restore-button {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8a8290;
  background: #f7f4f8;
  border: 1px solid #e7dfea;
  border-radius: 12px;
  font-size: .68rem;
  font-weight: 800;
  cursor: not-allowed;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#authenticated-app-view .feed-restore-button.has-hidden {
  color: #4d2870;
  background: #fff;
  border-color: #d8c4e5;
  box-shadow: 0 7px 20px rgba(73, 43, 94, .08);
  cursor: pointer;
}

#authenticated-app-view .feed-restore-button.has-hidden:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--app-purple);
  border-color: var(--app-purple);
}

#authenticated-app-view .feed-discovery-note svg {
  color: var(--app-purple);
  flex: 0 0 auto;
}

#authenticated-members-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  align-items: start;
  gap: 25px !important;
}

#authenticated-members-grid .auth-member-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6ddea !important;
  border-radius: 25px !important;
  box-shadow: 0 13px 38px rgba(73, 43, 94, .09) !important;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
}

#authenticated-members-grid .auth-member-card:hover {
  transform: translateY(-6px);
  border-color: #d9c8e6 !important;
  box-shadow: 0 24px 54px rgba(73, 43, 94, .15) !important;
}

#authenticated-members-grid .auth-member-card.is-return-focus {
  border-color: #a972d4 !important;
  box-shadow: 0 0 0 4px rgba(117, 41, 216, .11), 0 24px 54px rgba(73, 43, 94, .15) !important;
  animation: profile-return-focus 1.5s ease both;
}

#authenticated-members-grid .member-photo-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  overflow: hidden;
  background: #281c31;
}

#authenticated-members-grid .member-profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.001);
  transition: opacity .18s ease, transform .65s cubic-bezier(.2,.8,.2,1);
}

#authenticated-members-grid .auth-member-card:hover .member-profile-photo {
  transform: scale(1.025);
}

#authenticated-members-grid .member-profile-photo.is-switching {
  opacity: .36;
  transform: scale(1.045);
}

#authenticated-members-grid .member-photo-gradient {
  position: absolute;
  z-index: 1;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(18, 9, 23, .92), rgba(18, 9, 23, .36) 62%, transparent);
  pointer-events: none;
}

#authenticated-members-grid .member-photo-topline {
  position: absolute;
  z-index: 4;
  top: 13px;
  right: 13px;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#authenticated-members-grid .member-photo-left-stack {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

#authenticated-members-grid .member-photo-count,
#authenticated-members-grid .member-online-chip {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: rgba(30, 20, 36, .62);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.17);
  backdrop-filter: blur(10px);
  font-size: .67rem;
  font-weight: 800;
}

#authenticated-members-grid .member-photo-count {
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  gap: 8px;
  background: linear-gradient(135deg, rgba(34, 20, 43, .82), rgba(82, 45, 105, .64));
  border-color: rgba(255, 255, 255, .32);
  border-radius: 14px;
  box-shadow: 0 9px 24px rgba(16, 9, 21, .24), inset 0 1px rgba(255, 255, 255, .08);
}

#authenticated-members-grid .member-photo-count-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .23), rgba(255, 255, 255, .1));
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 10px;
}

#authenticated-members-grid .member-photo-count-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

#authenticated-members-grid .member-photo-count-copy strong {
  color: #fff;
  font-size: .72rem;
  letter-spacing: .02em;
}

#authenticated-members-grid .member-photo-count-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .7);
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#authenticated-members-grid .member-online-chip i {
  width: 7px;
  height: 7px;
  background: #abb0b0;
  border-radius: 50%;
}

#authenticated-members-grid .member-online-chip.is-online {
  color: #e9fff7;
  background: rgba(17, 76, 57, .68);
  border-color: rgba(102, 232, 190, .32);
}

#authenticated-members-grid .member-online-chip.is-online i {
  background: #41dea9;
  box-shadow: 0 0 0 4px rgba(65, 222, 169, .14);
}

#authenticated-members-grid .member-photo-arrow {
  position: absolute;
  z-index: 5;
  top: 48%;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #fff;
  background: rgba(25, 15, 31, .48);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}

#authenticated-members-grid .member-photo-arrow.previous { left: 12px; }
#authenticated-members-grid .member-photo-arrow.next { right: 12px; }

#authenticated-members-grid .member-photo-arrow:hover {
  background: var(--app-purple);
  transform: translateY(-50%) scale(1.08);
}

#authenticated-members-grid .member-photo-dots {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 83px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

#authenticated-members-grid .member-photo-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

#authenticated-members-grid .member-photo-dot.active {
  width: 21px;
  background: linear-gradient(90deg, #fff, #ead7f8);
  border-color: rgba(255, 255, 255, .82);
  transform: scaleY(1.08);
}

#authenticated-members-grid .member-photo-identity {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 19px;
  left: 18px;
  color: #fff;
}

#authenticated-members-grid .member-photo-identity h3 {
  display: flex;
  margin: 0 0 5px;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-shadow: 0 3px 14px rgba(0,0,0,.3);
}

#authenticated-members-grid .member-photo-identity p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.9);
  font-size: .77rem;
}

#authenticated-members-grid .member-verified-badge {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  color: #fff;
  background: #7d35da;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

#authenticated-members-grid .member-attention-badge {
  display: inline-flex;
  min-height: 32px;
  padding: 0 5px 0 11px;
  align-items: center;
  gap: 7px;
  justify-content: center;
  color: #fff;
  background: rgba(220, 38, 38, .96);
  border: 1px solid rgba(254, 202, 202, .82);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(127, 29, 29, .32);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .01em;
}

#authenticated-members-grid .member-attention-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #fff;
  background: rgba(127, 29, 29, .48);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}

#authenticated-members-grid .member-card-content {
  display: flex;
  padding: 18px;
  flex: 1;
  flex-direction: column;
}

#authenticated-members-grid .member-card-intro {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-left: 3px solid #b692e8;
  border-radius: 4px 13px 13px 4px;
  background: linear-gradient(110deg, #f5effc, #fcfaff);
}

#authenticated-members-grid .member-card-bio,
#public-profile-bio {
  display: -webkit-box;
  min-height: 0;
  max-height: 3em;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: #5f5765;
  font-size: .8rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

#public-profile-page-view .public-profile-intro {
  background: linear-gradient(120deg, #f4edfc, #fff) !important;
  border-color: #e6d8f4 !important;
}

#public-profile-page-view .public-profile-intro h4 svg {
  stroke: #6D2FD0;
}

#authenticated-members-grid .member-card-tags {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 17px;
  gap: 6px;
}

#authenticated-members-grid .member-card-tags > span {
  display: inline-flex;
  min-width: 0;
  min-height: 28px;
  padding: 5px 7px;
  align-items: center;
  gap: 4px;
  color: #706776;
  background: #f7f3fa;
  border: 1px solid #eee7f2;
  border-radius: 999px;
  font-size: .63rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

#authenticated-members-grid .member-card-tags > span:first-child {
  flex-shrink: 0;
}

#authenticated-members-grid .member-card-tag-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#authenticated-members-grid .member-card-tags svg {
  color: #9176a5;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  #authenticated-members-grid .member-card-tags { gap: 4px; }
  #authenticated-members-grid .member-card-tags > span { padding: 4px 5px; gap: 3px; font-size: .6rem; }
  #authenticated-members-grid .member-card-tags svg { width: 11px; height: 11px; }
}

#authenticated-members-grid .member-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
}

#authenticated-members-grid .member-main-action {
  display: flex;
  min-width: 0;
  height: 60px;
  padding: 0 11px;
  align-items: center;
  gap: 9px;
  text-align: left;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#authenticated-members-grid .member-main-action:hover {
  transform: translateY(-2px);
}

#authenticated-members-grid .member-main-action.is-coucou {
  color: var(--app-purple-dark);
  background: #f5edfc;
  border: 1px solid #dfc8f3;
}

#authenticated-members-grid .member-main-action.is-coucou:hover {
  background: #efe1fa;
  box-shadow: 0 9px 20px rgba(117, 41, 216, .11);
}

#authenticated-members-grid .member-main-action.is-coucou.is-sent {
  color: #176b54;
  background: #effaf5;
  border-color: #a9dfcb;
}

#authenticated-members-grid .member-main-action.is-coucou.is-sent .member-main-action-icon {
  color: #fff;
  background: linear-gradient(135deg, #32b689, #198361);
  border-color: transparent;
}

#authenticated-members-grid .member-main-action.is-coucou:disabled {
  opacity: .7;
  cursor: wait;
}

#authenticated-members-grid .member-main-action.is-coucou.is-sent:disabled {
  opacity: 1;
  cursor: not-allowed;
}

#authenticated-members-grid .member-main-action.is-coucou.is-sent:disabled:hover {
  box-shadow: none;
  transform: none;
}

#authenticated-members-grid .member-main-action.is-message {
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #9341df);
  border: 1px solid transparent;
  box-shadow: 0 9px 22px rgba(117, 41, 216, .2);
}

#authenticated-members-grid .member-main-action.is-message:hover {
  box-shadow: 0 13px 28px rgba(117, 41, 216, .3);
}

#authenticated-members-grid .member-main-action.is-locked {
  color: #5f5368;
  background: #f5f1f7;
  border-color: #e4dce9;
  box-shadow: none;
}

#authenticated-members-grid .member-main-action-icon {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, .7);
  border-radius: 11px;
}

#authenticated-members-grid .is-message:not(.is-locked) .member-main-action-icon {
  background: rgba(255,255,255,.16);
}

#authenticated-members-grid .member-main-action-icon i {
  position: absolute;
  top: -6px;
  right: -7px;
  font-size: .58rem;
  font-style: normal;
}

#authenticated-members-grid .member-main-action > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

#authenticated-members-grid .member-main-action strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
}

#authenticated-members-grid .member-main-action small {
  margin-top: 2px;
  overflow: hidden;
  font-size: .56rem;
  line-height: 1.15;
  opacity: .76;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#authenticated-members-grid .member-secondary-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #eee8f1;
}

#authenticated-members-grid .member-utility-action {
  display: flex;
  min-width: 0;
  padding: 4px 2px;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  color: #7b727f;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

#authenticated-members-grid .member-utility-action > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  background: #f6f2f8;
  border: 1px solid #ebe3ef;
  border-radius: 10px;
}

#authenticated-members-grid .member-utility-action small {
  max-width: 100%;
  overflow: hidden;
  font-size: .58rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#authenticated-members-grid .member-utility-action:hover {
  color: var(--app-purple-dark);
  background: #faf7fc;
}

#authenticated-members-grid .member-utility-action.is-like,
#authenticated-members-grid .member-utility-action.is-like.liked {
  color: var(--app-pink);
}

#authenticated-members-grid .member-utility-action.is-like > span {
  background: #fcedf3;
  border-color: #f2cedc;
}

#authenticated-members-grid .member-utility-action.is-like:disabled {
  opacity: .65;
  cursor: wait;
}

#authenticated-members-grid .member-utility-action.is-like.liked > span {
  color: #fff;
  background: linear-gradient(135deg, #e83e78, #c51f5d);
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(197, 31, 93, .22);
}

#authenticated-members-grid .member-utility-action.is-report:hover {
  color: #a23d5a;
}

#affinities-list-container .affinity-member-card {
  display: flex;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6ddea;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(73, 43, 94, .06);
}

#affinities-list-container .affinity-member-identity {
  display: flex;
  min-width: 0;
  padding: 0;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

#affinities-list-container .affinity-member-identity img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 17px;
  box-shadow: 0 5px 15px rgba(73, 43, 94, .15);
}

#affinities-list-container .affinity-member-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#affinities-list-container .affinity-member-copy > strong {
  overflow: hidden;
  color: #1e1724;
  font-size: .91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#affinities-list-container .affinity-member-copy > span {
  color: #817787;
  font-size: .7rem;
}

#affinities-list-container .affinity-kinds {
  display: flex;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 5px;
}

#affinities-list-container .affinity-kind {
  display: inline-flex;
  padding: 4px 7px;
  align-items: center;
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 800;
}

#affinities-list-container .affinity-kind.is-like {
  color: #b91c55;
  background: #fcecf3;
}

#affinities-list-container .affinity-kind.is-coucou {
  color: #7c4b12;
  background: #fff4d6;
}

#affinities-list-container .affinity-member-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

#affinities-list-container .affinity-member-actions button {
  display: inline-flex;
  height: 36px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: .7rem;
}

#affinities-list-container .affinity-empty-state {
  display: flex;
  padding: 34px 22px;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: #776d7d;
  text-align: center;
  background: #fff;
  border: 1px dashed #d9cce1;
  border-radius: 20px;
}

#affinities-list-container .affinity-empty-state strong {
  color: #35253f;
  font-size: .95rem;
}

#affinities-list-container .affinity-empty-state span {
  font-size: .75rem;
}

@keyframes feed-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@keyframes profile-return-focus {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

.profile-report-dialog {
  max-width: 500px;
}

.profile-report-intro {
  margin-bottom: 16px !important;
}

.profile-report-fields {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.profile-report-fields label {
  margin-top: 3px;
  color: #3b2e43;
  font-size: .75rem;
  font-weight: 800;
}

.profile-report-fields textarea {
  min-height: 96px;
  resize: vertical;
}

.profile-report-error {
  min-height: 18px;
  color: #b42344;
  font-size: .72rem;
  font-weight: 700;
}

/* En-têtes des vues secondaires */

.member-section-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
}
.member-section-header h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(.95rem, 3.8vw, 1.15rem);
  font-weight: 700;
  color: var(--app-ink);
}
.member-section-header h1 svg { color: var(--app-purple); flex-shrink: 0; }
.member-section-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid #e3d8f5;
  border-radius: 14px;
  background: #f4effc;
  color: #4b1fa3;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
}
.member-section-back:hover { background: #eae0fa; }
.member-section-back:focus-visible,
.affinities-premium-button:focus-visible,
.account-photos button:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.affinities-premium-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(ellipse at top right, #a068eb66, transparent 65%), linear-gradient(120deg,#6d2fd0,#4b1fa3);
  box-shadow: 0 12px 30px #6d2fd029, inset 0 1px 0 #ffffff30;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.affinities-premium-button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px #6d2fd03d; }
.affinities-premium-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: #ffffff1a; color: #ffe5ac; border: 1px solid #ffffff30; }
.affinities-premium-copy { display: grid; gap: 4px; flex: 1; }
.affinities-premium-copy small { color: #e8d6ff; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.affinities-premium-copy strong { font-size: clamp(.85rem, 3.3vw, 1rem); line-height: 1.5; font-weight: 600; }
.affinities-premium-arrow { flex-shrink: 0; }

.account-photos { padding-bottom: 20px; border-bottom: 1px solid #ebe5f4; }
.account-photos-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-photos-heading h3 { margin: 0; font-size: 1rem; color: #24133e; }
.account-photos-heading > span { padding: 5px 10px; border-radius: 20px; background: #f0e9fc; color: #6d2fd0; font-size: .75rem; font-weight: 600; }
.account-photos p, .account-name-help { color: #70667b; font-size: .76rem; line-height: 1.6; margin: 8px 0 14px; }
.account-photos-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; outline-offset: 4px; }
.account-photo-card { overflow: hidden; margin: 0; background: #fff; border: 1px solid #e6dcf3; border-radius: 18px; box-shadow: 0 5px 18px #6d2fd00a; }
.account-photo-preview { position: relative; aspect-ratio: 4/4.5; background: #f2edf9; }
.account-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-photo-preview > span { position: absolute; bottom: 9px; left: 9px; right: 9px; width: fit-content; padding: 5px 8px; color: white; background: #23133ccf; border: 1px solid #ffffff30; backdrop-filter: blur(10px); border-radius: 8px; font-size: .65rem; font-weight: 600; }
.account-photo-actions { display: flex; flex-wrap: wrap; padding: 5px; gap: 2px; }
.account-photo-actions button { display: inline-flex; align-items: center; justify-content: center; flex: 1; min-height: 44px; gap: 4px; padding: 5px; border: 0; border-radius: 9px; background: transparent; color: #6d2fd0; font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.account-photo-actions button:hover { background: #f4effc; }
.account-photo-actions button[data-photo-action="delete"] { color: #ac3154; }
.account-photo-add { min-height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; border: 1.5px dashed #c8afe8; border-radius: 18px; background: linear-gradient(140deg,#faf7ff,#f1eafa); color: #6d2fd0; font: inherit; cursor: pointer; }
.account-photo-add strong { font-size: .82rem; }
.account-photo-add > span { font-size: .65rem; color: #837090; line-height: 1.5; }
.account-photo-add:hover { background: #eae0fa; }
.account-photos button:disabled { opacity: .55; cursor: progress; }
.account-photos .account-photo-trust { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 0; color: #6a5383; }
.account-photo-trust svg { flex-shrink: 0; margin-top: 2px; }
#account-photo-status:empty { display: none; }
#account-photo-status { color: #4b1fa3; }
.account-photo-loading { grid-column: 1/-1; }
@media (min-width: 768px) {
  .account-photos-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .member-section-header { gap: 12px; }
  .affinities-premium-button { padding: 16px 14px; gap: 10px; }
  .affinities-premium-icon { flex-basis: 38px; height: 38px; }
  .account-photos-grid { gap: 10px; }
  .account-photo-actions button { flex-basis: 100%; }
  .account-photo-add { padding: 12px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .affinities-premium-button { transition: none; }
  .affinities-premium-button:hover { transform: none; }
}

#public-profile-page-view > div:first-child,
#filters-page-view > div:first-child,
#affinities-page-view > div:first-child,
#visits-page-view > div:first-child,
#subscription-page-view > div:first-child,
#my-account-page-view > div:first-child {
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2)) !important;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--app-line) !important;
  box-shadow: 0 7px 25px rgba(73, 43, 94, .05);
  backdrop-filter: blur(16px);
}

#public-profile-page-view > div:first-child > div:nth-child(2),
#filters-page-view > div:first-child > div:nth-child(2),
#affinities-page-view > div:first-child > div:nth-child(2),
#visits-page-view > div:first-child > div:nth-child(2),
#subscription-page-view > div:first-child > div:nth-child(2),
#my-account-page-view > div:first-child > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-ink) !important;
  letter-spacing: -.02em;
}

#public-profile-page-view > .landing-container,
#filters-page-view > .landing-container,
#affinities-page-view > .landing-container,
#visits-page-view > .landing-container,
#subscription-page-view > .landing-container,
#my-account-page-view > .landing-container {
  padding-top: 36px !important;
  animation: none;
}

/* Profil public */

#public-profile-page-view > .landing-container {
  max-width: 620px !important;
}

#public-profile-page-view > .landing-container > div {
  border-color: var(--app-line) !important;
  border-radius: 26px !important;
  box-shadow: var(--app-shadow) !important;
}

#public-profile-page-view > .landing-container > div > div:first-child {
  padding: 34px 20px !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.13), transparent 24%),
    linear-gradient(135deg, var(--app-purple-dark), #8a3edb) !important;
}

#public-profile-page-view [style*="background:#F8FAFC"],
#public-profile-page-view [style*="background:#F1F5F9"] {
  background: #f8f5fb !important;
  border-color: #e8e0ed !important;
}

/* Filtres, affinités, visites et compte */

#filters-page-view > .landing-container > div,
#my-account-page-view > .landing-container > div {
  padding: 30px !important;
  border-color: var(--app-line) !important;
  border-radius: 24px !important;
  box-shadow: var(--app-shadow) !important;
}

#affinities-page-view > .landing-container > div:first-child {
  color: #694d17 !important;
  background: #fffaf0 !important;
  border-color: #eeddae !important;
}

#visits-page-view > .landing-container > div:first-child {
  color: var(--app-green) !important;
  background: #eff9f5 !important;
  border-color: #c7e8d9 !important;
}

#affinities-list-container > div,
#visits-list-container > div {
  padding: 13px 15px !important;
  background: #fff !important;
  border-color: var(--app-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 17px rgba(73, 43, 94, .055);
}

#affinities-list-container img,
#visits-list-container img {
  width: 50px !important;
  height: 50px !important;
  border: 2px solid #eadcf4;
}

#affinities-list-container > div > div:first-child,
#visits-list-container > div > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

#affinities-list-container .btn-primary {
  width: auto;
  min-width: 122px;
  flex: 0 0 auto;
}

#my-account-page-view .form-label,
#filters-page-view .form-label {
  color: #514956;
  font-size: .77rem;
  font-weight: 700;
}

#my-account-page-view .form-input,
#filters-page-view .form-input {
  min-height: 47px;
  border-radius: 12px;
}

.public-profile-verified-badge {
  display: inline-flex;
  min-height: 27px;
  margin: 3px 0 8px;
  padding: 0 10px;
  align-items: center;
  gap: 5px;
  color: #eafff7;
  background: rgba(24, 164, 116, .28);
  border: 1px solid rgba(151, 255, 217, .35);
  border-radius: 999px;
  font-size: .63rem;
  font-weight: 800;
}

.public-profile-verified-badge[hidden] { display: none; }

.public-profile-attention-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  min-height: 30px;
  margin: 0;
  padding: 0 7px 0 10px;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: #dc2626;
  border: 1px solid rgba(254, 202, 202, .7);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(127, 29, 29, .3);
  font-size: .68rem;
  font-weight: 900;
}

.public-profile-attention-badge[hidden] { display: none; }

/* Vérification d’identité */
.verification-modal-content {
  width: min(640px, calc(100vw - 28px));
  max-width: 640px;
  max-height: min(90vh, 820px);
  overflow-y: auto;
  border: 1px solid rgba(112, 43, 214, .12);
  box-shadow: 0 28px 80px rgba(24, 17, 44, .22);
}

.verification-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.verification-privacy-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #ddd4f2;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8f5ff, #fff);
  color: #302454;
}

.verification-privacy-note > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #6f2bd6;
  box-shadow: 0 5px 14px rgba(69, 31, 128, .1);
}

.verification-privacy-note strong { display: block; font-size: .86rem; }
.verification-privacy-note p { margin: 3px 0 0; color: #6a6280; font-size: .78rem; line-height: 1.45; }

.verification-quality-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #f0d7a1;
  background: #fffaf0;
  color: #805611;
}

.verification-quality-note strong { font-size: .82rem; }
.verification-quality-note span { font-size: .76rem; line-height: 1.45; }

.verification-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.verification-upload-field {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid #ded9e9;
  border-radius: 16px;
  background: #fbfafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.verification-upload-field:hover {
  border-color: #9b67e4;
  box-shadow: 0 9px 24px rgba(75, 39, 125, .1);
  transform: translateY(-1px);
}

.verification-upload-selfie { grid-column: 1 / -1; }
.verification-upload-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #6f2bd6;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  margin-bottom: 3px;
}

.verification-upload-field strong { color: #211a33; font-size: .84rem; }
.verification-upload-field small { color: #766e87; font-size: .72rem; line-height: 1.35; }
.verification-upload-field input[type="file"] {
  width: 100%;
  margin-top: 8px;
  color: #514963;
  font-size: .72rem;
}

.verification-upload-field input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  margin-right: 8px;
  background: #ede5fa;
  color: #5520a0;
  font-weight: 800;
  cursor: pointer;
}

.verification-file-help { margin: -3px 0 0; color: #7a7387; font-size: .72rem; text-align: center; }
.verification-submit-button { min-height: 48px; }

.account-save-button {
  display: inline-flex;
  width: 100%;
  height: 50px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 15px !important;
}

.account-verification-card {
  display: grid;
  min-height: 112px;
  margin-top: 4px;
  padding: 17px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  background: linear-gradient(135deg, #f8f2fd, #fdfbff);
  border: 1px solid #dfd0e9;
  border-radius: 19px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.account-verification-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--app-purple-dark);
  background: #fff;
  border: 1px solid #e3d5ec;
  border-radius: 15px;
  box-shadow: 0 7px 17px rgba(73, 43, 94, .09);
}

.account-verification-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-verification-copy small {
  margin-bottom: 4px;
  color: #897593;
  font-size: .59rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.account-verification-copy strong {
  color: #36233f;
  font-size: .88rem;
}

.account-verification-copy p {
  margin: 4px 0 0;
  color: #75667d;
  font-size: .68rem;
  line-height: 1.45;
}

.account-verification-action {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #9341db);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(117, 41, 216, .2);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-verification-action:hover { transform: translateY(-1px); }
.account-verification-action[hidden] { display: none; }

.account-verification-static {
  display: inline-flex;
  min-height: 34px;
  padding: 0 11px;
  align-items: center;
  gap: 6px;
  color: #176b54;
  background: #fff;
  border: 1px solid #b7dfd1;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 850;
  white-space: nowrap;
}

.account-verification-static[hidden] { display: none; }
.account-verification-card.is-verified {
  background: linear-gradient(135deg, #edf9f4, #fafffd);
  border-color: #b7dfd1;
  box-shadow: 0 10px 24px rgba(23, 133, 96, .08);
}
.account-verification-card.is-verified .account-verification-icon {
  color: #fff;
  background: linear-gradient(135deg, #2ab784, #16815e);
  border-color: transparent;
}
.account-verification-card.is-pending {
  background: linear-gradient(135deg, #fff8e8, #fffdf8);
  border-color: #ecd89e;
}
.account-verification-card.is-pending .account-verification-icon { color: #9b6814; border-color: #ead7a7; }
.account-verification-card.is-pending .account-verification-static { color: #8b5d11; border-color: #ead7a7; }
.account-verification-card.is-rejected {
  background: linear-gradient(135deg, #fff3f5, #fffafb);
  border-color: #efc7d1;
}
.account-verification-card.is-rejected .account-verification-icon { color: #b52e51; border-color: #efc7d1; }

.account-secondary-actions {
  display: grid;
  margin-top: 2px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-support-button,
.account-logout-button {
  display: flex;
  min-height: 64px;
  padding: 11px 13px;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.account-support-button {
  color: #513666;
  border: 1px solid #dfd2e7;
}

.account-logout-button {
  color: #9d2845;
  background: #fffafb;
  border: 1px solid #edccd4;
}

.account-support-button:hover,
.account-logout-button:hover {
  box-shadow: 0 8px 19px rgba(73, 43, 94, .08);
  transform: translateY(-1px);
}

.account-support-button > span,
.account-logout-button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-support-button strong,
.account-logout-button strong { font-size: .72rem; }
.account-support-button small,
.account-logout-button small { margin-top: 3px; color: #8b7e93; font-size: .57rem; line-height: 1.3; }

/* Premium */

#subscription-page-view > .landing-container {
  max-width: 760px !important;
}

.plan-col {
  background: #faf8fc;
  border-color: #e4dce9;
}

.plan-col.featured {
  background: #f5edfc;
  border-color: #caa4ed;
  box-shadow: 0 10px 30px rgba(117, 41, 216, .12);
}

.plan-badge {
  background: var(--app-purple);
}

.duration-card {
  background: #faf8fc;
  border-color: #e2d9e8;
}

.duration-card.active,
.duration-card:hover {
  background: #f4eafb;
  border-color: var(--app-purple);
  box-shadow: 0 7px 20px rgba(117, 41, 216, .12);
}

.duration-card.is-current-plan .discount-tag {
  display: none;
}

.duration-cost {
  color: var(--app-purple);
}

.why-choose-afrimeet-section {
  background: #fff !important;
  border-color: var(--app-line) !important;
  box-shadow: var(--app-shadow-soft) !important;
}

.premium-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.premium-status-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e8dcef;
  border-radius: 15px;
  background: #faf7fd;
}

.premium-status-card span {
  color: #796b82;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.premium-status-card strong {
  color: var(--app-purple-dark);
  font-size: .92rem;
}

.btn-cancel-premium:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.premium-operation-overlay {
  position: fixed;
  inset: 0;
  z-index: 250000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 7, 23, .72);
  backdrop-filter: blur(14px);
}

.premium-operation-overlay.active {
  display: grid;
}

.premium-operation-dialog {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid rgba(117, 41, 216, .16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(36, 19, 46, .3);
  text-align: center;
  animation: scaleUp .22s ease;
}

.premium-operation-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #9a4be0);
  box-shadow: 0 10px 25px rgba(117, 41, 216, .24);
  font-size: 1.65rem;
  font-weight: 900;
}

.premium-operation-overlay.is-success .premium-operation-icon { background: linear-gradient(135deg, #059669, #10b981); }
.premium-operation-overlay.is-error .premium-operation-icon { background: linear-gradient(135deg, #dc2626, #ef4444); }
.premium-operation-overlay.is-warning .premium-operation-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }
.premium-operation-overlay.is-info .premium-operation-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.premium-operation-overlay.is-confirm .premium-operation-icon { background: linear-gradient(135deg, var(--app-purple), #9a4be0); }

.premium-operation-dialog h2 {
  margin: 0 0 8px;
  color: #211629;
  font-size: 1.22rem;
}

.premium-operation-dialog p {
  margin: 0;
  color: #685c70;
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-line;
}

.premium-operation-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.premium-operation-actions button {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.premium-operation-cancel {
  border: 1px solid #ded4e5;
  color: #594761;
  background: #fff;
}

.premium-operation-confirm {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #9341db);
  box-shadow: 0 8px 20px rgba(117, 41, 216, .22);
}

.premium-operation-overlay.is-error .premium-operation-confirm,
.premium-operation-overlay.is-warning .premium-operation-confirm {
  background: #b42318;
  box-shadow: 0 8px 20px rgba(180, 35, 24, .18);
}

/* Messagerie */

.message-nav-badge,
.activity-nav-badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: #2563EB;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.message-nav-badge[hidden], .activity-nav-badge[hidden] { display: none !important; }
.mobile-nav-icon-wrapper { position: relative; }
.mobile-nav-icon-wrapper .message-nav-badge,
.mobile-nav-icon-wrapper .activity-nav-badge {
  position: absolute;
  top: -8px;
  right: -11px;
}

.conversations-page-view {
  min-height: 100vh;
  padding-bottom: 100px;
  color: var(--app-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(117, 41, 216, .08), transparent 28%),
    #faf8fc;
}

.conversations-page-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  min-height: 72px;
  padding: 10px max(18px, calc((100vw - 1050px) / 2));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, #32134c, #7130b5 64%, #8c43d2);
  box-shadow: 0 9px 28px rgba(72, 26, 111, .2);
}

.conversations-back-btn {
  display: inline-flex;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.conversations-back-btn:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateX(-2px);
}

.conversations-page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conversations-brand-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 13px;
}

.conversations-page-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.conversations-page-brand strong { font-size: .96rem; }
.conversations-page-brand small { margin-top: 3px; color: rgba(255, 255, 255, .68); font-size: .66rem; }

.conversation-header-unread {
  justify-self: end;
  padding: 7px 11px;
  color: #fff;
  background: rgba(232, 62, 114, .9);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 800;
}

.conversation-header-unread[hidden] { display: none; }

.conversation-inbox-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 24px;
}

.conversation-inbox-intro {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.conversation-inbox-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--app-purple);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.conversation-inbox-intro h1 {
  margin: 0;
  color: #23172a;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.conversation-inbox-intro p {
  max-width: 520px;
  margin: 8px 0 0;
  color: #74677d;
  font-size: .86rem;
  line-height: 1.55;
}

.conversation-inbox-stats {
  display: grid;
  min-width: 184px;
  padding: 12px 15px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 7px;
  background: #fff;
  border: 1px solid #eadff0;
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(73, 43, 94, .07);
}

.conversation-inbox-stats strong { color: #3e2052; font-size: .86rem; text-align: right; }
.conversation-inbox-stats span { color: #7d7085; font-size: .65rem; }
.conversation-inbox-stats i { display: none; }

.conversation-search-box {
  display: flex;
  min-height: 52px;
  margin-bottom: 15px;
  padding: 0 17px;
  align-items: center;
  gap: 11px;
  color: #8c7b96;
  background: #fff;
  border: 1px solid #e6dbec;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(73, 43, 94, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.conversation-search-box:focus-within {
  color: var(--app-purple);
  border-color: rgba(117, 41, 216, .46);
  box-shadow: 0 0 0 4px rgba(117, 41, 216, .08), 0 9px 26px rgba(73, 43, 94, .08);
}

.conversation-search-box input {
  width: 100%;
  min-width: 0;
  height: 50px;
  color: #312438;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: .84rem;
}

.conversation-search-box input::placeholder { color: #a597ad; }

.conversation-list-container {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.conversation-list-item {
  display: grid;
  width: 100%;
  min-height: 92px;
  padding: 13px 15px;
  grid-template-columns: 62px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #e9e0ed;
  border-radius: 19px;
  box-shadow: 0 8px 22px rgba(73, 43, 94, .055);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.conversation-list-item:hover {
  background: #fff;
  border-color: #d7c2e5;
  box-shadow: 0 13px 30px rgba(73, 43, 94, .1);
  transform: translateY(-2px);
}

.conversation-list-item.has-unread {
  background: linear-gradient(90deg, rgba(248, 241, 253, .98), #fff 38%);
  border-color: #d9c3e8;
}

.conversation-avatar-wrap {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
}

.conversation-avatar-wrap img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: #f1ebf4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(73, 43, 94, .15);
}

.conversation-avatar-wrap i {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 13px;
  height: 13px;
  background: #a7adb5;
  border: 3px solid #fff;
  border-radius: 50%;
}

.conversation-avatar-wrap i.is-online { background: #29c98b; }

.conversation-card-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.conversation-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-card-heading strong {
  overflow: hidden;
  color: #2b1d32;
  font-size: .91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card-heading time {
  flex: 0 0 auto;
  color: #988aa0;
  font-size: .62rem;
  font-weight: 700;
}

.conversation-card-location {
  margin-top: 3px;
  overflow: hidden;
  color: #8b7c94;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-card-preview {
  margin-top: 8px;
  overflow: hidden;
  color: #75687d;
  font-size: .76rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-list-item.is-blocked {
  background: #fbfafc;
  border-color: #e5dce9;
}

.conversation-list-item.is-blocked .conversation-avatar-wrap img {
  filter: grayscale(.38);
}

.conversation-blocked-badge {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 7px;
  color: #8a3343;
  background: #fff0f2;
  border: 1px solid #f4ccd3;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}

.conversation-list-item.has-unread .conversation-card-heading strong,
.conversation-list-item.has-unread .conversation-card-preview {
  color: #3d2050;
  font-weight: 750;
}

.conversation-card-end {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: #a492ad;
}

.conversation-card-end b {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7a2fd0, #a347df);
  border-radius: 999px;
  box-shadow: 0 5px 13px rgba(117, 41, 216, .25);
  font-size: .63rem;
}

.conversation-empty-state,
.conversation-list-error {
  display: flex;
  min-height: 310px;
  padding: 42px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: #fff;
  border: 1px solid #e9e0ed;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(73, 43, 94, .06);
}

.conversation-empty-state > span {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  place-items: center;
  color: var(--app-purple);
  background: #f4eafb;
  border-radius: 20px;
}

.conversation-empty-state h2 { margin: 0; color: #2c1e34; font-size: 1.1rem; }
.conversation-empty-state p,
.conversation-list-error span { max-width: 430px; margin: 8px 0 18px; color: #796c82; font-size: .82rem; line-height: 1.55; }
.conversation-empty-state button,
.conversation-list-error button {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #9341df);
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 750;
}

.conversation-list-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.conversation-list-loading span {
  width: 8px;
  height: 8px;
  background: var(--app-purple);
  border-radius: 50%;
  animation: conversationLoading 1s ease-in-out infinite alternate;
}
.conversation-list-loading span:nth-child(2) { animation-delay: .16s; }
.conversation-list-loading span:nth-child(3) { animation-delay: .32s; }
@keyframes conversationLoading { to { opacity: .3; transform: translateY(-6px); } }

#messaging-page-view {
  background: #faf8fc;
}

#messaging-page-view > div:first-child {
  min-height: 70px;
  padding: 11px max(16px, calc((100vw - 980px) / 2)) !important;
  background: linear-gradient(135deg, var(--app-purple-dark), #7d32cb) !important;
  box-shadow: 0 9px 28px rgba(93, 29, 184, .2);
}

#messaging-page-view .btn-auth-back-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .14) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 999px !important;
  box-shadow: none;
}

#chat-messages-container {
  width: 100%;
  padding: 24px max(16px, calc((100vw - 820px) / 2)) !important;
  background:
    radial-gradient(circle at 80% 10%, rgba(117,41,216,.06), transparent 25%),
    #faf8fc !important;
}

.chat-input-toolbar {
  padding-right: max(16px, calc((100vw - 860px) / 2));
  padding-left: max(16px, calc((100vw - 860px) / 2));
  border-top-color: var(--app-line);
  box-shadow: 0 -8px 25px rgba(73, 43, 94, .05);
}

.chat-media-btn {
  color: var(--app-purple-dark);
  background: #f5eefb;
  border-color: #e2d5ec;
}

.chat-media-btn:hover {
  background: var(--app-purple);
  border-color: var(--app-purple);
}

.chat-text-field:focus {
  border-color: var(--app-purple) !important;
  box-shadow: 0 0 0 3px rgba(117, 41, 216, .1) !important;
}

.chat-send-btn {
  background: linear-gradient(135deg, var(--app-purple), #8d3cda);
  box-shadow: 0 7px 18px rgba(117, 41, 216, .22);
}

.chat-send-btn:hover {
  background: var(--app-purple-dark);
}

.chat-message-bubble {
  flex-shrink: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  max-width: min(80%, 620px);
  padding: 12px 16px;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.5;
  box-shadow: 0 5px 18px rgba(73, 43, 94, .07);
}

.chat-message-bubble.is-mine {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #8e42d9);
  border-bottom-right-radius: 5px;
}

.chat-message-bubble.is-theirs {
  align-self: flex-start;
  color: var(--app-ink);
  background: #fff;
  border: 1px solid var(--app-line);
  border-bottom-left-radius: 5px;
}

.chat-message-bubble.has-voice-note {
  --voice-accent: #3976c6;
  --voice-wave: #b4bfcd;
  width: min(332px, 90%);
  max-width: 90%;
  padding: 11px 13px 7px;
  box-sizing: border-box;
  color: #344459;
  border: 1px solid #e4e9ef;
  background: #fff;
  box-shadow: 0 2px 8px rgba(34, 54, 78, .055);
}
.chat-message-bubble.has-voice-note.is-mine {
  --voice-wave: #a7bddb;
  color: #294562;
  background: #e7f0ff;
  border-color: #d8e6fa;
}
.chat-voice-note { min-width:0; }
.chat-voice-player { display:block; width:100%; max-width:100%; height:44px; }
.chat-voice-note.is-enhanced .chat-voice-player { display:none; }
.chat-voice-controls { display:flex; align-items:center; gap:10px; }
.chat-voice-controls[hidden],.chat-voice-error[hidden] { display:none; }
.chat-voice-toggle {
  display:grid;place-items:center;flex:none;width:38px;height:44px;
  border:0;border-radius:12px;background:transparent;color:var(--voice-accent);cursor:pointer;padding:0;
}
.chat-voice-toggle svg { width:28px;height:28px; }
.chat-voice-toggle .voice-pause-icon,.chat-voice-note.is-playing .voice-play-icon { display:none; }
.chat-voice-note.is-playing .voice-pause-icon { display:block; }
.chat-voice-track { flex:1;min-width:0; }
.chat-voice-wave { position:relative;height:36px;margin-top:3px; }
.chat-voice-wave-base,.chat-voice-wave-played { position:absolute;inset:2px 0;pointer-events:none; }
.chat-voice-wave svg { display:block;width:100%;height:100%;fill:var(--voice-wave); }
.chat-voice-wave-played { clip-path:inset(0 calc(100% - var(--voice-progress,0%)) 0 0); }
.chat-voice-wave-played svg { fill:var(--voice-accent); }
.chat-voice-seek {
  appearance:none;-webkit-appearance:none;position:absolute;inset:0;margin:0;width:100%;height:36px;
  background:transparent;border:0;cursor:pointer;accent-color:var(--voice-accent);padding:0;
}
.chat-voice-seek::-webkit-slider-runnable-track { height:3px;background:transparent; }
.chat-voice-seek::-moz-range-track { height:3px;background:transparent; }
.chat-voice-seek::-webkit-slider-thumb { appearance:none;-webkit-appearance:none;width:10px;height:10px;border:0;border-radius:50%;background:var(--voice-accent);margin-top:-3.5px; }
.chat-voice-seek::-moz-range-thumb { width:10px;height:10px;border:0;border-radius:50%;background:var(--voice-accent); }
.chat-voice-seek:disabled { cursor:default; }
.chat-voice-details { display:flex;align-items:center;justify-content:space-between;min-height:23px;gap:8px; }
.chat-voice-duration { font-size:11px;color:#6f8094;font-variant-numeric:tabular-nums; }
.chat-voice-speed { min-width:40px;min-height:26px;border:0;border-radius:20px;background:#d9e5f4;color:#45627f;font-family:inherit;font-size:10px;font-weight:700;cursor:pointer;padding:3px 8px; }
.chat-voice-avatar { width:43px;height:43px;flex:none;position:relative;margin-left:2px; }
.chat-voice-avatar img,.chat-voice-avatar-placeholder { width:100%;height:100%;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#dfe9f5;color:#7792b3; }
.chat-voice-avatar-placeholder>svg { width:22px;height:22px; }
.chat-voice-mic { position:absolute;left:-5px;bottom:-3px;display:grid;place-items:center;width:20px;height:24px;border-radius:10px;background:#fff;color:var(--voice-accent); }
.is-mine .chat-voice-mic { background:#e7f0ff; }
.chat-voice-mic svg { width:14px;height:18px; }
.chat-voice-error { display:block;color:#a52d40;font-size:11px;padding:6px 0 2px;line-height:1.5; }
.has-voice-note .chat-message-meta { margin-top:1px; }
.has-voice-note .chat-message-time,.has-voice-note .chat-message-receipt { color:#6f8094;opacity:1; }
.has-voice-note .chat-message-receipt.is-read { color:#2f7bc3; }
.chat-voice-toggle:focus-visible,.chat-voice-seek:focus-visible,.chat-voice-speed:focus-visible { outline:2px solid var(--voice-accent);outline-offset:3px; }
@media(max-width:380px) {
  .chat-message-bubble.has-voice-note{width:91%;max-width:91%;padding:10px 11px 7px;}
  .chat-voice-controls{gap:7px}.chat-voice-avatar{width:37px;height:37px}.chat-voice-toggle{width:32px}
}

.chat-message-meta {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
}

.chat-message-time {
  font-size: .68rem;
  text-align: right;
  opacity: .7;
}

.chat-message-receipt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .66rem;
  font-weight: 750;
  line-height: 1;
}

.chat-receipt-checks {
  display: inline-flex;
  align-items: center;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: -.15em;
}

.chat-receipt-checks i {
  font-style: normal;
}

.chat-message-receipt.is-read {
  color: #7dd3fc;
}

.chat-receipt-label {
  letter-spacing: .01em;
}

.chat-shared-video {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
}

.chat-message-bubble.has-video-note {
  padding: 0;
  color: #6f5d79;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-video-note {
  position: relative;
  width: min(70vw, 320px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #09050d;
  box-shadow: 0 14px 34px rgba(73, 43, 94, .2);
}

.chat-message-bubble.is-mine .chat-video-note {
  border-color: #8e42d9;
}

.chat-message-bubble.is-theirs .chat-video-note {
  border-color: #fff;
  box-shadow: 0 0 0 1px #e1d5e9, 0 14px 34px rgba(73, 43, 94, .14);
}

.chat-video-note video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.chat-video-center-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chat-video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 8, 20, .68);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease;
}

.chat-video-toggle:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: rgba(117, 41, 216, .86);
}

.chat-video-toggle::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
}

.chat-video-note.is-playing .chat-video-toggle::before {
  width: 15px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 32%, transparent 32% 68%, currentColor 68% 100%);
}

.chat-video-progress {
  position: absolute;
  top: calc(50% + 40px);
  left: 20%;
  width: 60%;
  height: 26px;
  padding: 11px 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(transparent 0 11px, rgba(255,255,255,.38) 11px 15px, transparent 15px);
  cursor: pointer;
  pointer-events: auto;
}

.chat-video-progress span {
  display: block;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .4);
}

.chat-video-note-duration {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 8, 20, .7);
  font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.chat-message-bubble.has-video-note .chat-message-meta {
  padding-right: 10px;
  color: #74627e;
}

.chat-message-bubble.has-video-note .chat-message-time {
  opacity: .85;
}

.chat-message-bubble.has-video-note .chat-message-receipt {
  color: #8b7995;
}

.chat-message-bubble.has-video-note .chat-message-receipt.is-read {
  color: #2563eb;
}

.chat-header-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-block-action {
  display: inline-flex;
  min-height: 38px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  cursor: pointer;
  font: 750 .75rem/1 inherit;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.chat-block-action:hover {
  background: rgba(244, 63, 94, .3);
  border-color: rgba(255, 255, 255, .45);
}

.chat-block-action.is-unblock {
  background: rgba(16, 185, 129, .2);
  border-color: rgba(167, 243, 208, .55);
}

.chat-block-action:disabled,
#messaging-page-view .call-action-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.chat-safety-notice {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 9px max(16px, calc((100vw - 920px) / 2));
  align-items: center;
  gap: 11px;
  color: #5d4320;
  background: linear-gradient(90deg, #fff9e8, #fffdf7 52%, #fff9e8);
  border-bottom: 1px solid #f1dfaa;
  box-shadow: 0 5px 18px rgba(73, 43, 22, .05);
}

.chat-safety-notice-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  color: #8b5b12;
  background: #fff;
  border: 1px solid #ead497;
  border-radius: 12px;
}

.chat-safety-notice-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 16px;
  font-size: .72rem;
  line-height: 1.35;
}

.chat-safety-notice-copy strong {
  color: #6d4510;
  font-size: .76rem;
}

.chat-safety-notice-copy span {
  position: relative;
}

.chat-safety-notice-copy span + span::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -9px;
  width: 3px;
  height: 3px;
  background: #c69b51;
  border-radius: 50%;
}

#messaging-page-view .call-action-btn {
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}

#messaging-page-view .call-action-btn:hover {
  background: rgba(255, 255, 255, .26);
}

.chat-upload-status {
  position: absolute;
  z-index: 1020;
  right: max(18px, calc((100vw - 820px) / 2));
  bottom: 78px;
  padding: 8px 12px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  color: var(--app-purple-dark);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(73, 43, 94, .12);
  font-size: .76rem;
  font-weight: 750;
}

.chat-default-composer,
.voice-recording-panel {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-blocked-composer {
  display: flex;
  width: 100%;
  min-height: 58px;
  padding: 8px 9px 8px 13px;
  align-items: center;
  gap: 11px;
  color: #503a58;
  background: linear-gradient(135deg, #fbf8fc, #f5eef9);
  border: 1px solid #e3d8e8;
  border-radius: 17px;
}

.chat-blocked-composer-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #8b4051;
  background: #fff;
  border: 1px solid #ead5dc;
  border-radius: 13px;
}

.chat-blocked-composer-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.chat-blocked-composer-copy strong { font-size: .82rem; }
.chat-blocked-composer-copy small { color: #7c6e82; font-size: .69rem; line-height: 1.35; }

#chat-unblock-button {
  min-height: 39px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #913ddc);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.chat-text-field {
  min-height: 44px !important;
  max-height: 112px !important;
  height: 44px !important;
  padding-top: 11px !important;
  padding-bottom: 10px !important;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
  font-family: inherit !important;
  box-sizing: border-box;
}

.chat-text-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-default-composer[hidden],
.voice-recording-panel[hidden],
.chat-blocked-composer[hidden],
.chat-capture-overlay[hidden] {
  display: none !important;
}

.voice-recording-panel {
  min-height: 46px;
  padding: 0 4px 0 12px;
  border: 1px solid #eadcf3;
  border-radius: 999px;
  background: #faf6fd;
}

.voice-recording-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9f1239;
  font-size: .79rem;
  white-space: nowrap;
}

.voice-recording-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  50% { opacity: .35; transform: scale(.75); }
}

.voice-recording-wave {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.voice-recording-wave i {
  width: 3px;
  height: 9px;
  border-radius: 999px;
  background: #a855f7;
  animation: voiceWave .8s ease-in-out infinite alternate;
}

.voice-recording-wave i:nth-child(2), .voice-recording-wave i:nth-child(6) { animation-delay: .12s; }
.voice-recording-wave i:nth-child(3), .voice-recording-wave i:nth-child(5) { animation-delay: .24s; }
.voice-recording-wave i:nth-child(4) { animation-delay: .36s; }

@keyframes voiceWave {
  to { height: 24px; opacity: .55; }
}

.voice-cancel-btn,
.voice-send-btn {
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.voice-cancel-btn {
  padding: 8px;
  color: #64748b;
  background: transparent;
}

.voice-send-btn {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), #8d3cda);
}

.chat-call-event {
  width: fit-content;
  max-width: 90%;
  flex: 0 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #eadff2;
  border-radius: 16px;
  color: #4b3858;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 5px 18px rgba(73, 43, 94, .06);
}

.chat-call-event.is-outgoing {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-call-event.is-incoming {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-call-event.is-failed {
  border-color: #fecaca;
  color: #991b1b;
  background: #fffafa;
}

.chat-call-event-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 11px;
  color: #3976c6;
  background: #f3eafa;
}

.chat-call-event.is-failed .chat-call-event-icon {
  color: #dc2626;
  background: #fee2e2;
}

.chat-call-event-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-call-event-copy strong { font-size: .82rem; font-weight: 650; line-height: 1.4; }
.chat-call-event-copy span { color: #7c8190; font-size: .68rem; line-height: 1.5; font-variant-numeric: tabular-nums; }

.chat-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: 210000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(11, 5, 17, .82);
  backdrop-filter: blur(16px);
}

.chat-capture-panel {
  width: min(100%, 680px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 28px;
  color: #fff;
  background: #130b1b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.chat-capture-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
}

.chat-capture-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-capture-header strong { font-size: 1rem; }
.chat-capture-header span { color: rgba(255, 255, 255, .62); font-size: .75rem; }

.chat-capture-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 1.45rem;
  cursor: pointer;
}

.chat-capture-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050308;
}

.chat-capture-overlay[data-capture-mode="video"] .chat-capture-panel {
  width: min(100%, 520px);
}

.chat-capture-overlay[data-capture-mode="video"] .chat-capture-stage {
  width: clamp(280px, 44vw, 360px);
  height: clamp(280px, 44vw, 360px);
  aspect-ratio: 1;
  align-self: center;
  margin: 12px auto 4px;
  border: 4px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .42);
}

.chat-capture-stage video,
.chat-capture-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-capture-stage video.is-reviewing {
  object-fit: cover;
}

.chat-video-recording-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 7, 19, .78);
  font-size: .72rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.chat-video-recording-badge[hidden] { display: none; }
.chat-video-recording-badge span { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: voicePulse 1s infinite; }
.chat-video-recording-badge b {
  min-width: 42px;
  font: 800 .76rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .02em;
}

.chat-capture-actions {
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}

.chat-capture-shutter {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.chat-capture-shutter span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transition: .2s ease;
}

.chat-capture-shutter.is-video span { width: 28px; height: 28px; background: #ef4444; }
.chat-capture-shutter.is-recording span { width: 22px; height: 22px; border-radius: 6px; background: #ef4444; }
.chat-capture-shutter:disabled {
  opacity: .45;
  cursor: wait;
}

.chat-capture-secondary,
.chat-capture-send {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.chat-capture-secondary { background: rgba(255,255,255,.12); }
.chat-capture-send { background: linear-gradient(135deg, var(--app-purple), #a348e7); }

.chat-capture-secondary[hidden],
.chat-capture-send[hidden],
.chat-capture-shutter[hidden] { display: none; }

.call-overlay[hidden],
.call-controls[hidden] {
  display: none !important;
}

.call-enable-sound {
  position: absolute; z-index: 4; top: 20px; left: 20px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 12px 18px; color: #fff; background: #6d2fd0;
  font-family: inherit; font-weight: 600; font-size: .9rem; line-height: 1.3; cursor: pointer;
}
.call-enable-sound[hidden] { display: none; }

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.call-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(158, 80, 222, .45), transparent 36%),
    linear-gradient(145deg, #1b0c2c, #08040e 75%);
  backdrop-filter: blur(18px);
}

.call-stage {
  position: relative;
  width: min(100%, 880px);
  height: min(84dvh, 720px);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 30px;
  background: #12091c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.call-remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #12091c;
}

.call-remote-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 32%, rgba(151, 71, 218, .38), transparent 32%),
    linear-gradient(160deg, rgba(55, 23, 83, .86), rgba(13, 7, 20, .96));
  transition: opacity .35s ease;
}

.call-remote-placeholder.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.call-remote-placeholder img {
  width: 126px;
  height: 126px;
  border: 4px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .3);
}

#call-contact-name {
  margin-top: 18px;
  font-family: var(--app-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
}

#call-status {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}

.call-local-video {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(25%, 190px);
  aspect-ratio: 3 / 4;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 20px;
  object-fit: cover;
  background: #21152b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
  transform: scaleX(-1);
}

.call-overlay[data-call-type="audio"] .call-local-video {
  display: none;
}

.call-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.call-control-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.call-control-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .24);
}

.call-control-btn.is-off {
  color: #fecaca;
  background: rgba(239, 68, 68, .32);
}

.call-control-btn.is-accept {
  background: #22c55e;
  box-shadow: 0 10px 28px rgba(34, 197, 94, .38);
}

.call-control-btn.is-decline,
.call-control-btn.is-end {
  background: #ef4444;
  box-shadow: 0 10px 28px rgba(239, 68, 68, .38);
}

.call-control-btn.is-hidden {
  display: none;
}

@media (max-width: 620px) {
  .premium-status-grid { grid-template-columns: 1fr; }
  .premium-operation-dialog { padding: 24px 18px; }
  .premium-operation-actions { flex-direction: column-reverse; }
  .premium-operation-actions button { width: 100%; }
  .conversations-page-header {
    min-height: 64px;
    padding: 8px 11px;
    grid-template-columns: 42px 1fr auto;
  }
  .conversations-back-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
  }
  .conversations-back-btn span { display: none; }
  .conversations-page-brand { justify-self: center; }
  .conversations-brand-icon { width: 36px; height: 36px; border-radius: 12px; }
  .conversations-page-brand small { display: none; }
  .conversation-header-unread { padding: 6px 8px; font-size: .58rem; }
  .conversation-inbox-shell { width: min(100% - 22px, 760px); padding-top: 24px; }
  .conversation-inbox-intro { align-items: flex-start; flex-direction: column; gap: 14px; }
  .conversation-inbox-stats { width: 100%; grid-template-columns: auto auto 1px auto auto; justify-content: center; }
  .conversation-inbox-stats i { display: block; width: 1px; height: 22px; margin: 0 8px; background: #e5d9eb; }
  .conversation-list-item { min-height: 86px; padding: 11px; grid-template-columns: 54px minmax(0, 1fr) 29px; gap: 10px; border-radius: 17px; }
  .conversation-avatar-wrap,
  .conversation-avatar-wrap img { width: 52px; height: 52px; }
  .conversation-card-heading strong { font-size: .86rem; }
  .conversation-card-preview { font-size: .72rem; }
  #messaging-page-view > div:first-child {
    padding-inline: 10px !important;
  }

  #messaging-page-view .btn-auth-back-black {
    width: 38px;
    overflow: hidden;
    padding: 8px 11px !important;
    white-space: nowrap;
  }
  #messaging-page-view .chat-back-label { display: none; }

  .chat-header-call-actions {
    gap: 5px;
  }

  .chat-block-action {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }

  .chat-block-action span { display: none; }

  .chat-safety-notice {
    min-height: 0;
    padding: 8px 12px;
  }

  .chat-safety-notice-icon { display: none; }
  .chat-safety-notice-copy { gap: 3px 13px; font-size: .64rem; }
  .chat-safety-notice-copy strong { width: 100%; font-size: .69rem; }

  .chat-blocked-composer {
    padding: 9px;
    flex-wrap: wrap;
  }

  .chat-blocked-composer-copy { min-width: calc(100% - 52px); }
  #chat-unblock-button { width: 100%; }

  .chat-default-composer { gap: 6px; }
  .chat-input-actions { gap: 3px; }
  .chat-input-actions .chat-media-btn { width: 34px; height: 34px; }
  .chat-text-field { min-width: 70px; }
  .voice-recording-panel { padding-left: 10px; }
  .voice-recording-live strong { display: none; }
  .voice-recording-wave { gap: 3px; }
  .chat-capture-overlay { padding: 0; }
  .chat-capture-panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; display: flex; flex-direction: column; }
  .chat-capture-stage { flex: 1; aspect-ratio: auto; }
  .chat-capture-overlay[data-capture-mode="video"] .chat-capture-stage {
    width: min(78vw, 320px);
    height: min(78vw, 320px);
    flex: 0 0 auto;
    margin: auto;
  }
  .chat-video-note { width: min(72vw, 290px); }

  #messaging-page-view .call-action-btn {
    width: 34px;
    height: 34px;
  }

  .call-overlay {
    padding: 0;
  }

  .call-stage {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .call-local-video {
    top: 16px;
    right: 16px;
    width: 112px;
    border-radius: 16px;
  }

  .call-controls {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* Navigation mobile */

.mobile-bottom-nav {
  height: 70px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--app-line);
  box-shadow: 0 -9px 28px rgba(73, 43, 94, .08);
  backdrop-filter: blur(18px);
}

.mobile-nav-item {
  color: #8b8291;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--app-purple);
}

.mobile-nav-item.premium-item {
  color: #a36c08;
}

@keyframes app-page-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
  #authenticated-app-view .landing-header-btns {
    display: none;
  }

  #authenticated-app-view .nav-menu-item {
    padding: 0 9px;
    font-size: .74rem;
  }
}

@media (max-width: 768px) {
  #complete-profile-page-view .auth-top-bar,
  #bio-profile-page-view .auth-top-bar,
  #details-profile-page-view .auth-top-bar {
    padding: 13px 14px 0;
  }

  #complete-profile-page-view .profile-complete-container,
  #bio-profile-page-view .profile-complete-container,
  #details-profile-page-view .profile-complete-container {
    padding: 18px 11px 28px;
  }

  #complete-profile-page-view .profile-complete-card,
  #bio-profile-page-view .profile-complete-card,
  #details-profile-page-view .profile-complete-card {
    padding: 26px 20px 28px;
    border-radius: 23px;
  }

  #complete-profile-page-view .photo-stats-box {
    grid-template-columns: 1fr;
  }

  #complete-profile-page-view .stat-item:nth-child(2) {
    display: none;
  }

  #complete-profile-page-view .guidelines-content-grid {
    grid-template-columns: 135px 1fr;
  }

  #public-profile-page-view > div:first-child,
  #filters-page-view > div:first-child,
  #affinities-page-view > div:first-child,
  #visits-page-view > div:first-child,
  #subscription-page-view > div:first-child,
  #my-account-page-view > div:first-child {
    min-height: 64px;
    padding: 10px 13px !important;
  }

  #public-profile-page-view > div:first-child > div:nth-child(2),
  #filters-page-view > div:first-child > div:nth-child(2),
  #affinities-page-view > div:first-child > div:nth-child(2),
  #visits-page-view > div:first-child > div:nth-child(2),
  #subscription-page-view > div:first-child > div:nth-child(2),
  #my-account-page-view > div:first-child > div:nth-child(2) {
    font-size: .9rem !important;
  }

  #public-profile-page-view > div:first-child > div:last-child,
  #filters-page-view > div:first-child > div:last-child,
  #affinities-page-view > div:first-child > div:last-child,
  #visits-page-view > div:first-child > div:last-child,
  #my-account-page-view > div:first-child > div:last-child {
    width: 0 !important;
  }

  #public-profile-page-view .btn-auth-back-black,
  #filters-page-view .btn-auth-back-black,
  #affinities-page-view .btn-auth-back-black,
  #visits-page-view .btn-auth-back-black,
  #my-account-page-view .btn-auth-back-black {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    gap: 0;
  }

  #public-profile-page-view .btn-auth-back-black svg,
  #filters-page-view .btn-auth-back-black svg,
  #affinities-page-view .btn-auth-back-black svg,
  #visits-page-view .btn-auth-back-black svg,
  #my-account-page-view .btn-auth-back-black svg {
    color: var(--app-purple-dark);
    flex: 0 0 auto;
  }

  #public-profile-page-view .btn-auth-back-black:hover svg,
  #filters-page-view .btn-auth-back-black:hover svg,
  #affinities-page-view .btn-auth-back-black:hover svg,
  #visits-page-view .btn-auth-back-black:hover svg,
  #my-account-page-view .btn-auth-back-black:hover svg {
    color: #fff;
  }

  #authenticated-app-view > .landing-container,
  #public-profile-page-view > .landing-container,
  #filters-page-view > .landing-container,
  #affinities-page-view > .landing-container,
  #visits-page-view > .landing-container,
  #subscription-page-view > .landing-container,
  #my-account-page-view > .landing-container {
    padding: 26px 14px 90px !important;
  }

  #filters-page-view > .landing-container > div,
  #my-account-page-view > .landing-container > div {
    padding: 21px !important;
  }

  #authenticated-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  #authenticated-app-view .feed-heading-row {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  #authenticated-app-view .feed-filter-button {
    width: 100%;
    min-width: 0;
  }

  #authenticated-app-view .feed-discovery-note {
    display: flex;
    width: 100%;
  }

  #authenticated-app-view .feed-discovery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  #authenticated-app-view .feed-restore-button {
    width: 100%;
  }

  #affinities-list-container .affinity-member-card {
    align-items: stretch;
    flex-direction: column;
  }

  #affinities-list-container .affinity-member-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #authenticated-members-grid {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 580px) {
  .profile-progress-item small {
    font-size: .58rem;
  }

  #complete-profile-page-view .guidelines-content-grid {
    grid-template-columns: 1fr;
  }

  #complete-profile-page-view .guidelines-visual {
    display: none;
  }

  #details-profile-page-view .auth-form-group,
  #details-profile-page-view .auth-form-row {
    padding: 14px;
  }

  #details-profile-page-view .details-extra-section {
    padding: 17px;
  }

  #details-profile-page-view .details-fields-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  #details-profile-page-view .details-section-heading {
    margin-bottom: 17px;
  }

  #my-account-page-view [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .account-verification-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px;
  }

  .account-verification-icon { width: 44px; height: 44px; border-radius: 14px; }
  .account-verification-action,
  .account-verification-static { grid-column: 1 / -1; justify-content: center; }
  .account-verification-action { width: 100%; }
  .account-secondary-actions { grid-template-columns: 1fr; }

  #affinities-list-container > div,
  #visits-list-container > div {
    align-items: flex-start !important;
    gap: 11px;
  }

  #affinities-list-container > div {
    flex-wrap: wrap;
  }

  #affinities-list-container .btn-primary {
    width: 100%;
  }

  .duration-options-grid {
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .verification-modal-content { width: calc(100vw - 16px); max-height: 94vh; padding: 18px; }
  .verification-upload-grid { grid-template-columns: 1fr; }
  .verification-upload-selfie { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  #complete-profile-page-view *,
  #bio-profile-page-view *,
  #details-profile-page-view *,
  #authenticated-app-view *,
  #public-profile-page-view *,
  #filters-page-view *,
  #affinities-page-view *,
  #visits-page-view *,
  #messaging-page-view *,
  #subscription-page-view *,
  #my-account-page-view * {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Mon compte: a stable branded header and four accessible, independent tabs. */
#my-account-page-view .account-page-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
#my-account-page-view .account-page-brand {
  display: inline-flex; align-items: center; gap: 10px; color: #4B1FA3;
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none;
}
#my-account-page-view .account-page-brand img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 10px; flex: 0 0 40px; }
#my-account-page-view .account-return {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px;
  border: 1px solid #e5dbf1; border-radius: 999px; background: #fff; color: #6D2FD0; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
#my-account-page-view .account-page-content { max-width: 880px; padding-bottom: 40px; }
#my-account-page-view .account-page-intro { margin-bottom: 24px; }
#my-account-page-view .account-page-intro h1 { margin: 0 0 7px; font-size: 1.8rem; font-weight: 700; color: #24212C; letter-spacing: -.035em; }
#my-account-page-view .account-page-intro p { margin: 0; font-size: .87rem; color: #71697e; }
#my-account-page-view .account-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; padding: 7px; border: 1px solid #e8e1f1; border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(75,31,163,.06); }
#my-account-page-view .account-tabs button { min-height: 76px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; color: #625a6d; background: transparent; font: inherit; font-size: .75rem; line-height: 1.4; font-weight: 600; cursor: pointer; }
#my-account-page-view .account-tabs svg { flex-shrink: 0; }
#my-account-page-view .account-tabs button:hover { background: #f2ebfc; color: #4B1FA3; }
#my-account-page-view .account-tabs button.is-active { color: #fff; background: linear-gradient(135deg,#8A4DF0,#4B1FA3); box-shadow: 0 6px 16px rgba(109,47,208,.25); }
#my-account-page-view button:focus-visible, #my-account-page-view a:focus-visible { outline: 3px solid #a77bee; outline-offset: 3px; }
#my-account-page-view .account-tab-panel[hidden] { display: none !important; }
#my-account-page-view .account-tab-panel { animation: none; }
#my-account-page-view .account-help { max-width: none; margin: 12px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid #e8e1f1; border-radius: 0; background: transparent; box-shadow: none; }
#my-account-page-view .account-help h3 { margin: 0 0 12px; font-size: .95rem; }
#my-account-page-view .account-inbox-button { display: block; width: 100%; min-height: 46px; margin-top: 14px; padding: 12px 16px; border: 1px solid #e4d6f4; border-radius: 14px; background: #f8f4ff; color: #5d269f; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
@keyframes account-tab-enter { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  #my-account-page-view .account-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #my-account-page-view .account-tabs button { min-height: 70px; font-size: .75rem; }
}
@media (max-width: 400px) {
  #my-account-page-view .account-return { padding: 9px 12px; }
  #my-account-page-view .account-page-brand { font-size: 1.25rem; }
  #my-account-page-view .account-page-intro h1 { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  #my-account-page-view .account-tab-panel { animation: none; }
}
#my-account-page-view .account-support-form { display: grid; gap: 10px; }
#my-account-page-view .account-support-form h2 { margin: 0; color: #24212C; font-size: 1.15rem; font-weight: 700; }
#my-account-page-view .account-support-form > p { margin: 0 0 12px; color: #71697e; font-size: .82rem; line-height: 1.6; }
#my-account-page-view .account-support-form label { margin-top: 6px; font-size: .8rem; font-weight: 600; color: #51465e; }
#my-account-page-view .account-support-form .form-input { width: 100%; min-width: 0; }
#my-account-page-view .account-support-form textarea { resize: vertical; min-height: 130px; }
#my-account-page-view .account-support-form > button { min-height: 46px; margin-top: 8px; padding: 12px 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#8A4DF0,#4B1FA3); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
#my-account-page-view .account-support-form > button:disabled { opacity: .65; cursor: wait; }
#my-account-page-view #account-support-status[data-state="error"] { color: #b42341; }
#my-account-page-view #account-support-status[data-state="success"] { color: #18764d; }

/* Un seul espace sous le fil, pour laisser les dernières actions au-dessus du menu. */
#authenticated-app-view { padding-bottom: 28px !important; }
#authenticated-app-view > .landing-container { padding-bottom: 0 !important; }
@media (max-width: 768px) {
  #authenticated-app-view { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  #authenticated-members-grid { gap: 16px !important; }
  #authenticated-members-grid .auth-member-card {
    border-radius: 23px !important;
    box-shadow: 0 8px 26px rgba(75,31,163,.08) !important;
  }
  #authenticated-members-grid .member-photo-shell { aspect-ratio: 4 / 4.25; max-height: 440px; }
  #authenticated-members-grid .member-card-content { padding: 14px; background: linear-gradient(#fff, #fdfbff); }
  #authenticated-members-grid .member-card-tags { margin-bottom: 12px; }
  #authenticated-members-grid .member-main-action { height: 54px; border-radius: 14px; }
  #authenticated-members-grid .member-secondary-actions { margin-top: 9px; padding-top: 9px; }
  #authenticated-app-view .member-activity { margin: 16px auto; padding: 0; }
}
#authenticated-members-grid .auth-member-card:hover { transform: none; }

/* Un retour lisible, y compris à 320px, sans icône ni texte tronqué. */
#subscription-page-view .subscription-page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e9dff4;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#subscription-page-view .subscription-back {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid #e3d6f2;
  border-radius: 14px;
  background: #f8f3ff;
  color: #5925a4;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
#subscription-page-view .subscription-back svg { flex: 0 0 auto; }
#subscription-page-view .subscription-back:hover { background: #efe4fc; border-color: #b692e8; }
#subscription-page-view .subscription-back:focus-visible { outline: 3px solid #a77bee; outline-offset: 3px; }
#subscription-page-view .subscription-page-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #342043;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
#subscription-page-view .subscription-page-brand svg { flex: 0 0 auto; color: #b78634; }
@media (max-width: 380px) {
  #subscription-page-view .subscription-page-brand { gap: 5px; font-size: .8rem !important; }
  #subscription-page-view .subscription-back { padding-inline: 10px; }
}

/* Le choix Premium et son action précèdent les arguments de vente. */
#subscription-page-view > .landing-container {
  padding-top: 18px !important;
  padding-bottom: 24px !important;
}

.premium-offer {
  padding: 26px;
  border: 1px solid #decaf3;
  border-radius: 24px;
  background: radial-gradient(ellipse at 100% 0, #eee1ff 0, transparent 55%), #fff;
  box-shadow: 0 14px 42px rgba(91, 37, 157, .12);
}

.premium-offer-heading { margin-bottom: 18px; }
.premium-offer-eyebrow {
  color: #6D2FD0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.premium-offer-heading h1 {
  margin: 4px 0;
  color: #291445;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.premium-offer-heading h1:focus { outline: none; }
.premium-offer-heading p { margin: 0; color: #70637e; font-size: .85rem; line-height: 1.5; }
.premium-plan-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.premium-plan-picker legend { padding: 0; font-size: .8rem; font-weight: 600; color: #473357; }
.premium-plan-picker .duration-options-grid { gap: 10px; margin: 12px 0 0; }
.premium-plan-picker .duration-card {
  min-width: 0;
  padding: 18px 9px 13px;
  align-items: flex-start;
  text-align: left;
  border: 1.5px solid #e3d9ee;
  background: rgba(255,255,255,.85);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.premium-plan-picker .duration-card.active {
  border-color: #6D2FD0;
  background: #f6efff;
  box-shadow: 0 0 0 1px #6D2FD0, 0 7px 18px rgba(109,47,208,.1);
}
.premium-plan-picker .duration-card input {
  display: block;
  position: absolute;
  top: 13px;
  right: 9px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6D2FD0;
  cursor: pointer;
}
.premium-plan-picker .duration-card:focus-within { outline: 3px solid #9b66e2; outline-offset: 3px; }
.premium-plan-picker .duration-title { padding-right: 19px; font-size: .88rem; line-height: 1.2; }
.premium-plan-picker .duration-cost { margin-top: 8px; color: #5623a8; font-size: 1.03rem; font-weight: 700; line-height: 1.2; }
.premium-plan-picker .duration-cost small { display: block; margin-top: 3px; color: #796989; font-size: .64rem; font-weight: 400; }
.premium-plan-picker .duration-total { margin-top: 8px; color: #51435d; font-size: .64rem; }
.premium-plan-picker .discount-tag { top: -10px; right: 10px; background: #6D2FD0; padding: 2px 7px; }
.premium-checkout { margin-top: 18px; }
.premium-checkout-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; font-size: .78rem; color: #655472; }
.premium-checkout-summary strong { color: #382048; font-size: .94rem; }
.premium-checkout-summary small { font-size: .65rem; font-weight: 400; color: #70637e; }
#premium-subscribe-button { width: 100%; min-height: 50px; gap: 12px; margin: 0; font-size: .96rem; background: linear-gradient(120deg, #8A4DF0, #6D2FD0 50%, #4B1FA3); box-shadow: 0 8px 20px rgba(109,47,208,.23); }
.premium-checkout-terms { margin: 10px 0 0; text-align: center; color: #70637e; font-size: .67rem; line-height: 1.5; }
.premium-comparison { margin-top: 18px; border: 1px solid #e5dbef; border-radius: 18px; background: #fff; padding: 16px 20px; }
.premium-comparison summary { color: #513666; font-size: .8rem; font-weight: 600; cursor: pointer; }
.premium-comparison .subscription-plans-table { margin-top: 22px; }

@media (max-width: 580px) {
  #subscription-page-view > .landing-container { padding: 12px 12px 20px !important; }
  .premium-offer { padding: 16px; border-radius: 20px; }
  .premium-offer-heading { margin-bottom: 12px; }
  .premium-offer-heading h1 { font-size: 1.4rem; }
  .premium-offer-heading p { font-size: .73rem; }
  .premium-plan-picker legend { font-size: .73rem; }
  .premium-plan-picker .duration-options-grid { gap: 12px 10px; }
  .premium-plan-picker .duration-card { padding: 11px 10px 10px; }
  .premium-plan-picker .duration-cost { margin-top: 5px; font-size: .93rem; }
  .premium-plan-picker .duration-cost small { display: inline; font-size: .56rem; }
  .premium-plan-picker .duration-total { margin-top: 4px; font-size: .6rem; }
  .premium-checkout { margin-top: 12px; }
  .premium-checkout-summary { gap: 2px 6px; font-size: .68rem; margin-bottom: 8px; }
  .premium-checkout-summary strong { font-size: .82rem; }
  .premium-checkout-summary small { font-size: .56rem; }
  #premium-subscribe-button { min-height: 46px; font-size: .85rem; }
  .premium-checkout-terms { margin-top: 8px; font-size: .61rem; }
  .premium-comparison { padding: 14px; }
  .premium-comparison summary { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .premium-plan-picker .duration-card { transition: none; }
}

/* Auth channels and active membership status */
.premium-menu-btn.is-subscribed,.premium-item.is-subscribed{color:#24724c}
.is-subscribed svg{stroke:#24724c}

#premium-subscribe-button.is-current-subscription{background:#edf7f0;color:#24724c;border:1px solid #c9e4d2;opacity:1;cursor:default;box-shadow:none}
