/* ==========================================================================
   NUR NIKOH — Исламский портал знакомств
   Дизайн-система (исламский стиль: изумруд, золото, орнаменты, арки)
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --emerald:        #0B5D3B;
  --emerald-2:      #0E7A4C;
  --emerald-dark:   #073D27;
  --emerald-deep:   #0A2E22;
  --teal:           #0E3B36;
  --gold:           #C9A227;
  --gold-2:         #E3C567;
  --gold-soft:      #F0DFA8;
  --cream:          #FAF6EE;
  --sand:           #EFE6D3;
  --sand-2:         #E4D8BE;
  --ink:            #1E2A24;
  --muted:          #5C6B63;
  --line:           #E2D9C4;
  --white:          #ffffff;
  --danger:         #B23A2E;

  --radius:         18px;
  --radius-sm:      12px;
  --shadow:         0 18px 40px -18px rgba(10, 46, 34, .35);
  --shadow-soft:    0 10px 30px -16px rgba(10, 46, 34, .28);
  --maxw:           1200px;

  --font-head: "Playfair Display", "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- Контейнер ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--emerald-deep); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--muted); }
.arabic { font-family: var(--font-arabic); direction: rtl; }

/* ---------- Орнаментальный разделитель ---------- */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 14px auto 0; max-width: 320px;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament .star {
  width: 16px; height: 16px; background: var(--gold);
  clip-path: polygon(50% 0, 61% 35%, 100% 35%, 68% 57%, 79% 100%, 50% 74%, 21% 100%, 32% 57%, 0 35%, 39% 35%);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: all .25s ease; white-space: nowrap; letter-spacing: .2px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #3a2c00; box-shadow: 0 10px 24px -12px rgba(201,162,39,.9);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(201,162,39,1); }
.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-2), var(--emerald));
  color: #fff; box-shadow: 0 10px 24px -12px rgba(11,93,59,.9);
}
.btn-emerald:hover { transform: translateY(-2px); }
.btn-ghost {
  border: 1.6px solid rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { border: 1.6px solid var(--emerald); color: var(--emerald); }
.btn-outline:hover { background: var(--emerald); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Верхняя полоса ---------- */
.topbar {
  background: var(--emerald-deep); color: #cfe3d7; font-size: .82rem;
  padding: 7px 0; letter-spacing: .2px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar .bismillah { font-family: var(--font-arabic); font-size: 1rem; color: var(--gold-soft); }
.topbar a { color: #cfe3d7; }
.topbar a:hover { color: var(--gold-2); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 6px 16px -8px rgba(10,46,34,.6); }
.brand .b-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .b-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--emerald-deep); letter-spacing: .5px; }
.brand .b-sub { font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 7px 13px; border-radius: 999px; font-weight: 500; font-size: .92rem;
  color: var(--emerald-deep); transition: all .2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(11,93,59,.08); color: var(--emerald); font-weight: 600; }

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

/* ---------- Переключатель языка ---------- */
.lang-switch { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.lang-switch button, .lang-switch a {
  padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: .82rem;
  color: var(--muted); transition: all .2s; letter-spacing: .3px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.lang-switch button.active, .lang-switch a.active { background: var(--emerald); color: #fff; box-shadow: 0 6px 14px -8px rgba(11,93,59,.9); }
.lang-switch a:hover:not(.active) { color: var(--emerald); background: rgba(11,93,59,.08); }

.burger { display: none; font-size: 1.6rem; color: var(--emerald-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,61,39,.82), rgba(10,46,34,.94)),
    url("../assets/hero-mosque.png") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1.1'%3E%3Cpath d='M60 6l14 26 30 4-22 21 6 30-28-15-28 15 6-30L16 36l30-4z'/%3E%3Ccircle cx='60' cy='60' r='46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px;
}
.hero .container { position: relative; z-index: 2; padding: 84px 22px 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: rgba(227,197,103,.16); border: 1px solid rgba(227,197,103,.5);
  color: var(--gold-2); font-size: .84rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-2); font-style: italic; }
.hero-lead { color: #d7e6dd; font-size: 1.12rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-size: 1.9rem; color: var(--gold-2); font-weight: 700; }
.hero-stats .lbl { font-size: .84rem; color: #bcd3c6; }

/* Карточка-форма в hero */
.hero-card {
  background: rgba(250,246,238,.97); border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold); position: relative;
}
.hero-card::before {
  content: ""; position: absolute; top: -5px; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- Формы ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--emerald-deep); margin-bottom: 6px; }
.field .req { color: var(--gold); }
.control {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: all .2s;
}
.control:focus { outline: none; border-color: var(--emerald-2); box-shadow: 0 0 0 4px rgba(14,122,76,.12); }
select.control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B5D3B' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Телефон с кодом страны (+998) */
.phone-input { display: flex; align-items: stretch; }
.phone-input .cc {
  display: flex; align-items: center; gap: 7px; padding: 0 13px;
  border: 1.5px solid var(--line); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: linear-gradient(135deg, rgba(11,93,59,.06), rgba(201,162,39,.1));
  font-weight: 700; color: var(--emerald-deep); white-space: nowrap; font-size: .95rem;
}
.phone-input .cc .flag { font-size: 1.05rem; }
.phone-input .control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; letter-spacing: .5px;
}
.phone-input.is-invalid .cc,
.phone-input.is-invalid .control { border-color: #c0392b; }
.phone-input.is-valid .control { border-color: var(--emerald-2); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.field .error-text { font-size: .78rem; color: #c0392b; margin-top: 5px; display: none; }
.field.has-error .error-text { display: block; }
.field.has-error .control,
.field.has-error .phone-input .control { border-color: #c0392b; }
.field .error { font-size: .78rem; color: #c0392b; margin-top: 5px; }

/* ---------- Уведомления форм ---------- */
.alert { border-radius: 12px; padding: 12px 16px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.alert-ok { background: rgba(14,122,76,.12); color: var(--emerald-2); border: 1px solid rgba(14,122,76,.28); }
.alert-err { background: rgba(178,58,46,.1); color: var(--danger); border: 1px solid rgba(178,58,46,.28); }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }

/* ---------- Секции ---------- */
.section { padding: 78px 0; }
.section-sand { background: var(--sand); }
.section-cream { background: var(--cream); }
.section-emerald { background: linear-gradient(160deg, var(--emerald-deep), var(--teal)); color: #fff; }
.section-emerald h2, .section-emerald h3 { color: #fff; }
.section-emerald p { color: #c9dcd2; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}

/* ---------- Карточки-фичи ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }

.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .3s; position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--emerald), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ico {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11,93,59,.1), rgba(201,162,39,.14));
  color: var(--emerald); font-size: 1.6rem; margin-bottom: 16px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.feature h3 { margin-bottom: 8px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { text-align: center; position: relative; }
.step .num {
  width: 66px; height: 66px; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--emerald-deep);
  background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 50%;
}
.step h3 { margin-bottom: 8px; }

/* ---------- Этика / ценности ---------- */
.value-list { display: grid; gap: 16px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .vi-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(201,162,39,.16); color: var(--gold-2); font-size: 1.3rem;
}
.value-item h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-bottom: 3px; }
.value-item p { font-size: .95rem; }

/* ---------- Отзывы ---------- */
.testimonial {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative;
}
.testimonial .quote { font-size: 2.6rem; color: var(--gold); font-family: var(--font-head); line-height: .6; }
.testimonial p { color: var(--ink); font-style: italic; margin: 12px 0 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who .av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-2)); color: #fff; font-weight: 700;
}
.testimonial .who .nm { font-weight: 700; color: var(--emerald-deep); font-size: .95rem; }
.testimonial .who .ct { font-size: .82rem; color: var(--muted); }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--emerald), var(--emerald-2));
  border-radius: var(--radius); padding: 48px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1'%3E%3Cpath d='M40 4l9 18 20 3-15 14 4 20-18-10-18 10 4-20-15-14 20-3z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #d7e6dd; position: relative; max-width: 560px; margin: 12px auto 26px; }
.cta-band .btn { position: relative; }

/* ---------- Футер ---------- */
.site-footer { background: var(--emerald-deep); color: #b9cec3; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 16px; letter-spacing: .4px; }
.site-footer a { color: #b9cec3; font-size: .93rem; display: block; padding: 5px 0; transition: color .2s; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer .f-brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-footer .f-brand .b-name { color: #fff; font-family: var(--font-head); font-size: 1.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ==========================================================================
   Страница ПОИСКА / КАТАЛОГА
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--emerald-deep), var(--teal));
  color: #fff; padding: 54px 0; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1'%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Cpath d='M50 6l11 22 25 3-18 17 5 25-23-12-23 12 5-25-18-17 25-3z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #c9dcd2; max-width: 640px; }
.crumbs { font-size: .85rem; color: #9db8ab; margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-2); }

.catalog { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }

/* Сайдбар фильтров */
.filters {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: sticky; top: 90px; box-shadow: var(--shadow-soft);
}
.filters h3 { font-size: 1.15rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.filters .f-note { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.filter-group { border-top: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group > label { font-size: .86rem; font-weight: 700; color: var(--emerald-deep); display: block; margin-bottom: 10px; }
.chk { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .92rem; color: var(--ink); cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--emerald); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row .control { padding: 9px 10px; }
.range-row span { color: var(--muted); }
.filters .btn { margin-top: 8px; }
.filters .reset { text-align: center; margin-top: 10px; font-size: .85rem; }
.filters .reset a { color: var(--muted); text-decoration: underline; }

/* Верхняя панель каталога */
.catalog-top {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.catalog-top .count { font-size: .95rem; color: var(--muted); }
.catalog-top .count b { color: var(--emerald-deep); }
.catalog-top .sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.catalog-top .sort .control { padding: 8px 34px 8px 12px; width: auto; }
.filter-toggle { display: none; }

/* Карточки анкет */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.profile-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.profile-card .pc-photo {
  height: 240px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--emerald), var(--teal)); display: grid; place-items: center;
}
.profile-card .pc-photo .avatar {
  width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250,246,238,.16); border: 2px solid rgba(227,197,103,.6);
  color: var(--gold-2); font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
}
.profile-card .pc-photo .pattern {
  position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1'%3E%3Cpath d='M35 3l8 16 18 3-13 12 3 18-16-9-16 9 3-18-13-12 18-3z'/%3E%3C/g%3E%3C/svg%3E");
}
.pc-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(7,61,39,.85); color: var(--gold-2); font-size: .74rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; backdrop-filter: blur(4px);
}
.pc-badge.right { left: auto; right: 12px; background: rgba(201,162,39,.92); color: #3a2c00; }
.pc-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.pc-body .nm { font-family: var(--font-head); font-size: 1.2rem; color: var(--emerald-deep); display: flex; align-items: center; gap: 7px; }
.pc-body .meta { font-size: .85rem; color: var(--muted); margin: 3px 0 12px; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.tag {
  font-size: .76rem; padding: 4px 11px; border-radius: 999px;
  background: rgba(11,93,59,.09); color: var(--emerald); font-weight: 600;
}
.tag.gold { background: rgba(201,162,39,.16); color: #8a6d0b; }
.pc-body .btn { margin-top: auto; }
.pc-verified { color: var(--emerald-2); font-size: .95rem; }

/* Пагинация */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--emerald-deep); font-weight: 600;
}
.pagination a.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.pagination a:hover:not(.active) { border-color: var(--emerald); }

/* ==========================================================================
   РЕГИСТРАЦИЯ / ВХОД
   ========================================================================== */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 150px); }
.auth-side {
  background: linear-gradient(160deg, var(--emerald-deep), var(--teal)); color: #fff;
  padding: 60px 54px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.auth-side::after {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1'%3E%3Cpath d='M55 5l12 24 27 4-20 19 5 27-24-13-24 13 5-27-20-19 27-4z'/%3E%3Ccircle cx='55' cy='55' r='44'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-side > * { position: relative; z-index: 2; }
.auth-side h2 { color: #fff; margin-bottom: 14px; }
.auth-side p { color: #c9dcd2; margin-bottom: 24px; }
.auth-side .value-item { margin-bottom: 6px; }
.auth-main { padding: 54px 54px; background: var(--cream); display: flex; align-items: center; }
.auth-form { width: 100%; max-width: 520px; margin: 0 auto; }
.auth-form h2 { margin-bottom: 6px; }
.auth-form .lead { margin-bottom: 26px; }
.form-section-title {
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px;
}
.form-section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 18px 0; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--emerald); }
.check-row a { color: var(--emerald); text-decoration: underline; }
.auth-alt { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.auth-alt a { color: var(--emerald); font-weight: 700; }
.auth-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
.auth-forgot { color: var(--emerald); font-size: .9rem; font-weight: 600; }
.auth-forgot:hover { color: var(--gold-2); }

/* ==========================================================================
   ПРОФИЛЬ
   ========================================================================== */
.profile-layout { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
.profile-aside { position: sticky; top: 90px; }
.profile-photo {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(160deg, var(--emerald), var(--teal)); height: 380px; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.profile-photo .avatar {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(250,246,238,.16); border: 3px solid rgba(227,197,103,.6);
  color: var(--gold-2); font-family: var(--font-head); font-size: 3.4rem; font-weight: 700;
}
.profile-photo .pattern { position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23E3C567' stroke-width='1'%3E%3Cpath d='M40 4l9 18 20 3-15 14 4 20-18-10-18 10 4-20-15-14 20-3z'/%3E%3C/g%3E%3C/svg%3E"); }
.profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; width: 100%; }
.profile-actions .btn { width: 100%; justify-content: center; text-align: center; }
.profile-actions-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.profile-actions-subgrid .btn { padding: 9px 8px; font-size: .82rem; justify-content: center; text-align: center; white-space: nowrap; }
.aside-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px;
  background: linear-gradient(135deg, rgba(11,93,59,.06), rgba(201,162,39,.1));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
}
.aside-note .an-ico { font-size: 1.3rem; }
.aside-note strong { color: var(--emerald-deep); display: block; margin-bottom: 4px; }
.aside-note p { font-size: .86rem; color: var(--muted); margin: 0; }

.profile-main-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 24px;
}
.profile-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-name h1 { font-size: 2rem; }
.profile-loc { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.info-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.info-item .k { color: var(--muted); font-size: .92rem; }
.info-item .v { font-weight: 600; color: var(--emerald-deep); font-size: .95rem; text-align: right; }
.block-title { font-family: var(--font-head); font-size: 1.35rem; color: var(--emerald-deep); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.block-title .star { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 61% 35%, 100% 35%, 68% 57%, 79% 100%, 50% 74%, 21% 100%, 32% 57%, 0 35%, 39% 35%); }
.about-text p { margin-bottom: 14px; }

/* ==========================================================================
   О ПЛАТФОРМЕ
   ========================================================================== */
.about-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.value-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.value-card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(11,93,59,.1), rgba(201,162,39,.16)); color: var(--emerald); font-size: 1.5rem; margin-bottom: 14px; }
.value-card h3 { margin-bottom: 8px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 700; color: var(--emerald-deep); display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 14px; }
.faq-q .chev { transition: transform .3s; color: var(--gold); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 22px 20px; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Мобильное меню ---------- */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 100; background: var(--emerald-deep); color: #fff;
  padding: 30px; flex-direction: column; gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #fff; font-size: 1.2rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav .close { align-self: flex-end; font-size: 2rem; color: var(--gold-2); margin-bottom: 20px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .profiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  #pwaInstallHeader span:last-child { display: none; }
  .main-nav a { padding: 6px 8px; font-size: .86rem; }
}
@media (max-width: 992px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .grid-3, .steps, .grid-2, .value-cards { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero .container { padding: 56px 22px 66px; }
  .cta-band { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-main { padding: 40px 22px; }
  .topbar .bismillah { display: none; }
}
@media (max-width: 520px) {
  .profiles { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .row-3 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .header-actions .btn { display: none; }
}
/* ==========================================================================
   НУР НИКОҲ — РАСШИРЕНИЕ: ЧАТ / ЛАЙКИ / МАТЧИ / ВАЛИ / МОДЕРАЦИЯ
   ========================================================================== */

/* ---------- Вкладки кабинета ---------- */
.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--white); border: 1.5px solid var(--line); color: var(--emerald-deep);
  transition: all .2s ease;
}
.dash-tab:hover { border-color: var(--emerald-2); }
.dash-tab.active { background: var(--emerald); color: #fff; border-color: var(--emerald); box-shadow: 0 10px 22px -12px rgba(11,93,59,.9); }
.dash-tab .cnt {
  background: var(--gold); color: #3a2c00; font-size: .72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px;
}
.dash-tab.active .cnt { background: var(--gold-2); }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Чат ---------- */
.chat-app {
  display: grid; grid-template-columns: 330px 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft); min-height: 620px;
}
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: #fdfbf6; }
.chat-list-head { padding: 16px; border-bottom: 1px solid var(--line); }
.chat-list-head .control { padding: 10px 14px; }
.chat-items { overflow-y: auto; flex: 1; max-height: 560px; }
.chat-item {
  display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line);
  transition: background .2s; position: relative;
}
.chat-item:hover { background: rgba(11,93,59,.04); }
.chat-item.active { background: linear-gradient(135deg, rgba(11,93,59,.08), rgba(201,162,39,.1)); }
.chat-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--emerald); }
.chat-item .av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2);
  font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; position: relative;
}
.chat-item .av .dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #3fbf6a; border: 2px solid #fdfbf6; }
.chat-item .ci-main { flex: 1; min-width: 0; }
.chat-item .ci-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.chat-item .ci-name { font-weight: 700; color: var(--emerald-deep); font-size: .96rem; }
.chat-item .ci-time { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.chat-item .ci-last { font-size: .84rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-item .ci-unread { background: var(--gold); color: #3a2c00; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; margin-top: 4px; }

.chat-window { display: flex; flex-direction: column; background: var(--white); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; }
.chat-head .ch-name { font-weight: 700; color: var(--emerald-deep); }
.chat-head .ch-status { font-size: .78rem; color: #3fbf6a; }
.chat-head .ch-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.wali-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  background: rgba(201,162,39,.16); color: #8a6d0b; padding: 4px 11px; border-radius: 999px;
}
.chat-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; max-height: 420px; background: linear-gradient(180deg, #fdfbf6, #fff); }
.chat-day { text-align: center; font-size: .74rem; color: var(--muted); margin: 4px 0; }
.chat-day span { background: var(--sand); padding: 3px 12px; border-radius: 999px; }
.bubble { max-width: 74%; padding: 11px 16px; border-radius: 16px; font-size: .93rem; line-height: 1.5; position: relative; }
.bubble.in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.bubble.out { align-self: flex-end; background: linear-gradient(135deg, var(--emerald), var(--emerald-2)); color: #fff; border-bottom-right-radius: 4px; }
.bubble .bt { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; text-align: right; }
.bubble.wali-note { align-self: center; background: rgba(201,162,39,.14); color: #8a6d0b; font-size: .8rem; border-radius: 999px; padding: 7px 16px; border: none; }
.chat-quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px 0; }
.chat-quick button { font-size: .8rem; background: var(--sand); color: var(--emerald-deep); padding: 7px 13px; border-radius: 999px; transition: all .2s; }
.chat-quick button:hover { background: var(--gold-soft); }
.chat-input { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-input .control { flex: 1; border-radius: 14px; resize: none; }
.chat-input .btn { padding: 12px 20px; }
.chat-empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--muted); }
.chat-empty .ico { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Лайки / матчи ---------- */
.sub-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.sub-tab { padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--white); border: 1.5px solid var(--line); color: var(--emerald-deep); }
.sub-tab.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.profile-card .pc-actions { display: flex; gap: 8px; margin-top: auto; }
.profile-card .pc-actions .btn { flex: 1; }
.like-btn.liked { background: linear-gradient(135deg, #e0555a, #c0392b); color: #fff; }
.match-ribbon {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #3a2c00;
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; z-index: 3;
  box-shadow: 0 6px 14px -6px rgba(201,162,39,.9);
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { font-size: 3.4rem; margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 8px; }

/* ==========================================================================
   ВАЛИ / МАХРАМ
   ========================================================================== */
.wali-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; }
.wali-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.wali-card h3 { margin-bottom: 6px; }
.wali-card .wc-sub { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.wali-status { display: flex; gap: 16px; align-items: center; }
.wali-status .ws-ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; flex-shrink: 0; background: linear-gradient(135deg, rgba(11,93,59,.1), rgba(201,162,39,.16)); }
.wali-status .ws-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--emerald-deep); }
.wali-status .ws-rel { font-size: .85rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pill.ok { background: rgba(14,122,76,.14); color: var(--emerald-2); }
.pill.wait { background: rgba(201,162,39,.18); color: #8a6d0b; }
.pill.bad { background: rgba(178,58,46,.14); color: var(--danger); }
.pill.info { background: rgba(11,93,59,.1); color: var(--emerald); }
.perm-list { display: grid; gap: 12px; }
.perm-item { display: flex; gap: 13px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fdfbf6; }
.perm-item .pi-ico { font-size: 1.15rem; }
.perm-item .pi-txt { flex: 1; }
.perm-item strong { color: var(--emerald-deep); display: block; font-size: .95rem; }
.perm-item p { font-size: .84rem; margin: 2px 0 0; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--sand-2); border-radius: 999px; transition: .25s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.switch input:checked + .slider { background: var(--emerald-2); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.req-item { display: flex; gap: 13px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; flex-wrap: wrap; }
.req-item .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; flex-shrink: 0; }
.req-item .ri-main { flex: 1; min-width: 140px; }
.req-item .ri-name { font-weight: 700; color: var(--emerald-deep); font-size: .95rem; }
.req-item .ri-sub { font-size: .8rem; color: var(--muted); }
.req-item .ri-actions { display: flex; gap: 8px; }
.ayah-box { background: linear-gradient(160deg, var(--emerald-deep), var(--teal)); color: #fff; border-radius: var(--radius); padding: 26px; text-align: center; }
.ayah-box .ar { font-family: var(--font-arabic); font-size: 1.5rem; color: var(--gold-2); margin-bottom: 10px; direction: rtl; }
.ayah-box p { color: #c9dcd2; font-style: italic; }
.ayah-box .ref { font-size: .8rem; color: var(--gold-soft); margin-top: 8px; }

/* ==========================================================================
   МОДЕРАЦИЯ
   ========================================================================== */
.mod-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.mod-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; }
.mod-stat .ms-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, rgba(11,93,59,.1), rgba(201,162,39,.16)); flex-shrink: 0; }
.mod-stat .ms-num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--emerald-deep); line-height: 1; }
.mod-stat .ms-lbl { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.mod-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mod-table { width: 100%; border-collapse: collapse; }
.mod-table th { text-align: left; font-size: .76rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 15px 18px; background: #fdfbf6; border-bottom: 1px solid var(--line); font-weight: 700; }
.mod-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.mod-table tr:last-child td { border-bottom: none; }
.mod-table tr:hover td { background: rgba(11,93,59,.03); }
.mod-user { display: flex; gap: 11px; align-items: center; }
.mod-user .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; flex-shrink: 0; font-size: .95rem; }
.mod-user .mu-name { font-weight: 700; color: var(--emerald-deep); font-size: .92rem; }
.mod-user .mu-sub { font-size: .78rem; color: var(--muted); }
.mod-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.btn-xs { padding: 7px 13px; font-size: .8rem; border-radius: 8px; }
.btn-ok { background: rgba(14,122,76,.12); color: var(--emerald-2); }
.btn-ok:hover { background: var(--emerald-2); color: #fff; }
.btn-bad { background: rgba(178,58,46,.12); color: var(--danger); }
.btn-bad:hover { background: var(--danger); color: #fff; }
.btn-warn { background: rgba(201,162,39,.18); color: #8a6d0b; }
.btn-warn:hover { background: var(--gold); color: #3a2c00; }
.rules-list { display: grid; gap: 12px; }
.rule-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.rule-item .rn { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #3a2c00; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.rule-item p { margin: 0; color: var(--ink); font-size: .93rem; }

/* ---------- Модалка жалобы ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10,46,34,.55); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .25s ease; }
.modal { background: var(--cream); border-radius: var(--radius); max-width: 520px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.3rem; }
.modal-head .x { font-size: 1.6rem; color: var(--muted); line-height: 1; }
.modal-body { padding: 24px 26px; }
.modal-foot { padding: 0 26px 26px; }
.reason-list { display: grid; gap: 9px; margin: 6px 0 16px; }
.reason-opt { display: flex; gap: 11px; align-items: center; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--white); font-size: .92rem; transition: all .2s; }
.reason-opt:hover { border-color: var(--emerald-2); }
.reason-opt input { accent-color: var(--emerald); width: 18px; height: 18px; }
.reason-opt.selected { border-color: var(--emerald); background: rgba(11,93,59,.05); }
.report-success { text-align: center; padding: 30px 10px; display: none; }
.report-success .ico { font-size: 3rem; margin-bottom: 12px; }
.report-success.show { display: block; }

/* ---------- Бейдж «телефон тасдиқланган» ---------- */
.phone-verified { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: var(--emerald-2); background: rgba(14,122,76,.12); padding: 4px 11px; border-radius: 999px; }

/* ---------- Адаптив для новых блоков ---------- */
@media (max-width: 1024px) {
  .wali-layout { grid-template-columns: 1fr; }
  .mod-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .chat-app { grid-template-columns: 1fr; }
  .chat-list { border-right: none; border-bottom: 1px solid var(--line); }
  .chat-items { max-height: 260px; }
  .mod-table thead { display: none; }
  .mod-table, .mod-table tbody, .mod-table tr, .mod-table td { display: block; width: 100%; }
  .mod-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mod-table td { border: none; padding: 6px 18px; }
}
@media (max-width: 520px) {
  .mod-stats { grid-template-columns: 1fr; }
  .dash-tab { padding: 10px 16px; font-size: .88rem; }
}

/* ---------- Всплывающие уведомления (toast) ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--emerald-deep); color: #fff; padding: 13px 16px; border-radius: 14px;
  box-shadow: 0 16px 34px -16px rgba(10,46,34,.9); font-size: .9rem; line-height: 1.4;
  border-left: 4px solid var(--gold); animation: toastIn .3s ease; opacity: 0; transform: translateY(12px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .t-ico { font-size: 1.1rem; line-height: 1.2; }
.toast.gold { border-left-color: var(--gold-2); }
.toast.bad { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Лайк-сердечко на карточках каталога ---------- */
.pc-photo .fav-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(253,251,246,.92); color: var(--emerald-deep); font-size: 1.05rem;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); transition: all .2s;
}
.pc-photo .fav-btn:hover { transform: scale(1.08); }
.pc-photo .fav-btn.liked { background: linear-gradient(135deg, #e0555a, #c0392b); color: #fff; }

/* ==========================================================================
   КОММЕНТАРИИ В АНКЕТЕ
   ========================================================================== */
.comments-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 14px; padding: 14px 16px; background: #fdfbf6; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.comment-av { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: 0 0 46px; display: grid; place-items: center; background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; }
.comment-av img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-head .cname { font-weight: 700; color: var(--emerald-deep); }
.comment-head .ctime { font-size: .78rem; color: var(--muted); }
.comment-text { color: var(--ink); font-size: .95rem; line-height: 1.55; word-wrap: break-word; }
.comment-del { font-size: .78rem; color: var(--danger); margin-left: auto; }
.comment-form { display: flex; gap: 10px; align-items: flex-end; }
.comment-form .control { flex: 1; border-radius: 14px; resize: vertical; min-height: 54px; }
.comment-empty { text-align: center; color: var(--muted); padding: 22px; font-size: .92rem; }
.profile-verified-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(11,93,59,.1); color: var(--emerald); font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ==========================================================================
   ГАЛЕРЕЯ ФОТО
   ========================================================================== */
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gallery-head h2 { font-family: var(--font-head); color: var(--emerald-deep); font-size: 1.5rem; }
.g-count { color: var(--muted); font-size: .9rem; font-weight: 400; margin-left: 8px; }
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.album-card { display: flex; flex-direction: column; gap: 5px; padding: 18px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: all .2s; }
.album-card:hover { border-color: var(--emerald-2); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.album-ico { font-size: 1.5rem; line-height: 1; }
.album-name { font-weight: 700; color: var(--emerald-deep); word-break: break-word; }
.album-count { font-size: .8rem; color: var(--muted); }
.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.photo-cell { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-cell:hover img { transform: scale(1.05); }
.photo-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; background: rgba(178,58,46,.92); color: #fff; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.photo-del:hover { background: var(--danger); }
.gallery-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; padding: 14px 16px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.gallery-upload .up-pick input[type=file] { font-size: .88rem; color: var(--muted); }
.gallery-empty { color: var(--muted); text-align: center; padding: 24px; font-size: .92rem; }
.gallery-back { margin-top: 18px; }
.gallery-photo-wrap { display: grid; place-items: center; }
.gallery-photo-wrap img { max-width: 100%; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }

@media (max-width: 520px) {
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; }
}

/* ==========================================================================
   ДРУЗЬЯ И ЗАЯВКИ
   ========================================================================== */
.friend-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.friend-card { display: flex; gap: 14px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: all .2s; }
.friend-card:hover { border-color: var(--emerald-2); box-shadow: var(--shadow-soft); }
.fc-photo { width: 74px; height: 74px; flex: 0 0 74px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--emerald), var(--teal)); color: var(--gold-2); font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; }
.fc-photo img { width: 100%; height: 100%; object-fit: cover; }
.fc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-name { font-family: var(--font-head); font-weight: 700; color: var(--emerald-deep); font-size: 1.05rem; }
.fc-name:hover { color: var(--emerald-2); }
.fc-meta { font-size: .82rem; color: var(--muted); }
.fc-loc { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.fc-status { display: inline-block; font-size: .8rem; font-weight: 600; color: #8a6d0b; background: rgba(201,162,39,.16); padding: 5px 12px; border-radius: 999px; }
.fc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.fc-actions .btn { padding: 8px 14px; font-size: .82rem; }
.btn.btn-sm { padding: 9px 18px; font-size: .9rem; }

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

/* ==========================================================================
   PWA INSTALL BUTTON & BANNER
   ========================================================================== */
.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 162, 39, 0.12);
  border: 1.5px solid var(--gold);
  color: var(--emerald-deep);
  font-weight: 600;
  transition: all .25s ease;
}
.btn-pwa-install:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}
.pwa-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 460px;
  background: #ffffff;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 20px 45px -10px rgba(10, 46, 34, 0.35);
  z-index: 9999;
  padding: 12px 16px;
  animation: pwaSlideUp .35s ease-out;
}
@keyframes pwaSlideUp {
  from { transform: translate(-50%, 80px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 46px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.pwa-banner-info {
  flex: 1;
  min-width: 0;
}
.pwa-banner-info strong {
  display: block;
  font-size: .95rem;
  color: var(--emerald-deep);
  font-family: var(--font-head);
  line-height: 1.25;
}
.pwa-banner-info p {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pwa-banner-dismiss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0ede6;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: all .2s;
  flex: 0 0 28px;
}
.pwa-banner-dismiss:hover {
  background: #e4ded3;
  color: var(--ink);
}

/* Модальное окно для iOS */
.pwa-ios-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 46, 34, 0.65);
  backdrop-filter: blur(4px);
  padding: 20px;
  place-items: center;
}
.pwa-ios-modal.open {
  display: grid;
  animation: fadeIn .25s ease;
}
.pwa-ios-content {
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 26px 22px;
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.pwa-ios-content h3 {
  font-family: var(--font-head);
  color: var(--emerald-deep);
  margin-bottom: 12px;
}
.pwa-ios-steps {
  text-align: left;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pwa-ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}
.pwa-ios-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

/* ==========================================================================
   ФАЗА 6: МОБИЛ ҚУЛАЙЛИК ВА ТЕЛЕФОН ЭКРАНЛАРИГА МОСЛАШТИРИШ
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 12px));
  }

  /* Пастки ҳаракатлар панели (Bottom Bar) */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 10px));
    padding-bottom: env(safe-area-inset-bottom, 10px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(10, 46, 34, 0.08);
    justify-content: space-around;
    align-items: center;
  }
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
    position: relative;
    padding-top: 2px;
  }
  .mob-nav-item .m-icon {
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 2px;
  }
  .mob-nav-item.active,
  .mob-nav-item:hover {
    color: var(--emerald);
  }
  .mob-nav-item.active .m-icon {
    transform: scale(1.1);
    transition: transform 0.15s ease;
  }
  .mob-nav-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
  }

  /* Чат адаптивлиги */
  .chat-app {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
  }
  .chat-list {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
  }
  .chat-items {
    max-height: 180px;
  }
  .chat-window {
    width: 100%;
    flex: 1;
  }
  .chat-body {
    max-height: 380px;
    padding: 14px;
  }

  /* Валий саҳифаси */
  .wali-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Профиль саҳифаси */
  .profile-layout {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .profile-aside {
    position: static;
  }

  /* Форма инпутларини Safari зумини олдини олиш (16px) */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Каталог ва филтрлар */
  .catalog-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .filter-toggle {
    display: inline-flex !important;
  }
}



