/* Nikah Nur UI 2026: visual layer only. Keep markup and behaviour intact. */
:root {
  --ui-ink: #15382d;
  --ui-ink-soft: #496158;
  --ui-muted: #71827a;
  --ui-brand: #0d7255;
  --ui-brand-strong: #07513d;
  --ui-brand-soft: #e8f4ed;
  --ui-gold: #c7993f;
  --ui-gold-soft: #fbf3df;
  --ui-bg: #f4f8f5;
  --ui-surface: #fffefa;
  --ui-surface-soft: #f8fbf8;
  --ui-line: #dce9e0;
  --ui-danger: #b84d4d;
  --ui-shadow-sm: 0 5px 18px rgba(21, 56, 45, .06);
  --ui-shadow-md: 0 18px 42px rgba(21, 56, 45, .10);
  --ui-radius-sm: 12px;
  --ui-radius-md: 18px;
  --ui-radius-lg: 24px;
}

html { background: var(--ui-bg); }
body,
body.site-main,
body.admin-shell {
  background: var(--ui-bg) !important;
  color: var(--ui-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(13, 114, 85, .28); outline-offset: 3px; }

/* Shared controls */
.btn,
button,
input[type="submit"],
input[type="button"] {
  min-height: 44px;
  border: 1px solid transparent !important;
  border-radius: var(--ui-radius-sm) !important;
  padding: 10px 17px !important;
  background: var(--ui-brand) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(7, 81, 61, .14) !important;
  font-weight: 750 !important;
  line-height: 1.25;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease !important;
}
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover { background: var(--ui-brand-strong) !important; transform: translateY(-1px); box-shadow: 0 12px 22px rgba(7, 81, 61, .18) !important; }
.btn:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active { transform: translateY(0); }
.btn:disabled,
button:disabled,
input:disabled { cursor: not-allowed; opacity: .52; transform: none !important; box-shadow: none !important; }
.btn.light,
.btn.secondary,
.btn.alt,
.btn.outline {
  background: var(--ui-surface) !important;
  color: var(--ui-brand-strong) !important;
  border-color: var(--ui-line) !important;
  box-shadow: var(--ui-shadow-sm) !important;
}
.btn.light:hover,
.btn.secondary:hover,
.btn.alt:hover,
.btn.outline:hover { background: var(--ui-brand-soft) !important; border-color: #b7d7c3 !important; }
.btn.gold { background: var(--ui-gold) !important; color: #fff !important; }
.btn.danger,
button.danger { background: #fff2f1 !important; color: var(--ui-danger) !important; border-color: #efcdca !important; box-shadow: none !important; }
.icon-btn,
.admin-nav-toggle { width: 44px; min-width: 44px; padding: 0 !important; display: inline-grid; place-items: center; }

input, select, textarea {
  min-height: 46px;
  border: 1px solid #d4e3d8 !important;
  border-radius: var(--ui-radius-sm) !important;
  padding: 11px 13px !important;
  background: var(--ui-surface) !important;
  color: var(--ui-ink) !important;
  box-shadow: inset 0 1px 1px rgba(21, 56, 45, .02);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
input:hover, select:hover, textarea:hover { border-color: #b9d4c1 !important; }
input:focus, select:focus, textarea:focus { border-color: #62aa88 !important; box-shadow: 0 0 0 4px rgba(13, 114, 85, .11) !important; }
textarea { min-height: 112px; resize: vertical; }
label { color: var(--ui-ink) !important; font-weight: 650; }
input[type="checkbox"], input[type="radio"] { width: 18px !important; min-width: 18px; height: 18px; min-height: 18px; padding: 0 !important; accent-color: var(--ui-brand); box-shadow: none !important; }
input[type="checkbox"] + label, input[type="radio"] + label { display: inline-flex; align-items: center; gap: 9px; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline-offset: 2px; }
form { gap: 16px; }
.form-grid, .filter-grid { gap: 16px !important; }
.filter-actions, .form-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px !important; }

/* Shared surfaces, status and data */
.card, .panel, .admin-card, .search-card, .thread-list, .chat-panel, .guest-row, .guest-item, .user-row, .stat, .kpi, .dc, .v20-card {
  border: 1px solid var(--ui-line) !important;
  border-radius: var(--ui-radius-md) !important;
  background: var(--ui-surface) !important;
  box-shadow: var(--ui-shadow-sm) !important;
}
.card, .panel, .admin-card { padding: 22px !important; }
.card:hover, .panel:hover, .profile:hover, .kpi:hover { border-color: #c4ddd0 !important; }
.muted, .description, .subtitle, .page-subtitle { color: var(--ui-muted) !important; }
.pill, .tag, .chip, .badge, .status, .nav-count, .nav-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 26px; padding: 5px 10px !important; border: 1px solid #cfe5d5 !important;
  border-radius: 999px !important; background: var(--ui-brand-soft) !important; color: var(--ui-brand-strong) !important;
  font-size: 12px !important; font-weight: 750 !important; line-height: 1.1;
}
.error, .alert, .notice, .flash, .ok, .success {
  border-radius: var(--ui-radius-sm) !important; padding: 14px 16px !important; border: 1px solid transparent !important;
}
.ok, .success, .notice, .flash { background: #edf8f0 !important; border-color: #d1e8d5 !important; color: #2a6948 !important; }
.error, .alert { background: #fff1f0 !important; border-color: #efcfcb !important; color: #9f4646 !important; }
table, .table { border-collapse: separate !important; border-spacing: 0; width: 100%; color: var(--ui-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-md); background: var(--ui-surface); }
th { background: var(--ui-surface-soft); color: var(--ui-muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; text-align: left; text-transform: uppercase; }
th, td { padding: 14px 15px !important; border-bottom: 1px solid #e9f0eb; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfdfb; }

/* Public site */
.site-header {
  min-height: 76px !important; height: auto !important; padding: 14px max(18px, calc((100% - 1180px) / 2)) !important;
  background: rgba(255, 254, 250, .88) !important; border-bottom: 1px solid var(--ui-line) !important;
  box-shadow: 0 5px 22px rgba(21, 56, 45, .05) !important; backdrop-filter: blur(18px) !important;
}
.site-header .brand { gap: 11px; color: var(--ui-brand-strong) !important; font-size: 19px; font-weight: 820; }
.site-header .brand-mark { width: 45px !important; height: 45px !important; border-radius: 15px !important; background: linear-gradient(145deg, var(--ui-brand), var(--ui-brand-strong)) !important; color: #f4cf70 !important; box-shadow: 0 8px 18px rgba(7, 81, 61, .20) !important; }
.top-actions { gap: 9px !important; }
.container, .nx-wrap, .wrap, .pmwrap, .qwrap, .dash, .support-wrap { width: min(1180px, 100%) !important; max-width: 1180px !important; margin-inline: auto !important; padding: 32px 24px !important; }
.page-heading, .nx-head, .section-title { gap: 18px; margin: 8px 0 22px !important; }
.page-heading h1, .nx-head h1, .page-title { color: var(--ui-ink) !important; font-size: clamp(30px, 4vw, 50px) !important; font-weight: 820 !important; letter-spacing: -.06em; }
.section-title h2 { color: var(--ui-ink) !important; font-size: 27px !important; font-weight: 820 !important; letter-spacing: -.045em; }
.home-hero { border-radius: 0 0 var(--ui-radius-lg) var(--ui-radius-lg) !important; background: linear-gradient(180deg, #f9fcf8 0, var(--ui-surface) 62%, var(--ui-bg) 100%) !important; }
.home-hero .hero-copy { min-height: 500px !important; padding: 78px 24px 54px !important; }
.home-hero .hero-copy h1 { color: var(--ui-ink) !important; font-size: clamp(46px, 6vw, 78px) !important; font-weight: 830 !important; letter-spacing: -.075em; line-height: .99; }
.home-hero .hero-copy > p { color: var(--ui-ink-soft) !important; font-size: 18px !important; line-height: 1.55; }
.hero-search { min-height: 62px !important; border-radius: var(--ui-radius-md) !important; box-shadow: var(--ui-shadow-md) !important; }
.hero-search-go { border-radius: 14px !important; background: var(--ui-brand-strong) !important; }
.quick-actions { padding: 14px !important; border: 1px solid var(--ui-line) !important; border-radius: var(--ui-radius-lg) !important; background: rgba(255, 254, 250, .88) !important; box-shadow: var(--ui-shadow-md) !important; }
.quick-card { border-radius: var(--ui-radius-md) !important; }
.quick-card:hover { border-color: #c4ddd0 !important; background: var(--ui-surface) !important; box-shadow: var(--ui-shadow-sm) !important; }
.quick-card > span { background: var(--ui-brand-soft) !important; color: var(--ui-brand) !important; }
.home-city-keywords { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ui-line); }
.home-city-keywords > b { display: block; margin-bottom: 10px; color: var(--ui-ink) !important; font-size: 15px; }
.home-city-links { display: flex; flex-wrap: wrap; gap: 8px; }
.home-city-links a { padding: 8px 11px; border: 1px solid #cfe5d5; border-radius: 999px; background: var(--ui-surface-soft); color: var(--ui-brand-strong) !important; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.home-city-links a:hover { border-color: #a9cdb5; background: var(--ui-brand-soft); transform: translateY(-1px); }
.benefits-section > .card { grid-column: 1 / -1; }
.profile-grid { gap: 16px !important; background: transparent !important; border: 0 !important; }
.profile-grid .profile { overflow: hidden; border-radius: var(--ui-radius-md) !important; background: var(--ui-surface) !important; box-shadow: var(--ui-shadow-sm) !important; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.profile-grid .profile:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow-md) !important; }
.profile-grid .profile-media { background: linear-gradient(145deg, #e6f1e8, #c2dac8) !important; }
.profile-grid .profile-body { padding: 15px 16px 17px !important; }
.profile-grid .profile h3 { color: var(--ui-ink) !important; font-size: 18px !important; font-weight: 780 !important; letter-spacing: -.03em; }
.profile-grid .profile p { color: var(--ui-muted) !important; }
.filter-card { background: var(--ui-surface-soft) !important; }
.profile-hero, .profile-cover { border-radius: var(--ui-radius-lg) !important; box-shadow: var(--ui-shadow-md) !important; }
.photo-grid { gap: 14px !important; }
.photo-grid img { border-radius: var(--ui-radius-md) !important; }
.bottom-nav { border: 1px solid #cfe1d5 !important; border-radius: 22px !important; background: rgba(255, 254, 250, .94) !important; box-shadow: var(--ui-shadow-md) !important; backdrop-filter: blur(18px); }
.bottom-nav a { border-radius: 16px !important; color: var(--ui-muted) !important; font-weight: 700 !important; }
.bottom-nav a.active { background: var(--ui-brand-soft) !important; color: var(--ui-brand-strong) !important; }

/* Admin shell and both legacy markup variants */
.admin-shell { background: var(--ui-bg) !important; }
.admin-sidebar {
  width: 276px !important; padding: 22px 16px !important; background: linear-gradient(180deg, #0b4d3b, #073b2d) !important;
  color: #eff8f1 !important; border-right: 1px solid rgba(255,255,255,.08); box-shadow: 14px 0 34px rgba(7, 59, 45, .08);
}
.admin-logo { gap: 12px !important; padding: 6px 9px 24px !important; font-size: 19px !important; letter-spacing: -.03em; }
.admin-logo .brand-mark { width: 42px !important; height: 42px !important; border-radius: 14px !important; background: rgba(255,255,255,.12) !important; color: #f0ce75 !important; }
.admin-logo small { color: #b8d7c2 !important; font-size: 11px !important; }
.admin-nav-group { margin: 20px 9px 8px !important; color: #9fc5ad !important; font-size: 10px !important; font-weight: 800; letter-spacing: .1em; }
.admin-nav a { min-height: 42px; gap: 11px !important; margin: 3px 0 !important; padding: 10px 12px !important; border: 1px solid transparent; border-radius: 12px !important; color: #d8ece0 !important; transition: background .18s ease, color .18s ease, transform .18s ease; }
.admin-nav a:hover { background: rgba(255,255,255,.10) !important; color: #fff !important; transform: translateX(2px); }
.admin-nav a.active { background: #f0f8f1 !important; color: var(--ui-brand-strong) !important; box-shadow: 0 8px 18px rgba(0,0,0,.10); }
.admin-nav a > span:first-child { width: 22px; text-align: center; opacity: .86; }
.admin-nav .nav-count { margin-left: auto; min-width: 24px; background: #e2f1e6 !important; color: var(--ui-brand-strong) !important; border: 0 !important; }
.admin-sidebar > a, .admin-sidebar .btn.light { border-color: rgba(255,255,255,.18) !important; background: rgba(255,255,255,.08) !important; color: #fff !important; box-shadow: none !important; }
.admin-main { min-width: 0; background: var(--ui-bg) !important; }
.admin-topbar, .topbar {
  min-height: 70px !important; height: auto !important; padding: 14px 30px !important; background: rgba(255,254,250,.92) !important;
  border-bottom: 1px solid var(--ui-line) !important; box-shadow: 0 4px 18px rgba(21,56,45,.04) !important; backdrop-filter: blur(14px);
}
.admin-topbar .right { gap: 12px !important; }
.admin-topbar .right > a:not(.btn) { color: var(--ui-muted) !important; font-weight: 650; }
.admin-avatar { border: 1px solid var(--ui-line); background: var(--ui-brand-soft) !important; }
.admin-content, .content { width: min(1480px, 100%) !important; margin-inline: auto !important; padding: 30px !important; }
.admin-title { align-items: center !important; margin-bottom: 24px !important; }
.admin-title h1, .topbar h1 { color: var(--ui-ink) !important; font-size: clamp(28px, 3vw, 40px) !important; font-weight: 830 !important; letter-spacing: -.06em; }
.admin-grid { gap: 18px !important; }
.kpis { gap: 14px !important; grid-template-columns: repeat(6, minmax(150px, 1fr)); }
.kpi { padding: 18px !important; }
.kpi .ico { width: 42px !important; height: 42px !important; border-radius: 13px !important; background: var(--ui-brand-soft) !important; color: var(--ui-brand) !important; }
.kpi strong { color: var(--ui-ink) !important; font-size: 27px !important; letter-spacing: -.04em; }
.quick-grid { gap: 10px !important; }
.quick-grid .quick { min-height: 62px; border: 1px solid var(--ui-line) !important; border-radius: 14px !important; background: var(--ui-surface-soft) !important; color: var(--ui-ink) !important; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.quick-grid .quick:hover { background: var(--ui-brand-soft) !important; border-color: #b9d9c4 !important; transform: translateY(-2px); }
.settings-list a { border-bottom: 1px solid #e8f0eb !important; padding: 14px 0 !important; color: var(--ui-ink-soft) !important; }
.admin-footer { padding: 20px 30px !important; color: var(--ui-muted) !important; }

/* Dialogs, overlays and toasts */
.modal, .dialog, [role="dialog"], .modal-content, .dialog-content, .overlay-panel {
  border: 1px solid var(--ui-line) !important; border-radius: var(--ui-radius-lg) !important; background: var(--ui-surface) !important; box-shadow: 0 26px 80px rgba(21,56,45,.20) !important;
}
.modal-backdrop, .overlay, [data-overlay] { background: rgba(11, 53, 40, .42) !important; backdrop-filter: blur(5px); }
.site-toast, .toast { border: 1px solid var(--ui-line) !important; border-radius: 15px !important; background: var(--ui-surface) !important; box-shadow: var(--ui-shadow-md) !important; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .admin-sidebar { position: fixed !important; z-index: 100; inset: 0 auto 0 0; transform: translateX(-105%); transition: transform .22s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { width: 100%; }
  .admin-nav-toggle { display: inline-grid !important; margin-right: 8px; }
  .admin-content, .content { padding: 22px 18px 88px !important; }
  .admin-topbar, .topbar { padding: 12px 18px !important; }
}
@media (max-width: 700px) {
  .site-header { padding: 11px 14px !important; }
  .site-header .top-actions .btn:not(.light) { display: none; }
  .container, .nx-wrap, .wrap, .pmwrap, .qwrap, .dash, .support-wrap { padding: 24px 15px !important; }
  body.site-main.has-site-global-back { background: var(--ui-bg) !important; color: var(--ui-ink) !important; }
  body.site-main.has-site-global-back .site-header { background: rgba(255, 254, 250, .94) !important; color: var(--ui-ink) !important; }
  body.site-main.has-site-global-back .site-header .brand { color: var(--ui-brand-strong) !important; }
  body.site-main.has-site-global-back .page-heading h1,
  body.site-main.has-site-global-back .page-heading .muted { color: var(--ui-ink) !important; }
  .home-hero .hero-copy { min-height: 0 !important; padding: 54px 18px 42px !important; }
  .home-hero .hero-copy h1 { font-size: clamp(43px, 12vw, 60px) !important; }
  body.site-main .home-hero .hero-copy h1,
  body.site-main .home-hero .hero-copy h1 span,
  body.site-main .home-hero .hero-copy h1 .prayer-city { color: #f1faf4 !important; }
  body.site-main .home-hero .hero-copy h1 em { color: #7bd6a1 !important; }
  .home-hero .hero-copy > p { font-size: 16px !important; }
  body.site-main .home-hero .hero-copy > p { color: #c0d0c8 !important; }
  .quick-actions { width: calc(100% - 20px) !important; margin-inline: 10px !important; grid-template-columns: repeat(2, 1fr) !important; }
  .home-city-links { gap: 6px; }
  .home-city-links a { padding: 7px 9px; font-size: 12px; }
  .benefits-section { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; }
  .benefits-section > .benefit-card { display: none !important; }
  .benefits-section > .card { display: block !important; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .profile-grid .profile h3 { font-size: 15px !important; }
  .card, .panel, .admin-card { padding: 17px !important; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi strong { font-size: 23px !important; }
  .admin-title { align-items: flex-start !important; flex-direction: column; }
  .table-wrap { margin-inline: -2px; }
  th, td { white-space: nowrap; }
}
@media (max-width: 420px) {
  .top-actions { gap: 5px !important; }
  .profile-grid { gap: 8px !important; }
  .profile-grid .profile-body { padding: 11px !important; }
  .kpis { gap: 9px !important; }
  .kpi { padding: 13px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
@media (max-width: 700px) { body.site-main .benefits-section { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; } }
/* NikahSunna visual system: quiet surfaces, clear hierarchy, fewer competing effects. */
:root {
  --nx-bg: #f4f7f4;
  --nx-surface: #fffefa;
  --nx-surface-soft: #f8fbf8;
  --nx-ink: #15372d;
  --nx-ink-soft: #50645a;
  --nx-muted: #718078;
  --nx-line: #dce8df;
  --nx-brand: #11765a;
  --nx-brand-deep: #07503d;
  --nx-brand-soft: #e7f3eb;
  --nx-gold: #c7973f;
  --nx-radius-xl: 30px;
  --nx-radius-lg: 22px;
  --nx-radius-md: 16px;
  --nx-shadow: 0 18px 48px rgba(21, 55, 45, .08);
  --nx-shadow-sm: 0 8px 24px rgba(21, 55, 45, .06);
}

html { background: var(--nx-bg) !important; }
body, body.site-main, body.page, body.seo, body.pm, body.qp, body.qp2 {
  background: var(--nx-bg) !important;
  color: var(--nx-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

body::before { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(17, 118, 90, .24) !important; outline-offset: 3px; }

/* Shell */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 76px !important;
  height: auto !important;
  padding: 14px max(20px, calc((100% - 1180px) / 2)) !important;
  background: rgba(255, 254, 250, .94) !important;
  border-bottom: 1px solid var(--nx-line) !important;
  box-shadow: 0 5px 22px rgba(21, 55, 45, .045) !important;
  backdrop-filter: blur(18px);
}
.site-header .brand { flex: 0 0 auto; gap: 11px !important; color: var(--nx-brand-deep) !important; font-size: 19px !important; font-weight: 800 !important; letter-spacing: -.04em; }
.site-header .brand-mark { width: 44px !important; height: 44px !important; border-radius: 14px !important; box-shadow: none !important; }
.site-header .top-actions { display: flex !important; align-items: center; gap: 8px !important; margin-left: auto; }
.site-header .top-actions .btn { min-height: 42px !important; padding: 9px 14px !important; }
.site-header .top-actions .islam-head { width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 13px !important; font-size: 18px !important; }
.site-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; margin-right: 20px; }
.site-nav a { padding: 9px 12px; border-radius: 11px; color: var(--nx-ink-soft); font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--nx-brand-soft); color: var(--nx-brand-deep); }

.container, .nx-wrap, .wrap, .pmwrap, .qwrap, .dash, .support-wrap {
  width: min(1180px, 100%) !important;
  max-width: 1180px !important;
  padding: 34px 24px !important;
  margin-inline: auto !important;
}
.page-heading, .nx-head { margin: 8px 0 24px !important; }
.page-heading h1, .nx-head h1, .page-title { margin: 0 0 8px !important; color: var(--nx-ink) !important; font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.02 !important; font-weight: 820 !important; letter-spacing: -.065em !important; }
.page-heading p, .page-subtitle, .muted, .nx-muted { color: var(--nx-muted) !important; }

/* One button language everywhere. */
button, .btn, input[type="submit"], input[type="button"] {
  min-height: 44px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  padding: 10px 17px !important;
  background: var(--nx-brand) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 18px rgba(7, 80, 61, .14) !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover { transform: translateY(-1px); background: var(--nx-brand-deep) !important; box-shadow: 0 12px 24px rgba(7, 80, 61, .18) !important; }
button:active, .btn:active { transform: translateY(0); }
.btn.light, .btn.secondary, .btn.alt, .btn.outline { background: var(--nx-surface) !important; color: var(--nx-brand-deep) !important; border-color: var(--nx-line) !important; box-shadow: none !important; }
.btn.light:hover, .btn.secondary:hover, .btn.alt:hover, .btn.outline:hover { background: var(--nx-brand-soft) !important; border-color: #b8d6c1 !important; }
.btn.gold { background: var(--nx-gold) !important; color: #fff !important; }
.danger, .btn.danger { background: #fff2f0 !important; border-color: #efceca !important; color: #aa4c4c !important; box-shadow: none !important; }

input, select, textarea {
  min-height: 46px !important;
  border: 1px solid #d5e3d8 !important;
  border-radius: 13px !important;
  padding: 11px 13px !important;
  background: var(--nx-surface) !important;
  color: var(--nx-ink) !important;
  box-shadow: 0 1px 1px rgba(21, 55, 45, .02) inset !important;
}
input:hover, select:hover, textarea:hover { border-color: #b9d4c1 !important; }
input:focus, select:focus, textarea:focus { border-color: #67ad8d !important; box-shadow: 0 0 0 4px rgba(17, 118, 90, .11) !important; }
textarea { min-height: 116px !important; resize: vertical; }
label { color: var(--nx-ink) !important; font-weight: 680 !important; }

.card, .panel, .profile, .profile-card, .thread-list, .chat-panel, .guest-row, .guest-item, .user-row, .search-card, .nx-card, .support-card, .pay-card, .had-card, .qcard, .pmcard, .cardx, .dc, .stat, .v20-card {
  border: 1px solid var(--nx-line) !important;
  border-radius: var(--nx-radius-lg) !important;
  background: var(--nx-surface) !important;
  box-shadow: var(--nx-shadow-sm) !important;
}
.card, .panel { padding: 22px !important; }
.pill, .tag, .chip, .badge, .status { min-height: 26px; padding: 5px 10px !important; border: 1px solid #d1e6d7 !important; border-radius: 999px !important; background: var(--nx-brand-soft) !important; color: var(--nx-brand-deep) !important; font-size: 11px !important; font-weight: 750 !important; }
.notice, .flash, .alert, .ok, .error { border-radius: 14px !important; padding: 13px 15px !important; }

/* Home: a measured split hero instead of a wall of effects. */
body.site-main .home-hero {
  min-height: 0 !important;
  padding: 0 0 50px !important;
  background: linear-gradient(180deg, #f8fbf8 0, var(--nx-surface) 62%, var(--nx-bg) 100%) !important;
  border-radius: 0 !important;
}
body.site-main .home-hero > .hero-copy {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .82fr) !important;
  grid-template-rows: auto auto auto auto !important;
  column-gap: 62px !important;
  align-content: center !important;
  width: min(1180px, 100%) !important;
  min-height: 520px !important;
  margin: 0 auto !important;
  padding: 70px 24px 54px !important;
}
body.site-main .home-hero > .hero-copy::before { content: ""; position: absolute; z-index: -2; right: 24px; top: 44px; width: 46%; height: calc(100% - 78px); border-radius: 34px; background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.85) 0 10%, transparent 11%), linear-gradient(145deg, #e7f2e9, #c8dfcf); box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 0 20px 50px rgba(21,55,45,.08); }
body.site-main .home-hero > .hero-copy::after { content: ""; position: absolute; z-index: -1; right: 11%; top: 20%; width: 26%; height: 58%; border-radius: 160px 160px 26px 26px; border: 1px solid rgba(17,118,90,.14); background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(17,118,90,.08)); }
body.site-main .hero-copy > * { grid-column: 1 !important; position: relative; z-index: 1; }
body.site-main .hero-kicker { width: fit-content; margin-bottom: 18px !important; padding: 8px 12px !important; border: 1px solid #d5e8da !important; border-radius: 999px !important; background: var(--nx-brand-soft) !important; color: var(--nx-brand-deep) !important; font-size: 12px !important; font-weight: 750 !important; }
body.site-main .hero-copy h1 { max-width: 620px !important; margin: 0 0 18px !important; color: var(--nx-ink) !important; font-size: clamp(48px, 6vw, 78px) !important; line-height: .98 !important; letter-spacing: -.082em !important; font-weight: 830 !important; }
body.site-main .hero-copy h1 span, body.site-main .hero-copy h1 em { display: block; }
body.site-main .hero-copy h1 em { color: var(--nx-brand) !important; font-style: normal; }
body.site-main .hero-copy > p { max-width: 510px !important; margin: 0 0 24px !important; color: var(--nx-ink-soft) !important; font-size: 18px !important; line-height: 1.55 !important; }
body.site-main .hero-search { width: min(550px, 100%) !important; min-height: 62px !important; padding: 7px 9px 7px 17px !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius-md) !important; background: var(--nx-surface) !important; box-shadow: var(--nx-shadow) !important; }
body.site-main .hero-search-go { width: 48px !important; height: 48px !important; border-radius: 13px !important; background: var(--nx-brand-deep) !important; }
body.site-main .hero-copy .hero-quick-grid { width: min(550px, 100%) !important; margin-top: 13px !important; }
body.site-main .hero-copy .hero-quick-grid .quick-card { min-height: 78px !important; padding: 14px 16px !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius-md) !important; background: rgba(255,254,250,.78) !important; box-shadow: none !important; }
body.site-main .hero-copy .hero-quick-grid .quick-card:hover { background: var(--nx-surface) !important; box-shadow: var(--nx-shadow-sm) !important; }
body.site-main .home-hero > .section-title { width: min(1180px, calc(100% - 48px)) !important; margin: 14px auto 16px !important; }
body.site-main .section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
body.site-main .section-title h2 { margin: 0 !important; color: var(--nx-ink) !important; font-size: 27px !important; letter-spacing: -.05em !important; }
body.site-main .section-title a { color: var(--nx-brand-deep) !important; font-size: 13px; font-weight: 750; }

/* Profiles and cards. */
.profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
.profile-grid .profile { overflow: hidden !important; border-radius: var(--nx-radius-lg) !important; box-shadow: var(--nx-shadow-sm) !important; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important; }
.profile-grid .profile:hover { transform: translateY(-3px); border-color: #b9d8c3 !important; box-shadow: 0 18px 38px rgba(21,55,45,.12) !important; }
.profile-grid .profile-media { aspect-ratio: 1 / 1.08 !important; background: linear-gradient(145deg, #e6f0e8, #cadfce) !important; }
.profile-grid .profile img, .profile-grid .profile .avatar { object-fit: cover !important; }
.profile-grid .profile .private-photo-card { background: linear-gradient(145deg, #e6f0e8, #d4e6d8) !important; color: var(--nx-brand-deep) !important; }
.profile-grid .profile .private-photo-card > span { display: none !important; }
.profile-grid .profile .private-photo-card::before { content: "Фото скрыто"; display: block; font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.profile-grid .profile .private-photo-card small { display: none !important; }
.profile-grid .online-dot { top: 12px !important; left: 12px !important; padding: 6px 9px !important; border: 1px solid rgba(255,255,255,.76) !important; border-radius: 999px !important; background: rgba(255,254,250,.9) !important; color: var(--nx-brand-deep) !important; font-size: 10px !important; font-weight: 750 !important; }
.profile-grid .profile-body { display: flex; flex-direction: column; align-items: flex-start; min-height: 148px; padding: 15px 16px 16px !important; }
.profile-grid .profile h3 { margin: 0 0 7px !important; color: var(--nx-ink) !important; font-size: 18px !important; font-weight: 800 !important; letter-spacing: -.04em !important; }
.profile-grid .profile p { margin: 0 0 7px !important; color: var(--nx-muted) !important; font-size: 12px !important; }
.profile-grid .profile .profile-goal { margin-top: auto !important; color: var(--nx-ink-soft) !important; font-size: 13px !important; font-weight: 680; }
.profile-grid .mini-status { margin-top: 10px !important; padding: 5px 9px !important; border-radius: 999px !important; background: var(--nx-brand-soft) !important; color: var(--nx-brand-deep) !important; font-size: 10px !important; font-weight: 750 !important; }

/* Search filters. */
.search-page .filter-card { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 16px 14px !important; padding: 21px !important; }
.search-page .filter-card label { display: grid; gap: 7px; margin: 0 !important; font-size: 12px !important; }
.search-page .filter-card .filter-actions, .search-page .filter-card > .filter-actions { grid-column: 1 / -1; padding-top: 2px; }
.search-page .profile-grid { margin-top: 26px !important; }

/* Trust, SEO and footer blocks. */
.benefits-section { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; width: min(1180px, calc(100% - 48px)) !important; margin: 38px auto !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.benefit-card { min-height: 184px; padding: 21px !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius-lg) !important; background: var(--nx-surface) !important; box-shadow: var(--nx-shadow-sm) !important; }
.benefit-card .benefit-icon { color: var(--nx-brand) !important; font-size: 25px !important; }
.benefit-card h3 { margin: 14px 0 8px !important; color: var(--nx-ink) !important; font-size: 17px !important; letter-spacing: -.035em; }
.benefit-card p { margin: 0 !important; color: var(--nx-muted) !important; font-size: 13px !important; }
.benefits-section > .card { grid-column: 1 / -1; margin: 0 !important; }
.home-cta { width: min(1180px, calc(100% - 48px)) !important; margin: 38px auto !important; padding: 24px 28px !important; border: 1px solid #d4e4d8 !important; border-radius: var(--nx-radius-xl) !important; background: linear-gradient(110deg, #e5f1e8, #fffefa) !important; box-shadow: none !important; }
.home-cta h2 { color: var(--nx-ink) !important; font-size: 25px !important; letter-spacing: -.05em; }
.nx-quote { width: min(900px, calc(100% - 48px)) !important; margin: 46px auto !important; padding: 25px 30px !important; border: 1px solid #e1d0a5 !important; border-radius: var(--nx-radius-lg) !important; background: #fffbef !important; color: var(--nx-ink) !important; box-shadow: none !important; }
.islam-grid { width: min(1180px, calc(100% - 48px)) !important; margin: 0 auto 44px !important; padding: 14px !important; border: 1px solid var(--nx-line) !important; border-radius: var(--nx-radius-xl) !important; background: var(--nx-surface-soft) !important; }
.islam-tile { box-shadow: none !important; }
.site-footer { padding: 34px 24px 110px !important; background: var(--nx-brand-deep) !important; color: #d9ebe0 !important; }
.pwa-smart-banner { left: 16px !important; right: 16px !important; bottom: 16px !important; width: auto !important; border: 1px solid var(--nx-line) !important; border-radius: 16px !important; box-shadow: 0 18px 42px rgba(21,55,45,.16) !important; }

/* Auth, registration and profile surfaces share the same rhythm. */
.auth { min-height: calc(100vh - 76px); padding: 42px 20px !important; background: radial-gradient(circle at 15% 0, #e5f1e7, transparent 35%), var(--nx-bg) !important; }
.auth .card, .reg-card { border-radius: var(--nx-radius-xl) !important; box-shadow: var(--nx-shadow) !important; }
.reg-wrap { max-width: 920px !important; padding: 28px 20px !important; }
.reg-card { padding: clamp(22px, 4vw, 42px) !important; }
.reg-head { gap: 18px !important; margin-bottom: 28px !important; }
.reg-head h1 { color: var(--nx-ink) !important; font-size: clamp(30px, 4vw, 46px) !important; letter-spacing: -.065em !important; }
.reg-steps { gap: 8px !important; padding: 5px !important; border: 1px solid var(--nx-line); border-radius: 15px; background: var(--nx-surface-soft); }
.reg-step { border-radius: 10px !important; color: var(--nx-muted) !important; font-size: 12px !important; font-weight: 750; }
.reg-step.active { background: var(--nx-brand) !important; color: #fff !important; }
.reg-grid { gap: 16px !important; }
.reg-help { margin-top: 16px !important; color: var(--nx-muted) !important; font-size: 12px !important; }
.reg-actions { gap: 10px !important; padding-top: 24px !important; border-top: 1px solid var(--nx-line); }

@media (max-width: 980px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .search-page .filter-card { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.site-main .home-hero > .hero-copy { column-gap: 30px !important; }
}
@media (max-width: 760px) {
  .site-header { padding: 12px 16px !important; }
  .site-nav { display: none !important; }
  .site-header .top-actions .btn:not(.islam-head) { display: none !important; }
  .container, .nx-wrap, .wrap, .pmwrap, .qwrap, .dash, .support-wrap { padding: 24px 16px 96px !important; }
  body.site-main .home-hero > .hero-copy { display: block !important; min-height: 0 !important; padding: 50px 16px 28px !important; }
  body.site-main .home-hero > .hero-copy::before { right: 16px; top: 18px; width: 70%; height: 250px; opacity: .72; }
  body.site-main .home-hero > .hero-copy::after { right: 20%; top: 66px; width: 38%; height: 170px; }
  body.site-main .hero-copy h1 { font-size: clamp(44px, 14vw, 64px) !important; }
  body.site-main .hero-copy > p { max-width: 440px !important; font-size: 16px !important; }
  body.site-main .home-hero > .section-title, .benefits-section, .home-cta, .nx-quote, .islam-grid { width: calc(100% - 32px) !important; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .profile-grid .profile-media { aspect-ratio: 1 / 1.12 !important; }
  .profile-grid .profile-body { min-height: 132px; padding: 13px !important; }
  .profile-grid .profile h3 { font-size: 16px !important; }
  .benefits-section { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .benefit-card { min-height: 170px; padding: 16px !important; }
  .benefit-card h3 { font-size: 15px !important; }
  .search-page .filter-card { grid-template-columns: 1fr 1fr !important; padding: 16px !important; }
  .search-page .filter-card .filter-actions, .search-page .filter-card > .filter-actions { grid-column: 1 / -1; }
  .bottom-nav { display: grid !important; position: fixed !important; left: 12px !important; right: 12px !important; bottom: 12px !important; z-index: 1000 !important; grid-template-columns: repeat(5, 1fr); padding: 7px !important; border: 1px solid var(--nx-line) !important; border-radius: 18px !important; background: rgba(255,254,250,.96) !important; box-shadow: 0 16px 36px rgba(21,55,45,.16) !important; backdrop-filter: blur(16px); }
  .bottom-nav a { display: grid !important; justify-items: center; gap: 2px; padding: 6px 2px !important; border-radius: 12px !important; color: var(--nx-muted) !important; font-size: 10px !important; font-weight: 700; }
  .bottom-nav a span { font-size: 18px !important; line-height: 1; }
  .bottom-nav a.active { background: var(--nx-brand-soft) !important; color: var(--nx-brand-deep) !important; }
  .pwa-smart-banner { bottom: 86px !important; left: 10px !important; right: 10px !important; }
  .reg-grid { grid-template-columns: 1fr !important; }
  .reg-head { display: block !important; }
  .reg-head > strong { display: block; margin-top: 12px; }
}
@media (max-width: 430px) {
  .benefits-section { grid-template-columns: 1fr !important; }
  .profile-grid .profile-media { aspect-ratio: 1 / 1.06 !important; }
  .profile-grid .profile-body { min-height: 126px; }
  .search-page .filter-card { grid-template-columns: 1fr !important; }
}


/* Profile privacy and live presence polish. */
.private-photo-card {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 8px !important;
  min-height: 100%;
  text-align: center !important;
}
.private-photo-card > span,
.private-photo-card > small {
  display: none !important;
}
.private-photo-card::before {
  content: "🔒" !important;
  display: block !important;
  font-size: 38px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 5px 9px rgba(17, 74, 48, .16));
}
.private-photo-card::after {
  content: "Фото закрыто" !important;
  display: block !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
}
.online-dot.is-online {
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 28px;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #f5fff7, #dff8e7) !important;
  color: #176b42 !important;
  box-shadow: 0 7px 16px rgba(24, 103, 64, .16) !important;
  font-size: 0 !important;
  white-space: nowrap;
  animation: nxOnlineBadgePulse 2.4s ease-in-out infinite;
}
.online-dot.is-online::before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #2fc47a;
  box-shadow: 0 0 0 0 rgba(47, 196, 122, .58);
  animation: nxOnlineDotPulse 1.7s ease-out infinite;
}
.online-dot.is-online::after {
  content: "В сети" !important;
  display: block !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
}
@keyframes nxOnlineDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 196, 122, .58); }
  45% { transform: scale(1.18); box-shadow: 0 0 0 6px rgba(47, 196, 122, 0); }
  70% { transform: scale(1); box-shadow: 0 0 0 0 rgba(47, 196, 122, 0); }
}
@keyframes nxOnlineBadgePulse {
  0%, 100% { box-shadow: 0 7px 16px rgba(24, 103, 64, .16); }
  50% { box-shadow: 0 9px 23px rgba(47, 196, 122, .28); }
}
@media (prefers-reduced-motion: reduce) {
  .online-dot.is-online,
  .online-dot.is-online::before { animation: none !important; }
}
