/* YaqinJoy — asos: reset, layout, tipografika */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  overscroll-behavior-y: none;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Telefon ramkasi: katta ekranda markazda, telefonda to'liq */
#app {
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
  transition: background 0.25s ease;
}
@media (min-width: 560px) {
  #app { box-shadow: 0 0 60px rgba(15, 23, 42, 0.12); }
}

.page { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 18px); }
.page.no-nav { padding-bottom: 0; }

.px { padding-left: 16px; padding-right: 16px; }

h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 700; }

a { color: var(--blue); text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

.accent { color: var(--blue); }
.muted { color: var(--text-2); }
.small { font-size: 12px; }
.bold { font-weight: 700; }

.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.hide { display: none !important; }

/* Gorizontal skroll qatorlar */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 16px 8px;
}
.hscroll::-webkit-scrollbar { display: none; }

.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Skeleton — yuklanish holati (graceful) */
@keyframes shimmer { 0% { opacity: 0.55; } 50% { opacity: 1; } 100% { opacity: 0.55; } }
.skeleton {
  background: var(--bg-input);
  border-radius: var(--r-md);
  animation: shimmer 1.2s ease-in-out infinite;
}

/* Sahifa almashish animatsiyasi */
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page { animation: pageIn 0.22s ease; }

/* Ikonkalar */
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; flex: none; }
