/* Nanoseed — shaxsiy kabinet (namuna). style.css ustiga qo'shiladi. */

body.cab { background: #f6f7f5; min-height: 100vh; }
[hidden] { display: none !important; }

.demo-ribbon {
  position: sticky; top: 0; z-index: 90; padding: 7px 16px; text-align: center;
  font-size: 13px; font-weight: 600; background: #fff6d8; color: #6b5200; border-bottom: 1px solid #f0e2a8;
}

/* ---------- kirish oynasi ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  gap: 40px; padding: 40px 48px; color: #fff; background: #0a0c0a; --dot: rgba(255, 255, 255, .28);
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 380px at 100% 0%, rgba(23,163,90,.5), transparent 70%), radial-gradient(500px 400px at 0% 110%, rgba(80,70,200,.25), transparent 70%);
}
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side h1 { margin: 16px 0 14px; font: 800 clamp(34px, 4.4vw, 56px)/1 var(--font-head); letter-spacing: -.045em; }
.auth-side p { max-width: 440px; color: rgba(255,255,255,.72); font-size: 17px; }
.auth-side small { color: rgba(255,255,255,.5); }
.auth-side .dots50 { margin-top: 32px; max-width: 360px; }
.badge-dark { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.badge-dark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.auth-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 24px 40px; background: #fff; }
.back { position: absolute; top: 24px; left: 28px; font-weight: 600; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font: 800 34px/1.1 var(--font-head); letter-spacing: -.04em; }
.auth-card .muted { margin: 8px 0 24px; }
.wide { width: 100%; justify-content: center; margin-bottom: 10px; padding: 14px 22px; }
.g { font: 800 17px/1 var(--font-head); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hint { min-height: 20px; margin-top: 8px; font-size: 14px; color: var(--accent-ink); }
.hint.err { color: #b42318; }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.fine a { text-decoration: underline; }
.field select { width: 100%; padding: 13px 15px; border: 1px solid #dcdfda; border-radius: 14px; font: inherit; background: #fff; }
.field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23,163,90,.15); }
.btn.small { padding: 8px 14px; font-size: 13.5px; }

/* ---------- kabinet ichi ---------- */
.app-top {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 15px var(--font-head); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 18px; cursor: pointer; }
.app-body { display: grid; grid-template-columns: 250px 1fr; gap: 28px; max-width: 1240px; margin: 0 auto; padding: 28px 24px 90px; }
.side { position: sticky; top: 78px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.side a { padding: 11px 14px; border-radius: 14px; font-weight: 500; color: #3d413d; transition: background .2s; }
.side a:hover { background: #fff; }
.side a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.side a.on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent); }
.content { min-width: 0; }
.content h1 { font: 800 clamp(28px, 3.4vw, 42px)/1.08 var(--font-head); letter-spacing: -.04em; }
.page-lead { margin: 10px 0 26px; max-width: 640px; color: var(--muted); font-size: 17px; }
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.panel { padding: 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 6px; font: 700 19px/1.2 var(--font-head); letter-spacing: -.02em; }
.panel .sub { color: var(--muted); font-size: 15px; }
.panel .btn { margin-top: 16px; }
.panel-wide { grid-column: 1 / -1; }

/* asoschi guvohnomasi */
.cert {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 240px; margin-top: 16px; padding: 24px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(255,214,102,.42), transparent 55%), linear-gradient(150deg, #0e1a12, #0a0c0a);
  border: 1px solid rgba(255,214,102,.35);
}
.cert small { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: #f4d479; }
.cert .num { font: 800 72px/1 var(--font-head); letter-spacing: -.05em; background: linear-gradient(180deg, #ffe9a8, #d9a93a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cert .who { font-weight: 600; opacity: .92; }
.cert em { position: absolute; top: 16px; right: 16px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.12); font-size: 12px; font-style: normal; }

.cert .face { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; flex: 1; }
.cert .btn { align-self: flex-start; margin: 0; }

/* "urug'dan daraxtga" */
.garden { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-top: 12px; }
.plant { width: 150px; height: 170px; }
.plant g { opacity: 0; transform-origin: 75px 150px; transform: scale(.6); transition: opacity .6s ease, transform .6s ease; }
.plant[data-stage="1"] .s1, .plant[data-stage="2"] .s2, .plant[data-stage="3"] .s3, .plant[data-stage="4"] .s4 { opacity: 1; transform: none; }
.stage-name { margin-bottom: 10px; font: 800 22px var(--font-head); letter-spacing: -.03em; color: var(--accent-ink); }
.steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.steps .tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cdd5cd; font-size: 12px; color: transparent; }
.steps li.done .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.lock { color: #9aa09a; }
.steps a { text-decoration: underline; text-decoration-color: #cdd5cd; text-underline-offset: 3px; }
.steps a:hover { text-decoration-color: var(--accent); }

.pill-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.pill-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(23,163,90,.18); }
.quick { display: grid; gap: 8px; margin-top: 14px; }
.quick a { display: flex; justify-content: space-between; padding: 13px 16px; border-radius: 16px; background: #f6f7f5; font-weight: 600; transition: background .2s; }
.quick a:hover { background: var(--accent-soft); }
.quick a span { color: var(--accent); }

/* qo'llanmalar */
.guide { margin-bottom: 12px; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.guide summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; list-style: none; cursor: pointer; font: 700 17px var(--font-head); letter-spacing: -.02em; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font: 800 15px var(--font-head); font-style: normal; }
.guide summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #9aa09a; border-bottom: 2px solid #9aa09a; transform: rotate(45deg); transition: transform .2s; }
.guide[open] summary::after { transform: rotate(225deg); }
.guide .body { padding: 0 22px 20px 70px; color: #454a45; line-height: 1.65; }

/* fleshkani tayyorlash */
.locked { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px dashed #c3cbc3; border-radius: 22px; background: repeating-linear-gradient(135deg, #fafbfa, #fafbfa 12px, #f3f5f2 12px, #f3f5f2 24px); }
.locked svg { flex: none; color: var(--accent-ink); }
.locked b { display: block; font: 700 18px var(--font-head); letter-spacing: -.02em; }
.locked .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.todo-steps { margin: 16px 0 0; padding-left: 22px; color: #454a45; line-height: 1.8; }
.reqs { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; color: #454a45; }
.reqs li::before { content: "✓"; margin-right: 10px; color: var(--accent); font-weight: 700; }

/* fleshkalarim */
.flist { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.flist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.flist b { font-family: var(--font-head); }
.empty { padding: 28px; margin-bottom: 20px; border: 1px dashed #c3cbc3; border-radius: 22px; text-align: center; color: var(--muted); }
.frow { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr auto; gap: 10px; align-items: end; }
.frow .field { margin: 0; }
.frow .btn { margin: 0; }
.tip { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* profil */
.lrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.lrow:last-child { border-bottom: 0; }
.tag { padding: 5px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin-top: 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row .btn { margin: 0; }
.empty-news { padding: 40px 24px; text-align: center; border-radius: 26px; background: #fff; border: 1px dashed #c3cbc3; color: var(--muted); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 24px; gap: 24px; }
  .auth-side .dots50 { max-width: 300px; }
  .auth-main { padding: 56px 20px 40px; }
  .app-top { padding: 10px 16px; }
  .user-chip { margin-left: 0; }
  .nav-toggle { display: block; }
  .app-body { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px 70px; }
  .side { position: static; display: none; padding: 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
  .side.open { display: flex; }
  .bgrid { grid-template-columns: 1fr; }
  .garden { grid-template-columns: 110px 1fr; }
  .plant { width: 110px; height: 125px; }
  .frow { grid-template-columns: 1fr; }
  .guide .body { padding-left: 22px; }
  .kv { grid-template-columns: 1fr; }
}

/* server bilan ishlaydigan qism */
.auth-slot { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-bottom: 10px; }
.auth-slot .wide { margin: 0; }
.slot { display: inline-flex; align-items: center; gap: 8px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { width: 190px; padding: 8px 12px; border: 1px solid #dcdfda; border-radius: 12px; font: inherit; font-size: 14px; }
.inline-form input:focus { outline: 0; border-color: var(--accent); }
.del-box { margin-top: 14px; padding: 18px; border-radius: 18px; background: #fff4f2; border: 1px solid #f5c9c2; }
.del-box p { margin-bottom: 12px; color: #7a271a; }
.btn-danger { background: #b42318; color: #fff; }
.dev-link { display: inline-block; margin-top: 6px; font-size: 13px; text-decoration: underline; color: var(--accent-ink); }
@media (max-width: 900px) {
  .inline-form { flex-wrap: wrap; }
  .inline-form input { width: 100%; }
  .lrow { flex-wrap: wrap; gap: 8px; }
}
