:root {
    --primary: #3157d5;
    --primary-dark: #1d328c;
    --secondary: #6f42c1;
    --accent: #12a594;
    --text-dark: #17213b;
    --text-muted: #64708a;
    --soft-background: #f4f7fc;
    --border-color: #e5eaf3;
    --white: #ffffff;
    --shadow: 0 18px 55px rgba(31, 50, 112, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--soft-background);
    color: var(--text-dark);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

a {
    text-decoration: none;
}

.site-navbar {
    min-height: 78px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 234, 243, 0.9);
    backdrop-filter: blur(14px);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.brand-wrapper>span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-wrapper strong {
    font-size: 1.15rem;
}

.brand-wrapper small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.brand-mark {
    display: inline-flex;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary));
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(49, 87, 213, 0.28);
}

.site-navbar .nav-link {
    position: relative;
    margin: 0 5px;
    padding: 12px 13px !important;
    color: #44506a;
    font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary);
}

.site-navbar .nav-link.active::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 3px;
    border-radius: 10px;
    background: var(--primary);
    content: "";
}

.dropdown-menu {
    padding: 10px;
    border-radius: 16px;
}

.dropdown-item {
    padding: 10px 13px;
    border-radius: 10px;
}

.dropdown-item:hover {
    background: #eef2ff;
    color: var(--primary);
}

.language-button {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
    font-weight: 700;
}

.login-button,
.account-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
            var(--primary),
            var(--primary-dark));
    color: var(--white);
    font-weight: 700;
}

.login-button:hover,
.account-button:hover {
    color: var(--white);
    transform: translateY(-1px);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 105px 0;
    background:
        radial-gradient(circle at 10% 10%,
            rgba(122, 144, 255, 0.28),
            transparent 28%),
        linear-gradient(135deg,
            #182b75 0%,
            #3157d5 48%,
            #6f42c1 100%);
    color: var(--white);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.hero-orb-one {
    top: -130px;
    right: -80px;
    width: 390px;
    height: 390px;
}

.hero-orb-two {
    bottom: -170px;
    left: 25%;
    width: 330px;
    height: 330px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-title {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero-description {
    max-width: 670px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
    line-height: 1.8;
}

.hero-search {
    display: flex;
    max-width: 760px;
    margin-top: 31px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 50px rgba(13, 24, 75, 0.28);
}

.hero-search .form-select {
    max-width: 180px;
    border: 0;
    border-right: 1px solid var(--border-color);
    border-radius: 11px 0 0 11px;
}

.hero-search .form-control {
    min-height: 52px;
    border: 0;
    box-shadow: none;
}

.hero-search-button {
    min-width: 115px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.hero-search-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.hero-all-terms {
    display: inline-block;
    margin-top: 19px;
    color: var(--white);
    font-weight: 700;
}

.hero-all-terms:hover {
    color: #dce4ff;
}

.hero-panel {
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 65px rgba(13, 24, 75, 0.25);
    backdrop-filter: blur(18px);
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 17px;
    font-weight: 800;
}

.online-dot {
    width: 11px;
    height: 11px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: #52edc8;
    box-sizing: content-box;
}

.term-preview {
    padding: 24px;
    border-radius: 20px;
    background: var(--white);
    color: var(--text-dark);
}

.term-preview small {
    color: var(--text-muted);
    font-weight: 700;
}

.term-preview h3 {
    margin: 4px 0 18px;
    font-size: 1.48rem;
    font-weight: 800;
}

.term-preview h4 {
    margin: 4px 0 15px;
    color: var(--primary);
    font-size: 1.12rem;
    font-weight: 800;
}

.term-preview p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.mini-stat {
    height: 100%;
    padding: 13px 7px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
}

.mini-stat strong,
.mini-stat span {
    display: block;
}

.mini-stat strong {
    font-size: 1.15rem;
}

.mini-stat span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
}

.section-spacing {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin: 7px 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 650px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-kicker {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.filter-pills {
    display: inline-flex;
    gap: 7px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--white);
}

.filter-link {
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.filter-link:hover {
    color: var(--primary);
}

.filter-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 19px rgba(49, 87, 213, 0.22);
}

.popular-section {
    background: var(--white);
}

.popular-cloud {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #e8ecf6;
    border-radius: 30px;
    background:
        radial-gradient(circle at center,
            rgba(49, 87, 213, 0.09),
            transparent 55%),
        #f8faff;
    box-shadow: var(--shadow);
}

.cloud-term {
    position: absolute;
    top: var(--y);
    left: var(--x);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 14px;
    font-size: var(--s);
    font-weight: 800;
    transform: rotate(var(--r));
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cloud-term:hover {
    transform: translateY(-5px) rotate(var(--r));
    box-shadow: 0 14px 30px rgba(39, 54, 112, 0.16);
}

.cloud-primary {
    background: #e6ebff;
    color: #2949bd;
}

.cloud-secondary {
    background: #efe7ff;
    color: #6938ae;
}

.cloud-tertiary {
    background: #ddf7f2;
    color: #087c70;
}

.people-section {
    background:
        linear-gradient(180deg,
            var(--soft-background),
            #edf1f9);
}

.ranking-filters {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.people-carousel {
    padding: 0 75px;
}

.user-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 25px;
    align-items: center;
    min-height: 245px;
    padding: 38px;
    border: 1px solid var(--border-color);
    border-radius: 27px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-badge {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff4d6;
    color: #a56a00;
    font-size: 1.1rem;
    font-weight: 800;
}

.user-avatar {
    display: flex;
    width: 98px;
    height: 98px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 6px solid #eef1ff;
    border-radius: 50%;
    background: linear-gradient(135deg,
            var(--primary),
            var(--secondary));
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 800;
    overflow: hidden;
}

.user-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.user-information h3 {
    margin: 4px 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
}

.user-information p {
    margin: 0;
    color: var(--text-muted);
}

.user-metrics {
    display: flex;
    gap: 12px;
}

.metric-box {
    width: 165px;
    padding: 18px;
    border-radius: 17px;
    background: var(--soft-background);
    text-align: center;
}

.metric-box strong,
.metric-box span {
    display: block;
}

.metric-box strong {
    color: var(--primary);
    font-size: 1.55rem;
}

.metric-box span {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.people-carousel .carousel-control-prev,
.people-carousel .carousel-control-next {
    width: 52px;
}

.carousel-arrow {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(31, 50, 112, 0.18);
    font-size: 2rem;
    line-height: 1;
}

.terms-page-header {
    padding: 75px 0;
    background:
        radial-gradient(circle at 80% 20%,
            rgba(120, 139, 255, 0.35),
            transparent 25%),
        linear-gradient(135deg,
            #192c78,
            #3f62dc);
    color: var(--white);
}

.terms-page-header .section-kicker {
    color: #cdd7ff;
}

.terms-page-header h1 {
    margin: 10px 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
}

.terms-page-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
}

.terms-content {
    padding-top: 50px;
    padding-bottom: 90px;
}

.search-panel {
    position: relative;
    margin-top: -90px;
    margin-bottom: 45px;
    padding: 27px;
    border: 1px solid var(--border-color);
    border-radius: 23px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-panel .form-label {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.search-panel .form-control,
.search-panel .form-select {
    border-color: var(--border-color);
    border-radius: 13px;
}

.search-page-button {
    min-height: 48px;
    border-radius: 13px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.search-page-button:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.clear-search {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
}

.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-heading h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
}

.results-heading span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e8edff;
    color: var(--primary);
    font-weight: 800;
}

.term-table-wrapper {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 15px 38px rgba(31, 50, 112, 0.08);
}

.term-table {
    margin: 0;
}

.term-table thead th {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    background: #f3f6fc;
    color: #536078;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.term-table tbody td {
    padding: 20px 18px;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.term-table tbody strong {
    color: var(--text-dark);
}

.term-details-link {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.term-mobile-card {
    margin-bottom: 17px;
    padding: 23px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(31, 50, 112, 0.07);
}

.term-language-label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.term-mobile-card h3 {
    margin: 4px 0 17px;
    font-size: 1.35rem;
    font-weight: 800;
}

.term-mobile-card h4 {
    margin: 4px 0 14px;
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 800;
}

.term-mobile-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

.page-link {
    color: var(--primary);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    border-color: var(--primary);
    background: var(--primary);
}

.guide-card {
    padding: 35px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.site-footer {
    padding: 70px 0 0;
    background: #10172b;
    color: var(--white);
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.site-footer h5 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 800;
}

.footer-text {
    max-width: 430px;
    color: #aeb8cf;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: #bdc7dc;
}

.footer-links a:hover {
    color: var(--white);
}

.demo-badge {
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #aeb8cf;
    font-size: 0.68rem;
}

.footer-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-stat {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.footer-stat strong,
.footer-stat span {
    display: block;
}

.footer-stat strong {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1.08rem;
}

.footer-stat span {
    color: #aeb8cf;
    font-size: 0.73rem;
}

.footer-bottom {
    margin-top: 55px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9aa6c0;
    text-align: center;
}

/* Planshetlar */
@media (max-width: 991.98px) {
    .site-navbar {
        min-height: 70px;
    }

    .navbar-collapse {
        margin-top: 16px;
        padding: 18px;
        border: 1px solid var(--border-color);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .site-navbar .nav-link.active::after {
        display: none;
    }

    .hero-section {
        padding: 80px 0;
        text-align: center;
    }

    .hero-description,
    .hero-search {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-panel {
        max-width: 620px;
        margin: auto;
        text-align: left;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    /*
     * Mashhur atamalar: planshet va tor noutbuk ekranlari.
     * Desktopdagi absolute joylashuv 17 ta atama uchun bu o'lchamda
     * siqilib qoladi. Shu sabab 991.98px gacha cloud flex-wrap rejimiga o'tadi.
     * Bu qoida faqat mashhur atamalar blokiga ta'sir qiladi.
     */
    .popular-cloud {
        display: flex;
        min-height: auto;
        flex-wrap: wrap;
        gap: 12px 14px;
        align-items: center;
        justify-content: center;
        padding: 42px 24px;
    }

    .cloud-term {
        position: static;
        max-width: calc(50% - 14px);
        padding: 7px 12px;
        font-size: clamp(0.82rem, calc(var(--s) * 0.58), 1.5rem);
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        transform: rotate(var(--r));
    }

    .cloud-term:hover {
        transform: translateY(-3px) rotate(var(--r));
    }

    .ranking-filters {
        align-items: flex-start;
        flex-direction: column;
    }

    .people-carousel {
        padding: 0 58px;
    }

    .user-card {
        grid-template-columns: auto auto 1fr;
    }

    .user-metrics {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .metric-box {
        flex: 1;
        max-width: 230px;
    }
}

/* Telefonlar */
@media (max-width: 575.98px) {
    .brand-wrapper small {
        display: none;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .hero-section {
        padding: 65px 0;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
        gap: 8px;
        border-radius: 17px;
    }

    .hero-search .form-select {
        max-width: none;
        border: 1px solid var(--border-color);
        border-radius: 11px;
    }

    .hero-search .form-control {
        border: 1px solid var(--border-color);
        border-radius: 11px;
    }

    .hero-search-button {
        min-height: 48px;
    }

    .hero-panel {
        padding: 16px;
        border-radius: 21px;
    }

    .term-preview {
        padding: 19px;
    }

    .section-spacing {
        padding: 65px 0;
    }

    .filter-pills {
        width: 100%;
        overflow-x: auto;
    }

    .filter-link {
        flex: 1;
        text-align: center;
    }

    .popular-cloud {
        display: flex;
        min-height: auto;
        flex-wrap: wrap;
        gap: 13px;
        align-items: center;
        justify-content: center;
        padding: 32px 15px;
    }

    .cloud-term {
        position: static;
        max-width: 100%;
        padding: 7px 11px;
        font-size: clamp(0.78rem, calc(var(--s) * 0.68), 1.45rem);
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        transform: rotate(var(--r));
    }

    .ranking-filters {
        gap: 10px;
    }

    .people-carousel {
        padding: 0 24px;
    }

    .user-card {
        display: flex;
        min-height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 27px 19px;
        text-align: center;
    }

    .user-avatar {
        width: 82px;
        height: 82px;
    }

    .user-metrics {
        width: 100%;
        flex-direction: column;
    }

    .metric-box {
        width: 100%;
        max-width: none;
    }

    .people-carousel .carousel-control-prev,
    .people-carousel .carousel-control-next {
        width: 30px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }

    .terms-page-header {
        padding: 55px 0 90px;
    }

    .search-panel {
        margin-top: -70px;
        padding: 20px;
    }

    .footer-stat-grid {
        grid-template-columns: 1fr;
    }
}

.user-avatar-button::after {
    display: none;
}

.navbar-user-avatar {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 3px solid #eef1ff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(31, 50, 112, 0.18);
}

.avatar-placeholder {
    background: linear-gradient(135deg, #3157d5, #6f42c1);
    color: white;
    font-size: 1.15rem;
}

/* Edge va Internet Explorer parol ko‘rsatish belgisini yashirish */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}