:root {
  color-scheme: light;
  --ink: #1b1d4a;
  --muted: #4a4d75;
  --line: #dde0fb;
  --paper: #f3f2ff;
  --card: #ffffff;
  --accent: #5b3df5;
  --accent-2: #3b2fc9;
  --gold: #ffd21f;
  --navy: #121a46;
  --shadow: 0 10px 28px rgba(40, 30, 120, 0.08);
  font-family: Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 1.35rem; margin: 0 0 0.4rem; font-weight: 650; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 0.35rem; }

.top { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 0; }
.brand {
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}
.lede { color: var(--muted); margin: 0.35rem 0 0.8rem; line-height: 1.45; }

.steps {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem;
}
.steps li {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
}
.steps li.on { color: var(--ink); border-color: var(--accent); font-weight: 700; }
.steps li.done { border-color: var(--accent-2); color: var(--accent-2); }

main { max-width: 760px; margin: 0 auto; padding: 0.4rem 1rem 3rem; }
.step { display: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1rem 1.1rem; box-shadow: var(--shadow); }
.step.on { display: block; }

label { display: block; font-size: 0.86rem; margin: 0.75rem 0 0; color: #3d3832; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  padding: 0.72rem 0.75rem;
  border: 1px solid #cfc6b8;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #ddd6ff; border-color: var(--accent); }

.lobby-title {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.35rem 0 0.45rem;
}
body.site { background: #e9e8fb; }
.accepted { margin: 12px 16px 0; background: #fff; color: #1b1d4a; border-radius: 14px; padding: 12px 16px; font-weight: 800; box-shadow: 0 8px 24px rgba(40, 30, 120, 0.08); }
#homeBoard { width: 960px; max-width: calc(100% - 24px); margin: 16px auto 28px; background: linear-gradient(180deg, #fff 0%, #f0efff 100%); color: #1b1d4a; font-family: Inter, "Segoe UI", sans-serif; }
#homeBoard .svc { position: relative; height: 154px; padding: 8px 10px; border-radius: 14px; background: linear-gradient(180deg, #f6f7ff, #e9ebff); border: 1px solid #dde0fb; display: flex; flex-direction: column; align-items: stretch; text-align: left; font: inherit; color: inherit; }
#homeBoard .svc img { height: 62px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
#homeBoard .svc b { font-size: 14px; font-weight: 800; line-height: 1.12; margin-top: 12px; }
#homeBoard .svc small { font-size: 10px; color: #4a4d75; margin-top: 3px; padding-right: 22px; line-height: 1.25; }
#homeBoard .svc::after { content: "→"; position: absolute; right: 9px; bottom: 8px; color: #5b3df5; font-weight: 800; }
@media (max-width: 980px) {
  #svcGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #siteTop nav { display: none !important; }
}
@media (max-width: 720px) {
  #homeBoard { width: 100%; max-width: none; margin: 0; }
  #siteTop .topbar { height: auto !important; padding: 10px 12px !important; }
  #siteTop .topbar img { width: 40px !important; height: 32px !important; }
  #siteTop .topbar span span:first-child { font-size: 15px !important; }
  #siteTop nav, #siteTop .topbar > div:last-child > :not(.tg) { display: none !important; }
  #siteTop .topbar > div:last-child { display: flex !important; }
  #homeBoard .board-hero { height: auto !important; min-height: 168px; margin: 0 !important; }
  #homeBoard .hero-copy { position: relative !important; left: auto !important; top: auto !important; width: auto !important; padding: 16px 14px 18px; }
  #homeBoard .htitle { font-size: 22px !important; }
  #homeBoard .hero-copy > div:nth-child(2) { font-size: 16px !important; }
  #homeBoard .hero-img { position: relative !important; left: auto !important; display: block; width: 100%; height: 120px !important; object-fit: contain; object-position: right center; mask-image: none !important; -webkit-mask-image: none !important; }
  #svcGrid { grid-template-columns: 1fr !important; gap: 8px !important; padding: 12px !important; }
  #homeBoard .svc { height: auto; min-height: 52px; flex-direction: row; align-items: center; gap: 10px; background: #f1f2ff; }
  #homeBoard .svc img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
  #homeBoard .svc b { margin-top: 0; font-size: 14px; }
  #homeBoard .svc small { display: none; }
  #telefonBanner { height: auto !important; display: block !important; margin: 12px !important; padding: 14px; }
  #telefonBanner > img { position: relative !important; height: 72px !important; mask-image: none !important; }
  #telefonBanner .banner-copy { margin-left: 0 !important; width: auto !important; }
  #telefonBanner .banner-icons { display: none !important; }
  #homeBoard .how-row { flex-direction: column !important; align-items: flex-start !important; }
  body.site main, body.site #work { max-width: none; margin: 0; padding: 0 10px 24px; }
  .step { padding: 0.85rem; }
  .nav { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .atitle span, .aname { display: none; }
  .aside { flex-direction: row; overflow-x: auto; }
  .aitem { flex: none; white-space: nowrap; height: 34px; }
  .dmid, .dfiles, .dactions { flex-direction: column; align-items: stretch; }
  .otable { display: block; overflow-x: auto; }
}
body.site main { max-width: 1120px; }
body.site #work { max-width: 760px; margin: 1.2rem auto 0; }
.site-nav {
  position: sticky; top: 0; z-index: 5;
  background: #fff;
  border-bottom: 1px solid #efeefe;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 1rem;
}
.site-links { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.site-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.78rem; white-space: nowrap; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 0.45rem; }
.soc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.soc.tg { background: #2aa3ef; }
.soc.wa { background: #25d366; }
.btn.login { min-height: 36px; border-radius: 10px; padding: 0 0.9rem; background: linear-gradient(135deg, #6a4dff, #5b2fe8); font-size: 0.82rem; font-weight: 700; }
.logo { display: flex; align-items: center; gap: 0.45rem; text-decoration: none; color: inherit; flex: none; }
.brand-mark { width: 42px; height: 34px; }
.logo b { display: block; font-size: 1.05rem; font-weight: 800; color: #3b2fc9; letter-spacing: -0.3px; }
.logo small { display: block; color: #2a2d5a; font-size: 0.72rem; font-weight: 500; }
.mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #7a5cff, #4630c9);
  color: #fff; font-weight: 800;
}
.hero {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0.35rem 1rem 0.6rem;
  min-height: 250px;
  padding: 1.3rem 1.4rem;
  border-radius: 0;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(100deg, #17186a 0%, #2a1f9c 42%, #6a3ff0 100%);
}
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1.1; margin: 0; font-weight: 800; }
.hero-gold { color: #ffd21f; font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 800; line-height: 1.15; margin: 0.35rem 0 0.45rem; }
.hero p { color: #e6e6ff; max-width: 28rem; margin: 0; font-weight: 500; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; margin: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0.75rem 0 0.9rem; }
.hero-points span { font-size: 0.78rem; font-weight: 600; }
.btn.gold { background: var(--gold); color: #1b1d4a; border-radius: 22px; font-weight: 800; }
.hero-art { width: 100%; height: 220px; }
.catalog-head { max-width: 1120px; margin: 0 auto; padding: 0.4rem 1.1rem 0.2rem; }
.catalog-head h2, .how h2 { font-size: 1.45rem; margin-bottom: 0.2rem; }
.catalog-head p, .how p { color: var(--muted); margin-top: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.65rem; }
button.catalog-card {
  position: relative;
  font: inherit; color: inherit; text-align: left;
  min-height: 154px;
  background: linear-gradient(180deg, #f6f7ff, #e9ebff);
  border: 1px solid #dde0fb; border-radius: 14px;
  padding: 8px 10px 12px; box-shadow: none;
  display: flex; flex-direction: column; align-items: stretch;
}
button.catalog-card:hover { border-color: #b7b4f5; transform: translateY(-2px); }
.card-visual {
  height: 62px; display: flex; align-items: flex-end; justify-content: center;
  background: none;
}
.card-body { display: contents; }
.catalog-card b { display: block; margin-top: 8px; font-size: 0.92rem; font-weight: 800; line-height: 1.15; }
.catalog-card small { display: block; color: var(--muted); line-height: 1.3; font-size: 0.72rem; margin-top: 4px; padding-right: 18px; }
.card-arr { position: absolute; right: 9px; bottom: 8px; color: #5b3df5; font-weight: 800; }
.work-bar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.55rem 0.7rem; }
.repair {
  margin-top: 0.9rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(100deg, #17186a 0%, #2e1fb0 50%, #4a2ee0 100%);
}
.repair h2 { color: #ffd21f; font-size: 1.2rem; margin: 0 0 0.25rem; }
.repair p { color: #e6e6ff; margin: 0 0 0.55rem; font-size: 0.86rem; }
.repair ul { display: flex; gap: 0.55rem; list-style: none; padding: 0; margin: 0 0 0 auto; }
.repair li {
  width: 78px; text-align: center; font-size: 0.68rem; font-weight: 600; line-height: 1.2;
}
.how { margin-top: 0.8rem; background: rgba(255,255,255,0.86); border: 1px solid #fff; border-radius: 14px; padding: 0.85rem 1rem 1rem; }
.how ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; list-style: none; padding: 0; margin: 0.7rem 0 0; }
.how li { display: flex; align-items: center; gap: 0.55rem; background: transparent; padding: 0; }
.how b { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; box-shadow: 0 0 0 4px #e6e0ff; margin: 0; }
.how strong { display: block; font-size: 0.82rem; }
.how small { display: block; color: var(--muted); font-size: 0.72rem; }
.info-band { margin-top: 0.7rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem; }
.info-band h2 { margin-bottom: 0.25rem; }
.info-band p { margin: 0; color: var(--muted); }
@media (max-width: 1000px) {
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .repair { flex-direction: column; align-items: flex-start; }
  .repair ul { margin-left: 0; flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .hero, .how ol { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .site-links a:not([href="#lobby"]) { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lobby { display: grid; gap: 0.7rem; }
button.service { font: inherit; color: inherit; }
.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}
.service:hover { border-color: #b08990; }
.service-no {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.15rem;
  color: var(--accent);
  min-width: 1.8rem;
}
.service b {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.28rem;
  font-weight: 650;
}
.service small { display: block; color: var(--muted); margin-top: 0.2rem; line-height: 1.35; }
.service-go {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.tg-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem 1rem; margin-bottom: 0.7rem; box-shadow: var(--shadow); }
.tg-box b { display: block; color: var(--ink); }
.tg-box .btn { margin: 0.15rem 0.4rem 0 0; }
.tg-box.ok { border-color: #b7e4c7; }
.admin-services { display: grid; gap: 0.45rem; margin: 0.4rem 0 0.8rem; }
.field-row { align-items: end; margin-top: 0.35rem; }
.custom-sign { width: 100%; height: 140px; border: 1px solid #cfc6b8; border-radius: 10px; background: #fff; touch-action: none; }
.custom-photo { display: block; max-width: 180px; margin-top: 0.45rem; border-radius: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.hint { color: var(--muted); font-size: 0.88rem; line-height: 1.4; margin: 0.2rem 0 0.7rem; }
.nav { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 1.1rem; }
.btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid #cfc6b8; }
.btn.slim { min-height: 38px; padding: 0.4rem 0.8rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; }

.job, .rel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem 0.7rem;
  margin: 0.55rem 0;
  background: #fbf8f2;
}
.rel-top, .job-top { display: flex; justify-content: space-between; align-items: center; }
.x {
  border: 0; background: transparent; color: var(--accent); font-size: 1.2rem; line-height: 1; padding: 0.2rem 0.35rem;
}

.foto-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.size {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
}
.size.on, .shape.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.shape {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.92rem;
}
.frame {
  position: relative;
  width: min(240px, 70vw);
  height: calc(min(240px, 70vw) * 1.333);
  margin: 0.8rem auto 0.4rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dbef;
  touch-action: none;
  box-shadow: var(--shadow);
}
.frame img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.guide {
  position: absolute;
  left: 24%;
  top: 9%;
  width: 52%;
  height: 36%;
  border: 1.5px dashed rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
  border-radius: 50%;
  pointer-events: none;
}
.zoom input { padding: 0; }
#sign {
  width: 100%;
  height: 150px;
  border: 1px dashed #cfc6b8;
  border-radius: 12px;
  background: #fff;
  touch-action: none;
}

.outfits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.outfit {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.4rem;
}
.outfit.on { border-color: var(--accent); box-shadow: 0 0 0 2px #f0c9ce; }
.outfit img { width: 100%; height: 132px; object-fit: cover; border-radius: 10px; background: #f6f1e8; display: block; }
.outfit b { display: block; margin-top: 0.35rem; font-size: 0.92rem; }
.outfit.plain {
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  background: #f7f3ec;
}

.templates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
@media (max-width: 700px) { .templates { grid-template-columns: 1fr; } }
.tpl {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.55rem;
}
.tpl.on { border-color: var(--accent); box-shadow: 0 0 0 2px #f0c9ce; }
.tpl b { display: block; margin-top: 0.35rem; }
.tpl small { color: var(--muted); display: block; }

.sheet {
  display: block;
  height: 210px;
  border-radius: 6px;
  background: #fff center 18px / 54px 72px no-repeat, #fff;
  border: 1px solid #c8c2b6;
  position: relative;
  overflow: hidden;
}
.sheet::before {
  content: "MA’LUMOTNOMA";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.sheet::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 10px;
  width: 42px;
  height: 56px;
  border: 1px solid #222;
  background: var(--photo, #ddd) center/cover no-repeat;
}
.sheet-klassik { font-family: "Times New Roman", serif; }
.sheet-rasmiy { box-shadow: inset 0 0 0 3px #1a3f86, inset 0 0 0 5px #fff, inset 0 0 0 6px #1a3f86; }
.sheet-rasmiy::before { color: #1a3f86; }
.sheet-sodda { box-shadow: inset 6px 0 0 #1a5c48; }
.sheet-sodda::before { color: #1a5c48; font-family: "Segoe UI", sans-serif; }
.mini-lines {
  position: absolute;
  left: 10px;
  right: 62px;
  top: 48px;
  font-size: 8px;
  line-height: 1.35;
  color: #333;
  font-family: "Times New Roman", serif;
}
.sheet-sodda .mini-lines { font-family: "Segoe UI", sans-serif; }

.err { color: #8d1d2c; font-size: 0.92rem; }
.done-name { font-size: 1.25rem; font-weight: 700; }

.modal {
  position: fixed;
  inset: 0;
  background: #111;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.modal[hidden] { display: none; }
#camVideo { width: 100%; flex: 1; object-fit: cover; background: #000; }
.modal-bar { display: flex; gap: 0.4rem; padding: 0.7rem; background: #1c1915; }
.modal-bar .btn { flex: 1; }
.modal-bar .ghost { color: #fff; border-color: #888; }

.apanel { margin: 0; min-height: 100vh; background: #e9e8fb; color: #1b1d4a; font-family: Inter, "Segoe UI", sans-serif; }
.atop { height: 54px; background: #121a46; display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.atitle { color: #fff; font-size: 15px; font-weight: 700; }
.atitle span { font-weight: 500; }
.atop-right { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #fff; }
.abell { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 10px 10px 4px 4px; position: relative; }
.abell i { position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b4a; border: 1.5px solid #121a46; }
.aavatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.aname { font-size: 11px; font-weight: 600; line-height: 1.15; }
.abody { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 54px); }
.aside { background: #121a46; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.aitem { height: 36px; border: 0; border-radius: 8px; background: transparent; color: #dfe3ff; text-align: left; padding: 0 10px; font-weight: 650; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.aitem.on, .aitem:hover { background: #2d4bd0; color: #fff; }
.aitem b { margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b4a; color: #fff; font-size: 11px; display: grid; place-items: center; }
.amain { background: #f6f7ff; padding: 18px 16px 28px; }
.amain h1 { margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.astats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.astats article { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(60, 50, 160, 0.1); }
.astats span { display: block; color: #4a4d75; font-size: 12px; font-weight: 600; }
.astats b { display: block; margin-top: 6px; font-size: 22px; }
.acard, .adetail { margin-top: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 10px 28px rgba(40, 30, 120, 0.08); }
.arowhead, .arow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.alink, .aghost, .ago { border-radius: 10px; min-height: 36px; padding: 0 12px; font-weight: 700; font-size: 13px; }
.alink { border: 0; background: transparent; color: #5b3df5; }
.ago { border: 0; background: #5b3df5; color: #fff; }
.aghost { border: 1px solid #e0e2f4; background: #fff; color: #1b1d4a; text-decoration: none; display: inline-flex; align-items: center; }
.apanel input, .apanel select, .apanel textarea { border: 1px solid #e3e5f7; border-radius: 10px; }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.otable { width: 100%; border-collapse: collapse; font-size: 13px; }
.otable th { text-align: left; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid #ececf8; }
.otable td { padding: 8px 6px; border-bottom: 1px solid #f1f1fa; }
.otable tr.pick { cursor: pointer; }
.badge { display: inline-flex; min-width: 52px; height: 20px; border-radius: 4px; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.badge.yangi { background: #ffd6da; color: #d62839; }
.dtop, .dmid, .dfiles, .dactions { display: flex; gap: 12px; align-items: center; }
.dtop { margin-bottom: 12px; }
.dmid { padding-bottom: 12px; border-bottom: 1px solid #ececf8; }
.dfiles { margin-top: 12px; }
.dfiles > div { flex: 1; min-height: 120px; border: 1px solid #e3e5f7; border-radius: 12px; background: #fafaff; padding: 10px 12px; }
.dactions { margin-top: 12px; }
.dactions a, .dactions button { flex: 1; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.okb { background: #1fa845; color: #fff; border: 0; }
.sendb { background: #5b3df5; color: #fff; border: 0; }
.nob { background: #fff; color: #1b1d4a; border: 1px solid #e0e2f4; }
.ahint { color: #4a4d75; font-size: 13px; }
@media (max-width: 900px) {
  .abody, .astats, .agrid { grid-template-columns: 1fr; }
}
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.card-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.card-row b { font-size: 1rem; }
.card-row span { color: var(--muted); font-size: 0.85rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.empty { color: var(--muted); padding: 0.6rem 0; }
.pdf-frame { width: 100%; height: 80vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 0.8rem; }

/* --- Dizayn: mijoz sahifasi qo'shimchalari --- */
#siteTop .login-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 10px; background: linear-gradient(135deg, #6a4dff, #5b2fe8); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 14px rgba(91, 47, 232, .3); }
#siteTop .login-btn[hidden] { display: none; }
#homeBoard .hero-feats { display: flex; gap: 20px; margin-top: 10px; color: #fff; font-size: 10.5px; font-weight: 600; }
#homeBoard .hero-feats span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
#homeBoard .hero-feats svg { width: 22px; height: 22px; color: #fff; }
#homeBoard .banner-icons span { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1.15; }
#homeBoard .banner-icons i { width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
#homeBoard .banner-icons svg { width: 22px; height: 22px; color: #fff; }
#homeBoard .how-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
#homeBoard .how-step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
#homeBoard .how-step > span b { display: block; font-size: 12.5px; }
#homeBoard .how-step small { display: block; font-size: 10.5px; color: #4a4d75; line-height: 1.25; }
#homeBoard .how-num { width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 0 0 4px #e6e0ff; }
#homeBoard .how-chev { width: 18px; height: 18px; color: #3b2fc9; flex: none; }
#homeBoard .svc:hover { border-color: #b9b0ff; box-shadow: 0 8px 18px rgba(91, 61, 245, .12); }
#homeBoard .svc-tel, .m-tools, .m-bottom { display: none; }

@media (max-width: 720px) {
  body.site { background: #fff; padding-bottom: 76px; }
  #siteTop .login-btn { display: none !important; }
  #siteTop .topbar > div:last-child::after { content: ""; width: 22px; height: 14px; margin-left: 4px; background: linear-gradient(#1b1d4a 0 0) top/100% 2.4px no-repeat, linear-gradient(#1b1d4a 0 0) center/100% 2.4px no-repeat, linear-gradient(#1b1d4a 0 0) bottom/100% 2.4px no-repeat; }
  #homeBoard .board-hero { margin: 0 10px !important; border-radius: 14px; min-height: 150px; }
  #homeBoard .hero-copy { padding: 18px 16px !important; max-width: 62%; }
  #homeBoard .hero-copy > div:nth-child(1) { display: none; }
  #homeBoard .hero-copy > div:nth-child(2) { font-size: 20px !important; color: #fff !important; margin-top: 0 !important; }
  #homeBoard .hero-copy > div:nth-child(3), #homeBoard .hero-feats, #homeBoard .hero-copy > a { display: none !important; }
  #homeBoard .hero-img { position: absolute !important; right: -40px; left: auto !important; top: 10px !important; width: auto !important; height: 135px !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%) !important; mask-image: linear-gradient(90deg, transparent, #000 18%) !important; }
  #homeBoard .board-hero + div { display: none !important; }
  .m-tools { display: block; padding: 0 12px; margin-top: -18px; position: relative; z-index: 2; }
  .m-search { display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(40, 30, 120, .14); padding: 0 14px; color: #3b2fc9; }
  .m-search input { border: 0 !important; outline: 0 !important; margin: 0; padding: 13px 0; font-size: 14px; background: transparent; }
  .m-tabs { display: flex; gap: 8px; margin-top: 14px; }
  .m-tabs button { height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid #e0e2f4; background: #fff; color: #1b1d4a; font: 600 13px Inter, sans-serif; }
  .m-tabs button.on { background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; border-color: transparent; }
  #svcGrid { padding: 10px 12px 0 !important; }
  #homeBoard .svc { background: #fff !important; border: 1px solid #eceefb; min-height: 48px !important; padding: 6px 10px !important; box-shadow: 0 2px 6px rgba(40,30,120,.05); }
  #homeBoard .svc::after { content: ""; width: 8px; height: 8px; border: solid #1b1d4a; border-width: 2.2px 2.2px 0 0; transform: rotate(45deg); right: 16px; bottom: auto; top: calc(50% - 5px); }
  #homeBoard .svc img { width: 40px !important; height: 36px !important; object-fit: contain !important; }
  #homeBoard .svc b { font-size: 13.5px !important; font-weight: 700 !important; }
  #homeBoard .svc-tel { display: flex; border: 1.5px solid #b9b0ff !important; background: #f6f4ff !important; }
  #homeBoard .svc-tel b { color: #3b2fc9; }
  #homeBoard .svc-tel small { display: block !important; position: absolute; left: 60px; bottom: 6px; font-size: 10.5px; }
  #homeBoard .svc-tel b { margin-bottom: 12px; }
  #homeBoard .svc-telico { width: 40px; height: 36px; display: grid; place-items: center; color: #1b1d4a; flex: none; }
  #homeBoard .svc.m-hide { display: none !important; }
  #telefonBanner, #homeBoard .how-row, #homeBoard .how-row + * { display: none !important; }
  #homeBoard > div:has(> .how-row) { display: none !important; }
  .m-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: 66px; background: #fff; border-top: 1px solid #eceefb; box-shadow: 0 -6px 18px rgba(40,30,120,.06); align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .m-bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 10px Inter, sans-serif; color: #1b1d4a; text-decoration: none; width: 64px; }
  .m-bottom a.on { color: #3b2fc9; }
  .m-bottom svg { width: 22px; height: 22px; }
  .m-bottom .m-plus { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; justify-content: center; margin-top: -26px; box-shadow: 0 8px 18px rgba(91,47,232,.4); }
  .m-bottom .m-plus svg { width: 26px; height: 26px; }
  body.site:has(#work:not([hidden])) .m-bottom { display: none; }
}

/* --- Dizayn: admin panel --- */
.apanel { background: #f1f1fb; }
.atop { height: 58px; padding: 0 20px; gap: 10px; }
.atitle { font-size: 17px; }
.abell { width: auto; height: auto; border: 0; border-radius: 0; display: inline-flex; }
.abell i { right: 0; top: 0; }
.aavatar { width: 34px; height: 34px; border: 2px solid #fff; }
.aside { padding: 12px 10px; gap: 2px; }
.aitem { height: 40px; font-size: 13.5px; padding: 0 12px; gap: 11px; cursor: pointer; }
.aitem.on { background: #2f4fe0; }
.aico { width: 18px; height: 18px; flex: none; }
.amain h1 { font-size: 21px; }
.astats { gap: 12px; }
.astats article { border-radius: 14px; padding: 14px; box-shadow: 0 4px 14px rgba(60, 50, 160, 0.08); }
.astats span { font-size: 12px; margin-top: 8px; }
.astats b { font-size: 24px; font-weight: 800; margin-top: 2px; }
.sico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.sico svg { width: 24px; height: 24px; }
.s-new { background: #efe9ff; color: #7a3ff0; }
.s-work { background: #e3efff; color: #1f6fe8; }
.s-ready { background: #e2f7e8; color: #1fa845; }
.s-money { background: #fff1db; color: #f29a12; }
.otable th { color: #1b1d4a; font-weight: 700; }
.otable tr.pick:hover td { background: #f6f5ff; }
.badge { padding: 0 8px; border-radius: 5px; }
.badge.jarayonda { background: #ffe9a8; color: #8a5a00; }
.badge.tayyor { background: #c9f2d4; color: #137a32; }
.adetail { padding: 18px; }
.dtop { gap: 12px; }
.dtop b { font-size: 20px; font-weight: 800; }
.dtop .badge { margin-left: auto; height: 26px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.dback { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e0e2f4; background: #fff; font-size: 17px; font-weight: 700; color: #1b1d4a; cursor: pointer; }
.dmid { align-items: flex-start; gap: 22px; }
.dclient { display: flex; gap: 12px; align-items: center; flex: 1; padding-right: 18px; border-right: 1px solid #ececf8; min-height: 70px; }
.dclient b { display: block; font-size: 15px; }
.dclient small { color: #4a4d75; font-size: 12.5px; }
.davatar { width: 46px; height: 46px; border-radius: 50%; background: #efe9ff; color: #7a5cff; display: grid; place-items: center; flex: none; }
.davatar svg { width: 28px; height: 28px; }
.dinfo { flex: 1.3; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 13.5px; }
.dinfo dt { color: #1b1d4a; font-weight: 500; }
.dinfo dd { margin: 0; font-weight: 600; }
.dfiles > div { background: #fff; min-height: 150px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(60,50,160,.05); }
.dfiles > div > b { font-size: 14.5px; }
.drow { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dthumb { width: 96px; height: 110px; object-fit: cover; border-radius: 10px; background: #e9ebf8; }
.dempty { width: 96px; height: 110px; border-radius: 10px; background: #f1f2fb; display: grid; place-items: center; text-align: center; font-size: 11.5px; color: #4a4d75; padding: 6px; }
.dplus { width: 70px; height: 70px; border-radius: 10px; background: #eef0fa; color: #6b6f99; display: grid; place-items: center; font-size: 30px; font-weight: 300; }
.dresult { width: 150px; height: 110px; object-fit: contain; background: #f6f7fd; border-radius: 8px; box-shadow: 0 2px 10px rgba(40,30,120,.12); display: block; }
.dlinks { margin-left: auto; display: flex; flex-direction: column; gap: 8px; align-items: center; align-self: flex-end; }
.ddown { width: 36px; height: 36px; border-radius: 9px; background: #6a4dff; display: grid; place-items: center; }
.ddown svg { width: 20px; height: 20px; }
.dword { border: 1px solid #e0e2f4; background: #fff; border-radius: 8px; height: 28px; padding: 0 10px; font-size: 12px; font-weight: 700; color: #2b5cd8; cursor: pointer; }
.dactions { margin-top: 16px; }
.dactions a, .dactions button { height: 46px; gap: 9px; font-size: 14px; cursor: pointer; }
.dactions svg { width: 20px; height: 20px; }
.dactions .nob span { font-size: 16px; }
@media (max-width: 720px) {
  .dclient { border-right: 0; padding-right: 0; }
  .drow { flex-wrap: wrap; }
}

/* --- Professional: telefon, narx, to'lov, savat, sozlamalar --- */
.contact-box { background: #fff; border: 1px solid #e3e5f7; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; }
.contact-box label { font-weight: 700; }
.contact-box .hint { margin: 6px 0 0; }
.work-price { margin-left: auto; background: #efe9ff; color: #3b2fc9; font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.work-bar { display: flex; align-items: center; gap: 10px; }
#homeBoard .svc-price { position: absolute; left: 10px; bottom: 8px; font-style: normal; font-size: 11px; font-weight: 800; color: #3b2fc9; background: #fff; border: 1px solid #ddd6ff; border-radius: 7px; padding: 1px 7px; }
#homeBoard .svc:has(.svc-price) small { margin-bottom: 18px; }
@media (max-width: 720px) {
  #homeBoard .svc-price { position: static; margin-left: auto; margin-right: 22px; }
  #homeBoard .svc:has(.svc-price) small { margin-bottom: 0; }
}
.pay { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.pay.ok { background: #c9f2d4; color: #137a32; }
.pay.wait { background: #ffe9a8; color: #8a5a00; }
.dpay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dmini { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid #ddd6ff; background: #f6f4ff; color: #3b2fc9; font-size: 12px; font-weight: 700; cursor: pointer; }
.dmini:hover { background: #ece7ff; }
.dmini.ok { background: #e2f7e8; border-color: #b9ebc7; color: #137a32; }
.dmini.danger { background: #fff0f1; border-color: #ffd0d5; color: #c81f33; }
.dphone { display: inline-flex; align-items: center; gap: 6px; color: #1b1d4a; font-weight: 600; font-size: 13.5px; text-decoration: none; margin: 3px 0; }
.dphone svg { width: 15px; height: 15px; color: #3b2fc9; }
.dclient > div { display: flex; flex-direction: column; }
.afilter { display: inline-flex; background: #f1f1fb; border-radius: 10px; padding: 3px; gap: 2px; }
.afilter button { border: 0; background: transparent; border-radius: 8px; height: 28px; padding: 0 12px; font-weight: 700; font-size: 12px; color: #4a4d75; cursor: pointer; }
.afilter button.on { background: #fff; color: #3b2fc9; box-shadow: 0 1px 4px rgba(40,30,120,.12); }
.astats article.plain span { margin-top: 0; }
.astats article.plain b { font-size: 21px; margin-top: 6px; }
.abars { margin-top: 10px; display: grid; gap: 8px; }
.abar { display: grid; grid-template-columns: 220px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.abar i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #7a4dff, #5b2fe8); }
.abar b { text-align: right; }
.xprice { width: 130px !important; margin: 0 !important; padding: 7px 10px !important; font-size: 13px !important; }
.card-actions .aghost { min-height: 32px; }
.aitem b.gray { background: #4a5590; }
.aswitch { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 6px 0 10px; }
.aswitch input { position: absolute; opacity: 0; width: 0; height: 0; }
.aswitch span { width: 42px; height: 24px; border-radius: 12px; background: #d6d8ea; position: relative; transition: background .15s; flex: none; }
.aswitch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.aswitch input:checked + span { background: #1fa845; }
.aswitch input:checked + span::after { transform: translateX(18px); }
.acard h2 { font-size: 16px; margin: 0 0 6px; }
.tright { text-align: right; white-space: nowrap; }
@media (max-width: 720px) { .abar { grid-template-columns: 1fr 1fr 30px; } }
.work-bar { flex-wrap: wrap; }
#workBrand { flex: 1; min-width: 0; letter-spacing: 0.02em; line-height: 1.2; }
a.dword { display: inline-flex; align-items: center; text-decoration: none; }

.sendb.sent { background: #1b1d4a; }
.badge.sent { background: #e6e9ff; color: #3b2fc9; min-width: 0; }

/* --- Buyurtmalarim --- */
body.site .mine { max-width: 760px; margin: 1.2rem auto 0; }
.mine-card { background: #fff; border: 1px solid #e3e5f7; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 6px 18px rgba(40, 30, 120, .06); }
.mine-card.ready { border-color: #b9ebc7; box-shadow: 0 6px 18px rgba(31, 168, 69, .12); }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mine-head b { font-size: 16px; color: #1b1d4a; }
.mine-chip { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: #ffd6da; color: #d62839; white-space: nowrap; }
.mine-chip.jarayonda { background: #ffe9a8; color: #8a5a00; }
.mine-chip.tayyor { background: #c9f2d4; color: #137a32; }
.mine-chip.bekor { background: #eceef5; color: #5a5e80; }
.mine-meta { font-size: 13px; color: #4a4d75; margin-top: 4px; }
.mine-price { display: inline-block; margin-left: 6px; color: #3b2fc9; font-weight: 700; }
.mine-track { list-style: none; display: flex; padding: 0; margin: 12px 0 4px; counter-reset: s; }
.mine-track li { flex: 1; position: relative; text-align: center; font-size: 11.5px; font-weight: 600; color: #9a9dbb; padding-top: 26px; }
.mine-track li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: #e6e8f5; color: #8c90b3; display: grid; place-items: center; font-size: 12px; z-index: 1; }
.mine-track li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 3px; background: #e6e8f5; }
.mine-track li.on { color: #3b2fc9; }
.mine-track li.on::before { background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; }
.mine-track li.on + li.on::after, .mine-track li.on::after { background: #7a4dff; }
.mine-track li:not(.on)::after { background: #e6e8f5; }
.mine-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d8dbef; }
.mine-files b { width: 100%; color: #137a32; }
.mine-files .btn { text-decoration: none; }
.mine-empty { background: #fff; border-radius: 16px; padding: 24px; text-align: center; border: 1px dashed #d8dbef; }
.mine-find { background: #fff; border: 1px solid #e3e5f7; border-radius: 14px; padding: 12px 16px; margin-top: 8px; }
.mine-find summary { cursor: pointer; font-weight: 700; color: #3b2fc9; }
.mine-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b4a; color: #fff; font-size: 11px; margin-left: 2px; }
.mine-count[hidden], .mine-dot[hidden] { display: none !important; }
.m-bottom a.m-mine { position: relative; }
.mine-dot { position: absolute; top: -2px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b4a; border: 2px solid #fff; }
.accepted a { color: #3b2fc9; }
@media (max-width: 720px) {
  body.site .mine { margin: 0; padding: 12px 10px 24px; }
  body.site:has(#mine:not([hidden])) .m-bottom { display: flex; }
}

/* --- AI holati --- */
.ai-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 9px; }
.ai-line.wait { background: #e3efff; color: #1f5fc8; }
.ai-line.ok { background: #e2f7e8; color: #137a32; }
.ai-line.err { background: #fff0f1; color: #c81f33; }
.ai-line.warn { background: #fff4dc; color: #8a5a00; }
.ai-line .dmini { margin-left: auto; }
.dresult.photo { object-fit: cover; width: 110px; height: 140px; }
.aghost.ai-on { border-color: #b9ebc7; background: #e2f7e8; color: #137a32; }

/* --- Ekranlar orasida o'tish animatsiyasi --- */
@keyframes navFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes navBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.nav-fwd { animation: navFwd .22s ease-out; }
.nav-back { animation: navBack .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .nav-fwd, .nav-back { animation: none; } }

/* --- Xizmatlar sahifasi --- */
body.site .svcpage { max-width: 1040px; margin: 1.2rem auto 0; padding: 0 16px 28px; font-family: Inter, "Segoe UI", sans-serif; color: #1b1d4a; }
.sp-head { display: flex; align-items: center; gap: 14px; }
.sp-head h1 { margin: 0; font-size: 26px; font-weight: 800; }
.sp-head .hint { margin: 2px 0 0; }
.sp-back { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid #e0e2f4; background: #fff; font-size: 18px; font-weight: 700; color: #1b1d4a; cursor: pointer; }
.sp-search { display: flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(40, 30, 120, .1); padding: 0 14px; color: #3b2fc9; margin-top: 16px; }
.sp-search input { border: 0 !important; outline: 0 !important; margin: 0; padding: 13px 0; font-size: 15px; background: transparent; }
.sp-tabs { display: flex; gap: 8px; margin: 14px 0; overflow-x: auto; scrollbar-width: none; }
.sp-tabs button { flex: none; height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid #e0e2f4; background: #fff; color: #1b1d4a; font: 600 13px Inter, sans-serif; cursor: pointer; }
.sp-tabs button.on { background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; border-color: transparent; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sp-card { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid #e3e5f7; border-radius: 16px; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 4px 14px rgba(40, 30, 120, .06); transition: transform .12s, box-shadow .12s; }
.sp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91, 61, 245, .14); border-color: #cfc6ff; }
.sp-img { height: 120px; display: grid; place-items: center; background: linear-gradient(180deg, #f6f7ff, #e9ebff); }
.sp-img img { max-height: 96px; max-width: 80%; object-fit: contain; mix-blend-mode: multiply; }
.sp-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: #3b2fc9; box-shadow: 0 4px 12px rgba(40,30,120,.1); }
.sp-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.sp-body b { font-size: 15.5px; font-weight: 800; line-height: 1.2; }
.sp-body small { font-size: 12.5px; color: #4a4d75; line-height: 1.35; flex: 1; }
.sp-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sp-foot em { font-style: normal; font-weight: 800; color: #3b2fc9; font-size: 14px; }
.sp-foot em.free { color: #6b6f99; font-weight: 600; font-size: 12.5px; }
.sp-ai { font-style: normal; font-size: 11px; font-weight: 700; background: #e3efff; color: #1f5fc8; border-radius: 6px; padding: 2px 6px; }
.sp-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #7a4dff, #5b2fe8); border-radius: 9px; padding: 6px 10px; }
#homeBoard .m-all { display: none; }
@media (max-width: 980px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 720px) {
  body.site .svcpage { margin: 0; padding: 12px 12px 24px; }
  .sp-head h1 { font-size: 22px; }
  .sp-grid { grid-template-columns: 1fr; gap: 10px; }
  .sp-card { flex-direction: row; align-items: center; border-radius: 14px; }
  .sp-img { width: 84px; height: auto; align-self: stretch; flex: none; }
  .sp-img img { max-height: 54px; max-width: 70px; }
  .sp-ico { width: 46px; height: 46px; border-radius: 12px; }
  .sp-body { padding: 10px 12px; }
  .sp-body b { font-size: 14.5px; }
  .sp-body small { font-size: 12px; }
  .sp-foot { margin-top: 4px; }
  .sp-go { padding: 5px 8px; }
  body.site:has(#svcPage:not([hidden])) .m-bottom { display: flex; }

  /* Bosh sahifa (telefon): ommabop xizmatlar, telefon bo'limi, qanday ishlaydi */
  .m-tools { display: none !important; }
  #homeBoard .board-hero + div { display: flex !important; padding: 18px 14px 0 !important; }
  #homeBoard .board-hero + div > div:first-child { width: 34px !important; height: 34px !important; }
  #homeBoard .board-hero + div > div:last-child > div:first-child { font-size: 18px !important; }
  #svcGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; padding: 12px !important; }
  #homeBoard #svcGrid .svc { flex-direction: column !important; align-items: flex-start !important; min-height: 128px !important; padding: 10px !important; background: linear-gradient(180deg, #f6f7ff, #e9ebff) !important; border: 1px solid #dde0fb !important; }
  #homeBoard #svcGrid .svc img { width: 100% !important; height: 56px !important; object-fit: contain !important; }
  #homeBoard #svcGrid .svc b { margin-top: 8px !important; font-size: 13.5px !important; line-height: 1.15; }
  #homeBoard #svcGrid .svc small { display: none !important; }
  #homeBoard #svcGrid .svc::after { content: "→" !important; border: 0 !important; transform: none !important; width: auto !important; height: auto !important; top: auto !important; right: 10px !important; bottom: 8px !important; color: #5b3df5; font-weight: 800; }
  #homeBoard #svcGrid .svc:nth-child(n+5) { display: none !important; }
  #homeBoard #svcGrid .svc-price { position: static !important; margin: 4px 0 0 !important; }
  #homeBoard .m-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 12px 0; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: 0 8px 18px rgba(91,47,232,.3); }
  #homeBoard #telefonBanner { display: block !important; margin: 14px 12px 0 !important; padding: 14px 14px 14px 118px !important; min-height: 110px; border-radius: 14px !important; }
  #homeBoard #telefonBanner > img { position: absolute !important; left: -10px !important; top: 0 !important; height: 100% !important; mask-image: linear-gradient(90deg, #000 70%, transparent) !important; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent) !important; }
  #homeBoard #telefonBanner .banner-copy > div:first-child { font-size: 16px !important; white-space: normal !important; }
  #homeBoard > div:has(> .how-row) { display: block !important; margin: 14px 12px 16px !important; padding: 14px !important; background: #fff !important; border: 1px solid #eceefb; }
  #homeBoard .how-row { display: grid !important; grid-template-columns: 1fr; gap: 12px !important; }
  #homeBoard .how-chev { display: none !important; }
  #homeBoard .how-num { width: 34px !important; height: 34px !important; font-size: 15px !important; }
}

#siteTop .topbar > a span { white-space: nowrap; }
#siteTop .topbar nav { gap: 13px !important; margin-left: 18px !important; }
#siteTop .topbar nav > span { display: none; } /* "Biz haqimizda" — hali sahifasi yo'q */
@media (max-width: 720px) { #homeBoard #telefonBanner { padding-left: 128px !important; } }

/* --- Umumiy yuqori menyu (hamma sahifada) --- */
#siteTop { width: 960px; max-width: calc(100% - 24px); margin: 16px auto 0; position: sticky; top: 0; z-index: 15; font-family: Inter, "Segoe UI", sans-serif; color: #1b1d4a; box-shadow: 0 6px 18px rgba(40, 30, 120, .06); }
#siteTop + #homeBoard { margin-top: 0; }
#siteTop nav a { color: inherit; text-decoration: none; position: relative; padding: 6px 0; }
#siteTop nav a:hover { color: #3b2fc9; }
#siteTop nav a.on { color: #3b2fc9; }
#siteTop nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px; border-radius: 2px; background: #5b3df5; }
body.site .svcpage, body.site .mine, body.site #work { margin-top: 1.2rem; }
@media (max-width: 720px) {
  #siteTop { width: 100%; max-width: none; margin: 0; }
}
@media (min-width: 721px) { body.site .svcpage { max-width: 992px; } }

/* --- Xizmat ichki sahifasi: yo'l, banner, qadamlar (dizayn bo'yicha) --- */
body.site #work { max-width: 860px; font-family: Inter, "Segoe UI", sans-serif; color: #1b1d4a; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #4a4d75; margin: 4px 2px 12px; }
.crumbs a { color: #4a4d75; text-decoration: none; display: inline-flex; align-items: center; }
.crumbs a:hover { color: #3b2fc9; }
.crumbs > span { color: #9a9dbb; }
.crumbs b { color: #3b2fc9; font-weight: 700; }
.whero { position: relative; display: flex; align-items: center; gap: 18px; min-height: 128px; padding: 20px 22px; border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, #2a2bb8 0%, #4b2fe0 45%, #7a3ff0 100%); box-shadow: 0 12px 28px rgba(75, 47, 224, .25); }
.whero-ico { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.whero-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.whero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; color: #fff; }
.whero p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: #e6e6ff; max-width: 440px; }
.whero .work-price { display: inline-block; margin: 10px 0 0; background: #ffd21f; color: #1b1d4a; font-size: 13px; }
.whero-img { flex: none; width: 150px; height: 104px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border-radius: 14px; }
.whero-img img { max-width: 86%; max-height: 86%; object-fit: contain; }
.whero.photo .whero-img { width: 300px; height: 150px; background: none; border-radius: 0; margin: -20px -22px -20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.whero.photo .whero-img img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.whero:not(.photo) .whero-img:empty { display: none; }

.sflow { list-style: none; display: flex; align-items: center; gap: 6px; margin: 16px 0 6px; padding: 0; }
.sflow li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 6px 10px 6px 6px; border-radius: 999px; border: 1px solid #e3e5f7; background: #fff; font-size: 12.5px; font-weight: 600; color: #4a4d75; }
.sflow li + li::before { content: "→"; color: #9a9dbb; margin: 0 2px 0 -2px; display: none; }
.sflow li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #c9ccea; color: #1b1d4a; font-size: 13px; background: #fff; }
.sflow li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sflow li.on { border-color: #b9b0ff; background: #f3f0ff; color: #3b2fc9; }
.sflow li.on b { background: linear-gradient(135deg, #7a4dff, #5b2fe8); border-color: transparent; color: #fff; }
.sflow li.done b { background: #e2f7e8; border-color: #b9ebc7; color: #137a32; }
.sflow li.done b::after { content: ""; }

.sstep { background: #fff; border: 1px solid #e8e9f7; border-radius: 18px; padding: 18px 20px 20px; box-shadow: 0 8px 22px rgba(40, 30, 120, .05); }
.sfield { margin-top: 18px; }
.slabel { font-size: 14px; font-weight: 700; color: #1b1d4a; margin-bottom: 8px; }
.slabel i { font-style: normal; color: #e53950; }
.slabel span { font-weight: 500; color: #6b6f99; }
.stitle { margin: 0 0 4px; font-size: 18px; }
#sPhoneSlot .contact-box { background: none; border: 0; padding: 0; margin: 0; }
.contact-box .slabel { margin-bottom: 8px; }
.sphone { display: flex; align-items: stretch; border: 1px solid #d8dbef; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sphone:focus-within { border-color: #7a4dff; box-shadow: 0 0 0 3px #ece7ff; }
.sphone-ico { display: grid; place-items: center; width: 48px; color: #3b2fc9; border-right: 1px solid #e8e9f7; background: #faf9ff; }
.sphone-cc { display: grid; place-items: center; padding: 0 12px; font-weight: 700; border-right: 1px solid #e8e9f7; }
.sphone input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; margin: 0; padding: 13px 12px; font-size: 16px; font-weight: 600; letter-spacing: .3px; background: transparent; }
.sphone-ok { display: grid; place-items: center; width: 44px; color: #1fa845; font-weight: 900; font-size: 17px; }
.sphone-ok[hidden] { display: none; }
.sphone.ok { border-color: #b9ebc7; }
.contact-box .hint { margin: 6px 2px 0; font-size: 12px; }

.ssrc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ssrc button, .ssizes button { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid #d8dbef; background: #fff; border-radius: 12px; padding: 13px 14px; font: 600 14px Inter, sans-serif; color: #1b1d4a; cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.ssrc button svg { color: #3b2fc9; flex: none; }
.ssrc button em, .ssizes button em { display: none; font-style: normal; }
.ssrc button.on { border: 1.5px solid #7a4dff; background: #f6f3ff; color: #3b2fc9; }
.ssrc button.on em { display: grid; place-items: center; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #6a4dff; color: #fff; font-size: 12px; }
.ssizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ssizes button { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 6px 12px; text-align: center; font-size: 13px; }
.ssizes button i { display: block; border: 1.6px solid #3b2fc9; border-radius: 2px; }
.ssizes button.on { border: 1.5px solid #7a4dff; background: #f3f0ff; }
.ssizes button.on em { display: grid; place-items: center; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #6a4dff; color: #fff; font-size: 12px; box-shadow: 0 2px 6px rgba(91,47,232,.35); }
.scount { display: inline-flex; align-items: center; border: 1px solid #d8dbef; border-radius: 12px; overflow: hidden; background: #fff; }
.scount button { width: 42px; height: 42px; border: 0; background: #f3f0ff; color: #3b2fc9; font-size: 22px; font-weight: 700; cursor: pointer; }
.scount button:disabled { color: #b9bcd8; background: #f6f6fb; cursor: default; }
.scount b { min-width: 84px; text-align: center; font-size: 15px; }
#sCountHint { margin: 6px 2px 0; font-size: 12px; }
.snote { position: relative; }
.snote textarea { border: 1px solid #d8dbef; border-radius: 12px; padding: 12px 14px 22px; font-size: 14px; resize: vertical; }
.snote span { position: absolute; right: 12px; bottom: 8px; font-size: 11.5px; color: #8c90b3; }
.snav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.snav .btn { min-width: 150px; border-radius: 12px; height: 48px; font-weight: 700; }
.snav .btn:not(.ghost) { background: linear-gradient(135deg, #7a4dff, #5b2fe8); border: 0; box-shadow: 0 8px 18px rgba(91,47,232,.3); }
#sUploadSlot .foto-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
#sUploadSlot .foto-actions .btn { border-radius: 12px; height: 46px; }
.spreview { margin-top: 12px; padding: 14px; background: #eef0f8; border-radius: 14px; display: grid; place-items: center; }
.spreview canvas { width: 100%; max-width: 560px; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(40,30,120,.15); }
.ssum { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; font-size: 14px; }
.ssum dt { color: #4a4d75; }
.ssum dd { margin: 0; font-weight: 700; word-break: break-word; }
#work > .contact-box { margin-top: 14px; }

@media (max-width: 720px) {
  .crumbs { margin: 10px 2px; font-size: 12.5px; }
  .whero { padding: 16px; min-height: 0; gap: 12px; }
  .whero-ico { width: 48px; height: 48px; border-radius: 12px; }
  .whero-ico svg { width: 26px; height: 26px; }
  .whero h1 { font-size: 20px; }
  .whero p { font-size: 12.5px; }
  .whero-img { display: none !important; }
  .sflow { gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sflow li { flex: none; padding: 4px 8px 4px 4px; font-size: 11.5px; }
  .sflow li:not(.on) span { display: none; }
  .sflow li:not(.on) { padding: 4px; }
  .sstep { padding: 14px; border-radius: 14px; }
  .ssizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ssrc button { padding: 12px 10px; font-size: 13px; }
  .snav .btn { min-width: 0; flex: 1; }
}
.dnote { color: #8a3b00; background: #fff4dc; border-radius: 6px; padding: 2px 8px; }
/* Tanlangan tugmalarda belgi (✓) kerak emas — chegara va fon yetarli */
.ssrc button.on em, .ssizes button.on em { display: none !important; }
.mine-find[hidden] { display: none !important; }

.contact-box .slabel[hidden], .contact-box .sphone[hidden] { display: none !important; }
.contact-box .ready-note { margin: 0; padding: 10px 14px; background: #f3f0ff; border: 1px solid #e3dcff; border-radius: 12px; color: #3b2fc9; font-size: 13px; font-weight: 600; }

/* Surat ostidagi "Qayta tushish" / "O'chirish" */
.photo-tools { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.photo-tools .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; height: 44px; padding: 0 18px; font-weight: 700; }
.photo-tools .btn.danger { color: #c81f33; border-color: #ffd0d5; background: #fff6f7; }
.foto-actions[hidden] { display: none !important; }
@media (max-width: 720px) { .photo-tools .btn { flex: 1; justify-content: center; padding: 0 10px; } }
#photoDelete[hidden] { display: none !important; }

/* ===== Kompyuter ekrani: sayt butun kenglikni egallaydi (telefon ko'rinishiga tegmaydi) ===== */
@media (min-width: 721px) {
  :root { --page-pad: clamp(16px, 3vw, 56px); }
  #siteTop { width: auto !important; max-width: none !important; margin: 0 !important; box-shadow: 0 4px 16px rgba(40, 30, 120, .08); }
  #siteTop .topbar { height: 68px !important; padding: 0 var(--page-pad) !important; }
  #siteTop .topbar nav { font-size: 13.5px !important; gap: 26px !important; margin-left: 40px !important; }
  #homeBoard { width: auto !important; max-width: none !important; margin: 0 0 28px !important; background: transparent !important; }

  /* Banner */
  #homeBoard .board-hero { height: clamp(300px, 24vw, 460px) !important; margin: 0 !important; }
  #homeBoard .hero-copy { left: var(--page-pad) !important; top: 50% !important; transform: translateY(-50%); width: min(560px, 42vw) !important; }
  #homeBoard .htitle { font-size: clamp(33px, 2.9vw, 54px) !important; }
  #homeBoard .hero-copy > div:nth-child(2) { font-size: clamp(25px, 2.1vw, 40px) !important; }
  #homeBoard .hero-copy > div:nth-child(3) { font-size: clamp(13px, 1vw, 17px) !important; max-width: 520px; }
  #homeBoard .hero-feats { font-size: clamp(10.5px, .8vw, 14px); gap: clamp(20px, 2vw, 36px); }
  #homeBoard .hero-feats svg { width: clamp(22px, 1.7vw, 30px); height: clamp(22px, 1.7vw, 30px); }
  #homeBoard .hero-copy > a { height: clamp(36px, 2.8vw, 50px) !important; font-size: clamp(13.5px, 1vw, 17px) !important; padding: 0 clamp(22px, 1.8vw, 32px) !important; }
  #homeBoard .hero-img { left: auto !important; right: var(--page-pad) !important; height: 100% !important; width: auto !important; max-width: 58vw; object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%) !important; mask-image: linear-gradient(90deg, transparent 0, #000 12%) !important; }

  /* "Xizmatlarimiz" va kartochkalar */
  #homeBoard .board-hero + div { padding: 28px var(--page-pad) 0 !important; }
  #svcGrid { padding: 16px var(--page-pad) 0 !important; gap: clamp(10px, 1vw, 20px) !important; }
  #homeBoard .svc { height: clamp(154px, 11vw, 210px); padding: 12px 14px; }
  #homeBoard .svc img { height: clamp(62px, 5vw, 96px); }
  #homeBoard .svc b { font-size: clamp(14px, 1.05vw, 18px); }
  #homeBoard .svc small { font-size: clamp(10px, .75vw, 13px); }

  /* Telefon bo'limi va "Qanday ishlaydi" */
  #telefonBanner { margin: 22px var(--page-pad) 0 !important; height: clamp(112px, 8vw, 150px) !important; }
  #telefonBanner > img { height: 100% !important; }
  #telefonBanner .banner-copy { margin-left: clamp(138px, 11vw, 200px) !important; width: auto !important; max-width: 420px; }
  #telefonBanner .banner-icons { margin-right: 24px !important; gap: clamp(10px, 1.6vw, 28px) !important; }
  #homeBoard > div:has(> .how-row) { margin: 18px var(--page-pad) 12px !important; padding: 16px 28px !important; }
  .accepted { margin: 12px var(--page-pad) 0; }

  /* Boshqa sahifalar ham kengroq */
  body.site main { max-width: none; }
  body.site .svcpage { max-width: none !important; padding: 0 var(--page-pad) 32px !important; }
  .sp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
  body.site .mine { max-width: 1100px; padding: 0 var(--page-pad); }
  body.site #work { max-width: 1100px; padding: 0 var(--page-pad); }
}

/* --- To'lov cheki (Telegram) --- */
.mine-pay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px; background: #eef7ff; border: 1px solid #cfe6fb; border-radius: 12px; font-size: 13px; color: #1b3a5c; }
.mine-pay span { flex: 1; min-width: 200px; line-height: 1.4; }
.tg-btn { display: inline-flex !important; align-items: center; gap: 8px; background: #2aa3ef !important; border: 0 !important; color: #fff !important; text-decoration: none; border-radius: 10px; height: 40px; padding: 0 16px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px rgba(42,163,239,.3); }
.tg-btn:hover { background: #1b8fd8 !important; }
.check-pay { margin-top: 16px; }
.acc-pay { display: block; margin-top: 6px; font-weight: 600; color: #1b3a5c; }
.acc-pay a { color: #1b8fd8; }
@media (max-width: 720px) { .mine-pay .tg-btn { width: 100%; justify-content: center; } }

/* --- To'lov bloki: karta raqami, nusxalash, QR --- */
.paybox { display: flex; gap: 16px; align-items: stretch; margin-top: 12px; padding: 14px 16px; background: #f2fbf5; border: 1px solid #c9ecd5; border-radius: 14px; color: #12351f; }
.paybox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.paybox-title { font-size: 14px; font-weight: 700; }
.paybox-title b { color: #137a32; }
.paybox-label { font-size: 12px; color: #4a6b56; margin-top: 4px; }
.paybox-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.paybox-card span { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: #14a04a; font-variant-numeric: tabular-nums; }
.paybox-copy { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #a8dcb9; background: #fff; color: #137a32; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.paybox-owner { font-size: 12.5px; font-weight: 600; letter-spacing: .3px; color: #2c4a37; }
.paybox-hint { margin: 6px 0 8px; font-size: 12.5px; line-height: 1.45; color: #2c4a37; }
.paybox .tg-btn { align-self: flex-start; }
.paybox-qr { flex: none; width: 150px; border: 1px solid #c9ecd5; background: #fff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: zoom-in; font: 600 11.5px Inter, sans-serif; color: #4a6b56; }
.paybox-qr img { width: 100%; height: auto; display: block; }
.qr-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 50, .6); display: grid; place-items: center; padding: 16px; }
.qr-modal > div { background: #fff; border-radius: 18px; padding: 18px; width: min(420px, 100%); text-align: center; }
.qr-modal img { width: 100%; height: auto; }
.qr-modal p { margin: 8px 0 12px; font-size: 20px; font-weight: 800; color: #14a04a; }
.qr-modal small { font-size: 12px; color: #2c4a37; font-weight: 600; }
@media (max-width: 720px) {
  .paybox { flex-direction: column; } /* telefonda avval karta raqami, keyin QR */
  .paybox-qr { width: 100%; max-width: 220px; align-self: center; }
  .paybox .tg-btn { align-self: stretch; justify-content: center; }
  .paybox-card span { font-size: 20px; }
}

/* ===================== Profil ===================== */
body.site .profil { max-width: 760px; margin: 1.2rem auto 0; padding: 0 16px 32px; font-family: Inter, "Segoe UI", sans-serif; color: #1b1d4a; }
.pf-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 20px 54px; border-radius: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(110deg, #2a2bb8 0%, #4b2fe0 50%, #8a4dff 100%); box-shadow: 0 12px 28px rgba(75, 47, 224, .25); }
.pf-head::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.pf-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #4b2fe0; font-size: 26px; font-weight: 800; border: 3px solid rgba(255,255,255,.6); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.pf-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.pf-who b { font-size: 22px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-who span { font-size: 14px; color: #e6e6ff; }
.pf-edit { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.92); color: #3b2fc9; font: 700 13px Inter, sans-serif; cursor: pointer; }
.pf-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: -38px 12px 0; background: #fff; border-radius: 16px; box-shadow: 0 10px 26px rgba(40,30,120,.12); border: 1px solid #eceefb; }
.pf-stats div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 4px; color: #3b2fc9; }
.pf-stats div + div { border-left: 1px solid #eceefb; }
.pf-stats svg { width: 24px; height: 24px; }
.pf-stats .s-work { color: #7a4dff; } .pf-stats .s-ready { color: #1fa845; } .pf-stats .s-fav { color: #e53950; }
.pf-stats b { font-size: 18px; font-weight: 800; color: #1b1d4a; }
.pf-stats span { font-size: 12px; font-weight: 600; color: #4a4d75; }
.pf-menu { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pf-menu button { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 40px 12px 12px; border: 1px solid #eceefb; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 2px 8px rgba(40,30,120,.04); }
.pf-menu button::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid #1b1d4a; border-width: 2.2px 2.2px 0 0; transform: translateY(-50%) rotate(45deg); }
.pf-menu button:hover { border-color: #cfc6ff; }
.pf-menu i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f1eeff; color: #4b2fe0; }
.pf-menu i svg { width: 24px; height: 24px; }
.pf-menu span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-menu b { font-size: 15px; font-weight: 700; }
.pf-menu small { font-size: 12.5px; color: #4a4d75; }
.pf-badge { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e53950; color: #fff; font: 800 12px/22px Inter, sans-serif; text-align: center; font-style: normal; }
.pf-badge[hidden] { display: none; }
.pf-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; height: 52px; border-radius: 14px; border: 1px solid #ffc9d0; background: #fff4f5; color: #d42a40; font: 700 15px Inter, sans-serif; cursor: pointer; }
.pf-note { text-align: center; font-size: 12px; color: #6b6f99; margin: 10px 0 0; }
.pf-sub { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-sub h2 { margin: 0; font-size: 20px; }
.pf-card { background: #fff; border: 1px solid #eceefb; border-radius: 16px; padding: 16px; box-shadow: 0 4px 14px rgba(40,30,120,.05); display: flex; flex-direction: column; gap: 12px; }
.pf-card label { font-weight: 600; font-size: 14px; }
.pf-card input, .pf-card textarea { border: 1px solid #d8dbef; border-radius: 12px; }
.pf-card .btn { border-radius: 12px; height: 46px; font-weight: 700; }
.pf-card .btn:not(.ghost):not(.tg-btn) { background: linear-gradient(135deg, #7a4dff, #5b2fe8); border: 0; }
.pf-card hr { border: 0; border-top: 1px solid #eceefb; margin: 2px 0; width: 100%; }
.pf-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f8f8fe; border-radius: 10px; font-size: 14px; }
.pf-payrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f1fa; }
.pf-payrow:last-child { border-bottom: 0; }
.pf-payrow span { display: flex; flex-direction: column; gap: 2px; }
.pf-payrow small { color: #6b6f99; font-size: 12px; }
.pf-payamt { align-items: flex-end; }
.pf-payamt em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pf-payamt em.ok { background: #c9f2d4; color: #137a32; } .pf-payamt em.wait { background: #ffe9a8; color: #8a5a00; }
.pf-msg { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; }
.pf-msg.new { background: #f3f0ff; }
.pf-msg-ico { font-size: 20px; line-height: 1; }
.pf-msg span:last-child { display: flex; flex-direction: column; gap: 2px; }
.pf-msg b { font-size: 14px; font-weight: 600; }
.pf-msg small { font-size: 12px; color: #6b6f99; }
.pf-faq details { border-bottom: 1px solid #eceefb; padding: 8px 0; }
.pf-faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
.pf-faq p { margin: 8px 0 4px; font-size: 13.5px; color: #3a3d66; line-height: 1.5; }
.pf-faq .tg-btn { align-self: flex-start; }
.pf-switch { display: flex !important; align-items: center; gap: 12px; cursor: pointer; }
.pf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pf-switch span { flex: none; width: 46px; height: 26px; border-radius: 13px; background: #d6d8ea; position: relative; transition: background .15s; }
.pf-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pf-switch input:checked + span { background: #1fa845; }
.pf-switch input:checked + span::after { transform: translateX(20px); }
.pf-row { display: flex; justify-content: space-between; }
.pf-row span { display: flex; flex-direction: column; } .pf-row small { color: #6b6f99; }
/* Sevimli (♡) belgisi xizmat kartochkasida */
.sp-card { position: relative; }
.sp-fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #9a9dbb; font-size: 18px; line-height: 1; box-shadow: 0 2px 8px rgba(40,30,120,.15); cursor: pointer; z-index: 2; }
.sp-fav.on { color: #e53950; }
@media (max-width: 720px) {
  body.site .profil { margin: 0; padding: 12px 12px 24px; }
  .pf-head { padding: 18px 14px 50px; gap: 12px; border-radius: 18px; }
  .pf-avatar { width: 60px; height: 60px; font-size: 22px; }
  .pf-who b { font-size: 18px; }
  .pf-who span { font-size: 13px; }
  .pf-edit { padding: 0 10px; font-size: 12px; }
  .pf-stats { margin: -36px 6px 0; }
  .pf-stats b { font-size: 16px; } .pf-stats span { font-size: 11px; }
  .sp-fav { top: 50%; transform: translateY(-50%); right: 44px; width: 30px; height: 30px; font-size: 16px; }
}
@media (max-width: 720px) { body.site:has(#profil:not([hidden])) .m-bottom { display: flex; } }
@media (min-width: 721px) { body.site .profil { padding: 0 var(--page-pad, 16px) 32px; } }
@media (max-width: 720px) {
  .pf-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pf-edit { width: 38px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .pf-edit svg { width: 18px; height: 18px; }
}

/* Profil rasmi */
.pf-avatar { overflow: hidden; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-photo { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; }
.pf-avatar.big { width: 88px; height: 88px; font-size: 30px; border: 3px solid #e3dcff; box-shadow: 0 6px 16px rgba(75,47,224,.18); }
.pf-photo-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pf-photo-btns .btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; }
#pfPhotoDel[hidden] { display: none; }
.pf-photo-btns .btn { white-space: nowrap; }
/* Telefondagi yuqori o'ng burchakdagi 3 chiziq (menyu belgisi) kerak emas */
@media (max-width: 720px) { #siteTop .topbar > div:last-child::after { content: none !important; display: none !important; } }
/* Dumaloq rasm bosiladigan: kichik kamera belgisi */
#pfAvatar, #pfEditAvatar { position: relative; cursor: pointer; overflow: visible; }
#pfAvatar img, #pfEditAvatar img { border-radius: 50%; }
#pfAvatar::after, #pfEditAvatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff;
  background: #6a4dff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='13' r='3.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
/* Rasm burchagidagi kichik kamera dumalog'i kerak emas */
#pfAvatar::after, #pfEditAvatar::after { content: none !important; display: none !important; }
.pf-who { cursor: pointer; }
.pf-photo[hidden] { display: none !important; }

/* Admin: tayyor faylni PC dan yuklash */
.dupload-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e0e2f4; }
.dupload { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #b9b0ff; background: #f3f0ff; color: #3b2fc9; font: 700 13px Inter, sans-serif; cursor: pointer; }
.dupload svg { width: 18px; height: 18px; }
.dupload:hover { background: #ebe5ff; }
.dupload-note { font-size: 12px; color: #4a4d75; }

/* Admin: mijoz rasmi va ismi */
.davatar { overflow: hidden; }
.davatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tclient { display: inline-flex; align-items: center; gap: 8px; }
.tava { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #efe9ff; color: #5b3df5; font-size: 11px; font-weight: 800; }

/* Kompyuter: yuqori o'ng burchakdagi profil */
.top-prof { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid #e3e5f7; background: #fff; color: #1b1d4a; text-decoration: none; font: 700 13px Inter, sans-serif; transition: border-color .15s, box-shadow .15s; }
.top-prof:hover, .top-prof.on { border-color: #b9b0ff; box-shadow: 0 4px 12px rgba(91, 61, 245, .15); }
.top-prof.on { background: #f3f0ff; color: #3b2fc9; }
.top-ava { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #7a4dff, #5b2fe8); color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.top-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-name { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .top-prof { display: none !important; } }

/* ===== Profil: kompyuterda butun ekran (telefon ko'rinishiga tegmaydi) ===== */
@media (min-width: 721px) {
  body.site .profil { max-width: none !important; margin: 0 !important; padding: 24px var(--page-pad, 32px) 40px !important; }
  .pf-head { padding: 34px 40px 74px; gap: 24px; border-radius: 24px; }
  .pf-head::after { width: 420px; height: 420px; right: -120px; top: -180px; }
  .pf-avatar { width: 104px; height: 104px; font-size: 36px; }
  .pf-who b { font-size: 30px; }
  .pf-who span { font-size: 16px; }
  .pf-edit { height: 44px; padding: 0 20px; font-size: 14px; }
  .pf-stats { margin: -46px 40px 0; border-radius: 20px; }
  .pf-stats div { flex-direction: row; justify-content: center; gap: 14px; padding: 22px 12px; }
  .pf-stats svg { width: 34px; height: 34px; }
  .pf-stats b { font-size: 28px; order: 2; }
  .pf-stats span { font-size: 14px; order: 3; }
  .pf-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 28px; }
  .pf-menu button { padding: 20px 48px 20px 18px; border-radius: 18px; min-height: 92px; }
  .pf-menu button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91, 61, 245, .12); }
  .pf-menu i { width: 54px; height: 54px; border-radius: 14px; }
  .pf-menu i svg { width: 28px; height: 28px; }
  .pf-menu b { font-size: 16.5px; }
  .pf-menu small { font-size: 13.5px; }
  .pf-logout { width: auto; display: inline-flex; padding: 0 28px; margin-top: 24px; }
  .pf-note { text-align: left; font-size: 13px; }
  .pf-sub h2 { font-size: 26px; }
  .pf-card { padding: 24px; border-radius: 20px; }
  .profil [data-pf="edit"] .pf-card, .profil [data-pf="addr"] .pf-card, .profil [data-pf="settings"] .pf-card { max-width: 720px; }
  .pf-faq { max-width: 960px; }
  #pfPayList .pf-card, #pfMsgList .pf-card { max-width: none; }
}

/* Telefonning pastki menyusi kompyuterda hech qachon ko'rinmaydi */
@media (min-width: 721px) { .m-bottom { display: none !important; } }
