:root {
  --bg: #f7f1ea;
  --bg-soft: #fffaf4;
  --surface: rgba(255, 251, 246, 0.94);
  --surface-strong: #fffdf8;
  --ink: #2a1611;
  --muted: #7a655b;
  --line: rgba(104, 52, 33, 0.12);
  --brand: #8f1d2c;
  --brand-deep: #64131d;
  --accent: #c89b3c;
  --approved: #256f4a;
  --pending: #c7761c;
  --rejected: #a12f2f;
  --neutral: #5d6678;
  --shadow: 0 24px 60px rgba(66, 29, 17, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(200, 155, 60, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(143, 29, 44, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, #f5ece2 100%);
  min-height: 100vh;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 244, 0.92), rgba(245, 236, 226, 0.94)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

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

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

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

.theme-shell {
  position: relative;
}

.theme-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 30%),
    linear-gradient(315deg, rgba(200, 155, 60, 0.07), transparent 40%);
  pointer-events: none;
}

.hero,
.page-shell,
.dashboard-shell {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  width: min(100vw - 12px, 1680px);
  padding: 22px 0 44px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background:
    linear-gradient(135deg, rgba(100, 19, 29, 0.96), rgba(143, 29, 44, 0.92)),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  box-shadow: 0 30px 70px rgba(100, 19, 29, 0.2);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(100, 19, 29, 0.94) 0%, rgba(100, 19, 29, 0.9) 40%, rgba(100, 19, 29, 0.58) 100%);
  z-index: -1;
  opacity: 1;
}

.hero-grid,
.site-nav {
  width: min(1440px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.page-shell,
.dashboard-shell {
  padding: 26px 0 56px;
}

.page-shell {
  position: relative;
}

.page-shell::after {
  content: "";
  position: absolute;
  inset: 12px 0 auto;
  height: 240px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.95), rgba(247, 241, 234, 0.9));
  z-index: -1;
  box-shadow: var(--shadow);
}

.private-page::after {
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.92), rgba(248, 239, 230, 0.9)),
    url("https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  background-blend-mode: soft-light;
  height: 280px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.brand-mark {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.94);
  padding: 6px;
  box-shadow: 0 10px 24px rgba(66, 29, 17, 0.14);
}

.brand-wordmark {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.hero .brand-mark {
  background: rgba(255, 246, 239, 0.92);
}

.hero .brand-wordmark {
  filter: brightness(0) invert(1);
}

.hero .brand,
.hero .nav-links a {
  color: rgba(255, 246, 239, 0.94);
}

.auth-brand-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.auth-brand-wrap .brand-mark {
  width: 58px;
  height: 58px;
}

.auth-brand-wrap .brand-wordmark {
  height: 36px;
}

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

.nav-links a {
  color: var(--muted);
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.tiny-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-button,
.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fffaf6;
  box-shadow: 0 12px 30px rgba(100, 19, 29, 0.24);
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button {
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-button,
.ghost-button {
  background: rgba(255, 251, 246, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero .secondary-button {
  background: rgba(255, 246, 239, 0.1);
  color: #fff7f1;
  border-color: rgba(255, 246, 239, 0.25);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.nav-button:hover,
.tiny-button:hover {
  transform: translateY(-1px);
}

.hero-grid,
.section-grid,
.form-layout,
.auth-shell {
  display: grid;
  gap: 28px;
}

.hero-grid {
  grid-template-columns: 1.35fr 0.8fr;
  align-items: center;
}

.hero-copy h1,
.page-intro h1,
.auth-copy h1,
.success-card h1,
.info-card h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

.hero-copy,
.hero-panel {
  color: #fff7f1;
}

.hero-copy .hero-text,
.hero-panel .highlight-title {
  color: rgba(255, 244, 236, 0.82);
}

.hero-panel .stat-card,
.hero-panel .highlight-card {
  color: var(--ink);
}

.hero-panel .stat-label,
.hero-panel .highlight-title,
.hero-panel .feature-list li {
  color: var(--muted);
}

.hero-panel .stat-card strong {
  color: var(--brand-deep);
}

.hero-copy h1 {
  font-size: clamp(3.3rem, 6vw, 5.7rem);
  margin: 0 0 18px;
}

.hero-text,
.page-intro p,
.auth-copy p,
.muted-text,
.info-card p,
.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow,
.section-kicker,
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
  border: 1px solid rgba(200, 155, 60, 0.18);
  color: var(--brand-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.filter-actions,
.table-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-panel,
.info-card,
.elevated-card,
.success-card,
.empty-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-panel,
.dashboard-header,
.filters,
.dashboard-table,
.login-box,
.success-card,
.info-card {
  padding: 28px;
}

.stat-card,
.highlight-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 247, 240, 0.1);
  border: 1px solid rgba(255, 241, 228, 0.14);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.stat-card strong {
  display: block;
  font-size: 2.3rem;
  margin-top: 8px;
  font-family: "Cormorant Garamond", serif;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list,
.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li:last-child {
  border-bottom: 0;
}

.content-shell {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

.section-grid {
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: 28px;
}

.info-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin: 10px 0 18px;
}

.accent-card {
  background: linear-gradient(180deg, rgba(100, 19, 29, 0.94), rgba(143, 29, 44, 0.9));
  color: #fff7f1;
}

.accent-card p,
.accent-card .section-kicker {
  color: rgba(255, 246, 246, 0.86);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-list div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--line);
}

.process-list span {
  font-weight: 700;
  color: var(--brand);
}

.recent-section,
.page-intro {
  margin-bottom: 26px;
}

.section-heading,
.table-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.page-intro h1,
.dashboard-header h1 {
  margin: 8px 0 0;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
}

.text-link {
  color: var(--brand-deep);
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.member-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

.member-hero-copy,
.member-note {
  background: rgba(255, 251, 246, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 155, 60, 0.16);
  box-shadow: var(--shadow);
  padding: 28px;
}

.member-hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.6rem, 4.4vw, 4rem);
}

.member-note {
  background: linear-gradient(180deg, rgba(100, 19, 29, 0.94), rgba(143, 29, 44, 0.9));
  color: #fff7f1;
}

.member-note h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.member-note p {
  color: rgba(255, 244, 236, 0.84);
  line-height: 1.7;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.member-filters {
  margin-bottom: 24px;
}

.member-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.member-card {
  position: relative;
}

.member-card .profile-body {
  display: grid;
  gap: 8px;
}

.member-card .profile-body p {
  margin: 0;
}

.profile-requirements {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 248, 240, 0.9);
  border: 1px solid rgba(200, 155, 60, 0.16);
  color: var(--muted);
}

.profile-actions {
  padding-top: 8px;
}

.stacked-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(66, 29, 17, 0.08);
}

.profile-image-wrap {
  aspect-ratio: 4 / 4.5;
  background: linear-gradient(145deg, rgba(200, 155, 60, 0.18), rgba(143, 29, 44, 0.08));
  overflow: hidden;
}

.profile-image-wrap img,
.table-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-body {
  padding: 18px;
}

.profile-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.profile-topline h3,
.table-meta h2,
.success-card h1,
.login-box h2 {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.approved {
  background: rgba(37, 111, 74, 0.12);
  color: var(--approved);
}

.status-pill.pending {
  background: rgba(167, 98, 22, 0.14);
  color: var(--pending);
}

.status-pill.rejected {
  background: rgba(161, 47, 47, 0.12);
  color: var(--rejected);
}

.status-pill.neutral {
  background: rgba(93, 102, 120, 0.12);
  color: var(--neutral);
}

.status-pill.verified {
  background: rgba(200, 155, 60, 0.18);
  color: #8a6422;
}

.empty-card,
.table-empty {
  padding: 26px;
  text-align: center;
}

.form-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.form-intro,
.auth-copy {
  padding: 28px 8px 0 0;
}

.form-intro h1,
.auth-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  margin: 12px 0 16px;
}

.mini-points {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.mini-points div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid var(--line);
}

.modern-form {
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.form-grid,
.upload-grid,
.filter-grid,
.form-stack {
  display: grid;
  gap: 16px;
}

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

.upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 26px;
}

.modern-form label,
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modern-form label span,
.upload-field span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(104, 52, 33, 0.14);
  background: rgba(255, 253, 250, 0.96);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(143, 29, 44, 0.35);
  box-shadow: 0 0 0 4px rgba(143, 29, 44, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.upload-field {
  padding: 18px;
  border: 1px dashed rgba(200, 155, 60, 0.34);
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.82);
}

.upload-field small {
  color: var(--muted);
}

.full-width {
  width: 100%;
}

.success-shell {
  display: grid;
  place-items: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}

.success-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 248, 241, 0.68), rgba(244, 231, 220, 0.78)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  z-index: -1;
}

.success-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 155, 60, 0.18), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(143, 29, 44, 0.14), transparent 20%),
    radial-gradient(circle at 50% 82%, rgba(200, 155, 60, 0.16), transparent 22%);
  z-index: -1;
}

.success-card {
  max-width: 700px;
  text-align: center;
  position: relative;
  background: rgba(255, 251, 246, 0.92);
  border: 1px solid rgba(200, 155, 60, 0.2);
  box-shadow: 0 28px 80px rgba(66, 29, 17, 0.14);
}

.success-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(200, 155, 60, 0.14);
  pointer-events: none;
}

.auth-shell {
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  min-height: calc(100vh - 120px);
  position: relative;
}

.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(255, 251, 246, 0.96) 0%, rgba(255, 251, 246, 0.88) 46%, rgba(255, 251, 246, 0.7) 100%),
    url("https://images.unsplash.com/photo-1515934751635-c81c6bc9a2d8?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  z-index: -1;
  box-shadow: var(--shadow);
}

.login-box input + input {
  margin-top: 12px;
}

.login-box .primary-button {
  margin-top: 18px;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.filters {
  display: grid;
  gap: 16px;
}

.filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-table {
  overflow: hidden;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-cell span {
  color: var(--muted);
  font-size: 0.9rem;
}

.table-photo {
  width: 80px;
  height: 96px;
  border-radius: 14px;
}

.tiny-button {
  padding: 9px 13px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tiny-button.success {
  background: var(--approved);
}

.tiny-button.warning {
  background: var(--pending);
}

.tiny-button.danger {
  background: var(--rejected);
}

.tiny-button.neutral-link {
  background: #5d6678;
}

.photo-stack {
  display: grid;
  gap: 8px;
}

.photo-stack span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tiny-photo-strip,
.mini-photo-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-photo,
.mini-photo-strip img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(200, 155, 60, 0.2);
}

.member-dashboard-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stats {
  display: grid;
  gap: 16px;
}

.member-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
}

.member-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.member-detail-list div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
}

.member-detail-list strong {
  display: block;
  margin-bottom: 4px;
}

.member-gallery-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  padding: 28px;
}

.dashboard-mini-grid {
  display: grid;
  gap: 14px;
}

.mini-match-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
}

.mini-match-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 16px;
}

.mini-match-card strong,
.mini-match-card span {
  display: block;
}

.mini-match-card span {
  margin-top: 4px;
  color: var(--muted);
}

.profile-detail-shell {
  display: grid;
  gap: 26px;
}

.profile-detail-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  padding: 28px;
}

.profile-detail-main-photo {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
}

.profile-detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-detail-copy h1 {
  margin: 12px 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.guna-shell {
  display: grid;
  gap: 28px;
}

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

.guna-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
}

.kundli-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guna-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.guna-results {
  display: grid;
  gap: 24px;
}

.guna-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guna-breakdown {
  display: grid;
  gap: 12px;
}

.guna-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
}

.member-photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.member-photo-tile {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 16px 40px rgba(66, 29, 17, 0.08);
}

.member-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .form-layout,
  .auth-shell,
  .dashboard-header,
  .member-hero,
  .member-dashboard-hero,
  .member-dashboard-grid,
  .profile-detail-card,
  .guna-grid {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .upload-grid,
  .filter-grid,
  .process-list,
  .member-filter-grid,
  .member-detail-list,
  .analytics-grid,
  .stacked-actions,
  .guna-score-grid,
  .kundli-inline-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .section-heading,
  .table-meta {
    flex-direction: column;
    align-items: start;
  }

  .hero,
  .page-shell,
  .dashboard-shell,
  .content-shell {
    width: min(100% - 14px, 1440px);
  }

  .hero {
    width: min(100vw - 8px, 1680px);
    border-radius: 0 0 28px 28px;
  }

  .hero-panel,
  .dashboard-header,
  .filters,
  .dashboard-table,
  .login-box,
  .success-card,
  .info-card,
  .modern-form {
    padding: 22px;
  }

  .profile-topline {
    flex-direction: column;
    align-items: start;
  }

  .hero-actions,
  .filter-actions,
  .table-actions,
  .pagination {
    width: 100%;
  }

  .hero-actions > *,
  .filter-actions > *,
  .pagination > * {
    flex: 1;
  }

  .brand {
    justify-content: center;
  }

  .brand-wordmark {
    height: 28px;
  }
}
