/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    --bg: #efefef;
    --text: #1F1F1F;
    --card: #ffffff;
    --accent: cornflowerblue;
    --muted: #888;
    --border: rgba(0,0,0,0.1);
    --hover: #d4f1ec;
    --icon: cornflowerblue;
    --loader: rgba(255, 255, 255, 0.6);

}

/* DARK MODE */
.dark {
    --bg: #232323;
    --text: #e4e4e4;
    --card: #434343;
    --accent: #FFC107;
    --muted: #aaaaaa;
    --border: rgba(255,255,255,0.1);
    --hover: rgba(255,255,255,0.05);
    --icon: #dfdfdf;
    --loader: rgb(0 0 0 / 56%);
}

/* BODY */
body {
    font-family: Calibri, Arial, sans-serif;
    font-size: 15px;
    line-height: 21px;
    color: var(--text);
    background: var(--bg);
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* ICON */
i {
    font-size: 18px;
}

/* LOADER */
#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--loader);
    backdrop-filter: blur(4px);
    z-index: 9;
    align-items: center;
    justify-content: center;
}
#loader.show {
    display: flex;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100,149,237,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* APP */
#app {
    max-width: 700px;
    margin: 0 auto;
    min-height: 250px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.tepa {
    position: sticky;
    top: 0;
    z-index: 99;
    display: flex;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: 52px;
    background: var(--card);
    box-shadow: 0 1px 3px var(--border);
    border-radius: 0 0 8px 8px;
}

.tepa a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
    transition: background .15s;
}

.tepa a .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tepa i {
    font-size: 22px;
    color: var(--icon);
}

@media (hover: hover) {
    .tepa a:hover { background: var(--hover); }
}

.tepa a:active { background: var(--hover); }

/* LOGO */
.logo {
    height: 50px;
    line-height: 50px;
    text-align: center;
}

/* NOTIFICATION */
#bildirishnoma {
    position: fixed;
    top: -50px;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    z-index: 999;
    transition: top .4s ease;
}

/* PROFILE */
.fonprofil {
    background: var(--card);
    border-radius: 10px;
    margin: 10px;
    padding-bottom: 10px;
}

.avatar {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}
.av-img {
    border-radius: 50%;
    object-fit: cover;
}

.av-harf {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.av-chap   { float: left; }
.av-ong    { float: right; }
.av-center { margin: 0 auto; }

.avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 2px 6px var(--border);
}

.fonism {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding: 6px;
}

.fonnik {
    font-size: 20px;
    color: var(--accent);
    font-weight: bold;
    text-align: center;
}

/* TABLE MENU */
.table {
    display: flex;
    margin: 0 8px;
    font-size: 13px;
}

.table > * {
    flex: 1;
    background: var(--card);
    border-radius: 8px;
    margin: 3px;
    display: flex;
    justify-content: center;
}

.table i {
    font-size: 18px;
    color: var(--icon);
}

.table_menu {
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table a {
    color: var(--accent);
}

@media (hover: hover) {
    .table a:hover {
        background: var(--hover);
    }
}

.table a:active {
    background: var(--hover);
}

/* POST */
.post {
    background: var(--card);
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
}

.post2 {
    padding: 5px;
    font-size: 14px;
}

.xra {
    font-size: 13px;
    color: var(--muted);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: var(--card);
    color: var(--text);
    border-radius: 14px;
    padding: 24px 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.modal-box p {
    font-size: 15px;
    margin-bottom: 18px;
}

.modal-btns {
    display: flex;
    gap: 10px;
}

.modal-btn-ha {
    flex: 1;
    padding: 9px;
    background: #e8405a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.modal-btn-yoq {
    flex: 1;
    padding: 9px;
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.modal-btn-ha:hover,
.modal-btn-yoq:hover { opacity: .8; }

/* TAXRIR */
.taxrir-field {
    padding: 5px;
    margin-bottom: 4px;
}

.taxrir-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.taxrir-input:focus {
    border-color: var(--accent);
}

.taxrir-textarea {
    resize: none;
    min-height: 90px;
    line-height: 1.5;
    overflow-y: hidden;
}

.taxrir-btn {
    width: 100%;
    padding: 9px;
    background: cornflowerblue;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}

.taxrir-btn:hover { opacity: .85; }
.taxrir-btn:active { opacity: .7; }

/* SAHIFA TEPA */
.sahifa-tepa {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 0;
}

.sahifa-tepa-info {
    flex: 1;
}

.sahifa-tepa-ism {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.sahifa-tepa-kichik {
    font-size: 12px;
    color: var(--muted);
}

/* ORQA TUGMA */
.orqa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 17px 7px 17px;
    margin: 0;
    background: var(--card);
    border-radius: 20px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    box-shadow: 0 1px 3px var(--border);
    transition: color .2s, box-shadow .2s;
}

.orqa:hover  { color: var(--text); box-shadow: 0 2px 6px var(--border); }
.orqa i      { font-size: 13px; }

/* QIDIRUV */
.qidiruv-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 0 12px;
    margin-bottom: 8px;
    transition: border-color .2s;
}

.qidiruv-wrap:focus-within {
    border-color: cornflowerblue;
}

.qidiruv-wrap i {
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
}

.qidiruv-input {
    flex: 1;
    height: 36px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
}

.qidiruv-tozala {
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    border-radius: 50%;
    transition: color .2s;
}

.qidiruv-tozala:hover { color: var(--text); }

/* ONLINE */
.online-karta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 6px;
    transition: background .2s;
}

.online-karta:hover { background: var(--hover); }

.online-av {
    position: relative;
    flex-shrink: 0;
}

.online-yashil {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--card);
}

.online-info {
    flex: 1;
    min-width: 0;
}

.online-ism {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.online-vaqt {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* RASMLAR */
.rasm-yuklash-wrap {
    margin-bottom: 10px;
}

.rasm-yuklash-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--card);
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--muted);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.rasm-yuklash-btn:hover {
    border-color: cornflowerblue;
    color: cornflowerblue;
}

.rasm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.rasm-karta {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
}

.rasm-karta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rasm-asosiy-belgi {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 13px;
}

.rasm-amallar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity .2s;
}

.rasm-karta:hover .rasm-amallar {
    opacity: 1;
}

/* Mobilda doim ko'rinsin */
@media (hover: none) {
    .rasm-amallar { opacity: 1; }
}

.rasm-btn-asosiy,
.rasm-btn-ochir {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: opacity .2s;
}

.rasm-btn-asosiy { background: rgba(255,255,255,.2); color: #f59e0b; }
.rasm-btn-ochir  { background: rgba(255,255,255,.2); color: #ef4444; }

.rasm-bosh {
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
}

.rasm-bosh i { font-size: 40px; margin-bottom: 10px; display: block; }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.show { display: flex; }

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-yop {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: .7;
    transition: opacity .2s;
}

.lightbox-yop:hover { opacity: 1; }

.chat-bosh-link {
    margin-top: 12px;
    display: inline-block;
    font-size: 13px;
    color: cornflowerblue;
    border-bottom: 1px dashed cornflowerblue;
}

/* CHAT RO'YXAT */
.chat-karta,
.sayt-chat-karta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
    cursor: pointer;
}

.chat-karta:hover,
.sayt-chat-karta:hover { background: var(--hover); }

/* Sayt chati ikonka doirasi */
.sayt-chat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: cornflowerblue;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    color: #fff;
}

.chat-av {
    position: relative;
    flex-shrink: 0;
}

.chat-av .av-img,
.chat-av .av-harf {
    border-radius: 50%;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-tepa {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

.chat-ism {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-vaqt {
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.chat-oxirgi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.chat-oxirgi-matn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.oxirgi-ism {
    color: var(--text);
    font-weight: 500;
    margin-right: 3px;
}

.oqilmagan-badge {
    background: cornflowerblue;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* CHAT XONA */
.xona-tepa {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 52px;
    z-index: 9;
}

.xona-tepa-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.xona-ism {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.xona-status {
    font-size: 12px;
    color: #22c55e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 16px;
    line-height: 16px;
}

.xabarlar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.xabarlar::-webkit-scrollbar {
    display: none;
}

.xabar-bosh {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    pointer-events: none;
}

.xabar-qator {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.xabar-qator.mening {
    flex-direction: row-reverse;
}

.xabar-av {
    flex-shrink: 0;
    width: 30px;
}

.xabar-bubble {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.mening .xabar-bubble {
    background: cornflowerblue;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.uning .xabar-bubble {
    background: var(--card);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.xabar-vaqt {
    font-size: 10px;
    opacity: .7;
    white-space: nowrap;
    display: block;
    text-align: right;
    margin-top: 3px;
}
.xabar-pending {
    font-size: 9px;
    vertical-align: middle;
}

.xabar-ism {
    font-size: 12px;
    font-weight: 600;
    color: cornflowerblue;
    margin-bottom: 3px;
}

.xabar-cit {
    font-size: 13px;
    padding: 5px 8px;
    margin-bottom: 5px;
    border-radius: 8px;
    border-left: 3px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.1);
    opacity: 0.85;
    overflow: hidden;
    max-width: 220px;
}

.xabar-cit-ism {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.uning .xabar-cit {
    border-left-color: cornflowerblue;
    background: rgba(100,100,255,0.07);
}

/* XABAR INPUT */
.xabar-input-wrap {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: fixed;
    bottom: 8px;
    left: max(8px, calc(50vw - 342px));
    right: max(8px, calc(50vw - 342px));
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

body.chat-xona footer,
body.chat-xona .tepa {
    display: none !important;
}

body.chat-xona {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.chat-xona main {
    padding: 0;
    margin: 0;
}

body.chat-xona .xona-tepa {
    position: fixed;
    top: 0;
    left: max(0px, calc(50vw - 350px));
    right: max(0px, calc(50vw - 350px));
    z-index: 20;
}

body.chat-xona .xabarlar {
    position: fixed;
    top: 57px;
    left: max(0px, calc(50vw - 350px));
    right: max(0px, calc(50vw - 350px));
    bottom: 64px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Xona operatsiyalari tugmasi */
.xona-ops-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

.xona-ops-btn:hover {
    background: var(--hover);
}

/* Xona ops dropdown menyusi */
.xona-ops-menyu {
    position: fixed;
    z-index: 50;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-direction: column;
    min-width: 210px;
    overflow: hidden;
}

.xom-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
}

.xom-item:hover {
    background: var(--hover);
}

.xom-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--muted);
}

.xom-blok { color: #f59e0b; }
.xom-blok i { color: #f59e0b; }

.xom-ochir { color: #e8405a; }
.xom-ochir i { color: #e8405a; }

/* Xabar menyusi */
.xabar-menyu-fon {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.xabar-menyu {
    position: fixed;
    z-index: 100;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    flex-direction: column;
    min-width: 170px;
    overflow: hidden;
}

.xm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
}

.xm-item:hover {
    background: var(--hover);
}

.xm-item i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: var(--muted);
}

.xm-ochir {
    color: #e8405a;
}

.xm-ochir i {
    color: #e8405a;
}

/* Pastga scroll tugmasi — o'ng yuqori */

.pastga-btn {
    position: fixed;
    top: 60px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 50;
}

/* Yangi xabar badge — pastda markaz */
.yangi-xabar-badge {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 50;
    white-space: nowrap;
}

.mode-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.mode-bar-chiziq {
    width: 3px;
    min-height: 36px;
    border-radius: 3px;
    flex-shrink: 0;
}

.mode-bar-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mode-bar-nom {
    font-size: 13px;
    font-weight: 600;
}

.mode-bar-matn {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-bar-yop {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    font-size: 16px;
    flex-shrink: 0;
}

.mode-bar-qator {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

/* Bloklangan bildirim */
.blok-bildirim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--muted);
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
}

.blok-bildirim i {
    color: #e8405a;
    font-size: 14px;
}

.blok-dan-olish-btn {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    border: none;
}

.blok-dan-olish-btn:hover {
    background: var(--hover);
}

.blok-dan-olish-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.xabar-input {
    flex: 1;
    height: 40px;
    min-height: 40px;
    max-height: 200px;
    padding: 10px 14px;
    box-sizing: border-box;
    background: var(--bg);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    outline: none;
    resize: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    line-height: 20px;
}

.xabar-input:focus { outline: none; }
.xabar-input::-webkit-scrollbar { display: none; }

.xabar-yuborish {
    width: 40px;
    height: 40px;
    background: cornflowerblue;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
    flex-shrink: 0;
}

.xabar-yuborish:hover { opacity: .85; }

/* ERROR */
.err404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
    flex: 1;
}

.err404-kod {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 12px;
    display: block;
}

.err404-matn {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.err404-kichik {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
}

.err404-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: cornflowerblue;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s;
}

.err404-btn:hover { opacity: .85; }










footer {
    margin: 0 auto;
    text-align: center;
    padding: 1.5rem;
    color: var(--accent);
    font-size: .8rem;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--card);
    height: 50px;
    box-shadow: 0 1px 3px var(--border);
    max-width: 700px;
    position: sticky;
    bottom: 0;
    z-index: 99;
    border-radius: 5px 5px 0 0;
}
footer > * {
    flex: 1;
    display: flex;
    justify-content: center;
}
footer > *:first-child {
    justify-content: flex-start;
}
footer > *:last-child {
    justify-content: flex-end;
}
footer i {
    font-size: 15px;
    color: var(--icon);
}
footer span{
    cursor: pointer;
    color: var(--accent);
}
footer a {
    color: var(--accent);
    -webkit-tap-highlight-color: transparent;
}
