/* ================================================================
   public.css — ALTAIIM Tezaurus ochiq sayt
   Alohida stil fayli, custom.css dan mustaqil.
   Bootstrap 5.3 data-bs-theme="light|dark" bilan to'liq mos.
   ================================================================ */

/* ── 1. O'zgaruvchilar — theme.css tokenlariga ulangan (Leader palitrasi) ── */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --pub-navy: var(--pri);              /* asosiy brend: to'q yashil */
    --pub-navy-hover: var(--pri-hover);
    --pub-navy-soft: var(--pri-bg);
    --pub-gold: var(--warn);             /* urg'u: iliq oltin (kam ishlatiladi) */
    --pub-gold-hover: var(--warn);
    --pub-gold-pale: var(--warn-bg);
    --pub-gold-border: var(--warn);

    --pub-bg: var(--bg);
    --pub-surface: var(--surf);
    --pub-surface-alt: var(--grey-bg);
    --pub-border: var(--line);
    --pub-border-soft: var(--line2);

    --pub-text: var(--tx);
    --pub-text-muted: var(--mut);
    --pub-text-light: var(--mut);
    --pub-heading: var(--tx);
    --pub-link: var(--pri);
    --pub-link-hover: var(--pri-hover);

    --pub-shadow-sm: var(--shadow-sm);
    --pub-shadow-md: var(--shadow-md);
    --pub-shadow-lg: var(--shadow-md);

    --pub-font-body: var(--sans);
    --pub-font-serif: var(--serif);
    --pub-font-size: 16px;
    --pub-line-height: 1.7;
    --pub-tr: 0.18s ease;
}

/* ── 3. Base ─────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--pub-font-body);
    font-size: var(--pub-font-size);
    line-height: var(--pub-line-height);
    background: var(--pub-bg);
    color: var(--pub-text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pub-link);
    text-decoration: none;
    transition: color var(--pub-tr);
}
a:hover {
    color: var(--pub-link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pub-heading);
    font-weight: 700;
    line-height: 1.3;
}

/* ── 4. Navbar ───────────────────────────────────────────────── */
.pub-navbar {
    background: var(--surf);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.pub-navbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--pub-tr);
    white-space: nowrap;
}
.pub-navbar-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.pub-navbar-gold-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: none;
    background: var(--pub-gold);
    color: #1a3a5c !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--pub-tr);
    white-space: nowrap;
}
.pub-navbar-gold-btn:hover {
    background: var(--pub-gold-hover);
}

/* ── 4b. Umumiy UI komponentlar ─────────────────────────────── */

/* Icon box */
.pub-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--pub-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.pub-icon-box-lg {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
    border-radius: 16px;
}
[data-bs-theme="dark"] .pub-icon-box {
    background: var(--pub-navy);
}

/* CTA button */
.pub-cta-btn {
    background: var(--pub-navy);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition:
        background var(--pub-tr),
        transform var(--pub-tr);
}
.pub-cta-btn:hover {
    background: var(--pub-navy-hover);
    transform: translateY(-1px);
}
[data-bs-theme="dark"] .pub-cta-btn {
    background: var(--pub-navy);
}

/* Text link */
.pub-text-link {
    color: var(--pub-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--pub-tr);
}
.pub-text-link:hover {
    color: var(--pub-navy-hover);
}
[data-bs-theme="dark"] .pub-text-link {
    color: var(--pub-gold);
}
[data-bs-theme="dark"] .pub-text-link:hover {
    color: var(--pub-gold-hover);
}

/* Statistika qator */
.pub-stat-row {
    border-bottom: 1px solid var(--pub-border);
}
.pub-stat-row:last-child {
    border-bottom: none;
}
.pub-stat-row-icon {
    color: var(--pub-navy);
    width: 20px;
    font-size: 1rem;
}
[data-bs-theme="dark"] .pub-stat-row-icon {
    color: var(--pub-gold);
}

.pub-stat-number {
    color: var(--pub-navy);
    font-variant-numeric: tabular-nums;
}
[data-bs-theme="dark"] .pub-stat-number {
    color: var(--pub-gold) !important;
}

/* Matn 2 qatorga qisqartirish */
.pub-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── 5. Hero qism ────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #1e4a7a 55%, #153060 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 3.5rem;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0e1f35 0%, #152845 55%, #0b1a2e 100%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section .display-4,
.hero-section h1 {
    color: #ffffff;
}
.hero-section p {
    color: rgba(255, 255, 255, 0.75);
}

.hero-search-wrap {
    max-width: 580px;
    margin: 0 auto;
}

.hero-search-input {
    font-size: 1.05rem;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 10px 0 0 10px !important;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1f2e;
    box-shadow: none !important;
}
.hero-search-input:focus {
    background: #fff;
    outline: none;
}

.hero-search-btn {
    border-radius: 0 10px 10px 0 !important;
    background: var(--pub-gold) !important;
    color: #1a3a5c !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.8rem 1.5rem;
    border: none !important;
    transition: background var(--pub-tr);
}
.hero-search-btn:hover {
    background: var(--pub-gold-hover) !important;
}

/* ── 6. So'z kartasi ─────────────────────────────────────────── */
.word-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    transition:
        border-color var(--pub-tr),
        box-shadow var(--pub-tr),
        transform var(--pub-tr);
    cursor: pointer;
}
.word-card:hover {
    border-color: var(--pub-navy);
    box-shadow: var(--pub-shadow-md);
    transform: translateY(-2px);
    color: inherit;
}

[data-bs-theme="dark"] .word-card:hover {
    border-color: var(--pub-gold);
}

.word-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--pub-navy);
    margin-bottom: 0.2rem;
}

[data-bs-theme="dark"] .word-card-title {
    color: var(--pub-gold);
}

.word-class-badge {
    display: inline-block;
    background: var(--pub-gold-pale);
    color: var(--pub-navy);
    border: 1px solid var(--pub-gold-border);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
}

[data-bs-theme="dark"] .word-class-badge {
    color: var(--pub-gold);
}

.word-card .text-body-secondary {
    color: var(--pub-text-muted) !important;
}

/* ── 7. So'z batafsil sahifasi ───────────────────────────────── */
.word-detail-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: var(--pub-shadow-sm);
}

@media (max-width: 575.98px) {
    .word-detail-card {
        padding: 1.25rem 1rem;
        border-radius: 10px;
    }
}

.word-detail-title {
    font-family: var(--pub-font-serif);
    font-size: 2.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pub-navy);
    border-left: 5px solid var(--pub-gold);
    padding-left: 1rem;
    line-height: 1.2;
}

[data-bs-theme="dark"] .word-detail-title {
    color: var(--pub-gold);
}

.detail-section {
    border-left: 3px solid var(--pub-border);
    padding-left: 1rem;
    margin-bottom: 0.75rem;
}

[data-bs-theme="dark"] .detail-section {
    border-left-color: var(--pub-border);
}

.detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--pub-navy);
    margin-bottom: 0.2rem;
}

[data-bs-theme="dark"] .detail-label {
    color: var(--pub-gold);
}

.detail-value {
    font-family: var(--pub-font-serif);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--pub-text);
}

.synonym-link {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--pub-navy);
    color: var(--pub-navy);
    font-size: 0.85rem;
    text-decoration: none;
    margin: 2px;
    transition:
        background var(--pub-tr),
        color var(--pub-tr);
}
.synonym-link:hover {
    background: var(--pub-navy);
    color: #fff;
}

[data-bs-theme="dark"] .synonym-link {
    border-color: var(--pub-gold);
    color: var(--pub-gold);
}
[data-bs-theme="dark"] .synonym-link:hover {
    background: var(--pub-gold);
    color: #0f1520;
}

/* ── 8. Statistika kartalar (bosh sahifa) ───────────────────── */
.pub-stat-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition:
        transform var(--pub-tr),
        box-shadow var(--pub-tr);
    position: relative;
    overflow: hidden;
}
.pub-stat-card::after {
    content: "";
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pub-navy-soft);
}
.pub-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pub-shadow-md);
}

.pub-stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--pub-navy);
}
[data-bs-theme="dark"] .pub-stat-value {
    color: var(--pub-gold);
}

.pub-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pub-text-muted);
    margin-top: 0.35rem;
}

.pub-stat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--pub-navy);
    opacity: 0.75;
}
[data-bs-theme="dark"] .pub-stat-icon {
    color: var(--pub-gold);
    opacity: 0.85;
}

/* ── 9. Alifbo ko'rish (browse) ──────────────────────────────── */
.letter-btn {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 9px;
    border: 1.5px solid var(--pub-border);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--pub-text-muted);
    background: var(--pub-surface);
    transition: all var(--pub-tr);
}
.letter-btn:hover {
    background: var(--pub-navy);
    border-color: var(--pub-navy);
    color: #fff;
}
.letter-btn.active {
    background: var(--pub-navy);
    border-color: var(--pub-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.3);
}
.letter-btn.has-words {
    border-color: var(--pub-gold);
    color: var(--pub-navy);
    background: var(--pub-gold-pale);
}
[data-bs-theme="dark"] .letter-btn.has-words {
    border-color: var(--pub-gold);
    color: var(--pub-gold);
    background: var(--pub-gold-pale);
}
[data-bs-theme="dark"] .letter-btn {
    background: var(--pub-surface);
    color: var(--pub-text-muted);
}

/* Browse ro'yxat elementi */
.browse-word-item {
    display: block;
    padding: 0.45rem 0.8rem;
    border-radius: 7px;
    text-decoration: none;
    color: var(--pub-text);
    font-weight: 500;
    transition:
        background var(--pub-tr),
        color var(--pub-tr);
}
.browse-word-item:hover {
    background: var(--pub-navy-soft);
    color: var(--pub-navy);
}
[data-bs-theme="dark"] .browse-word-item:hover {
    background: var(--pub-gold-pale);
    color: var(--pub-gold);
}

/* ── 10. Sahifa kartasi/panel ────────────────────────────────── */
.pub-card {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--pub-shadow-sm);
}

/* ALTAIIM info qism */
.altaiim-info-card {
    background: linear-gradient(
        135deg,
        var(--pub-gold-pale) 0%,
        var(--pub-surface) 100%
    );
    border: 1px solid var(--pub-gold-border);
    border-radius: 16px;
    padding: 2rem;
}
[data-bs-theme="dark"] .altaiim-info-card {
    background: linear-gradient(
        135deg,
        rgba(212, 170, 48, 0.07) 0%,
        var(--pub-surface-alt) 100%
    );
}

/* ── 11. Qidiruv sahifasi ─────────────────────────────────────── */
.search-empty-icon {
    font-size: 4rem;
    color: var(--pub-text-light);
    opacity: 0.5;
}

/* ── 12. Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--pub-text-muted);
}
.breadcrumb-item a {
    color: var(--pub-navy);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}
.breadcrumb-item.active {
    color: var(--pub-text-muted);
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--pub-gold);
}

/* ── 13. Pagination ──────────────────────────────────────────── */
.page-link {
    color: var(--pub-navy);
    background: var(--pub-surface);
    border-color: var(--pub-border);
    transition: all var(--pub-tr);
}
.page-link:hover {
    color: #fff;
    background: var(--pub-navy);
    border-color: var(--pub-navy);
}
.page-item.active .page-link {
    background: var(--pub-navy);
    border-color: var(--pub-navy);
    color: #fff;
}
.page-item.disabled .page-link {
    color: var(--pub-text-light);
}

[data-bs-theme="dark"] .page-link {
    color: var(--pub-gold);
    background: var(--pub-surface);
    border-color: var(--pub-border);
}
[data-bs-theme="dark"] .page-link:hover {
    background: var(--pub-gold);
    border-color: var(--pub-gold);
    color: #0f1520;
}
[data-bs-theme="dark"] .page-item.active .page-link {
    background: var(--pub-gold);
    border-color: var(--pub-gold);
    color: #0f1520;
}

/* ── 14. Footer ──────────────────────────────────────────────── */
.pub-footer {
    background: var(--pub-surface-alt);
    border-top: 1px solid var(--pub-border);
    color: var(--pub-text-muted);
    font-size: 0.85rem;
    padding: 1.25rem 0;
    margin-top: auto;
}
[data-bs-theme="dark"] .pub-footer {
    background: var(--pub-surface);
}

.pub-footer-link {
    color: var(--pub-text-muted);
    text-decoration: none;
    transition: color var(--pub-tr);
}
.pub-footer-link:hover {
    color: var(--pub-navy);
}
[data-bs-theme="dark"] .pub-footer-link:hover {
    color: var(--pub-gold);
}

/* ── 15. Oxirgi so'zlar grid ─────────────────────────────────── */
.recent-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

/* ── 16. Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--pub-border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pub-text-light);
}

/* ── 17. Responsive ──────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .recent-words-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-section {
        padding: 2.5rem 0 2rem;
    }
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    .word-detail-title {
        font-size: 1.5rem;
    }
    .pub-stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .word-detail-card {
        padding: 1.5rem;
    }
}

/* ── Tahrirlanmaydigan matnlarda I-beam koʻrinmasin (ichki panellar
   bilan izchillik uchun) ── */
body {
    cursor: default;
}
a, button, [role="button"], label, summary, select,
[data-bs-toggle], .btn, .page-link, .dropdown-item, .nav-link,
.letter-btn, .word-card {
    cursor: pointer;
}
input, textarea {
    cursor: text;
}
input[type="checkbox"], input[type="radio"], input[type="submit"] {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   Leader dizayni: navbar, bosh sahifa, bo'limlar (theme.css tokenlari)
   ═══════════════════════════════════════════════════════════════ */
.pub-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tx); }
.pub-brand:hover { color: var(--tx); }
.pub-brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: var(--pri); color: var(--on-pri); font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.pub-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.pub-brand-text b { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .02em; }
.pub-brand-text span { font-size: .72rem; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; }
.pub-navlink { color: var(--tx2); padding: .5rem .8rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; text-decoration: none; }
.pub-navlink:hover { background: var(--grey-bg); color: var(--tx); }
.pub-navbar-btn { border: 1px solid var(--line); color: var(--tx2); background: transparent; }
.pub-navbar-btn:hover { background: var(--grey-bg); border-color: var(--pri); color: var(--tx); }
.pub-navbar-gold-btn { background: var(--pri); color: var(--on-pri) !important; border-radius: var(--radius-sm); font-weight: 600; }
.pub-navbar-gold-btn:hover { background: var(--pri-hover); color: var(--on-pri) !important; }
.pub-icon-box, .pub-cta-btn { color: var(--on-pri) !important; }
.hero-search-btn { color: var(--on-pri) !important; background: var(--pri) !important; }
[data-bs-theme="dark"] .word-card-title, [data-bs-theme="dark"] .pub-text-link { color: var(--pri); }

/* Sahifa sarlavhasi (about va boshqalar) */
.pub-pagehead { background: var(--surf); border-bottom: 1px solid var(--line); }
.pub-pagehead h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0; }
.pub-pagehead .breadcrumb a { color: var(--mut); }

/* Bosh sahifa */
.lp-hero { background: var(--surf); border-bottom: 1px solid var(--line); }
.lp-hero .container-xl { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.lp-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pri); }
.lp-title { font-family: var(--serif); font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.01em; max-width: 18ch; margin: .6rem 0 1.1rem; }
.lp-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--tx2); max-width: 60ch; }
.lp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }
.lp-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surf); color: var(--tx); }
.lp-btn:hover { border-color: var(--pri); color: var(--tx); }
.lp-btn.pri { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.lp-btn.pri:hover { background: var(--pri-hover); border-color: var(--pri-hover); color: var(--on-pri); }
.lp-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .3rem 0 .6rem; }
.lp-sub { color: var(--mut); max-width: 62ch; }
.lp-card { height: 100%; background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.lp-card h3 { font-family: var(--serif); font-size: 1.25rem; margin: .9rem 0 .5rem; }
.lp-card p { color: var(--tx2); margin: 0; }
.lp-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pri-bg); color: var(--pri); font-size: 1.3rem; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: s; }
.lp-steps li { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; counter-increment: s; }
.lp-steps li::before { content: counter(s); font-family: var(--mono); font-size: .8rem; color: var(--pri); background: var(--pri-bg); border-radius: 999px; padding: .1rem .55rem; }
.lp-steps b { display: block; margin: .6rem 0 .25rem; }
.lp-steps span { color: var(--mut); font-size: .92rem; }
.lp-facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.lp-fact { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.lp-fact b { display: block; font-family: var(--mono); font-size: 1.7rem; font-weight: 500; color: var(--pri); }
.lp-fact span { font-size: .85rem; color: var(--mut); }
.lp-cta { background: var(--pri-bg); border: 1px solid var(--pri-bg2); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.lp-cta h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0; flex: 1 1 320px; }
.pub-footer { background: var(--surf); border-top: 1px solid var(--line); }
[data-bs-theme="dark"] .pub-footer-link:hover { color: var(--pri); }

/* Tahririyat tizimi sahifasi (platform.php) */
.lp-roles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lp-role { position: relative; background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.lp-role:hover { border-color: var(--pri); transform: translateY(-2px); }
.lp-role-top { display: flex; align-items: center; justify-content: space-between; }
.lp-role-n { font-family: var(--mono); font-size: .8rem; color: var(--mut); }
.lp-role h3 { font-family: var(--serif); font-size: 1.25rem; margin: 1rem 0 .15rem; }
.lp-role-tag { font-size: .82rem; font-weight: 600; color: var(--pri); margin-bottom: .6rem; }
.lp-role p { color: var(--tx2); font-size: .93rem; margin: 0; }
.lp-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: f; }
.lp-flow li { position: relative; counter-increment: f; background: var(--surf); border: 1px solid var(--line); border-top: 3px solid var(--pri); border-radius: var(--radius); padding: 1.1rem 1rem; }
.lp-flow li::before { content: counter(f); display: block; font-family: var(--mono); font-size: .78rem; color: var(--mut); margin-bottom: .35rem; }
.lp-flow li:last-child { border-top-color: var(--pri); background: var(--pri-bg); }
.lp-flow b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: .25rem; }
.lp-flow span { color: var(--mut); font-size: .86rem; }
.lp-note { margin: 1.1rem 0 0; color: var(--mut); font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.lp-note i { color: var(--pri); }

/* ═══ Bosh sahifa v2 ═══ */
.lp-hero2 { position: relative; overflow: hidden; }
.lp-hero2 .container-xl { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 85% 10%, color-mix(in srgb, var(--pri) 14%, transparent), transparent 60%),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--warn) 10%, transparent), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: .55; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.lp-title-xl { max-width: 17ch; font-size: clamp(2.2rem, 5.6vw, 4rem); }
.lp-title-xl em { font-style: italic; color: var(--pri); }

.lp-live { background: linear-gradient(160deg, var(--pri) 0%, color-mix(in srgb, var(--pri) 70%, #000) 100%); color: var(--on-pri);
  border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--pri) 70%, #000); position: relative; overflow: hidden; }
.lp-live::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); }
.lp-live-top { display: flex; align-items: center; gap: .55rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lp-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #7CF0B8; box-shadow: 0 0 0 0 rgba(124,240,184,.7); animation: lp-pulse 2s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 10px rgba(124,240,184,0); } 100% { box-shadow: 0 0 0 0 rgba(124,240,184,0); } }
.lp-live-big { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; margin: 1rem 0 .2rem; font-variant-numeric: tabular-nums; }
.lp-live-cap { opacity: .85; margin-bottom: 1.4rem; }
.lp-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.14); }
.lp-bar i { display: block; width: var(--w); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.lp-anim .lp-live:not(.is-in) .lp-bar i { width: 0; }
.s-new  { background: rgba(255,255,255,.55); }
.s-work { background: #F2C14E; }
.s-ok   { background: #7CF0B8; }
.lp-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.lp-legend li { display: flex; align-items: center; gap: .6rem; }
.lp-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lp-legend span { flex: 1; opacity: .9; }
.lp-legend b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }

.lp-band { background: var(--surf); border-block: 1px solid var(--line); }
.lp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.lp-kpi { padding: 1.6rem 1.2rem; border-left: 1px solid var(--line); }
.lp-kpi:first-child { border-left: 0; }
.lp-kpi b { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; color: var(--pri); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-kpi span:last-child { color: var(--mut); font-size: .88rem; }
@media (max-width: 575px) { .lp-kpi { border-left: 0; border-top: 1px solid var(--line); } .lp-kpi:first-child { border-top: 0; } }

.lp-alpha { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: .6rem; }
.lp-letter { background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .4rem .5rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .15rem; transition: border-color .15s, transform .15s; }
.lp-letter:hover { border-color: var(--pri); transform: translateY(-2px); }
.lp-letter-bar { width: 100%; height: 64px; display: flex; align-items: flex-end; justify-content: center; }
.lp-letter-bar i { display: block; width: 52%; height: var(--h); min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--pri), color-mix(in srgb, var(--pri) 45%, transparent)); transition: height 1s cubic-bezier(.2,.8,.2,1); }
.lp-anim .lp-alpha:not(.is-in) .lp-letter-bar i { height: 3px; }
.lp-letter b { font-family: var(--serif); font-size: 1.15rem; }
.lp-letter small { font-family: var(--mono); font-size: .7rem; color: var(--mut); }

.lp-feats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.lp-feat { display: flex; gap: 1rem; align-items: flex-start; background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; transition: border-color .15s, box-shadow .15s; }
.lp-feat:hover { border-color: var(--pri); box-shadow: var(--shadow-sm); }
.lp-feat .lp-ico { flex: none; }
.lp-feat h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 .25rem; }
.lp-feat p { margin: 0; color: var(--tx2); font-size: .92rem; }

.lp-anim .lp-kpis:not(.is-in) .lp-kpi, .lp-anim .lp-steps:not(.is-in) li, .lp-anim .lp-feats:not(.is-in) .lp-feat { opacity: 0; transform: translateY(14px); }
.lp-kpi, .lp-steps li, .lp-feat { transition: opacity .6s ease, transform .6s ease, border-color .15s, box-shadow .15s; }
.is-in .lp-kpi:nth-child(2), .is-in li:nth-child(2), .is-in .lp-feat:nth-child(2) { transition-delay: .08s; }
.is-in .lp-kpi:nth-child(3), .is-in li:nth-child(3), .is-in .lp-feat:nth-child(3) { transition-delay: .16s; }
.is-in .lp-kpi:nth-child(4), .is-in li:nth-child(4), .is-in .lp-feat:nth-child(4) { transition-delay: .24s; }
.is-in .lp-kpi:nth-child(5), .is-in li:nth-child(5), .is-in .lp-feat:nth-child(5) { transition-delay: .32s; }
.is-in .lp-feat:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .lp-live-dot { animation: none; } .lp-bar i, .lp-letter-bar i { transition: none; } }

/* Alifbo: tartiblangan gorizontal ustunlar */
.lp-rank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2.5rem; }
@media (max-width: 767px) { .lp-rank { grid-template-columns: 1fr; } }
.lp-rank-row { display: grid; grid-template-columns: 2.4rem 1fr 4.2rem; align-items: center; gap: .7rem; }
.lp-rank-row b { font-family: var(--serif); font-size: 1.1rem; }
.lp-rank-row em { font-style: normal; font-family: var(--mono); font-size: .8rem; color: var(--mut); text-align: right; font-variant-numeric: tabular-nums; }
.lp-rank-track { height: 14px; border-radius: 999px; background: var(--grey-bg, var(--pri-bg)); overflow: hidden; }
.lp-rank-fill { display: flex; height: 100%; width: var(--w); border-radius: 999px; overflow: hidden; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.lp-rank-fill i { display: block; height: 100%; }
.lp-rank .s-new { background: color-mix(in srgb, var(--pri) 30%, var(--pri-bg2)); }
.lp-rank .s-work { background: #E0A92E; }
.lp-rank .s-ok { background: var(--pri); }
.lp-anim .lp-rank:not(.is-in) .lp-rank-fill { width: 0; }
.lp-rank-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.2rem 0 0; padding: 0; font-size: .85rem; color: var(--mut); }
.lp-rank-legend li { display: flex; align-items: center; gap: .45rem; }
.lp-rank-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lp-rank-legend .s-new { background: color-mix(in srgb, var(--pri) 30%, var(--pri-bg2)); }
.lp-rank-legend .s-work { background: #E0A92E; }
.lp-rank-legend .s-ok { background: var(--pri); }
