/* =========================================================
   PET-EDU — dizayn tizimi (umumiy)
   ========================================================= */

@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }

:root {
  --ink: #0b1026;
  --ink-2: #141a3a;
  --ink-3: #1e2550;
  --text: #1b2033;
  --muted: #667085;
  --line: #e7e9f3;
  --line-2: #eff1f8;
  --bg: #f5f6fb;
  --card: #ffffff;

  --indigo: #6366f1;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --sky: #0ea5e9;
  --teal: #14b8a6;
  --green: #22c55e;
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;

  --brand: #5b4ef0;
  --brand-600: #4a3de0;
  --brand-50: #f0efff;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  --grad-cool: linear-gradient(135deg, #0ea5e9 0%, #6366f1 60%, #8b5cf6 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #ec4899 100%);
  --grad-fresh: linear-gradient(135deg, #14b8a6 0%, #22c55e 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px -12px rgba(30, 27, 75, .18), 0 2px 6px rgba(30, 27, 75, .05);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, .35);
  --glow: 0 10px 40px -10px rgba(99, 102, 241, .55);

  --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-primary: #5b4ef0;
  --bs-primary-rgb: 91, 78, 240;
  --bs-link-color: #5b4ef0;
  --bs-link-color-rgb: 91, 78, 240;
  --bs-link-hover-color: #4a3de0;
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--bs-body-font-family);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -.005em;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
a { text-decoration: none; }
::selection { background: rgba(139, 92, 246, .22); }

.text-muted-2 { color: var(--muted) !important; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fw-800 { font-weight: 800 !important; }
.fs-7 { font-size: .8125rem !important; }
.lh-tight { line-height: 1.15 !important; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- Tugmalar ---------- */
.btn { font-weight: 700; border-radius: 12px; padding: .65rem 1.2rem; letter-spacing: -.01em; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: .85rem 1.6rem; border-radius: 14px; font-size: 1.02rem; }
.btn-sm { padding: .4rem .8rem; border-radius: 10px; font-size: .85rem; }
.btn-brand { color: #fff; background: var(--grad); border: 0; box-shadow: var(--glow); background-size: 150% 150%; background-position: 0 0; }
.btn-brand:hover, .btn-brand:focus { color: #fff; background-position: 100% 100%; box-shadow: 0 14px 44px -10px rgba(139, 92, 246, .7); transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-soft { background: var(--brand-50); color: var(--brand); border: 0; }
.btn-soft:hover { background: #e4e1ff; color: var(--brand-600); }
.btn-white { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: #fff; color: var(--brand); border-color: #d9d6ff; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.btn-glass:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }

/* ---------- Kartalar ---------- */
.card-x {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative;
}
.card-x.pad { padding: 1.5rem; }
.card-x.hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-x.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcdaf8; }
.card-title-x { font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; }

.icon-tile {
  width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; flex-shrink: 0;
}
.icon-tile.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem; }
.icon-tile.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 1.6rem; }
.icon-tile.soft { background: var(--brand-50); color: var(--brand); }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: var(--line-2); color: var(--muted); white-space: nowrap;
}
.chip-brand { background: var(--brand-50); color: var(--brand); }
.chip-green { background: #dcfce7; color: #15803d; }
.chip-amber { background: #fef3c7; color: #b45309; }
.chip-red { background: #fee2e2; color: #b91c1c; }
.chip-sky { background: #e0f2fe; color: #0369a1; }
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Avatar ---------- */
.avatar {
  --h: 250;
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, hsl(var(--h), 80%, 62%), hsl(calc(var(--h) + 40), 75%, 55%));
}
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: .72rem; }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.3rem; }
.avatar.xl { width: 88px; height: 88px; border-radius: 26px; font-size: 1.8rem; }

/* ---------- Formalar ---------- */
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--line); padding: .7rem .95rem; font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease; background-color: #fff;
}
.form-control:focus, .form-select:focus { border-color: #a5a0ff; box-shadow: 0 0 0 4px rgba(99, 102, 241, .14); }
.form-control-lg { padding: .9rem 1.1rem; border-radius: 14px; }
.form-label { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .4rem; }
.form-text { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #98a2b3; font-size: 1.05rem; pointer-events: none; }
.input-icon > .form-control { padding-left: 2.7rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Progress ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Ogohlantirishlar ---------- */
.alert { border-radius: 14px; border: 0; font-weight: 600; }
.alert-success { background: #ecfdf3; color: #067647; }
.alert-danger { background: #fef3f2; color: #b42318; }
.alert-info { background: #eff8ff; color: #175cd3; }
.alert-warning { background: #fffaeb; color: #b54708; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 800; letter-spacing: -.03em; font-size: 1.2rem; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.logo.light { color: #fff; }
.logo.light small { color: rgba(255, 255, 255, .6); }

/* ---------- Ornament (8 qirrali yulduz — 8 komponent ramzi) ---------- */
.ornament-bg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M40 8l9.4 22.6L72 40l-22.6 9.4L40 72l-9.4-22.6L8 40l22.6-9.4z'/%3E%3Cpath d='M17.4 17.4L40 26.8l22.6-9.4-9.4 22.6 9.4 22.6L40 53.2l-22.6 9.4 9.4-22.6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Animatsiyalar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .45); } 100% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Yordamchi ---------- */
.divider { height: 1px; background: var(--line); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.5rem; color: #c7c9e0; display: block; margin-bottom: .75rem; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--line-2); padding: .1rem .4rem; border-radius: 6px; }
.min-w-0 { min-width: 0; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); --bs-nav-link-color: var(--muted); --bs-nav-link-hover-color: var(--brand); --bs-nav-pills-border-radius: 12px; }
.dropdown-item:active { background: var(--brand); }
