:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --pink: #fff0f5;
  --pink2: #fde4ec;
  --dark: #111111;
  --text: #222222;
  --muted: #666666;
  --line: #eeeeee;
  --white: #ffffff;
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.06);
  --radius: 18px;
}

/* ==========================
   GLOBAL RESET
========================== */


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 38px;
}

.section-title span {
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================
   BUTTONS
========================== */

.btn {
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn.light {
  background: var(--pink2);
  color: var(--primary);
}

.icon-btn {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: pointer;
}

/* ==========================
   HEADER / NAVBAR
========================== */

.topbar {
  height: 78px;
  background: #ffffff;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  width: 100%;
  gap: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-actions .btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.nav-actions .btn.outline {
  min-width: 82px;
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.nav-actions .btn:not(.outline) {
  min-width: 132px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 32px;
  font-weight: 800;
  color: var(--primary);

  white-space: nowrap;
  flex-shrink: 0;
}

.logo span {
  font-size: 12px;
  color: #555555;
  display: block;
  font-weight: 500;
  margin-top: 4px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex: 1;
}

.menu a {
  font-weight: 700;
  font-size: 14px;
  color: #222222;
  position: relative;
}

.menu a.active,
.menu a:hover {
  color: var(--primary);
}

.menu a.active::after,
.menu a:hover::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary);
  left: 0;
  bottom: 18px;
  border-radius: 10px;
}

.mobile-toggle {
  display: none;
}

/* ==========================
   HOME HERO
========================== */

.hero {
  background: linear-gradient(90deg, #fff0f5 0%, #fde4ec 100%);
  padding: 76px 0 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero h1 {
  font-family: Georgia, serif;
  font-size: 72px;
  line-height: 1.05;
  margin: 0 0 22px;
  color: #111111;
  max-width: 620px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 22px;
  line-height: 1.55;
  color: #444444;
  margin: 0 0 26px;
  max-width: 520px;
}

.hero .hero-trust {
  margin-top: 18px;
  font-size: 15px;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ==========================
   HOME SEARCH BOX
========================== */

.search-box {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: -80px;
  position: relative;
  z-index: 5;
}

.search-box h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-family: Georgia, serif;
}

.search-card{
    background:#fff;
    margin-top:-55px;
    position:relative;
    z-index:20;

    border-radius:22px;

    padding:28px;

    box-shadow:
    0 15px 45px rgba(0,0,0,.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr 1.1fr 0.9fr;
  gap: 16px;
  align-items: end;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
  color: #222222;
}

.field input,
.field select,
textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 3px solid #fde4ec;
  border-radius: 11px;
  background: #fde4ec;
  font-size: 14px;
  outline: none;
}

textarea {
  height: auto;
  min-height: 130px;
  padding: 14px;
}

.field input:focus,
.field select:focus,
textarea:focus {
  border-color: var(--primary);
}

/* ==========================
   HOME STATS
========================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 34px 20px;
}

.stat b {
  display: block;
  font-size: 34px;
  color: #111111;
  margin-bottom: 8px;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.home-stats{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin:60px 0;
}

.stat-card{

    background:#fff;

    border-radius:18px;

    padding:35px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.3s;
}

.stat-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.12);

}

/* ==========================
   COMMON CARDS / GRIDS
========================== */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card,
.filter,
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* ==========================
   SUCCESS STORY CARDS
========================== */

.profile-card,
.story-card {
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.profile-card img,
.story-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.profile-card .body,
.story-card .body {
  padding: 22px;
}

.story-card h3,
.profile-card h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.story-card p,
.profile-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================
   CTA
========================== */

.cta {
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  border-radius: 22px;
  padding: 38px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.cta h2,
.cta h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
}

.cta p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* ==========================
   FOOTER
========================== */

.footer {
  background: var(--dark);
  color: #ffffff;
  padding: 54px 0 22px;
}

.footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin: 0 0 16px;
}

.footer a,
.footer p {
  color: #cccccc;
  display: block;
  margin: 9px 0;
  line-height: 1.6;
}

.footer a:hover {
  color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333333;
    margin-top: 34px;
    padding-top: 18px;
    color: #bbbbbb;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #ff2d75;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================
   PAGE HERO
========================== */

.page-hero {
  background: var(--pink);
  padding: 65px 0;
}

.page-hero h1 {
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.page-hero span {
  color: var(--primary);
}

.page-hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* ==========================
   SEARCH PAGE
========================== */

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

.filter h3 {
  margin-top: 0;
}

.profile-list {
  display: grid;
  gap: 20px;
}

.list-card {
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.list-card img {
  width: 190px;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.active-state {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* ==========================
   MATCHES PAGE
========================== */

.tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 700;
}

.tab.active {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================
   PROFILE DETAILS PAGE
========================== */

.profile-head {
  background: var(--pink);
  padding: 46px 0;
}

.profile-head-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  gap: 34px;
  align-items: center;
}

.profile-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 28px;
}

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

/* ==========================
   MESSAGES PAGE
========================== */

.chat-layout {
  display: grid;
  grid-template-columns: 310px 1fr 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.convos,
.chat,
.preview {
  background: #ffffff;
  padding: 20px;
}

.chat {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 650px;
}

.convo {
  display: flex;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
}

.convo.active,
.convo:hover {
  background: var(--pink);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.bubble {
  max-width: 72%;
  padding: 13px 15px;
  border-radius: 16px;
  background: #f3f3f3;
  margin: 14px 0;
  line-height: 1.5;
}

.bubble.me {
  background: var(--pink2);
  margin-left: auto;
}

.send-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* ==========================
   MEMBERSHIP PAGE
========================== */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan {
  text-align: center;
}

.plan.selected {
  border: 2px solid var(--primary);
  transform: translateY(-4px);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

td,
th {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: center;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 12px 0;
  overflow: hidden;
  background: #ffffff;
}

.faq-q {
  padding: 18px;
  font-weight: 800;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 18px 18px;
  color: #555555;
  line-height: 1.6;
}

/* ==========================
   BLOG PAGE
========================== */

.blog-search {
  max-width: 560px;
  margin: 0 auto 30px;
}

/* ==========================
   CONTACT PAGE
========================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1100px) {
  .menu {
    gap: 16px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .chat-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .preview {
    display: none;
  }
}

@media (max-width: 900px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    padding: 0;
  }

  .menu a::after {
    display: none;
  }

  .hero-grid,
  .contact-grid,
  .layout,
  .profile-head-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 120px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero img {
    height: 360px;
  }

  .stats,
  .grid,
  .plans,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-card {
    grid-template-columns: 160px 1fr;
  }

  .list-card .actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 52px 0;
  }

  .topbar {
    height: 72px;
  }

  .logo {
    font-size: 20px;
    min-width: auto;
  }

  .menu {
    top: 72px;
  }

  .hero {
    padding: 48px 0 110px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero img {
    height: 280px;
  }

  .search-box {
    margin-top: -70px;
    padding: 22px;
  }

  .form-grid,
  .stats,
  .grid,
  .plans,
  .footer-grid,
  .kv {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .list-card {
    grid-template-columns: 1fr;
  }

  .list-card img {
    width: 100%;
    height: 260px;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .convos {
    border-bottom: 1px solid var(--line);
  }

  .chat {
    border-left: none;
    border-right: none;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    padding: 30px 22px;
  }
}

.popular-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 14px;
}

.popular-searches a {
  color: var(--primary);
  font-weight: 700;
}

.search-btn {
  width: 100%;
  height: 48px;
}

.stat-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--pink2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.section-subtitle {
  text-align: center;
  margin: -24px auto 38px;
  color: var(--muted);
  font-size: 17px;
}

.stats-section {
  padding-top: 70px;
}

.why-section {
  padding-top: 30px;
}

.why-section{
    margin:80px 0;
}

.why-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.why-card{

    background:#fff;

    border-radius:18px;

    padding:30px;

    text-align:left;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    transition:.3s;

}

.why-card:hover{

    transform:translateY(-6px);

}

.premium-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:28px;

    margin-top:35px;

}

.profile-card{

    border-radius:22px;

    overflow:hidden;

    background:#fff;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.profile-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 60px rgba(0,0,0,.14);

}

.profile-card img{

    width:100%;

    height:310px;

    object-fit:cover;

}

.btn{

    border-radius:12px;

    padding:14px 30px;

    font-weight:600;

    transition:.3s;

}

.btn:hover{

    transform:translateY(-3px);

}

.success-preview {
  padding-top: 40px;
}

.success-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

    margin-top:35px;

}

.success-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    transition:.3s;

}

.success-card:hover{

    transform:translateY(-8px);

}

.cta-section {
  padding-top: 30px;
}

.cta-banner{

    margin:80px auto;

    padding:40px 60px;

    border-radius:24px;

    background:linear-gradient(90deg,#fff3f8,#fff8f3);

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.section-title h2{

    font-size:42px;

    font-weight:700;

}

.section-title h2 span{

    color:var(--primary);

}

section{

    padding:70px 0;

}

.container{

    width:min(1320px,92%);

    margin:auto;

}

/* ==========================
   SEARCH PAGE FIXED DESIGN
========================== */

.search-page-section {
  padding: 70px 0 90px;
}

.search-page-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: start;
}

.search-filter-card {
  background: #ffffff;
  border: 20px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.search-filter-card h3 {
  margin: 0 0 24px;
  font-size: 22px;
  font-family: Georgia, serif;
}

.search-filter-card .field {
  margin-bottom: 18px;
}

.filter-btn {
  width: 100%;
  margin-top: 8px;
}

.search-results-area {
  min-width: 0;
}

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}

.search-toolbar strong {
  font-size: 18px;
}

.search-toolbar select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
}

.search-keyword-wrap {
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  box-shadow: 0 8px 24px rgba(62, 0, 24, 0.05);
}

.search-keyword-wrap i {
  color: var(--primary);
  font-size: 14px;
}

.search-keyword-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.search-keyword-wrap input::placeholder {
  color: var(--muted);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-profile-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  grid-template-columns: 190px 1fr 180px;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.search-profile-card img {
  width: 190px;
  height: 190px;
  border-radius: 16px;
  object-fit: cover;
}

.search-profile-info h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 0 0 8px;
}

.search-profile-info h3 span {
  color: #24c35c;
  font-size: 16px;
}

.search-profile-info p {
  margin: 7px 0;
  color: #444444;
}

.search-profile-actions {
  display: grid;
  gap: 10px;
}

.small-action {
  padding: 11px 14px;
  font-size: 13px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination button {
  width: 44px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.pagination button.active {
  background: var(--primary);
  color: #ffffff;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty-state {
  background: var(--pink);
  border-radius: 18px;
  padding: 45px;
  text-align: center;
}

@media (max-width: 900px) {
  .search-page-layout {
    grid-template-columns: 1fr;
  }

  .search-filter-card {
    position: static;
  }

  .search-profile-card {
    grid-template-columns: 160px 1fr;
  }

  .search-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .search-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-profile-card {
    grid-template-columns: 1fr;
  }

  .search-profile-card img {
    width: 100%;
    height: 280px;
  }

  .search-profile-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   MATCHES PAGE IMPROVED
========================== */

.matches-hero {
  background: linear-gradient(90deg, #fff0f5, #fde4ec);
  padding: 72px 0;
}

.matches-hero h1 {
  font-family: Georgia, serif;
  font-size: 56px;
  margin: 0 0 12px;
}

.matches-hero h1 span {
  color: var(--primary);
}

.matches-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.matches-section {
  padding: 60px 0 85px;
}

.matches-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.match-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.match-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #222222;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.match-tab.active,
.match-tab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.match-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.match-sort select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  font-weight: 600;
}

.match-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.match-stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 26px;
  text-align: center;
}

.match-stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--pink2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.match-stat-card h3 {
  font-size: 30px;
  margin: 0 0 4px;
}

.match-stat-card p {
  margin: 0;
  color: var(--muted);
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.match-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: 0.25s ease;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.match-img-wrap {
  height: 285px;
  position: relative;
  overflow: hidden;
}

.match-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

.online-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #1db954;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

.match-heart {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.match-body {
  padding: 22px;
}

.match-body h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 0 0 8px;
}

.match-body h3 span {
  color: #1db954;
  font-size: 15px;
}

.match-body p {
  margin: 7px 0;
  color: #444444;
}

.match-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 14px;
}

.circle-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

.circle-btn:hover {
  background: var(--pink2);
}

.match-percent {
  text-align: center;
  color: var(--primary);
  font-weight: 900;
}

.matches-upgrade {
  margin-top: 42px;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  border-radius: 22px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.matches-upgrade h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
}

.matches-upgrade p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .matches-grid,
  .match-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .matches-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .matches-hero h1 {
    font-size: 38px;
  }

  .matches-grid,
  .match-stats {
    grid-template-columns: 1fr;
  }

  .matches-upgrade {
    flex-direction: column;
    text-align: center;
  }

  .match-img-wrap {
    height: 310px;
  }
}

/* ==========================
   MEMBERSHIP PAGE IMPROVED
========================== */

.membership-hero {
  background: linear-gradient(90deg, #fff0f5, #fde4ec);
  padding: 72px 0;
}

.membership-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 340px;
  gap: 48px;
  align-items: center;
}

.membership-hero h1 {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 18px;
}

.membership-hero h1 span {
  color: var(--primary);
}

.membership-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  line-height: 1.6;
}

.membership-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  font-weight: 800;
}

.membership-hero-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px;
  text-align: center;
}

.membership-hero-card h3 {
  margin: 0 0 20px;
  font-family: Georgia, serif;
  font-size: 24px;
}

.progress-circle {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 12px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
  font-weight: 900;
}

.membership-section {
  padding: 70px 0 90px;
}

.membership-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.membership-plan-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 34px 30px 28px;
  text-align: center;
  position: relative;
  transition: 0.25s ease;
}

.membership-plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.membership-plan-card.selected {
  border: 2px solid var(--primary);
  transform: translateY(-6px);
}

.membership-plan-card.popular {
  padding-top: 44px;
}

.popular-label {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 0 0 16px 16px;
  font-weight: 800;
  font-size: 13px;
}

.membership-plan-card h3 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 0 0 8px;
}

.plan-subtitle {
  color: var(--muted);
  margin: 0 0 20px;
}

.plan-price {
  color: var(--primary);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 18px;
}

.plan-price span {
  color: #444444;
  font-size: 15px;
  font-weight: 600;
}

.membership-plan-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.membership-plan-card li {
  padding: 9px 0;
  color: #333333;
  border-bottom: 1px solid #f3f3f3;
}

.plan-save {
  background: var(--pink2);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px;
  font-weight: 800;
}

.compare-heading,
.faq-heading {
  margin-top: 58px;
}

.compare-wrap {
  overflow-x: auto;
}

.compare-table th {
  background: var(--pink);
  color: #111111;
  font-weight: 900;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 800;
}

.compare-table td,
.compare-table th {
  padding: 18px;
}

.membership-trust {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: var(--pink);
  border: 1px solid var(--pink2);
  border-radius: 20px;
  padding: 24px;
}

.membership-trust div {
  display: grid;
  gap: 6px;
}

.membership-trust strong {
  font-size: 16px;
}

.membership-trust span {
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 22px;
  font-weight: 900;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
}

.faq-item.open .faq-q::after {
  content: "-";
}

.faq-a {
  display: none;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-a {
  display: block;
}

@media (max-width: 950px) {
  .membership-hero-grid,
  .membership-plans,
  .membership-trust {
    grid-template-columns: 1fr;
  }

  .membership-hero h1 {
    font-size: 42px;
  }
}

/* ==========================
   SUCCESS STORIES PAGE IMPROVED
========================== */

.stories-hero {
  background: linear-gradient(90deg, #fff0f5, #fde4ec);
  padding: 78px 0;
}

.stories-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.stories-hero h1 {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1.08;
  margin: 0 0 18px;
}

.stories-hero h1 span {
  color: var(--primary);
}

.stories-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.stories-hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stories-section {
  padding: 62px 0 90px;
}

.stories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.story-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #222222;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.story-tab.active,
.story-tab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.story-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.story-sort select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  font-weight: 600;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.success-story-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: 0.25s ease;
}

.success-story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.story-image-wrap {
  height: 270px;
  position: relative;
  overflow: hidden;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.story-content {
  padding: 24px;
}

.story-content h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 0 0 8px;
}

.story-content h3 span {
  color: #1db954;
  font-size: 15px;
}

.matched-date {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.story-quote {
  color: #444444;
  line-height: 1.6;
  min-height: 54px;
}

.married-date {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0;
}

.read-story-btn {
  width: 100%;
}

.share-story-cta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    padding:40px 50px;
    margin:60px 0;
    border:1px solid #f6c78f;
    border-radius:24px;
    background:linear-gradient(135deg,#fff7fb,#fff8ef);
    box-shadow:0 20px 45px rgba(0,0,0,.06);
}

.share-story-cta h2{
    margin:0 0 10px;
    font-size:42px;
    font-family:Georgia,serif;
}

.share-story-cta p{
    margin:0;
    font-size:18px;
    color:#666;
    line-height:1.7;
    max-width:600px;
}

.stories-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.cta-icon{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    color:#ec1d63;
    box-shadow:0 10px 30px rgba(236,29,99,.12);
    flex-shrink:0;
}

.share-story-cta .btn{
    padding:16px 38px;
    border-radius:14px;
    font-size:17px;
    white-space:nowrap;
}

.share-story-cta > div{
    display:flex;
    align-items:center;
    gap:25px;
    flex:1;
}


.stories-stats strong {
  display: block;
  font-size: 30px;
  color: #111111;
  margin-bottom: 6px;
}

.share-story-cta h2 span{
    color:#ec1d63;
}

@media (max-width: 1000px) {
  .stories-hero-grid,
  .stories-grid,
  .stories-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stories-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stories-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 650px) {
  .stories-hero-grid,
  .stories-grid,
  .stories-stats {
    grid-template-columns: 1fr;
  }

  .stories-hero h1 {
    font-size: 38px;
  }

  .stories-hero-image img {
    height: 290px;
  }

  .share-story-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================
   BLOG PAGE IMPROVED
========================== */

.blog-hero {
  background: linear-gradient(90deg, #fff0f5, #fde4ec);
  padding: 72px 0;
}

.blog-hero h1 {
  font-family: Georgia, serif;
  font-size: 56px;
  margin: 0 0 12px;
}

.blog-hero h1 span {
  color: var(--primary);
}

.blog-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.blog-section {
  padding: 64px 0 90px;
}

.blog-search-wrap {
  max-width: 640px;
  margin: 0 auto 28px;
}

.blog-search-wrap input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.blog-search-wrap input:focus {
  border-color: var(--primary);
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 38px;
}

.blog-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.blog-tab.active,
.blog-tab:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-category {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 16px;
}

.blog-card h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.6;
  min-height: 78px;
}

@media (max-width: 950px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-hero h1 {
    font-size: 44px;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero h1 {
    font-size: 38px;
  }
}

/* ==========================
   CONTACT PAGE IMPROVED
========================== */

.contact-hero {
  background: linear-gradient(90deg, #fff0f5, #fde4ec);
  padding: 72px 0;
}

.contact-hero h1 {
  font-family: Georgia, serif;
  font-size: 56px;
  margin: 0 0 12px;
}

.contact-hero h1 span {
  color: var(--primary);
}

.contact-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.contact-section {
  padding: 70px 0 90px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.contact-form-card,
.contact-info-card {
  background: #ffffff;
  border: 15px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.contact-form-card h2,
.contact-info-card h2 {
  font-family: Georgia, serif;
  font-size: 30px;
  margin: 0 0 26px;
}

.contact-form-card .field {
  margin-bottom: 18px;
}

.contact-form-card input,
.contact-form-card textarea {
  height: 50px;
  border-radius: 12px;
}

.contact-form-card textarea {
  height: 150px;
  resize: vertical;
}

.error {
  display: block;
  color: #d50000;
  font-size: 13px;
  margin-top: 6px;
  min-height: 16px;
}

.input-error {
  border-color: #d50000 !important;
}

.contact-success {
  margin: 16px 0 0;
  color: #1db954;
  font-weight: 800;
}

.contact-info-list {
  display: grid;
  gap: 20px;
}

.contact-info-list div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-info-list span {
  color: var(--primary);
  font-size: 20px;
}

.contact-info-list p {
  margin: 0;
  color: #444444;
  line-height: 1.6;
}

.contact-help-box {
  margin-top: 30px;
  background: var(--pink);
  border-radius: 18px;
  padding: 26px;
}

.contact-help-box h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.contact-help-box p {
  color: var(--muted);
  margin: 0 0 18px;
}

@media (max-width: 850px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 42px;
  }
}

/* ==========================
   LANDING / INDEX PAGE
========================== */

.landing-body {
  margin: 0;
  overflow-x: hidden;
}

.landing-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.landing-content {
  max-width: 850px;
}

.landing-content h1 {
  font-family: Georgia, serif;
  font-size: 82px;
  line-height: 1.05;
  margin: 0 0 22px;
}

.landing-content h1 span {
  color: var(--primary);
}

.landing-content p {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.outline-white {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.outline-white:hover {
  background: #ffffff;
  color: var(--primary);
}

.landing-note {
  font-size: 15px !important;
  opacity: 0.95;
}

@media (max-width: 700px) {
  .landing-content h1 {
    font-size: 46px;
  }

  .landing-content p {
    font-size: 17px;
  }

  .landing-actions {
    flex-direction: column;
  }
}
/* ==========================
   LOGIN / REGISTER AUTH PAGES
========================== */

.auth-page-body {
  margin: 0;
  background: linear-gradient(120deg, #fff0f5, #fde4ec);
  min-height: 100vh;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px;
}

.auth-left {
  color: #111111;
}

.auth-logo {
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 56px;
}

.auth-logo span {
  color: #555555;
  font-size: 13px;
  font-weight: 500;
}

.auth-left h1 {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1.08;
  margin: 0 0 18px;
}

.auth-left p {
  color: #444444;
  font-size: 20px;
  line-height: 1.6;
  max-width: 560px;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.auth-points span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 42px;
  max-width: 480px;
  width: 100%;
  justify-self: end;
}

.auth-card h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--muted);
  margin: 0 0 28px;
}

.auth-card .field {
  margin-bottom: 18px;
}

.auth-card input,
.auth-card select {
  height: 52px;
  border-radius: 13px;
}

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
}

.auth-error {
  display: block;
  min-height: 17px;
  color: #d50000;
  font-size: 13px;
  margin-top: 6px;
}

.auth-message {
  min-height: 20px;
  margin: 16px 0 0;
  font-weight: 800;
  color: #d50000;
}

.auth-message.success {
  color: #1db954;
}

.auth-message.info {
  color: var(--primary);
}

.auth-switch {
  text-align: center;
  margin: 24px 0 0;
  color: var(--muted);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 900;
}

.error-text {
  color: #d50000 !important;
}

.contact-success.info {
  color: var(--primary);
}

@media (max-width: 850px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-card {
    justify-self: stretch;
    max-width: none;
  }

  .auth-left h1 {
    font-size: 44px;
  }

  .auth-logo {
    margin-bottom: 28px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 28px 16px;
  }

  .auth-card {
    padding: 28px 22px;
  }

  .auth-left h1 {
    font-size: 36px;
  }
}


/* ==========================
   ACCOUNT / FIREBASE SESSION
========================== */

.user-box {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-user-name {
  font-weight: 800;
  color: var(--primary);
}

.account-form .field {
  margin-bottom: 18px;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 14px;
  box-sizing: border-box;
  font-size: 15px;
}

.account-form input,
.account-form select {
  height: 52px;
}

.account-form textarea {
  resize: vertical;
}

.account-form input:disabled {
  background: #f7f7f7;
  color: var(--muted);
}

.account-grid .card h2,
.account-grid .card h3 {
  margin-top: 0;
}


.account-logout {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.account-tips {
  margin-top: 18px;
}


/* ==========================
   NAVBAR FIX
   Keeps all links in one clean row and puts logout only on profile page.
========================== */
.topbar {
  min-height: 78px;
}

.nav {
  gap: 16px;
}

.logo {
  flex: 0 0 auto;
  min-width: 205px;
  white-space: nowrap;
}

.menu {
  min-width: 0;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links,
.nav-account {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: flex-end;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-account {
  gap: 12px;
  flex: 0 0 auto;
}

.nav-links a,
.nav-account a,
.user-box {
  white-space: nowrap;
}

.menu a {
  line-height: 1;
}

.menu a.active::after,
.menu a:hover::after {
  bottom: -12px;
}

.user-box {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-name {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

@media (max-width: 1180px) {
  .logo {
    min-width: 185px;
    font-size: 22px;
  }

  .nav-links {
    gap: 16px;
  }

  .menu a {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 24px;
    gap: 18px;
    display: none;
    box-shadow: var(--shadow);
  }

  .menu.show {
    display: flex;
  }

  .nav-links,
  .nav-account {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .menu a.active::after,
  .menu a:hover::after {
    display: none;
  }

  .user-box,
  .nav-user-name {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .menu {
    top: 72px;
  }
}

/* ==========================
   FINAL NAVBAR + PROFILE ICON FIX
========================== */
.topbar {
  height: 86px;
  min-height: 86px;
  background: #fff;
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}


.logo-heart {
  font-size: 42px;
  color: var(--primary);
  line-height: 1;
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 34px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.logo-tagline {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-top: 4px;
}
.menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.nav-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.3vw, 28px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a {
  font-size: 15px;
  font-weight: 700;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.nav-account {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 54px;
}

.profile-icon-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 99, 0.18);
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform .15s ease, box-shadow .15s ease;
}

.profile-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(233, 30, 99, .18);
}

.profile-avatar {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}

.user-box {
  display: none !important;
}

.nav-account .btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

body.logged-in .login-link,
body.logged-in .register-link {
  display: none !important;
}

body.logged-in .profile-icon-link {
  display: inline-flex;
}

@media (max-width: 1250px) {
  .logo { min-width: 235px; }
  .logo-text { font-size: 25px; }
  .logo-tagline { font-size: 13px; }
  .nav-links a { font-size: 14px; }
}

@media (max-width: 1080px) {
  .logo { min-width: auto; }
  .logo-tagline { display: none; }
  .nav-links { gap: 14px; }
}

@media (max-width: 940px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    display: none;
    padding: 20px 24px;
    box-shadow: var(--shadow);
  }

  .menu.show { display: flex; }

  .nav-links,
  .nav-account {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
  }

  .nav-links a {
    height: auto;
    padding: 8px 0;
  }

  .nav-links a.active::after,
  .nav-links a:hover::after {
    display: none;
  }

  body.logged-in .profile-icon-link {
    display: inline-flex;
  }
}

/* ==========================
   VIEW USER PROFILE PAGE
   profile.html = public profile details page
========================== */

.profile-empty-state {
  margin: 50px auto;
}

.profile-view-header {
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  border-radius: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: 260px 1fr 180px;
  gap: 32px;
  align-items: center;
  margin: 50px 0;
  box-shadow: var(--shadow-soft);
}

.profile-view-photo img {
  width: 260px;
  height: 310px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.profile-view-main h1 {
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 1.1;
  margin: 12px 0;
}

.profile-view-main h1 span {
  color: #1db954;
  font-size: 18px;
}

.profile-view-main p {
  color: #444;
  font-size: 17px;
  margin: 8px 0;
  line-height: 1.5;
}

.profile-view-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.profile-match-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 26px;
  text-align: center;
}

.profile-match-box strong {
  display: block;
  color: var(--primary);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.profile-match-box span {
  color: var(--muted);
  font-weight: 800;
}

.profile-view-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  margin-bottom: 60px;
}

.profile-section-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
  margin-bottom: 24px;
}

.profile-section-card h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 0 0 16px;
}

.profile-section-card p {
  color: #444;
  line-height: 1.7;
  margin: 8px 0;
}

.detail-list p strong {
  color: #111;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.profile-photo-grid img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.similar-profile-section {
  padding-top: 10px;
}

.safety-card {
  background: var(--pink);
}

@media (max-width: 900px) {
  .profile-view-header,
  .profile-view-grid {
    grid-template-columns: 1fr;
  }

  .profile-view-photo img {
    width: 100%;
    height: 360px;
  }

  .profile-match-box {
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .profile-view-header {
    padding: 22px;
  }

  .profile-view-main h1 {
    font-size: 34px;
  }

  .profile-photo-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-grid img {
    height: 250px;
  }
}
.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-actions .btn {
  flex: 1;
  min-width: 120px;
  padding: 11px 14px;
  font-size: 13px;
}

.profile-card-img-link {
  display: block;
}

.profile-card h3 a,
.list-card h2 a {
  color: inherit;
}

.profile-card h3 a:hover,
.list-card h2 a:hover {
  color: var(--primary);
}

/* ==========================
   MATCHES VIEW PROFILE FIX
========================== */

.match-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.match-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-body h3 a {
  color: inherit;
  text-decoration: none;
}

.match-body h3 a:hover {
  color: var(--primary);
}

.match-view-btn {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.match-actions .circle-btn {
  text-decoration: none;
}

/* BhaktiMatrimony brand logo */
.brand-logo,
.footer-logo.brand-logo,
.auth-logo {
  text-decoration: none;
}

.footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
} 

.site-logo-img {
  display: block;
  width: 230px;
  max-width: 100%;
  height: 68px;
  object-fit: contain;
}

.footer-logo-img {
  width: 220px;
  height: auto;
  margin-bottom: 12px;
}

.auth-logo-img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 18px;
}

@media (max-width: 768px) {
  .site-logo-img {
    width: 185px;
    height: 58px;
  }
  .auth-logo-img {
    width: 220px;
  }
}


/* ==========================
   HOME HORIZONTAL PROFILE SECTIONS
========================== */

.premium-members-section,
.for-you-section {
  padding-top: 35px;
  padding-bottom: 45px;
}

.premium-members-section {
  background: #ffffff;
}

.for-you-section {
  background: var(--pink);
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.left-title {
  text-align: left;
  margin-bottom: 10px;
}

.left-subtitle {
  text-align: left;
  margin: 0;
}

.horizontal-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 9px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 999px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.profile-scroll .profile-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.profile-scroll .profile-card img {
  height: 245px;
}

.profile-scroll .profile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-scroll .profile-card {
    flex-basis: 285px;
  }
}

/* ==========================
   SUBSCRIPTION LOCKED PROFILES
========================== */
.locked-profile-card {
  position: relative;
}

.locked-img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.locked-profile-card .locked-img-wrap img,
.locked-profile-card > img,
.search-profile-card.locked-profile-card > img {
  filter: blur(5px) saturate(0.85);
  transform: scale(1.02);
}

.profile-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(48,0,20,0.28));
  text-align: center;
}

.profile-lock-box {
  width: auto;
  min-width: 118px;
  max-width: 82%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(62, 0, 24, 0.12);
  padding: 9px 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  backdrop-filter: blur(8px);
}

.profile-lock-box strong {
  font-size: 13px;
  line-height: 1;
}

.profile-lock-box span {
  display: none;
}

.profile-lock-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink2);
  color: var(--primary);
  font-size: 12px;
  flex: 0 0 auto;
}

.search-img-lock-wrap {
  width: 185px;
  min-height: 185px;
  border-radius: 18px;
  flex: 0 0 185px;
}

.search-img-lock-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-image-link.locked-img-wrap {
  height: 100%;
}

.subscription-required {
  max-width: 620px;
  margin: 50px auto;
  text-align: center;
}

.subscription-required .profile-lock-icon {
  margin: 0 auto 14px;
}

.auth-message.success {
  color: #157347;
  background: #eaf7ef;
  border: 1px solid #bfe6cc;
  padding: 12px 14px;
  border-radius: 12px;
}

.auth-message.info {
  color: var(--primary);
  background: var(--pink2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
}

/* ==========================
   UPI PAYMENT MODAL
========================== */
.upi-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 13, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.upi-modal.show {
  display: flex;
}

.upi-modal-card {
  width: min(94vw, 440px);
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  padding: 26px;
  position: relative;
}

.upi-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: #f6f1f3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 22px;
  cursor: pointer;
}

.upi-modal-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.upi-lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--pink2);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.upi-modal-header h2 {
  margin: 0;
  font-size: 24px;
}

.upi-modal-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.upi-amount-box {
  background: linear-gradient(135deg, var(--pink2), #fff7fb);
  border: 1px solid #ffd5e4;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.upi-amount-box span {
  color: var(--muted);
  font-weight: 800;
}

.upi-amount-box strong {
  color: var(--primary);
  font-size: 28px;
}

.upi-steps {
  color: #333;
}

.upi-steps p {
  margin: 12px 0;
}

.upi-id-line {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.upi-id-line button {
  float: right;
  border: 0;
  color: var(--primary);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.upi-label {
  display: block;
  font-weight: 900;
  margin: 16px 0 8px;
}

.upi-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}

.upi-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.08);
}

.verify-payment-btn {
  width: 100%;
  margin-top: 12px;
}

.upi-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.admin-hero h1 span { color: var(--primary); }
.admin-section { padding: 55px 0; background: #fff; }
.admin-login-card { max-width: 430px; margin: 0 auto; padding: 34px; text-align: center; border-radius: 22px; }
.admin-login-card input,
.admin-panel-head input { width: 100%; padding: 14px 16px; border: 1px solid #f1cbd9; border-radius: 14px; outline: none; margin: 16px 0; }
.admin-login-card input:focus,
.admin-panel-head input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(233, 30, 99, .08); }
.admin-login-card small { display: block; margin-top: 14px; color: #777; }
.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.admin-topbar h2 { margin-bottom: 4px; }
.admin-stats-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:18px; margin-bottom:28px; }
.admin-stat-card { background:#fff; border:1px solid #f5dbe5; border-radius:18px; padding:22px; box-shadow:0 10px 28px rgba(0,0,0,.06); }
.admin-stat-card span { color:#777; font-weight:700; font-size:13px; }
.admin-stat-card strong { display:block; margin-top:8px; font-size:32px; color:var(--primary); }
.admin-tabs { display:flex; gap:12px; margin-bottom:18px; }
.admin-tab { border:1px solid #f2c9d8; background:#fff; color:#4a1025; padding:12px 22px; border-radius:999px; font-weight:800; cursor:pointer; }
.admin-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.admin-panel { display:none; background:#fff; border:1px solid #f6d7e2; border-radius:22px; padding:22px; box-shadow:0 12px 34px rgba(0,0,0,.06); }
.admin-panel.active { display:block; }
.admin-panel-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; }
.admin-panel-head input { max-width:360px; margin:0; }
.admin-table-wrap { overflow-x:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.admin-table th { text-align:left; background:#fff3f7; color:#4a1025; padding:14px; font-size:13px; }
.admin-table td { padding:14px; border-bottom:1px solid #f6e5eb; vertical-align:middle; }
.admin-profile-mini { display:flex; align-items:center; gap:12px; }
.admin-profile-mini img { width:54px; height:54px; border-radius:50%; object-fit:cover; }
.admin-profile-mini small, .admin-table small { color:#777; display:block; margin-top:3px; }
.admin-status { display:inline-flex; padding:7px 12px; border-radius:999px; font-size:12px; font-weight:800; text-transform:capitalize; background:#f3f3f3; color:#555; }
.admin-status.approved, .admin-status.verified-demo { background:#e9fff1; color:#078c42; }
.admin-status.pending { background:#fff7dc; color:#a46c00; }
.admin-status.rejected { background:#ffe9e9; color:#c62828; }
.admin-actions { display:flex; flex-wrap:wrap; gap:8px; }
.btn.mini { padding:8px 12px; font-size:12px; }
.btn.danger { background:#e53935; color:#fff; border-color:#e53935; }
@media (max-width: 760px) {
  .admin-stats-grid { grid-template-columns:repeat(2, 1fr); }
  .admin-panel-head, .admin-topbar { align-items:flex-start; flex-direction:column; }
  .admin-panel-head input { max-width:100%; }
}
@media (max-width: 520px) { .admin-stats-grid { grid-template-columns:1fr; } }

/* Real admin panel controls */
.admin-inline-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.admin-inline-actions input{min-width:280px}.admin-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#fff7fb;border:1px solid #ffd3e2;border-radius:18px;padding:16px;margin:0 0 18px}.admin-form input,.admin-form select,.admin-form textarea{width:100%;border:1px solid #ffd3e2;border-radius:12px;padding:12px;background:#fff}.admin-form textarea{grid-column:1/-1;min-height:80px;resize:vertical}.admin-form-actions{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end}.admin-help-card{background:#fff;border:1px solid #ffd3e2;border-radius:18px;padding:18px;box-shadow:0 10px 25px rgba(0,0,0,.04)}.admin-actions .btn.mini.outline{background:#fff}.admin-status.rejected{background:#ffe8e8;color:#e03131}.admin-status.verified-demo,.admin-status.pending{background:#fff1c2;color:#9a6700}.admin-status.approved{background:#dcffe9;color:#0b8a36}@media(max-width:800px){.admin-form{grid-template-columns:1fr}.admin-inline-actions input{min-width:100%}}

/* Registration profile completion flow */
.registration-body { background: linear-gradient(135deg, #fff7fb 0%, #ffffff 45%, #fff0f5 100%); }
.profile-registration-shell { min-height: 100vh; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px; }
.registration-panel, .registration-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 32px; }
.registration-panel { position: sticky; top: 24px; }
.registration-panel h1 { font-family: Georgia, serif; font-size: 34px; line-height: 1.15; margin: 18px 0 12px; }
.profile-progress-wrap { margin-top: 28px; }
.profile-progress-info { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--muted); }
.profile-progress { height: 10px; background: var(--pink2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.profile-progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .25s ease; }
.registration-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.registration-steps button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; font-weight: 800; cursor: pointer; }
.registration-steps button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.registration-card { min-height: 620px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field.full { grid-column: 1 / -1; }
.registration-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.photo-preview-grid, .profile-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.photo-choice { border: 2px solid var(--line); border-radius: 16px; padding: 10px; cursor: pointer; background: #fff; font-weight: 700; color: var(--muted); }
.photo-choice.selected { border-color: var(--primary); background: var(--pink); color: var(--primary); }
.photo-choice img, .profile-gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }

/* Profile dashboard sections */
.profile-dashboard-section { background: #fffafc; }
.profile-overview-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.profile-overview-card img { width: 150px; height: 150px; object-fit: cover; border-radius: 22px; }
.profile-overview-card h2 { font-family: Georgia, serif; font-size: 34px; margin: 10px 0 4px; }
.profile-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.profile-section-card { margin: 0; }
.section-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-card-head h3 { margin: 0; font-size: 22px; }
.btn.mini { padding: 9px 13px; border-radius: 10px; font-size: 12px; }
.profile-info-list { display: grid; gap: 12px; }
.profile-info-list div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.profile-info-list span { color: var(--muted); }
.profile-info-list b { font-weight: 700; }
.account-actions-card { margin-top: 24px; }
.profile-edit-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 3000; padding: 24px; overflow: auto; }
.profile-edit-modal.show { display: block; }
.profile-edit-card { background: #fff; border-radius: 24px; max-width: 980px; margin: 30px auto; padding: 28px; position: relative; box-shadow: var(--shadow); }
.editor-group { border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 18px; background: #fff; }
.editor-group h3 { margin: 0 0 16px; color: var(--primary); }

@media (max-width: 900px) {
  .profile-registration-shell { grid-template-columns: 1fr; padding: 18px; }
  .registration-panel { position: static; }
  .profile-overview-card { grid-template-columns: 1fr; text-align: center; }
  .profile-overview-card img { margin: 0 auto; }
  .profile-sections { grid-template-columns: 1fr; }
  .profile-info-list div { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .registration-panel, .registration-card, .profile-edit-card { padding: 20px; border-radius: 20px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .registration-steps { grid-template-columns: repeat(4, 1fr); }
}

/* Clean modal-style registration wizard upgrade */
.registration-modal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(233, 30, 99, .16), transparent 28%),
    linear-gradient(135deg, #e8eef7 0%, #f9fbff 45%, #fff3f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.modal-profile-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.registration-modal-card {
  width: min(1460px, 100%);
  min-height: min(880px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(28, 44, 64, .28);
}
.registration-sidebar,
.registration-form-card {
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.registration-sidebar {
  position: relative !important;
  top: auto !important;
  padding: 40px 32px !important;
  border-right: 1px solid #edf0f5;
}
.registration-sidebar .auth-logo-img { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; }
.registration-sidebar h1 { font-family: inherit !important; font-size: 28px !important; margin: 22px 0 8px !important; color: #111827; letter-spacing: -.03em; }
.registration-sidebar p { color: #667085; line-height: 1.55; margin: 0; }
.registration-form-card { position: relative; padding: 42px 52px 28px !important; min-height: 0 !important; overflow-y: auto; }
.registration-close { position: absolute; top: 26px; right: 28px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #e7eaf0; color: #111827; border-radius: 50%; background: #fff; text-decoration: none; }
.profile-ring { width: 154px; height: 154px; margin: 28px auto 18px; position: relative; display: grid; place-items: center; }
.profile-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.profile-ring circle { fill: none; stroke-width: 9; }
.profile-ring .ring-bg { stroke: #fde0ea; }
.profile-ring .ring-value { stroke: #e91e63; stroke-linecap: round; stroke-dasharray: 301.59; stroke-dashoffset: 226.2; transition: stroke-dashoffset .25s ease; }
.profile-ring div { text-align: center; position: relative; z-index: 1; }
.profile-ring b { display: block; color: #111827; font-size: 30px; line-height: 1; }
.profile-ring span { display: block; color: #667085; font-size: 13px; margin-top: 6px; }
.side-step-count { text-align: center; color: #475467; font-weight: 700; margin-bottom: 18px; }
.registration-steps { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; margin: 14px 0 0 !important; position: relative; }
.registration-steps::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: #d9dee8; }
.registration-steps button { position: relative; border: 0 !important; background: transparent !important; border-radius: 0 !important; padding: 13px 8px 13px 46px !important; text-align: left; color: #5f6b7a !important; box-shadow: none; font-weight: 800; }
.registration-steps button::before { content: attr(data-step-number); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cfd6e1; background: #fff; display: grid; place-items: center; color: #667085; font-size: 13px; z-index: 1; }
.registration-steps button.active { color: #e91e63 !important; }
.registration-steps button.active::before { background: #e91e63; border-color: #e91e63; color: #fff; box-shadow: 0 6px 16px rgba(233,30,99,.22); }
.registration-safe-card { margin-top: 24px; border: 1px solid #ffd4e3; background: linear-gradient(135deg, #fff5f8, #fff); border-radius: 16px; padding: 17px; display: flex; gap: 12px; align-items: flex-start; }
.registration-safe-card i { color: #e91e63; font-size: 22px; margin-top: 3px; }
.registration-safe-card b { display: block; color: #e91e63; font-size: 14px; margin-bottom: 5px; }
.registration-safe-card span { color: #667085; font-size: 13px; line-height: 1.5; }
.multi-profile-form { max-width: 980px; margin: 0 auto; }
.step-eyebrow { color: #e91e63; font-weight: 900; margin-bottom: 8px; }
.multi-profile-form h2 { color: #111827; font-size: 34px; margin: 0 0 8px; letter-spacing: -.035em; }
.multi-profile-form .auth-subtitle { color: #667085; margin-bottom: 34px; }
.account-inline-box { background: #fff7fb; border: 1px solid #ffd4e3; border-radius: 18px; padding: 18px; margin: 0 0 28px; }
.account-inline-box h3 { margin: 0 0 14px; font-size: 17px; color: #111827; }
.form-grid { display: grid; gap: 28px 34px !important; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.form-grid.compact { gap: 16px !important; }
.mini-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.field label { display: block; color: #111827; font-weight: 900; margin-bottom: 10px; }
.field input,
.field select,
.field textarea,
.mini-grid input,
.mini-grid select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #e1dce2;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, #fffafc);
  padding: 0 18px;
  font-size: 16px;
  color: #101828;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 140px; padding: 16px 18px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus,
.mini-grid input:focus,
.mini-grid select:focus { border-color: #e91e63; box-shadow: 0 0 0 4px rgba(233,30,99,.10); background: #fff; }
.field input::placeholder,
.field textarea::placeholder,
.mini-grid input::placeholder { color: #858b98; }
.upload-panel { border: 1px dashed #f6a8c4; background: #fff7fb; border-radius: 18px; padding: 22px; }
.photo-preview-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 16px !important; }
.photo-choice { border: 2px solid #e9eaf0 !important; border-radius: 18px !important; background: #fff !important; color: #475467 !important; overflow: hidden; padding: 10px !important; }
.photo-choice.selected { border-color: #e91e63 !important; background: #fff4f8 !important; color: #e91e63 !important; }
.photo-choice img { height: 148px !important; border-radius: 12px !important; object-fit: cover; }
.review-submit-box { text-align: center; border: 1px solid #ffd4e3; background: linear-gradient(135deg, #fff7fb, #fff); border-radius: 22px; padding: 54px 24px; }
.review-submit-box i { font-size: 54px; color: #e91e63; margin-bottom: 18px; }
.review-submit-box h3 { margin: 0 0 10px; font-size: 26px; color: #111827; }
.review-submit-box p { color: #667085; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.registration-actions { margin-top: 38px !important; justify-content: space-between !important; align-items: center; }
.registration-actions .btn { min-width: 126px; min-height: 58px; border-radius: 10px; font-size: 16px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: #e91e63; border: 1px solid #e91e63; box-shadow: 0 14px 26px rgba(233,30,99,.22); }
.registration-actions .btn.outline { background: #fff; color: #e91e63; box-shadow: none; }
.registration-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.registration-trust-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; color: #667085; font-size: 13px; margin-top: 34px; }
.registration-trust-row i { color: #e91e63; margin-right: 8px; }
.auth-switch { text-align: center; margin: 18px 0 0; }
.auth-message { margin-top: 18px; font-weight: 800; text-align: center; }
.auth-message.error { color: #d92d20; }
.auth-message.success { color: #039855; }
.auth-message.info { color: #175cd3; }
@media (max-width: 1050px) {
  .registration-modal-card { grid-template-columns: 1fr; min-height: auto; }
  .registration-sidebar { border-right: 0; border-bottom: 1px solid #edf0f5; }
  .profile-ring, .registration-safe-card { display: none; }
  .registration-steps { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .registration-steps::before { display: none; }
  .registration-steps button { padding: 10px 8px 10px 38px !important; border: 1px solid #edf0f5 !important; border-radius: 12px !important; }
  .registration-steps button::before { left: 7px; top: 8px; }
}
@media (max-width: 720px) {
  .modal-profile-shell { padding: 0; }
  .registration-modal-card { border-radius: 0; min-height: 100vh; }
  .registration-form-card, .registration-sidebar { padding: 24px 18px !important; }
  .registration-close { top: 16px; right: 16px; }
  .form-grid.two, .mini-grid.three { grid-template-columns: 1fr !important; }
  .multi-profile-form h2 { font-size: 28px; }
  .registration-steps { grid-template-columns: 1fr !important; }
  .registration-trust-row { gap: 14px; }
  .registration-actions { justify-content: stretch !important; }
  .registration-actions .btn { flex: 1; min-width: 0; }
}

/* =========================================================
   Registration wizard alignment polish - v2
   Fixes uneven boxes, overflowing fields and mobile stacking
========================================================= */
.registration-modal-page,
.registration-modal-page * {
  box-sizing: border-box;
}

.registration-modal-page .modal-profile-shell {
  width: 100%;
  padding: 28px;
  overflow-x: hidden;
}

.registration-modal-page .registration-modal-card {
  width: min(1480px, 100%);
  max-width: 100%;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: stretch;
}

.registration-modal-page .registration-form-card {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding: 44px 54px 30px !important;
}

.registration-modal-page .multi-profile-form {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.registration-modal-page .form-step {
  width: 100%;
}

.registration-modal-page .form-grid,
.registration-modal-page .form-grid.two,
.registration-modal-page .account-inline-box .form-grid.two {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 34px !important;
  row-gap: 26px !important;
  align-items: start !important;
  width: 100% !important;
}

.registration-modal-page .form-grid.compact,
.registration-modal-page .account-inline-box .form-grid.compact {
  column-gap: 28px !important;
  row-gap: 18px !important;
}

.registration-modal-page .field,
.registration-modal-page .mini-grid > * {
  min-width: 0;
  width: 100%;
}

.registration-modal-page .field.full,
.registration-modal-page .field.three-title {
  grid-column: 1 / -1 !important;
}

.registration-modal-page .field label {
  min-height: 20px;
  line-height: 1.25;
  margin: 0 0 10px !important;
}

.registration-modal-page .field input,
.registration-modal-page .field select,
.registration-modal-page .field textarea,
.registration-modal-page .mini-grid input,
.registration-modal-page .mini-grid select {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 20px !important;
  border: 1px solid #ded7df !important;
  border-radius: 12px !important;
  background: #fffbfd !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 58px !important;
  color: #111827 !important;
  appearance: auto;
}

.registration-modal-page .field textarea {
  height: auto !important;
  min-height: 145px !important;
  padding: 16px 20px !important;
  line-height: 1.5 !important;
}

.registration-modal-page .field input[type="date"] {
  line-height: normal !important;
  padding-right: 18px !important;
}

.registration-modal-page .mini-grid.three {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.registration-modal-page .account-inline-box {
  width: 100%;
  margin-bottom: 30px !important;
  padding: 22px !important;
}

.registration-modal-page .registration-actions {
  width: 100%;
  margin-top: 40px !important;
}

/* Tablet: keep neat two-column form, move sidebar on top */
@media (max-width: 1100px) {
  .registration-modal-page .modal-profile-shell {
    align-items: flex-start;
    padding: 18px;
  }
  .registration-modal-page .registration-modal-card {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }
  .registration-modal-page .registration-sidebar {
    border-right: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
  }
  .registration-modal-page .registration-form-card {
    padding: 34px 28px 28px !important;
  }
}

/* Mobile: full popup sheet, all inputs stacked with perfect width */
@media (max-width: 760px) {
  .registration-modal-page .modal-profile-shell {
    padding: 0 !important;
  }
  .registration-modal-page .registration-modal-card {
    border-radius: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    box-shadow: none !important;
  }
  .registration-modal-page .registration-sidebar {
    padding: 22px 18px !important;
  }
  .registration-modal-page .registration-form-card {
    padding: 28px 18px 24px !important;
  }
  .registration-modal-page .multi-profile-form h2 {
    font-size: 28px !important;
  }
  .registration-modal-page .multi-profile-form .auth-subtitle {
    margin-bottom: 22px !important;
  }
  .registration-modal-page .form-grid,
  .registration-modal-page .form-grid.two,
  .registration-modal-page .account-inline-box .form-grid.two,
  .registration-modal-page .mini-grid.three {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .registration-modal-page .field input,
  .registration-modal-page .field select,
  .registration-modal-page .mini-grid input,
  .registration-modal-page .mini-grid select {
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
  }
  .registration-modal-page .account-inline-box {
    padding: 16px !important;
  }
  .registration-modal-page .registration-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.86), #fff 45%);
    padding-top: 14px;
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Better DOB selector and dependent community dropdown alignment */
.dob-select-grid { display:grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; width:100%; }
.dob-select-grid select { width:100%; min-width:0; }
.field select:disabled { opacity:.72; cursor:not-allowed; background:#f7f3f5; }
@media (max-width: 560px) { .dob-select-grid { grid-template-columns: 1fr; gap: 10px; } }

/* Current Location dependent dropdown alignment */
.location-select-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.location-select-grid select {
  width: 100%;
  min-width: 0;
}
.location-select-grid select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #f8f8fb;
}
@media (max-width: 760px) {
  .location-select-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* Search style dropdowns for registration */
.search-select-wrap{position:relative;width:100%;}
.search-select-wrap .native-hidden-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;}
.search-select-display{width:100%;min-height:58px;border:1px solid #ead6de;border-radius:12px;background:#fffafb;color:#111827;font-size:1rem;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;text-align:left;transition:.2s ease;}
.search-select-display:hover,.search-select-wrap.open .search-select-display{border-color:#e91e63;box-shadow:0 0 0 4px rgba(233,30,99,.08);background:#fff;}
.search-select-display:disabled{opacity:.7;cursor:not-allowed;background:#f7f2f4;box-shadow:none;border-color:#e6dbe0;}
.search-select-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.search-select-panel{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:50;background:#fff;border:1px solid #ead6de;border-radius:14px;box-shadow:0 18px 45px rgba(16,24,40,.16);padding:10px;display:none;}
.search-select-wrap.open .search-select-panel{display:block;}
.search-select-input-row{height:48px;border:1px solid #d9e3f4;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 12px;margin-bottom:8px;background:#fff;}
.search-select-input-row i{color:#64748b;}
.search-select-input-row input{border:0!important;box-shadow:none!important;background:transparent!important;height:auto!important;min-height:auto!important;padding:0!important;font-size:1rem;outline:none;width:100%;}
.search-select-options{max-height:260px;overflow:auto;padding-right:4px;}
.search-select-option{width:100%;border:0;background:#fff;border-radius:10px;padding:13px 14px;text-align:left;font-size:1rem;cursor:pointer;color:#111827;display:block;}
.search-select-option:hover,.search-select-option.selected{background:#fce7f0;color:#e91e63;}
.search-select-empty{padding:16px;color:#64748b;text-align:center;}
.location-select-grid .search-select-wrap{min-width:0;}
.profile-review-summary{display:grid;gap:16px;margin-top:18px;}
.review-section{border:1px solid #f3c9d8;background:#fffafb;border-radius:16px;padding:18px;}
.review-section h3{margin:0 0 12px;color:#111827;font-size:1.05rem;}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.review-grid div{background:#fff;border:1px solid #f0e1e7;border-radius:12px;padding:12px;min-width:0;}
.review-grid span{display:block;color:#64748b;font-size:.82rem;margin-bottom:4px;}
.review-grid b{display:block;color:#111827;font-weight:700;overflow-wrap:anywhere;line-height:1.35;}
@media (max-width:760px){.review-grid{grid-template-columns:1fr}.search-select-panel{position:fixed;left:16px;right:16px;top:auto;bottom:20px;max-height:70vh}.search-select-options{max-height:45vh}}


/* Clean searchable dropdown alignment update */
.registration-modal-page .field,
.registration-modal-page .location-field,
.registration-modal-page .location-select-grid,
.registration-modal-page .search-select-wrap,
.registration-modal-page .search-select-wrap * {
  box-sizing: border-box;
}

.registration-modal-page .field,
.registration-modal-page .location-field {
  min-width: 0;
}

.search-select-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.search-select-wrap.open {
  z-index: 300;
}

.search-select-wrap .native-hidden-select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
}

.search-select-display {
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  border: 1px solid #ead6de;
  border-radius: 14px;
  background: #fffafb;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  overflow: hidden;
}

.search-select-wrap.open .search-select-display,
.search-select-display:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 4px rgba(233,30,99,.08);
  background: #fff;
}

.search-select-leading {
  color: #607086;
  font-size: 16px;
  line-height: 1;
}

.search-select-filter {
  width: 100% !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  line-height: 1.2 !important;
}

.search-select-filter:disabled {
  cursor: not-allowed;
  color: #7b8494 !important;
}

.search-select-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 9px;
}

.search-select-toggle:hover {
  background: #fce7f0;
  color: #e91e63;
}

.search-select-wrap.open .search-select-toggle i {
  transform: rotate(180deg);
}

.search-select-panel {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 10px);
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  z-index: 350;
  background: #fff;
  border: 1px solid #ead6de;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(16,24,40,.16);
  padding: 8px;
  display: none;
  overflow: hidden;
}

.search-select-wrap.open .search-select-panel {
  display: block;
}

.search-select-options {
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 4px 2px 0;
}

.search-select-option {
  width: 100%;
  max-width: 100%;
  border: 0;
  background: #fff;
  border-radius: 11px;
  padding: 13px 14px;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  color: #111827;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-select-option:hover,
.search-select-option.selected {
  background: #fce7f0;
  color: #e91e63;
}

.search-select-empty {
  padding: 16px;
  color: #64748b;
  text-align: center;
}

.location-select-grid {
  align-items: start;
  overflow: visible;
}

.location-select-grid .search-select-wrap {
  min-width: 0;
}

@media (max-width: 760px) {
  .search-select-panel {
    position: absolute;
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    bottom: auto;
    width: 100%;
    max-height: 310px;
  }
  .search-select-options {
    max-height: 240px;
  }
  .search-select-display {
    height: 56px;
    min-height: 56px;
  }
}

/* Profile full-details and photo display fixes */
.profile-view-photo img,
.profile-overview-card > img {
  background: #fff0f6;
  object-fit: cover;
}
.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.profile-photo-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff0f6;
}
.profile-section-card .profile-info-list div b {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Profile approval status banner */
.profile-status-banner{
  display:flex;
  gap:8px;
  flex-direction:column;
  padding:16px 18px;
  margin:0 0 18px;
  border-radius:18px;
  border:1px solid #f8c7d8;
  background:#fff7fb;
  box-shadow:0 12px 30px rgba(233,30,99,.08);
}
.profile-status-banner strong{font-size:18px;color:#111827;}
.profile-status-banner span{color:#5f6b7a;line-height:1.5;}
.profile-status-banner.pending{background:#fff8e6;border-color:#ffd98a;}
.profile-status-banner.approved{background:#effaf3;border-color:#9ee2b2;}
.profile-status-banner.rejected{background:#fff0f0;border-color:#ffb3b3;}

/* ==========================
   CLEAN MESSAGES UPGRADE
========================== */
.message-icon-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 99, 0.18);
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  flex: 0 0 auto;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.message-icon-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(233, 30, 99, .18);
  background: #ffffff;
}

body.logged-in .message-icon-link {
  display: inline-flex;
}

.messages-hero {
  padding-bottom: 54px;
}

.messages-hero .eyebrow {
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.messages-section {
  padding-top: 42px;
  padding-bottom: 70px;
  background: #fff;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(420px, 1fr) minmax(270px, 330px);
  gap: 0;
  border: 1px solid #f4c9d7;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .10);
  min-height: 720px;
}

.convos-panel,
.chat-panel,
.chat-preview-panel {
  background: #ffffff;
}

.convos-panel {
  padding: 24px;
  border-right: 1px solid #f4c9d7;
}

.chat-preview-panel {
  padding: 24px;
  border-left: 1px solid #f4c9d7;
  overflow-y: auto;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #fff 0%, #fff7fa 100%);
}

.messages-panel-head,
.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.messages-panel-head {
  margin-bottom: 18px;
}

.messages-panel-head h2 {
  margin: 0;
  font-size: 26px;
}

.messages-panel-head span {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.chat-search-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid #ead3dc;
  border-radius: 16px;
  background: #fffafd;
  margin-bottom: 18px;
}

.chat-search-wrap i {
  color: var(--primary);
}

.chat-search-wrap input,
.modern-send-row input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 16px;
  color: #111827;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 590px;
  overflow-y: auto;
  padding-right: 5px;
}

.modern-convo {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  cursor: pointer;
  align-items: center;
  color: #111827;
}

.modern-convo:hover,
.modern-convo.active {
  background: #fff0f6;
  box-shadow: inset 3px 0 0 var(--primary);
}

.modern-convo .avatar,
.chat-person img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #f8dbe6;
}

.convo-text {
  min-width: 0;
}

.convo-text strong,
.convo-text span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.convo-text strong {
  font-size: 15px;
  margin-bottom: 4px;
}

.convo-text span,
.modern-convo small,
#chatMeta {
  color: #667085;
  font-size: 13px;
}

.chat-topbar {
  padding: 22px 24px;
  border-bottom: 1px solid #f4c9d7;
  background: #fff;
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.chat-person h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.chat-person p {
  margin: 4px 0 0;
}

.small-btn {
  padding: 11px 16px !important;
  min-height: auto !important;
  border-radius: 13px !important;
  white-space: nowrap;
}

.safe-note {
  margin: 18px 24px 0;
  padding: 13px 16px;
  border: 1px solid #f6d6a7;
  background: #fff9e8;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a4b00;
  font-weight: 700;
}

.chat-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  min-height: 420px;
}

.modern-bubble {
  max-width: min(75%, 520px);
  padding: 13px 16px;
  border-radius: 20px 20px 20px 5px;
  background: #ffffff;
  border: 1px solid #f0dce4;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
  margin: 12px 0;
}

.modern-bubble.me {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  border-radius: 20px 20px 5px 20px;
}

.modern-bubble p {
  margin: 0 0 5px;
  line-height: 1.45;
}

.modern-bubble small {
  opacity: .75;
  font-size: 12px;
}

.modern-send-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 24px 24px;
  margin-top: 0;
  border-top: 1px solid #f4c9d7;
  background: #fff;
}

.modern-send-row input {
  height: 54px;
  border: 1px solid #ead3dc;
  border-radius: 16px;
  background: #fffafd;
  padding: 0 16px;
}

.send-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-chat-state {
  text-align: center;
  color: #667085;
  padding: 24px 12px;
}

.empty-chat-state i {
  display: block;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
}

.empty-chat-state b {
  color: #111827;
  display: block;
  margin-bottom: 5px;
}

.empty-chat-state.large {
  margin: 70px auto;
  max-width: 360px;
}

.chat-error {
  margin: 12px auto;
  max-width: 480px;
  padding: 12px 14px;
  color: #b42318;
  background: #fff1f3;
  border: 1px solid #fecdd6;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
}

.chat-preview-panel .profile-card {
  margin: 0;
  box-shadow: none;
  border-color: #f4c9d7;
}

@media (max-width: 1180px) {
  .messages-shell {
    grid-template-columns: 300px 1fr;
  }
  .chat-preview-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .messages-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .convos-panel {
    border-right: 0;
    border-bottom: 1px solid #f4c9d7;
  }
  .conversation-list {
    max-height: 285px;
  }
  .chat-topbar,
  .modern-send-row {
    padding-left: 16px;
    padding-right: 16px;
  }
  .safe-note {
    margin-left: 16px;
    margin-right: 16px;
  }
  .chat-body {
    padding: 18px 16px;
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .message-icon-link,
  .profile-icon-link {
    width: 42px;
    height: 42px;
  }
  .messages-shell {
    border-radius: 20px;
  }
  .convos-panel {
    padding: 18px;
  }
  .modern-convo {
    grid-template-columns: 48px 1fr;
  }
  .modern-convo small {
    display: none;
  }
  .modern-convo .avatar,
  .chat-person img {
    width: 46px;
    height: 46px;
  }
  .chat-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .modern-bubble {
    max-width: 90%;
  }
}

/* ==========================
   NOTIFICATIONS UI
========================== */
.notification-icon-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark, #111827);
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.18);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.notification-icon-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #e91e63);
  background: #fff4f8;
  color: var(--primary, #e91e63);
}
.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary, #e91e63);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.notification-hero {
  background: linear-gradient(135deg, #fff6fa 0%, #fff 55%, #ffe8f0 100%);
}
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary, #e91e63);
  font-weight: 900;
  margin-bottom: 10px;
}
.notification-page-section {
  padding: 54px 0;
  background: #fbfbfd;
}
.notification-shell {
  max-width: 1100px;
}
.notification-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.14);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
  margin-bottom: 20px;
}
.notification-top-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}
.notification-top-card p {
  margin: 0;
  color: #667085;
  font-weight: 600;
}
.notification-top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.notification-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 18px;
}
.notification-tab {
  border: 1px solid rgba(233, 30, 99, 0.18);
  background: #fff;
  color: #344054;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.notification-tab.active,
.notification-tab:hover {
  background: var(--primary, #e91e63);
  color: #fff;
  border-color: var(--primary, #e91e63);
}
.notification-list {
  display: grid;
  gap: 14px;
}
.notification-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.05);
}
.notification-card.unread {
  border-color: rgba(233, 30, 99, 0.32);
  background: linear-gradient(90deg, #fff5f9 0%, #fff 42%);
}
.notification-card.read {
  opacity: .82;
}
.notification-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f6;
  color: var(--primary, #e91e63);
  font-size: 22px;
  overflow: hidden;
}
.notification-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.notification-icon.match { background: #eef4ff; color: #2563eb; }
.notification-icon.message { background: #ecfdf3; color: #039855; }
.notification-icon.interest { background: #fff7ed; color: #f97316; }
.notification-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.notification-title-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.notification-title-row span {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.notification-content p {
  margin: 8px 0 12px;
  color: #475467;
  line-height: 1.6;
}
.notification-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.notification-view-link,
.mark-read-link,
.read-label {
  color: var(--primary, #e91e63);
  font-weight: 900;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
}
.read-label { color: #98a2b3; cursor: default; }
.notification-empty {
  background: #fff;
  border: 1px dashed rgba(233, 30, 99, 0.25);
  border-radius: 24px;
  padding: 44px 24px;
  text-align: center;
  color: #667085;
}
.notification-empty i {
  font-size: 42px;
  color: var(--primary, #e91e63);
  margin-bottom: 14px;
}
.notification-empty h3 {
  color: #111827;
  margin: 0 0 8px;
}
.notification-empty p {
  max-width: 560px;
  margin: 0 auto 18px;
}
@media (max-width: 768px) {
  .notification-top-card {
    align-items: stretch;
    flex-direction: column;
  }
  .notification-top-actions {
    justify-content: stretch;
  }
  .notification-top-actions .btn {
    width: 100%;
  }
  .notification-card {
    grid-template-columns: 46px 1fr;
    padding: 14px;
  }
  .notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }
  .notification-title-row {
    flex-direction: column;
    gap: 4px;
  }
}
.notification-icon-link { display: none; }
body.logged-in .notification-icon-link { display: inline-flex; }

/* Email OTP verification gate */
.email-verify-gate { display:block; max-width: 920px; margin: 0 auto; }
.multi-profile-form.otp-locked { display:none; }
.verify-card { margin-top: 22px; padding: 26px; border:1px solid #ffd1df; border-radius:22px; background:linear-gradient(135deg,#fff,#fff7fa); box-shadow:0 18px 45px rgba(233,30,99,.08); }
.verify-card .form-grid { gap:20px 24px; align-items:start; }
.password-input-wrap, .otp-row { display:flex; align-items:center; gap:10px; }
.password-input-wrap { position:relative; }
.password-input-wrap input { padding-right:54px; width:100%; }
.password-toggle { position:absolute; right:10px; top:50%; transform:translateY(-50%); width:38px; height:38px; border:0; background:#fff0f5; color:#e91e63; border-radius:10px; cursor:pointer; }
.otp-row input { flex:1; }
.otp-row .btn { min-width:130px; white-space:nowrap; }
.password-strength { height:8px; background:#f0e4e9; border-radius:999px; margin-top:10px; overflow:hidden; }
.password-strength span { display:block; height:100%; width:0%; border-radius:999px; background:#ef4444; transition:.25s ease; }
.password-strength.weak span { width:33%; background:#ef4444; }
.password-strength.medium span { width:66%; background:#f59e0b; }
.password-strength.strong span { width:100%; background:#22c55e; }
.password-help { display:block; margin-top:8px; color:#667085; font-size:13px; }
.verify-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:22px; }
.link-button { border:0; background:transparent; color:#e91e63; font-weight:800; cursor:pointer; padding:10px 0; }
.link-button:disabled, .btn:disabled { opacity:.55; cursor:not-allowed; }
.verified-email-strip { display:flex; align-items:center; gap:10px; padding:14px 16px; margin:0 0 22px; border-radius:14px; background:#effaf3; color:#166534; border:1px solid #bbf7d0; font-weight:700; }
.verified-email-strip i { color:#22c55e; }
@media (max-width: 720px) {
  .verify-card { padding:18px; border-radius:18px; }
  .otp-row { flex-direction:column; align-items:stretch; }
  .otp-row .btn { width:100%; }
}

.auth-text-btn{background:none;border:0;color:#e91e63;font-weight:800;margin:12px auto 0;display:block;cursor:pointer;font-size:15px}.auth-text-btn:hover{text-decoration:underline}.forgot-password-box{margin-top:22px;padding:22px;border:1px solid #ffd1df;border-radius:18px;background:#fff7fa}.forgot-password-box h3{margin:0 0 6px;font-size:22px}.forgot-password-box p{margin:0 0 16px;color:#667085;line-height:1.5}.forgot-password-box[hidden],#resetPasswordFields[hidden]{display:none!important}.password-strength{height:7px;background:#f3e5ec;border-radius:20px;overflow:hidden;margin-top:10px}.password-strength span{display:block;height:100%;width:0;border-radius:20px;background:#ef4444;transition:.2s}.password-strength.weak span{width:35%;background:#ef4444}.password-strength.medium span{width:65%;background:#f59e0b}.password-strength.strong span{width:100%;background:#22c55e}

.admin-header{
  background:#111827;
  color:#fff;
  padding:18px 40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  box-shadow:0 8px 30px rgba(0,0,0,.15);
}

.admin-header-left{
  display:flex;
  align-items:center;
  gap:15px;
}

.admin-header-left img{
  height:55px;
  background:#fff;
  border-radius:10px;
  padding:5px;
}

.admin-header-left h2{
  margin:0;
  font-size:22px;
  color:#101827;
}

.admin-header-left span{
  color:#cbd5e1;
  font-size:13px;
}

.admin-header-right{
  display:flex;
  gap:10px;
}

.admin-section{
  padding-top:30px;
}

.page-hero.admin-hero{
  display:none;
}

.admin-dashboard {
  max-width: 1320px;
  margin: 0 auto;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.admin-sidebar {
  background: #111827;
  color: #fff;
  border-radius: 24px;
  padding: 24px;
  min-height: 720px;
}

.admin-sidebar h3 {
  color: #fff;
  margin-bottom: 24px;
}

.admin-side-link {
  width: 100%;
  display: block;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  color: #d1d5db;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.admin-side-link.active,
.admin-side-link:hover {
  background: #e91e63;
  color: #fff;
}

.admin-main {
  min-width: 0;
}

.admin-stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.admin-panel {
  border-radius: 24px;
}

.admin-panel-head {
  align-items: center;
}

.admin-table {
  border-radius: 18px;
  overflow: hidden;
}

.admin-table th {
  background: #111827;
  color: white;
}

.admin-table td {
  vertical-align: middle;
}

.admin-topbar {
  margin-bottom: 26px;
}
/* Admin dashboard final alignment + working table polish */
.admin-body,
.admin-body * {
  box-sizing: border-box;
}

.admin-body {
  background: #fff;
  overflow-x: hidden;
}

.admin-header {
  min-height: 80px;
  padding: 14px 36px;
  gap: 18px;
}

.admin-header-left img {
  width: 132px;
  height: 58px;
  object-fit: contain;
}

.admin-header-right .btn {
  min-width: 126px;
  justify-content: center;
}

.admin-section {
  padding: 28px 0 48px;
}

.admin-section .container {
  max-width: 1240px;
  padding: 0 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 22px;
  width: 100%;
  min-width: 0;
  min-height: 720px;
  padding: 24px;
  overflow: hidden;
}

.admin-side-link {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin: 0 0 10px;
  border-radius: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.admin-main {
  width: 100%;
  min-width: 0;
}

.admin-topbar h2,
.admin-topbar p {
  margin-left: 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat-card {
  min-height: 98px;
}

.admin-panel {
  padding: 22px;
  overflow: hidden;
}

.admin-panel-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-inline-actions {
  display: grid;
  grid-template-columns: minmax(280px, 360px);
  gap: 12px;
  justify-items: start;
}

.admin-inline-actions input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
}

.admin-inline-actions .btn {
  min-width: 122px;
  height: 42px;
  justify-content: center;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-table th:nth-child(1) { width: 36%; }
.admin-table th:nth-child(2) { width: 24%; }
.admin-table th:nth-child(3) { width: 12%; }
.admin-table th:nth-child(4) { width: 28%; }

.admin-table th,
.admin-table td {
  padding: 14px 16px;
}

.admin-profile-mini {
  min-width: 0;
}

.admin-profile-mini img {
  flex: 0 0 54px;
}

.admin-profile-mini div {
  min-width: 0;
}

.admin-profile-mini b,
.admin-profile-mini small {
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions .btn.mini {
  min-width: 58px;
  text-align: center;
  justify-content: center;
}

.admin-form {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .admin-header {
    padding: 14px 18px;
    flex-wrap: wrap;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-sidebar h3 {
    grid-column: 1 / -1;
    margin-bottom: 4px;
  }
  .admin-side-link {
    margin-bottom: 0;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-header-left img {
    width: 96px;
  }
  .admin-header-right,
  .admin-header-right .btn {
    width: 100%;
  }
  .admin-sidebar,
  .admin-stats-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }
  .admin-panel-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-inline-actions {
    grid-template-columns: 1fr;
  }
}

/* Admin page full-width alignment fix */
.admin-body .admin-header {
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.admin-body .admin-section {
  padding-top: 28px;
}

.admin-body .admin-section .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
}

.admin-body .admin-dashboard {
  max-width: none;
  width: 100%;
  margin: 0;
}

.admin-body .admin-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  width: 100%;
}

.admin-body .admin-sidebar {
  min-height: calc(100vh - 145px);
}

.admin-body .admin-main {
  max-width: none;
}

.admin-body .admin-stats-grid {
  max-width: 980px;
}

.admin-body .admin-panel {
  max-width: 1060px;
}

.admin-body .admin-panel-head {
  min-height: 74px;
}

@media (min-width: 1500px) {
  .admin-body .admin-stats-grid,
  .admin-body .admin-panel {
    max-width: 1120px;
  }
}

@media (max-width: 980px) {
  .admin-body .admin-section .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Admin final layout: use the full right-side space and keep dashboard area fixed */
.admin-body .admin-section {
  min-height: calc(100vh - 80px);
  padding-bottom: 24px;
}

.admin-body .admin-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.admin-body .admin-main {
  width: 100%;
  height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-body .admin-topbar,
.admin-body .admin-stats-grid {
  flex: 0 0 auto;
}

.admin-body .admin-stats-grid,
.admin-body .admin-panel {
  width: 100%;
  max-width: none !important;
}

.admin-body .admin-stats-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.admin-body .admin-panel.active {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.admin-body .admin-panel-head,
.admin-body .admin-form {
  flex: 0 0 auto;
}

.admin-body .admin-table-wrap {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: 100%;
  overflow: auto;
  border: 1px solid #f6e5eb;
  border-radius: 16px;
}

.admin-body .admin-table {
  min-width: 900px;
}

.admin-body .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-body .admin-table th:nth-child(1) { width: 34%; }
.admin-body .admin-table th:nth-child(2) { width: 24%; }
.admin-body .admin-table th:nth-child(3) { width: 12%; }
.admin-body .admin-table th:nth-child(4) { width: 30%; }

.admin-body .admin-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-body .admin-table-wrap::-webkit-scrollbar-thumb {
  background: #e91e63;
  border-radius: 999px;
}

.admin-body .admin-table-wrap::-webkit-scrollbar-track {
  background: #fff1f6;
  border-radius: 999px;
}

@media (max-width: 980px) {
  .admin-body .admin-main {
    height: auto;
  }
  .admin-body .admin-panel.active {
    display: block;
  }
  .admin-body .admin-table-wrap {
    max-height: 520px;
  }
  .admin-body .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-body .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin bulk delete + inline edit improvements */
.admin-body .admin-profile-toolbar {
  width: min(100%, 760px);
  grid-template-columns: auto minmax(280px, 420px);
  align-items: center;
  justify-content: space-between;
  justify-items: stretch;
}

.admin-body .admin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-body .admin-toolbar-left .btn {
  margin: 0;
}

.admin-body .admin-profile-toolbar input {
  justify-self: center;
}

.admin-body .profile-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding: 7px 10px;
  border: 1px solid #f3b4c9;
  border-radius: 999px;
  color: #e91e63;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

.admin-body .profile-select input {
  width: 16px;
  height: 16px;
  accent-color: #e91e63;
}

.admin-body .admin-inline-edit-row td {
  background: #fff7fa;
  padding: 14px 16px;
}

.admin-body .admin-inline-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #f3b4c9;
  border-radius: 14px;
  background: #fff;
}

.admin-body .admin-inline-edit-form input,
.admin-body .admin-inline-edit-form select,
.admin-body .admin-inline-edit-form textarea {
  width: 100%;
  border: 1px solid #f3b4c9;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
}

.admin-body .admin-inline-edit-form textarea,
.admin-body .admin-inline-edit-form .admin-form-actions {
  grid-column: 1 / -1;
}

.admin-body .admin-inline-edit-form textarea {
  min-height: 72px;
  resize: vertical;
}

.admin-body .admin-inline-edit-form .admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 980px) {
  .admin-body .admin-profile-toolbar {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .admin-body .admin-profile-toolbar input {
    justify-self: stretch;
  }
  .admin-body .admin-inline-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-body .admin-inline-edit-form {
    grid-template-columns: 1fr;
  }
}

/* Admin final safety/review layout fixes */
.admin-body .admin-layout {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: start !important;
}
.admin-body .admin-sidebar {
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(100vh - 118px) !important;
  overflow-y: auto !important;
  align-self: start !important;
}
.admin-body .admin-main {
  height: auto !important;
  min-height: calc(100vh - 132px);
}
.admin-body .admin-panel.active {
  min-height: 0 !important;
}
.admin-body .admin-table-wrap {
  max-height: calc(100vh - 360px) !important;
  min-height: 260px !important;
  overflow-y: auto !important;
}
.admin-body .admin-profile-toolbar {
  width: min(100%, 980px) !important;
  grid-template-columns: auto minmax(320px, 460px) !important;
  justify-content: space-between !important;
  margin-left: auto;
}
.admin-body .admin-inline-edit-form.admin-review-form {
  display: block !important;
  padding: 18px !important;
  background: #fff7fa !important;
}
.admin-body .admin-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.admin-body .admin-review-field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f3b4c9;
  border-radius: 12px;
  background: #fff;
}
.admin-body .admin-review-field span,
.admin-body .admin-review-about span {
  font-weight: 800;
  color: #111827;
}
.admin-body .admin-review-field strong {
  font-weight: 700;
  color: #444;
  overflow-wrap: anywhere;
}
.admin-body .admin-status-edit select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #f3b4c9;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: inherit;
}
.admin-body .admin-review-about {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #f3b4c9;
  border-radius: 12px;
  background: #fff;
}
.admin-body .admin-review-about p {
  margin: 8px 0 0;
  color: #444;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.admin-body .admin-review-form .admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.admin-image-viewer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(17, 24, 39, .72);
  z-index: 9999;
  padding: 24px;
}
.admin-image-viewer.show { display: grid; }
.admin-image-card {
  position: relative;
  max-width: min(92vw, 720px);
  max-height: 86vh;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.admin-image-card img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
}
.admin-image-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #e91e63;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 980px) {
  .admin-body .admin-layout { grid-template-columns: 1fr !important; }
  .admin-body .admin-sidebar { max-height: none !important; }
  .admin-body .admin-profile-toolbar { grid-template-columns: 1fr !important; margin-left: 0; }
  .admin-body .admin-review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-body .admin-review-field { grid-template-columns: 1fr; gap: 6px; }
}

/* Admin reports, feedback and analytics sections */
.admin-body .admin-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
}
.admin-body .admin-side-link {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-body .admin-list-panel {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  border: 1px solid #f6e5eb;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}
.admin-body .admin-message-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid #f6d8e2;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #fff7fa;
}
.admin-body .admin-list-profile {
  justify-content: flex-start;
  text-align: left;
}
.admin-body .admin-message-text {
  color: #374151;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.admin-body .admin-message-text p {
  margin: 6px 0;
}
.admin-body .admin-empty-state {
  padding: 30px;
  text-align: center;
  font-weight: 800;
  color: #6b7280;
}
.admin-body .admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.admin-body .analytics-card {
  border: 1px solid #f6d8e2;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17,24,39,.05);
}
.admin-body .analytics-card span {
  display: block;
  color: #4b5563;
  font-weight: 800;
  margin-bottom: 10px;
}
.admin-body .analytics-card strong {
  display: block;
  color: #e91e63;
  font-size: 30px;
  line-height: 1;
}
.admin-body .analytics-chart-card {
  flex: 1 1 auto;
  border: 1px solid #f6d8e2;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  overflow: auto;
}
.admin-body .analytics-chart-card h4 {
  margin: 0 0 16px;
}
.admin-body .analytics-bars div {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.admin-body .analytics-bars span {
  font-weight: 800;
}
.admin-body .analytics-bars b {
  display: block;
  min-width: 8px;
  height: 14px;
  background: #e91e63;
  border-radius: 999px;
}
.admin-body .analytics-bars em {
  font-style: normal;
  font-weight: 800;
  color: #111827;
}
@media (max-width: 1100px) {
  .admin-body .admin-analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body .admin-message-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-body .admin-analytics-grid { grid-template-columns: 1fr; }
  .admin-body .analytics-bars div { grid-template-columns: 1fr; }
}

.user-presence { display:inline-flex; align-items:center; gap:7px; font-weight:800; font-size:13px; }
.user-presence i { width:10px; height:10px; border-radius:50%; display:inline-block; }
.user-presence.online { color:#078c42; }
.user-presence.online i { background:#11b85a; box-shadow:0 0 0 4px #dcffe9; }
.user-presence.offline { color:#d92d20; }
.user-presence.offline i { background:#ef4444; box-shadow:0 0 0 4px #ffe8e8; }
#usersPanel .admin-table th, #usersPanel .admin-table td { white-space:nowrap; }
#usersPanel .admin-profile-mini small { max-width:220px; overflow:hidden; text-overflow:ellipsis; }

/* Approved Users table: show all requested columns and align them cleanly */
#usersPanel .admin-table-wrap {
  overflow-x: auto;
}

#usersPanel .admin-table {
  min-width: 1280px;
  table-layout: fixed;
}

#usersPanel .admin-table th,
#usersPanel .admin-table td {
  padding: 14px 16px;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

#usersPanel .admin-table th:nth-child(1),
#usersPanel .admin-table td:nth-child(1) {
  width: 34%;
  min-width: 330px;
  text-align: left;
}

#usersPanel .admin-table th:nth-child(2),
#usersPanel .admin-table td:nth-child(2) { width: 7%; }
#usersPanel .admin-table th:nth-child(3),
#usersPanel .admin-table td:nth-child(3) { width: 9%; }
#usersPanel .admin-table th:nth-child(4),
#usersPanel .admin-table td:nth-child(4) { width: 12%; }
#usersPanel .admin-table th:nth-child(5),
#usersPanel .admin-table td:nth-child(5) { width: 12%; }
#usersPanel .admin-table th:nth-child(6),
#usersPanel .admin-table td:nth-child(6) { width: 10%; }
#usersPanel .admin-table th:nth-child(7),
#usersPanel .admin-table td:nth-child(7) { width: 8%; }
#usersPanel .admin-table th:nth-child(8),
#usersPanel .admin-table td:nth-child(8) { width: 8%; }

#usersPanel .admin-profile-mini {
  justify-content: flex-start;
}

#usersPanel .admin-profile-mini b,
#usersPanel .admin-profile-mini small {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#usersPanel .user-presence {
  justify-content: center;
}


/* ==========================
   HOME PAGE POLISH / ALIGNMENT
========================== */
body {
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 12% 20%, rgba(233, 30, 99, 0.13), transparent 34%), linear-gradient(135deg, #fff7fb 0%, #fde8f0 62%, #fff 100%);
  padding: 86px 0 150px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -130px;
  background: rgba(233, 30, 99, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "♥";
}

.hero h1 {
  font-size: clamp(46px, 5.2vw, 76px);
  letter-spacing: -1.5px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-secondary {
  background: #ffffff;
}

.hero-mini-stats {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-mini-stats div {
  min-width: 112px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.hero-mini-stats b,
.hero-mini-stats span {
  display: block;
}

.hero-mini-stats b {
  font-size: 22px;
  color: #111;
}

.hero-mini-stats span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "Verified Profiles";
  position: absolute;
  left: -26px;
  bottom: 30px;
  z-index: 2;
  background: #ffffff;
  color: var(--primary);
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.hero img {
  height: 500px;
  border-radius: 30px;
}

.search-box {
  border: 1px solid var(--line);
  padding: 32px;
  margin-top: -86px;
}

.search-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.search-title-row h3 {
  margin: 0;
}

.search-title-row span {
  color: var(--muted);
  font-weight: 700;
}

.search-box .form-grid {
  grid-template-columns: 1.1fr .8fr .8fr 1fr 1.15fr .9fr;
  gap: 18px;
}

.search-box .field input,
.search-box .field select {
  background: #fff;
  border: 1px solid #f3c6d6;
  height: 54px;
}

.search-btn {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popular-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.popular-searches a {
  color: var(--primary);
  font-weight: 800;
}

.stats-section {
  padding-top: 64px;
  padding-bottom: 44px;
}

.stat {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat:hover,
.card:hover,
.profile-card:hover,
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.why-section .grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-section .card {
  min-height: 220px;
}

.premium-members-section,
.for-you-section,
.success-preview {
  padding: 66px 0;
}

.for-you-section {
  background: linear-gradient(180deg, #fff5f8, #fff);
}

.section-head-row {
  align-items: center;
}

.profile-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  gap: 26px;
  padding: 0;
}

.profile-scroll .profile-card {
  flex: initial;
  min-width: 0;
}

.profile-scroll .profile-card img {
  height: 255px;
}

.success-preview .grid {
  grid-template-columns: repeat(3, 1fr);
}

.cta-section {
  padding: 40px 0 80px;
}

@media (max-width: 1100px) {
  .search-box .form-grid,
  .why-section .grid,
  .profile-scroll,
  .success-preview .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 54px 0 120px;
  }
  .hero-grid {
    gap: 34px;
  }
  .hero img {
    height: 340px;
  }
  .hero-image::before {
    left: 16px;
    bottom: 16px;
  }
  .search-title-row,
  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-box .form-grid,
  .profile-scroll,
  .why-section .grid,
  .success-preview .grid {
    grid-template-columns: 1fr;
  }
}

/* Clean premium style member cards */
.profile-scroll,
#premiumProfiles,
#featuredProfiles,
#matchesList,
#matchesForYou,
.profile-grid {
  align-items: stretch;
}

.profile-card.premium-lock-card {
  width: 100%;
  max-width: 360px;
  min-width: 280px;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.12);
  transition: transform .25s ease, box-shadow .25s ease;
}

.profile-card.premium-lock-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
}

.premium-lock-image {
  height: 270px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: #f8dce8;
}

.premium-lock-image-link,
.premium-lock-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.premium-lock-image img {
  object-fit: cover;
}

.premium-lock-card.locked-profile-card .premium-lock-image img {
  filter: blur(7px) saturate(.85);
  transform: scale(1.04);
}

.premium-pill {
  position: absolute;
  z-index: 4;
  top: 18px;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.new-pill { left: 18px; background: linear-gradient(135deg, #ec407a, #d81b60); }
.member-pill { right: 18px; background: rgba(17, 24, 39, .76); backdrop-filter: blur(8px); }

.premium-center-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #111827;
}

.premium-center-lock .big-lock {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.94);
  font-size: 28px;
  box-shadow: 0 15px 35px rgba(0,0,0,.12);
  margin-bottom: 14px;
}

.premium-center-lock strong {
  background: rgba(255,255,255,.92);
  padding: 13px 24px 4px;
  border-radius: 999px 999px 0 0;
  font-size: 22px;
}

.premium-center-lock small {
  background: rgba(255,255,255,.92);
  padding: 0 24px 13px;
  border-radius: 0 0 999px 999px;
  font-weight: 700;
}

.premium-lock-body {
  position: relative;
  margin-top: -22px;
  padding: 34px 22px 24px;
  border-radius: 28px 28px 0 0;
  background: #fff;
}

.premium-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.avatar-icon,
.info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe5ef;
  color: var(--primary);
  font-size: 18px;
}

.avatar-icon {
  background: linear-gradient(135deg, #ef3e7d, #d81b60);
  color: #fff;
}

.profile-card.premium-lock-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.profile-card.premium-lock-card h3 a {
  color: #111827;
  text-decoration: none;
}

.premium-info-list {
  display: grid;
  gap: 10px;
}

.premium-info-row {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.premium-info-row.highlighted { background: #fff3f8; }
.premium-info-row .muted { background: #f3f4f6; color: #6b7280; }
.premium-info-row strong { display: block; color: #111827; font-size: 15px; }
.premium-info-row span { display: block; color: #6b7280; font-weight: 600; line-height: 1.45; }
.premium-info-row em { font-style: normal; color: #6b7280; }

.premium-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.profile-card.premium-lock-card .btn {
  border-radius: 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  box-shadow: 0 12px 26px rgba(233, 30, 99, .24);
}

.premium-match {
  text-align: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .profile-card.premium-lock-card { max-width: 100%; min-width: 0; }
  .premium-lock-image { height: 240px; }
  .member-pill { top: 62px; left: 18px; right: auto; }
  .premium-card-row, .profile-scroll { justify-content: center; }
}

/* Premium locked profile cards - fixed alignment like reference */
.profile-scroll {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(380px, 420px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 32px !important;
  overflow: visible !important;
}

.profile-card.premium-lock-card {
  width: 100% !important;
  max-width: 420px !important;
  min-width: 0 !important;
  border-radius: 32px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.premium-lock-image {
  height: 330px !important;
  border-radius: 32px 32px 0 0 !important;
  position: relative !important;
}

.premium-lock-image-link {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.premium-lock-image-link img,
.profile-card.premium-lock-card .premium-lock-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.premium-pill {
  top: 22px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.new-pill { left: 22px !important; }
.member-pill { right: 22px !important; }

.premium-center-lock {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  pointer-events: none !important;
}

.premium-center-lock .big-lock {
  width: 78px !important;
  height: 78px !important;
  margin: 0 0 18px !important;
}

.premium-center-lock strong,
.premium-center-lock small {
  min-width: 220px !important;
  text-align: center !important;
}

.premium-lock-body {
  flex: 1 !important;
  margin-top: -36px !important;
  padding: 42px 32px 28px !important;
  border-radius: 34px 34px 0 0 !important;
  z-index: 5 !important;
}

.premium-title-row {
  display: grid !important;
  grid-template-columns: 58px 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 24px !important;
}

.avatar-icon {
  width: 58px !important;
  height: 58px !important;
  flex-basis: 58px !important;
  font-size: 24px !important;
}

.profile-card.premium-lock-card h3 {
  font-size: 28px !important;
  line-height: 1.15 !important;
}

.premium-info-list {
  gap: 14px !important;
}

.premium-info-row {
  grid-template-columns: 50px 1fr 28px !important;
  gap: 16px !important;
  min-height: 66px !important;
  padding: 12px 16px !important;
  border-radius: 18px !important;
}

.info-icon {
  width: 50px !important;
  height: 50px !important;
  flex-basis: 50px !important;
  font-size: 19px !important;
}

.premium-info-row strong {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

.premium-info-row span {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.premium-info-row em {
  justify-self: end !important;
  align-self: center !important;
}

.premium-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-top: 26px !important;
}

.profile-card.premium-lock-card .btn {
  min-height: 54px !important;
  border-radius: 12px !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  margin-top: 18px !important;
  min-height: 64px !important;
}

.premium-match {
  margin-top: 24px !important;
  font-size: 26px !important;
  letter-spacing: .5px !important;
}

@media (max-width: 900px) {
  .profile-scroll { grid-template-columns: minmax(300px, 420px) !important; }
}

@media (max-width: 480px) {
  .profile-scroll { grid-template-columns: 1fr !important; gap: 24px !important; }
  .premium-lock-image { height: 285px !important; }
  .premium-lock-body { padding: 38px 20px 24px !important; }
  .premium-pill { font-size: 12px !important; padding: 9px 12px !important; }
  .new-pill { left: 14px !important; }
  .member-pill { right: 14px !important; top: 22px !important; left: auto !important; }
  .profile-card.premium-lock-card h3 { font-size: 24px !important; }
  .premium-info-row { grid-template-columns: 44px 1fr 22px !important; }
  .avatar-icon { width: 50px !important; height: 50px !important; }
  .info-icon { width: 44px !important; height: 44px !important; }
}

/* 3:4 compact premium profile cards */
.profile-scroll,
#premiumProfiles,
#featuredProfiles,
#matchesList,
#matchesForYou,
.profile-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 315px)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 28px !important;
  overflow: visible !important;
}

.profile-card.premium-lock-card {
  width: 100% !important;
  max-width: 315px !important;
  min-width: 0 !important;
  aspect-ratio: 3 / 4 !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(17,24,39,.12) !important;
}

.premium-lock-image {
  height: 35% !important;
  min-height: 140px !important;
  max-height: 155px !important;
  border-radius: 24px 24px 0 0 !important;
  flex: 0 0 auto !important;
  position: relative !important;
}

.premium-lock-image-link,
.premium-lock-image-link img,
.profile-card.premium-lock-card .premium-lock-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.premium-pill {
  top: 14px !important;
  padding: 7px 12px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}
.new-pill { left: 14px !important; }
.member-pill { right: 14px !important; }

.premium-center-lock .big-lock {
  width: 48px !important;
  height: 48px !important;
  font-size: 20px !important;
  margin: 0 0 8px !important;
}

.premium-center-lock strong,
.premium-center-lock small {
  min-width: 145px !important;
  max-width: 185px !important;
  text-align: center !important;
}

.premium-center-lock strong {
  font-size: 15px !important;
  padding: 8px 16px 2px !important;
}

.premium-center-lock small {
  font-size: 10px !important;
  padding: 0 16px 8px !important;
}

.premium-lock-body {
  flex: 1 1 auto !important;
  margin-top: -20px !important;
  padding: 26px 18px 13px !important;
  border-radius: 24px 24px 0 0 !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.premium-title-row {
  display: grid !important;
  grid-template-columns: 38px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.avatar-icon {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;
  font-size: 16px !important;
}

.profile-card.premium-lock-card h3 {
  font-size: 19px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.premium-info-list {
  display: grid !important;
  gap: 7px !important;
}

.premium-info-row {
  grid-template-columns: 34px 1fr 18px !important;
  gap: 9px !important;
  min-height: 43px !important;
  padding: 7px 10px !important;
  border-radius: 13px !important;
}

.info-icon {
  width: 34px !important;
  height: 34px !important;
  flex-basis: 34px !important;
  font-size: 14px !important;
}

.premium-info-row strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.premium-info-row span {
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.premium-info-row em {
  font-size: 12px !important;
  justify-self: end !important;
  align-self: center !important;
}

.premium-actions {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.profile-card.premium-lock-card .btn {
  min-height: 34px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 10px !important;
  font-size: 12px !important;
}

.premium-match {
  margin-top: auto !important;
  padding-top: 10px !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  letter-spacing: .3px !important;
}

@media (max-width: 768px) {
  .profile-scroll,
  #premiumProfiles,
  #featuredProfiles,
  #matchesList,
  #matchesForYou,
  .profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px)) !important;
    gap: 22px !important;
  }
}

@media (max-width: 480px) {
  .profile-scroll,
  #premiumProfiles,
  #featuredProfiles,
  #matchesList,
  #matchesForYou,
  .profile-grid {
    grid-template-columns: minmax(260px, 315px) !important;
  }
  .profile-card.premium-lock-card { max-width: 315px !important; }
  .member-pill { top: 14px !important; left: auto !important; right: 14px !important; }
}

/* FINAL FIX: tall premium profile cards like reference image */
.premium-members-section,
.for-you-section,
.premium-members-section .container,
.for-you-section .container {
  overflow: visible !important;
  height: auto !important;
}

#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(360px, 380px)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 38px !important;
  overflow: visible !important;
  padding: 28px 0 46px !important;
}

.profile-card.premium-lock-card {
  width: 100% !important;
  max-width: 380px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 610px !important;
  aspect-ratio: auto !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(17,24,39,.14) !important;
}

.premium-lock-image {
  height: 255px !important;
  min-height: 255px !important;
  max-height: none !important;
  flex: 0 0 255px !important;
  border-radius: 30px 30px 0 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.premium-lock-image-link,
.premium-lock-image-link img,
.profile-card.premium-lock-card .premium-lock-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.premium-pill {
  top: 18px !important;
  padding: 8px 15px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}
.new-pill { left: 18px !important; }
.member-pill { right: 18px !important; left: auto !important; }

.premium-center-lock {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.premium-center-lock .big-lock {
  width: 68px !important;
  height: 68px !important;
  font-size: 26px !important;
  margin: 0 0 14px !important;
}

.premium-center-lock strong,
.premium-center-lock small {
  width: auto !important;
  min-width: 205px !important;
  max-width: 240px !important;
  text-align: center !important;
}
.premium-center-lock strong {
  font-size: 20px !important;
  padding: 12px 22px 4px !important;
}
.premium-center-lock small {
  font-size: 13px !important;
  padding: 0 22px 12px !important;
}

.premium-lock-body {
  flex: 1 1 auto !important;
  margin-top: -32px !important;
  padding: 40px 26px 22px !important;
  border-radius: 32px 32px 0 0 !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  min-height: 0 !important;
}

.premium-title-row {
  display: grid !important;
  grid-template-columns: 52px 1fr !important;
  gap: 16px !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}
.avatar-icon {
  width: 52px !important;
  height: 52px !important;
  flex-basis: 52px !important;
  font-size: 22px !important;
}
.profile-card.premium-lock-card h3 {
  font-size: 25px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

.premium-info-list {
  display: grid !important;
  gap: 11px !important;
}
.premium-info-row {
  display: grid !important;
  grid-template-columns: 46px 1fr 24px !important;
  gap: 13px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border-radius: 17px !important;
}
.info-icon {
  width: 46px !important;
  height: 46px !important;
  flex-basis: 46px !important;
  font-size: 18px !important;
}
.premium-info-row strong {
  font-size: 15px !important;
  line-height: 1.2 !important;
}
.premium-info-row span {
  font-size: 15px !important;
  line-height: 1.32 !important;
}
.premium-info-row em {
  font-size: 15px !important;
  justify-self: end !important;
}

.premium-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 22px !important;
}
.profile-card.premium-lock-card .btn {
  min-height: 48px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100% !important;
  min-height: 58px !important;
  margin-top: 16px !important;
  font-size: 15px !important;
}
.premium-match {
  margin-top: 18px !important;
  padding-top: 0 !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  letter-spacing: .4px !important;
}

@media (max-width: 480px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    grid-template-columns: minmax(300px, 360px) !important;
    gap: 28px !important;
  }
  .profile-card.premium-lock-card { max-width: 360px !important; min-height: 590px !important; }
  .premium-lock-image { height: 235px !important; min-height: 235px !important; flex-basis: 235px !important; }
  .premium-lock-body { padding: 38px 20px 20px !important; }
  .premium-pill { font-size: 11px !important; padding: 8px 12px !important; }
  .new-pill { left: 14px !important; }
  .member-pill { right: 14px !important; top: 18px !important; }
}

/* Final premium profile-card refinement: reference layout, 45% photo / 55% content */
#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(340px, 380px)) !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 38px !important;
  overflow: visible !important;
  padding: 32px 0 58px !important;
}

.profile-card.premium-lock-card {
  width: 100% !important;
  max-width: 380px !important;
  height: 640px !important;
  min-height: 640px !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  box-shadow: 0 26px 65px rgba(17,24,39,.14) !important;
}

.profile-card.premium-lock-card .premium-lock-image {
  height: 45% !important;
  min-height: 45% !important;
  flex: 0 0 45% !important;
  border-radius: 30px 30px 0 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.profile-card.premium-lock-card .premium-lock-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.profile-card.premium-lock-card .premium-lock-body {
  height: calc(55% + 34px) !important;
  flex: 0 0 calc(55% + 34px) !important;
  margin-top: -34px !important;
  padding: 38px 28px 20px !important;
  border-radius: 34px 34px 0 0 !important;
  background: #fff !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-card.premium-lock-card .premium-center-lock .big-lock {
  width: 68px !important;
  height: 68px !important;
  margin-bottom: 14px !important;
}

.profile-card.premium-lock-card .premium-title-row {
  grid-template-columns: 52px 1fr !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
  align-items: center !important;
}

.profile-card.premium-lock-card .avatar-icon {
  width: 52px !important;
  height: 52px !important;
  font-size: 22px !important;
}

.profile-card.premium-lock-card h3 {
  font-size: 25px !important;
  line-height: 1.15 !important;
}

.profile-card.premium-lock-card .premium-info-list {
  display: grid !important;
  gap: 14px !important;
}

.profile-card.premium-lock-card .premium-info-row {
  grid-template-columns: 48px 1fr 24px !important;
  min-height: 72px !important;
  padding: 13px 16px !important;
  gap: 15px !important;
  border-radius: 18px !important;
  background: #fff4f8 !important;
}

.profile-card.premium-lock-card .premium-info-row .info-icon {
  width: 48px !important;
  height: 48px !important;
  font-size: 18px !important;
}

.profile-card.premium-lock-card .premium-info-row strong {
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.profile-card.premium-lock-card .premium-info-row span {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.profile-card.premium-lock-card .premium-actions {
  margin-top: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.profile-card.premium-lock-card .btn {
  min-height: 48px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  min-height: 58px !important;
  margin-top: 14px !important;
  font-size: 15px !important;
}

.profile-card.premium-lock-card .premium-match {
  margin-top: 14px !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
}

@media (max-width: 480px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    grid-template-columns: minmax(300px, 360px) !important;
  }
  .profile-card.premium-lock-card {
    height: 610px !important;
    min-height: 610px !important;
    max-width: 360px !important;
  }
  .profile-card.premium-lock-card .premium-lock-body {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

/* Final fix: prevent premium cards from cropping and keep a clean reference-style 45/55 layout */
#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll {
  grid-template-columns: repeat(auto-fit, minmax(360px, 390px)) !important;
  gap: 42px !important;
  padding-bottom: 80px !important;
}

.profile-card.premium-lock-card {
  max-width: 390px !important;
  width: 390px !important;
  height: auto !important;
  min-height: 735px !important;
  overflow: hidden !important;
  border-radius: 30px !important;
}

.profile-card.premium-lock-card .premium-lock-image {
  height: 330px !important;
  min-height: 330px !important;
  flex: 0 0 330px !important;
}

.profile-card.premium-lock-card .premium-lock-body {
  height: auto !important;
  min-height: 430px !important;
  flex: 1 0 auto !important;
  margin-top: -36px !important;
  padding: 38px 30px 26px !important;
  border-radius: 34px 34px 0 0 !important;
}

.profile-card.premium-lock-card .premium-title-row {
  margin-bottom: 22px !important;
}

.profile-card.premium-lock-card .premium-info-list {
  gap: 14px !important;
}

.profile-card.premium-lock-card .premium-info-row {
  min-height: 82px !important;
  padding: 15px 16px !important;
}

.profile-card.premium-lock-card .premium-actions {
  margin-top: 24px !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  margin-top: 14px !important;
  min-height: 58px !important;
}

.profile-card.premium-lock-card .premium-match {
  margin-top: 16px !important;
  padding-bottom: 2px !important;
}

@media (max-width: 480px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    grid-template-columns: minmax(310px, 360px) !important;
  }

  .profile-card.premium-lock-card {
    width: 100% !important;
    max-width: 360px !important;
    min-height: 705px !important;
  }

  .profile-card.premium-lock-card .premium-lock-image {
    height: 310px !important;
    min-height: 310px !important;
    flex-basis: 310px !important;
  }
}

/* Horizontal scroll profile rows for Home page */
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 28px !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 28px 12px 34px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#premiumMembers.profile-scroll::-webkit-scrollbar,
#forYouMembers.profile-scroll::-webkit-scrollbar {
  height: 8px;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-track,
#forYouMembers.profile-scroll::-webkit-scrollbar-track {
  background: #fff1f6;
  border-radius: 999px;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-thumb,
#forYouMembers.profile-scroll::-webkit-scrollbar-thumb {
  background: #e91e63;
  border-radius: 999px;
}

#premiumMembers.profile-scroll .profile-card.premium-lock-card,
#forYouMembers.profile-scroll .profile-card.premium-lock-card {
  flex: 0 0 315px !important;
  width: 315px !important;
  max-width: 315px !important;
  min-width: 315px !important;
  scroll-snap-align: start;
}

.premium-members-section,
.for-you-section {
  overflow: visible !important;
}

.premium-members-section .container,
.for-you-section .container {
  overflow: visible !important;
}

@media (max-width: 480px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll {
    gap: 18px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  #premiumMembers.profile-scroll .profile-card.premium-lock-card,
  #forYouMembers.profile-scroll .profile-card.premium-lock-card {
    flex-basis: 286px !important;
    width: 286px !important;
    min-width: 286px !important;
    max-width: 286px !important;
  }
}

/* =========================================================
   FINAL HOME PROFILE CAROUSEL DESIGN
   Wide horizontal premium cards - clean, square-like layout
========================================================= */
html, body {
  min-height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.premium-members-section,
.for-you-section {
  padding: 56px 0 72px !important;
  overflow: visible !important;
}

.premium-members-section .container,
.for-you-section .container {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  overflow: visible !important;
}

.section-head-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 22px !important;
  margin-bottom: 22px !important;
}

.section-head-row .left-title {
  text-align: left !important;
  margin-bottom: 8px !important;
}

.section-head-row .left-subtitle {
  text-align: left !important;
  margin: 0 !important;
}

#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  gap: 26px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 14px 8px 34px !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

#premiumMembers.profile-scroll::-webkit-scrollbar,
#forYouMembers.profile-scroll::-webkit-scrollbar {
  height: 8px !important;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-track,
#forYouMembers.profile-scroll::-webkit-scrollbar-track {
  background: #fff1f6 !important;
  border-radius: 999px !important;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-thumb,
#forYouMembers.profile-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #e91e63, #c2185b) !important;
  border-radius: 999px !important;
}

#premiumMembers.profile-scroll .profile-card.premium-lock-card,
#forYouMembers.profile-scroll .profile-card.premium-lock-card,
.profile-card.premium-lock-card {
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.13) !important;
  scroll-snap-align: start !important;
}

.profile-card.premium-lock-card .premium-lock-image {
  flex: 0 0 234px !important;
  height: 234px !important;
  min-height: 234px !important;
  max-height: 234px !important;
  width: 100% !important;
  border-radius: 28px 28px 0 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.profile-card.premium-lock-card .premium-lock-image-link,
.profile-card.premium-lock-card .premium-lock-image img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.profile-card.premium-lock-card .premium-lock-image img {
  object-fit: cover !important;
  object-position: center !important;
}

.profile-card.premium-lock-card .premium-pill {
  top: 16px !important;
  padding: 8px 13px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.profile-card.premium-lock-card .new-pill {
  left: 16px !important;
  right: auto !important;
}

.profile-card.premium-lock-card .member-pill {
  right: 16px !important;
  left: auto !important;
}

.profile-card.premium-lock-card .premium-center-lock {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.profile-card.premium-lock-card .premium-center-lock .big-lock {
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 12px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.95) !important;
  box-shadow: 0 10px 28px rgba(17,24,39,.12) !important;
}

.profile-card.premium-lock-card .premium-center-lock strong,
.profile-card.premium-lock-card .premium-center-lock small {
  min-width: 190px !important;
  max-width: 220px !important;
  text-align: center !important;
  background: rgba(255,255,255,.94) !important;
}

.profile-card.premium-lock-card .premium-center-lock strong {
  font-size: 18px !important;
  line-height: 1.05 !important;
  padding: 12px 20px 3px !important;
  border-radius: 999px 999px 0 0 !important;
}

.profile-card.premium-lock-card .premium-center-lock small {
  font-size: 11px !important;
  line-height: 1.15 !important;
  padding: 0 20px 11px !important;
  border-radius: 0 0 999px 999px !important;
  font-weight: 800 !important;
}

.profile-card.premium-lock-card .premium-lock-body {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: -28px !important;
  padding: 32px 22px 16px !important;
  border-radius: 28px 28px 0 0 !important;
  background: #ffffff !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-card.premium-lock-card .premium-title-row {
  display: grid !important;
  grid-template-columns: 44px 1fr !important;
  align-items: center !important;
  gap: 13px !important;
  margin-bottom: 14px !important;
}

.profile-card.premium-lock-card .avatar-icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  font-size: 19px !important;
}

.profile-card.premium-lock-card h3 {
  font-size: 22px !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

.profile-card.premium-lock-card .premium-info-list {
  display: grid !important;
  gap: 10px !important;
}

.profile-card.premium-lock-card .premium-info-row {
  display: grid !important;
  grid-template-columns: 42px 1fr 20px !important;
  align-items: center !important;
  gap: 11px !important;
  min-height: 64px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: #fff3f8 !important;
}

.profile-card.premium-lock-card .info-icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  font-size: 16px !important;
}

.profile-card.premium-lock-card .premium-info-row strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  margin-bottom: 2px !important;
}

.profile-card.premium-lock-card .premium-info-row span {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.profile-card.premium-lock-card .premium-info-row em {
  justify-self: end !important;
  font-size: 13px !important;
}

.profile-card.premium-lock-card .premium-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding-top: 12px !important;
}

.profile-card.premium-lock-card .btn {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
  border-radius: 11px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100% !important;
  min-height: 45px !important;
  height: 45px !important;
  margin-top: 10px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
}

.profile-card.premium-lock-card .premium-match {
  margin-top: 11px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (min-width: 1200px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .premium-members-section .container,
  .for-you-section .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section-head-row {
    align-items: flex-start !important;
  }

  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll {
    gap: 20px !important;
  }

  #premiumMembers.profile-scroll .profile-card.premium-lock-card,
  #forYouMembers.profile-scroll .profile-card.premium-lock-card,
  .profile-card.premium-lock-card {
    flex-basis: 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    height: 505px !important;
    min-height: 505px !important;
    max-height: 505px !important;
  }

  .profile-card.premium-lock-card .premium-lock-image {
    flex-basis: 225px !important;
    height: 225px !important;
    min-height: 225px !important;
    max-height: 225px !important;
  }
}

@media (max-width: 480px) {
  .section-head-row {
    flex-direction: column !important;
  }

  #premiumMembers.profile-scroll .profile-card.premium-lock-card,
  #forYouMembers.profile-scroll .profile-card.premium-lock-card,
  .profile-card.premium-lock-card {
    flex-basis: 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 490px !important;
    min-height: 490px !important;
    max-height: 490px !important;
  }

  .profile-card.premium-lock-card .premium-lock-image {
    flex-basis: 210px !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .profile-card.premium-lock-card .member-pill {
    font-size: 10px !important;
    padding: 7px 10px !important;
  }
}


/* FINAL CLEAN CAROUSEL CARD FIX
   - wider cards so they do not look thin
   - horizontal scroll for Premium Members and Matches For You
   - premium badge is icon-only in top-right corner
   - no card cropping
*/
.premium-members-section,
.for-you-section{
  width:100% !important;
  overflow:hidden !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

.premium-members-section .container,
.for-you-section .container{
  width:min(100%, 1320px) !important;
  max-width:1320px !important;
  margin:0 auto !important;
  padding-left:28px !important;
  padding-right:28px !important;
  overflow:visible !important;
}

#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll{
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:stretch !important;
  gap:30px !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  scroll-behavior:smooth !important;
  scroll-snap-type:x mandatory !important;
  -webkit-overflow-scrolling:touch !important;
  padding:32px 4px 64px !important;
}

#premiumMembers.profile-scroll::-webkit-scrollbar,
#forYouMembers.profile-scroll::-webkit-scrollbar,
.profile-scroll::-webkit-scrollbar{ height:0 !important; display:none !important; }

.profile-card.premium-lock-card{
  flex:0 0 365px !important;
  width:365px !important;
  max-width:365px !important;
  min-width:365px !important;
  height:560px !important;
  min-height:560px !important;
  max-height:none !important;
  border-radius:30px !important;
  overflow:hidden !important;
  scroll-snap-align:start !important;
  background:#fff !important;
  box-shadow:0 22px 55px rgba(17,24,39,.13) !important;
}

.premium-lock-image{
  height:245px !important;
  min-height:245px !important;
  flex:0 0 245px !important;
  border-radius:30px 30px 0 0 !important;
}

.premium-lock-image-link,
.premium-lock-image-link img,
.profile-card.premium-lock-card .premium-lock-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.premium-pill{
  position:absolute !important;
  top:18px !important;
  z-index:6 !important;
  height:32px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.new-pill{
  left:18px !important;
  padding:0 15px !important;
  font-size:12px !important;
}

.member-pill{
  right:18px !important;
  left:auto !important;
  width:38px !important;
  min-width:38px !important;
  height:38px !important;
  padding:0 !important;
  font-size:17px !important;
  border-radius:50% !important;
  color:#fff !important;
  background:rgba(17,24,39,.86) !important;
  box-shadow:0 8px 20px rgba(17,24,39,.20) !important;
  overflow:hidden !important;
  text-indent:0 !important;
}

.premium-center-lock .big-lock{
  width:62px !important;
  height:62px !important;
  font-size:24px !important;
  margin-bottom:12px !important;
}

.premium-center-lock strong{
  min-width:205px !important;
  max-width:230px !important;
  font-size:18px !important;
  padding:11px 20px 3px !important;
}

.premium-center-lock small{
  min-width:205px !important;
  max-width:230px !important;
  font-size:12px !important;
  padding:0 20px 11px !important;
}

.premium-lock-body{
  margin-top:-32px !important;
  padding:38px 24px 20px !important;
  border-radius:30px 30px 0 0 !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}

.premium-title-row{
  grid-template-columns:50px 1fr !important;
  gap:14px !important;
  margin-bottom:18px !important;
}

.avatar-icon{ width:50px !important; height:50px !important; font-size:21px !important; }
.profile-card.premium-lock-card h3{ font-size:24px !important; line-height:1.12 !important; }

.premium-info-list{ gap:11px !important; }
.premium-info-row{
  grid-template-columns:46px 1fr 20px !important;
  min-height:60px !important;
  padding:10px 13px !important;
  border-radius:17px !important;
}
.info-icon{ width:46px !important; height:46px !important; font-size:18px !important; }
.premium-info-row strong{ font-size:14px !important; }
.premium-info-row span{ font-size:13px !important; line-height:1.25 !important; }

.premium-actions{ gap:10px !important; margin-top:16px !important; }
.profile-card.premium-lock-card .btn{
  min-height:40px !important;
  border-radius:11px !important;
  font-size:12px !important;
}
.profile-card.premium-lock-card .premium-unlock-btn{
  min-height:48px !important;
  margin-top:12px !important;
  font-size:14px !important;
}
.premium-match{
  margin-top:12px !important;
  font-size:21px !important;
  line-height:1.1 !important;
}

@media (max-width:768px){
  .premium-members-section .container,
  .for-you-section .container{ padding-left:18px !important; padding-right:18px !important; }
  .profile-card.premium-lock-card{
    flex-basis:330px !important;
    width:330px !important;
    max-width:330px !important;
    min-width:330px !important;
    height:535px !important;
    min-height:535px !important;
  }
  .premium-lock-image{ height:225px !important; min-height:225px !important; flex-basis:225px !important; }
  .premium-lock-body{ padding:36px 20px 18px !important; }
}

/* Step 6: real user-to-user messaging */
.message-unread-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

/* Step 9 photo upload polish: max 5 images, consistent cards, aligned previews */
.photo-preview-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(160px, 180px)) !important;
  gap: 18px !important;
  align-items: start !important;
  justify-content: flex-start !important;
}
.photo-choice {
  width: 100% !important;
  min-height: 230px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-align: center !important;
}
.photo-choice img {
  width: 100% !important;
  height: 170px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
}
.photo-choice input[type="radio"] {
  margin-right: 6px !important;
}
@media (max-width: 640px) {
  .photo-preview-grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr)) !important;
  }
  .photo-choice { min-height: 210px !important; }
  .photo-choice img { height: 145px !important; }
}

/* Main profile photo system */
.photo-preview-grid .main-photo-card {
  grid-column: span 2;
  max-width: 380px;
}
.photo-thumb-wrap {
  position: relative;
  width: 100%;
}
.main-photo-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(233, 30, 99, .25);
  z-index: 2;
}
.photo-card-actions {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.photo-action-btn {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}
.photo-action-btn.danger {
  border-color: #ef4444;
  color: #ef4444;
}
.photo-main-text {
  color: var(--primary);
  font-weight: 900;
}
.photo-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-view-photo {
  position: relative;
}
.profile-main-badge {
  left: 18px;
  top: 18px;
}
.profile-photo-grid {
  align-items: start;
}
.profile-photo-thumb {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
}
.profile-photo-thumb.selected {
  border-color: var(--primary);
}
.profile-photo-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.profile-photo-thumb span {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 11px;
}
@media (max-width: 640px) {
  .photo-preview-grid .main-photo-card {
    grid-column: span 2;
    max-width: none;
  }
}
.photo-choice { position: relative !important; }

.admin-connection-status {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  background: #fff7fb;
  color: #596174;
  border: 1px solid #ffd0df;
}
.admin-connection-status.success {
  background: #eefbf3;
  color: #0f7a3c;
  border-color: #b9eccb;
}
.admin-connection-status.error {
  background: #fff1f1;
  color: #b00020;
  border-color: #ffb8c5;
}

/* === Clean Premium Member Cards - reference style fix === */
.premium-members-section {
  background: #fff !important;
  padding: 54px 0 64px !important;
}
.premium-members-section .container { max-width: 1240px !important; }
.premium-members-section .section-head-row { margin-bottom: 36px !important; }
.profile-scroll {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  gap: 28px !important;
  overflow: visible !important;
  align-items: stretch !important;
}
.profile-card.premium-lock-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  border: 1px solid #eef0f5 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .10) !important;
  display: flex !important;
  flex-direction: column !important;
}
.profile-card.premium-lock-card:hover { transform: translateY(-4px) !important; }
.premium-lock-image {
  position: relative !important;
  height: 330px !important;
  min-height: 330px !important;
  max-height: none !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}
.premium-lock-image-link,
.premium-lock-image-link img,
.profile-card.premium-lock-card .premium-lock-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.profile-card.premium-lock-card .premium-lock-image img {
  object-fit: cover !important;
  filter: blur(6px) !important;
  transform: scale(1.04) !important;
}
.premium-photo-shade {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.74) 100%) !important;
  pointer-events: none !important;
}
.premium-pill {
  position: absolute !important;
  top: 20px !important;
  z-index: 3 !important;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.new-pill { left: 20px !important; background: linear-gradient(135deg,#fa315f,#d70a72) !important; color:#fff !important; }
.member-pill { right: 20px !important; background: #fff !important; color:#111827 !important; box-shadow: 0 10px 22px rgba(15,23,42,.14) !important; }
.member-pill span { color:#e91e63 !important; font-size: 18px !important; vertical-align: -1px !important; }
.premium-bottom-lock {
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  color: #fff !important;
}
.premium-bottom-lock .big-lock {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: #fff !important;
  color: #e91e63 !important;
  font-size: 22px !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.18) !important;
}
.premium-bottom-lock strong { display:block !important; font-size: 18px !important; line-height: 1.1 !important; font-weight: 900 !important; }
.premium-bottom-lock small { display:block !important; margin-top: 5px !important; font-size: 13px !important; font-weight: 700 !important; color:#fff !important; }
.premium-center-lock { display: none !important; }
.premium-lock-body {
  flex: 1 1 auto !important;
  margin-top: 0 !important;
  padding: 26px 20px 18px !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
.premium-title-row { display:none !important; }
.premium-info-list { display: grid !important; gap: 0 !important; margin-bottom: 22px !important; }
.premium-info-row {
  display: grid !important;
  grid-template-columns: 42px 1fr auto 18px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 60px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid #edf0f4 !important;
}
.premium-info-row:last-child { border-bottom: 0 !important; }
.info-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  display: grid !important;
  place-items: center !important;
  background: #fff0f6 !important;
  color: #e91e63 !important;
  font-size: 16px !important;
}
.premium-info-row strong { font-size: 16px !important; line-height: 1.2 !important; color: #111827 !important; font-weight: 900 !important; }
.premium-info-row span { font-size: 15px !important; color: #7b8190 !important; font-weight: 700 !important; text-align: right !important; }
.premium-info-row em { font-size: 14px !important; font-style: normal !important; color: #e91e63 !important; }
.premium-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin: 0 0 14px !important; }
.profile-card.premium-lock-card .btn {
  min-height: 46px !important;
  border-radius: 9px !important;
  padding: 0 12px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}
.profile-card.premium-lock-card .btn.outline { border: 1.5px solid #e91e63 !important; color: #e91e63 !important; background:#fff !important; }
.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100% !important;
  min-height: 52px !important;
  margin-top: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#fa315f,#d70a72) !important;
}
.premium-privacy {
  margin-top: 16px !important;
  padding: 13px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg,#fff6fa,#fff0f5) !important;
}
.premium-privacy > span { font-size: 23px !important; }
.premium-privacy b { display:block !important; font-size: 13px !important; color:#111827 !important; }
.premium-privacy small { display:block !important; margin-top: 2px !important; font-size: 12px !important; color:#7b8190 !important; }
.premium-match { display: none !important; }
@media (max-width: 1000px) { .profile-scroll { grid-template-columns: repeat(2, minmax(280px, 1fr)) !important; } }
@media (max-width: 640px) {
  .premium-members-section { padding: 36px 0 44px !important; }
  .profile-scroll { grid-template-columns: 1fr !important; gap: 22px !important; }
  .premium-lock-image { height: 300px !important; min-height: 300px !important; }
  .premium-lock-body { padding: 22px 16px 16px !important; }
  .premium-info-row { grid-template-columns: 38px 1fr auto 16px !important; min-height: 56px !important; }
  .premium-info-row strong { font-size: 15px !important; }
  .premium-info-row span { font-size: 14px !important; }
}

/* User requested clean compact locked cards: one details row + action buttons */
#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll {
  align-items: stretch !important;
  padding-bottom: 48px !important;
}

.profile-card.premium-lock-card {
  width: 390px !important;
  max-width: 390px !important;
  min-height: 580px !important;
  height: auto !important;
  border-radius: 28px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 22px 55px rgba(17, 24, 39, .12) !important;
}

.profile-card.premium-lock-card .premium-lock-image {
  height: 330px !important;
  min-height: 330px !important;
  flex: 0 0 330px !important;
  border-radius: 28px 28px 0 0 !important;
}

.profile-card.premium-lock-card .premium-lock-body {
  min-height: 250px !important;
  padding: 26px 24px 22px !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-card.premium-lock-card .single-detail-hidden {
  display: block !important;
  margin: 0 0 18px !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row {
  display: grid !important;
  grid-template-columns: 36px 1fr !important;
  grid-template-areas: "icon title" "icon sub" !important;
  column-gap: 12px !important;
  align-items: center !important;
  min-height: 76px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff7fa, #fff1f6) !important;
  border: 1px solid #fde2ec !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row .info-icon {
  grid-area: icon !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: #ffe6ef !important;
  color: #e91e63 !important;
  font-size: 16px !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row strong {
  grid-area: title !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  color: #111827 !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row span:not(.info-icon) {
  grid-area: sub !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #6b7280 !important;
  font-weight: 600 !important;
}

.profile-card.premium-lock-card .premium-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 0 !important;
}

.profile-card.premium-lock-card .premium-actions .btn {
  min-height: 50px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e91e63 !important;
  color: #e91e63 !important;
  background: #fff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.profile-card.premium-lock-card .premium-unlock-btn {
  width: 100% !important;
  min-height: 58px !important;
  margin-top: 14px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ff2d68, #d60063) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 26px rgba(233, 30, 99, .25) !important;
}

.profile-card.premium-lock-card .premium-privacy {
  display: none !important;
}

@media (max-width: 480px) {
  .profile-card.premium-lock-card {
    width: 100% !important;
    max-width: 360px !important;
    min-height: 560px !important;
  }
  .profile-card.premium-lock-card .premium-lock-image {
    height: 300px !important;
    min-height: 300px !important;
    flex-basis: 300px !important;
  }
}

/* === FINAL FIX: prevent home profile cards from being cut/cropped === */
html,
body,
main,
.home-page,
.premium-members-section,
.for-you-section,
.premium-members-section .container,
.for-you-section .container {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.premium-members-section,
.for-you-section {
  padding-top: 44px !important;
  padding-bottom: 86px !important;
}

#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll,
.profile-scroll {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
  gap: 30px !important;
  align-items: stretch !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 28px 6px 38px !important;
  margin-bottom: 0 !important;
  scroll-snap-type: none !important;
}

#premiumMembers.profile-scroll .profile-card.premium-lock-card,
#forYouMembers.profile-scroll .profile-card.premium-lock-card,
.profile-card.premium-lock-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.profile-card.premium-lock-card .premium-lock-image {
  height: 300px !important;
  min-height: 300px !important;
  flex: 0 0 300px !important;
}

.profile-card.premium-lock-card .premium-lock-body {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  padding-bottom: 24px !important;
  overflow: visible !important;
}

.profile-card.premium-lock-card .single-detail-hidden {
  margin-bottom: 18px !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row {
  min-height: 84px !important;
}

.profile-card.premium-lock-card .premium-actions,
.profile-card.premium-lock-card .premium-unlock-btn {
  flex-shrink: 0 !important;
}

@media (max-width: 1000px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    grid-template-columns: 1fr !important;
  }
  .profile-card.premium-lock-card .premium-lock-image {
    height: 270px !important;
    min-height: 270px !important;
    flex-basis: 270px !important;
  }
}

/* ==========================
   MATCHES SMART CARD SYSTEM
========================== */
.matches-hero { background: linear-gradient(135deg, #fff7fb, #fff); padding: 46px 0 22px; }
.matches-hero h1 { font-size: 44px; line-height: 1.05; }
.matches-hero h1 span { color: #111827; }
.matches-hero h1::first-letter { color: #111827; }
.matches-hero h1 { color: var(--primary); }
.matches-section { padding: 30px 0 75px; background: linear-gradient(180deg, #fff, #fff7fb); }
.matches-topbar, .match-stats, .matches-grid { overflow: visible !important; }
.matches-grid { grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 30px; align-items: stretch; padding: 8px 4px 18px; }
.bm-match-card { background:#fff; border:1px solid rgba(236,41,107,.12); border-radius:22px; overflow:hidden; box-shadow:0 14px 36px rgba(17,24,39,.10); transition:.25s ease; }
.bm-match-card:hover { transform: translateY(-6px); box-shadow:0 18px 46px rgba(17,24,39,.14); }
.bm-match-photo { height: 315px; position:relative; overflow:hidden; background:#f8eaf0; }
.bm-match-photo img { width:100%; height:100%; object-fit:cover; filter: blur(7px); transform:scale(1.04); transition:.35s ease; }
.bm-match-card:hover .bm-match-photo img { transform:scale(1.08); }
.bm-photo-shade { position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.02) 40%, rgba(0,0,0,.72) 100%); }
.bm-status-pill { position:absolute; top:18px; left:18px; border-radius:999px; padding:11px 18px; background:linear-gradient(135deg,#ff3261,#d80a72); color:#fff; font-size:13px; font-weight:900; box-shadow:0 8px 20px rgba(216,10,114,.22); }
.bm-percent { position:absolute; top:18px; right:18px; min-width:70px; height:45px; border-radius:999px; background:#fff; color:#111827; display:flex; gap:6px; align-items:center; justify-content:center; font-weight:900; box-shadow:0 10px 24px rgba(17,24,39,.12); }
.bm-percent i { color:var(--primary); }
.bm-locked-title { position:absolute; left:20px; right:20px; bottom:22px; display:flex; align-items:center; gap:12px; color:#fff; }
.bm-locked-title strong { display:block; font-size:21px; line-height:1; }
.bm-locked-title small { display:block; margin-top:7px; font-weight:800; color:#fff; }
.bm-lock-circle { width:58px; height:58px; border-radius:50%; background:#fff; color:var(--primary); display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px rgba(0,0,0,.14); flex:0 0 auto; }
.bm-match-content { padding: 24px 22px 22px; }
.bm-details-hidden { min-height:104px; border-radius:18px; background:linear-gradient(135deg,#fff3f8,#fff7fb); border:1px solid rgba(236,41,107,.12); display:flex; align-items:center; justify-content:center; gap:16px; padding:18px; text-align:center; }
.bm-details-hidden span { width:46px; height:36px; border-radius:12px; background:#ffe2ee; color:var(--primary); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.bm-details-hidden strong { display:block; font-size:20px; color:#111827; margin-bottom:8px; }
.bm-details-hidden small { display:block; max-width:220px; color:#4b5563; font-weight:700; line-height:1.35; }
.bm-card-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:22px 0 14px; }
.bm-outline-btn { height:50px; border:1.6px solid var(--primary); border-radius:10px; background:#fff; color:var(--primary); font-weight:900; cursor:pointer; font-size:15px; display:flex; align-items:center; justify-content:center; gap:8px; }
.bm-outline-btn:hover { background:#fff3f8; }
.bm-unlock-btn { height:54px; border-radius:10px; background:linear-gradient(135deg,#ff315d,#d80a72); color:#fff !important; text-decoration:none; font-weight:900; display:flex; align-items:center; justify-content:center; gap:12px; font-size:17px; box-shadow:0 12px 24px rgba(216,10,114,.18); }
.bm-unlock-btn:hover { transform:translateY(-1px); }
.matches-upgrade { background:linear-gradient(90deg,#fff2f8,#fff7fb); border:1px solid rgba(236,41,107,.10); }
@media (max-width: 1050px) { .matches-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); } }
@media (max-width: 680px) { .matches-grid { grid-template-columns: 1fr; } .bm-match-photo { height: 285px; } .matches-hero h1 { font-size:34px; } }

/* Interest / shortlist action states */
.action-done,
.bm-outline-btn.action-done,
.btn.action-done {
  background: #fff1f5 !important;
  border-color: #f43f7f !important;
  color: #d81b60 !important;
  font-weight: 700;
}
.bm-response-actions {
  margin-top: 10px;
}
.bm-response-actions .bm-outline-btn:first-child {
  border-color: #22c55e;
  color: #15803d;
}
.bm-response-actions .bm-outline-btn:last-child {
  border-color: #ef4444;
  color: #b91c1c;
}

/* UPI screenshot payment popup */
.upi-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 15, 0.58);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.upi-modal.show { display: flex; }
.upi-modal-card {
  width: min(480px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  position: relative;
}
.upi-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff2f7;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}
.upi-qr-box {
  text-align: center;
  border: 1px dashed #f2bdd1;
  background: #fff8fb;
  border-radius: 20px;
  padding: 18px 14px;
  margin-bottom: 16px;
}
.upi-qr-box img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.upi-qr-box p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.upi-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fafafa;
}
.upi-upload-row .btn { padding: 12px 18px; }
.upi-upload-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upi-label small { color: var(--muted); font-weight: 700; }
.payment-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}
.payment-proof-link img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f3cada;
}

/* ==========================
   MATCHES EMPTY STATE
========================== */
.matches-empty-state {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin: 24px auto 36px;
  padding: 54px 28px 46px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7fb 0%, #ffffff 52%, #fff0f6 100%);
  border: 1px solid rgba(236, 41, 107, 0.14);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.matches-empty-state::before,
.matches-empty-state::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(236, 41, 107, 0.08);
  pointer-events: none;
}

.matches-empty-state::before {
  width: 190px;
  height: 190px;
  top: -75px;
  right: -65px;
}

.matches-empty-state::after {
  width: 140px;
  height: 140px;
  bottom: -70px;
  left: -45px;
}

.matches-empty-illustration {
  width: 112px;
  height: 112px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffeff6, #ffffff);
  border: 1px solid rgba(236, 41, 107, 0.14);
  box-shadow: 0 14px 34px rgba(236, 41, 107, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.empty-heart {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff315d, #d80a72);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 12px 24px rgba(216, 10, 114, 0.2);
  animation: emptyHeartPulse 1.8s ease-in-out infinite;
}

.empty-sparkle {
  position: absolute;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
  animation: emptySparkle 2s ease-in-out infinite;
}

.sparkle-one { top: 9px; right: 11px; }
.sparkle-two { bottom: 13px; left: 13px; animation-delay: .45s; }

.matches-empty-state h3 {
  margin: 0 0 12px;
  font-size: 32px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.matches-empty-state p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.matches-empty-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.matches-refresh-btn,
.matches-pref-btn {
  width: 205px;
  border: none;
}

.matches-pref-btn {
  text-decoration: none;
  margin: 0;
}

@keyframes emptyHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes emptySparkle {
  0%, 100% { transform: scale(.85) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.2) rotate(12deg); opacity: 1; }
}

@media (max-width: 600px) {
  .matches-empty-state { padding: 42px 18px 36px; border-radius: 22px; }
  .matches-empty-state h3 { font-size: 25px; }
  .matches-empty-state p { font-size: 15px; }
  .matches-refresh-btn,
  .matches-pref-btn { width: 100%; }
}

/* =========================================================
   FINAL ALIGNMENT POLISH
   - Home hero quick search box alignment
   - Center lock icon inside Details Hidden cards
========================================================= */
.search-box {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 34px 34px 30px !important;
  border-radius: 24px !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.search-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 26px !important;
}

.search-box .form-grid {
  display: grid !important;
  grid-template-columns: minmax(170px, 1.1fr) minmax(115px, .75fr) minmax(115px, .75fr) minmax(155px, 1fr) minmax(190px, 1.15fr) minmax(170px, .9fr) !important;
  gap: 18px !important;
  align-items: end !important;
  width: 100% !important;
}

.search-box .field {
  min-width: 0 !important;
}

.search-box .field label {
  min-height: 18px !important;
  margin-bottom: 8px !important;
  line-height: 1.2 !important;
}

.search-box .field input,
.search-box .field select,
.search-box .search-btn {
  width: 100% !important;
  height: 56px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
}

.search-box .search-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.popular-searches {
  margin-top: 18px !important;
  line-height: 1.4 !important;
}

/* Home carousel card details hidden box */
.profile-card.premium-lock-card .single-detail-hidden {
  width: 100% !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row {
  display: grid !important;
  grid-template-columns: 54px 1fr !important;
  grid-template-areas:
    "icon title"
    "icon desc" !important;
  align-items: center !important;
  column-gap: 16px !important;
  min-height: 104px !important;
  padding: 18px 20px !important;
  text-align: center !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row .info-icon {
  grid-area: icon !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  line-height: 1 !important;
  text-align: center !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row strong {
  grid-area: title !important;
  display: block !important;
  margin: 0 0 8px !important;
  text-align: center !important;
  font-size: 19px !important;
  line-height: 1.15 !important;
}

.profile-card.premium-lock-card .premium-detail-hidden-row > span:not(.info-icon) {
  grid-area: desc !important;
  display: block !important;
  max-width: 230px !important;
  margin: 0 auto !important;
  text-align: center !important;
  line-height: 1.35 !important;
}

/* Matches page details hidden box */
.bm-details-hidden {
  display: grid !important;
  grid-template-columns: 54px 1fr !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  text-align: center !important;
}

.bm-details-hidden > span {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  line-height: 1 !important;
}

.bm-details-hidden > span i {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.bm-details-hidden > div {
  min-width: 0 !important;
  text-align: center !important;
}

.bm-details-hidden small {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1100px) {
  .search-box .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .search-box {
    padding: 24px 18px !important;
  }
  .search-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .search-box .form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   SEARCH PAGE PREMIUM ALIGNMENT POLISH
   Keeps search filters, toolbar and profile cards aligned.
========================================================= */
.search-page-section {
  background: #fff;
  padding: 68px 0 90px;
}

.search-page-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  max-width: 1240px;
  margin: 0 auto;
}

.search-filter-card {
  border: 0 !important;
  border-radius: 22px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  outline: 14px solid #f4f4f5;
  top: 92px;
}

.search-filter-card h3 {
  font-size: 24px;
  line-height: 1.05;
  margin-bottom: 28px;
  color: #202124;
}

.search-filter-card .field {
  margin-bottom: 18px;
}

.search-filter-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
}

.search-filter-card select,
.search-filter-card input {
  width: 100%;
  height: 54px;
  border: 1px solid #ead6de;
  border-radius: 10px;
  background: #fffafb;
  padding: 0 16px;
  font-size: 15px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
}

.search-filter-card select:focus,
.search-filter-card input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.08);
}

.search-filter-card .filter-btn {
  height: 48px;
  border-radius: 11px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-results-area {
  min-width: 0;
  width: 100%;
}

.search-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.search-toolbar strong {
  font-size: 18px;
  line-height: 1;
  color: #111827;
  white-space: nowrap;
}

.search-keyword-wrap {
  width: 100%;
  max-width: 520px;
  justify-self: center;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #eee1e6;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.sort-wrap {
  justify-self: end;
  gap: 10px;
}

.sort-wrap label {
  color: #111827;
  font-size: 15px;
}

.search-toolbar select {
  min-width: 150px;
  height: 44px;
  border: 1px solid #eee1e6;
  border-radius: 10px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.search-profile-card {
  margin: 0;
  min-height: 232px;
  padding: 18px;
  grid-template-columns: 188px minmax(0, 1fr) 210px;
  gap: 30px;
  border: 1px solid #f0e3e8;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: visible;
}

.search-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 65px rgba(16, 24, 40, 0.10);
  border-color: rgba(233, 30, 99, 0.18);
}

.search-img-lock-wrap {
  width: 188px;
  height: 188px;
  min-height: 188px;
  flex-basis: 188px;
  border-radius: 18px;
  overflow: hidden;
  align-self: center;
}

.search-img-lock-wrap img,
.search-profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search-profile-card.locked-profile-card .search-img-lock-wrap img {
  filter: blur(5px) saturate(.86);
  transform: scale(1.04);
}

.search-profile-card .profile-lock-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0;
}

.search-profile-card .profile-lock-box {
  min-width: 138px;
  height: 46px;
  padding: 0 16px;
  gap: 8px;
  transform: none;
}

.search-profile-card .profile-lock-icon {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.search-profile-info {
  min-width: 0;
  align-self: center;
}

.search-profile-info h3 {
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 9px;
  color: #202124;
}

.search-profile-info p {
  margin: 5px 0;
  font-size: 15.5px;
  line-height: 1.35;
  color: #4b5563;
}

.search-profile-info strong {
  color: #3f3f46;
}

.search-profile-actions {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.search-profile-actions .small-action {
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-weight: 800;
}

.search-profile-actions .btn:not(.outline) {
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.18);
}

.empty-state {
  border-radius: 22px;
  background: linear-gradient(135deg, #fff5f8, #fff);
  border: 1px solid #f7dbe6;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.06);
}

@media (max-width: 1050px) {
  .search-page-layout {
    grid-template-columns: 1fr;
  }
  .search-filter-card {
    position: static;
    outline-width: 10px;
  }
  .search-toolbar {
    grid-template-columns: 1fr;
  }
  .search-keyword-wrap,
  .sort-wrap {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 780px) {
  .search-profile-card {
    grid-template-columns: 150px 1fr;
    gap: 18px;
  }
  .search-img-lock-wrap {
    width: 150px;
    height: 170px;
    min-height: 170px;
    flex-basis: 150px;
  }
  .search-profile-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .search-page-section {
    padding: 45px 0 70px;
  }
  .search-filter-card {
    padding: 22px;
    outline-width: 8px;
  }
  .search-profile-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .search-img-lock-wrap {
    width: 100%;
    height: 270px;
    min-height: 270px;
    flex-basis: auto;
  }
  .search-profile-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   MESSAGES PAGE PREMIUM POLISH
   Clean 3-column chat layout + profile panel
========================== */
.messages-section{
  background: linear-gradient(180deg,#fff 0%,#fff8fb 55%,#fff 100%);
  padding: 50px 0 80px;
}
.messages-shell{
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: 320px minmax(480px,1fr) 300px;
  min-height: 680px;
  max-height: calc(100vh - 190px);
  border-radius: 30px;
  border: 1px solid #f6c7d8;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(233,30,99,.10), 0 6px 20px rgba(17,24,39,.06);
}
.convos-panel{
  padding: 24px 20px;
  background: linear-gradient(180deg,#fff 0%,#fff8fb 100%);
  border-right: 1px solid #f6c7d8;
}
.chat-panel{
  background: #fffafb;
  min-height: 0;
}
.chat-preview-panel{
  padding: 22px;
  background: linear-gradient(180deg,#fff 0%,#fff6fa 100%);
  border-left: 1px solid #f6c7d8;
}
.messages-panel-head h2{font-size:28px;letter-spacing:-.02em;}
.messages-panel-head span{
  width:36px;height:36px;min-width:36px;
  box-shadow:0 8px 18px rgba(233,30,99,.22);
}
.chat-search-wrap{
  height:54px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(17,24,39,.04);
}
.conversation-list{max-height: calc(100vh - 340px);padding-right:4px;}
.modern-convo{
  border:1px solid transparent;
  background:#fff;
  box-shadow:0 8px 22px rgba(17,24,39,.04);
  margin-bottom:2px;
}
.modern-convo:hover,.modern-convo.active{
  border-color:#ffc1d6;
  background:#fff2f7;
  transform: translateY(-1px);
  box-shadow:0 10px 24px rgba(233,30,99,.10), inset 4px 0 0 var(--primary);
}
.modern-convo .avatar,.chat-person img{
  border:3px solid #fff;
  box-shadow:0 8px 18px rgba(17,24,39,.12);
}
.message-unread-pill{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-width:20px;height:20px;margin-left:6px;padding:0 6px;
  border-radius:999px;background:var(--primary);color:#fff;font-size:11px;
}
.chat-topbar{
  min-height:82px;
  padding:18px 24px;
  background:#fff;
}
.chat-person h2{font-size:24px;letter-spacing:-.02em;}
#chatMeta::before{content:"●";color:#21a67a;margin-right:7px;font-size:10px;vertical-align:1px;}
.safe-note{
  margin:16px 24px 0;
  padding:10px 14px;
  border-radius:14px;
  font-size:14px;
  background:#fff8e8;
}
.chat-body{
  min-height:0;
  flex:1;
  padding:22px 24px;
  background:
    radial-gradient(circle at 20% 15%,rgba(233,30,99,.045),transparent 25%),
    radial-gradient(circle at 80% 85%,rgba(233,30,99,.04),transparent 28%),
    #fffafb;
}
.empty-chat-state.large{
  margin:80px auto;
  padding:30px;
  border-radius:24px;
  background:#fff;
  border:1px solid #f8d4e1;
  box-shadow:0 14px 34px rgba(233,30,99,.08);
}
.empty-chat-state.large i{font-size:42px;}
.modern-bubble{
  box-shadow:0 10px 26px rgba(17,24,39,.07);
  font-size:15px;
}
.modern-bubble.me{background:linear-gradient(135deg,#ff3366 0%,#db0b66 100%);}
.modern-send-row{
  padding:16px 22px;
  background:#fff;
}
.modern-send-row input{
  height:56px;
  border-radius:18px;
  background:#fff;
  box-shadow: inset 0 0 0 1px #f3d2dd;
}
.send-btn{
  border-radius:18px!important;
  background:linear-gradient(135deg,#ff4f89 0%,#e91e63 100%)!important;
  box-shadow:0 12px 26px rgba(233,30,99,.22);
}
.chat-preview-empty,.chat-profile-panel-card{
  border:1px solid #f5cbd9;
  background:#fff;
  border-radius:24px;
  padding:22px;
  box-shadow:0 14px 32px rgba(233,30,99,.08);
}
.chat-preview-empty{text-align:center;color:#667085;}
.chat-preview-empty .preview-icon{
  width:76px;height:76px;border-radius:50%;margin:0 auto 16px;
  display:flex;align-items:center;justify-content:center;
  background:#fff0f6;color:var(--primary);font-size:30px;
}
.chat-profile-head{text-align:center;margin-bottom:18px;}
.chat-profile-head img{
  width:96px;height:96px;border-radius:50%;object-fit:cover;border:4px solid #fff;
  box-shadow:0 12px 26px rgba(17,24,39,.14);
}
.chat-profile-head h3{margin:12px 0 4px;font-size:22px;}
.chat-match-pill{
  display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;
  background:#fff0f6;color:var(--primary);font-weight:900;font-size:13px;
}
.chat-profile-detail-list{display:grid;gap:10px;margin:16px 0;}
.chat-profile-detail-list div{
  display:flex;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:14px;background:#fff8fb;
  color:#667085;font-size:14px;
}
.chat-profile-detail-list b{color:#111827;}
.chat-profile-actions{display:grid;gap:10px;margin-top:16px;}
.chat-profile-actions .btn{width:100%;justify-content:center;}
@media (max-width:1180px){
  .messages-shell{grid-template-columns:300px 1fr;max-height:none;}
  .chat-preview-panel{display:none;}
}
@media (max-width:820px){
  .messages-shell{grid-template-columns:1fr;border-radius:24px;max-height:none;}
  .conversation-list{max-height:300px;}
}

/* Membership package list update */
.membership-plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.membership-plan-card {
  padding: 30px 22px 24px;
  display: flex;
  flex-direction: column;
}
.membership-plan-card h3 {
  font-size: 24px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-duration-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff0f6;
  color: var(--primary);
  border: 1px solid #ffd1df;
  font-weight: 900;
  font-size: 13px;
}
.plan-overseas {
  margin: -8px 0 18px;
  color: #4b5563;
  font-weight: 700;
}
.membership-plan-card .btn {
  margin-top: auto;
}
.package-table td,
.package-table th {
  white-space: nowrap;
}
@media (max-width: 1180px) {
  .membership-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .membership-plans { grid-template-columns: 1fr; }
  .membership-plan-card h3 { min-height: auto; }
}

/* Clear QR preview popup */
.upi-qr-preview-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  display: inline-flex;
  border-radius: 18px;
}
.upi-qr-preview-btn:focus-visible {
  outline: 3px solid rgba(236, 41, 107, .35);
  outline-offset: 4px;
}
.upi-qr-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 15, .72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10050;
}
.upi-qr-preview-modal.show { display: flex; }
.upi-qr-preview-card {
  width: min(560px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.upi-qr-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff2f7;
  color: var(--primary);
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}
.upi-qr-preview-card h3 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
}
.upi-qr-preview-card img {
  width: min(430px, 82vw);
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
}
.upi-qr-preview-card p {
  margin: 14px 0 0;
  font-size: 16px;
  color: #334155;
}
@media (max-width: 520px) {
  .upi-qr-preview-card { padding: 18px; border-radius: 22px; }
  .upi-qr-preview-card h3 { font-size: 22px; padding-right: 36px; }
}

/* 41-question registration form refinements */
.radio-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(233, 30, 99, 0.22);
  border-radius: 999px;
  background: #fff7fa;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  transition: 0.2s ease;
}
.radio-pill input {
  accent-color: #e91e63;
}
.radio-pill:has(input:checked) {
  background: linear-gradient(135deg, #ff2f68, #d80b72);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 25px rgba(233, 30, 99, 0.22);
}
.radio-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(233, 30, 99, 0.45);
}
.multi-profile-form[data-registration-version="41"] .form-step .step-eyebrow::after {
  content: " of 10";
}
.multi-profile-form[data-registration-version="41"] .form-grid.two {
  align-items: start;
}
.multi-profile-form[data-registration-version="41"] textarea {
  resize: vertical;
}

/* Signup 41-question polish: gender cards, DOB dropdowns, phone country code, partner-preference alignment */
.registration-modal-page .radio-pill-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
.registration-modal-page .radio-pill {
  min-width: 92px !important;
  min-height: 86px !important;
  border: 1px solid #f4b7cd !important;
  background: #fff7fb !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  cursor: pointer !important;
  color: #111827 !important;
  font-weight: 900 !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease !important;
}
.registration-modal-page .radio-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(233,30,99,.12) !important;
}
.registration-modal-page .radio-pill input[type="radio"] {
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: #e91e63 !important;
}
.registration-modal-page .radio-pill:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, #ff2f73, #d70b63) !important;
  border-color: #e91e63 !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(233,30,99,.24) !important;
}
.registration-modal-page .radio-pill span { line-height: 1 !important; }
.registration-modal-page .mini-grid.two,
.registration-modal-page .dob-select-grid,
.registration-modal-page .phone-field-grid {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
}
.registration-modal-page .mini-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.registration-modal-page .dob-select-grid { grid-template-columns: 1fr 1.25fr 1.1fr !important; }
.registration-modal-page .phone-field-grid { grid-template-columns: minmax(185px, .85fr) minmax(0, 1.35fr) !important; align-items: start !important; }
.registration-modal-page .field-help {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}
.registration-modal-page .form-step[data-title="Partner Preferences"] .form-grid.two {
  align-items: start !important;
  gap: 24px 30px !important;
}
.registration-modal-page .form-step[data-title="Partner Preferences"] .field label {
  min-height: 20px !important;
  margin-bottom: 10px !important;
}
.registration-modal-page .form-step[data-title="Partner Preferences"] .field.full {
  grid-column: 1 / -1 !important;
}
.registration-modal-page .form-step[data-title="Partner Preferences"] textarea {
  min-height: 138px !important;
}
.registration-modal-page .search-select-panel {
  z-index: 500 !important;
}
.registration-modal-page .search-select-option {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
}
@media (max-width: 760px) {
  .registration-modal-page .mini-grid.two,
  .registration-modal-page .dob-select-grid,
  .registration-modal-page .phone-field-grid {
    grid-template-columns: 1fr !important;
  }
  .registration-modal-page .radio-pill {
    flex: 1 1 130px !important;
    min-height: 76px !important;
  }
}

/* Signup form validation + searchable dropdown polish */
.registration-modal-page .field-invalid > label,
.registration-modal-page .field.field-invalid label {
  color: #ef233c !important;
}
.registration-modal-page input.invalid-field,
.registration-modal-page textarea.invalid-field,
.registration-modal-page select.invalid-field,
.registration-modal-page .search-select-wrap.invalid-field .search-select-display,
.registration-modal-page .field-invalid > input,
.registration-modal-page .field-invalid > textarea,
.registration-modal-page .field-invalid > .phone-field-grid input {
  border-color: #ef233c !important;
  background: #fff5f6 !important;
  box-shadow: 0 0 0 4px rgba(239, 35, 60, .08) !important;
}
.registration-modal-page .field-invalid .radio-pill {
  border-color: #ef233c !important;
  background: #fff5f6 !important;
}
.registration-modal-page .field-invalid .radio-pill input:checked + span,
.registration-modal-page .radio-pill:has(input:checked) {
  border-color: #e91e63 !important;
}
.registration-modal-page .auth-message.error,
.registration-modal-page #registerMessage.error {
  color: #e00000 !important;
  font-weight: 800 !important;
  text-align: center;
}
.registration-modal-page .search-select-panel {
  z-index: 9999 !important;
}
.registration-modal-page .search-select-option {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.registration-modal-page .phone-field-grid {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.registration-modal-page .phone-field-grid .search-select-display,
.registration-modal-page .phone-field-grid input {
  height: 58px !important;
  min-height: 58px !important;
}
.registration-modal-page .mini-grid.two,
.registration-modal-page .dob-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  overflow: visible;
}
.registration-modal-page .dob-select-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.registration-modal-page .form-grid,
.registration-modal-page .field,
.registration-modal-page .form-step {
  overflow: visible !important;
}
.registration-modal-page .radio-pill-row {
  align-items: center;
  gap: 14px;
}
.registration-modal-page .radio-pill {
  min-height: 70px;
  min-width: 94px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 720px) {
  .registration-modal-page .phone-field-grid,
  .registration-modal-page .mini-grid.two,
  .registration-modal-page .dob-select-grid {
    grid-template-columns: 1fr;
  }
}

/* Final signup Step 1 fixes: clean DOB/time inputs and centered gender radios */
.registration-modal-page input.clean-date-input,
.registration-modal-page input.clean-time-input {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  border: 1px solid #ead6de !important;
  border-radius: 12px !important;
  background: #fffafb !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
}
.registration-modal-page input.clean-date-input:focus,
.registration-modal-page input.clean-time-input:focus {
  border-color: #e91e63 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(233,30,99,.08) !important;
}
.registration-modal-page input.clean-date-input::-webkit-calendar-picker-indicator,
.registration-modal-page input.clean-time-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  width: 20px;
  height: 20px;
  opacity: .75;
}
.registration-modal-page .radio-pill-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}
.registration-modal-page .radio-pill {
  position: relative !important;
  width: 92px !important;
  height: 92px !important;
  min-width: 92px !important;
  min-height: 92px !important;
  max-width: 92px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-align: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.registration-modal-page .radio-pill input[type="radio"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border: 1.8px solid #9ca3af !important;
  border-radius: 50% !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  position: static !important;
  flex: 0 0 auto !important;
}
.registration-modal-page .radio-pill input[type="radio"]:checked {
  border: 8px solid #fff !important;
  background: #e91e63 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.95), 0 0 0 4px rgba(233,30,99,.18) !important;
}
.registration-modal-page .radio-pill span {
  display: block !important;
  width: 100% !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
.registration-modal-page .radio-pill:has(input[type="radio"]:checked) input[type="radio"] {
  border-color: #fff !important;
}
.registration-modal-page .field-invalid .radio-pill input[type="radio"] {
  border-color: #ef233c !important;
}

/* Contact details mobile number polish */
.registration-modal-page .contact-mobile-field {
  grid-column: 1 / -1 !important;
}
.registration-modal-page .contact-mobile-field > label {
  margin-bottom: 12px !important;
}
.registration-modal-page .contact-mobile-field .phone-field-grid {
  display: grid !important;
  grid-template-columns: minmax(230px, 300px) minmax(260px, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}
.registration-modal-page .phone-code-block,
.registration-modal-page .phone-number-block {
  min-width: 0 !important;
  width: 100% !important;
}
.registration-modal-page .phone-sub-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #344054 !important;
  line-height: 1.25 !important;
}
.registration-modal-page .phone-number-block input[name="mobileNumber"] {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  border: 1px solid #ead6de !important;
  border-radius: 14px !important;
  background: #fffafb !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  color: #111827 !important;
  outline: none !important;
  box-shadow: none !important;
}
.registration-modal-page .phone-number-block input[name="mobileNumber"]:focus {
  border-color: #e91e63 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, .08) !important;
}
.registration-modal-page .field-error,
.registration-modal-page .mobile-number-error {
  display: none;
  margin-top: 7px;
  color: #e00000;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.registration-modal-page .phone-number-block.mobile-invalid .mobile-number-error,
.registration-modal-page .contact-mobile-field.field-invalid .mobile-number-error {
  display: block !important;
}
.registration-modal-page .phone-number-block.mobile-invalid input[name="mobileNumber"],
.registration-modal-page .contact-mobile-field.field-invalid .phone-number-block input[name="mobileNumber"] {
  border-color: #ef233c !important;
  background: #fff5f6 !important;
  box-shadow: 0 0 0 4px rgba(239, 35, 60, .08) !important;
}
.registration-modal-page .phone-code-block .search-select-wrap .search-select-display {
  width: 100% !important;
}
.registration-modal-page .phone-code-block .search-select-filter {
  font-size: 14px !important;
}
@media (max-width: 760px) {
  .registration-modal-page .contact-mobile-field .phone-field-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* Home page: keep Premium Members and Matches For You in one horizontal scroll row */
#premiumMembers.profile-scroll,
#forYouMembers.profile-scroll {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 24px 6px 36px !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-left: 6px !important;
  -webkit-overflow-scrolling: touch !important;
}

#premiumMembers.profile-scroll::-webkit-scrollbar,
#forYouMembers.profile-scroll::-webkit-scrollbar {
  height: 8px;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-track,
#forYouMembers.profile-scroll::-webkit-scrollbar-track {
  background: #ffe7f0;
  border-radius: 999px;
}

#premiumMembers.profile-scroll::-webkit-scrollbar-thumb,
#forYouMembers.profile-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff2f6d, #df005e);
  border-radius: 999px;
}

#premiumMembers.profile-scroll .profile-card.premium-lock-card,
#forYouMembers.profile-scroll .profile-card.premium-lock-card {
  flex: 0 0 315px !important;
  width: 315px !important;
  min-width: 315px !important;
  max-width: 315px !important;
  scroll-snap-align: start !important;
}

@media (max-width: 480px) {
  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll {
    gap: 18px !important;
    padding: 18px 4px 30px !important;
  }

  #premiumMembers.profile-scroll .profile-card.premium-lock-card,
  #forYouMembers.profile-scroll .profile-card.premium-lock-card {
    flex-basis: min(315px, 86vw) !important;
    width: min(315px, 86vw) !important;
    min-width: min(315px, 86vw) !important;
  }
}

.admin-review-note{color:#e91e63;font-weight:700;}

/* Completed payment approval flow */
#membershipStatusCard {
  margin-bottom: 20px;
}
.membership-status-card{margin:28px 0;display:grid;gap:18px}
.membership-current-card,.payment-history-card{background:#fff;border:1px solid #f7c4d7;border-radius:22px;box-shadow:0 14px 35px rgba(233,30,99,.08);padding:22px}
.membership-current-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fff,#fff5f9)}
.membership-current-card span{color:#e91e63;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.membership-current-card h3{font-size:28px;margin:7px 0 4px;color:#111827}
.membership-current-card p{margin:0;color:#566174}
.membership-active-pill,.membership-free-pill,.payment-status-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:9px 14px;font-weight:900;font-size:13px;white-space:nowrap}
.membership-active-pill,.payment-status-badge.approved{background:#e9fbf0;color:#10843d;border:1px solid #97e4b2}
.membership-free-pill,.payment-status-badge.pending{background:#fff7e6;color:#985b00;border:1px solid #ffd991}
.payment-status-badge.rejected{background:#fff0f0;color:#c52525;border:1px solid #ffc2c2}
.payment-history-card h3{margin:0 0 14px;color:#111827}
.payment-history-row{display:grid;grid-template-columns:1.5fr .7fr .9fr;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #f4dce5}
.payment-history-row:first-of-type{border-top:0}
.payment-history-row b{display:block;color:#111827}.payment-history-row small{display:block;color:#6b7280;margin-top:3px}.payment-reject-text{color:#c52525!important}.empty-small{color:#6b7280;margin:0}
.payment-proof-btn{background:none;border:0;cursor:pointer;text-align:left;font:inherit;color:inherit}.payment-proof-btn img{display:block;width:72px;height:54px;object-fit:cover;border-radius:10px;border:1px solid #ffd1df;margin-bottom:5px}.payment-proof-btn span{color:#e91e63;font-weight:800;font-size:12px}.text-danger{color:#c52525!important}
.admin-actions button:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.2)}
@media(max-width:760px){.membership-current-card{align-items:flex-start;flex-direction:column}.payment-history-row{grid-template-columns:1fr;gap:8px}}

/* Interest center inside Notifications */
.interest-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.interest-section-card {
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.14);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
}
.interest-section-card.full { grid-column: 1 / -1; }
.interest-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.interest-section-head > span {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff0f6;
  color: var(--primary, #e91e63);
  font-size: 20px;
}
.interest-section-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.interest-section-head p {
  margin: 0;
  color: #667085;
  font-weight: 600;
  line-height: 1.4;
}
.interest-section-list {
  display: grid;
  gap: 12px;
}
.interest-mini-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  background: #fff;
}
.interest-mini-card.accepted { border-color: rgba(18, 183, 106, 0.24); background: #f6fef9; }
.interest-mini-card.rejected { border-color: rgba(240, 68, 56, 0.2); background: #fffafa; }
.interest-mini-card img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}
.interest-mini-body h4 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 16px;
}
.interest-mini-body p,
.interest-mini-body small {
  display: block;
  margin: 0;
  color: #667085;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
}
.interest-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.interest-accept,
.interest-reject,
.interest-chat {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.interest-accept,
.interest-chat {
  background: linear-gradient(135deg, var(--primary, #e91e63), #ff6b9d);
  color: #fff;
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.2);
}
.interest-reject {
  background: #fff1f3;
  color: #d92d20;
}
.interest-status-badge {
  border-radius: 999px;
  padding: 9px 13px;
  background: #fff7ed;
  color: #f97316;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.interest-status-badge.accepted { background: #ecfdf3; color: #039855; }
.interest-status-badge.rejected { background: #fff1f3; color: #d92d20; }
.interest-empty-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px dashed rgba(233, 30, 99, 0.22);
  border-radius: 18px;
  color: #667085;
  font-weight: 800;
  background: #fff8fb;
}
.interest-empty-mini i { color: var(--primary, #e91e63); }
@media (max-width: 900px) {
  .interest-center-grid { grid-template-columns: 1fr; }
  .interest-section-card.full { grid-column: auto; }
}
@media (max-width: 560px) {
  .interest-mini-card { grid-template-columns: 48px 1fr; align-items: flex-start; }
  .interest-mini-card img { width: 48px; height: 48px; }
  .interest-actions,
  .interest-status-badge,
  .interest-chat { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .interest-actions > button { flex: 1; justify-content: center; }
}

/* Basic Premium Users admin page polish */
.premium-basic-toolbar{justify-content:flex-end;gap:12px}
.admin-premium-filters{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.admin-premium-filters button{border:1px solid #f7bad0;background:#fff;color:#e91e63;border-radius:999px;padding:9px 14px;font-weight:800;cursor:pointer;transition:.2s ease}
.admin-premium-filters button:hover,.admin-premium-filters button.active{background:#e91e63;color:#fff;box-shadow:0 10px 22px rgba(233,30,99,.18)}
#premiumUsersPanel .admin-table{min-width:980px}
#premiumUsersPanel .admin-actions{min-width:130px}
#premiumUsersPanel .admin-actions a{text-decoration:none}
#premiumUsersPanel .admin-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:900px){.premium-basic-toolbar{align-items:stretch}.admin-premium-filters{width:100%}.admin-premium-filters button{flex:1}.premium-basic-toolbar input{width:100%;min-width:0!important}}

/* Profile visibility gate */
.profile-gate-card{
  width:min(720px, 100%);
  margin:28px auto;
  padding:36px 28px;
  text-align:center;
  background:#fff;
  border:1px solid #ffd1df;
  border-radius:24px;
  box-shadow:0 16px 45px rgba(233,30,99,.10);
}
.profile-gate-icon{width:72px;height:72px;border-radius:50%;margin:0 auto 16px;background:#fff0f6;color:#e91e63;display:flex;align-items:center;justify-content:center;font-size:28px}.profile-gate-card h3{font-size:28px;margin:0 0 10px}.profile-gate-card p{max-width:560px;margin:0 auto 18px;color:#5b6475;line-height:1.6}.profile-gate-progress{height:10px;border-radius:999px;background:#ffe4ee;overflow:hidden;margin:18px auto 10px;max-width:430px}.profile-gate-progress span{display:block;height:100%;background:linear-gradient(90deg,#ff2d66,#d9006c);border-radius:999px}.profile-gate-card strong{display:block;margin-bottom:20px;color:#101828}

/* Admin mobile drawer fix - prevents sidebar overlapping content */
.admin-mobile-toggle,
.admin-sidebar-close,
.admin-sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  .admin-body {
    overflow-x: hidden !important;
    background: #fff !important;
  }

  .admin-body .admin-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
    min-height: 66px !important;
    padding: 10px 14px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }

  .admin-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #e91e63 !important;
    color: #fff !important;
    font-size: 18px !important;
    flex: 0 0 auto !important;
    box-shadow: 0 10px 26px rgba(233, 30, 99, .24) !important;
  }

  .admin-header-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 10px !important;
  }

  .admin-header-left img {
    width: 56px !important;
    height: 42px !important;
    padding: 3px !important;
    border-radius: 9px !important;
    flex: 0 0 auto !important;
  }

  .admin-header-left h2 {
    font-size: 15px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-header-left span {
    font-size: 11px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-header-right {
    display: none !important;
  }

  .admin-body .admin-section {
    min-height: auto !important;
    padding: 14px 0 26px !important;
  }

  .admin-body .admin-section .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-body .admin-layout {
    display: block !important;
    width: 100% !important;
  }

  .admin-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .58) !important;
    z-index: 1290 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .22s ease !important;
  }

  .admin-body.admin-menu-open .admin-sidebar-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .admin-body .admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: min(84vw, 310px) !important;
    max-width: 310px !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: none !important;
    z-index: 1300 !important;
    border-radius: 0 24px 24px 0 !important;
    padding: 20px 16px !important;
    transform: translateX(-105%) !important;
    transition: transform .24s ease !important;
    overflow-y: auto !important;
    display: block !important;
    box-shadow: 22px 0 60px rgba(0,0,0,.28) !important;
  }

  .admin-body.admin-menu-open .admin-sidebar {
    transform: translateX(0) !important;
  }

  .admin-body .admin-sidebar h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 0 18px !important;
    font-size: 18px !important;
  }

  .admin-sidebar-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    font-size: 18px !important;
  }

  .admin-body .admin-side-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 13px 14px !important;
    text-align: left !important;
    white-space: normal !important;
    font-size: 14px !important;
    border-radius: 14px !important;
  }

  .admin-body .admin-side-link i {
    width: 20px !important;
    text-align: center !important;
    flex: 0 0 20px !important;
  }

  .admin-body .admin-main {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .admin-body .admin-overview-block,
  .admin-body .admin-topbar,
  .admin-body .admin-panel {
    width: 100% !important;
  }

  .admin-body .admin-topbar {
    margin-bottom: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .admin-body .admin-topbar h2 {
    font-size: 22px !important;
  }

  .admin-body .admin-topbar p {
    font-size: 13px !important;
  }

  .admin-body .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .admin-body .admin-stat-card {
    min-height: auto !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .admin-body .admin-panel {
    padding: 14px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  .admin-body .admin-panel-head {
    min-height: 0 !important;
    display: block !important;
    margin-bottom: 14px !important;
  }

  .admin-body .admin-panel-head h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .admin-body .admin-profile-toolbar,
  .admin-body .admin-inline-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-left: 0 !important;
  }

  .admin-body .admin-toolbar-left,
  .admin-body .admin-inline-actions > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .admin-body .admin-inline-actions input,
  .admin-body .admin-profile-toolbar input,
  .admin-body .admin-inline-actions .btn,
  .admin-body .admin-toolbar-left .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body .admin-table-wrap {
    width: 100% !important;
    max-height: 65vh !important;
    min-height: 220px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 14px !important;
  }

  .admin-body .admin-table {
    min-width: 760px !important;
    font-size: 13px !important;
  }

  .admin-body .admin-table th,
  .admin-body .admin-table td {
    padding: 12px !important;
  }

  .admin-body .admin-review-grid,
  .admin-body .admin-form {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .admin-body .admin-header-left h2 { max-width: 170px !important; }
  .admin-body .admin-table { min-width: 700px !important; }
}

/* Admin dashboard polish - clean cards, quick actions and mobile friendly overview */
.admin-body .admin-dashboard-panel.active {
  display: block !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.admin-body .admin-overview-block {
  display: block;
}
.admin-body .admin-dashboard-stats {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.admin-body .dashboard-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border: 1px solid #f5d9e4;
  background: linear-gradient(135deg, #fff 0%, #fff7fb 100%);
}
.admin-body .dashboard-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: rgba(233, 30, 99, .08);
}
.admin-body .dashboard-stat-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}
.admin-body .dashboard-stat-card strong {
  font-size: 36px;
  line-height: 1;
}
.admin-body .dashboard-stat-card small {
  display: block;
  margin-top: 9px;
  color: #667085;
  font-weight: 700;
}
.admin-body .dashboard-stat-card.accent-green strong { color: #0f9f5b; }
.admin-body .dashboard-stat-card.accent-orange strong { color: #d97706; }
.admin-body .dashboard-stat-card.accent-purple strong { color: #7c3aed; }
.admin-body .dashboard-stat-card.accent-red strong { color: #dc2626; }
.admin-body .dashboard-stat-card.accent-blue strong { color: #2563eb; }
.admin-body .dashboard-stat-card.accent-pink strong { color: var(--primary); }
.admin-body .admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(320px, 1.15fr);
  gap: 20px;
}
.admin-body .admin-dashboard-card {
  background: #fff;
  border: 1px solid #f5d9e4;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .06);
}
.admin-body .dashboard-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-body .dashboard-card-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.admin-body .dashboard-card-head p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}
.admin-body .admin-quick-actions {
  display: grid;
  gap: 12px;
}
.admin-body .admin-quick-actions button,
.admin-body .admin-recent-item {
  width: 100%;
  border: 1px solid #f4d4df;
  background: #fff8fb;
  border-radius: 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: .18s ease;
}
.admin-body .admin-quick-actions button:hover,
.admin-body .admin-recent-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 25px rgba(233, 30, 99, .10);
}
.admin-body .admin-quick-actions i,
.admin-body .admin-recent-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffe8f0;
  color: var(--primary);
}
.admin-body .admin-quick-actions span,
.admin-body .admin-recent-item b {
  font-weight: 900;
}
.admin-body .admin-quick-actions b {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
}
.admin-body .admin-recent-list {
  display: grid;
  gap: 10px;
}
.admin-body .admin-recent-item {
  background: #fff;
  grid-template-columns: 42px 1fr auto;
}
.admin-body .admin-recent-item small {
  display: block;
  margin-top: 4px;
  color: #667085;
  line-height: 1.35;
}
.admin-body .admin-recent-item em {
  color: #94a3b8;
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}
.admin-body .admin-topbar {
  background: linear-gradient(135deg, #0f172a 0%, #20263a 100%);
  color: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}
.admin-body .admin-topbar p { color: rgba(255,255,255,.78); }

@media (max-width: 980px) {
  .admin-body .admin-dashboard-stats,
  .admin-body .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-body .admin-dashboard-card,
  .admin-body .dashboard-stat-card,
  .admin-body .admin-topbar {
    border-radius: 18px;
  }
}
@media (max-width: 560px) {
  .admin-body .admin-dashboard-panel.active {
    padding: 0 !important;
  }
  .admin-body .admin-topbar {
    padding: 18px;
  }
  .admin-body .dashboard-stat-card {
    min-height: 112px;
    padding: 18px;
  }
  .admin-body .dashboard-stat-card strong {
    font-size: 30px;
  }
  .admin-body .admin-dashboard-card {
    padding: 16px;
  }
  .admin-body .admin-quick-actions button,
  .admin-body .admin-recent-item {
    grid-template-columns: 36px 1fr auto;
    padding: 12px;
  }
  .admin-body .admin-quick-actions i,
  .admin-body .admin-recent-icon {
    width: 36px;
    height: 36px;
  }
  .admin-body .admin-recent-item em {
    display: none;
  }
}

/* === Admin full UI polish pass: consistent dashboard quality across sections === */
.admin-body .admin-polished-panel {
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  border: 1px solid #f6cbd9 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07) !important;
  padding: 22px !important;
}

.admin-body .admin-page-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  color: #fff;
  border-radius: 22px;
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(16, 24, 39, .16);
  position: relative;
  overflow: hidden;
}

.admin-body .admin-page-banner::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(233, 30, 99, .24);
}

.admin-body .admin-page-banner h3 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2vw, 30px);
  color: #fff;
}

.admin-body .admin-page-banner p {
  margin: 0;
  color: #fff;
  max-width: 760px;
}

.admin-body .admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e91e63;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.admin-body .admin-page-badge {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--primary);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.admin-body .admin-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-body .admin-mini-metrics.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-body .admin-mini-metrics > div {
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
  position: relative;
  overflow: hidden;
}

.admin-body .admin-mini-metrics > div::after {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  right: -20px;
  bottom: -24px;
  border-radius: 50%;
  background: rgba(233, 30, 99, .11);
}

.admin-body .admin-mini-metrics span {
  display: block;
  color: #657186;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-body .admin-mini-metrics strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.admin-body .polished-head {
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
}

.admin-body .polished-head h3 {
  margin: 0 0 4px;
}

.admin-body .polished-head p {
  margin: 0;
  color: #64748b;
}

.admin-body .admin-table-wrap {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #f5d4df;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
  overflow: auto;
}

.admin-body .admin-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
}

.admin-body .admin-table thead th,
.admin-body .admin-table th {
  background: #101827 !important;
  color: #fff !important;
  padding: 16px 18px !important;
  font-weight: 900;
  border: 0 !important;
}

.admin-body .admin-table tbody tr,
.admin-body .admin-table tr {
  transition: background .2s ease, transform .2s ease;
}

.admin-body .admin-table tbody tr:hover {
  background: #fff5f9;
}

.admin-body .admin-table td {
  padding: 16px 18px !important;
  border-bottom: 1px solid #f6e5eb !important;
}

.admin-body .admin-list-panel {
  display: grid;
  gap: 14px;
}

.admin-body .admin-list-panel > * {
  border-radius: 18px !important;
  border: 1px solid #f5d4df !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045) !important;
}

.admin-body .admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-body .analytics-card,
.admin-body .analytics-chart-card {
  background: #fff !important;
  border: 1px solid #f5d4df !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045) !important;
}

.admin-body .analytics-card {
  padding: 20px !important;
}

.admin-body .analytics-card span {
  display: block;
  color: #334155;
  font-weight: 900;
  margin-bottom: 10px;
}

.admin-body .analytics-card strong {
  color: var(--primary);
  font-size: 30px;
}

.admin-body .analytics-chart-card {
  margin-top: 18px;
  padding: 22px !important;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-settings-card {
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .045);
  min-height: 190px;
}

.admin-settings-card i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff0f6;
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 18px;
}

.admin-settings-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #101827;
}

.admin-settings-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.55;
}

.admin-settings-card span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
  font-size: 12px;
}

.admin-body .btn,
.admin-body .admin-table button,
.admin-body .admin-premium-filters button {
  border-radius: 12px !important;
  font-weight: 900 !important;
}

@media (max-width: 1100px) {
  .admin-body .admin-analytics-grid,
  .admin-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-body .admin-polished-panel {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .admin-body .admin-page-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 18px;
  }

  .admin-body .admin-page-badge {
    padding: 10px 14px;
  }

  .admin-body .admin-mini-metrics,
  .admin-body .admin-mini-metrics.two-col,
  .admin-body .admin-analytics-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .polished-head,
  .admin-body .admin-panel-head {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-body .admin-profile-toolbar,
  .admin-body .admin-inline-actions {
    width: 100%;
  }

  .admin-body .admin-profile-toolbar input,
  .admin-body .admin-panel-head input {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ==========================
   LEGAL PAGES
========================== */
.legal-page {
  background: linear-gradient(180deg, #fff5f8 0%, #ffffff 38%, #fff 100%);
  min-height: 100vh;
}

.legal-hero {
  padding: 70px 0 34px;
}

.legal-hero-inner {
  background: linear-gradient(135deg, #fff 0%, #fff4f8 100%);
  border: 1px solid rgba(216, 27, 96, 0.12);
  border-radius: 28px;
  padding: 46px;
  box-shadow: 0 18px 50px rgba(126, 37, 83, 0.08);
  text-align: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(216, 27, 96, 0.1);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--dark);
}

.legal-hero p {
  margin: 14px auto 10px;
  max-width: 780px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-hero strong {
  color: var(--primary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}

.legal-toc {
  position: sticky;
  top: 95px;
  background: #ffffff;
  border: 1px solid rgba(216, 27, 96, 0.1);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 42px rgba(126, 37, 83, 0.08);
}

.legal-toc h3 {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 18px;
}

.legal-toc a {
  display: block;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 650;
  transition: 0.2s ease;
}

.legal-toc a:hover {
  color: var(--primary);
  background: #fff4f8;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(216, 27, 96, 0.1);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(126, 37, 83, 0.08);
}

.legal-section {
  padding: 0 0 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid #f0e3e8;
}

.legal-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 23px;
}

.legal-section p,
.legal-section li {
  color: #4b5563;
  line-height: 1.75;
  font-size: 15.5px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-section a {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 900px) {
  .legal-hero {
    padding: 40px 0 22px;
  }

  .legal-hero-inner {
    padding: 30px 20px;
    border-radius: 22px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 40px;
  }

  .legal-toc {
    position: relative;
    top: auto;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: 22px;
  }
}

/* Terms & Conditions accordion polish */
.legal-accordion-card {
  padding: 22px;
}

.legal-accordion-item {
  border: 1px solid rgba(233, 30, 99, 0.18);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.035);
  scroll-margin-top: 90px;
}

.legal-accordion-item.active {
  border-color: rgba(233, 30, 99, 0.38);
  background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.legal-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 20px;
  font-weight: 800;
  text-align: left;
  color: #101828;
}

.legal-accordion-item.active .legal-accordion-trigger {
  color: #e91e63;
}

.legal-accordion-trigger i {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff0f6;
  color: #e91e63;
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.legal-accordion-item.active .legal-accordion-trigger i {
  transform: rotate(180deg);
}

.legal-accordion-panel {
  padding: 0 22px 22px;
  color: #344054;
  line-height: 1.75;
  animation: legalPanelFade 0.24s ease;
}

.legal-accordion-panel p,
.legal-accordion-panel ul {
  margin: 0 0 14px;
}

.legal-accordion-panel ul {
  padding-left: 20px;
}

.legal-accordion-panel li {
  margin-bottom: 8px;
}

.legal-toc .legal-toc-link.active {
  background: #fff0f6;
  color: #e91e63;
  border-radius: 14px;
  font-weight: 800;
}

@keyframes legalPanelFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .legal-accordion-card {
    padding: 14px;
  }

  .legal-accordion-trigger {
    padding: 18px;
    font-size: 18px;
  }

  .legal-accordion-panel {
    padding: 0 18px 18px;
  }
}

/* Legal/support pages: clean full-width accordion layout (no side table of contents) */
.legal-layout {
  display: block;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 70px;
}

.legal-layout .legal-card,
.legal-layout .legal-accordion-card {
  width: 100%;
}

.legal-toc {
  display: none !important;
}

.legal-accordion-card {
  padding: 24px;
}

@media (max-width: 900px) {
  .legal-layout {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 42px;
  }
}

/* Profile photo overlay cleanup: remove the large white Main Photo pill and keep images clean */
.profile-overview-card {
  overflow: hidden;
}
.profile-overview-card > img,
.profile-overview-photo-clean,
.profile-view-photo.clean-profile-photo {
  width: 160px;
  height: 200px;
  border-radius: 22px;
  overflow: hidden;
  background: #fff0f6;
  border: 1px solid rgba(233, 30, 99, .18);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
  position: relative;
}
.profile-overview-card > img,
.profile-overview-photo-clean img,
.profile-view-photo.clean-profile-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 22px !important;
  display: block !important;
  margin: 0 !important;
}
.profile-overview-card .main-photo-badge,
.profile-overview-card .profile-main-badge,
.profile-overview-photo-clean .main-photo-badge,
.profile-view-photo.clean-profile-photo .main-photo-badge,
.profile-view-photo.clean-profile-photo .profile-main-badge {
  display: none !important;
}
.profile-view-photo.clean-profile-photo {
  width: 260px;
  height: 330px;
}
@media (max-width: 900px) {
  .profile-overview-photo-clean,
  .profile-overview-card > img {
    margin: 0 auto;
  }
  .profile-view-photo.clean-profile-photo {
    width: min(100%, 320px);
    height: 380px;
    margin: 0 auto;
  }
}
@media (max-width: 560px) {
  .profile-overview-photo-clean,
  .profile-overview-card > img {
    width: 140px;
    height: 180px;
  }
}

/* Profile page final polish: clean hero + five photo gallery */
.polished-profile-hero {
  grid-template-columns: 180px 1fr 170px !important;
  align-items: center !important;
  gap: 26px !important;
  padding: 26px !important;
  border: 1px solid #ffd1df !important;
  border-radius: 26px !important;
  overflow: hidden;
  position: relative;
}
.polished-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #f91f6b, #d70a7d, #8b5cf6);
}
.profile-overview-photo-clean {
  width: 180px !important;
  height: 210px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #fff4f8 !important;
  box-shadow: 0 14px 34px rgba(233, 30, 99, .12) !important;
}
.profile-overview-photo-clean img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  display: block;
}
.profile-hero-info h2 {
  margin: 8px 0 4px !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.05 !important;
}
.profile-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.profile-hero-badges .badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  background: #fff4f8;
  color: #e91e63;
  border: 1px solid #ffc1d6;
}
.profile-hero-badges .badge.success { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.profile-hero-badges .badge.warning { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.profile-completion-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  color: #e91e63;
  font-size: 13px;
}
.profile-completion-row span { color: #667085; font-weight: 600; }
.profile-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 160px;
}
.profile-hero-actions .btn { justify-content: center; }
.profile-photo-gallery-card {
  margin: 22px 0 24px !important;
  padding: 24px !important;
  border-radius: 24px !important;
  border: 1px solid #ffd1df !important;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08) !important;
  background: #fff !important;
}
.profile-photo-gallery-card .section-card-head {
  margin-bottom: 18px;
  align-items: center;
}
.profile-photo-gallery-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}
.profile-photo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.profile-photo-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-photo-slot {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid #ffd1df;
  background: #fff7fa;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  min-height: 170px;
  padding: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.profile-photo-slot.main { min-height: 390px; }
.profile-photo-slot:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(233, 30, 99, .12); }
.profile-photo-slot img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
.profile-photo-slot.empty {
  display: grid;
  place-items: center;
  color: #e91e63;
  border-style: dashed;
}
.empty-photo-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe5ef;
  font-size: 22px;
}
.profile-photo-label {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: #e91e63;
  background: rgba(255,255,255,.94);
  border: 1px solid #ffc1d6;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .10);
}
.profile-photo-slot.empty .profile-photo-label {
  top: auto;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.photo-lightbox {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(8, 13, 27, .82);
  display: grid;
  place-items: center;
  padding: 24px;
}
.photo-lightbox img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
  background: #fff;
}
.photo-lightbox-close {
  position: fixed;
  right: 24px;
  top: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #e91e63;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 900px) {
  .polished-profile-hero { grid-template-columns: 1fr !important; text-align: center !important; }
  .profile-overview-photo-clean { margin: 0 auto !important; width: min(280px, 100%) !important; height: 320px !important; }
  .profile-hero-badges, .profile-completion-row { justify-content: center; }
  .profile-hero-actions { grid-template-columns: 1fr; }
  .profile-photo-layout { grid-template-columns: 1fr; }
  .profile-photo-slot.main { min-height: 340px; }
}
@media (max-width: 520px) {
  .profile-photo-side-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .profile-photo-slot { min-height: 135px; border-radius: 16px; }
  .profile-photo-slot.main { min-height: 300px; }
  .profile-photo-label { font-size: 10px; padding: 6px 9px; }
  .profile-photo-gallery-card { padding: 16px !important; }
}

/* Profile gallery placement fix: keep only one gallery after profile details */
.profile-sections .profile-photo-gallery-card,
#profileSections .profile-photo-gallery-card {
  grid-column: 1 / -1 !important;
  margin-top: 8px !important;
}
.profile-summary .profile-photo-gallery-card,
#profileSummary .profile-photo-gallery-card {
  display: none !important;
}
.profile-photo-gallery-card .profile-photo-layout {
  align-items: stretch !important;
}
@media (min-width: 900px) {
  #profileSections .profile-photo-gallery-card .profile-photo-layout,
  .profile-sections .profile-photo-gallery-card .profile-photo-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr) !important;
  }
}

/* Profile gallery square-grid fix: all 5 photo slots use same clean 1:1 size */
.profile-photo-gallery-card .profile-photo-layout,
#profileSections .profile-photo-gallery-card .profile-photo-layout,
.profile-sections .profile-photo-gallery-card .profile-photo-layout {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
.profile-photo-gallery-card .profile-photo-side-grid {
  display: contents !important;
}
.profile-photo-gallery-card .profile-photo-slot,
.profile-photo-gallery-card .profile-photo-slot.main,
.profile-photo-gallery-card .profile-photo-slot.sub {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 18px !important;
}
.profile-photo-gallery-card .profile-photo-slot img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
}
.profile-photo-gallery-card .profile-photo-label {
  top: 10px !important;
  left: 10px !important;
  bottom: auto !important;
  transform: none !important;
  font-size: 11px !important;
  padding: 6px 10px !important;
}
.profile-photo-gallery-card .profile-photo-slot.empty .profile-photo-label {
  top: auto !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}
.profile-photo-gallery-card .empty-photo-icon {
  width: 48px !important;
  height: 48px !important;
  font-size: 18px !important;
}
@media (max-width: 900px) {
  .profile-photo-gallery-card .profile-photo-layout,
  #profileSections .profile-photo-gallery-card .profile-photo-layout,
  .profile-sections .profile-photo-gallery-card .profile-photo-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 420px) {
  .profile-photo-gallery-card .profile-photo-layout,
  #profileSections .profile-photo-gallery-card .profile-photo-layout,
  .profile-sections .profile-photo-gallery-card .profile-photo-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================
   MEMBERSHIP PAGE SIMPLE POLISH
   Low-budget visual cleanup only: no new sections or backend changes.
========================== */
.membership-hero {
  background: #fff7fa;
  border-bottom: 1px solid #f7d8e3;
  padding: 52px 0;
}

.membership-hero-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

.membership-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.12;
  max-width: 680px;
}

.membership-hero p {
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

.membership-benefits {
  gap: 10px;
  margin-top: 22px;
}

.membership-benefits span {
  background: #ffffff;
  border: 1px solid #f2c9d7;
  border-radius: 999px;
  color: #7a2948;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 13px;
}

.membership-hero-card {
  border: 1px solid #f1d5df;
  box-shadow: 0 10px 28px rgba(90, 28, 55, 0.08);
  padding: 24px;
  text-align: left;
}

.membership-hero-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.membership-hero-card p {
  font-size: 15px;
  margin-bottom: 18px;
}

.progress-circle { display: none; }

.membership-section {
  padding: 44px 0 70px;
}

#planNotice {
  border-radius: 12px;
  padding: 13px 16px;
}

.membership-plans {
  gap: 20px;
}

.membership-plan-card {
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 24px 24px;
  text-align: left;
  transition: none;
}

.membership-plan-card:hover,
.membership-plan-card.selected {
  box-shadow: 0 10px 26px rgba(20, 20, 20, 0.08);
  transform: none;
}

.membership-plan-card.selected,
.membership-plan-card.popular {
  border: 2px solid var(--primary);
}

.membership-plan-card.popular {
  padding-top: 36px;
}

.popular-label {
  border-radius: 999px;
  font-size: 12px;
  left: 22px;
  padding: 6px 12px;
  top: -13px;
  transform: none;
}

.membership-plan-card h3 {
  font-size: 25px;
  line-height: 1.15;
}

.plan-duration-badge {
  color: #7a2948;
  font-weight: 800;
  margin: 0 0 8px;
}

.plan-subtitle {
  font-size: 14px;
  line-height: 1.5;
  min-height: 42px;
}

.plan-price {
  font-size: 30px;
  line-height: 1.15;
  margin: 4px 0 16px;
}

.plan-price span {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.membership-plan-card .btn {
  justify-content: center;
  margin: 0 0 16px;
  width: 100%;
}

.membership-plan-card ul {
  margin: 4px 0 18px;
}

.membership-plan-card li {
  border-bottom: 1px solid #f4edf0;
  font-size: 14px;
  line-height: 1.45;
  padding: 8px 0;
}

.plan-save {
  background: #fff3f7;
  border: 1px solid #f3c8d7;
  font-size: 13px;
  margin-top: auto;
  padding: 9px 12px;
  text-align: center;
}

.membership-current-card,
.payment-history-card,
.compare-wrap {
  border-radius: 16px;
}

.compare-heading {
  margin-top: 42px;
}

.compare-table td,
.compare-table th {
  padding: 14px 16px;
}

@media (max-width: 950px) {
  .membership-hero-grid,
  .membership-plans {
    grid-template-columns: 1fr;
  }
  .membership-hero-card {
    max-width: 460px;
  }
  .plan-subtitle {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .membership-hero {
    padding: 36px 0;
  }
  .membership-section {
    padding: 32px 0 52px;
  }
  .membership-plan-card {
    padding: 24px 18px 20px;
  }
  .membership-benefits span {
    font-size: 13px;
  }
}

/* Membership alignment fix: prevent cards from overlapping and keep rows clean */
.membership-plans {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
}

.membership-plan-card {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}

.membership-plan-card .btn {
  margin-top: 0 !important;
}

.membership-plan-card ul {
  flex: 1 1 auto !important;
}

.plan-save {
  margin-top: auto !important;
}

.membership-plan-card.selected,
.membership-plan-card:hover {
  transform: none !important;
}

@media (max-width: 560px) {
  .membership-plans {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Membership page final simple alignment fix */
body:has(.membership-section) {
  background: #ffffff;
}

/* Keep membership simple: no large hero/extra sections */
.membership-hero,
.compare-heading,
.compare-wrap {
  display: none !important;
}

.membership-section {
  padding: 38px 0 70px !important;
}

.membership-section .section-title {
  display: none !important;
}

#planNotice.auth-message.info {
  max-width: 1164px;
  margin: 0 auto 18px !important;
  padding: 14px 18px !important;
  background: #fde2ec !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: #005be7 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: center !important;
}

.membership-plans {
  max-width: 1164px;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.membership-plan-card,
.membership-plan-card.popular,
.membership-plan-card.selected {
  min-height: 492px !important;
  height: 100% !important;
  padding: 28px 24px 22px !important;
  border-radius: 13px !important;
  border: 1px solid #ececec !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
  transform: none !important;
  transition: none !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: center !important;
  overflow: visible !important;
}

.membership-plan-card.popular {
  border: 1.5px solid var(--primary) !important;
}

.membership-plan-card:hover,
.membership-plan-card.selected:hover {
  transform: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08) !important;
}

.popular-label {
  top: -13px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.membership-plan-card h3 {
  min-height: 84px !important;
  margin: 0 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: Arial, sans-serif !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  color: #111111 !important;
}

.plan-duration-badge {
  margin: 0 auto 20px !important;
  padding: 9px 14px !important;
  border: 1px solid #ffc2d3 !important;
  border-radius: 999px !important;
  background: #fff0f5 !important;
  color: #7a1237 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.plan-subtitle {
  display: none !important;
}

.plan-price {
  margin: 4px 0 18px !important;
  color: var(--primary) !important;
  font-family: Arial, sans-serif !important;
  font-size: 31px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
}

.plan-price span {
  display: block !important;
  margin-top: 4px !important;
  color: #111111 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.membership-plan-card .btn,
.membership-plan-card .select-plan-btn {
  width: 100% !important;
  min-height: 40px !important;
  margin: 0 0 22px !important;
  padding: 11px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.membership-plan-card ul {
  flex: 1 1 auto !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

.membership-plan-card li {
  min-height: 36px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid #eeeeee !important;
  color: #111111 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  display: flex !important;
  align-items: center !important;
}

.membership-plan-card li::first-letter {
  color: var(--primary);
}

.plan-save {
  margin-top: auto !important;
  padding: 10px 12px !important;
  border: 1px solid #ffb8ce !important;
  border-radius: 999px !important;
  background: #fff5f8 !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

@media (max-width: 1100px) {
  .membership-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .membership-section {
    padding: 24px 0 50px !important;
  }
  .membership-plans {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .membership-plan-card,
  .membership-plan-card.popular,
  .membership-plan-card.selected {
    min-height: auto !important;
  }
  .membership-plan-card h3 {
    min-height: auto !important;
  }
}


/* Simple current membership status below cards */
.membership-status-card {
  display: block !important;
  max-width: 1164px;
  margin: 28px auto 0 !important;
}

.simple-membership-status {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 22px 24px;
}

.simple-membership-status h3 {
  margin: 0 0 16px;
  color: #111111;
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.simple-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.simple-status-grid div {
  background: #fff5f8;
  border: 1px solid #ffd0de;
  border-radius: 10px;
  padding: 13px 14px;
}

.simple-status-grid span {
  display: block;
  margin-bottom: 5px;
  color: #7a1237;
  font-size: 12px;
  font-weight: 800;
}

.simple-status-grid strong {
  display: block;
  color: #111111;
  font-size: 15px;
  font-weight: 900;
}

.simple-membership-status p {
  margin: 14px 0 0;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 620px) {
  .simple-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   MEMBERSHIP PREMIUM UI UPDATE
   Special packages + clean standard grid
========================== */
body:has(.membership-section) {
  background:
    radial-gradient(circle at 5% 10%, rgba(255, 216, 177, .42), transparent 28%),
    radial-gradient(circle at 95% 2%, rgba(255, 215, 232, .56), transparent 28%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 42%, #fffaf6 100%) !important;
}

.membership-section {
  padding: 26px 0 72px !important;
}

#planNotice.auth-message.info,
#planNotice.auth-message.success {
  max-width: 1180px !important;
  margin: 0 auto 22px !important;
  padding: 18px 22px !important;
  background: linear-gradient(90deg, #fff0f6, #fff7ee) !important;
  border: 1px solid #ffe0ea !important;
  border-radius: 13px !important;
  box-shadow: 0 10px 28px rgba(233, 30, 99, .07) !important;
  color: #081b4d !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

#plans.membership-plans {
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: block !important;
}

.premium-special-stack {
  display: grid !important;
  gap: 20px !important;
  margin-bottom: 34px !important;
}

.membership-special-card,
.membership-special-card.membership-plan-card,
.membership-special-card.popular,
.membership-special-card.selected {
  position: relative !important;
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr) 300px !important;
  gap: 26px !important;
  align-items: center !important;
  padding: 30px 36px !important;
  border: 1px solid rgba(255, 196, 153, .72) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(31, 41, 55, .08) !important;
  text-align: left !important;
}

.membership-special-card.advertisement {
  background: linear-gradient(135deg, #fffaf5 0%, #fff 48%, #fff0dc 100%) !important;
}

.membership-special-card.livein {
  background: linear-gradient(135deg, #fbf7ff 0%, #fff 48%, #f1e7ff 100%) !important;
  border-color: rgba(198, 172, 255, .72) !important;
}

.membership-special-card::after {
  content: "";
  position: absolute;
  right: 330px;
  top: 26px;
  bottom: 26px;
  border-left: 1px dashed rgba(225, 148, 168, .6);
}

.special-icon {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 0 0 1px rgba(255, 196, 153, .36), 0 14px 28px rgba(233, 30, 99, .10);
  color: var(--primary);
  font-size: 42px;
}

.membership-special-card.livein .special-icon {
  color: #9b5cf6;
  box-shadow: inset 0 0 0 1px rgba(155, 92, 246, .22), 0 14px 28px rgba(155, 92, 246, .10);
}

.membership-special-card h3 {
  min-height: 0 !important;
  margin: 0 0 12px !important;
  justify-content: flex-start !important;
  font-family: Arial, sans-serif !important;
  color: #071a44 !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  font-weight: 900 !important;
  line-height: 1.14 !important;
}

.membership-special-card .plan-duration-badge,
.membership-standard-card .plan-duration-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 0 16px !important;
  padding: 9px 18px !important;
  border: 1px solid #ffc4d7 !important;
  border-radius: 999px !important;
  background: #fff2f7 !important;
  color: #a80f45 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.special-description {
  max-width: 520px;
  margin: 0 !important;
  color: #13234d !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}

.special-payment {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.membership-special-card .plan-price {
  margin: 0 0 22px !important;
  font-size: 39px !important;
  text-align: center !important;
}

.membership-special-card .select-plan-btn {
  width: 100% !important;
  max-width: 270px !important;
  min-height: 54px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-size: 16px !important;
  gap: 10px !important;
  box-shadow: 0 14px 26px rgba(233, 30, 99, .22) !important;
}

.premium-standard-header {
  text-align: center;
  margin: 22px 0 20px;
}

.premium-standard-header h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  color: #071a44;
  font-family: Arial, sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.2;
}

.premium-standard-header h2::before,
.premium-standard-header h2::after {
  content: "✦";
  color: #d49832;
  margin: 0 18px;
  font-size: 18px;
}

.premium-standard-header p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.premium-standard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.membership-standard-card,
.membership-standard-card.membership-plan-card,
.membership-standard-card.popular,
.membership-standard-card.selected {
  position: relative !important;
  min-height: 350px !important;
  height: auto !important;
  padding: 34px 28px 26px !important;
  border: 1px solid #f2d8df !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 14px 34px rgba(31, 41, 55, .07) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

.membership-standard-card.popular,
.membership-standard-card.selected {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 20px 44px rgba(233, 30, 99, .12) !important;
}

.standard-crown {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6c45b, #c98216);
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 130, 22, .22);
}

.membership-standard-card h3 {
  min-height: 0 !important;
  margin: 0 0 18px !important;
  font-family: Arial, sans-serif !important;
  color: #071a44 !important;
  font-size: 27px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}

.membership-standard-card .plan-price {
  margin: 8px 0 20px !important;
  color: var(--primary) !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

.membership-standard-card .plan-price span,
.membership-special-card .plan-price span {
  display: block !important;
  color: #071a44 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-top: 6px !important;
}

.membership-standard-card ul {
  width: 100% !important;
  flex: 0 0 auto !important;
  margin: 0 0 22px !important;
  padding: 18px 0 0 !important;
  border-top: 1px solid #f0e4e8 !important;
  text-align: left !important;
}

.membership-standard-card li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #17213b !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.plan-check {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 21px;
  background: #fff1f5;
  color: var(--primary);
  font-weight: 900;
}

.membership-standard-card .select-plan-btn {
  margin: auto 0 0 !important;
  width: 100% !important;
  min-height: 50px !important;
  border-radius: 9px !important;
  font-size: 16px !important;
  gap: 10px !important;
  box-shadow: 0 12px 22px rgba(233, 30, 99, .18) !important;
}

.membership-standard-card .plan-save,
.membership-special-card .plan-save {
  display: none !important;
}

.popular-label {
  top: -14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  gap: 7px !important;
  align-items: center !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--primary) !important;
  box-shadow: 0 8px 18px rgba(233, 30, 99, .18) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.membership-trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  padding: 18px 20px;
  border: 1px solid #f1dbe2;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff6fa, #fff);
  box-shadow: 0 12px 30px rgba(31, 41, 55, .06);
}

.membership-trust-row div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 8px 16px;
  border-right: 1px solid #f1dbe2;
}

.membership-trust-row div:last-child { border-right: 0; }
.membership-trust-row i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe8f0;
  color: var(--primary);
  font-size: 18px;
}
.membership-trust-row strong {
  color: #071a44;
  font-size: 15px;
  font-weight: 900;
}
.membership-trust-row span {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.simple-membership-status {
  border-color: #f1dbe2 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #fff, #fff7fa) !important;
}

@media (max-width: 980px) {
  .membership-special-card,
  .membership-special-card.membership-plan-card {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .membership-special-card::after { display: none; }
  .special-icon { width: 82px; height: 82px; font-size: 31px; }
  .special-payment { grid-column: 1 / -1; align-items: stretch; }
  .membership-special-card .select-plan-btn { max-width: none !important; }
  .premium-standard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .membership-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .membership-trust-row div:nth-child(2) { border-right: 0; }
}

@media (max-width: 620px) {
  .membership-section { padding: 18px 0 52px !important; }
  #planNotice.auth-message.info,
  #planNotice.auth-message.success { font-size: 15px !important; padding: 15px !important; }
  .membership-special-card,
  .membership-special-card.membership-plan-card {
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
    text-align: center !important;
  }
  .special-icon { margin: 0 auto; }
  .membership-special-card h3 { justify-content: center !important; text-align: center !important; font-size: 26px !important; }
  .special-description { text-align: center; }
  .premium-standard-header h2::before,
  .premium-standard-header h2::after { display: none; }
  .premium-standard-grid { grid-template-columns: 1fr; gap: 18px; }
  .membership-standard-card,
  .membership-standard-card.membership-plan-card { min-height: auto !important; padding: 30px 22px 22px !important; }
  .membership-trust-row { grid-template-columns: 1fr; padding: 12px; }
  .membership-trust-row div { border-right: 0; border-bottom: 1px solid #f1dbe2; }
  .membership-trust-row div:last-child { border-bottom: 0; }
}

/* ==========================
   CONTACT PAGE PREMIUM UI
========================== */
.premium-contact-page {
  background:
    radial-gradient(circle at 8% 4%, rgba(233, 30, 99, 0.10), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255, 193, 7, 0.11), transparent 26%),
    linear-gradient(180deg, #fff7fa 0%, #ffffff 46%, #fff8fb 100%);
  min-height: 100vh;
}

.premium-contact-hero {
  position: relative;
  text-align: center;
  background: transparent;
  padding: 58px 0 36px;
  overflow: hidden;
}

.premium-contact-hero::before,
.premium-contact-hero::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.13), transparent 68%);
  pointer-events: none;
}

.premium-contact-hero::before { left: -70px; top: -80px; }
.premium-contact-hero::after { right: -80px; top: -70px; }

.contact-hero-ornament {
  width: 120px;
  height: 20px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d79b25;
  position: relative;
}

.contact-hero-ornament::before,
.contact-hero-ornament::after {
  content: "";
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d79b25);
  position: absolute;
  top: 50%;
}

.contact-hero-ornament::before { left: 0; }
.contact-hero-ornament::after { right: 0; transform: rotate(180deg); }

.premium-contact-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: #101820;
}

.premium-contact-hero h1 span {
  color: #e91e63;
}

.premium-contact-hero p {
  font-size: 20px;
  color: #52606d;
}

.premium-contact-section {
  padding: 26px 0 70px;
}

.premium-contact-grid {
  gap: 28px;
  align-items: stretch;
}

.premium-contact-card {
  position: relative;
  border: 1px solid rgba(216, 155, 37, 0.36);
  border-top: 3px solid #d79b25;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(145, 51, 88, 0.12);
  padding: 42px 46px;
  overflow: hidden;
}

.premium-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(255, 230, 238, 0.85), transparent 32%);
  pointer-events: none;
}

.premium-contact-card > * {
  position: relative;
  z-index: 1;
}

.premium-card-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.premium-card-title > span {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #ff4f8b, #c40046);
  box-shadow: 0 10px 22px rgba(233, 30, 99, 0.24);
  border: 4px solid #fff2f6;
  font-size: 22px;
}

.premium-card-title h2,
.contact-form-card .premium-card-title h2,
.contact-info-card .premium-card-title h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  color: #9a0738;
  margin: 0;
}

.premium-field {
  margin-bottom: 22px;
}

.premium-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d2433;
  font-weight: 800;
  margin-bottom: 9px;
}

.premium-field label i {
  color: #e91e63;
}

.contact-form-card .premium-field input,
.contact-form-card .premium-field textarea {
  width: 100%;
  border: 1px solid #f2c9d8;
  background: rgba(255, 252, 253, 0.9);
  border-radius: 14px;
  padding: 0 18px;
  font-size: 15px;
  color: #1d2433;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-form-card .premium-field textarea {
  padding-top: 16px;
  min-height: 158px;
}

.contact-form-card .premium-field input:focus,
.contact-form-card .premium-field textarea:focus {
  outline: none;
  border-color: #e91e63;
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.10);
}

.premium-submit-btn,
.btn.premium-submit-btn {
  min-width: 220px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2d73, #c80049);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.25);
}

.contact-safe-note {
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #f7d1dd;
  border-radius: 14px;
  background: #fff8fb;
  color: #596473;
  font-size: 14px;
}

.contact-safe-note i {
  color: #e91e63;
  margin-right: 8px;
}

.premium-info-list {
  display: grid;
  gap: 14px;
}

.premium-info-list div {
  align-items: center;
  gap: 16px;
  border: 1px solid #f4d6df;
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.74);
}

.premium-info-list span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 80%;
  background: #fde8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e91e63;
  font-size: 18px;
}

.premium-info-list p {
  color: #1f2937;
  font-weight: 600;
}

.premium-help-box {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  border: 1px solid #f4cbd8;
  background: linear-gradient(135deg, #fff3f7, #fff8fb);
  box-shadow: none;
}

.premium-help-box .help-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  border-radius: 50%;
  background: #fde1eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c40046;
  font-size: 30px;
}

.premium-help-box h3 {
  color: #9a0738;
}

.premium-chat-btn,
.btn.outline.premium-chat-btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e91e63;
  border-color: #e91e63;
  background: #fff;
  font-weight: 900;
}

.contact-trust-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.94);
  border: 1px solid #f4d6df;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(145, 51, 88, 0.10);
  overflow: hidden;
}

.contact-trust-row div {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 22px 24px;
  border-right: 1px solid #f1d6df;
}

.contact-trust-row div:last-child {
  border-right: none;
}

.contact-trust-row span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fde8f0;
  color: #e91e63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.contact-trust-row strong {
  color: #9a0738;
  font-size: 15px;
}

.contact-trust-row small {
  color: #52606d;
  font-size: 13px;
}

@media (max-width: 900px) {
  .premium-contact-card {
    padding: 30px 22px;
  }

  .contact-trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-trust-row div:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 560px) {
  .premium-contact-hero {
    padding-top: 36px;
  }

  .premium-card-title {
    align-items: flex-start;
  }

  .premium-card-title h2,
  .contact-form-card .premium-card-title h2,
  .contact-info-card .premium-card-title h2 {
    font-size: 27px;
  }

  .premium-help-box {
    align-items: flex-start;
  }

  .contact-trust-row {
    grid-template-columns: 1fr;
  }

  .contact-trust-row div,
  .contact-trust-row div:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid #f1d6df;
  }

  .contact-trust-row div:last-child {
    border-bottom: none;
  }
}

/* ==========================
   SUCCESS STORIES PREMIUM UI
========================== */
.premium-stories-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 208, 220, 0.75), transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(255, 245, 228, 0.9), transparent 35%),
    linear-gradient(135deg, #fff7f8 0%, #fff0f5 48%, #fff8ed 100%);
  border-bottom: 1px solid rgba(233, 30, 99, 0.09);
  padding: 74px 0 70px;
}

.premium-stories-hero::before,
.premium-stories-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(214, 160, 55, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.premium-stories-hero::before {
  left: -100px;
  top: -72px;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.28);
}

.premium-stories-hero::after {
  right: -110px;
  bottom: -126px;
  box-shadow: 0 0 0 35px rgba(255, 255, 255, 0.22);
}

.stories-hero-copy {
  position: relative;
  z-index: 1;
}

.premium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(233, 30, 99, 0.16);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(233, 30, 99, 0.08);
}

.premium-stories-hero h1 {
  letter-spacing: -1px;
  color: #12121a;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 330px;
  max-width: 100%;
  margin: 14px 0 22px;
  color: #d6a037;
}

.gold-divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #d6a037, transparent);
}

.premium-hero-image {
  position: relative;
  z-index: 1;
}

.premium-hero-image::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.8), rgba(214, 160, 55, 0.6));
  z-index: -1;
  opacity: 0.55;
}

.premium-hero-image img {
  border: 8px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 80px rgba(103, 29, 58, 0.18);
}

.hero-floating-badge {
  position: absolute;
  right: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(233, 30, 99, 0.14);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
  font-family: Georgia, serif;
  font-weight: 900;
}

.hero-floating-badge i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #c90953);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(233, 30, 99, 0.24);
}

.stories-section {
  background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.stories-toolbar {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 18px 48px rgba(70, 30, 44, 0.08);
}

.story-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-color: rgba(233, 30, 99, 0.13);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.story-tab.active,
.story-tab:hover {
  background: linear-gradient(135deg, var(--primary), #d91463);
  box-shadow: 0 12px 28px rgba(233, 30, 99, 0.2);
}

.story-sort select {
  min-width: 155px;
  border-color: rgba(233, 30, 99, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.success-story-card {
  border-radius: 24px;
  border: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 22px 55px rgba(30, 20, 24, 0.08);
}

.success-story-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 75px rgba(233, 30, 99, 0.14);
}

.story-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.story-image-wrap img {
  transition: 0.35s ease;
}

.success-story-card:hover .story-image-wrap img {
  transform: scale(1.045);
}

.story-heart {
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(233, 30, 99, 0.12);
}

.story-heart.active-state {
  background: var(--primary);
  color: #ffffff;
}

.story-content {
  padding: 26px;
}

.story-content h3 {
  color: #17141d;
}

.matched-date {
  color: var(--primary);
  letter-spacing: 0.1px;
}

.married-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-story-btn {
  border-radius: 12px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.share-story-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at left, rgba(255, 232, 238, 0.98), transparent 30%),
    linear-gradient(135deg, #fff7f8, #fff4e8);
  border: 1px solid rgba(214, 160, 55, 0.28);
  box-shadow: 0 22px 60px rgba(105, 47, 63, 0.09);
}

.share-story-cta::before,
.share-story-cta::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-top: 2px solid rgba(214, 160, 55, 0.55);
  pointer-events: none;
}

.share-story-cta::before {
  left: 16px;
  top: 16px;
  border-left: 2px solid rgba(214, 160, 55, 0.55);
  border-radius: 14px 0 0 0;
}

.share-story-cta::after {
  right: 16px;
  bottom: 16px;
  border-right: 2px solid rgba(214, 160, 55, 0.55);
  border-bottom: 2px solid rgba(214, 160, 55, 0.55);
  border-top: 0;
  border-radius: 0 0 14px 0;
}

.share-story-cta .cta-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ffe3ec);
  color: var(--primary);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(233, 30, 99, 0.12);
}

.share-story-cta > div:first-child {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  column-gap: 18px;
}

.share-story-cta h2 span {
  color: var(--primary);
}

.stories-stats div {
  border-color: rgba(233, 30, 99, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  background: linear-gradient(180deg, #ffffff, #fff8fa);
}

.stories-stats strong {
  color: var(--primary);
}

@media (max-width: 1000px) {
  .hero-floating-badge {
    right: 18px;
  }
}

@media (max-width: 650px) {
  .premium-stories-hero {
    padding: 46px 0;
  }

  .premium-hero-image::before,
  .hero-floating-badge {
    display: none;
  }

  .stories-toolbar {
    padding: 14px;
  }

  .story-tab {
    width: 100%;
    justify-content: center;
  }

  .story-sort,
  .story-sort select {
    width: 100%;
  }

  .share-story-cta > div:first-child {
    grid-template-columns: 1fr;
  }
}


/* Premium notifications page polish */
.premium-notification-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 8% 18%, rgba(233, 30, 99, 0.10), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(255, 193, 7, 0.14), transparent 28%),
    linear-gradient(135deg, #fff6fa 0%, #fff 52%, #ffeaf1 100%);
}
.premium-notification-hero::before,
.premium-notification-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(233, 30, 99, 0.09);
  border-radius: 42% 58% 52% 48%;
  pointer-events: none;
}
.premium-notification-hero::before { left: -92px; top: 28px; transform: rotate(22deg); }
.premium-notification-hero::after { right: -72px; bottom: -108px; transform: rotate(-18deg); }
.notification-hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  position: relative;
  z-index: 1;
}
.notification-hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -1px;
}
.notification-hero-copy p {
  max-width: 620px;
  margin-top: 20px;
  font-size: 18px;
  color: #4b5563;
}
.premium-mini-label {
  background: rgba(233, 30, 99, 0.10);
  color: #e91e63;
  padding: 10px 16px;
  border-radius: 999px;
}
.hero-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  margin: 20px 0 0;
  color: #e91e63;
}
.hero-divider span {
  height: 2px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.75), transparent);
}
.notification-hero-art {
  position: relative;
  min-width: 270px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-bell-orb {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff 0%, #ffddea 45%, #ec1360 100%);
  box-shadow: 0 28px 60px rgba(233, 30, 99, 0.25), inset 0 8px 22px rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
}
.notification-bell-orb i {
  color: #fff;
  font-size: 78px;
  filter: drop-shadow(0 8px 12px rgba(138, 15, 70, 0.22));
}
.notification-bell-orb strong {
  position: absolute;
  right: -12px;
  top: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e91e63;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 26px;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(233, 30, 99, 0.25);
}
.hero-sparkle {
  position: absolute;
  color: #d4a72c;
  font-size: 26px;
}
.hero-sparkle.one { left: 22px; top: 42px; }
.hero-sparkle.two { right: 18px; bottom: 42px; }
.notification-page-section {
  padding: 46px 0 64px;
  background: linear-gradient(180deg, #fff 0%, #fff9fc 58%, #fff 100%);
}
.notification-top-card {
  padding: 28px 30px;
  border: 1px solid rgba(233, 30, 99, 0.16);
  background: linear-gradient(135deg, #fff 0%, #fff9fc 100%);
  box-shadow: 0 22px 55px rgba(105, 31, 66, 0.08);
}
.notification-top-card h2 {
  color: #8f103d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
}
.notification-top-actions .btn,
.notification-empty .btn {
  box-shadow: 0 12px 25px rgba(233, 30, 99, 0.18);
}
.notification-tabs {
  gap: 16px;
  padding: 14px 0 22px;
}
.notification-tab {
  min-width: 104px;
  padding: 12px 22px;
  border-color: rgba(233, 30, 99, 0.22);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}
.notification-tab.active,
.notification-tab:hover {
  background: linear-gradient(135deg, #f72572 0%, #d80d56 100%);
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.22);
}
.notification-card {
  border-color: rgba(233, 30, 99, 0.12);
  box-shadow: 0 18px 45px rgba(105, 31, 66, 0.07);
}
.notification-card.unread {
  background: linear-gradient(90deg, #fff2f7 0%, #fff 55%);
}
.notification-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0f6 0%, #ffe1eb 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 30, 99, 0.10);
}
.notification-empty {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(233, 30, 99, 0.28);
  background:
    radial-gradient(circle at center 42px, rgba(233, 30, 99, 0.09), transparent 95px),
    linear-gradient(180deg, #fff 0%, #fffbfc 100%);
  box-shadow: 0 20px 45px rgba(105, 31, 66, 0.05);
}
.notification-empty i {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe5ee;
  color: #e91e63;
  font-size: 38px;
  margin-bottom: 18px;
}
.notification-empty h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
}
.notification-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  padding: 22px 18px;
  background: linear-gradient(135deg, #fff7fb 0%, #fff 100%);
  border: 1px solid rgba(233, 30, 99, 0.13);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(105, 31, 66, 0.07);
}
.notification-trust-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-right: 1px solid rgba(233, 30, 99, 0.12);
}
.notification-trust-strip > div:last-child { border-right: 0; }
.notification-trust-strip i {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffe4ee;
  color: #e91e63;
  font-size: 20px;
}
.notification-trust-strip strong {
  display: block;
  color: #8f103d;
  font-weight: 900;
}
.notification-trust-strip small {
  color: #667085;
  display: block;
  margin-top: 2px;
}
@media (max-width: 900px) {
  .notification-hero-wrap { flex-direction: column; align-items: flex-start; }
  .notification-hero-art { min-width: 100%; height: 170px; }
  .notification-bell-orb { width: 130px; height: 130px; }
  .notification-bell-orb i { font-size: 56px; }
  .notification-trust-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .notification-trust-strip > div { border-right: 0; }
}
@media (max-width: 560px) {
  .premium-notification-hero { padding: 48px 0 40px; }
  .notification-hero-copy p { font-size: 15px; }
  .notification-trust-strip { grid-template-columns: 1fr; }
  .notification-trust-strip > div { padding: 0; }
  .notification-tabs { gap: 10px; }
  .notification-tab { min-width: auto; }
}


/* Membership approvals table fix: keep screenshot/status/action columns visible */
#paymentsPanel .admin-table-wrap {
  overflow-x: auto !important;
}
#paymentsPanel .membership-approvals-table {
  min-width: 1180px !important;
  table-layout: fixed !important;
}
#paymentsPanel .membership-approvals-table th:nth-child(1),
#paymentsPanel .membership-approvals-table td:nth-child(1) { width: 24% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(2),
#paymentsPanel .membership-approvals-table td:nth-child(2) { width: 22% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(3),
#paymentsPanel .membership-approvals-table td:nth-child(3) { width: 12% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(4),
#paymentsPanel .membership-approvals-table td:nth-child(4) { width: 11% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(5),
#paymentsPanel .membership-approvals-table td:nth-child(5) { width: 13% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(6),
#paymentsPanel .membership-approvals-table td:nth-child(6) { width: 8% !important; }
#paymentsPanel .membership-approvals-table th:nth-child(7),
#paymentsPanel .membership-approvals-table td:nth-child(7) { width: 10% !important; }
#paymentsPanel .membership-approvals-table .admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#paymentsPanel .membership-approvals-table .admin-actions .btn {
  min-width: 86px;
}
.admin-muted { color: #777; font-size: 12px; }

/* Profile membership badges */
.membership-approved-banner {
  background: linear-gradient(135deg, #ecfff4, #fff7fb) !important;
}
.profile-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.membership-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid #ffd1df;
  background: #fff7fb;
  color: #e91e63;
}
.membership-profile-badge.standard {
  background: linear-gradient(135deg, #fff8e1, #ffffff);
  color: #a86a00;
  border-color: #f2c45a;
}
.membership-profile-badge.featured {
  background: linear-gradient(135deg, #fff0f6, #ffffff);
  color: #e91e63;
  border-color: #ff9fc1;
}
.membership-profile-badge.livein {
  background: linear-gradient(135deg, #f5efff, #ffffff);
  color: #7c3aed;
  border-color: #c4a5ff;
}

/* Membership visibility fix: cards are clickable, free remains blurred/locked, approved Standard stays visible. */
[data-profile-card-link] { cursor: pointer; }
.profile-card.premium-lock-card.locked-profile-card .premium-lock-image img,
.bm-match-card.locked-profile-card .bm-match-photo img {
  filter: blur(7px);
  transform: scale(1.04);
}
.profile-card.premium-lock-card:not(.locked-profile-card) .premium-lock-image img,
.bm-match-card:not(.locked-profile-card) .bm-match-photo img {
  filter: none !important;
  transform: none;
}
.profile-card.premium-lock-card:not(.locked-profile-card) .premium-bottom-lock,
.bm-match-card:not(.locked-profile-card) .bm-locked-title .bm-lock-circle {
  display: none !important;
}

/* ===========================
   SUCCESS STORY MODAL
=========================== */

#storyModal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

#storyModal.show{
    opacity:1;
    visibility:visible;
}

#storyModal .upi-modal-card{
    position:relative;
    width:760px;
    max-width:92vw;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:24px;
    padding:32px;
    box-shadow:0 25px 60px rgba(0,0,0,.18);
}

/* Close Button */

#storyModal .upi-close{
    position:absolute;
    top:18px;
    right:18px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#fff2f6;
    color:#ec1d63;
    font-size:26px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

#storyModal .upi-close:hover{
    background:#ec1d63;
    color:#fff;
}

/* Heading */

#storyModalContent h2{
    text-align:center;
    font-size:38px;
    font-family:Georgia,serif;
    margin-bottom:20px;
    color:#222;
}

/* Couple Photo */

.story-modal-image{
    width:420px;
    aspect-ratio:1/1;
    object-fit:cover;
    object-position:center;
    display:block;
    margin:0 auto 28px;
    border-radius:22px;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

/* Info */

#storyModalContent p{
    font-size:17px;
    color:#444;
    line-height:1.8;
    margin-bottom:12px;
}

#storyModalContent b{
    color:#111;
}

/* Quote */

.story-quote{
    margin-top:22px;
    padding:20px;
    border-left:5px solid #ec1d63;
    background:#fff7fb;
    border-radius:14px;
    font-size:18px;
    font-style:italic;
    color:#444;
}

/* Scrollbar */

#storyModal .upi-modal-card::-webkit-scrollbar{
    width:8px;
}

#storyModal .upi-modal-card::-webkit-scrollbar-thumb{
    background:#ec1d63;
    border-radius:20px;
}

#storyModal .upi-modal-card::-webkit-scrollbar-track{
    background:#f8f8f8;
}

/* Mobile */

@media (max-width:768px){

    #storyModal .upi-modal-card{
        width:95%;
        padding:24px;
    }

    .story-modal-image{
        width:100%;
        max-width:320px;
    }

    #storyModalContent h2{
        font-size:28px;
    }

    #storyModalContent p{
        font-size:15px;
    }

    .story-quote{
        font-size:16px;
    }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }

  .profile-form-container,
  .profile-form-card,
  .form-card,
  .step-content,
  .photos-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .profile-logo,
  .auth-logo,
  .logo img {
    max-width: 150px !important;
    height: auto !important;
    object-fit: contain;
  }

  .photo-upload-box,
  .photos-upload-box,
  .photo-preview-card,
  .photo-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .photo-preview-card img,
  .photo-card img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    object-position: center top !important;
  }

  input[type="file"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-actions,
  .profile-form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: space-between;
  }

  .form-actions .btn,
  .profile-form-actions .btn {
    flex: 1;
    min-width: 0;
  }

  .steps-sidebar,
  .profile-steps {
    width: 100% !important;
    max-width: 100% !important;
  }

  .steps-sidebar .step,
  .profile-steps .step {
    white-space: normal !important;
  }
}

/* =========================
   PREMIUM HOME DESKTOP UI
========================= */

@media (min-width:1024px){

  .container{
    max-width:1180px;
    margin:0 auto;
  }

  /* Hero */
  .hero,
  .home-hero{
    padding:90px 0 70px;
    background:linear-gradient(135deg,#fff8fb,#ffeef4);
}

  .hero .container,
  .home-hero .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:70px;
}

.hero-left h1{
    font-size:68px;
    line-height:1.05;
    font-weight:800;
    margin-bottom:20px;
}

.hero-left h1 span{
    color:var(--primary);
}

.hero-left p{
    max-width:480px;
    font-size:18px;
    color:#666;
    line-height:1.8;
    margin-bottom:35px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    margin-bottom:35px;
}

  .hero h1,
  .home-hero h1{
    font-size:68px;
    line-height:1.05;
    letter-spacing:-1px;
  }

  .hero p,
  .home-hero p{
    font-size:18px;
    line-height:1.8;
    max-width:520px;
  }

  .hero img,
  .hero-right img{
    width:100%;
    border-radius:28px;
    object-fit:cover;
    box-shadow:0 30px 70px rgba(0,0,0,.12);
}

  /* Find match card */
  .find-match-card,
  .quick-search-card{
    margin-top:-70px;
    position:relative;
    z-index:5;
    padding:30px;
    border-radius:26px;
    background:#fff;
    box-shadow:0 24px 60px rgba(0,0,0,.10);
  }

  /* Sections */
  section{
    padding:75px 0;
  }

  .section-title,
  .section-head h2,
  .section-title-row h2{
    font-size:42px;
    line-height:1.15;
    text-align:center;
  }

  .section-head,
  .section-title-row{
    margin-bottom:34px;
  }

  /* Stats / Why choose cards */
  .stats-grid,
  .why-grid,
  .features-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:26px;
  }

  .stats-grid > div,
  .why-grid > div,
  .features-grid > div{
    padding:30px;
    border-radius:22px;
    background:#fff;
    box-shadow:0 18px 45px rgba(0,0,0,.07);
    transition:.25s;
  }

  .stats-grid > div:hover,
  .why-grid > div:hover,
  .features-grid > div:hover{
    transform:translateY(-6px);
  }

  /* Profile cards */
  .profile-grid,
  .premium-grid,
  .matches-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
  }

  .profile-card{
    border-radius:24px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 22px 50px rgba(0,0,0,.10);
    transition:.25s;
  }

  .profile-card:hover{
    transform:translateY(-8px);
  }

  .profile-card img{
    width:100%;
    height:280px;
    object-fit:cover;
  }

  /* Success stories */
  .stories-grid,
  .success-stories-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
  }

  .success-story-card{
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 22px 50px rgba(0,0,0,.09);
  }

  .success-story-card img{
    height:250px;
    width:100%;
    object-fit:cover;
  }

  /* CTA */
  .home-cta,
  .cta-section,
  .share-story-cta{
    max-width:1180px;
    margin:80px auto;
    padding:42px 52px;
    border-radius:28px;
  }

  /* Footer */
  footer{
    margin-top:80px;
  }
}
/* =========================================================
   FINAL DESKTOP RESTORE + MOBILE SCOPING FIX
   Keeps mobile fixes, restores desktop navbar/headings.
========================================================= */

/* Desktop / tablet landscape: normal navbar and section titles */
@media (min-width: 769px) {
  body { overflow-x: hidden; }

  .topbar {
    height: 78px !important;
  }

  .nav {
    height: 78px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
  }

  .mobile-toggle {
    display: none !important;
  }

  .menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 24px !important;
    flex: 1 1 auto !important;
  }

  .nav-links,
  .nav-account {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 22px !important;
    width: auto !important;
  }

  .logo,
  .brand-logo {
    flex: 0 0 auto !important;
  }

  .site-logo-img {
    width: 110px !important;
    max-width: 110px !important;
    height: 62px !important;
    object-fit: contain !important;
  }

  .section-title,
  .section-head-row .section-title,
  .left-title,
  .success-preview .section-title,
  .why-section .section-title {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: normal !important;
    line-height: 1.2 !important;
    gap: 0 !important;
  }

  .section-title span,
  .section-head-row .section-title span,
  .left-title span,
  .success-preview .section-title span,
  .why-section .section-title span {
    display: inline !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
  }

  .why-section .section-title,
  .success-preview .section-title {
    text-align: center !important;
    margin: 0 0 38px !important;
  }

  .section-head-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 28px !important;
  }

  .section-head-row .left-title,
  .section-head-row .left-subtitle {
    text-align: left !important;
  }

  .section-head-row .left-title {
    margin: 0 0 8px !important;
  }

  .success-preview .section-subtitle {
    text-align: center !important;
    margin: -22px auto 36px !important;
  }

  .why-section .grid,
  .success-preview .grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 26px !important;
    overflow: visible !important;
  }

  .success-preview .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 26px !important;
    overflow: visible !important;
  }
}

/* Mobile only fixes */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }

  .topbar,
  .nav {
    height: 86px !important;
  }

  .nav {
    justify-content: center !important;
    position: relative !important;
  }

  .brand-logo,
  .logo {
    margin: 0 auto !important;
  }

  .site-logo-img {
    width: 150px !important;
    max-width: 150px !important;
    height: 68px !important;
    object-fit: contain !important;
  }

  .mobile-toggle {
    display: inline-flex !important;
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1100 !important;
  }

  .hero-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
    overflow: hidden !important;
    gap: 24px !important;
  }

  .hero-content,
  .hero-content h1,
  .hero-content p {
    max-width: 100% !important;
  }

  .hero-content h1 {
    font-size: 36px !important;
    line-height: 1.12 !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
  }

  .hero-trust {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .hero-mini-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
  }

  .hero-mini-stats > div {
    min-width: 0 !important;
    width: 100% !important;
  }

  .stats-section {
    padding: 36px 0 34px !important;
  }

  .stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    padding-top: 4px !important;
    padding-bottom: 14px !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .stats::-webkit-scrollbar { display: none !important; }

  .stats .stat {
    flex: 0 0 155px !important;
    width: 155px !important;
    min-width: 155px !important;
    max-width: 155px !important;
    min-height: 150px !important;
    scroll-snap-align: start !important;
  }

  .why-section {
    padding: 34px 0 42px !important;
  }

  .why-section .section-title {
    text-align: center !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
    margin: 0 auto 20px !important;
    display: block !important;
  }

  .why-section .section-title span {
    display: block !important;
    margin-left: 0 !important;
    white-space: normal !important;
  }

  .why-section .grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    padding: 6px 0 12px !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .why-section .grid::-webkit-scrollbar { display: none !important; }

  .why-section .grid .card {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    min-height: 220px !important;
    scroll-snap-align: start !important;
  }

  .section-head-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .section-head-row > div {
    min-width: 0 !important;
  }

  .section-head-row .left-title {
    font-size: 28px !important;
    line-height: 1.1 !important;
    margin: 0 0 4px !important;
    text-align: left !important;
    display: block !important;
  }

  .section-head-row .left-title span {
    display: inline !important;
    margin-left: 6px !important;
  }

  .section-head-row .left-subtitle {
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .section-head-row .btn {
    flex: 0 0 auto !important;
    min-width: 88px !important;
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
  }

  #premiumMembers.profile-scroll,
  #forYouMembers.profile-scroll,
  .profile-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 14px 0 22px !important;
    scroll-snap-type: x proximity !important;
  }

  .profile-scroll::-webkit-scrollbar { display: none !important; }

  .profile-card.premium-lock-card {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
  }

  .profile-card.premium-lock-card .premium-lock-image img {
    object-position: center top !important;
  }

  .success-preview {
    padding: 42px 0 !important;
  }

  .success-preview .section-title {
    text-align: center !important;
    display: block !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    margin: 0 auto 8px !important;
    white-space: normal !important;
  }

  .success-preview .section-title span {
    display: inline !important;
    margin-left: 6px !important;
    white-space: nowrap !important;
  }

  .success-preview .section-subtitle {
    text-align: center !important;
    margin: 0 auto 22px !important;
    max-width: 290px !important;
  }
}

/* =========================================================
   Membership UPI payment popup - mobile UI polish only
   Keeps payment logic, uploads, IDs, and JS behavior unchanged.
   ========================================================= */
@media (max-width: 640px) {
  #upiPaymentModal.upi-modal {
    align-items: flex-start;
    justify-content: center;
    padding: 14px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  #upiPaymentModal .upi-modal-card {
    width: min(92vw, 420px);
    max-width: 100%;
    max-height: none;
    margin: 4px auto 18px;
    padding: 22px 18px 24px;
    border-radius: 24px;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #upiPaymentModal .upi-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f6;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(233, 30, 99, 0.12);
    z-index: 2;
  }

  #upiPaymentModal .upi-modal-header {
    align-items: flex-start;
    gap: 12px;
    padding-right: 48px;
    margin-bottom: 18px;
  }

  #upiPaymentModal .upi-lock-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  #upiPaymentModal .upi-modal-header h2 {
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.08;
    margin: 0 0 6px;
  }

  #upiPaymentModal .upi-modal-header p {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    max-width: 190px;
  }

  #upiPaymentModal .upi-amount-box {
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
    gap: 8px 12px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 18px;
    box-sizing: border-box;
  }

  #upiPaymentModal .upi-amount-box span {
    line-height: 1.25;
  }

  #upiPaymentModal .upi-amount-box strong {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.05;
    text-align: left;
    overflow-wrap: anywhere;
  }

  #upiPaymentModal .upi-amount-box small {
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
  }

  #upiPaymentModal .upi-qr-box {
    width: 100%;
    padding: 16px 14px;
    border-radius: 20px;
    margin: 0 0 18px;
    box-sizing: border-box;
  }

  #upiPaymentModal .upi-qr-preview-btn {
    display: block;
    width: min(100%, 224px);
    margin: 0 auto;
    padding: 0;
  }

  #upiPaymentModal .upi-qr-box img {
    width: min(100%, 212px);
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
  }

  #upiPaymentModal .upi-qr-box p {
    max-width: 250px;
    margin: 12px auto 0;
    line-height: 1.25;
  }

  #upiPaymentModal #upiSteps {
    margin-bottom: 18px;
  }

  #upiPaymentModal #upiPayLink {
    width: fit-content;
    min-width: 164px;
    min-height: 48px;
    justify-content: center;
    margin-bottom: 14px;
  }

  #upiPaymentModal .upi-id-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 12px 12px;
    box-sizing: border-box;
    line-height: 1.3;
    flex-wrap: wrap;
  }

  #upiPaymentModal .upi-id-line b {
    overflow-wrap: anywhere;
  }

  #upiPaymentModal .upi-id-line button {
    float: none;
    padding: 0;
    margin-left: auto;
  }

  #upiPaymentModal .upi-label {
    margin: 18px 0 10px;
    font-size: 18px;
    line-height: 1.25;
  }

  #upiPaymentModal .upi-upload-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    box-sizing: border-box;
  }

  #upiPaymentModal .upi-upload-row .btn {
    width: auto;
    min-width: 176px;
    min-height: 46px;
    justify-content: center;
    padding: 12px 18px;
  }

  #upiPaymentModal .upi-upload-row span {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  #upiPaymentModal .upi-input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  #upiPaymentModal #paymentMessage {
    margin: 14px 0 0;
  }

  #upiPaymentModal .verify-payment-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    justify-content: center;
    white-space: normal;
  }

  #upiPaymentModal .upi-note {
    max-width: 260px;
    margin: 16px auto 0;
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  #upiPaymentModal .upi-modal-card {
    width: 94vw;
    padding: 20px 16px 22px;
  }

  #upiPaymentModal .upi-amount-box {
    grid-template-columns: 1fr;
  }

  #upiPaymentModal .upi-amount-box strong {
    text-align: left;
  }
}

/* =========================================================
   Membership UPI payment popup - premium mobile UI upgrade
   UI/CSS only: no payment logic, upload handling, IDs, or API calls changed.
   ========================================================= */
@media (max-width: 640px) {
  #upiPaymentModal.upi-modal {
    background:
      radial-gradient(circle at 18% 10%, rgba(233, 30, 99, 0.22), transparent 30%),
      radial-gradient(circle at 92% 88%, rgba(214, 158, 46, 0.18), transparent 34%),
      rgba(14, 10, 14, 0.64);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 12px 22px;
  }

  #upiPaymentModal .upi-modal-card {
    width: min(92vw, 420px);
    padding: 26px 20px 28px;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,248,251,0.98) 48%, #ffffff 100%);
    border: 1px solid rgba(255, 204, 224, 0.9);
    box-shadow: 0 28px 80px rgba(18, 14, 18, 0.28), 0 8px 22px rgba(233, 30, 99, 0.12);
  }

  #upiPaymentModal .upi-modal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    border-radius: 30px 30px 0 0;
    background:
      radial-gradient(circle at 18% 20%, rgba(233, 30, 99, 0.12), transparent 38%),
      linear-gradient(90deg, rgba(255, 240, 246, 0.9), rgba(255, 250, 236, 0.72));
    pointer-events: none;
  }

  #upiPaymentModal .upi-modal-card > * {
    position: relative;
    z-index: 1;
  }

  #upiPaymentModal .upi-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #fff, #fff0f6);
    border: 1px solid rgba(255, 210, 228, 0.95);
    color: var(--primary);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.16);
    font-size: 25px;
  }

  #upiPaymentModal .upi-modal-header {
    gap: 14px;
    margin-bottom: 20px;
    padding-right: 48px;
  }

  #upiPaymentModal .upi-lock-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffe6f0, #fff6dc);
    border: 1px solid rgba(255, 210, 228, 0.95);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.12);
  }

  #upiPaymentModal .upi-modal-header h2 {
    font-size: clamp(25px, 6.4vw, 30px);
    letter-spacing: -0.03em;
    color: #171821;
  }

  #upiPaymentModal .upi-modal-header p {
    font-size: 16px;
    line-height: 1.28;
    color: #68616a;
    max-width: 220px;
  }

  #upiPaymentModal .upi-amount-box {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 18px 18px;
    margin-bottom: 20px;
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(255, 246, 220, 0.82)),
      #fff7fb;
    border: 1px solid rgba(255, 193, 218, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 14px 28px rgba(233, 30, 99, 0.08);
  }

  #upiPaymentModal .upi-amount-box span {
    font-size: 15px;
    color: #6d6670;
  }

  #upiPaymentModal .upi-amount-box strong {
    font-size: clamp(32px, 8.6vw, 40px);
    font-weight: 950;
    letter-spacing: -0.04em;
    color: var(--primary);
    text-shadow: 0 8px 18px rgba(233, 30, 99, 0.12);
  }

  #upiPaymentModal .upi-amount-box small {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    color: #6d6670;
    font-size: 12px;
    font-weight: 800;
  }

  #upiPaymentModal .upi-qr-box {
    padding: 18px 14px 17px;
    margin-bottom: 20px;
    border-radius: 24px;
    border: 1px dashed rgba(233, 30, 99, 0.28);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,247,251,0.96));
    box-shadow: 0 14px 34px rgba(22, 15, 20, 0.06);
  }

  #upiPaymentModal .upi-qr-preview-btn {
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22, 15, 20, 0.08);
    overflow: hidden;
  }

  #upiPaymentModal .upi-qr-box img {
    width: min(100%, 218px);
    border-radius: 22px;
    padding: 12px;
    box-shadow: none;
  }

  #upiPaymentModal .upi-qr-box p {
    max-width: 270px;
    margin-top: 14px;
    color: #68616a;
    font-size: 13px;
    line-height: 1.35;
  }

  #upiPaymentModal #upiPayLink,
  #upiPaymentModal .verify-payment-btn {
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(233, 30, 99, 0.22);
    font-weight: 950;
  }

  #upiPaymentModal #upiPayLink {
    min-width: 170px;
    margin-bottom: 16px;
  }

  #upiPaymentModal .upi-id-line {
    padding: 13px 14px;
    border-radius: 17px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(238, 225, 231, 0.95);
    box-shadow: 0 8px 20px rgba(22, 15, 20, 0.04);
  }

  #upiPaymentModal .upi-id-line button {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff0f6;
  }

  #upiPaymentModal .upi-label {
    margin: 20px 0 10px;
    font-size: 18px;
    color: #24212a;
    letter-spacing: -0.01em;
  }

  #upiPaymentModal .upi-upload-row {
    padding: 16px;
    gap: 13px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fff9fc);
    border: 1px solid rgba(238, 225, 231, 0.95);
    box-shadow: 0 12px 26px rgba(22, 15, 20, 0.05);
  }

  #upiPaymentModal .upi-upload-row .btn {
    min-height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid rgba(233, 30, 99, 0.55);
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.08);
  }

  #upiPaymentModal .upi-upload-row span {
    color: #6d6670;
    font-size: 13px;
  }

  #upiPaymentModal .upi-input {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(238, 225, 231, 0.95);
    background: rgba(255,255,255,0.92);
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.92), 0 8px 20px rgba(22, 15, 20, 0.04);
  }

  #upiPaymentModal .verify-payment-btn {
    min-height: 56px;
    margin-top: 26px;
  }

  #upiPaymentModal .upi-note {
    max-width: 290px;
    color: #68616a;
    font-size: 12.5px;
  }
}

@media (max-width: 380px) {
  #upiPaymentModal .upi-modal-card {
    padding: 24px 16px 26px;
  }

  #upiPaymentModal .upi-modal-header p {
    max-width: 180px;
  }
}

/* =========================================================
   Final UPI mobile popup polish: close position, clean amount, remove mobile UPI button
   UI-only changes. Payment/upload logic unchanged.
   ========================================================= */
@media (max-width: 640px) {
  #upiPaymentModal .upi-modal-card {
    position: relative !important;
    overflow-x: hidden !important;
  }

  #upiPaymentModal .upi-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    transform: none !important;
    z-index: 20 !important;
  }

  #upiPaymentModal .upi-modal-header {
    padding-right: 58px !important;
  }

  #upiPaymentModal .upi-amount-box strong {
    white-space: nowrap !important;
  }

  #upiPaymentModal #upiPayLink {
    display: none !important;
  }
}

/* ==========================
   CONTACT MOBILE CROP FIX
   UI only: keep form/contact logic unchanged
========================== */
.premium-contact-page,
.premium-contact-page * {
  box-sizing: border-box;
}

.premium-contact-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.premium-contact-page .container,
.premium-contact-section .container,
.contact-page-grid,
.contact-form-card,
.contact-info-card,
.contact-trust-row {
  max-width: 100%;
}

.contact-form-card .premium-field input,
.contact-form-card .premium-field textarea {
  max-width: 100%;
}

.premium-info-list p,
.contact-trust-row strong,
.contact-trust-row small,
.premium-help-box p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 560px) {
  .premium-contact-section {
    padding: 18px 0 54px;
  }

  .premium-contact-section > .container,
  .premium-contact-page .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .premium-contact-grid,
  .contact-page-grid.premium-contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px;
    width: 100%;
  }

  .premium-contact-card,
  .contact-form-card,
  .contact-info-card {
    width: 100%;
    min-width: 0;
    padding: 28px 22px !important;
    border-radius: 22px;
    overflow: hidden;
  }

  .premium-card-title {
    gap: 14px;
    margin-bottom: 24px;
  }

  .premium-card-title > span {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .premium-card-title h2,
  .contact-form-card .premium-card-title h2,
  .contact-info-card .premium-card-title h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .contact-form-card .premium-field input,
  .contact-form-card .premium-field textarea {
    width: 100% !important;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-form-card .premium-field textarea {
    min-height: 170px;
  }

  .premium-submit-btn,
  .btn.premium-submit-btn {
    width: 100%;
    min-width: 0;
  }

  .premium-info-list {
    gap: 12px;
  }

  .premium-info-list div {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 14px 14px;
    gap: 13px;
  }

  .premium-info-list span {
    width: 66px;
    height: 50px;
    flex: 0 0 46px;
  }

  .premium-info-list p {
    min-width: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .premium-help-box {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 18px;
  }

  .premium-help-box .help-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 24px;
  }

  .premium-help-box h3 {
    font-size: 27px;
    line-height: 1.05;
  }

  .premium-chat-btn,
  .btn.outline.premium-chat-btn {
    width: 100%;
    max-width: 180px;
    margin-top: 4px;
  }

  .contact-trust-row {
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
  }

  .contact-trust-row div {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 20px 18px;
    column-gap: 14px;
  }
}

@media (max-width: 390px) {
  .premium-contact-section > .container,
  .premium-contact-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .premium-contact-card,
  .contact-form-card,
  .contact-info-card {
    padding: 26px 18px !important;
  }

  .premium-card-title h2,
  .contact-form-card .premium-card-title h2,
  .contact-info-card .premium-card-title h2 {
    font-size: 28px;
  }

  .contact-trust-row {
    width: calc(100% - 32px);
  }
}

/* =====================================================
   MESSAGES MOBILE CLEAN UI FIX
   UI only: keeps existing chat/search/send logic unchanged.
   - Removes mobile cropping/overflow
   - Turns chat list into horizontal cards on mobile
   - Makes conversation area cleaner and easier to read
===================================================== */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .messages-hero {
    padding: 44px 0 30px;
  }

  .messages-hero .container,
  .messages-section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }

  .messages-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: .95;
    margin-bottom: 14px;
  }

  .messages-hero p {
    font-size: 19px;
    line-height: 1.35;
    max-width: 320px;
  }

  .messages-section {
    padding: 24px 0 64px;
  }

  .messages-shell {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    min-height: auto;
    box-sizing: border-box;
  }

  .convos-panel,
  .chat-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #f7c9d8;
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(233, 30, 99, .08);
  }

  .convos-panel {
    padding: 18px 16px 16px;
    border-right: 1px solid #f7c9d8;
    border-bottom: 1px solid #f7c9d8;
  }

  .messages-panel-head {
    margin-bottom: 14px;
  }

  .messages-panel-head h2 {
    font-size: 28px;
  }

  .chat-search-wrap {
    height: 52px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .conversation-list {
    max-height: none;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .conversation-list::-webkit-scrollbar {
    display: none;
  }

  .modern-convo {
    flex: 0 0 235px;
    width: 235px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    margin: 0;
    border: 1px solid #f7d4df;
    border-radius: 20px;
    scroll-snap-align: start;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .05);
  }

  .modern-convo.active,
  .modern-convo:hover {
    background: #fff2f7;
    border-color: #ffb6cf;
    box-shadow: 0 12px 26px rgba(233, 30, 99, .12), inset 4px 0 0 var(--primary);
  }

  .modern-convo small {
    display: none !important;
  }

  .modern-convo .avatar,
  .chat-person img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .chat-panel {
    min-height: auto;
    background: #fffafb;
  }

  .chat-preview-panel {
    display: none !important;
  }

  .chat-topbar {
    min-height: auto;
    padding: 16px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #fff;
  }

  .chat-person {
    min-width: 0;
    gap: 12px;
    flex: 1 1 auto;
  }

  .chat-person h2 {
    font-size: 24px;
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #chatMeta {
    font-size: 13px;
    line-height: 1.35;
  }

  .chat-topbar .small-btn {
    flex: 0 0 auto;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    font-size: 13px;
  }

  .safe-note {
    margin: 14px 16px 0;
    padding: 12px 13px;
    align-items: flex-start;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.3;
  }

  .safe-note i {
    margin-top: 2px;
    flex: 0 0 auto;
  }

  .chat-body {
    padding: 16px;
    min-height: 280px;
    max-height: 430px;
    overflow-y: auto;
  }

  .modern-bubble {
    max-width: 86%;
    padding: 12px 14px;
    border-radius: 18px 18px 18px 6px;
    font-size: 15px;
    word-break: break-word;
  }

  .modern-bubble.me {
    border-radius: 18px 18px 6px 18px;
  }

  .modern-send-row {
    padding: 12px 14px 16px;
    gap: 10px;
    border-top: 1px solid #f7c9d8;
  }

  .modern-send-row input {
    min-width: 0;
    height: 54px;
    border-radius: 18px;
    font-size: 15px;
  }

  .send-btn {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px !important;
  }
}

@media (max-width: 390px) {
  .messages-hero .container,
  .messages-section .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .convos-panel {
    padding: 16px 12px 14px;
  }

  .modern-convo {
    flex-basis: 220px;
    width: 220px;
  }

  .chat-topbar {
    padding: 14px 12px;
  }

  .chat-person h2 {
    font-size: 21px;
  }
}

/* Profile details mobile premium UI polish - UI only */
* { box-sizing: border-box; }

.profile-view-header,
.profile-section-card,
.similar-profile-section,
#profileDetails,
#similarProfiles {
  max-width: 100%;
}

.profile-view-header {
  position: relative;
  overflow: hidden;
}

.profile-view-header::before {
  content: "";
  position: absolute;
  inset: -80px -90px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.profile-view-header > * {
  position: relative;
  z-index: 1;
}

.profile-section-card {
  overflow: hidden;
}

.profile-photo-grid,
.profile-photo-thumb,
.profile-photo-thumb img {
  max-width: 100%;
}

.similar-profile-section .container {
  max-width: 100%;
}

@media (max-width: 640px) {
  body,
  main,
  .page-hero,
  .container,
  #profileDetails,
  .similar-profile-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-hero .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: .92;
  }

  .profile-view-header {
    width: calc(100% - 28px);
    margin: 32px auto 26px;
    padding: 18px 16px 24px;
    border-radius: 30px;
    display: block;
    background:
      radial-gradient(circle at 15% 4%, rgba(255,255,255,.85), transparent 34%),
      linear-gradient(165deg, #fff6fb 0%, #ffe4ef 62%, #fff7fb 100%);
    border: 1px solid rgba(233, 30, 99, .12);
    box-shadow: 0 20px 46px rgba(233, 30, 99, .14);
  }

  .profile-view-photo,
  .profile-view-photo.clean-profile-photo {
    width: 100%;
    margin: 0 auto 22px;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(135deg, #ffe5f0, #fff);
    box-shadow: inset 0 0 0 1px rgba(233, 30, 99, .08);
  }

  .profile-view-photo img,
  .clean-profile-photo img,
  #mainProfilePhoto {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(0,0,0,.13);
  }

  .profile-hero-badges {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
  }

  .profile-hero-badges .badge,
  .membership-profile-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 8px 22px rgba(233, 30, 99, .10);
  }

  .profile-view-main {
    text-align: center;
  }

  .profile-view-main h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
    margin: 12px 0 12px;
  }

  .profile-view-main p {
    font-size: 16px;
    line-height: 1.55;
    margin: 8px auto;
    max-width: 300px;
  }

  .profile-view-actions {
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
  }

  .profile-view-actions .btn {
    min-width: 150px;
    border-radius: 16px;
  }

  .profile-match-box {
    display: none !important;
  }

  .profile-view-grid {
    width: calc(100% - 28px);
    margin: 0 auto 36px;
    gap: 18px;
  }

  .profile-section-card {
    width: 100%;
    max-width: 100%;
    padding: 24px 20px;
    border-radius: 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(233, 30, 99, .10);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
  }

  .profile-section-card h2 {
    font-size: 30px;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .profile-info-list > div,
  .profile-info-list div {
    min-width: 0;
  }

  .profile-photo-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    margin: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .profile-photo-grid::-webkit-scrollbar,
  #similarProfiles::-webkit-scrollbar {
    display: none;
  }

  .profile-photo-thumb {
    flex: 0 0 86%;
    min-width: 0;
    scroll-snap-align: start;
    border-radius: 20px;
    padding: 7px;
  }

  .profile-photo-thumb img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
  }

  .similar-profile-section {
    padding: 18px 0 40px;
    overflow-x: hidden;
  }

  .similar-profile-section .container {
    padding-left: 20px;
    padding-right: 0;
    overflow: visible;
  }

  .similar-profile-section .section-title {
    display: block;
    text-align: left;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.05;
    margin: 0 20px 20px 0;
    letter-spacing: -0.6px;
  }

  .similar-profile-section .section-title span {
    display: inline;
    margin-left: 4px;
  }

  #similarProfiles.grid,
  #similarProfiles {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 20px 24px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #similarProfiles .profile-card,
  #similarProfiles .search-profile-card,
  #similarProfiles .premium-lock-card {
    flex: 0 0 min(315px, 84vw) !important;
    width: min(315px, 84vw) !important;
    max-width: min(315px, 84vw) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    border-radius: 26px !important;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12) !important;
  }

  #similarProfiles .profile-card img,
  #similarProfiles .premium-lock-image,
  #similarProfiles .premium-lock-image img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  .profile-view-header,
  .profile-view-grid {
    width: calc(100% - 20px);
  }

  .profile-section-card {
    padding: 22px 16px;
  }

  .profile-view-actions .btn {
    width: 100%;
  }

  .profile-photo-thumb {
    flex-basis: 92%;
  }
}

/* Final profile mobile fixes: square photo thumbnails + contained navbar logo */
@media (max-width: 640px) {
  .topbar,
  .navbar,
  header,
  .nav-container {
    overflow: hidden;
  }

  .topbar .brand-logo,
  .topbar .logo,
  .navbar .brand-logo,
  .navbar .logo,
  header .brand-logo,
  header .logo {
    height: 64px !important;
    max-height: 64px !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  .topbar .site-logo-img,
  .navbar .site-logo-img,
  header .site-logo-img,
  .site-logo-img {
    width: auto !important;
    max-width: 150px !important;
    height: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .profile-photo-grid {
    align-items: stretch;
  }

  .profile-photo-thumb {
    flex: 0 0 min(250px, 78vw) !important;
    width: min(250px, 78vw) !important;
    max-width: min(250px, 78vw) !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
  }

  .profile-photo-thumb img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .profile-photo-thumb span {
    top: 12px !important;
    left: 12px !important;
  }
}

@media (max-width: 390px) {
  .topbar .site-logo-img,
  .navbar .site-logo-img,
  header .site-logo-img,
  .site-logo-img {
    max-width: 138px !important;
    height: 50px !important;
    max-height: 50px !important;
  }

  .profile-photo-thumb {
    flex-basis: min(230px, 76vw) !important;
    width: min(230px, 76vw) !important;
    max-width: min(230px, 76vw) !important;
  }
}

/* =========================================================
   GLOBAL MOBILE NAVBAR FIX
   Scope: mobile only. Keeps desktop/backend/logic untouched.
   Makes hamburger left, logo centered, menu same on all pages.
========================================================= */
@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }

  .topbar {
    height: 80px !important;
    min-height: 80px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(236, 72, 153, 0.13) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07) !important;
    overflow: visible !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
  }

  .topbar .container.nav,
  .topbar .nav,
  header.topbar .container.nav {
    width: 100% !important;
    max-width: 100% !important;
    height: 80px !important;
    min-height: 80px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    display: grid !important;
    grid-template-columns: 52px 1fr 52px !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: 0 !important;
    position: relative !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .topbar .mobile-toggle,
  header.topbar .mobile-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 23px !important;
    color: #e91e63 !important;
    background: #fff7fb !important;
    border: 1px solid #ffd2e3 !important;
    box-shadow: 0 8px 22px rgba(233, 30, 99, 0.12) !important;
    z-index: 3 !important;
  }

  .topbar .brand-logo,
  .topbar .logo,
  header.topbar .brand-logo,
  header.topbar .logo {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    height: 62px !important;
    min-height: 0 !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    z-index: 2 !important;
  }

  .topbar .site-logo-img,
  header.topbar .site-logo-img,
  .site-logo-img {
    width: auto !important;
    max-width: 142px !important;
    height: 50px !important;
    max-height: 50px !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .topbar .menu,
  header.topbar .menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 14px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 26px 28px 20px !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(236, 72, 153, 0.18) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
    z-index: 9998 !important;
    overflow: visible !important;
  }

  .topbar .menu.show,
  header.topbar .menu.show {
    display: flex !important;
  }

  .topbar .nav-links,
  header.topbar .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .topbar .nav-links a,
  header.topbar .nav-links a {
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111827 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  .topbar .nav-links a.active,
  header.topbar .nav-links a.active {
    color: #e91e63 !important;
  }

  .topbar .nav-account,
  header.topbar .nav-account {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-top: 4px !important;
    flex-wrap: wrap !important;
  }

  .topbar .message-icon-link,
  .topbar .notification-icon-link,
  .topbar .profile-icon-link,
  header.topbar .message-icon-link,
  header.topbar .notification-icon-link,
  header.topbar .profile-icon-link {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e8edf5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07) !important;
  }

  .topbar .login-link,
  .topbar .register-link,
  header.topbar .login-link,
  header.topbar .register-link {
    min-height: 44px !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 390px) {
  .topbar .container.nav,
  .topbar .nav,
  header.topbar .container.nav {
    padding: 0 14px !important;
    grid-template-columns: 50px 1fr 50px !important;
  }

  .topbar .site-logo-img,
  header.topbar .site-logo-img,
  .site-logo-img {
    max-width: 132px !important;
    height: 48px !important;
    max-height: 48px !important;
  }

  .topbar .mobile-toggle,
  header.topbar .mobile-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}


/* Admin link visibility safety fix: mobile menu CSS uses display: block !important,
   so keep Admin hidden unless session.js confirms the logged-in user is an admin. */
.admin-nav-link:not(.is-admin-visible),
.topbar .nav-links a.admin-nav-link:not(.is-admin-visible),
header.topbar .nav-links a.admin-nav-link:not(.is-admin-visible) {
  display: none !important;
}

.admin-nav-link[hidden] {
  display: none !important;
}

/* === Premium Admin Dashboard Desktop UI Refresh === */
.admin-body {
  --admin-dark: #0f172a;
  --admin-dark-2: #111827;
  --admin-muted: #64748b;
  --admin-border: #f3d2df;
  --admin-pink: #e91e63;
  --admin-bg: #f8fafc;
  background: var(--admin-bg) !important;
}

.admin-body .admin-header {
  min-height: 86px !important;
  background: linear-gradient(135deg, #fff8fb 0%, #fff8fb 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .18) !important;
}

.admin-body .admin-header-left img {
  width: 128px !important;
  height: 58px !important;
  border-radius: 10px !important;
  background: #fff8fb !important;
}

.admin-body .admin-header-left h2 {
  font-size: 23px !important;
  letter-spacing: -.02em;
}

.admin-body .admin-header-left span {
  color: #101827 !important;
  font-size: 14px !important;
}

.admin-body .admin-header-right {
  align-items: center !important;
  gap: 12px !important;
}

.admin-body .admin-header-right .btn {
  min-width: 150px !important;
  height: 48px !important;
  border-radius: 12px !important;
  font-weight: 900 !important;
  gap: 9px !important;
  box-shadow: 0 12px 30px rgba(233,30,99,.18);
}

.admin-body .admin-header-right .btn.outline {
  color: #101827 !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(233,30,99,.7) !important;
  box-shadow: none !important;
}

.admin-notification-chip {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #101827;
  font-size: 20px;
}
.admin-notification-chip span {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--admin-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.admin-profile-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #101827 !important;
  padding: 6px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.admin-profile-chip .admin-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe0ea, #fff3da);
  color: #111827;
  font-weight: 950;
  font-size: 20px;
  border: 2px solid rgba(255,255,255,.45);
}
.admin-profile-chip strong,
.admin-profile-chip small { display: block; line-height: 1.15; }
.admin-profile-chip small { margin-top: 3px; color: #101827 !important; }

.admin-body .admin-section .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.admin-body .admin-section {
  padding-top: 0 !important;
}
.admin-body .admin-layout {
  grid-template-columns: 290px minmax(0, 1fr) !important;
  gap: 0 !important;
  min-height: calc(100vh - 86px);
}

.admin-body .admin-sidebar {
  position: sticky !important;
  top: 86px !important;
  align-self: start !important;
  min-height: calc(100vh - 86px) !important;
  max-height: calc(100vh - 86px) !important;
  border-radius: 0 !important;
  padding: 38px 22px 28px !important;
  background: radial-gradient(circle at 80% 100%, rgba(233,30,99,.18), transparent 28%), linear-gradient(180deg, #101827 0%, #0b1220 100%) !important;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 14px 0 42px rgba(15,23,42,.15);
}

.admin-body .admin-sidebar h3 {
  margin: 0 0 18px !important;
  color: rgba(255,255,255,.58) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.admin-body .admin-side-link {
  min-height: 56px;
  padding: 15px 18px !important;
  margin-bottom: 10px !important;
  border-radius: 13px !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  gap: 14px !important;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease !important;
}
.admin-body .admin-side-link i {
  width: 22px !important;
  flex: 0 0 22px !important;
  font-size: 18px;
  color: rgba(255,255,255,.84);
}
.admin-body .admin-side-link.active,
.admin-body .admin-side-link:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #ec1f69 0%, #db1b5d 100%) !important;
  box-shadow: 0 16px 34px rgba(233,30,99,.34);
  transform: translateX(4px);
}
.admin-body .admin-side-link.active i,
.admin-body .admin-side-link:hover i { color: #fff !important; }

.admin-body .admin-sidebar::after {
  content: "\f3ed  Secure Admin Panel\A All data is protected";
  font-family: "Font Awesome 6 Free", inherit;
  font-weight: 900;
  white-space: pre-line;
  display: block;
  margin-top: 70px;
  padding: 18px 18px 18px 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(233,30,99,.14), rgba(124,58,237,.14));
  color: #fff;
  line-height: 1.6;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.admin-body .admin-main {
  padding: 30px 32px 42px !important;
  background: #f8fafc;
  min-height: calc(100vh - 86px) !important;
}

.admin-body .admin-dashboard-panel.active {
  padding: 0 !important;
}

.admin-body .admin-topbar.admin-hero-dashboard {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 38px !important;
  margin-bottom: 26px !important;
  border: 1px solid var(--admin-border);
  border-radius: 20px !important;
  color: #101827 !important;
  background: radial-gradient(circle at 96% 92%, rgba(233,30,99,.11), transparent 18%), linear-gradient(135deg, #fff 0%, #fff3f8 100%) !important;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .07) !important;
}
.admin-body .admin-hero-copy h2 {
  margin: 0 0 12px !important;
  color: #101827 !important;
  font-size: clamp(28px, 2.3vw, 34px) !important;
  letter-spacing: -.03em;
}
.admin-body .admin-hero-copy p {
  margin: 0 0 30px !important;
  color: #475569 !important;
  font-size: 16px !important;
}
.admin-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #334155;
  font-weight: 800;
}
.admin-hero-date i { color: var(--admin-pink); }
.admin-hero-art {
  position: relative;
  flex: 0 0 360px;
  height: 130px;
}
.admin-laptop {
  position: absolute;
  right: 30px;
  bottom: 8px;
  width: 205px;
  height: 112px;
  background: #111827;
  border-radius: 10px 10px 4px 4px;
  padding: 10px;
  box-shadow: 0 20px 36px rgba(15,23,42,.22);
}
.admin-laptop::after {
  content:"";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -10px;
  height: 12px;
  border-radius: 0 0 18px 18px;
  background: #94a3b8;
}
.admin-laptop-screen {
  height: 100%;
  border-radius: 6px;
  background: #fff;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: end;
}
.admin-laptop-screen i {
  display: block;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #f472b6, #e91e63);
}
.admin-laptop-screen i:nth-child(1){ height: 30px; }
.admin-laptop-screen i:nth-child(2){ height: 48px; }
.admin-laptop-screen i:nth-child(3){ height: 38px; }
.admin-laptop-screen b {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: conic-gradient(#e91e63 0 42%, #111827 42% 70%, #fed7e6 70% 100%);
}
.admin-plant { position:absolute; right:260px; bottom:12px; width:70px; height:96px; }
.admin-plant::after { content:""; position:absolute; bottom:0; left:21px; width:34px; height:34px; border-radius:4px 4px 12px 12px; background:#334155; }
.admin-plant span::before,
.admin-plant span::after { content:""; position:absolute; bottom:30px; width:30px; height:62px; border-radius:30px 0; background:#f472b6; opacity:.75; }
.admin-plant span::before { left:8px; transform:rotate(-24deg); }
.admin-plant span::after { right:4px; transform:rotate(28deg); }

.admin-body .admin-dashboard-stats {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}
.admin-body .dashboard-stat-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 140px !important;
  padding: 24px 24px 22px !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-top: 3px solid #2563eb !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.admin-body .dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, .12) !important;
}
.admin-body .dashboard-stat-card::after { display: none !important; }
.admin-body .dashboard-stat-card span {
  display: contents !important;
}
.admin-body .dashboard-stat-card span i {
  grid-row: 1 / span 3;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 25px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 16px 28px rgba(37,99,235,.26);
}
.admin-body .dashboard-stat-card span { color: #253047 !important; }
.admin-body .dashboard-stat-card strong {
  grid-column: 2;
  font-size: 40px !important;
  line-height: .95 !important;
  color: #101827 !important;
}
.admin-body .dashboard-stat-card small {
  grid-column: 2;
  margin-top: 0 !important;
  color: #64748b !important;
  font-size: 14px;
}
.admin-body .dashboard-stat-card span::after {
  content: "0 today";
  grid-column: 3;
  align-self: end;
  justify-self: end;
  padding: 7px 11px;
  border-radius: 999px;
  color: #2563eb;
  background: #eaf3ff;
  font-size: 13px;
  font-weight: 900;
}
.admin-body .dashboard-stat-card.accent-green { border-top-color:#10b981 !important; }
.admin-body .dashboard-stat-card.accent-green span i { background: linear-gradient(135deg,#10b981,#00c782); box-shadow:0 16px 28px rgba(16,185,129,.25); }
.admin-body .dashboard-stat-card.accent-green span::after { content:"1 today"; color:#059669; background:#def7ec; }
.admin-body .dashboard-stat-card.accent-orange { border-top-color:#f59e0b !important; }
.admin-body .dashboard-stat-card.accent-orange span i { background:linear-gradient(135deg,#f97316,#f59e0b); box-shadow:0 16px 28px rgba(245,158,11,.25); }
.admin-body .dashboard-stat-card.accent-orange span::after { content:"1 today"; color:#d97706; background:#fff1dc; }
.admin-body .dashboard-stat-card.accent-pink { border-top-color:#e91e63 !important; }
.admin-body .dashboard-stat-card.accent-pink span i { background:linear-gradient(135deg,#ec1f69,#e91e63); box-shadow:0 16px 28px rgba(233,30,99,.25); }
.admin-body .dashboard-stat-card.accent-pink span::after { content:"0 today"; color:#e91e63; background:#ffe7f0; }
.admin-body .dashboard-stat-card.accent-purple { border-top-color:#8b5cf6 !important; }
.admin-body .dashboard-stat-card.accent-purple span i { background:linear-gradient(135deg,#8b5cf6,#7c3aed); box-shadow:0 16px 28px rgba(124,58,237,.25); }
.admin-body .dashboard-stat-card.accent-purple > span::after {
  content: "2 today";
  color: #7c3aed;
  background: #f1e9ff;
}
.admin-body .dashboard-stat-card.accent-purple small::after {
  content: none !important;
  display: none !important;
}
.admin-body .dashboard-stat-card.accent-red { border-top-color:#6366f1 !important; }
.admin-body .dashboard-stat-card.accent-red span i { background:linear-gradient(135deg,#6366f1,#4f46e5); box-shadow:0 16px 28px rgba(79,70,229,.25); }
.admin-body .dashboard-stat-card.accent-red span::after { content:"0 today"; color:#4f46e5; background:#e9ecff; }

.admin-body .admin-dashboard-grid {
  grid-template-columns: minmax(340px, .82fr) minmax(420px, 1.18fr) !important;
  gap: 22px !important;
}
.admin-body .admin-dashboard-card {
  border-radius: 18px !important;
  border: 1px solid #e7eaf0 !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08) !important;
  padding: 24px !important;
}
.admin-body .dashboard-card-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #101827;
  font-size: 20px !important;
  letter-spacing: -.02em;
}
.admin-body .dashboard-card-head h3 i { color: var(--admin-pink); }
.admin-body .admin-quick-actions { gap: 12px !important; }
.admin-body .admin-quick-actions button {
  min-height: 70px;
  grid-template-columns: 48px 1fr 42px 20px !important;
  border-radius: 14px !important;
  border-color: #f3d2df !important;
  background: linear-gradient(135deg, #fff 0%, #fff8fb 100%) !important;
  padding: 13px 14px !important;
}
.admin-body .admin-quick-actions button::after {
  content:"\f105";
  font-family:"Font Awesome 6 Free";
  font-weight:900;
  color:#334155;
  justify-self:end;
}
.admin-body .admin-quick-actions button span::after {
  display:block;
  margin-top:5px;
  color:#64748b;
  font-weight:700;
  font-size:13px;
}
.admin-body .admin-quick-actions button:nth-child(1) span::after { content:"Check and approve new profiles"; }
.admin-body .admin-quick-actions button:nth-child(2) span::after { content:"Verify membership payment proofs"; }
.admin-body .admin-quick-actions button:nth-child(3) span::after { content:"View all active membership users"; }
.admin-body .admin-quick-actions button:nth-child(4) span::after { content:"Check submitted user reports"; }
.admin-body .admin-quick-actions i,
.admin-body .admin-recent-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 13px !important;
  background: #ffe8f0 !important;
  color: var(--admin-pink) !important;
  font-size: 18px;
}
.admin-body .admin-quick-actions b {
  width: 38px;
  height: 38px;
  min-width: 38px !important;
  box-shadow: 0 10px 22px rgba(233,30,99,.22);
}

.admin-body .admin-recent-list {
  position: relative;
  gap: 0 !important;
  padding: 0 4px 0 12px;
}
.admin-body .admin-recent-list::before {
  content:"";
  position:absolute;
  top:18px;
  bottom:18px;
  left:35px;
  width:1px;
  background:#e5e7eb;
}
.admin-body .admin-recent-item {
  position: relative;
  grid-template-columns: 50px 1fr auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding: 13px 0 !important;
  box-shadow: none !important;
}
.admin-body .admin-recent-item:hover {
  transform: none !important;
  box-shadow: none !important;
}
.admin-body .admin-recent-icon {
  position: relative;
  z-index: 1;
  border-radius: 50% !important;
}
.admin-body .admin-recent-item em {
  color: #64748b !important;
  font-size: 13px !important;
}
.admin-body .admin-recent-item b { color: #101827; }
.admin-body .admin-recent-item small { color: #475569 !important; }

@media (max-width: 1180px) {
  .admin-body .admin-header-right .admin-profile-chip { display:none; }
  .admin-body .admin-layout { grid-template-columns: 260px minmax(0,1fr) !important; }
  .admin-body .admin-dashboard-stats { grid-template-columns: repeat(2, minmax(220px,1fr)) !important; }
  .admin-body .admin-dashboard-grid { grid-template-columns: 1fr !important; }
  .admin-hero-art { display:none; }
}

@media (max-width: 980px) {
  .admin-body .admin-section { padding-top: 14px !important; }
  .admin-body .admin-section .container { padding-left: 18px !important; padding-right: 18px !important; }
  .admin-body .admin-layout { grid-template-columns: 1fr !important; min-height: 0; }
  .admin-body .admin-main { padding: 16px 0 32px !important; min-height: 0 !important; }
  .admin-body .admin-sidebar { border-radius: 0 24px 24px 0 !important; top:0 !important; min-height:0 !important; }
  .admin-body .admin-sidebar::after { display:none; }
}

@media (max-width: 640px) {
  .admin-body .admin-notification-chip,
  .admin-body .admin-profile-chip { display: none !important; }
  .admin-body .admin-header-right .btn { min-width: 0 !important; }
  .admin-body .admin-dashboard-stats { grid-template-columns: 1fr !important; }
  .admin-body .dashboard-stat-card { grid-template-columns: 56px 1fr auto; min-height: 118px !important; padding: 18px !important; }
  .admin-body .dashboard-stat-card span i { width: 52px; height:52px; font-size:21px; }
  .admin-body .dashboard-stat-card strong { font-size: 32px !important; }
  .admin-body .dashboard-stat-card span::after { display:none; }
  .admin-body .admin-topbar.admin-hero-dashboard { min-height: 0; padding: 22px !important; }
  .admin-body .admin-quick-actions button { grid-template-columns: 42px 1fr 36px 14px !important; }
}

/* PREMIUM PROFILE APPROVALS UI - desktop polish */
.admin-body #profilesPanel.admin-polished-panel {
  background: transparent !important;
}
.admin-body #profilesPanel .admin-page-banner {
  min-height: 124px;
  align-items: center;
  border-radius: 18px !important;
  border: 1px solid #f2c7d8 !important;
  background:
    radial-gradient(circle at right bottom, rgba(233,30,99,.24) 0 70px, transparent 72px),
    linear-gradient(135deg, #111827 0%, #172033 72%, #221c38 100%) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.12) !important;
  overflow: hidden;
}
.admin-body #profilesPanel .admin-page-banner h3 {
  font-size: 30px !important;
  letter-spacing: -.04em;
  margin: 7px 0 4px !important;
}
.admin-body #profilesPanel .admin-page-banner p { color: rgba(255,255,255,.82) !important; }
.admin-body #profilesPanel .admin-page-badge {
  border: 0 !important;
  color: #e91e63 !important;
  background: #fff !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
  padding: 13px 20px !important;
}
.admin-body #profilesPanel .admin-mini-metrics {
  grid-template-columns: repeat(3, minmax(190px,1fr));
  gap: 16px !important;
  margin: 18px 0 !important;
}
.admin-body #profilesPanel .admin-mini-metrics > div {
  min-height: 104px;
  border-radius: 16px !important;
  border: 1px solid #f2cad9 !important;
  background:
    radial-gradient(circle at right bottom, rgba(233,30,99,.13) 0 36px, transparent 38px),
    linear-gradient(135deg, #fff 0%, #fff9fc 100%) !important;
  box-shadow: 0 14px 32px rgba(15,23,42,.055);
  padding: 22px 22px !important;
}
.admin-body #profilesPanel .admin-mini-metrics span {
  color: #64748b !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-body #profilesPanel .admin-mini-metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 32px !important;
  line-height: 1;
  color: #e91e63 !important;
}
.admin-body #profilesPanel .profile-approval-head {
  display: grid !important;
  grid-template-columns: minmax(240px,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  border: 1px solid #f2cad9 !important;
  background: #fff !important;
  box-shadow: 0 16px 38px rgba(15,23,42,.06) !important;
}
.admin-body #profilesPanel .profile-approval-head h3 {
  font-size: 21px !important;
  margin: 4px 0 3px !important;
  color: #101827 !important;
}
.admin-body #profilesPanel .profile-approval-head p { color: #64748b !important; }
.admin-body #profilesPanel .admin-profile-toolbar {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px !important;
}
.admin-body #profilesPanel .admin-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.admin-body #profilesPanel .admin-toolbar-left .btn,
.admin-body #profilesPanel .admin-profile-toolbar .btn {
  height: 43px;
  border-radius: 12px !important;
  padding: 0 18px !important;
  box-shadow: none !important;
}
.admin-body #profilesPanel .admin-search-field {
  width: min(360px, 100%);
  height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #f0bdd1;
  background: #fff;
}
.admin-body #profilesPanel .admin-search-field i { color: #e91e63; }
.admin-body #profilesPanel .admin-search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}
.admin-body #profilesPanel .profile-approval-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}
.admin-body #profilesPanel .profile-approval-filters button {
  border: 1px solid #f0bdd1;
  color: #64748b;
  background: #fff7fb;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all .18s ease;
}
.admin-body #profilesPanel .profile-approval-filters button.active,
.admin-body #profilesPanel .profile-approval-filters button:hover {
  color: #fff;
  border-color: #e91e63;
  background: linear-gradient(135deg,#ec1f69,#e91e63);
  box-shadow: 0 12px 22px rgba(233,30,99,.22);
}
.admin-body #profilesPanel .admin-table-wrap {
  margin-top: 16px;
  border-radius: 18px !important;
  border: 1px solid #e7eaf0 !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.08) !important;
  overflow: auto !important;
}
.admin-body #profilesPanel .admin-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  min-width: 980px;
}
.admin-body #profilesPanel .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 18px 20px !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 0 !important;
}
.admin-body #profilesPanel .admin-table thead th:first-child { border-top-left-radius: 16px; }
.admin-body #profilesPanel .admin-table thead th:last-child { border-top-right-radius: 16px; }
.admin-body #profilesPanel .admin-table tbody tr {
  transition: background .18s ease, transform .18s ease;
}
.admin-body #profilesPanel .admin-table tbody tr:hover {
  background: #fff8fb !important;
}
.admin-body #profilesPanel .admin-table td {
  padding: 18px 20px !important;
  border-color: #edf0f5 !important;
  vertical-align: middle !important;
}
.admin-body #profilesPanel .admin-profile-mini {
  display: grid !important;
  grid-template-columns: auto 58px minmax(180px,1fr) !important;
  gap: 14px !important;
  align-items: center;
  text-align: left !important;
}
.admin-body #profilesPanel .admin-profile-mini img {
  width: 58px !important;
  height: 58px !important;
  border-radius: 16px !important;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(15,23,42,.12);
}
.admin-body #profilesPanel .admin-profile-mini b {
  display: block;
  color: #101827;
  font-size: 16px;
  margin-bottom: 3px;
}
.admin-body #profilesPanel .admin-profile-mini small {
  display: block;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.45;
}
.admin-body #profilesPanel .admin-table td:nth-child(2) {
  color: #101827;
  font-weight: 800;
  text-align: left !important;
}
.admin-body #profilesPanel .admin-table td:nth-child(2) small {
  color: #64748b !important;
  font-weight: 700;
  line-height: 1.8;
}
.admin-body #profilesPanel .status-badge,
.admin-body #profilesPanel [class*="status"] {
  border-radius: 999px !important;
}
.admin-body #profilesPanel .admin-actions {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  flex-wrap: wrap;
}
.admin-body #profilesPanel .admin-actions .btn.mini {
  min-height: 36px !important;
  border-radius: 11px !important;
  padding: 0 13px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}
.admin-body #profilesPanel .admin-actions .btn.mini:not(.outline):not(.danger) {
  background: linear-gradient(135deg,#ec1f69,#e91e63) !important;
}
.admin-body #profilesPanel .admin-actions .btn.mini.danger {
  background: linear-gradient(135deg,#ef4444,#dc2626) !important;
}
.admin-body #profilesPanel .admin-actions .btn.mini.outline {
  color: #e91e63 !important;
  border-color: #e91e63 !important;
  background: #fff !important;
}
.admin-body #profilesPanel .admin-inline-edit-row td {
  background: #fff8fb !important;
}
.admin-body #profilesPanel .admin-review-form {
  border-radius: 16px !important;
  border: 1px solid #f2cad9 !important;
  background: #fff !important;
  box-shadow: 0 14px 32px rgba(15,23,42,.07);
}
@media (max-width: 1180px) {
  .admin-body #profilesPanel .profile-approval-head { grid-template-columns: 1fr; }
  .admin-body #profilesPanel .admin-profile-toolbar { justify-content: flex-start; }
  .admin-body #profilesPanel .admin-toolbar-left { justify-content: flex-start; }
}

/* PROFILE APPROVAL TABLE COMPACT ALIGNMENT FIX */
.admin-body #profilesPanel .admin-table-wrap {
  overflow: auto !important;
}
.admin-body #profilesPanel .admin-table {
  min-width: 1180px !important;
  table-layout: fixed !important;
}
.admin-body #profilesPanel .admin-table th:nth-child(1),
.admin-body #profilesPanel .admin-table td:nth-child(1) { width: 34% !important; }
.admin-body #profilesPanel .admin-table th:nth-child(2),
.admin-body #profilesPanel .admin-table td:nth-child(2) { width: 29% !important; }
.admin-body #profilesPanel .admin-table th:nth-child(3),
.admin-body #profilesPanel .admin-table td:nth-child(3) { width: 12% !important; text-align: center !important; }
.admin-body #profilesPanel .admin-table th:nth-child(4),
.admin-body #profilesPanel .admin-table td:nth-child(4) { width: 25% !important; }
.admin-body #profilesPanel .admin-table thead th {
  padding: 14px 18px !important;
}
.admin-body #profilesPanel .admin-table td {
  padding: 14px 18px !important;
  height: auto !important;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-width: 0 !important;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile .profile-select {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
}
.admin-body #profilesPanel .admin-profile-lines,
.admin-body #profilesPanel .admin-detail-lines {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  text-align: left !important;
}
.admin-body #profilesPanel .admin-profile-lines b,
.admin-body #profilesPanel .admin-profile-lines small,
.admin-body #profilesPanel .admin-detail-lines b,
.admin-body #profilesPanel .admin-detail-lines small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}
.admin-body #profilesPanel .admin-profile-lines b,
.admin-body #profilesPanel .admin-detail-lines b {
  color: #101827 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}
.admin-body #profilesPanel .admin-profile-lines small,
.admin-body #profilesPanel .admin-detail-lines small {
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
.admin-body #profilesPanel .admin-email-line {
  max-width: 100% !important;
}
.admin-body #profilesPanel .admin-status-cell {
  text-align: center !important;
}
.admin-body #profilesPanel .admin-status {
  min-width: 76px !important;
  justify-content: center !important;
  padding: 7px 12px !important;
}
.admin-body #profilesPanel .admin-actions {
  justify-content: flex-start !important;
  align-content: center !important;
  gap: 8px !important;
}
.admin-body #profilesPanel .admin-actions .btn.mini {
  min-height: 34px !important;
  padding: 0 12px !important;
  line-height: 34px !important;
}

/* FINAL PROFILE APPROVAL TABLE PREMIUM COMPACT FIX */
.admin-body #profilesPanel .admin-table-wrap {
  border-radius: 18px !important;
  overflow: auto !important;
}
.admin-body #profilesPanel .admin-table {
  min-width: 1320px !important;
  table-layout: fixed !important;
  width: 100% !important;
}
.admin-body #profilesPanel .admin-table th:nth-child(1),
.admin-body #profilesPanel .admin-table td:nth-child(1) { width: 31% !important; }
.admin-body #profilesPanel .admin-table th:nth-child(2),
.admin-body #profilesPanel .admin-table td:nth-child(2) { width: 29% !important; }
.admin-body #profilesPanel .admin-table th:nth-child(3),
.admin-body #profilesPanel .admin-table td:nth-child(3) { width: 12% !important; }
.admin-body #profilesPanel .admin-table th:nth-child(4),
.admin-body #profilesPanel .admin-table td:nth-child(4) { width: 28% !important; }
.admin-body #profilesPanel .admin-table thead th {
  padding: 13px 22px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-align: left !important;
}
.admin-body #profilesPanel .admin-table thead th:nth-child(3) { text-align: center !important; }
.admin-body #profilesPanel .admin-table td {
  height: 76px !important;
  min-height: 76px !important;
  padding: 13px 22px !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-bottom: 1px solid #e9edf4 !important;
  background: #fff !important;
}
.admin-body #profilesPanel .admin-table tbody tr:hover td {
  background: #fff8fb !important;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile .profile-select {
  grid-column: 1 / -1 !important;
  font-size: 12px !important;
  margin: 0 0 2px !important;
}
.admin-body #profilesPanel .admin-profile-mini.compact-profile img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.14) !important;
}
.admin-body #profilesPanel .admin-profile-lines,
.admin-body #profilesPanel .admin-detail-lines {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  text-align: left !important;
}
.admin-body #profilesPanel .admin-profile-lines b,
.admin-body #profilesPanel .admin-detail-lines b {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #0f172a !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}
.admin-body #profilesPanel .admin-profile-lines small,
.admin-body #profilesPanel .admin-detail-lines small {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.admin-body #profilesPanel td.admin-status-cell {
  border-radius: 0 !important;
  text-align: center !important;
  background: #fff !important;
}
.admin-body #profilesPanel td.admin-status-cell .admin-status {
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  min-width: 78px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.admin-body #profilesPanel td.admin-actions {
  display: table-cell !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
.admin-body #profilesPanel td.admin-actions .btn.mini {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 6px 0 0 !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  line-height: 34px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}
.admin-body #profilesPanel td.admin-actions .btn.mini:last-child { margin-right: 0 !important; }
.admin-body #profilesPanel td.admin-actions .btn.mini.outline {
  border: 2px solid #e91e63 !important;
  color: #e91e63 !important;
  background: #fff !important;
}
.admin-body #profilesPanel td.admin-actions .btn.mini:not(.outline):not(.danger) {
  border: 2px solid #e91e63 !important;
  background: linear-gradient(135deg,#ec1f69,#e91e63) !important;
  color: #fff !important;
}
.admin-body #profilesPanel td.admin-actions .btn.mini.danger {
  border: 2px solid #ef3030 !important;
  background: linear-gradient(135deg,#ef4444,#dc2626) !important;
  color: #fff !important;
}

/* ==========================
   ADMIN USERS PREMIUM UI
========================== */
.admin-body #usersPanel.users-premium-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.admin-body #usersPanel .users-premium-banner {
  min-height: 120px;
  align-items: center;
  padding: 28px 34px;
  margin-bottom: 28px;
  background: radial-gradient(circle at 96% 100%, rgba(233,30,99,.34), transparent 22%), linear-gradient(135deg, #101827 0%, #172033 62%, #2b173b 100%);
  border-radius: 18px;
  color: #fff;
}
.admin-body #usersPanel .users-premium-banner h3 {
  font-size: 30px;
  line-height: 1.1;
  margin: 8px 0 8px;
  color: #fff;
}
.admin-body #usersPanel .users-premium-banner p { color: rgba(255,255,255,.88); font-size: 15px; }
.admin-body #usersPanel .users-add-user {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(233,30,99,.18);
}
.admin-body #usersPanel .users-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.admin-body #usersPanel .users-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 118px;
  padding: 24px 28px;
  border: 1px solid #f7c8d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.admin-body #usersPanel .users-stat-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(233,30,99,.08);
}
.admin-body #usersPanel .users-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  box-shadow: 0 14px 25px rgba(15,23,42,.16);
}
.admin-body #usersPanel .users-stat-card.purple .users-stat-icon { background: linear-gradient(135deg,#7c3aed,#4f46e5); }
.admin-body #usersPanel .users-stat-card.green .users-stat-icon { background: linear-gradient(135deg,#22c55e,#059669); }
.admin-body #usersPanel .users-stat-card.orange .users-stat-icon { background: linear-gradient(135deg,#fb923c,#f97316); }
.admin-body #usersPanel .users-stat-card.red .users-stat-icon { background: linear-gradient(135deg,#fb7185,#e11d48); }
.admin-body #usersPanel .users-stat-card small {
  display: block;
  color: #64748b;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 6px;
}
.admin-body #usersPanel .users-stat-card strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: #0f172a;
  font-weight: 950;
}
.admin-body #usersPanel .users-stat-card p {
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 700;
  font-size: 14px;
}
.admin-body #usersPanel .users-list-card {
  background: #fff;
  border: 1px solid #f7c8d9;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15,23,42,.07);
  overflow: hidden;
}
.admin-body #usersPanel .users-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 26px 20px;
}
.admin-body #usersPanel .users-list-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
}
.admin-body #usersPanel .users-list-head p {
  margin: 6px 0 18px;
  color: #64748b;
  font-weight: 700;
}
.admin-body #usersPanel .users-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-body #usersPanel .users-filter-tabs button,
.admin-body #usersPanel .users-tool-btn,
.admin-body #usersPanel .users-page-size,
.admin-body #usersPanel .users-pagination button {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #475569;
  font-weight: 900;
  border-radius: 13px;
  cursor: pointer;
  transition: .2s ease;
}
.admin-body #usersPanel .users-filter-tabs button {
  padding: 11px 18px;
}
.admin-body #usersPanel .users-filter-tabs button.active,
.admin-body #usersPanel .users-filter-tabs button:hover,
.admin-body #usersPanel .users-pagination button.active {
  color: #fff;
  border-color: #e91e63;
  background: linear-gradient(135deg,#ff2d78,#e91e63);
  box-shadow: 0 10px 22px rgba(233,30,99,.25);
}
.admin-body #usersPanel .users-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 470px;
}
.admin-body #usersPanel .users-search {
  width: 330px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  color: #64748b;
}
.admin-body #usersPanel .users-search:focus-within {
  border-color: #e91e63;
  box-shadow: 0 0 0 4px rgba(233,30,99,.08);
}
.admin-body #usersPanel .users-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  font-weight: 700;
  color: #0f172a;
}
.admin-body #usersPanel .users-tool-btn {
  height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.admin-body #usersPanel .users-tool-btn:hover,
.admin-body #usersPanel .users-page-size:hover,
.admin-body #usersPanel .users-pagination button:hover {
  border-color: #f3a9c3;
  color: #e91e63;
}
.admin-body #usersPanel .users-premium-table-wrap {
  border-radius: 0;
  border: 0;
  overflow-x: auto;
}
.admin-body #usersPanel .users-premium-table {
  min-width: 1280px;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}
.admin-body #usersPanel .users-premium-table thead th {
  height: 48px;
  padding: 0 18px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 950;
  text-align: left;
}
.admin-body #usersPanel .users-premium-table thead th:first-child { border-top-left-radius: 14px; }
.admin-body #usersPanel .users-premium-table thead th:last-child { border-top-right-radius: 14px; text-align: center; }
.admin-body #usersPanel .users-premium-table tbody td {
  height: 70px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  vertical-align: middle;
  color: #172033;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.admin-body #usersPanel .users-premium-table tbody td:nth-child(n+2) { text-align: center; }
.admin-body #usersPanel .users-premium-table tbody tr:hover { background: #fff7fb; }
.admin-body #usersPanel .users-premium-table th:nth-child(1),
.admin-body #usersPanel .users-premium-table td:nth-child(1) { width: 25%; }
.admin-body #usersPanel .users-premium-table th:nth-child(2),
.admin-body #usersPanel .users-premium-table td:nth-child(2) { width: 7%; }
.admin-body #usersPanel .users-premium-table th:nth-child(3),
.admin-body #usersPanel .users-premium-table td:nth-child(3) { width: 8%; }
.admin-body #usersPanel .users-premium-table th:nth-child(4),
.admin-body #usersPanel .users-premium-table td:nth-child(4) { width: 10%; }
.admin-body #usersPanel .users-premium-table th:nth-child(5),
.admin-body #usersPanel .users-premium-table td:nth-child(5) { width: 16%; text-align: left; }
.admin-body #usersPanel .users-premium-table th:nth-child(6),
.admin-body #usersPanel .users-premium-table td:nth-child(6) { width: 9%; }
.admin-body #usersPanel .users-premium-table th:nth-child(7),
.admin-body #usersPanel .users-premium-table td:nth-child(7) { width: 10%; }
.admin-body #usersPanel .users-premium-table th:nth-child(8),
.admin-body #usersPanel .users-premium-table td:nth-child(8) { width: 12%; }
.admin-body #usersPanel .users-premium-table th:nth-child(9),
.admin-body #usersPanel .users-premium-table td:nth-child(9) { width: 6%; text-align: center; }
.admin-body #usersPanel .users-profile-cell {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}
.admin-body #usersPanel .users-profile-cell img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
}
.admin-body #usersPanel .users-profile-cell b {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15.5px;
  color: #0f172a;
}
.admin-body #usersPanel .users-profile-cell small {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 700;
}
.admin-body #usersPanel .verified-dot { color: #e91e63; font-size: 12px; margin-left: 5px; }
.admin-body #usersPanel .users-membership-cell b {
  display: block;
  color: #0f172a;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-body #usersPanel .users-membership-cell small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.admin-body #usersPanel .users-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}
.admin-body #usersPanel .users-status-badge i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.admin-body #usersPanel .users-status-badge.active { color: #078c42; background: #dcfce7; }
.admin-body #usersPanel .users-status-badge.active i { background: #22c55e; }
.admin-body #usersPanel .users-status-badge.offline { color: #ea580c; background: #ffedd5; }
.admin-body #usersPanel .users-status-badge.offline i { background: #f97316; }
.admin-body #usersPanel .users-status-badge.blocked { color: #dc2626; background: #fee2e2; }
.admin-body #usersPanel .users-status-badge.blocked i { background: #ef4444; }
.admin-body #usersPanel .users-row-action {
  width: 38px;
  height: 38px;
  border: 1px solid #f5bfd2;
  background: #fff;
  color: #e91e63;
  border-radius: 10px;
  cursor: pointer;
  transition: .2s ease;
}
.admin-body #usersPanel .users-row-action:hover {
  background: #e91e63;
  color: #fff;
  box-shadow: 0 10px 20px rgba(233,30,99,.2);
}
.admin-body #usersPanel .users-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 22px;
  color: #64748b;
  font-weight: 800;
}
.admin-body #usersPanel .users-pagination { display: flex; gap: 8px; align-items: center; }
.admin-body #usersPanel .users-pagination button {
  width: 36px;
  height: 36px;
}
.admin-body #usersPanel .users-page-size {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.admin-body #usersPanel .users-empty-state {
  text-align: center !important;
  padding: 36px !important;
  color: #64748b !important;
}
@media (max-width: 1320px) {
  .admin-body #usersPanel .users-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-body #usersPanel .users-list-head { flex-direction: column; }
  .admin-body #usersPanel .users-toolbar { justify-content: flex-start; min-width: 0; width: 100%; }
}
@media (max-width: 760px) {
  .admin-body #usersPanel .users-stat-grid { grid-template-columns: 1fr; }
  .admin-body #usersPanel .users-premium-banner { padding: 22px; }
  .admin-body #usersPanel .users-premium-banner h3 { font-size: 24px; }
  .admin-body #usersPanel .users-search { width: 100%; }
  .admin-body #usersPanel .users-tool-btn { flex: 1; justify-content: center; }
  .admin-body #usersPanel .users-table-footer { flex-direction: column; align-items: flex-start; }
}

/* === Premium Membership Approvals UI === */
.admin-body #paymentsPanel.admin-polished-panel {
  background: #f8fbff !important;
}
.admin-body #paymentsPanel .membership-approval-banner {
  min-height: 132px;
  background: radial-gradient(circle at 88% 20%, rgba(233,30,99,.24), transparent 28%), linear-gradient(135deg, #101827 0%, #1b2440 58%, #3a163b 100%) !important;
}
.admin-body #paymentsPanel .membership-banner-side {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px 14px;
  background: rgba(255,255,255,.96);
  color: #111827;
  border-radius: 16px;
  padding: 14px 18px;
  min-width: 270px;
  box-shadow: 0 14px 32px rgba(0,0,0,.16);
}
.admin-body #paymentsPanel .membership-banner-side i {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg,#ef2b72,#ef4444);
  font-size: 22px;
}
.admin-body #paymentsPanel .membership-banner-side span {
  color: #e91e63;
  font-weight: 900;
  font-size: 16px;
}
.admin-body #paymentsPanel .membership-banner-side small {
  color: #475569;
  font-weight: 700;
}
.admin-body #paymentsPanel .membership-payment-metrics {
  gap: 20px;
  margin: 22px 0;
}
.admin-body #paymentsPanel .payment-metric-card {
  min-height: 112px;
  padding-left: 104px !important;
  border-radius: 20px !important;
}
.admin-body #paymentsPanel .payment-metric-card > i {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 14px 28px rgba(15,23,42,.14);
}
.admin-body #paymentsPanel .payment-metric-card.pink > i { background: linear-gradient(135deg,#ff5b91,#e91e63); }
.admin-body #paymentsPanel .payment-metric-card.purple > i { background: linear-gradient(135deg,#7c6cff,#5b5ce2); }
.admin-body #paymentsPanel .payment-metric-card.green > i { background: linear-gradient(135deg,#35d37b,#16a34a); }
.admin-body #paymentsPanel .payment-metric-card.pink { border-color: #ffd1df !important; }
.admin-body #paymentsPanel .payment-metric-card.purple { border-color: #ddd9ff !important; }
.admin-body #paymentsPanel .payment-metric-card.green { border-color: #c9f4dc !important; }
.admin-body #paymentsPanel .payment-metric-card small {
  color: #64748b;
  display: block;
  margin-top: 8px;
  font-weight: 700;
}
.admin-body #paymentsPanel .payment-metric-card.green strong { color: #16a34a; }
.admin-body #paymentsPanel .membership-approval-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid #edf0f6;
  border-radius: 20px;
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 14px 30px rgba(15,23,42,.055);
}
.admin-body #paymentsPanel .membership-filter-tabs,
.admin-body #paymentsPanel .membership-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-body #paymentsPanel .membership-filter-tabs button,
.admin-body #paymentsPanel .membership-tool-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #101827;
  font-weight: 900;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.admin-body #paymentsPanel .membership-filter-tabs button.active {
  color: #e91e63;
  border-color: #ff8db4;
  background: #fff5f9;
}
.admin-body #paymentsPanel .membership-tool-btn.refresh {
  color: #e91e63;
  border-color: #ff9fbd;
}
.admin-body #paymentsPanel .membership-search {
  width: min(460px, 38vw);
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
}
.admin-body #paymentsPanel .membership-search i { color: #e91e63; }
.admin-body #paymentsPanel .membership-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-weight: 700;
  background: transparent;
}
.admin-body #paymentsPanel .membership-table-wrap {
  border-radius: 16px !important;
  overflow-x: auto !important;
}
.admin-body #paymentsPanel .premium-membership-table {
  min-width: 1320px !important;
  table-layout: fixed !important;
  font-size: 14px;
}
.admin-body #paymentsPanel .premium-membership-table thead th {
  background: linear-gradient(135deg,#101827,#211739) !important;
  padding: 15px 16px !important;
  font-size: 13px;
  letter-spacing: .01em;
}
.admin-body #paymentsPanel .premium-membership-table tbody td {
  padding: 16px 16px !important;
  vertical-align: middle;
  color: #172033;
}
.admin-body #paymentsPanel .premium-membership-table th:nth-child(1),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(1) { width: 20% !important; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(2),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(2) { width: 17% !important; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(3),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(3) { width: 12% !important; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(4),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(4) { width: 10% !important; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(5),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(5) { width: 16% !important; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(6),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(6) { width: 8% !important; text-align:center; }
.admin-body #paymentsPanel .premium-membership-table th:nth-child(7),
.admin-body #paymentsPanel .premium-membership-table td:nth-child(7) { width: 17% !important; }
.admin-body #paymentsPanel .membership-user-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.admin-body #paymentsPanel .membership-user-cell img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(15,23,42,.12);
}
.admin-body #paymentsPanel .membership-user-cell b,
.admin-body #paymentsPanel .membership-package-cell b {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}
.admin-body #paymentsPanel .membership-user-cell small,
.admin-body #paymentsPanel .membership-package-cell small,
.admin-body #paymentsPanel .membership-amount small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  word-break: break-word;
}
.admin-body #paymentsPanel .membership-txn {
  color: #334155;
  font-weight: 700;
  line-height: 1.35;
}
.admin-body #paymentsPanel .membership-amount b {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}
.admin-body #paymentsPanel .payment-proof-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #e91e63;
  font-weight: 900;
  cursor: pointer;
}
.admin-body #paymentsPanel .payment-proof-link img {
  width: 54px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ffd1df;
  background: #fff;
}
.admin-body #paymentsPanel .membership-no-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-weight: 800;
}
.admin-body #paymentsPanel .membership-no-proof i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  display: grid;
  place-items: center;
}
.admin-body #paymentsPanel .membership-actions {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.admin-body #paymentsPanel .membership-actions .btn {
  min-width: auto !important;
  height: 34px;
  padding: 0 11px !important;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.admin-body #paymentsPanel .membership-actions .btn.approve {
  background: #eafbf2 !important;
  color: #16a34a !important;
  border: 1px solid #9be7bd !important;
  box-shadow: none !important;
}
.admin-body #paymentsPanel .membership-actions .btn.danger {
  background: #fff1f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  box-shadow: none !important;
}
.admin-body #paymentsPanel .membership-actions .btn.outline {
  background: #fff7fb !important;
  color: #e91e63 !important;
  border: 1px solid #ff9fbd !important;
}
.admin-body #paymentsPanel .admin-status.pending {
  background: #fff0bd !important;
  color: #9a6700 !important;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
}
.admin-body #paymentsPanel .admin-status.approved {
  background: #dcfce7 !important;
  color: #15803d !important;
}
.admin-body #paymentsPanel .admin-status.rejected {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.admin-body #paymentsPanel .membership-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #edf0f6;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  padding: 16px 18px;
  margin-bottom: 2px;
  color: #64748b;
  font-weight: 700;
}
@media (max-width: 980px) {
  .admin-body #paymentsPanel .membership-approval-toolbar,
  .admin-body #paymentsPanel .membership-table-footer { flex-direction: column; align-items: stretch; }
  .admin-body #paymentsPanel .membership-search { width: 100%; }
  .admin-body #paymentsPanel .membership-toolbar-actions { justify-content: flex-start; }
  .admin-body #paymentsPanel .membership-banner-side { min-width: 0; width: 100%; }
  .admin-body #paymentsPanel .membership-payment-metrics { grid-template-columns: 1fr; }
}

/* === Premium Membership Users UI - CSS/HTML only, no Firebase/JS logic changed === */
.admin-body #premiumUsersPanel.premium-users-section {
  background: #f8fafc !important;
  border: 1px solid #f8cddd !important;
  border-radius: 24px !important;
  padding: 26px !important;
}

.admin-body #premiumUsersPanel .premium-users-banner {
  min-height: 142px;
  padding: 28px 34px !important;
  background: radial-gradient(circle at 82% 38%, #f9ebf0, transparent 28%), linear-gradient(135deg, #fff7fb 0%, #fff8fb 54%, #fff0f5 100%) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 44px rgba(16, 24, 39, .18) !important;
}
.admin-body #premiumUsersPanel .premium-users-banner h3 {
  font-size: 34px !important;
  margin: 8px 0 8px !important;
  letter-spacing: -.03em;
}
.admin-body #premiumUsersPanel .premium-users-banner p {
  font-size: 16px !important;
  color: #101827 !important;
}
.admin-body #premiumUsersPanel .premium-users-banner .admin-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
}
.admin-body #premiumUsersPanel .premium-banner-visual {
  position: absolute;
  right: 280px;
  top: 31px;
  width: 104px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  font-size: 58px;
  opacity: .95;
  z-index: 1;
}
.admin-body #premiumUsersPanel .premium-banner-visual span {
  position: absolute;
  right: 10px;
  bottom: -4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4b86, #e91e63);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(233, 30, 99, .35);
}

.admin-body #premiumUsersPanel .premium-users-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.admin-body #premiumUsersPanel .premium-users-metric {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  padding: 20px 22px;
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
  position: relative;
  overflow: hidden;
}
.admin-body #premiumUsersPanel .premium-users-metric::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: -26px;
  bottom: -28px;
  border-radius: 50%;
  opacity: .18;
  background: currentColor;
}
.admin-body #premiumUsersPanel .premium-users-metric > i {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, .16);
  flex: 0 0 58px;
}
.admin-body #premiumUsersPanel .premium-users-metric span,
.admin-body #premiumUsersPanel .premium-users-metric small {
  display: block;
  color: #667085;
  font-weight: 800;
}
.admin-body #premiumUsersPanel .premium-users-metric span { font-size: 14px; margin-bottom: 7px; }
.admin-body #premiumUsersPanel .premium-users-metric strong {
  display: block;
  color: #101827;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.03em;
}
.admin-body #premiumUsersPanel .premium-users-metric small { margin-top: 8px; font-size: 13px; }
.admin-body #premiumUsersPanel .premium-users-metric.purple { color: #7c3aed; }
.admin-body #premiumUsersPanel .premium-users-metric.green { color: #16a34a; }
.admin-body #premiumUsersPanel .premium-users-metric.orange { color: #f97316; }
.admin-body #premiumUsersPanel .premium-users-metric.blue { color: #0ea5e9; }
.admin-body #premiumUsersPanel .premium-users-metric.rose { color: #f43f5e; }
.admin-body #premiumUsersPanel .premium-users-metric.purple > i { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.admin-body #premiumUsersPanel .premium-users-metric.green > i { background: linear-gradient(135deg,#22c55e,#16a34a); }
.admin-body #premiumUsersPanel .premium-users-metric.orange > i { background: linear-gradient(135deg,#f59e0b,#f97316); }
.admin-body #premiumUsersPanel .premium-users-metric.blue > i { background: linear-gradient(135deg,#38bdf8,#2563eb); }
.admin-body #premiumUsersPanel .premium-users-metric.rose > i { background: linear-gradient(135deg,#fb7185,#e91e63); }

.admin-body #premiumUsersPanel .premium-users-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px !important;
}
.admin-body #premiumUsersPanel .admin-premium-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-body #premiumUsersPanel .admin-premium-filters button {
  min-height: 44px;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  background: #fff !important;
  color: #101827 !important;
  border: 1px solid #e7eaf0 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.admin-body #premiumUsersPanel .admin-premium-filters button.active,
.admin-body #premiumUsersPanel .admin-premium-filters button:hover {
  background: linear-gradient(135deg, #ff2d70, #e91e63) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 24px rgba(233, 30, 99, .22);
}
.admin-body #premiumUsersPanel .premium-users-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.admin-body #premiumUsersPanel .premium-users-search {
  min-width: min(440px, 38vw);
  height: 46px;
  border: 1px solid #e4e8f0;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  color: #667085;
}
.admin-body #premiumUsersPanel .premium-users-search input {
  border: 0 !important;
  outline: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 14px;
}
.admin-body #premiumUsersPanel .premium-tool-btn,
.admin-body #premiumUsersPanel .users-page-size,
.admin-body #premiumUsersPanel .users-pagination button {
  border: 1px solid #e4e8f0;
  background: #fff;
  color: #101827;
  border-radius: 12px;
  height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.admin-body #premiumUsersPanel .premium-users-table-wrap {
  border-radius: 17px !important;
  overflow-x: auto;
}
.admin-body #premiumUsersPanel .premium-users-table {
  min-width: 1180px !important;
  table-layout: fixed;
}
.admin-body #premiumUsersPanel .premium-users-table th {
  font-size: 14px !important;
  padding: 15px 18px !important;
}
.admin-body #premiumUsersPanel .premium-users-table td {
  padding: 18px !important;
  font-size: 15px;
  color: #101827;
  vertical-align: middle;
}
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(1),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(1) { width: 21%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(2),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(2) { width: 16%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(3),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(3) { width: 17%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(4),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(4) { width: 14%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(5),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(5) { width: 14%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(6),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(6) { width: 10%; }
.admin-body #premiumUsersPanel .premium-users-table th:nth-child(7),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(7) { width: 8%; text-align: center; }
.admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
}
.admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini b {
  font-size: 16px;
  color: #101827;
}
.admin-body #premiumUsersPanel .premium-users-table small {
  color: #53627a !important;
  font-size: 13px !important;
  line-height: 1.45;
}
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(2),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(4),
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(5) {
  color: #344054;
  line-height: 1.55;
}
.admin-body #premiumUsersPanel .premium-users-table td:nth-child(3) b {
  color: #101827;
  font-size: 15px;
}
.admin-body #premiumUsersPanel .premium-users-table .status-badge,
.admin-body #premiumUsersPanel .premium-users-table .badge,
.admin-body #premiumUsersPanel .premium-users-table span[class*="status"] {
  font-size: 13px !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}
.admin-body #premiumUsersPanel .premium-users-table .admin-actions {
  min-width: 0 !important;
  text-align: center;
}
.admin-body #premiumUsersPanel .premium-users-table .admin-actions a {
  width: 42px;
  height: 42px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  position: relative;
}
.admin-body #premiumUsersPanel .premium-users-table .admin-actions a::before {
  content: "\f142";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #101827;
  font-size: 16px;
}
.admin-body #premiumUsersPanel .premium-users-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eef1f6;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  color: #667085;
  font-weight: 700;
}
.admin-body #premiumUsersPanel .users-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-body #premiumUsersPanel .users-pagination button {
  width: 42px;
  padding: 0;
  justify-content: center;
}
.admin-body #premiumUsersPanel .users-pagination button.active {
  background: linear-gradient(135deg, #ff2d70, #e91e63) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 24px rgba(233, 30, 99, .22);
}

@media (max-width: 1300px) {
  .admin-body #premiumUsersPanel .premium-users-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-body #premiumUsersPanel .premium-users-toolbar-card { align-items: flex-start; flex-direction: column; }
  .admin-body #premiumUsersPanel .premium-users-tools { width: 100%; margin-left: 0; }
  .admin-body #premiumUsersPanel .premium-users-search { flex: 1; min-width: 240px; }
}
@media (max-width: 900px) {
  .admin-body #premiumUsersPanel .premium-users-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-body #premiumUsersPanel .premium-banner-visual { display: none; }
  .admin-body #premiumUsersPanel .premium-users-tools { flex-wrap: wrap; }
  .admin-body #premiumUsersPanel .premium-users-search { min-width: 100%; }
  .admin-body #premiumUsersPanel .premium-users-footer { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .admin-body #premiumUsersPanel.premium-users-section { padding: 14px !important; }
  .admin-body #premiumUsersPanel .premium-users-banner { padding: 22px !important; }
  .admin-body #premiumUsersPanel .premium-users-banner h3 { font-size: 26px !important; }
  .admin-body #premiumUsersPanel .premium-users-metrics { grid-template-columns: 1fr; }
  .admin-body #premiumUsersPanel .premium-tool-btn { flex: 1; justify-content: center; }
}

/* === Feedback section premium UI refresh (UI only) === */
.admin-body #feedbackPanel.feedback-premium-panel {
  background: #fff !important;
  border: 1px solid #f6cbd9 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07) !important;
  padding: 22px !important;
}

.admin-body #feedbackPanel .feedback-premium-banner {
  min-height: 150px;
  background: radial-gradient(circle at 82% 38%, #f9ebf0, transparent 28%), linear-gradient(135deg, #fff7fb 0%, #fff8fb 54%, #fff0f5 100%) !important;
}

.admin-body #feedbackPanel .feedback-banner-art {
  position: absolute;
  right: 92px;
  bottom: 0;
  width: 125px;
  height: 105px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 1;
  opacity: .95;
}

.admin-body #feedbackPanel .feedback-banner-art > i {
  font-size: 74px;
  color: #fbcfe8;
  filter: drop-shadow(0 12px 22px rgba(233, 30, 99, .22));
}

.admin-body #feedbackPanel .feedback-banner-art span {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 54px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 12px 24px rgba(124, 58, 237, .28);
}

.admin-body #feedbackPanel .feedback-banner-art span i { font-size: 24px; color: #fff; }
.admin-body #feedbackPanel .admin-page-badge i { margin-right: 7px; }

.admin-body #feedbackPanel .feedback-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.admin-body #feedbackPanel .feedback-metric-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 20px;
  padding: 22px 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
  position: relative;
  overflow: hidden;
}

.admin-body #feedbackPanel .feedback-metric-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -30px;
  bottom: -36px;
  border-radius: 50%;
  background: rgba(233, 30, 99, .10);
}

.admin-body #feedbackPanel .feedback-metric-card.active::after { background: rgba(34, 197, 94, .11); }

.admin-body #feedbackPanel .feedback-metric-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, #fb7185, #e91e63);
  box-shadow: 0 14px 26px rgba(233, 30, 99, .22);
  flex: 0 0 auto;
}

.admin-body #feedbackPanel .feedback-metric-card.active .feedback-metric-icon {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 14px 26px rgba(34, 197, 94, .22);
}

.admin-body #feedbackPanel .feedback-metric-card span {
  display: block;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 5px;
}

.admin-body #feedbackPanel .feedback-metric-card strong {
  display: block;
  color: #e91e63;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  margin-bottom: 8px;
}

.admin-body #feedbackPanel .feedback-metric-card.active strong { color: #22c55e; }
.admin-body #feedbackPanel .feedback-metric-card p { margin: 0; color: #64748b; font-weight: 600; }

.admin-body #feedbackPanel .feedback-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(220px, .9fr) minmax(180px, .65fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.admin-body #feedbackPanel .feedback-search,
.admin-body #feedbackPanel .feedback-tool-btn,
.admin-body #feedbackPanel .feedback-export-btn,
.admin-body #feedbackPanel .feedback-sort button,
.admin-body #feedbackPanel .feedback-page-size {
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  padding: 0 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.admin-body #feedbackPanel .feedback-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 700;
  color: #0f172a;
}

.admin-body #feedbackPanel .feedback-search i { color: #64748b; }
.admin-body #feedbackPanel .feedback-export-btn { color: #e91e63; border-color: #f6b8cd; background: #fff7fa; justify-content: center; }

.admin-body #feedbackPanel .feedback-inbox-card {
  background: #fff;
  border: 1px solid #f5d4df;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
  overflow: hidden;
}

.admin-body #feedbackPanel .feedback-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 12px;
}

.admin-body #feedbackPanel .feedback-inbox-head h4 {
  margin: 0;
  font-size: 19px;
  color: #0f172a;
  font-weight: 950;
}

.admin-body #feedbackPanel .feedback-sort { display: flex; align-items: center; gap: 10px; color: #475569; font-weight: 800; }
.admin-body #feedbackPanel .feedback-sort button { height: 40px; }

.admin-body #feedbackPanel .feedback-list-panel {
  max-height: none !important;
  min-height: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  display: block !important;
  overflow: visible !important;
}

.admin-body #feedbackPanel .feedback-message-row {
  display: grid;
  grid-template-columns: 290px minmax(360px, 1fr) 92px 48px;
  gap: 20px;
  align-items: center;
  padding: 18px 16px;
  min-height: 96px;
  border: 1px solid #f6d8e2;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035) !important;
  margin-bottom: 12px;
}

.admin-body #feedbackPanel .feedback-user-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.admin-body #feedbackPanel .feedback-user-cell img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  flex: 0 0 auto;
}

.admin-body #feedbackPanel .feedback-user-cell strong,
.admin-body #feedbackPanel .feedback-text-cell strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
  font-size: 15px;
}

.admin-body #feedbackPanel .feedback-user-cell span,
.admin-body #feedbackPanel .feedback-user-cell small,
.admin-body #feedbackPanel .feedback-text-cell small {
  display: block;
  color: #475569;
  font-weight: 650;
  line-height: 1.45;
}

.admin-body #feedbackPanel .feedback-text-cell p {
  margin: 4px 0 7px;
  color: #0f172a;
  font-weight: 650;
  line-height: 1.45;
}

.admin-body #feedbackPanel .feedback-status {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 950;
}

.admin-body #feedbackPanel .feedback-status.new { color: #15803d; background: #dcfce7; }
.admin-body #feedbackPanel .feedback-status.read { color: #0369a1; background: #e0f2fe; }
.admin-body #feedbackPanel .feedback-status.replied { color: #7c3aed; background: #f3e8ff; }
.admin-body #feedbackPanel .feedback-status.closed { color: #475569; background: #f1f5f9; }

.admin-body #feedbackPanel .feedback-more-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e6edf5;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  cursor: pointer;
}

.admin-body #feedbackPanel .feedback-list-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 18px;
  color: #475569;
  font-weight: 700;
}

.admin-body #feedbackPanel .feedback-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.admin-body #feedbackPanel .feedback-pagination button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #fff;
  color: #0f172a;
  font-weight: 900;
}

.admin-body #feedbackPanel .feedback-pagination button.active {
  color: #fff;
  border-color: #e91e63;
  background: linear-gradient(135deg, #ec4899, #e91e63);
  box-shadow: 0 10px 20px rgba(233, 30, 99, .24);
}

.admin-body #feedbackPanel .feedback-page-size { justify-self: end; }

@media (max-width: 1100px) {
  .admin-body #feedbackPanel .feedback-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-body #feedbackPanel .feedback-message-row { grid-template-columns: 1fr; gap: 12px; }
  .admin-body #feedbackPanel .feedback-status,
  .admin-body #feedbackPanel .feedback-more-btn { justify-self: start; }
}

@media (max-width: 760px) {
  .admin-body #feedbackPanel .feedback-metric-grid { grid-template-columns: 1fr; }
  .admin-body #feedbackPanel .feedback-toolbar { grid-template-columns: 1fr; }
  .admin-body #feedbackPanel .feedback-banner-art { display: none; }
  .admin-body #feedbackPanel .feedback-list-footer { grid-template-columns: 1fr; text-align: center; }
  .admin-body #feedbackPanel .feedback-page-size { justify-self: center; }
}

/* Premium Analytics Dashboard UI - CSS-only polish */
.admin-body #analyticsPanel .admin-page-banner {
  min-height: 132px;
  background: radial-gradient(circle at 82% 38%, #f9ebf0, transparent 28%), linear-gradient(135deg, #fff7fb 0%, #fff8fb 54%, #fff0f5 100%) !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12) !important;
}

.admin-body #analyticsPanel .admin-page-banner::after {
  content: "";
  position: absolute;
  right: 68px;
  bottom: 0;
  width: 240px;
  height: 88px;
  opacity: .55;
  background: linear-gradient(135deg, transparent 0 30%, rgba(139, 92, 246, .32) 30% 32%, transparent 32% 45%, rgba(233, 30, 99, .28) 45% 47%, transparent 47%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-body #analyticsPanel .admin-page-badge {
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.admin-body #analyticsPanel .admin-page-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 6px rgba(16,185,129,.12);
}

.admin-body .analytics-premium-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin-top: 18px;
}

.admin-body .analytics-card-premium {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  padding: 24px !important;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid #e9edf5 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #ffffff 0%, #fff 60%, #fff7fb 100%) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.admin-body .analytics-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, .11) !important;
  border-color: #f8bfd4 !important;
}

.admin-body .analytics-card-premium::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  opacity: .15;
  background: currentColor;
}

.admin-body .analytics-card-premium .analytics-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 16px 26px rgba(15, 23, 42, .16);
}

.admin-body .analytics-card-premium.purple { color: #7c3aed; }
.admin-body .analytics-card-premium.green { color: #10b981; }
.admin-body .analytics-card-premium.orange { color: #f59e0b; }
.admin-body .analytics-card-premium.gold { color: #f7a600; }
.admin-body .analytics-card-premium.pink { color: #ec407a; }
.admin-body .analytics-card-premium.blue { color: #3b82f6; }
.admin-body .analytics-card-premium.violet { color: #8b5cf6; }
.admin-body .analytics-card-premium.cyan { color: #06b6d4; }

.admin-body .analytics-card-premium.purple .analytics-icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.admin-body .analytics-card-premium.green .analytics-icon { background: linear-gradient(135deg, #34d399, #059669); }
.admin-body .analytics-card-premium.orange .analytics-icon { background: linear-gradient(135deg, #fbbf24, #f97316); }
.admin-body .analytics-card-premium.gold .analytics-icon { background: linear-gradient(135deg, #facc15, #f59e0b); }
.admin-body .analytics-card-premium.pink .analytics-icon { background: linear-gradient(135deg, #fb7185, #e91e63); }
.admin-body .analytics-card-premium.blue .analytics-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.admin-body .analytics-card-premium.violet .analytics-icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.admin-body .analytics-card-premium.cyan .analytics-icon { background: linear-gradient(135deg, #22d3ee, #0891b2); }

.admin-body .analytics-card-premium .analytics-card-info span {
  display: block;
  margin: 0 0 6px;
  color: #475569;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-body .analytics-card-premium .analytics-card-info strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}

.admin-body .analytics-card-premium .analytics-card-info small {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.admin-body .analytics-card-premium .analytics-card-info small i { color: #10b981; }

.admin-body .analytics-sparkline {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 72px;
  height: 32px;
  opacity: .75;
  background: linear-gradient(135deg, transparent 10%, currentColor 11% 13%, transparent 14% 32%, currentColor 33% 35%, transparent 36% 54%, currentColor 55% 57%, transparent 58% 76%, currentColor 77% 79%, transparent 80%);
  clip-path: polygon(0 72%, 14% 56%, 26% 64%, 40% 34%, 54% 45%, 67% 20%, 82% 32%, 100% 10%, 100% 100%, 0 100%);
}

.admin-body .analytics-dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-body .analytics-chart-premium,
.admin-body .analytics-trend-card,
.admin-body .analytics-insights-card {
  background: #fff !important;
  border: 1px solid #e9edf5 !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07) !important;
}

.admin-body .analytics-chart-head,
.admin-body .analytics-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-body .analytics-chart-head h4,
.admin-body .analytics-insights-head h4 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  font-weight: 950;
}

.admin-body .analytics-chart-head h4 i,
.admin-body .analytics-insights-head h4 i { color: #8b5cf6; }

.admin-body .analytics-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.admin-body .analytics-legend span::before {
  content: "";
  width: 20px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.admin-body .analytics-legend .purple-dot::before { background: #8b5cf6; }
.admin-body .analytics-legend .green-dot::before { background: #22c55e; }
.admin-body .analytics-legend .orange-dot::before { background: #f59e0b; }

.admin-body .analytics-bars-premium {
  display: grid !important;
  gap: 18px !important;
  min-height: 230px;
  align-content: center;
  padding: 18px 4px;
}

.admin-body .analytics-bars-premium div {
  display: grid !important;
  grid-template-columns: 116px 1fr 42px;
  align-items: center;
  gap: 14px;
}

.admin-body .analytics-bars-premium span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.admin-body .analytics-bars-premium b {
  display: block !important;
  height: 15px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #8b5cf6, #e91e63) !important;
  box-shadow: 0 8px 18px rgba(233, 30, 99, .16);
}

.admin-body .analytics-bars-premium div:nth-child(2) b { background: linear-gradient(90deg, #22c55e, #10b981) !important; }
.admin-body .analytics-bars-premium div:nth-child(3) b { background: linear-gradient(90deg, #f59e0b, #fb7185) !important; }

.admin-body .analytics-bars-premium em {
  color: #0f172a;
  font-style: normal;
  font-weight: 950;
  font-size: 14px;
}

.admin-body .analytics-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #faf5ff;
  color: #6d28d9;
  font-weight: 800;
  font-size: 13px;
}

.admin-body .analytics-period-btn,
.admin-body .analytics-insights-head button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  color: #172033;
  font-weight: 900;
  cursor: default;
}

.admin-body .analytics-line-visual {
  position: relative;
  min-height: 292px;
  padding: 8px 0 28px;
}

.admin-body .analytics-line-visual .trend-grid {
  position: absolute;
  inset: 8px 0 42px;
  background-image: linear-gradient(to right, rgba(148,163,184,.18) 1px, transparent 1px), linear-gradient(to bottom, rgba(148,163,184,.18) 1px, transparent 1px);
  background-size: 82px 54px;
  border-left: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.admin-body .analytics-line-visual svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 230px;
  display: block;
}

.admin-body .trend-labels {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.admin-body .analytics-insights-card {
  margin-top: 18px;
  padding: 22px;
}

.admin-body .analytics-insights-head button {
  border-color: #f8a9c4;
  color: #e91e63;
}

.admin-body .analytics-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-body .analytics-insights-grid div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #fbfcff;
  border: 1px solid #edf2f7;
}

.admin-body .analytics-insights-grid i {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fce7f3;
  color: #e91e63;
  font-size: 18px;
}

.admin-body .analytics-insights-grid strong {
  color: #172033;
  font-size: 14px;
  font-weight: 950;
}

.admin-body .analytics-insights-grid span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .admin-body .analytics-premium-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .admin-body .analytics-dashboard-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-body .analytics-insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .admin-body .analytics-premium-grid,
  .admin-body .analytics-insights-grid { grid-template-columns: 1fr !important; }
  .admin-body .analytics-card-premium { min-height: 128px; }
  .admin-body .analytics-bars-premium div { grid-template-columns: 92px 1fr 32px; }
  .admin-body .analytics-chart-head,
  .admin-body .analytics-insights-head { align-items: flex-start; flex-direction: column; }
}

/* === Settings page premium UI refresh (HTML/CSS only, no logic changes) === */
.admin-body #settingsPanel.admin-polished-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%) !important;
  border: 1px solid #f6cbd9 !important;
  border-radius: 26px !important;
  padding: 24px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .07) !important;
}

.admin-body #settingsPanel .settings-premium-banner {
  min-height: 170px !important;
  padding: 34px 36px !important;
  margin-bottom: 28px !important;
  border-radius: 22px !important;
  background: radial-gradient(circle at 82% 38%, #f9ebf0, transparent 28%), linear-gradient(135deg, #fff7fb 0%, #fff8fb 54%, #fff0f5 100%) !important;
}

.admin-body #settingsPanel .settings-premium-banner::after {
  width: 230px !important;
  height: 230px !important;
  right: -74px !important;
  bottom: -118px !important;
  background: rgba(233, 30, 99, .26) !important;
}

.admin-body #settingsPanel .settings-premium-banner h3 {
  font-size: clamp(28px, 2.4vw, 38px) !important;
  margin: 12px 0 10px !important;
  letter-spacing: -.03em !important;
}

.admin-body #settingsPanel .settings-premium-banner p {
  color:#101827 !important; 
  font-size: 16px !important;
}

.admin-body #settingsPanel .settings-banner-art {
  position: absolute !important;
  right: 270px !important;
  top: 42px !important;
  width: 135px !important;
  height: 100px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.admin-body #settingsPanel .settings-banner-art .fa-gear {
  position: absolute !important;
  left: 6px !important;
  top: 20px !important;
  font-size: 74px !important;
  color: #ec4899 !important;
  filter: drop-shadow(0 14px 22px rgba(233,30,99,.26)) !important;
  z-index: 2 !important;
}

.admin-body #settingsPanel .settings-banner-art .fa-desktop {
  position: absolute !important;
  right: 0 !important;
  top: 10px !important;
  font-size: 72px !important;
  color: rgba(255,255,255,.28) !important;
}

.admin-body #settingsPanel .admin-page-badge {
  z-index: 3 !important;
  min-width: 172px !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  padding: 14px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 16px 32px rgba(0,0,0,.18) !important;
}

.admin-body #settingsPanel .settings-premium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.admin-body #settingsPanel .settings-premium-card {
  position: relative !important;
  min-height: 290px !important;
  padding: 34px 32px 28px !important;
  border-radius: 22px !important;
  border: 1px solid #f5cddd !important;
  background: linear-gradient(145deg, #ffffff 0%, #fffafd 100%) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .055) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.admin-body #settingsPanel .settings-premium-card:hover {
  transform: translateY(-4px) !important;
  border-color: #f8a9c7 !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, .09) !important;
}

.admin-body #settingsPanel .settings-premium-card > i {
  width: 62px !important;
  height: 62px !important;
  border-radius: 18px !important;
  margin-bottom: 26px !important;
  font-size: 25px !important;
  background: linear-gradient(135deg, #ffe8f1, #fff3f8) !important;
  color: #e91e63 !important;
  box-shadow: none !important;
}

.admin-body #settingsPanel .settings-premium-card h4 {
  font-size: 24px !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  margin: 0 0 14px !important;
  color: #111827 !important;
}

.admin-body #settingsPanel .settings-premium-card p {
  font-size: 17px !important;
  line-height: 1.62 !important;
  color: #405574 !important;
  margin: 0 0 24px !important;
}

.admin-body #settingsPanel .settings-premium-card span {
  font-size: 15px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #078a56 !important;
  font-weight: 900 !important;
}

.admin-body #settingsPanel .settings-premium-card span.badge-blue {
  background: #e0f2fe !important;
  color: #0876c9 !important;
}

.admin-body #settingsPanel .settings-card-arrow {
  position: absolute !important;
  top: 36px !important;
  right: 32px !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: transparent !important;
  color: #e91e63 !important;
  font-size: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: default !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.admin-body #settingsPanel .settings-about-card {
  margin-top: 26px !important;
  padding: 22px 28px !important;
  min-height: 86px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  border-radius: 20px !important;
  border: 1px solid #f6cbd9 !important;
  background: linear-gradient(135deg, #fff1f6, #fff8fb) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .035) !important;
}

.admin-body #settingsPanel .settings-about-card > i {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #e91e63 !important;
  color: #fff !important;
  font-size: 20px !important;
  flex: 0 0 auto !important;
}

.admin-body #settingsPanel .settings-about-card h4 {
  margin: 0 0 6px !important;
  color: #e91e63 !important;
  font-size: 18px !important;
}

.admin-body #settingsPanel .settings-about-card p {
  margin: 0 !important;
  color: #405574 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

@media (max-width: 1180px) {
  .admin-body #settingsPanel .settings-premium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .admin-body #settingsPanel .settings-banner-art {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .admin-body #settingsPanel.admin-polished-panel {
    padding: 14px !important;
    border-radius: 20px !important;
  }
  .admin-body #settingsPanel .settings-premium-banner {
    min-height: auto !important;
    padding: 22px !important;
  }
  .admin-body #settingsPanel .settings-premium-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .admin-body #settingsPanel .settings-premium-card {
    min-height: auto !important;
    padding: 24px 22px !important;
  }
  .admin-body #settingsPanel .settings-premium-card h4 {
    font-size: 21px !important;
  }
  .admin-body #settingsPanel .settings-premium-card p {
    font-size: 15px !important;
  }
  .admin-body #settingsPanel .settings-about-card {
    align-items: flex-start !important;
    padding: 18px !important;
  }
}

/* =========================================================
   FINAL PROFILE APPROVAL PREMIUM UI POLISH - UI ONLY
   Matches clean SaaS profile approval mockup
========================================================= */
.admin-body #profilesPanel.admin-polished-panel{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
.admin-body #profilesPanel .profile-premium-banner{
  position:relative !important;
  min-height:150px !important;
  padding:30px 36px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:26px !important;
  border-radius:18px !important;
  border:0 !important;
  background:
    radial-gradient(circle at 87% 95%, rgba(233,30,99,.22) 0 140px, transparent 142px),
    linear-gradient(135deg,#071126 0%,#111827 48%,#2a1238 100%) !important;
  box-shadow:0 22px 54px rgba(15,23,42,.16) !important;
  overflow:hidden !important;
}
.admin-body #profilesPanel .profile-banner-copy{position:relative;z-index:2;}
.admin-body #profilesPanel .profile-premium-banner .admin-kicker{
  color:#e91e63 !important;
  font-size:14px !important;
  font-weight:950 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}
.admin-body #profilesPanel .profile-premium-banner h3{
  font-size:34px !important;
  line-height:1.05 !important;
  margin:10px 0 10px !important;
  color:#fff !important;
  letter-spacing:-.04em !important;
}
.admin-body #profilesPanel .profile-premium-banner p{
  color:rgba(255,255,255,.9) !important;
  font-size:17px !important;
  line-height:1.45 !important;
  max-width:560px !important;
}
.admin-body #profilesPanel .profile-banner-art{
  position:absolute;
  right:280px;
  bottom:-8px;
  width:190px;
  height:146px;
  opacity:.98;
}
.admin-body #profilesPanel .profile-doc-card{
  position:absolute;
  right:34px;
  top:0;
  width:112px;
  height:142px;
  border-radius:16px;
  background:linear-gradient(135deg,#fff,#f4f0ff);
  box-shadow:0 18px 42px rgba(0,0,0,.2);
  padding:22px 18px;
}
.admin-body #profilesPanel .profile-doc-card i{
  width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#e9ddff;color:#7c3aed;font-size:22px;margin-bottom:14px;
}
.admin-body #profilesPanel .profile-doc-card span{display:block;height:7px;border-radius:99px;background:#c7cde0;margin:10px 0;}
.admin-body #profilesPanel .profile-doc-card span:nth-child(2){width:58px;position:absolute;top:27px;right:17px;}
.admin-body #profilesPanel .profile-doc-card span:nth-child(3){width:78px;}
.admin-body #profilesPanel .profile-doc-card span:nth-child(4){width:88px;}
.admin-body #profilesPanel .profile-doc-card span:nth-child(5){width:68px;}
.admin-body #profilesPanel .profile-check-bubble{
  position:absolute;right:0;bottom:22px;width:68px;height:68px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:34px;
  background:linear-gradient(135deg,#ff4f8a,#e91e63);
  box-shadow:0 16px 35px rgba(233,30,99,.35);
}
.admin-body #profilesPanel .profile-premium-banner .admin-page-badge{
  position:relative !important;
  z-index:2 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  white-space:nowrap !important;
  border:0 !important;
  background:#fff !important;
  color:#e91e63 !important;
  font-size:16px !important;
  font-weight:950 !important;
  padding:16px 28px !important;
  border-radius:999px !important;
  box-shadow:0 18px 34px rgba(0,0,0,.18) !important;
}
.admin-body #profilesPanel .admin-mini-metrics{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  margin:22px 0 !important;
}
.admin-body #profilesPanel .admin-mini-metrics > div{
  position:relative !important;
  min-height:130px !important;
  display:grid !important;
  grid-template-columns:76px 1fr !important;
  align-items:center !important;
  gap:20px !important;
  padding:26px 30px !important;
  border:1px solid #eef0f5 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 14px 40px rgba(15,23,42,.07) !important;
  overflow:hidden !important;
}
.admin-body #profilesPanel .admin-mini-metrics > div::before{
  content:"";
  width:66px;height:66px;border-radius:20px;display:block;
  box-shadow:0 14px 28px rgba(15,23,42,.16);
  background:linear-gradient(135deg,#ff4f8a,#e91e63);
}
.admin-body #profilesPanel .admin-mini-metrics > div:nth-child(2)::before{background:linear-gradient(135deg,#22c55e,#059669);}
.admin-body #profilesPanel .admin-mini-metrics > div:nth-child(3)::before{background:linear-gradient(135deg,#8b5cf6,#6d28d9);}
.admin-body #profilesPanel .admin-mini-metrics > div::after{
  right:-22px !important;bottom:-28px !important;width:100px !important;height:100px !important;
  background:rgba(233,30,99,.08) !important;
}
.admin-body #profilesPanel .admin-mini-metrics span{
  grid-column:2;
  color:#475569 !important;
  font-size:15px !important;
  font-weight:900 !important;
  text-transform:none !important;
  letter-spacing:0 !important;
  margin:0 0 6px !important;
}
.admin-body #profilesPanel .admin-mini-metrics strong{
  grid-column:2;
  display:block !important;
  color:#0f172a !important;
  font-size:38px !important;
  font-weight:950 !important;
  letter-spacing:-.04em !important;
  margin:0 !important;
}
.admin-body #profilesPanel .admin-mini-metrics > div:nth-child(1)::before{content:"\f252";font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;}
.admin-body #profilesPanel .admin-mini-metrics > div:nth-child(2)::before{content:"\f4fc";font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;}
.admin-body #profilesPanel .admin-mini-metrics > div:nth-child(3)::before{content:"\f0c0";font-family:"Font Awesome 6 Free";font-weight:900;color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;}
.admin-body #profilesPanel .profile-approval-head{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  gap:20px 26px !important;
  align-items:start !important;
  padding:24px 26px !important;
  border-radius:18px !important;
  border:1px solid #f4d0dd !important;
  background:#fff !important;
  box-shadow:0 18px 44px rgba(15,23,42,.06) !important;
}
.admin-body #profilesPanel .profile-approval-head .admin-kicker{
  color:#e91e63 !important;font-size:15px !important;font-weight:950 !important;letter-spacing:0 !important;text-transform:none !important;
}
.admin-body #profilesPanel .profile-approval-head h3{font-size:24px !important;margin:6px 0 !important;letter-spacing:-.02em !important;}
.admin-body #profilesPanel .profile-approval-head p{font-size:15px !important;color:#475569 !important;}
.admin-body #profilesPanel .admin-profile-toolbar{min-width:620px !important;display:grid !important;grid-template-columns:1fr auto !important;gap:18px !important;align-items:center !important;}
.admin-body #profilesPanel .admin-toolbar-left{grid-column:1/-1;display:flex !important;justify-content:flex-end !important;gap:12px !important;}
.admin-body #profilesPanel .admin-toolbar-left .btn{height:44px !important;border-radius:12px !important;padding:0 18px !important;font-size:14px !important;font-weight:950 !important;}
.admin-body #profilesPanel .admin-search-field{width:420px !important;height:46px !important;border-color:#e5e7eb !important;border-radius:13px !important;background:#fff !important;}
.admin-body #profilesPanel .profile-filter-btn{height:46px !important;border-color:#e5e7eb !important;color:#0f172a !important;border-radius:13px !important;background:#fff !important;padding:0 20px !important;gap:10px !important;}
.admin-body #profilesPanel .profile-approval-filters{grid-column:1 / 2 !important;grid-row:2 !important;align-self:end !important;gap:12px !important;padding-top:8px !important;}
.admin-body #profilesPanel .profile-approval-filters button{height:42px !important;padding:0 18px !important;border-radius:999px !important;font-size:14px !important;background:#fff !important;border-color:#e5e7eb !important;color:#475569 !important;}
.admin-body #profilesPanel .profile-approval-filters button.active{background:linear-gradient(135deg,#ec1f69,#e91e63) !important;border-color:#e91e63 !important;color:#fff !important;}
.admin-body #profilesPanel .admin-table-wrap{margin-top:12px !important;border:1px solid #e8ecf3 !important;border-radius:18px !important;box-shadow:0 18px 44px rgba(15,23,42,.08) !important;overflow:auto !important;background:#fff !important;}
.admin-body #profilesPanel .admin-table{min-width:1200px !important;width:100% !important;table-layout:fixed !important;border-collapse:separate !important;border-spacing:0 !important;}
.admin-body #profilesPanel .admin-table th:nth-child(1),
.admin-body #profilesPanel .admin-table td:nth-child(1){width:30% !important;}
.admin-body #profilesPanel .admin-table th:nth-child(2),
.admin-body #profilesPanel .admin-table td:nth-child(2){width:31% !important;}
.admin-body #profilesPanel .admin-table th:nth-child(3),
.admin-body #profilesPanel .admin-table td:nth-child(3){width:15% !important;text-align:center !important;}
.admin-body #profilesPanel .admin-table th:nth-child(4),
.admin-body #profilesPanel .admin-table td:nth-child(4){width:24% !important;}
.admin-body #profilesPanel .admin-table thead th{height:46px !important;padding:0 24px !important;background:linear-gradient(135deg,#071126,#111827) !important;color:#fff !important;font-size:13px !important;font-weight:950 !important;letter-spacing:.05em !important;text-transform:uppercase !important;}
.admin-body #profilesPanel .admin-table td{height:72px !important;padding:12px 24px !important;border-bottom:1px solid #edf0f5 !important;background:#fff !important;vertical-align:middle !important;}
.admin-body #profilesPanel .admin-profile-mini.compact-profile{display:grid !important;grid-template-columns:52px minmax(0,1fr) !important;gap:16px !important;align-items:center !important;}
.admin-body #profilesPanel .admin-profile-mini.compact-profile img{width:52px !important;height:52px !important;border-radius:50% !important;box-shadow:0 8px 18px rgba(15,23,42,.13) !important;}
.admin-body #profilesPanel .admin-profile-lines b,
.admin-body #profilesPanel .admin-detail-lines b{font-size:16px !important;line-height:1.2 !important;color:#0f172a !important;font-weight:950 !important;}
.admin-body #profilesPanel .admin-profile-lines small,
.admin-body #profilesPanel .admin-detail-lines small{font-size:13px !important;line-height:1.35 !important;color:#475569 !important;font-weight:700 !important;}
.admin-body #profilesPanel .admin-actions.profile-row-actions{white-space:nowrap !important;text-align:left !important;}
.admin-body #profilesPanel .admin-actions.profile-row-actions .btn.mini{height:36px !important;min-height:36px !important;padding:0 14px !important;margin-right:8px !important;border-radius:10px !important;font-size:12.5px !important;font-weight:950 !important;display:inline-flex !important;align-items:center !important;gap:7px !important;}
.admin-body #profilesPanel .admin-actions.profile-row-actions .btn.kebab{width:40px !important;padding:0 !important;margin-right:0 !important;color:#0f172a !important;border-color:#e5e7eb !important;background:#fff !important;}
.admin-body #profilesPanel .admin-table tfoot td,
.admin-body #profilesPanel .profile-table-footer{padding:18px 24px !important;}
@media(max-width:1180px){
  .admin-body #profilesPanel .profile-banner-art{display:none;}
  .admin-body #profilesPanel .profile-approval-head{grid-template-columns:1fr !important;}
  .admin-body #profilesPanel .admin-profile-toolbar{min-width:0 !important;width:100% !important;}
  .admin-body #profilesPanel .admin-toolbar-left{justify-content:flex-start !important;}
}
@media(max-width:900px){
  .admin-body #profilesPanel .admin-mini-metrics{grid-template-columns:1fr !important;}
  .admin-body #profilesPanel .profile-premium-banner{padding:24px !important;}
  .admin-body #profilesPanel .profile-premium-banner h3{font-size:28px !important;}
  .admin-body #profilesPanel .admin-search-field{width:100% !important;}
}

/* FINAL ADMIN SIDEBAR ALIGNMENT FIX - UI ONLY
   Prevents long menu labels from overflowing/overlapping the content area. */
.admin-body .admin-layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
}

.admin-body .admin-sidebar {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  padding: 38px 20px 28px !important;
}

.admin-body .admin-side-link,
.admin-body .admin-sidebar .admin-side-link {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 13px !important;
  padding: 14px 16px !important;
  margin: 0 0 10px 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  transform: none !important;
}

.admin-body .admin-side-link i,
.admin-body .admin-sidebar .admin-side-link i {
  width: 22px !important;
  min-width: 22px !important;
  flex: 0 0 22px !important;
  text-align: center !important;
  margin: 0 !important;
}

.admin-body .admin-side-link span,
.admin-body .admin-sidebar .admin-side-link span {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.admin-body .admin-side-link.active,
.admin-body .admin-side-link:hover {
  transform: none !important;
}

@media (max-width: 1180px) {
  .admin-body .admin-layout {
    grid-template-columns: 290px minmax(0, 1fr) !important;
  }
  .admin-body .admin-sidebar {
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .admin-body .admin-side-link,
  .admin-body .admin-sidebar .admin-side-link {
    padding-left: 14px !important;
    padding-right: 14px !important;
    gap: 12px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 980px) {
  .admin-body .admin-layout {
    grid-template-columns: 1fr !important;
  }
  .admin-body .admin-sidebar {
    width: min(86vw, 310px) !important;
    min-width: 0 !important;
    max-width: min(86vw, 310px) !important;
  }
}

/* =========================================================
   ADMIN MOBILE PREMIUM RESPONSIVE PASS - 2026-07-06
   Covers admin drawer + every admin menu section on mobile.
   ========================================================= */
.admin-body.admin-menu-open {
  overflow: hidden !important;
}

.admin-body .admin-main,
.admin-body .admin-panel,
.admin-body .admin-polished-panel,
.admin-body .admin-dashboard-panel {
  min-width: 0 !important;
}

.admin-body .admin-table-wrap {
  scrollbar-width: thin;
}

.admin-body .admin-table-wrap::after {
  content: "Swipe left/right to view full table";
  display: none;
  padding: 10px 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  background: #fff7fb;
  border-top: 1px solid #ffe0eb;
}

@media (max-width: 980px) {
  .admin-mobile-toggle {
    display: inline-flex !important;
  }

  .admin-body .admin-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1200 !important;
  }

  .admin-body .admin-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  .admin-sidebar-overlay {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, .62) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 1290 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .22s ease !important;
  }

  .admin-body.admin-menu-open .admin-sidebar-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .admin-body .admin-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(88vw, 330px) !important;
    min-width: 0 !important;
    max-width: min(88vw, 330px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 18px 14px 26px !important;
    border-radius: 0 28px 28px 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1300 !important;
    transform: translateX(-106%) !important;
    transition: transform .24s ease !important;
    box-shadow: 28px 0 70px rgba(2, 6, 23, .34) !important;
  }

  .admin-body.admin-menu-open .admin-sidebar {
    transform: translateX(0) !important;
  }

  .admin-body .admin-sidebar h3 {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: -2px -2px 14px !important;
    padding: 12px 4px 14px !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    background: inherit !important;
  }

  .admin-sidebar-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    cursor: pointer !important;
  }

  .admin-body .admin-sidebar .admin-side-link,
  .admin-body .admin-side-link {
    min-height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 13px 14px !important;
    margin: 0 0 9px !important;
    border-radius: 16px !important;
    gap: 12px !important;
    white-space: normal !important;
    text-align: left !important;
    line-height: 1.25 !important;
    font-size: 14px !important;
    touch-action: manipulation !important;
  }

  .admin-body .admin-sidebar .admin-side-link span,
  .admin-body .admin-side-link span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .admin-body .admin-section {
    padding: 14px 0 28px !important;
  }

  .admin-body .admin-section .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-body .admin-main {
    width: 100% !important;
    padding: 0 !important;
  }

  .admin-body .admin-panel,
  .admin-body .admin-polished-panel {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 20px !important;
    overflow: visible !important;
  }

  .admin-body .admin-page-banner,
  .admin-body .profile-premium-banner,
  .admin-body .users-premium-banner,
  .admin-body .membership-approval-banner,
  .admin-body .premium-users-banner,
  .admin-body .feedback-premium-banner,
  .admin-body .settings-premium-banner,
  .admin-body .analytics-premium-banner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .admin-body .admin-page-banner h3,
  .admin-body .profile-premium-banner h3,
  .admin-body .users-premium-banner h3,
  .admin-body .membership-approval-banner h3,
  .admin-body .premium-users-banner h3 {
    font-size: clamp(24px, 8vw, 32px) !important;
    line-height: 1.05 !important;
  }

  .admin-body .admin-page-banner p,
  .admin-body .profile-premium-banner p,
  .admin-body .users-premium-banner p,
  .admin-body .membership-approval-banner p,
  .admin-body .premium-users-banner p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  .admin-body .profile-banner-art,
  .admin-body .premium-banner-visual,
  .admin-body .admin-hero-art,
  .admin-body .membership-banner-side {
    display: none !important;
  }

  .admin-body .admin-page-badge,
  .admin-body .users-add-user {
    position: static !important;
    width: fit-content !important;
    max-width: 100% !important;
  }

  .admin-body .admin-stats-grid,
  .admin-body .admin-dashboard-stats,
  .admin-body .admin-mini-metrics,
  .admin-body .users-stat-grid,
  .admin-body .premium-users-metrics,
  .admin-body .membership-payment-metrics,
  .admin-body .analytics-grid,
  .admin-body .settings-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .admin-body .admin-dashboard-grid,
  .admin-body .admin-review-grid,
  .admin-body .admin-form,
  .admin-body .feedback-dashboard-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .admin-body .admin-panel-head,
  .admin-body .polished-head,
  .admin-body .compact-head,
  .admin-body .users-list-head,
  .admin-body .membership-approval-toolbar,
  .admin-body .premium-users-toolbar-card,
  .admin-body .premium-basic-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .admin-body .admin-inline-actions,
  .admin-body .admin-profile-toolbar,
  .admin-body .admin-toolbar-left,
  .admin-body .users-toolbar,
  .admin-body .membership-toolbar-actions,
  .admin-body .premium-users-tools,
  .admin-body .premium-basic-toolbar,
  .admin-body .admin-premium-filters,
  .admin-body .profile-approval-filters,
  .admin-body .users-filter-tabs,
  .admin-body .membership-filter-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    gap: 9px !important;
    margin-left: 0 !important;
  }

  .admin-body .admin-search-field,
  .admin-body .users-search,
  .admin-body .membership-search,
  .admin-body .premium-users-search,
  .admin-body .premium-basic-toolbar input,
  .admin-body .admin-inline-actions input,
  .admin-body .admin-profile-toolbar input,
  .admin-body .admin-toolbar-left .btn,
  .admin-body .admin-inline-actions .btn,
  .admin-body .users-tool-btn,
  .admin-body .membership-tool-btn,
  .admin-body .premium-tool-btn,
  .admin-body .admin-premium-filters button,
  .admin-body .profile-approval-filters button,
  .admin-body .users-filter-tabs button,
  .admin-body .membership-filter-tabs button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body .admin-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
    box-shadow: inset -18px 0 18px -20px rgba(15,23,42,.28) !important;
  }

  .admin-body .admin-table-wrap::after {
    display: block;
  }

  .admin-body .admin-table,
  .admin-body #profilesPanel .admin-table,
  .admin-body #usersPanel .admin-table,
  .admin-body #paymentsPanel .admin-table,
  .admin-body #premiumUsersPanel .admin-table {
    min-width: 760px !important;
    width: 760px !important;
    font-size: 13px !important;
  }

  .admin-body .users-premium-table,
  .admin-body .premium-users-table,
  .admin-body .premium-membership-table {
    min-width: 860px !important;
    width: 860px !important;
  }

  .admin-body .admin-table th,
  .admin-body .admin-table td,
  .admin-body #profilesPanel .admin-table td,
  .admin-body #profilesPanel .admin-table thead th {
    height: auto !important;
    padding: 12px !important;
  }

  .admin-body .admin-actions,
  .admin-body .profile-row-actions {
    white-space: nowrap !important;
  }

  .admin-body .admin-actions .btn,
  .admin-body .admin-actions .btn.mini {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .admin-body .users-table-footer,
  .admin-body .membership-table-footer,
  .admin-body .premium-users-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    text-align: center !important;
  }

  .admin-body .users-pagination {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .admin-body .admin-list-panel,
  .admin-body #adminReportsList,
  .admin-body #adminFeedbackList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 560px) {
  .admin-body .admin-header {
    padding: 9px 10px !important;
    gap: 8px !important;
  }

  .admin-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
  }

  .admin-body .admin-header-left img {
    width: auto !important;
    height: 70px !important;
  }

  .admin-body .admin-header-left h2 {
    max-width: 62vw !important;
    font-size: 14px !important;
  }

  .admin-body .admin-header-left span {
    max-width: 62vw !important;
    font-size: 10.5px !important;
  }

  .admin-body .admin-section .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .admin-body .admin-panel,
  .admin-body .admin-polished-panel {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .admin-body .admin-topbar,
  .admin-body .admin-dashboard-card,
  .admin-body .admin-page-banner,
  .admin-body .profile-premium-banner,
  .admin-body .users-premium-banner,
  .admin-body .membership-approval-banner,
  .admin-body .premium-users-banner {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .admin-body .dashboard-stat-card,
  .admin-body .admin-stat-card,
  .admin-body .users-stat-card,
  .admin-body .premium-users-metric,
  .admin-body .payment-metric-card,
  .admin-body .admin-mini-metrics > div {
    padding: 15px !important;
    border-radius: 17px !important;
  }

  .admin-body .dashboard-stat-card strong,
  .admin-body .admin-stat-card strong,
  .admin-body .users-stat-card strong,
  .admin-body .premium-users-metric strong,
  .admin-body .payment-metric-card strong {
    font-size: 28px !important;
  }

  .admin-body .admin-table,
  .admin-body #profilesPanel .admin-table,
  .admin-body #usersPanel .admin-table,
  .admin-body #paymentsPanel .admin-table,
  .admin-body #premiumUsersPanel .admin-table {
    min-width: 720px !important;
    width: 720px !important;
  }

  .admin-body .users-premium-table,
  .admin-body .premium-users-table,
  .admin-body .premium-membership-table {
    min-width: 820px !important;
    width: 820px !important;
  }
}

/* =========================================
   ADMIN PROFILE APPROVAL MOBILE ACTION FIX
   Keeps all Review/Approve/Reject/Pending actions visible on phones.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #profilesPanel .admin-table-wrap {
    overflow: visible !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body #profilesPanel .admin-table,
  .admin-body #profilesPanel .admin-table thead,
  .admin-body #profilesPanel .admin-table tbody,
  .admin-body #profilesPanel .admin-table tr,
  .admin-body #profilesPanel .admin-table th,
  .admin-body #profilesPanel .admin-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body #profilesPanel .admin-table {
    border-collapse: separate !important;
    border-spacing: 0 14px !important;
    background: transparent !important;
    table-layout: auto !important;
  }

  .admin-body #profilesPanel .admin-table thead {
    display: none !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr {
    margin: 0 0 14px !important;
    padding: 14px !important;
    border: 1px solid #ffe0eb !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg,#fff,#fff7fb) !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.08) !important;
    overflow: visible !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr.admin-inline-edit-row {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .admin-body #profilesPanel .admin-table td {
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-table td::before {
    content: attr(data-mobile-label);
    display: block !important;
    margin-bottom: 7px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  .admin-body #profilesPanel .admin-table td:nth-child(1)::before { content: "Profile"; }
  .admin-body #profilesPanel .admin-table td:nth-child(2)::before { content: "Details"; }
  .admin-body #profilesPanel .admin-table td:nth-child(3)::before { content: "Status"; }
  .admin-body #profilesPanel .admin-table td:nth-child(4)::before { content: "Actions"; }
  .admin-body #profilesPanel .admin-inline-edit-row td::before { display: none !important; content: "" !important; }

  .admin-body #profilesPanel .admin-profile-mini.compact-profile {
    grid-template-columns: 52px minmax(0,1fr) !important;
    gap: 12px !important;
  }

  .admin-body #profilesPanel .admin-profile-lines b,
  .admin-body #profilesPanel .admin-profile-lines small,
  .admin-body #profilesPanel .admin-detail-lines b,
  .admin-body #profilesPanel .admin-detail-lines small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
  }

  .admin-body #profilesPanel td.admin-status-cell {
    text-align: left !important;
  }

  .admin-body #profilesPanel td.admin-actions,
  .admin-body #profilesPanel .profile-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    white-space: normal !important;
    overflow: visible !important;
    padding-top: 10px !important;
  }

  .admin-body #profilesPanel td.admin-actions .btn.mini,
  .admin-body #profilesPanel .profile-row-actions .btn.mini {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
  }

  .admin-body #profilesPanel td.admin-actions .btn.kebab,
  .admin-body #profilesPanel .profile-row-actions .btn.kebab {
    width: 100% !important;
  }

  .admin-body #profilesPanel .admin-form-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .admin-body #profilesPanel #cancelProfileForm,
  .admin-body #profilesPanel .admin-form-actions .btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
  }
}

@media (max-width: 380px) {
  .admin-body #profilesPanel td.admin-actions,
  .admin-body #profilesPanel .profile-row-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   ADMIN PROFILE APPROVAL REVIEW MOBILE UI FIX
   Makes the opened Review/Preview details compact instead of stretched/overflowing.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #profilesPanel .admin-table tbody tr.admin-inline-edit-row {
    display: block !important;
    width: 100% !important;
    margin: -4px 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-row > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-row > td::before {
    display: none !important;
    content: "" !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-form.admin-review-form {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #ffd5e4 !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #fff, #fff8fb) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08) !important;
    overflow: hidden !important;
  }

  .admin-body #profilesPanel .admin-review-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
  }

  .admin-body #profilesPanel .admin-review-field {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 12px !important;
    border: 1px solid #ffe0eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  .admin-body #profilesPanel .admin-review-field span,
  .admin-body #profilesPanel .admin-review-about span {
    flex: 0 0 auto !important;
    max-width: 46% !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 12.5px !important;
    font-weight: 950 !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-review-field strong {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .admin-body #profilesPanel .admin-review-field .btn.mini {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 92px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .admin-body #profilesPanel .admin-review-field.admin-status-edit {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .admin-body #profilesPanel .admin-review-field.admin-status-edit span {
    max-width: 100% !important;
  }

  .admin-body #profilesPanel .admin-review-field.admin-status-edit select {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  .admin-body #profilesPanel .admin-review-about {
    width: 100% !important;
    margin-top: 10px !important;
    padding: 12px !important;
    border: 1px solid #ffe0eb !important;
    border-radius: 14px !important;
    background: #fff !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-review-about p {
    margin: 6px 0 0 !important;
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #profilesPanel .admin-review-form .admin-form-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .admin-body #profilesPanel .admin-review-form .admin-form-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 380px) {
  .admin-body #profilesPanel .admin-review-field {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .admin-body #profilesPanel .admin-review-field span,
  .admin-body #profilesPanel .admin-review-field strong {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-review-field .btn.mini {
    width: 100% !important;
  }
}

/* =========================================
   FINAL PROFILE APPROVAL MOBILE CARD RESET
   Fixes narrow/stretched profile preview rows caused by desktop table widths.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #profilesPanel,
  .admin-body #profilesPanel * {
    box-sizing: border-box !important;
  }

  .admin-body #profilesPanel .admin-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .admin-body #profilesPanel .admin-table,
  .admin-body #profilesPanel .admin-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .admin-body #profilesPanel .admin-table thead {
    display: none !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 16px !important;
    border: 1px solid #ffd5e4 !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, #ffffff, #fff8fb) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08) !important;
    overflow: hidden !important;
    transform: none !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td,
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(1),
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(2),
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(3),
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(4) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td::before {
    display: block !important;
    margin: 0 0 8px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(1)::before { content: "Profile" !important; }
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(2)::before { content: "Details" !important; }
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(3)::before { content: "Status" !important; }
  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(4)::before { content: "Actions" !important; }

  .admin-body #profilesPanel .admin-profile-mini.compact-profile,
  .admin-body #profilesPanel .admin-profile-mini {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-profile-mini.compact-profile img,
  .admin-body #profilesPanel .admin-profile-mini img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .admin-body #profilesPanel .admin-profile-lines,
  .admin-body #profilesPanel .admin-detail-lines {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-profile-lines b,
  .admin-body #profilesPanel .admin-detail-lines b,
  .admin-body #profilesPanel .admin-profile-lines small,
  .admin-body #profilesPanel .admin-detail-lines small {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-align: left !important;
  }

  .admin-body #profilesPanel .admin-profile-lines b,
  .admin-body #profilesPanel .admin-detail-lines b {
    font-size: 16px !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
  }

  .admin-body #profilesPanel .admin-profile-lines small,
  .admin-body #profilesPanel .admin-detail-lines small {
    font-size: 13px !important;
    line-height: 1.35 !important;
    color: #475569 !important;
  }

  .admin-body #profilesPanel td.admin-status-cell,
  .admin-body #profilesPanel .admin-status-cell {
    text-align: left !important;
  }

  .admin-body #profilesPanel td.admin-status-cell .admin-status,
  .admin-body #profilesPanel .admin-status-cell .admin-status {
    display: inline-flex !important;
    width: auto !important;
    min-width: 82px !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 8px 14px !important;
    line-height: 1 !important;
  }

  .admin-body #profilesPanel td.admin-actions,
  .admin-body #profilesPanel .profile-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
  }

  .admin-body #profilesPanel td.admin-actions .btn.mini,
  .admin-body #profilesPanel .profile-row-actions .btn.mini {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: 12.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-row,
  .admin-body #profilesPanel .admin-table tbody tr.admin-inline-edit-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: -6px 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-row > td,
  .admin-body #profilesPanel .admin-inline-edit-row > td:nth-child(1) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body #profilesPanel .admin-inline-edit-row > td::before {
    display: none !important;
    content: "" !important;
  }
}

@media (max-width: 380px) {
  .admin-body #profilesPanel td.admin-actions,
  .admin-body #profilesPanel .profile-row-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================
   ADMIN PROFILE APPROVAL MOBILE SPACING + KEBAB POLISH
   Keeps cards compact, places pending menu at top-right, and keeps Add Profile clean.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #profilesPanel .admin-panel-head.polished-head,
  .admin-body #profilesPanel .profile-approval-head {
    gap: 14px !important;
    padding: 18px !important;
  }

  .admin-body #profilesPanel .admin-profile-toolbar {
    gap: 12px !important;
  }

  .admin-body #profilesPanel #adminProfileForm.admin-form {
    display: none;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 16px 0 20px !important;
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .admin-body #profilesPanel #adminProfileForm.admin-form[style*="grid"] {
    display: grid !important;
  }

  .admin-body #profilesPanel #adminProfileForm input,
  .admin-body #profilesPanel #adminProfileForm select,
  .admin-body #profilesPanel #adminProfileForm textarea {
    min-height: 44px !important;
    border-radius: 13px !important;
  }

  .admin-body #profilesPanel #adminProfileForm textarea {
    min-height: 96px !important;
  }

  .admin-body #profilesPanel .admin-table-wrap {
    margin-top: 14px !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) {
    position: relative !important;
    gap: 9px !important;
    margin-bottom: 14px !important;
    padding: 16px 16px 17px !important;
    border-radius: 18px !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td::before {
    margin-bottom: 6px !important;
    font-size: 11px !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row) > td:nth-child(1)::before {
    padding-right: 54px !important;
  }

  .admin-body #profilesPanel .admin-profile-mini.compact-profile,
  .admin-body #profilesPanel .admin-profile-mini {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .admin-body #profilesPanel .admin-profile-mini.compact-profile img,
  .admin-body #profilesPanel .admin-profile-mini img {
    width: 54px !important;
    height: 54px !important;
  }

  .admin-body #profilesPanel .admin-profile-lines,
  .admin-body #profilesPanel .admin-detail-lines {
    gap: 3px !important;
  }

  .admin-body #profilesPanel .admin-profile-lines b,
  .admin-body #profilesPanel .admin-detail-lines b {
    font-size: 17px !important;
    line-height: 1.15 !important;
  }

  .admin-body #profilesPanel .admin-profile-lines small,
  .admin-body #profilesPanel .admin-detail-lines small {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .admin-body #profilesPanel td.admin-status-cell .admin-status,
  .admin-body #profilesPanel .admin-status-cell .admin-status {
    padding: 7px 14px !important;
    min-width: 88px !important;
  }

  .admin-body #profilesPanel td.admin-actions,
  .admin-body #profilesPanel .profile-row-actions {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    padding-top: 0 !important;
  }

  .admin-body #profilesPanel td.admin-actions .btn.mini,
  .admin-body #profilesPanel .profile-row-actions .btn.mini {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
  }

  .admin-body #profilesPanel td.admin-actions .btn.kebab,
  .admin-body #profilesPanel .profile-row-actions .btn.kebab {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 4 !important;
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(225, 29, 89, .18) !important;
  }

  .admin-body #profilesPanel .admin-review-form .admin-form-actions,
  .admin-body #profilesPanel .admin-form-actions {
    gap: 10px !important;
  }
}

/* =========================================
   ADMIN USERS MOBILE CLEAN CARD FIX
   Converts User List table into readable cards on phones and prevents overlap/cropping.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #usersPanel.users-premium-panel {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .admin-body #usersPanel .users-list-card {
    padding: 18px 12px 16px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  .admin-body #usersPanel .users-list-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 14px !important;
  }

  .admin-body #usersPanel .users-list-head h3 {
    font-size: 24px !important;
    line-height: 1.1 !important;
    margin-bottom: 6px !important;
  }

  .admin-body #usersPanel .users-list-head p {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
  }

  .admin-body #usersPanel .users-filter-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-body #usersPanel .users-filter-tabs button,
  .admin-body #usersPanel .users-tool-btn,
  .admin-body #usersPanel .users-page-size {
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    justify-content: center !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .admin-body #usersPanel .users-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .admin-body #usersPanel .users-search {
    width: 100% !important;
    height: 46px !important;
    min-width: 0 !important;
    border-radius: 13px !important;
  }

  .admin-body #usersPanel .users-search input {
    min-width: 0 !important;
    font-size: 14px !important;
  }

  .admin-body #usersPanel .users-premium-table-wrap,
  .admin-body #usersPanel .admin-table-wrap.users-premium-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body #usersPanel .users-premium-table,
  .admin-body #usersPanel .admin-table.users-premium-table,
  .admin-body #usersPanel .users-premium-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
  }

  .admin-body #usersPanel .users-premium-table thead {
    display: none !important;
  }

  .admin-body #usersPanel .users-premium-table tbody tr {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
    padding: 16px !important;
    border: 1px solid #ffd1df !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06) !important;
    overflow: hidden !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    color: #111827 !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td::before {
    display: block !important;
    margin-bottom: 4px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(1) {
    grid-column: 1 / -1 !important;
    padding-right: 44px !important;
  }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(1)::before { content: "User" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(2)::before { content: "Age" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(3)::before { content: "Gender" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(4)::before { content: "City" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(5)::before { content: "Membership" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(6)::before { content: "Status" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(7)::before { content: "Joined" !important; }
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(8)::before { content: "Last Seen" !important; }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(5),
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(6) {
    grid-column: 1 / -1 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(9) {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(9)::before {
    display: none !important;
    content: "" !important;
  }

  .admin-body #usersPanel .users-profile-cell,
  .admin-body #usersPanel .admin-profile-mini.users-profile-cell {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body #usersPanel .users-profile-cell img {
    width: 54px !important;
    height: 54px !important;
  }

  .admin-body #usersPanel .users-profile-cell b,
  .admin-body #usersPanel .users-profile-cell small,
  .admin-body #usersPanel .users-membership-cell b,
  .admin-body #usersPanel .users-membership-cell small {
    max-width: 100% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #usersPanel .users-profile-cell b {
    font-size: 17px !important;
    line-height: 1.15 !important;
  }

  .admin-body #usersPanel .users-profile-cell small,
  .admin-body #usersPanel .users-membership-cell small {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
  }

  .admin-body #usersPanel .users-membership-cell b {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .admin-body #usersPanel .users-status-badge {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 8px 13px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  .admin-body #usersPanel .users-row-action {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  .admin-body #usersPanel .users-table-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
    padding: 12px 4px 4px !important;
    text-align: center !important;
  }

  .admin-body #usersPanel .users-pagination {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  .admin-body #usersPanel .users-page-size {
    max-width: 280px !important;
  }
}

@media (min-width: 641px) {
  .admin-body #usersPanel .users-premium-table-wrap {
    overflow-x: auto !important;
  }
}

/* =========================================
   ADMIN USERS MOBILE SPACING + CROP FINAL FIX
   Cleans card spacing, keeps bottom content visible, and prevents date/status crop.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #usersPanel,
  .admin-body #usersPanel.users-premium-panel {
    overflow: visible !important;
    padding-bottom: 24px !important;
  }

  .admin-body #usersPanel .users-list-card,
  .admin-body #usersPanel .users-premium-table-wrap,
  .admin-body #usersPanel .admin-table-wrap.users-premium-table-wrap,
  .admin-body #usersPanel .users-premium-table,
  .admin-body #usersPanel .users-premium-table tbody {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .admin-body #usersPanel .users-premium-table tbody {
    padding-bottom: 10px !important;
  }

  .admin-body #usersPanel .users-premium-table tbody tr {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 11px 18px !important;
    padding: 17px 16px 18px !important;
    margin-bottom: 16px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td {
    min-width: 0 !important;
    overflow: visible !important;
    line-height: 1.25 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td::before {
    margin-bottom: 10px !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(1) {
    padding-right: 50px !important;
    margin-bottom: 2px !important;
  }

  .admin-body #usersPanel .users-profile-cell,
  .admin-body #usersPanel .admin-profile-mini.users-profile-cell {
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .admin-body #usersPanel .users-profile-cell img {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
  }

  .admin-body #usersPanel .users-profile-cell b {
    font-size: 17px !important;
    line-height: 1.18 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .admin-body #usersPanel .users-profile-cell small {
    display: block !important;
    margin-top: 2px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(2),
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(3),
  .admin-body #usersPanel .users-premium-table tbody,
  .admin-body #usersPanel .users-premium-table tbody,
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(8) {
    font-size: 13.5px !important;
    font-weight: 800 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
  }

  .admin-body #usersPanel .users-membership-cell {
    display: block !important;
    max-width: 100% !important;
  }

  .admin-body #usersPanel .users-membership-cell b {
    display: block !important;
    font-size: 15.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #usersPanel .users-membership-cell small {
    display: block !important;
    margin-top: 2px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(6) {
    grid-column: 1 / -1 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .admin-body #usersPanel .users-status-badge {
    display: inline-flex !important;
    width: auto !important;
    min-width: 88px !important;
    max-width: max-content !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    line-height: 1 !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(7),
  .admin-body #usersPanel .users-premium-table tbody td:nth-child(8) {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #usersPanel .users-premium-table tbody td:nth-child(9) {
    top: 14px !important;
    right: 14px !important;
    z-index: 5 !important;
  }

  .admin-body #usersPanel .users-row-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .admin-body #usersPanel .users-table-footer {
    margin-top: 2px !important;
    padding: 14px 6px 8px !important;
  }
}

/* =========================================
   ADMIN MEMBERSHIP APPROVALS MOBILE CARD UI FIX
   Converts request table to clean mobile cards, prevents overlap/crop.
   ========================================= */
@media (max-width: 640px) {
  .admin-body #paymentsPanel,
  .admin-body #paymentsPanel .admin-panel,
  .admin-body #paymentsPanel .membership-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap,
  .admin-body #paymentsPanel .membership-approvals-table,
  .admin-body #paymentsPanel .membership-approvals-table tbody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .admin-body #paymentsPanel .admin-page-banner,
  .admin-body #paymentsPanel .membership-approval-toolbar,
  .admin-body #paymentsPanel .membership-table-wrap,
  .admin-body #paymentsPanel .membership-table-footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .admin-body #paymentsPanel .membership-approval-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel .membership-filter-tabs,
  .admin-body #paymentsPanel .membership-toolbar-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-filter-tabs button,
  .admin-body #paymentsPanel .membership-tool-btn,
  .admin-body #paymentsPanel .membership-search {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    justify-content: center !important;
    border-radius: 14px !important;
  }

  .admin-body #paymentsPanel .membership-search input {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-table-wrap {
    margin-top: 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table,
  .admin-body #paymentsPanel .membership-approvals-table tbody,
  .admin-body #paymentsPanel .membership-approvals-table tr,
  .admin-body #paymentsPanel .membership-approvals-table td {
    display: block !important;
    border: 0 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table thead {
    display: none !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody tr {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px 16px !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 17px 16px 18px !important;
    border: 1px solid #ffd1df !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #fff, #fffafd) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07) !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    color: #111827 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td::before {
    display: block !important;
    margin-bottom: 4px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(1) {
    grid-column: 1 / -1 !important;
    padding-right: 0 !important;
  }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(1)::before { content: "User" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(2)::before { content: "Package" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(3)::before { content: "Txn ID" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(4)::before { content: "Amount" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(5)::before { content: "Screenshot" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(6)::before { content: "Status" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(7)::before { content: "Actions" !important; }

  .admin-body #paymentsPanel .membership-user-cell {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
    flex: 0 0 58px !important;
  }

  .admin-body #paymentsPanel .membership-user-cell b,
  .admin-body #paymentsPanel .membership-package-cell b,
  .admin-body #paymentsPanel .membership-amount b {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
    color: #111827 !important;
    line-height: 1.18 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell b {
    font-size: 17px !important;
    font-weight: 950 !important;
  }

  .admin-body #paymentsPanel .membership-package-cell b {
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell small,
  .admin-body #paymentsPanel .membership-package-cell small,
  .admin-body #paymentsPanel .membership-amount small {
    display: block !important;
    max-width: 100% !important;
    margin-top: 2px !important;
    color: #64748b !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(2),
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(5),
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(7) {
    grid-column: 1 / -1 !important;
  }

  .admin-body #paymentsPanel .membership-txn {
    display: block !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    font-weight: 800 !important;
    color: #334155 !important;
  }

  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .payment-proof-btn,
  .admin-body #paymentsPanel .membership-no-proof {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid #ffd1df !important;
    background: #fff !important;
    color: #e91e63 !important;
    font-weight: 900 !important;
    overflow: hidden !important;
  }

  .admin-body #paymentsPanel .payment-proof-link img,
  .admin-body #paymentsPanel .payment-proof-btn img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex: 0 0 34px !important;
  }

  .admin-body #paymentsPanel .payment-status-badge,
  .admin-body #paymentsPanel .status-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .admin-body #paymentsPanel .membership-actions,
  .admin-body #paymentsPanel td.membership-actions.admin-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-actions .btn,
  .admin-body #paymentsPanel .membership-actions .btn.mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel .membership-table-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 16px 8px 10px !important;
    text-align: center !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel .membership-table-footer .users-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .admin-body #paymentsPanel .membership-table-footer .users-page-size {
    width: 100% !important;
    max-width: 280px !important;
    height: 42px !important;
    border-radius: 13px !important;
  }
}

/* === Membership Users mobile card UI fix - prevents cramped table columns === */
@media (max-width: 760px) {
  .admin-body #premiumUsersPanel.premium-users-section {
    padding: 12px !important;
    border-radius: 22px !important;
    overflow: visible !important;
  }

  .admin-body #premiumUsersPanel .premium-users-toolbar-card {
    padding: 16px !important;
    border-radius: 20px !important;
    gap: 14px !important;
  }

  .admin-body #premiumUsersPanel .admin-premium-filters,
  .admin-body #premiumUsersPanel .premium-users-tools {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .admin-body #premiumUsersPanel .admin-premium-filters button,
  .admin-body #premiumUsersPanel .premium-tool-btn,
  .admin-body #premiumUsersPanel .premium-users-search {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
  }

  .admin-body #premiumUsersPanel .premium-users-search {
    justify-content: flex-start !important;
    height: 50px !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table-wrap {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table,
  .admin-body #premiumUsersPanel .premium-users-table tbody,
  .admin-body #premiumUsersPanel .premium-users-table tr,
  .admin-body #premiumUsersPanel .premium-users-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table {
    min-width: 0 !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table thead {
    display: none !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table tbody {
    display: grid !important;
    gap: 14px !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table tr {
    position: relative !important;
    background: #fff !important;
    border: 1px solid #ffc7d9 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .055) !important;
    overflow: hidden !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    text-align: left !important;
    color: #101827 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:last-child {
    margin-bottom: 0 !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:not(:first-child):not(:last-child)::before {
    content: "";
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(2)::before { content: "Contact"; }
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(3)::before { content: "Package"; }
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(4)::before { content: "Start Date"; }
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(5)::before { content: "Expiry Date"; }
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(6)::before { content: "Status"; }

  .admin-body #premiumUsersPanel .premium-users-table td:first-child {
    padding-right: 54px !important;
    margin-bottom: 14px !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini img {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 18px !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini b {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-profile-mini small {
    display: block !important;
    max-width: 100% !important;
    color: #53627a !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(2),
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(4),
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(5) {
    font-size: 14px !important;
    font-weight: 850 !important;
    color: #1f2937 !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(3) b {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.22 !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(3) small {
    display: inline-block !important;
    margin-top: 3px !important;
    color: #64748b !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(6) .badge,
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(6) .status-badge,
  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(6) span[class*="status"] {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 2px 0 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:nth-child(6) small {
    display: none !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table td:last-child,
  .admin-body #premiumUsersPanel .premium-users-table .admin-actions {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-actions a {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    border: 1px solid #ffc7d9 !important;
    color: transparent !important;
    background: #fff !important;
  }

  .admin-body #premiumUsersPanel .premium-users-table .admin-actions a::before {
    color: #e91e63 !important;
  }

  .admin-body #premiumUsersPanel .premium-users-footer {
    margin-top: 14px !important;
    padding: 16px !important;
    border: 1px solid #eef1f6 !important;
    border-radius: 18px !important;
    background: #fff !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  .admin-body #premiumUsersPanel .premium-users-footer .users-page-size {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================================
   URGENT RESET: Membership Approvals mobile cards
   Fixes squeezed table columns / vertical letter wrapping.
   ========================================= */
@media (max-width: 900px) {
  .admin-body #paymentsPanel,
  .admin-body #paymentsPanel * {
    box-sizing: border-box !important;
  }

  .admin-body #paymentsPanel .membership-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-top: 16px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table,
  .admin-body #paymentsPanel table.premium-membership-table,
  .admin-body #paymentsPanel .membership-approvals-table tbody,
  .admin-body #paymentsPanel .membership-approvals-table tr,
  .admin-body #paymentsPanel .membership-approvals-table td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    border: 0 !important;
    table-layout: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table thead,
  .admin-body #paymentsPanel .premium-membership-table thead {
    display: none !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody {
    display: grid !important;
    gap: 16px !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody tr {
    display: block !important;
    position: relative !important;
    padding: 18px 16px !important;
    border: 1px solid #ffd0de !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06) !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td {
    padding: 0 !important;
    margin: 0 0 14px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-overflow: clip !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:last-child {
    margin-bottom: 0 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td::before {
    content: "" !important;
    display: block !important;
    margin: 0 0 5px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(1)::before { content: "User" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(2)::before { content: "Package" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(3)::before { content: "Txn ID" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(4)::before { content: "Amount" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(5)::before { content: "Screenshot" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(6)::before { content: "Status" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(7)::before { content: "Actions" !important; }

  .admin-body #paymentsPanel .membership-user-cell {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell img {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .admin-body #paymentsPanel .membership-user-cell > div,
  .admin-body #paymentsPanel .membership-package-cell,
  .admin-body #paymentsPanel .membership-amount {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .admin-body #paymentsPanel .membership-user-cell b,
  .admin-body #paymentsPanel .membership-package-cell b,
  .admin-body #paymentsPanel .membership-amount b {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .admin-body #paymentsPanel .membership-user-cell small,
  .admin-body #paymentsPanel .membership-package-cell small,
  .admin-body #paymentsPanel .membership-amount small,
  .admin-body #paymentsPanel .membership-txn {
    display: block !important;
    max-width: 100% !important;
    color: #5f6f86 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.32 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .payment-proof-btn,
  .admin-body #paymentsPanel .membership-no-proof {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid #ffc2d6 !important;
    background: #fff !important;
    color: #e91e63 !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  .admin-body #paymentsPanel .payment-proof-link img,
  .admin-body #paymentsPanel .payment-proof-btn img {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .admin-body #paymentsPanel .admin-status,
  .admin-body #paymentsPanel .status-badge,
  .admin-body #paymentsPanel .payment-status-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .admin-body #paymentsPanel td.membership-actions,
  .admin-body #paymentsPanel .membership-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-actions .btn,
  .admin-body #paymentsPanel .membership-actions button,
  .admin-body #paymentsPanel .membership-actions .btn.mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel .membership-table-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 16px 8px 10px !important;
    text-align: center !important;
    overflow: visible !important;
  }
}

/* =========================================================
   FINAL URGENT FIX: Membership Approvals true mobile cards
   Prevents vertical letter wrapping and makes each request compact.
   ========================================================= */
@media (max-width: 900px) {
  .admin-body #paymentsPanel .membership-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 16px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table,
  .admin-body #paymentsPanel table.membership-approvals-table tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table thead {
    display: none !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border: 1px solid #ffd0de !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    border: 0 !important;
    text-align: left !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td:last-child {
    margin-bottom: 0 !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td::before {
    display: block !important;
    flex: 0 0 82px !important;
    width: 82px !important;
    max-width: 82px !important;
    margin: 2px 0 0 !important;
    color: #64748b !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(1)::before { content: "User" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(2)::before { content: "Package" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(3)::before { content: "Txn ID" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(4)::before { content: "Amount" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(5)::before { content: "Screenshot" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(6)::before { content: "Status" !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td:nth-child(7)::before { content: "Actions" !important; }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td > * {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: calc(100% - 94px) !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: calc(100% - 94px) !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }

  .admin-body #paymentsPanel .membership-user-cell > div {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body #paymentsPanel .membership-user-cell b,
  .admin-body #paymentsPanel .membership-package-cell b,
  .admin-body #paymentsPanel .membership-amount b {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .admin-body #paymentsPanel .membership-user-cell small,
  .admin-body #paymentsPanel .membership-package-cell small,
  .admin-body #paymentsPanel .membership-amount small,
  .admin-body #paymentsPanel .membership-txn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    color: #5f6f86 !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .payment-proof-btn,
  .admin-body #paymentsPanel .membership-no-proof {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
    border: 1px solid #ffc2d6 !important;
    background: #fff !important;
    color: #e91e63 !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .admin-body #paymentsPanel .payment-proof-link img,
  .admin-body #paymentsPanel .payment-proof-btn img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .admin-body #paymentsPanel .admin-status,
  .admin-body #paymentsPanel .status-badge,
  .admin-body #paymentsPanel .payment-status-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 32px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel table.membership-approvals-table tbody td.membership-actions,
  .admin-body #paymentsPanel .membership-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: calc(100% - 94px) !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-actions .btn,
  .admin-body #paymentsPanel .membership-actions button,
  .admin-body #paymentsPanel .membership-actions .btn.mini {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .admin-body #paymentsPanel table.membership-approvals-table tbody tr { padding: 14px !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td { gap: 9px !important; }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td::before {
    flex-basis: 72px !important;
    width: 72px !important;
    max-width: 72px !important;
    font-size: 11px !important;
  }
  .admin-body #paymentsPanel table.membership-approvals-table tbody td > *,
  .admin-body #paymentsPanel .membership-user-cell,
  .admin-body #paymentsPanel .membership-actions {
    max-width: calc(100% - 81px) !important;
  }
}

/* =========================================================
   EMERGENCY FINAL: Membership Approvals mobile card reset
   Fixes single-letter wrapping by removing side label columns.
   ========================================================= */
@media (max-width: 900px) {
  .admin-body #paymentsPanel .membership-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap:has(.membership-approvals-table) {
    overflow: visible !important;
    padding: 0 !important;
    margin-top: 16px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table,
  .admin-body #paymentsPanel .membership-approvals-table tbody,
  .admin-body #paymentsPanel .membership-approvals-table tr,
  .admin-body #paymentsPanel .membership-approvals-table td {
    box-sizing: border-box !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table,
  .admin-body #paymentsPanel .membership-approvals-table tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 0 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table thead {
    display: none !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 16px !important;
    padding: 16px !important;
    border: 1px solid #ffd0de !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
    overflow: hidden !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 13px !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:last-child {
    margin-bottom: 0 !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td::before {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 6px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(1)::before { content: "User" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(2)::before { content: "Package" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(3)::before { content: "Txn ID" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(4)::before { content: "Amount" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(5)::before { content: "Screenshot" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(6)::before { content: "Status" !important; }
  .admin-body #paymentsPanel .membership-approvals-table tbody td:nth-child(7)::before { content: "Actions" !important; }

  .admin-body #paymentsPanel .membership-approvals-table tbody td > *,
  .admin-body #paymentsPanel .membership-user-cell,
  .admin-body #paymentsPanel .membership-package-cell,
  .admin-body #paymentsPanel .membership-amount,
  .admin-body #paymentsPanel .membership-txn,
  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .payment-proof-btn,
  .admin-body #paymentsPanel .membership-no-proof,
  .admin-body #paymentsPanel .membership-actions {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body #paymentsPanel .membership-user-cell {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .admin-body #paymentsPanel .membership-user-cell img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }

  .admin-body #paymentsPanel .membership-user-cell > div,
  .admin-body #paymentsPanel .membership-package-cell,
  .admin-body #paymentsPanel .membership-amount {
    display: block !important;
    min-width: 0 !important;
  }

  .admin-body #paymentsPanel .membership-user-cell b,
  .admin-body #paymentsPanel .membership-package-cell b,
  .admin-body #paymentsPanel .membership-amount b {
    display: block !important;
    width: 100% !important;
    color: #111827 !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .admin-body #paymentsPanel .membership-user-cell small,
  .admin-body #paymentsPanel .membership-package-cell small,
  .admin-body #paymentsPanel .membership-amount small,
  .admin-body #paymentsPanel .membership-txn {
    display: block !important;
    width: 100% !important;
    color: #5f6f86 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .payment-proof-btn,
  .admin-body #paymentsPanel .membership-no-proof {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    border: 1px solid #ffc2d6 !important;
    background: #fff !important;
    color: #e91e63 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  .admin-body #paymentsPanel .payment-proof-link img,
  .admin-body #paymentsPanel .payment-proof-btn img {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  .admin-body #paymentsPanel .payment-status-badge,
  .admin-body #paymentsPanel .admin-status,
  .admin-body #paymentsPanel .status-badge {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel .membership-actions,
  .admin-body #paymentsPanel td.membership-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .admin-body #paymentsPanel .membership-actions .btn,
  .admin-body #paymentsPanel .membership-actions button,
  .admin-body #paymentsPanel .membership-actions .btn.mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 12px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
  }

  .admin-body #paymentsPanel .membership-table-footer {
    overflow: visible !important;
    padding-bottom: 14px !important;
  }
}

/* =========================================================
   REAL OVERRIDE: Membership Approvals mobile width reset
   Fixes old nth-child column widths squeezing content to single letters.
   ========================================================= */
@media (max-width: 900px) {
  body.admin-body #paymentsPanel div.admin-table-wrap.membership-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table,
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    border: 0 !important;
    overflow: visible !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table thead {
    display: none !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 16px !important;
    margin: 0 0 16px !important;
    border: 1px solid #ffd0de !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
    overflow: visible !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td,
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(1),
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(2),
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(3),
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr >,
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr >,
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr >,
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 13px !important;
    border: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:last-child {
    margin-bottom: 0 !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td::before {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 0 6px !important;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(1)::before { content: "User" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(2)::before { content: "Package" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(3)::before { content: "Txn ID" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(4)::before { content: "Amount" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(5)::before { content: "Screenshot" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(6)::before { content: "Status" !important; }
  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td:nth-child(7)::before { content: "Actions" !important; }

  body.admin-body #paymentsPanel table.admin-table.membership-approvals-table.premium-membership-table tbody tr > td > *,
  body.admin-body #paymentsPanel .membership-user-cell,
  body.admin-body #paymentsPanel .membership-user-cell > div,
  body.admin-body #paymentsPanel .membership-package-cell,
  body.admin-body #paymentsPanel .membership-amount,
  body.admin-body #paymentsPanel .membership-txn,
  body.admin-body #paymentsPanel .membership-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body #paymentsPanel .membership-user-cell {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
  }

  body.admin-body #paymentsPanel .membership-user-cell img {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 16px !important;
    object-fit: cover !important;
  }

  body.admin-body #paymentsPanel .membership-user-cell b,
  body.admin-body #paymentsPanel .membership-package-cell b,
  body.admin-body #paymentsPanel .membership-amount b {
    display: block !important;
    font-size: 17px !important;
    line-height: 1.22 !important;
    font-weight: 950 !important;
    color: #111827 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  body.admin-body #paymentsPanel .membership-user-cell small,
  body.admin-body #paymentsPanel .membership-package-cell small,
  body.admin-body #paymentsPanel .membership-amount small,
  body.admin-body #paymentsPanel .membership-txn {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    color: #5f6f86 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #paymentsPanel .payment-proof-link,
  body.admin-body #paymentsPanel .payment-proof-btn,
  body.admin-body #paymentsPanel .membership-no-proof {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 14px !important;
    white-space: normal !important;
  }

  body.admin-body #paymentsPanel .membership-actions,
  body.admin-body #paymentsPanel td.admin-actions.membership-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.admin-body #paymentsPanel .membership-actions .btn,
  body.admin-body #paymentsPanel .membership-actions button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   Feedback Section - Mobile Premium Clean Card UI
   ========================================================= */
@media (max-width: 760px) {
  .admin-body #feedbackPanel.feedback-premium-panel {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .admin-body #feedbackPanel .feedback-toolbar {
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 20px !important;
    margin-bottom: 18px !important;
  }

  .admin-body #feedbackPanel .feedback-search,
  .admin-body #feedbackPanel .feedback-tool-btn,
  .admin-body #feedbackPanel .feedback-export-btn {
    width: 100% !important;
    height: 48px !important;
    justify-content: center !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
  }

  .admin-body #feedbackPanel .feedback-inbox-card {
    border-radius: 22px !important;
    padding: 14px !important;
    overflow: visible !important;
    background: rgba(255, 255, 255, .96) !important;
  }

  .admin-body #feedbackPanel .feedback-inbox-head {
    padding: 6px 4px 16px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .admin-body #feedbackPanel .feedback-inbox-head h4 {
    font-size: 22px !important;
    line-height: 1.22 !important;
    max-width: 150px !important;
  }

  .admin-body #feedbackPanel .feedback-sort {
    justify-content: flex-end !important;
    gap: 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .admin-body #feedbackPanel .feedback-sort button {
    width: 118px !important;
    min-width: 118px !important;
    height: 42px !important;
    justify-content: center !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    text-align: center !important;
    line-height: 1.08 !important;
    white-space: normal !important;
  }

  .admin-body #feedbackPanel .feedback-list-panel {
    padding: 0 !important;
    background: transparent !important;
  }

  .admin-body #feedbackPanel .feedback-message-row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 18px 16px 20px !important;
    margin: 0 0 16px !important;
    border-radius: 20px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .055) !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 14px !important;
    padding-right: 46px !important;
    margin-bottom: 14px !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell img {
    width: 56px !important;
    height: 56px !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell strong {
    font-size: 18px !important;
    line-height: 1.15 !important;
    margin-bottom: 2px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell span,
  .admin-body #feedbackPanel .feedback-user-cell small {
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #feedbackPanel .feedback-text-cell {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .admin-body #feedbackPanel .feedback-text-cell strong {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  .admin-body #feedbackPanel .feedback-text-cell p {
    margin: 0 0 10px !important;
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body #feedbackPanel .feedback-text-cell small {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .admin-body #feedbackPanel .feedback-status {
    margin-top: 14px !important;
    display: inline-flex !important;
    min-width: 68px !important;
    height: 36px !important;
    padding: 0 15px !important;
    border-radius: 11px !important;
  }

  .admin-body #feedbackPanel .feedback-more-btn {
    position: absolute !important;
    right: 16px !important;
    bottom: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    color: #e91e63 !important;
    border-color: #f6c6d8 !important;
  }

  .admin-body #feedbackPanel .feedback-list-footer {
    padding: 12px 0 0 !important;
    gap: 14px !important;
  }

  .admin-body #feedbackPanel .feedback-list-footer > span {
    font-size: 15px !important;
    font-weight: 850 !important;
  }

  .admin-body #feedbackPanel .feedback-pagination {
    gap: 10px !important;
  }

  .admin-body #feedbackPanel .feedback-pagination button {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px !important;
  }

  .admin-body #feedbackPanel .feedback-page-size {
    width: 152px !important;
    height: 44px !important;
    justify-content: center !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 390px) {
  .admin-body #feedbackPanel .feedback-inbox-card {
    padding: 12px !important;
  }

  .admin-body #feedbackPanel .feedback-inbox-head h4 {
    font-size: 21px !important;
    max-width: 130px !important;
  }

  .admin-body #feedbackPanel .feedback-sort button {
    width: 110px !important;
    min-width: 110px !important;
    font-size: 13.5px !important;
  }

  .admin-body #feedbackPanel .feedback-message-row {
    padding: 16px 14px 18px !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding-right: 42px !important;
  }

  .admin-body #feedbackPanel .feedback-user-cell img {
    width: 52px !important;
    height: 52px !important;
  }
}

/* =========================================================
   Premium mobile registration wizard UI - vFinal
   Applies only to Complete Profile / 10-step form pages
========================================================= */
.registration-modal-page {
  --bm-deep: #4b2f27;
  --bm-ink: #111827;
  --bm-muted: #667085;
  --bm-rose: #e91e63;
  --bm-rose-dark: #c91852;
  --bm-gold: #d9a441;
  --bm-soft: #fff7fa;
  --bm-line: #f1dce5;
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 164, 65, .20), transparent 34%),
    radial-gradient(circle at 12% 5%, rgba(233, 30, 99, .16), transparent 28%),
    linear-gradient(135deg, #4c3028 0%, #5a382f 42%, #3e2a25 100%) !important;
}
.registration-modal-page .registration-modal-card {
  border-radius: 38px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  background: linear-gradient(180deg, #fff, #fffafd) !important;
  box-shadow: 0 34px 90px rgba(31, 15, 10, .34) !important;
}
.registration-modal-page .registration-sidebar,
.registration-modal-page .registration-form-card {
  background:
    radial-gradient(circle at top, rgba(217, 164, 65, .10), transparent 22%),
    linear-gradient(180deg, #fff 0%, #fffafb 100%) !important;
}
.registration-modal-page .registration-sidebar {
  border-right: 1px solid rgba(241, 220, 229, .85) !important;
}
.registration-modal-page .auth-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 150px !important;
  height: auto !important;
  margin: 0 auto 14px !important;
  overflow: visible !important;
}
.registration-modal-page .registration-sidebar .auth-logo-img,
.registration-modal-page .auth-logo-img {
  width: 142px !important;
  height: 104px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block !important;
}
.registration-modal-page .registration-sidebar h1,
.registration-modal-page .multi-profile-form h2,
.registration-modal-page .email-verify-gate h2 {
  font-family: Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.025em !important;
  color: var(--bm-ink) !important;
}
.registration-modal-page .registration-sidebar h1 {
  text-align: center !important;
  font-size: clamp(30px, 5.4vw, 42px) !important;
  margin-top: 16px !important;
}
.registration-modal-page .registration-sidebar p,
.registration-modal-page .auth-subtitle {
  text-align: center;
  color: #5d6678 !important;
  font-size: 16px !important;
  line-height: 1.62 !important;
}
.registration-modal-page .side-step-count {
  position: relative;
  color: #9a1645 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  margin: 22px 0 18px !important;
}
.registration-modal-page .side-step-count::before,
.registration-modal-page .side-step-count::after {
  content: "";
  display: inline-block;
  width: 78px;
  height: 1px;
  margin: 0 14px 5px;
  background: linear-gradient(90deg, transparent, var(--bm-gold));
}
.registration-modal-page .side-step-count::after {
  background: linear-gradient(90deg, var(--bm-gold), transparent);
}
.registration-modal-page .registration-steps {
  gap: 10px !important;
}
.registration-modal-page .registration-steps::before { display: none !important; }
.registration-modal-page .registration-steps button {
  min-height: 64px !important;
  border: 1px solid #f0e2e8 !important;
  border-radius: 18px !important;
  padding: 12px 46px 12px 70px !important;
  background: rgba(255,255,255,.88) !important;
  color: #444c5c !important;
  box-shadow: 0 10px 24px rgba(17,24,39,.055) !important;
  text-align: left !important;
  font-size: 16px !important;
  position: relative !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}
.registration-modal-page .registration-steps button::before {
  width: 38px !important;
  height: 38px !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-radius: 50% !important;
  border: 1px solid #e9dfe5 !important;
  background: #fff !important;
  color: #697386 !important;
  font-weight: 900 !important;
  box-shadow: inset 0 0 0 3px #fff !important;
}
.registration-modal-page .registration-steps button::after {
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a7b2;
  font-size: 30px;
  line-height: 1;
}
.registration-modal-page .registration-steps button.active {
  color: var(--bm-rose) !important;
  border-color: #ffc4d8 !important;
  background: linear-gradient(135deg, #fff1f6, #fff) !important;
  box-shadow: 0 14px 34px rgba(233,30,99,.11) !important;
}
.registration-modal-page .registration-steps button.active::before {
  background: linear-gradient(135deg, #f61d67, #c91852) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(233,30,99,.28) !important;
}
.registration-modal-page .registration-steps button.done::before {
  content: "✓" !important;
  background: #fff4f8 !important;
  color: var(--bm-rose) !important;
  border-color: #ffc4d8 !important;
}
.registration-modal-page .email-verify-gate,
.registration-modal-page .form-step.active {
  border: 1px solid rgba(255, 196, 216, .80);
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,250,.86));
  box-shadow: 0 18px 42px rgba(233,30,99,.08);
}
.registration-modal-page .step-eyebrow {
  color: var(--bm-rose) !important;
  font-weight: 950 !important;
  letter-spacing: .01em !important;
}
.registration-modal-page .field label {
  color: #101828 !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}
.registration-modal-page .field input,
.registration-modal-page .field select,
.registration-modal-page .field textarea,
.registration-modal-page .mini-grid input,
.registration-modal-page .mini-grid select,
.registration-modal-page .search-select-trigger {
  border-radius: 18px !important;
  border-color: #eadde4 !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(16,24,40,.035) !important;
}
.registration-modal-page .field input:focus,
.registration-modal-page .field select:focus,
.registration-modal-page .field textarea:focus,
.registration-modal-page .mini-grid input:focus,
.registration-modal-page .mini-grid select:focus {
  border-color: var(--bm-rose) !important;
  box-shadow: 0 0 0 4px rgba(233,30,99,.10), 0 10px 24px rgba(233,30,99,.08) !important;
}
.registration-modal-page .verify-card,
.registration-modal-page .upload-panel,
.registration-modal-page .review-submit-box {
  border-radius: 24px !important;
  border: 1px solid #ffc4d8 !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 18px 42px rgba(233,30,99,.06) !important;
}
.registration-modal-page .btn,
.registration-modal-page .registration-actions .btn,
.registration-modal-page .verify-actions .btn,
.registration-modal-page .otp-row .btn {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f61d67, #c91852) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(233,30,99,.26) !important;
}
.registration-modal-page .btn.outline,
.registration-modal-page .registration-actions .btn.outline {
  background: #fff !important;
  color: var(--bm-rose) !important;
  border: 1px solid #ffc4d8 !important;
  box-shadow: none !important;
}
.registration-modal-page .registration-close {
  z-index: 5;
  border-color: #f0e1e8 !important;
  box-shadow: 0 10px 24px rgba(16,24,40,.08) !important;
}

@media (max-width: 760px) {
  .registration-modal-page .modal-profile-shell {
    padding: 8px 0 0 !important;
    align-items: flex-start !important;
  }
  .registration-modal-page .registration-modal-card {
    width: calc(100% - 28px) !important;
    min-height: calc(100vh - 16px) !important;
    margin: 8px auto !important;
    border-radius: 34px 34px 0 0 !important;
    box-shadow: 0 24px 70px rgba(31,15,10,.38) !important;
  }
  .registration-modal-page .registration-sidebar {
    padding: 28px 18px 18px !important;
    border-bottom: 0 !important;
  }
  .registration-modal-page .auth-logo {
    width: 150px !important;
    margin-bottom: 8px !important;
  }
  .registration-modal-page .registration-sidebar .auth-logo-img,
  .registration-modal-page .auth-logo-img {
    width: 148px !important;
    height: 112px !important;
    object-fit: contain !important;
  }
  .registration-modal-page .registration-sidebar h1 {
    font-size: 30px !important;
    line-height: 1.12 !important;
    margin: 12px 0 8px !important;
  }
  .registration-modal-page .registration-sidebar p {
    font-size: 16px !important;
    max-width: 310px;
    margin: 0 auto !important;
  }
  .registration-modal-page .side-step-count {
    font-size: 16px !important;
    margin: 20px 0 14px !important;
  }
  .registration-modal-page .side-step-count::before,
  .registration-modal-page .side-step-count::after {
    width: 54px;
    margin-left: 10px;
    margin-right: 10px;
  }
  .registration-modal-page .registration-steps {
    max-height: none !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .registration-modal-page .registration-steps button {
    min-height: 48px !important;
    border-radius: 14px !important;
    padding: 8px 34px 8px 56px !important;
    font-size: 14px !important;
  }
  .registration-modal-page .registration-steps button::before {
    width: 32px !important;
    height: 32px !important;
    left: 12px !important;
  }
  .registration-modal-page .registration-steps button::after {
    right: 14px;
    font-size: 24px;
  }
  .registration-modal-page .registration-form-card {
    padding: 18px 18px 24px !important;
    overflow: visible !important;
  }
  .registration-modal-page .registration-close {
    top: 16px !important;
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }
  .registration-modal-page .email-verify-gate,
  .registration-modal-page .form-step.active {
    padding: 22px 16px !important;
    border-radius: 24px !important;
  }
  .registration-modal-page .email-verify-gate h2,
  .registration-modal-page .multi-profile-form h2 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }
  .registration-modal-page .email-verify-gate .auth-subtitle,
  .registration-modal-page .multi-profile-form .auth-subtitle {
    text-align: left !important;
    font-size: 15.5px !important;
    margin-bottom: 22px !important;
  }
  .registration-modal-page .form-grid,
  .registration-modal-page .form-grid.two,
  .registration-modal-page .mini-grid.three,
  .registration-modal-page .mini-grid.two,
  .registration-modal-page .dob-select-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .registration-modal-page .field input,
  .registration-modal-page .field select,
  .registration-modal-page .mini-grid input,
  .registration-modal-page .mini-grid select,
  .registration-modal-page .search-select-trigger {
    height: 60px !important;
    min-height: 60px !important;
    line-height: 60px !important;
    border-radius: 16px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: 15.5px !important;
  }
  .registration-modal-page .field textarea {
    border-radius: 16px !important;
    min-height: 132px !important;
  }
  .registration-modal-page .radio-pill-row {
    gap: 10px !important;
  }
  .registration-modal-page .radio-pill {
    flex: 1 1 calc(50% - 5px) !important;
    min-height: 52px !important;
    justify-content: center !important;
    border-radius: 16px !important;
  }
  .registration-modal-page .otp-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .registration-modal-page .verify-actions,
  .registration-modal-page .registration-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .registration-modal-page .registration-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    margin: 28px -18px 0 !important;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 22%, #fff 100%) !important;
  }
  .registration-modal-page .registration-actions .btn,
  .registration-modal-page .verify-actions .btn,
  .registration-modal-page .otp-row .btn {
    width: 100% !important;
    min-height: 58px !important;
    font-size: 16px !important;
  }
  .registration-modal-page .registration-trust-row {
    display: none !important;
  }
  .registration-modal-page .auth-switch {
    padding-bottom: 18px !important;
  }
}

@media (max-width: 390px) {
  .registration-modal-page .registration-modal-card {
    width: calc(100% - 16px) !important;
  }
  .registration-modal-page .registration-sidebar,
  .registration-modal-page .registration-form-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .registration-modal-page .registration-steps button {
    font-size: 13.5px !important;
  }
}


/* =========================================================
   QUICK MOBILE FIXES: Step 9 square photos + login eye icon
   ========================================================= */
* { box-sizing: border-box; }

.login-password-wrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
}
.login-password-wrap input{
  width:100%;
  padding-left:44px !important;
  padding-right:54px !important;
}
.login-field-icon{
  position:absolute;
  left:16px;
  color:#e91e63;
  z-index:2;
  pointer-events:none;
}
.login-eye-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#fff0f6;
  color:#e91e63;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:3;
}
.login-eye-toggle:active{ transform:translateY(-50%) scale(.96); }

.photo-preview-grid{
  width:100% !important;
  max-width:100% !important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr)) !important;
  justify-content:center !important;
  overflow:visible !important;
}
.photo-choice{
  max-width:100% !important;
  min-width:0 !important;
  overflow:hidden !important;
  border-radius:20px !important;
  padding:12px !important;
}
.photo-preview-grid .main-photo-card{
  grid-column:auto !important;
  max-width:100% !important;
}
.photo-thumb-wrap{
  width:min(100%, 220px) !important;
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  margin:0 auto !important;
  overflow:hidden !important;
  border-radius:16px !important;
  background:#fff3f8 !important;
}
.photo-choice img{
  width:100% !important;
  height:100% !important;
  aspect-ratio:1 / 1 !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:16px !important;
  margin:0 !important;
  display:block !important;
}
.main-photo-badge{
  max-width:calc(100% - 18px) !important;
  font-size:11px !important;
  padding:7px 10px !important;
  white-space:nowrap !important;
}
.photo-card-actions{
  width:100% !important;
  margin-top:8px !important;
}
.photo-main-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:3px !important;
  line-height:1.25 !important;
  color:#101828 !important;
}
.photo-main-text strong{ color:#e91e63 !important; font-size:14px !important; }
.photo-main-text small{ color:#667085 !important; font-size:12px !important; font-weight:700 !important; }
.upload-panel, .form-step, .profile-card, .auth-card{ max-width:100% !important; overflow:hidden; }
input[type="file"]{ max-width:100% !important; white-space:normal !important; }

@media (max-width:640px){
  body.auth-page-body{ background:linear-gradient(145deg,#fff7fa 0%, #ffe8f1 100%) !important; }
  .auth-page{
    min-height:100vh !important;
    display:block !important;
    padding:32px 16px 34px !important;
    width:100% !important;
    max-width:430px !important;
  }
  .auth-left{ text-align:left !important; }
  .auth-logo{
    margin-bottom:38px !important;
    width:150px !important;
    height:auto !important;
    overflow:visible !important;
  }
  .auth-logo-img{
    width:150px !important;
    height:auto !important;
    object-fit:contain !important;
    display:block !important;
  }
  .auth-left h1{
    font-size:35px !important;
    line-height:1.1 !important;
    margin-bottom:20px !important;
    padding-left: 30px;
  }
  .auth-left p{
    font-size:18px !important;
    line-height:1.5 !important;
    margin-bottom:26px !important;
    padding-left: 30px;
  }
  .auth-points{
    display:flex !important;
    flex-direction:column !important;
    gap:16px !important;
    margin:0 0 24px !important;
  }
  .auth-points span{
    border:0 !important;
    padding:13px 20px !important;
    border-radius:999px !important;
    box-shadow:0 16px 30px rgba(233,30,99,.08) !important;
  }
  .auth-card{
    width:100% !important;
    border:0 !important;
    border-radius:26px !important;
    padding:30px 24px !important;
    box-shadow:0 18px 45px rgba(99, 44, 64, .10) !important;
  }
  .auth-card h2{ font-size:38px !important; }
  .auth-card input{ height:56px !important; border-radius:11px !important; }
  .auth-submit{ height:54px !important; border-radius:12px !important; margin-top:18px !important; }
  .auth-switch{ margin-top:54px !important; line-height:1.35 !important; }

  .photo-preview-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
    width:100% !important;
  }
  .photo-choice{
    width:100% !important;
    min-height:auto !important;
    padding:14px !important;
  }
  .photo-thumb-wrap{
    width:min(100%, 210px) !important;
  }
  .photo-preview-grid .main-photo-card .photo-thumb-wrap{
    width:min(100%, 220px) !important;
  }
  .photo-action-btn{ padding:8px 10px !important; font-size:12px !important; }
}

/* === URGENT ADMIN WEB TABLE FIX: keep right-side Actions visible === */
@media (min-width: 900px){
  .admin-body .admin-main,
  .admin-body .admin-content,
  .admin-body .admin-panel,
  .admin-body .users-list-card,
  .admin-body .admin-table-wrap,
  .admin-body .membership-table-wrap,
  .admin-body .users-premium-table-wrap{
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .admin-body #profilesPanel .admin-table-wrap,
  .admin-body #usersPanel .admin-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap{
    overflow-x:hidden !important;
    overflow-y:auto !important;
    padding-right:0 !important;
  }

  .admin-body #profilesPanel .admin-table,
  .admin-body #usersPanel .admin-table,
  .admin-body #paymentsPanel .admin-table{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    table-layout:fixed !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
  }

  .admin-body #profilesPanel .admin-table th,
  .admin-body #profilesPanel .admin-table td,
  .admin-body #usersPanel .admin-table th,
  .admin-body #usersPanel .admin-table td,
  .admin-body #paymentsPanel .admin-table th,
  .admin-body #paymentsPanel .admin-table td{
    box-sizing:border-box !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:normal !important;
    word-break:break-word !important;
    padding:12px 10px !important;
  }

  /* Profile approvals: 4 columns, actions must fit */
  .admin-body #profilesPanel .admin-table th:nth-child(1),
  .admin-body #profilesPanel .admin-table td:nth-child(1){width:28% !important;}
  .admin-body #profilesPanel .admin-table th:nth-child(2),
  .admin-body #profilesPanel .admin-table td:nth-child(2){width:29% !important;}
  .admin-body #profilesPanel .admin-table th:nth-child(3),
  .admin-body #profilesPanel .admin-table td:nth-child(3){width:12% !important;text-align:center !important;}
  .admin-body #profilesPanel .admin-table th:nth-child(4),
  .admin-body #profilesPanel .admin-table td:nth-child(4){width:31% !important;overflow:visible !important;}

  .admin-body #profilesPanel .profile-row-actions,
  .admin-body #profilesPanel td.admin-actions{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:6px !important;
    white-space:nowrap !important;
  }
  .admin-body #profilesPanel .profile-row-actions .btn.mini{
    height:32px !important;
    min-height:32px !important;
    padding:0 9px !important;
    margin:0 !important;
    border-radius:9px !important;
    font-size:11px !important;
    line-height:1 !important;
    gap:4px !important;
    flex:0 0 auto !important;
  }
  .admin-body #profilesPanel .profile-row-actions .btn.kebab{display:none !important;}

  /* Users table: compact web fit */
  .admin-body #usersPanel .admin-table th:nth-child(1),
  .admin-body #usersPanel .admin-table td:nth-child(1){width:18% !important;}
  .admin-body #usersPanel .admin-table th:nth-child(2),
  .admin-body #usersPanel .admin-table td:nth-child(2){width:6% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(3),
  .admin-body #usersPanel .admin-table td:nth-child(3){width:8% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(4),
  .admin-body #usersPanel .admin-table td:nth-child(4){width:9% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(5),
  .admin-body #usersPanel .admin-table td:nth-child(5){width:16% !important;}
  .admin-body #usersPanel .admin-table th:nth-child(6),
  .admin-body #usersPanel .admin-table td:nth-child(6){width:9% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(7),
  .admin-body #usersPanel .admin-table td:nth-child(7){width:11% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(8),
  .admin-body #usersPanel .admin-table td:nth-child(8){width:14% !important;text-align:center !important;}
  .admin-body #usersPanel .admin-table th:nth-child(9),
  .admin-body #usersPanel .admin-table td:nth-child(9){width:9% !important;text-align:center !important;overflow:visible !important;}
  .admin-body #usersPanel .admin-actions{justify-content:center !important;display:flex !important;}
  .admin-body #usersPanel .admin-actions .btn.mini,
  .admin-body #usersPanel .admin-actions button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    padding:0 !important;
    border-radius:12px !important;
    overflow:hidden !important;
  }

  /* Membership approvals: keep all action buttons inside cell */
  .admin-body #paymentsPanel .admin-table th:nth-child(1),
  .admin-body #paymentsPanel .admin-table td:nth-child(1){width:15% !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(2),
  .admin-body #paymentsPanel .admin-table td:nth-child(2){width:19% !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(3),
  .admin-body #paymentsPanel .admin-table td:nth-child(3){width:13% !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(4),
  .admin-body #paymentsPanel .admin-table td:nth-child(4){width:10% !important;text-align:center !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(5),
  .admin-body #paymentsPanel .admin-table td:nth-child(5){width:14% !important;text-align:center !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(6),
  .admin-body #paymentsPanel .admin-table td:nth-child(6){width:10% !important;text-align:center !important;}
  .admin-body #paymentsPanel .admin-table th:nth-child(7),
  .admin-body #paymentsPanel .admin-table td:nth-child(7){width:19% !important;overflow:visible !important;}

  .admin-body #paymentsPanel .membership-actions,
  .admin-body #paymentsPanel td.admin-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
    align-items:center !important;
    gap:6px !important;
    white-space:normal !important;
  }
  .admin-body #paymentsPanel .membership-actions .btn.mini{
    height:32px !important;
    min-height:32px !important;
    padding:0 9px !important;
    margin:0 !important;
    border-radius:9px !important;
    font-size:11px !important;
    line-height:1 !important;
    gap:4px !important;
    flex:0 0 auto !important;
  }

  .admin-body #profilesPanel .admin-table thead th,
  .admin-body #usersPanel .admin-table thead th,
  .admin-body #paymentsPanel .admin-table thead th{
    font-size:12px !important;
    letter-spacing:.02em !important;
    white-space:nowrap !important;
  }
}

@media (max-width: 1180px) and (min-width: 900px){
  .admin-body #profilesPanel .profile-row-actions .btn.mini,
  .admin-body #paymentsPanel .membership-actions .btn.mini{font-size:10px !important;padding:0 7px !important;}
  .admin-body #profilesPanel .profile-row-actions,
  .admin-body #paymentsPanel .membership-actions{gap:4px !important;}
}

/* =========================================================
   FINAL ADMIN WEB TABLE FIX - actions/status no crop/wrap
   Added for Profile Approvals, Users, Membership Approvals
========================================================= */
body.admin-body .admin-main,
body.admin-body .admin-panel,
body.admin-body .admin-card,
body.admin-body .admin-table-wrap {
  min-width: 0 !important;
}

body.admin-body .admin-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

body.admin-body .admin-table {
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

body.admin-body .admin-table th,
body.admin-body .admin-table td {
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

body.admin-body .admin-status,
body.admin-body .status-badge,
body.admin-body .payment-status-badge,
body.admin-body .user-presence {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Shared action button behavior */
body.admin-body td.admin-actions,
body.admin-body .admin-actions,
body.admin-body .profile-row-actions,
body.admin-body .membership-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

body.admin-body td.admin-actions .btn,
body.admin-body td.admin-actions button,
body.admin-body .admin-actions .btn,
body.admin-body .admin-actions button,
body.admin-body .profile-row-actions .btn,
body.admin-body .membership-actions .btn,
body.admin-body .membership-actions button {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  min-height: 36px !important;
  height: 36px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Profile Approvals: keep all 3 action buttons visible in webpage view */
body.admin-body #profilesPanel .admin-table {
  width: 100% !important;
  min-width: 980px !important;
}
body.admin-body #profilesPanel .admin-table th:nth-child(1),
body.admin-body #profilesPanel .admin-table td:nth-child(1) { width: 28% !important; }
body.admin-body #profilesPanel .admin-table th:nth-child(2),
body.admin-body #profilesPanel .admin-table td:nth-child(2) { width: 30% !important; }
body.admin-body #profilesPanel .admin-table th:nth-child(3),
body.admin-body #profilesPanel .admin-table td:nth-child(3) { width: 12% !important; text-align: center !important; }
body.admin-body #profilesPanel .admin-table th:nth-child(4),
body.admin-body #profilesPanel .admin-table td:nth-child(4) {
  width: 30% !important;
  min-width: 300px !important;
}
body.admin-body #profilesPanel td.admin-actions .btn.mini { min-width: 82px !important; }
body.admin-body #profilesPanel td.admin-actions .btn.mini.outline { min-width: 86px !important; }
body.admin-body #profilesPanel td.admin-actions .btn.kebab { display: none !important; }

/* Registered Users: keep last Actions column inside card, no crop */
body.admin-body #usersPanel .admin-table {
  width: 100% !important;
  min-width: 1120px !important;
  table-layout: fixed !important;
}
body.admin-body #usersPanel .admin-table th,
body.admin-body #usersPanel .admin-table td {
  padding: 12px 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.admin-body #usersPanel .admin-table th:nth-child(1),
body.admin-body #usersPanel .admin-table td:nth-child(1) { width: 210px !important; text-align: left !important; }
body.admin-body #usersPanel .admin-table th:nth-child(2),
body.admin-body #usersPanel .admin-table td:nth-child(2) { width: 65px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(3),
body.admin-body #usersPanel .admin-table td:nth-child(3) { width: 80px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(4),
body.admin-body #usersPanel .admin-table td:nth-child(4) { width: 95px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(5),
body.admin-body #usersPanel .admin-table td:nth-child(5) { width: 175px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(6),
body.admin-body #usersPanel .admin-table td:nth-child(6) { width: 110px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(7),
body.admin-body #usersPanel .admin-table td:nth-child(7) { width: 120px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(8),
body.admin-body #usersPanel .admin-table td:nth-child(8) { width: 165px !important; }
body.admin-body #usersPanel .admin-table th:nth-child(9),
body.admin-body #usersPanel .admin-table td:nth-child(9) { width: 80px !important; min-width: 80px !important; text-align: center !important; }
body.admin-body #usersPanel .admin-actions { justify-content: center !important; }
body.admin-body #usersPanel .admin-actions .btn,
body.admin-body #usersPanel .admin-actions button { min-width: 42px !important; width: 42px !important; padding: 0 !important; }

/* Membership Approvals: action buttons stay horizontal, status stays one line */
body.admin-body #paymentsPanel .membership-approvals-table,
body.admin-body #paymentsPanel .admin-table {
  width: 100% !important;
  min-width: 1220px !important;
  table-layout: fixed !important;
}
body.admin-body #paymentsPanel .membership-approvals-table th,
body.admin-body #paymentsPanel .membership-approvals-table td {
  padding: 12px 12px !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(1),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(1) { width: 190px !important; }
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(2),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(2) { width: 240px !important; }
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(3),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(3) { width: 150px !important; }
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(4),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(4) { width: 120px !important; }
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(5),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(5) { width: 170px !important; }
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(6),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(6) {
  width: 120px !important;
  min-width: 120px !important;
  text-align: center !important;
}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(7),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(7),
body.admin-body #paymentsPanel td.membership-actions,
body.admin-body #paymentsPanel td.admin-actions.membership-actions {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
}
body.admin-body #paymentsPanel .membership-actions .btn,
body.admin-body #paymentsPanel .membership-actions button {
  min-width: 68px !important;
  max-width: none !important;
  padding: 0 9px !important;
  font-size: 11.5px !important;
}
body.admin-body #paymentsPanel .membership-actions .btn.outline,
body.admin-body #paymentsPanel .membership-actions button.outline {
  min-width: 74px !important;
}

@media (max-width: 900px) {
  body.admin-body #profilesPanel .admin-table { min-width: 980px !important; }
  body.admin-body #usersPanel .admin-table { min-width: 1120px !important; }
  body.admin-body #paymentsPanel .membership-approvals-table { min-width: 1220px !important; }
}

/* =========================================================
   FINAL ADMIN TABLE FIX - horizontal scrollbar + no squeezed actions
   Applies to Profile Approvals, Users, Membership Approvals
   ========================================================= */
body.admin-body #profilesPanel .admin-table-wrap,
body.admin-body #usersPanel .users-premium-table-wrap,
body.admin-body #usersPanel .admin-table-wrap.users-premium-table-wrap,
body.admin-body #paymentsPanel .membership-table-wrap,
body.admin-body #paymentsPanel .admin-table-wrap.membership-table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-gutter:stable both-edges !important;
  border-radius:18px !important;
}

/* visible bottom scrollbar */
body.admin-body #profilesPanel .admin-table-wrap::-webkit-scrollbar,
body.admin-body #usersPanel .users-premium-table-wrap::-webkit-scrollbar,
body.admin-body #paymentsPanel .membership-table-wrap::-webkit-scrollbar{
  height:12px !important;
  width:10px !important;
}
body.admin-body #profilesPanel .admin-table-wrap::-webkit-scrollbar-track,
body.admin-body #usersPanel .users-premium-table-wrap::-webkit-scrollbar-track,
body.admin-body #paymentsPanel .membership-table-wrap::-webkit-scrollbar-track{
  background:#eef1f6 !important;
  border-radius:999px !important;
}
body.admin-body #profilesPanel .admin-table-wrap::-webkit-scrollbar-thumb,
body.admin-body #usersPanel .users-premium-table-wrap::-webkit-scrollbar-thumb,
body.admin-body #paymentsPanel .membership-table-wrap::-webkit-scrollbar-thumb{
  background:#8b8b8b !important;
  border-radius:999px !important;
  border:2px solid #eef1f6 !important;
}
body.admin-body #profilesPanel .admin-table-wrap,
body.admin-body #usersPanel .users-premium-table-wrap,
body.admin-body #paymentsPanel .membership-table-wrap{
  scrollbar-width:thin !important;
  scrollbar-color:#8b8b8b #eef1f6 !important;
}

/* Profile approvals table */
body.admin-body #profilesPanel .admin-table{
  min-width:1500px !important;
  width:1500px !important;
  table-layout:fixed !important;
}
body.admin-body #profilesPanel .admin-table th:nth-child(1),
body.admin-body #profilesPanel .admin-table td:nth-child(1){width:320px !important;min-width:320px !important;}
body.admin-body #profilesPanel .admin-table th:nth-child(2),
body.admin-body #profilesPanel .admin-table td:nth-child(2){width:470px !important;min-width:470px !important;}
body.admin-body #profilesPanel .admin-table th:nth-child(3),
body.admin-body #profilesPanel .admin-table td:nth-child(3){width:160px !important;min-width:160px !important;text-align:center !important;}
body.admin-body #profilesPanel .admin-table th:nth-child(4),
body.admin-body #profilesPanel .admin-table td:nth-child(4){width:520px !important;min-width:520px !important;}
body.admin-body #profilesPanel .profile-row-actions,
body.admin-body #profilesPanel td.admin-actions.profile-row-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
body.admin-body #profilesPanel .profile-row-actions .btn,
body.admin-body #profilesPanel .profile-row-actions button{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  min-width:96px !important;
  width:auto !important;
  padding:0 18px !important;
}
body.admin-body #profilesPanel .profile-row-actions .btn.kebab{
  min-width:56px !important;
  width:56px !important;
  padding:0 !important;
}
body.admin-body #profilesPanel .admin-status,
body.admin-body #profilesPanel .admin-status-cell span{
  white-space:nowrap !important;
  display:inline-flex !important;
}

/* Users table */
body.admin-body #usersPanel .users-premium-table,
body.admin-body #usersPanel .admin-table{
  min-width:1480px !important;
  width:1480px !important;
  table-layout:fixed !important;
}
body.admin-body #usersPanel .admin-table th:nth-child(1),
body.admin-body #usersPanel .admin-table td:nth-child(1){width:270px !important;min-width:270px !important;}
body.admin-body #usersPanel .admin-table th:nth-child(2),
body.admin-body #usersPanel .admin-table td:nth-child(2){width:80px !important;min-width:80px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(3),
body.admin-body #usersPanel .admin-table td:nth-child(3){width:105px !important;min-width:105px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(4),
body.admin-body #usersPanel .admin-table td:nth-child(4){width:115px !important;min-width:115px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(5),
body.admin-body #usersPanel .admin-table td:nth-child(5){width:245px !important;min-width:245px !important;}
body.admin-body #usersPanel .admin-table th:nth-child(6),
body.admin-body #usersPanel .admin-table td:nth-child(6){width:130px !important;min-width:130px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(7),
body.admin-body #usersPanel .admin-table td:nth-child(7){width:150px !important;min-width:150px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(8),
body.admin-body #usersPanel .admin-table td:nth-child(8){width:235px !important;min-width:235px !important;text-align:center !important;}
body.admin-body #usersPanel .admin-table th:nth-child(9),
body.admin-body #usersPanel .admin-table td:nth-child(9){width:120px !important;min-width:120px !important;text-align:center !important;}
body.admin-body #usersPanel .users-row-action{
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  flex:0 0 auto !important;
}
body.admin-body #usersPanel .users-status-badge{
  white-space:nowrap !important;
}

/* Membership approvals table */
body.admin-body #paymentsPanel .membership-approvals-table,
body.admin-body #paymentsPanel .premium-membership-table,
body.admin-body #paymentsPanel .admin-table{
  min-width:1520px !important;
  width:1520px !important;
  table-layout:fixed !important;
}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(1),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(1){width:240px !important;min-width:240px !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(2),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(2){width:300px !important;min-width:300px !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(3),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(3){width:180px !important;min-width:180px !important;text-align:center !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(4),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(4){width:140px !important;min-width:140px !important;text-align:center !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(5),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(5){width:200px !important;min-width:200px !important;text-align:center !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(6),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(6){width:150px !important;min-width:150px !important;text-align:center !important;}
body.admin-body #paymentsPanel .membership-approvals-table th:nth-child(7),
body.admin-body #paymentsPanel .membership-approvals-table td:nth-child(7){width:300px !important;min-width:300px !important;}
body.admin-body #paymentsPanel td.membership-actions,
body.admin-body #paymentsPanel td.admin-actions.membership-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  white-space:nowrap !important;
  overflow:visible !important;
}
body.admin-body #paymentsPanel .membership-actions .btn,
body.admin-body #paymentsPanel .membership-actions button{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  min-width:90px !important;
  height:38px !important;
  padding:0 12px !important;
  font-size:12px !important;
}
body.admin-body #paymentsPanel .admin-status,
body.admin-body #paymentsPanel .admin-status-cell span,
body.admin-body #paymentsPanel .membership-no-proof,
body.admin-body #paymentsPanel .payment-proof-link,
body.admin-body #paymentsPanel .payment-proof-btn{
  white-space:nowrap !important;
}

/* Keep cells neat but never crop the right action edge */
body.admin-body #profilesPanel .admin-table th,
body.admin-body #profilesPanel .admin-table td,
body.admin-body #usersPanel .admin-table th,
body.admin-body #usersPanel .admin-table td,
body.admin-body #paymentsPanel .admin-table th,
body.admin-body #paymentsPanel .admin-table td{
  box-sizing:border-box !important;
  overflow:visible !important;
}

/* =========================================================
   FINAL ADMIN MOBILE UI RESET - mobile only
   Keeps desktop/web table view unchanged.
   Applies to: Profile Approvals, Users, Membership Approvals
========================================================= */
@media (max-width: 768px) {
  .admin-body {
    --admin-pink: #e91e63;
    --admin-pink-2: #f72578;
    --admin-red: #ef312f;
    --admin-ink: #0f172a;
    --admin-muted: #667085;
    --admin-border: #ffd1df;
    --admin-soft: #fff7fb;
    background: #f7fafc !important;
  }

  .admin-body .admin-section .container {
    max-width: 100% !important;
    padding: 0 10px !important;
  }

  .admin-body .admin-polished-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%) !important;
    border: 1px solid var(--admin-border) !important;
    border-radius: 22px !important;
    padding: 14px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07) !important;
    overflow: hidden !important;
  }

  /* Premium mobile hero cards */
  .admin-body #profilesPanel .admin-page-banner,
  .admin-body #usersPanel .admin-page-banner,
  .admin-body #paymentsPanel .admin-page-banner {
    min-height: 190px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px !important;
    margin: 0 0 14px !important;
    border: 1px solid #ffd1df !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, #fff 0%, #fff0f6 100%) !important;
    color: var(--admin-ink) !important;
    box-shadow: 0 14px 32px rgba(233, 30, 99, .08) !important;
  }

  .admin-body #profilesPanel .admin-page-banner::after,
  .admin-body #usersPanel .admin-page-banner::after,
  .admin-body #paymentsPanel .admin-page-banner::after {
    width: 120px !important;
    height: 120px !important;
    right: -36px !important;
    bottom: -48px !important;
    background: rgba(233, 30, 99, .10) !important;
  }

  .admin-body .admin-page-banner h3 {
    color: var(--admin-ink) !important;
    font-size: 28px !important;
    line-height: 1.05 !important;
    margin: 8px 0 10px !important;
    letter-spacing: -.02em !important;
  }

  .admin-body .admin-page-banner p {
    color: #475467 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    max-width: 210px !important;
  }

  .admin-body .admin-kicker {
    color: var(--admin-pink) !important;
    font-size: 12px !important;
    letter-spacing: .06em !important;
  }

  .admin-body .admin-page-badge {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-top: 8px !important;
    background: linear-gradient(135deg, var(--admin-pink-2), #d80b68) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    box-shadow: 0 14px 28px rgba(233, 30, 99, .22) !important;
  }

  .admin-body .profile-banner-art,
  .admin-body .membership-banner-side {
    display: grid !important;
    place-items: center !important;
    width: 94px !important;
    height: 94px !important;
    border-radius: 24px !important;
    background: rgba(233, 30, 99, .08) !important;
    color: var(--admin-pink) !important;
    z-index: 1 !important;
  }

  .admin-body .profile-doc-card,
  .admin-body .profile-check-bubble,
  .admin-body .membership-banner-side span,
  .admin-body .membership-banner-side small { display: none !important; }
  .admin-body .profile-banner-art::before { content: "\f0ae"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 44px; }
  .admin-body .users-premium-banner::before { content: "\f0c0"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 52px; color: var(--admin-pink); opacity: .8; }
  .admin-body .membership-banner-side::before { content: "\f559"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 46px; }

  /* Stats: compact premium cards */
  .admin-body .admin-mini-metrics,
  .admin-body .users-stat-grid,
  .admin-body .membership-payment-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 0 14px !important;
  }

  .admin-body .admin-mini-metrics > div,
  .admin-body .users-stat-card,
  .admin-body .payment-metric-card {
    min-height: 116px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 14px 10px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #ffe0ea !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055) !important;
    overflow: hidden !important;
  }

  .admin-body .admin-mini-metrics span,
  .admin-body .users-stat-card small,
  .admin-body .payment-metric-card span {
    font-size: 11px !important;
    color: #475467 !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .admin-body .admin-mini-metrics strong,
  .admin-body .users-stat-card strong,
  .admin-body .payment-metric-card strong {
    font-size: 28px !important;
    color: var(--admin-ink) !important;
    margin-top: 8px !important;
    line-height: 1 !important;
  }

  .admin-body .users-stat-icon,
  .admin-body .payment-metric-card i {
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    margin-bottom: 8px !important;
  }

  .admin-body .users-stat-card p,
  .admin-body .payment-metric-card small { display: none !important; }

  /* Toolbar/search blocks */
  .admin-body .profile-approval-head,
  .admin-body .users-list-card,
  .admin-body .membership-approval-toolbar {
    background: #fff !important;
    border: 1px solid #ffe0ea !important;
    border-radius: 22px !important;
    padding: 16px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05) !important;
    margin-bottom: 14px !important;
  }

  .admin-body .polished-head h3,
  .admin-body .users-list-head h3 {
    font-size: 26px !important;
    line-height: 1.1 !important;
    color: var(--admin-ink) !important;
    margin: 6px 0 6px !important;
  }

  .admin-body .polished-head p,
  .admin-body .users-list-head p {
    color: #475467 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }

  .admin-body .profile-approval-filters,
  .admin-body .users-filter-tabs,
  .admin-body .membership-filter-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 12px 0 !important;
  }

  .admin-body .users-filter-tabs { grid-template-columns: repeat(2, 1fr) !important; }
  .admin-body .membership-filter-tabs { grid-template-columns: repeat(2, 1fr) !important; }

  .admin-body .profile-approval-filters button,
  .admin-body .users-filter-tabs button,
  .admin-body .membership-filter-tabs button {
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #edf0f5 !important;
    background: #fff !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    padding: 10px 8px !important;
  }

  .admin-body .profile-approval-filters button.active,
  .admin-body .users-filter-tabs button.active,
  .admin-body .membership-filter-tabs button.active {
    background: linear-gradient(135deg, var(--admin-pink-2), #d80b68) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 12px 26px rgba(233, 30, 99, .18) !important;
  }

  .admin-body .admin-toolbar-left,
  .admin-body .membership-toolbar-actions,
  .admin-body .users-toolbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .admin-body .admin-toolbar-left .btn,
  .admin-body .membership-tool-btn,
  .admin-body .users-tool-btn,
  .admin-body .users-add-user,
  .admin-body .admin-page-badge.users-add-user {
    min-height: 48px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  .admin-body #openProfileForm,
  .admin-body .users-add-user {
    grid-column: 1 / -1 !important;
  }

  .admin-body #deleteUsersBtn,
  .admin-body .btn.danger {
    background: linear-gradient(135deg, #ff3b30, #e42b2b) !important;
    color: #fff !important;
  }

  .admin-body .admin-search-field,
  .admin-body .users-search,
  .admin-body .membership-search,
  .admin-body .premium-users-search {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    background: #fff !important;
  }

  .admin-body .admin-search-field input,
  .admin-body .users-search input,
  .admin-body .membership-search input {
    width: 100% !important;
    border: 0 !important;
    outline: 0 !important;
    min-width: 0 !important;
  }

  .admin-body .users-list-head,
  .admin-body .membership-approval-toolbar {
    display: block !important;
  }

  /* Mobile cards instead of wide tables */
  .admin-body #profilesPanel .admin-table-wrap,
  .admin-body #usersPanel .admin-table-wrap,
  .admin-body #paymentsPanel .admin-table-wrap {
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .admin-body #profilesPanel .admin-table,
  .admin-body #usersPanel .admin-table,
  .admin-body #paymentsPanel .admin-table,
  .admin-body #profilesPanel .admin-table tbody,
  .admin-body #usersPanel .admin-table tbody,
  .admin-body #paymentsPanel .admin-table tbody,
  .admin-body #profilesPanel .admin-table tr,
  .admin-body #usersPanel .admin-table tr,
  .admin-body #paymentsPanel .admin-table tr,
  .admin-body #profilesPanel .admin-table td,
  .admin-body #usersPanel .admin-table td,
  .admin-body #paymentsPanel .admin-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body #profilesPanel .admin-table,
  .admin-body #usersPanel .admin-table,
  .admin-body #paymentsPanel .admin-table {
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .admin-body #profilesPanel .admin-table thead,
  .admin-body #usersPanel .admin-table thead,
  .admin-body #paymentsPanel .admin-table thead {
    display: none !important;
  }

  .admin-body #profilesPanel .admin-table tbody,
  .admin-body #usersPanel .admin-table tbody,
  .admin-body #paymentsPanel .admin-table tbody {
    display: grid !important;
    gap: 14px !important;
  }

  .admin-body #profilesPanel .admin-table tbody tr:not(.admin-inline-edit-row),
  .admin-body #usersPanel .admin-table tbody tr,
  .admin-body #paymentsPanel .admin-table tbody tr {
    position: relative !important;
    padding: 16px !important;
    background: #fff !important;
    border: 1px solid #ffd8e5 !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
    overflow: hidden !important;
  }

  .admin-body #profilesPanel .admin-table td,
  .admin-body #usersPanel .admin-table td,
  .admin-body #paymentsPanel .admin-table td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body #profilesPanel .admin-profile-mini,
  .admin-body #usersPanel .users-profile-cell,
  .admin-body #paymentsPanel .membership-user-cell {
    display: grid !important;
    grid-template-columns: 58px 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    padding-right: 38px !important;
  }

  .admin-body #profilesPanel .admin-profile-mini img,
  .admin-body #usersPanel .users-profile-cell img,
  .admin-body #paymentsPanel .membership-user-cell img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 12px 22px rgba(15, 23, 42, .12) !important;
  }

  .admin-body .admin-profile-mini b,
  .admin-body .users-profile-cell b,
  .admin-body .membership-user-cell b {
    font-size: 18px !important;
    color: var(--admin-ink) !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
  }

  .admin-body .admin-profile-mini small,
  .admin-body .users-profile-cell small,
  .admin-body .membership-user-cell small {
    display: block !important;
    color: #526176 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    margin-top: 3px !important;
  }

  .admin-body #profilesPanel .admin-detail-lines,
  .admin-body #paymentsPanel .membership-package-cell,
  .admin-body #paymentsPanel .membership-txn,
  .admin-body #paymentsPanel .membership-amount,
  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .membership-no-proof,
  .admin-body #usersPanel .users-membership-cell {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f6e5eb !important;
  }

  .admin-body #profilesPanel .admin-detail-lines b,
  .admin-body #paymentsPanel .membership-package-cell b,
  .admin-body #usersPanel .users-membership-cell b,
  .admin-body #paymentsPanel .membership-amount b {
    color: var(--admin-ink) !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  .admin-body #profilesPanel .admin-detail-lines small,
  .admin-body #paymentsPanel .membership-package-cell small,
  .admin-body #usersPanel .users-membership-cell small,
  .admin-body #paymentsPanel .membership-amount small {
    display: block !important;
    color: #526176 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
  }

  .admin-body #profilesPanel .admin-status-cell,
  .admin-body #paymentsPanel td:nth-child(6) {
    margin-top: 12px !important;
  }

  .admin-body .status-badge,
  .admin-body .users-status-badge,
  .admin-body .user-presence {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    min-width: 92px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .admin-body #profilesPanel .profile-row-actions,
  .admin-body #paymentsPanel .membership-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f6e5eb !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .admin-body #profilesPanel .profile-row-actions .kebab {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 13px !important;
  }

  .admin-body #profilesPanel .profile-row-actions .btn:not(.kebab),
  .admin-body #paymentsPanel .membership-actions .btn {
    height: 42px !important;
    min-width: 0 !important;
    padding: 0 8px !important;
    justify-content: center !important;
    font-size: 12px !important;
    border-radius: 13px !important;
    white-space: nowrap !important;
  }

  .admin-body #usersPanel .users-row-action,
  .admin-body #paymentsPanel .admin-actions .users-row-action {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 13px !important;
    display: grid !important;
    place-items: center !important;
  }

  /* User directory card details */
  .admin-body #usersPanel .admin-table td:nth-child(n+2):not(:last-child) {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 12px 8px 0 0 !important;
    padding: 8px 11px !important;
    background: #fff7fb !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .admin-body #usersPanel .admin-table td:nth-child(5),
  .admin-body #usersPanel .admin-table td:nth-child(8) {
    display: block !important;
    width: 100% !important;
    border-radius: 14px !important;
    white-space: normal !important;
  }

  /* Payment proof and membership card layout */
  .admin-body #paymentsPanel .payment-proof-link,
  .admin-body #paymentsPanel .membership-no-proof {
    width: 100% !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    border: 1px solid #ffd1df !important;
    border-radius: 14px !important;
    padding: 10px 12px !important;
    background: #fff !important;
    color: var(--admin-pink) !important;
    font-weight: 900 !important;
  }

  .admin-body #paymentsPanel .payment-proof-link img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  /* Inline edit form on profile approvals */
  .admin-body #profilesPanel .admin-inline-edit-row {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .admin-body #profilesPanel .admin-inline-edit-form {
    padding: 16px !important;
    border-radius: 20px !important;
    background: #fff !important;
    border: 1px solid #ffd1df !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07) !important;
  }
  .admin-body .admin-review-field,
  .admin-body .admin-review-about {
    border-radius: 14px !important;
    min-height: 48px !important;
  }

  /* Footers */
  .admin-body .users-table-footer,
  .admin-body .membership-table-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #ffe0ea !important;
    text-align: center !important;
  }

  .admin-body .users-pagination {
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  .admin-body .admin-mini-metrics,
  .admin-body .users-stat-grid,
  .admin-body .membership-payment-metrics {
    grid-template-columns: 1fr !important;
  }
  .admin-body #profilesPanel .profile-row-actions,
  .admin-body #paymentsPanel .membership-actions {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   FINAL HOTFIX: MOBILE ONLY - Profile Approvals + Users cards
   Keeps desktop/table view untouched. Fixes oversized 1500px rows,
   overlaps, merged buttons, and unaligned user meta fields.
========================================================= */
@media (max-width: 768px) {
  body.admin-body #profilesPanel,
  body.admin-body #usersPanel {
    overflow-x: hidden !important;
  }

  body.admin-body #profilesPanel .admin-table-wrap,
  body.admin-body #usersPanel .admin-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.admin-body #profilesPanel table.admin-table,
  body.admin-body #usersPanel table.admin-table,
  body.admin-body #profilesPanel table.admin-table tbody,
  body.admin-body #usersPanel table.admin-table tbody {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    table-layout: auto !important;
    border: 0 !important;
  }

  body.admin-body #profilesPanel table.admin-table thead,
  body.admin-body #usersPanel table.admin-table thead {
    display: none !important;
  }

  body.admin-body #profilesPanel table.admin-table tbody,
  body.admin-body #usersPanel table.admin-table tbody {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.admin-body #profilesPanel table.admin-table tbody tr:not(.admin-inline-edit-row),
  body.admin-body #usersPanel table.admin-table tbody tr {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 16px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #ffd5e3 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07) !important;
    overflow: hidden !important;
  }

  body.admin-body #profilesPanel table.admin-table tbody tr:not(.admin-inline-edit-row) > td,
  body.admin-body #usersPanel table.admin-table tbody tr > td {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  /* Profile Approvals card */
  body.admin-body #profilesPanel .admin-profile-mini.compact-profile,
  body.admin-body #profilesPanel .admin-profile-mini {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: center !important;
    padding: 0 48px 0 0 !important;
  }

  body.admin-body #profilesPanel .admin-profile-mini img {
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .13) !important;
  }

  body.admin-body #profilesPanel .admin-profile-lines,
  body.admin-body #profilesPanel .admin-profile-lines b,
  body.admin-body #profilesPanel .admin-profile-lines small {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #profilesPanel .admin-profile-lines b {
    font-size: 20px !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
  }

  body.admin-body #profilesPanel .admin-profile-lines small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #526176 !important;
  }

  body.admin-body #profilesPanel .admin-detail-lines {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f3dbe4 !important;
  }

  body.admin-body #profilesPanel .admin-detail-lines b {
    display: block !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
    margin-bottom: 6px !important;
    color: #0f172a !important;
  }

  body.admin-body #profilesPanel .admin-detail-lines small {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #526176 !important;
  }

  body.admin-body #profilesPanel .admin-status-cell {
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f3dbe4 !important;
  }

  body.admin-body #profilesPanel .profile-row-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #f3dbe4 !important;
  }

  body.admin-body #profilesPanel .profile-row-actions .btn:not(.kebab) {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 13px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  body.admin-body #profilesPanel .profile-row-actions .kebab {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Users card: clean, aligned meta blocks */
  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: center !important;
    padding: 0 50px 12px 0 !important;
    border-bottom: 1px solid #f3dbe4 !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .13) !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell b {
    display: block !important;
    max-width: 100% !important;
    font-size: 20px !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell small {
    display: block !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #526176 !important;
    overflow-wrap: anywhere !important;
    margin-top: 3px !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(2),
  body.admin-body #usersPanel .admin-table td:nth-child(3),
  body.admin-body #usersPanel .admin-table td:nth-child(4),
  body.admin-body #usersPanel .admin-table td:nth-child(6),
  body.admin-body #usersPanel .admin-table td:nth-child(7),
  body.admin-body #usersPanel .admin-table td:nth-child(8) {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 10px !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: #fff7fb !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(2)::before { content: "Age"; }
  body.admin-body #usersPanel .admin-table td:nth-child(3)::before { content: "Gender"; }
  body.admin-body #usersPanel .admin-table td:nth-child(4)::before { content: "City"; }
  body.admin-body #usersPanel .admin-table td:nth-child(6)::before { content: "Status"; }
  body.admin-body #usersPanel .admin-table td:nth-child(7)::before { content: "Joined"; }
  body.admin-body #usersPanel .admin-table td:nth-child(8)::before { content: "Last seen"; }

  body.admin-body #usersPanel .admin-table td:nth-child(2)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(3)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(4)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(6)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(7)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(8)::before {
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(5) {
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #fff7fb, #fff) !important;
    border: 1px solid #ffe0ea !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(5)::before {
    content: "Membership" !important;
    display: block !important;
    color: #667085 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
  }

  body.admin-body #usersPanel .users-membership-cell {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.admin-body #usersPanel .users-membership-cell b {
    font-size: 16px !important;
    line-height: 1.25 !important;
    color: #0f172a !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .users-membership-cell small {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #526176 !important;
  }

  body.admin-body #usersPanel .users-status-badge,
  body.admin-body #usersPanel .user-presence {
    justify-self: start !important;
    min-width: 92px !important;
    padding: 8px 14px !important;
  }

  body.admin-body #usersPanel .users-row-action {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
}

/* =========================================================
   FINAL USER MOBILE ALIGNMENT PATCH - mobile only
   Applies the 6 cleanup steps: compact card, aligned 2-column
   rows, clean membership block, joined/last seen rows, balanced
   header, and centered status badge. Desktop is untouched.
========================================================= */
@media (max-width: 768px) {
  body.admin-body #usersPanel .admin-table-wrap,
  body.admin-body #usersPanel .users-premium-table-wrap {
    overflow: visible !important;
  }

  body.admin-body #usersPanel table.admin-table tbody tr {
    position: relative !important;
    padding: 18px !important;
    border-radius: 22px !important;
    border: 1px solid #ffd2e1 !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07) !important;
    overflow: hidden !important;
  }

  /* Step 4 + 5: clean profile header with enough room */
  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell,
  body.admin-body #usersPanel .users-profile-cell {
    display: grid !important;
    grid-template-columns: 68px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 48px 14px 0 !important;
    margin: 0 0 2px 0 !important;
    border-bottom: 1px solid #f3dbe4 !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell img,
  body.admin-body #usersPanel .users-profile-cell img {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14) !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell b,
  body.admin-body #usersPanel .users-profile-cell b {
    display: block !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .admin-profile-mini.users-profile-cell small,
  body.admin-body #usersPanel .users-profile-cell small {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #526176 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    margin-top: 4px !important;
  }

  /* Step 1: every normal info row uses same two-column grid */
  body.admin-body #usersPanel .admin-table td:nth-child(2),
  body.admin-body #usersPanel .admin-table td:nth-child(3),
  body.admin-body #usersPanel .admin-table td:nth-child(4),
  body.admin-body #usersPanel .admin-table td:nth-child(7),
  body.admin-body #usersPanel .admin-table td:nth-child(8) {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 11px 0 0 0 !important;
    padding: 11px 14px !important;
    border-radius: 999px !important;
    background: #fff7fb !important;
    border: 0 !important;
    box-sizing: border-box !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(2)::before { content: "Age" !important; }
  body.admin-body #usersPanel .admin-table td:nth-child(3)::before { content: "Gender" !important; }
  body.admin-body #usersPanel .admin-table td:nth-child(4)::before { content: "City" !important; }
  body.admin-body #usersPanel .admin-table td:nth-child(7)::before { content: "Joined" !important; }
  body.admin-body #usersPanel .admin-table td:nth-child(8)::before { content: "Last Seen" !important; }

  body.admin-body #usersPanel .admin-table td:nth-child(2)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(3)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(4)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(7)::before,
  body.admin-body #usersPanel .admin-table td:nth-child(8)::before {
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  /* Step 2: membership never breaks label; content has room */
  body.admin-body #usersPanel .admin-table td:nth-child(5) {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 13px 0 0 0 !important;
    padding: 14px !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #fff7fb 0%, #fff 100%) !important;
    border: 1px solid #ffe0ea !important;
    box-sizing: border-box !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(5)::before {
    content: "Membership" !important;
    display: block !important;
    color: #667085 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  body.admin-body #usersPanel .users-membership-cell {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
  }

  body.admin-body #usersPanel .users-membership-cell b {
    display: block !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body #usersPanel .users-membership-cell small {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #526176 !important;
    margin-top: 4px !important;
  }

  /* Step 6: status as an aligned row */
  body.admin-body #usersPanel .admin-table td:nth-child(6) {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 13px 0 0 0 !important;
    padding: 11px 14px !important;
    border-radius: 999px !important;
    background: #fff7fb !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  body.admin-body #usersPanel .admin-table td:nth-child(6)::before {
    content: "Status" !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  body.admin-body #usersPanel .users-status-badge,
  body.admin-body #usersPanel .user-presence {
    justify-self: start !important;
    min-width: auto !important;
    width: auto !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  /* Kebab button compact and consistent */
  body.admin-body #usersPanel .users-row-action {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 14px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* More compact phones */
  @media (max-width: 390px) {
    body.admin-body #usersPanel table.admin-table tbody tr { padding: 16px !important; }
    body.admin-body #usersPanel .admin-profile-mini.users-profile-cell,
body.admin-body #usersPanel .users-profile-cell{
    grid-template-columns:58px 1fr !important;
    gap:14px !important;
    padding-right:0 !important;
}
    body.admin-body #usersPanel .admin-profile-mini.users-profile-cell img,
    body.admin-body #usersPanel .users-profile-cell img { width: 58px !important; height: 58px !important; }
    body.admin-body #usersPanel .admin-profile-mini.users-profile-cell b,
    body.admin-body #usersPanel .users-profile-cell b { font-size: 19px !important; }
    body.admin-body #usersPanel .admin-table td:nth-child(2),
    body.admin-body #usersPanel .admin-table td:nth-child(3),
    body.admin-body #usersPanel .admin-table td:nth-child(4),
    body.admin-body #usersPanel .admin-table td:nth-child(6),
    body.admin-body #usersPanel .admin-table td:nth-child(7),
    body.admin-body #usersPanel .admin-table td:nth-child(8) {
      grid-template-columns: 86px minmax(0, 1fr) !important;
      padding: 10px 12px !important;
      font-size: 13px !important;
    }
    body.admin-body #usersPanel .admin-table td:nth-child(5) {
      grid-template-columns: 98px minmax(0, 1fr) !important;
      padding: 12px !important;
    }
  }
}

@media (max-width:768px){

  body.admin-body #usersPanel .users-membership-cell{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    padding:14px 16px !important;
  }

  body.admin-body #usersPanel .users-membership-cell::before{
    flex:0 0 105px !important;
    white-space:nowrap !important;
  }

  body.admin-body #usersPanel .users-membership-cell > div{
    flex:1 !important;
    min-width:0 !important;
    text-align:right !important;
  }

  body.admin-body #usersPanel .users-membership-cell b{
    display:block !important;
    font-size:15px !important;
    line-height:1.15 !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
  }

  body.admin-body #usersPanel .users-membership-cell small{
    display:block !important;
    margin-top:4px !important;
    font-size:12px !important;
    line-height:1.25 !important;
  }
}

@media (max-width: 900px) {

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr {
    display: block !important;
    width: 100% !important;
    padding: 16px !important;
    margin: 0 0 16px !important;
    border: 1px solid #ffd0de !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06) !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #f1dfe6 !important;
    text-align: left !important;
    white-space: normal !important;
    background: transparent !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td::before {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .7px !important;
    text-transform: uppercase !important;
    color: #5b6b84 !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(1)::before {
    content: "User";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(2)::before {
    content: "Package";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(3)::before {
    content: "Transaction ID";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(4)::before {
    content: "Amount";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(5)::before {
    content: "Payment Screenshot";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(6)::before {
    content: "Status";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(7)::before {
    content: "Actions";
  }

  body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(5) {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table .admin-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.admin-body #paymentsPanel table.membership-approvals-table .admin-actions button,
  body.admin-body #paymentsPanel table.membership-approvals-table .admin-actions .btn {
    width: 100% !important;
    min-height: 38px !important;
    border-radius: 14px !important;
  }

}

body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td {
  border-bottom: 1px solid #f1dfe6 !important;
}

body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td::after {
  display: none !important;
  content: none !important;
}

body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(3),
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(4),
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(5),
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(6) {
  text-align: left !important;
  align-items: flex-start !important;
}

body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(3)::before,
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(4)::before,
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(5)::before,
body.admin-body #paymentsPanel table.membership-approvals-table tbody tr > td:nth-child(6)::before {
  text-align: left !important;
  margin-left: 0 !important;
}

@media (max-width: 560px) {
  .admin-header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .admin-header-left {
    display: contents !important;
  }

  .admin-header-left img {
    grid-column: 1 !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: contain !important;
  }

  .admin-header-left > div {
    grid-column: 2 !important;
    text-align: center !important;
  }

  #adminMenuToggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    order: 99 !important;
  }
} 

.search-filter-card {
  display: none !important;
}

.search-page-layout {
  display: block !important;
}

.search-results-area {
  width: 100% !important;
  max-width: 100% !important;
}

/* Firebase email verification link UI */
.verification-link-note { flex:1; min-height:48px; display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px dashed #f4a9c0; border-radius:12px; background:#fff8fb; color:#475467; }
.verification-link-note i { color:#e91e63; font-size:18px; }
@media (max-width: 640px) { .verification-link-note { width:100%; } }


.search-box .form-grid .field:first-child {
    display: none !important;
}

/* ===== Shared footer layout for every page ===== */

.footer {
  width: 100%;
  background: #101010;
  color: #ffffff;
}

.footer .footer-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 48px;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr !important;
  gap: 70px !important;
  align-items: start !important;
}

.footer .footer-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.footer .footer-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 18px !important;
}

.footer .footer-logo-img {
  display: block !important;
  width: 215px !important;
  max-width: 100% !important;
  height: 64px !important;
  object-fit: contain !important;
  background: #ffffff;
}

.footer .footer-brand p {
  margin: 0 !important;
  color: #ffffff !important;
  line-height: 1.7 !important;
  text-align: center !important;
}

.footer .footer-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.footer .footer-column h3 {
  margin: 0 0 16px !important;
  color: #ffffff !important;
}

.footer .footer-column a {
  display: block !important;
  margin: 0 0 14px !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.footer .footer-column a:hover {
  color: #ff2d75 !important;
}

.footer .footer-bottom {
  width: 100% !important;
  margin: 0 !important;
  padding: 20px 32px !important;
  border-top: 1px solid #333333 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  text-align: left !important;
}

.footer .footer-bottom p {
  margin: 0 !important;
  color: #eeeeee !important;
}

.footer .footer-bottom a {
  display: inline !important;
  margin: 0 !important;
  color: #ff2d75 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Mobile UPI payment modal scrolling fix */
#upiPaymentModal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: flex-start;
  justify-content: center;

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 16px;
}

#upiPaymentModal.show {
  display: flex;
}

#upiPaymentModal .upi-modal-card {
  width: min(100%, 460px);
  max-height: none;
  margin: auto 0;

  overflow: visible;
}

@media (max-width: 640px) {
  body:has(#upiPaymentModal.show) {
    overflow: hidden;
  }

  #upiPaymentModal {
    align-items: flex-start;
    padding: 12px;
  }

  #upiPaymentModal .upi-modal-card {
    width: 100%;
    margin: 0;
    max-height: calc(100dvh - 24px);

    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;

    overscroll-behavior: contain;
  }
}