/* Hududiy bo'linma rahbarlari — client */

.sd-page {
    padding: 56px 0 88px;
}

.sd-tabs-wrap {
    max-width: 1100px;
    margin: 0 auto 32px;
}

.sd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sd-tabs__btn {
    appearance: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.sd-tabs__btn:hover {
    color: #0f172a;
    border-color: rgba(52, 199, 89, 0.45);
    background: rgba(52, 199, 89, 0.08);
}

.sd-tabs__btn.is-active {
    color: #fff;
    border-color: #34c759;
    background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
    box-shadow: 0 4px 14px rgba(52, 199, 89, 0.35);
}

.sd-loading {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.55);
}

.sd-card--clickable {
    cursor: pointer;
}

.sd-card--clickable:focus-visible {
    outline: 2px solid #34c759;
    outline-offset: 3px;
}

.sd-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #34c759;
}

.sd-card__footer i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.sd-card--clickable:hover .sd-card__footer i {
    transform: translateX(4px);
}

.sd-card__district {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-empty {
    text-align: center;
    padding: 56px 20px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.65);
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: linear-gradient(155deg, rgba(32, 38, 52, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.sd-detail-section {
    padding: 48px 0 88px;
}

.sd-detail-section .container {
    max-width: 760px;
}

.sd-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sd-detail-back:hover {
    color: #34c759;
    border-color: rgba(52, 199, 89, 0.4);
}

.sd-detail-empty {
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(32, 38, 52, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Batafsil — markaziy profil */

.sd-profile {
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    overflow: hidden;
}

.sd-profile__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 28px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-profile__photo {
    width: min(320px, 90%);
    max-width: 100%;
    aspect-ratio: 354 / 472;
    border-radius: 18px;
    overflow: hidden;
    background: #0d1117;
    border: 2px solid rgba(52, 199, 89, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    margin-bottom: 24px;
}

.sd-profile__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.sd-profile__name {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sd-profile__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sd-profile__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sd-profile__tag--green {
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
    border-color: rgba(52, 199, 89, 0.28);
}

.sd-profile__about-wrap {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-profile__section-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.sd-profile__about {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.sd-profile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
}

.sd-profile__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: 130px;
    padding: 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-profile__cell:nth-child(2n) {
    border-right: none;
}

.sd-profile__cell:nth-child(-n + 2) {
    border-top: none;
}

.sd-profile__cell-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
}

.sd-profile__cell-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.sd-profile__cell-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    word-break: break-word;
}

.sd-profile__cell-value a {
    color: #34c759;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sd-profile__cell-value a:hover {
    color: #5fe07a;
    text-decoration: underline;
}

@media (max-width: 575px) {
    .sd-profile__grid {
        grid-template-columns: 1fr;
    }

    .sd-profile__cell {
        border-right: none;
        min-height: 110px;
    }

    .sd-profile__cell:nth-child(-n + 2) {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sd-profile__cell:first-child {
        border-top: none;
    }
}

.sd-detail-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(32, 38, 52, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.sd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .sd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .sd-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

.sd-card--preview {
    width: 100%;
    margin: 0;
    border-radius: 14px;
}

.sd-card--preview .sd-card__preview-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sd-card--preview .sd-card__preview-photo {
    position: relative;
    overflow: hidden;
    background: #0d1117;
    aspect-ratio: 354 / 472;
}

.sd-card--preview .sd-card__preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.sd-card--preview:hover .sd-card__preview-photo img {
    transform: scale(1.04);
}

.sd-card--preview .sd-card__preview-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 10px 14px;
}

.sd-card--preview .sd-card__preview-name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.sd-card--preview .sd-card__badge {
    max-width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 5px 10px;
    gap: 5px;
}

.sd-card--preview .sd-card__badge i {
    font-size: 10px;
}

.sd-card--preview:hover {
    transform: translateY(-2px);
}

.sd-grid .sd-empty,
.sd-grid .sd-loading {
    grid-column: 1 / -1;
}

.sd-card {
    position: relative;
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(32, 38, 52, 0.98) 0%, rgba(18, 22, 32, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.sd-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.35), transparent 45%, transparent 55%, rgba(52, 199, 89, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.sd-card:hover {
    transform: translateY(-3px);
    border-color: rgba(52, 199, 89, 0.35);
    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(52, 199, 89, 0.12);
}

.sd-card__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

@media (min-width: 768px) {
    .sd-card__inner {
        flex-direction: row;
        align-items: stretch;
        min-height: 320px;
    }
}

.sd-card__media {
    position: relative;
    flex-shrink: 0;
    background: #0d1117;
}

@media (min-width: 768px) {
    .sd-card__media {
        width: 260px;
        max-width: 260px;
    }
}

.sd-card__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 354 / 472;
    max-height: 420px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sd-card__photo-wrap {
        height: 100%;
        min-height: 320px;
        max-height: none;
        aspect-ratio: auto;
    }
}

.sd-card__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.sd-card:hover .sd-card__photo-wrap img {
    transform: scale(1.03);
}

.sd-card__media-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #34c759 0%, rgba(52, 199, 89, 0.2) 100%);
    z-index: 2;
}

.sd-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 26px;
    min-width: 0;
}

@media (min-width: 768px) {
    .sd-card__content {
        padding: 28px 32px 30px 28px;
    }
}

.sd-card__head {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sd-card__name {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.sd-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
    border: 1px solid rgba(52, 199, 89, 0.28);
}

.sd-card__badge i {
    font-size: 12px;
    opacity: 0.9;
}

.sd-card__about {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sd-card__info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

@media (min-width: 576px) {
    .sd-card__info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 16px;
    }

    .sd-card__info-item--wide {
        grid-column: 1 / -1;
    }
}

.sd-card__info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sd-card:hover .sd-card__info-item {
    border-color: rgba(255, 255, 255, 0.09);
}

.sd-card__info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    color: #34c759;
    background: rgba(52, 199, 89, 0.12);
}

.sd-card__info-text {
    min-width: 0;
    flex: 1;
}

.sd-card__info-label {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.sd-card__info-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    word-break: break-word;
}

.sd-card__info-value a {
    color: #34c759;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sd-card__info-value a:hover {
    color: #5fe07a;
    text-decoration: underline;
}
