@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Light Mode (default) */
:root {
    /* Primary ranglar */
    --primary-blue: #0066ff;
    --primary-blue-light: #1c96fa;
    --primary-blue-hover: #1878e8;
    --primary-blue-secondary: #4a90e2;
    --primary-blue-bg: #87c9ff;
    --primary-blue-bg-light: #a8d8ff;
    --primary-blue-bg-lighter: #BBDEFB;
    --primary-blue-text: #007BFF;
    --gold: #f59e0b;

    /* Background ranglar */
    --bg-header: #0066ff;
    --bg-mail-ozim: #BBDEFB;
    --bg-mail-boshqa: white;
    --bg-btn: #eee;
    --bg-cit: #eee;
    --bg-music: #87c9ff;
    --bg-music-progress: #eee;
    --bg-login-reg: #d5e6ff;
    --dark-light-ikon: #025ae0;
    --color-header: white;
    --color-box-head: white;
    --bg-header-badge: #E23030;
    --color-header-badge: #fff;
    --bg-body: beige;
    --bg-primary: white;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f1f1;
    --bg-light-gray: #eeeeee;
    --bg-input: #eeeeee;
    --bg-gradient-blue: linear-gradient(180deg, #BBDEFB, #1c96fa);
    --bg-gradient-orange: linear-gradient(180deg, #FFAB91, #D84315);
    --bg-gradient-light: linear-gradient(180deg, #e4f2fd, #87c9ff);

    /* Text ranglar */
    --text-textarea: #333;
    --color-btn: gray;
    --color-cit: gray;
    --text-mail-time: gray;
    --text-primary: #1E293B;
    --text-secondary: #64748b;
    --text-muted: gray;
    --text-light-gray: #777;
    --text-slate: slategray;
    --text-dark-gray: #4d5e7a;
    --text-white: white;

    /* Border ranglar */
    --border-light: #dcdcdc;
    --border-gray: #eeeeee;
    --border-medium: #ddd;
    --border-dark: #cecece;
    --border-light-gray: #d9d8d8;
    --border-blue: #1c96fa;

    /* Status/Alert ranglar */
    --success-bg: #63e696;
    --success-light: #0CBC87;
    --success-bg-light: #E6F8F3;
    --success-border: #93fddd;
    --error-bg: rgb(255, 183, 0);
    --error-light: #D6293E;
    --warning-bg: #ffd3d3;
    --warning-text: #ec4141;

    /* Online/Offline ranglar */
    --online-color: #ffc048;
    --online-border: orange;
    --offline-color: #e0e0e0;

    /* Shadow */
    --shadow-light: 0px 4px 5px rgb(0, 0, 0, 0.3);
    --shadow-medium: 0 0 15px rgba(0, 0, 0, 0.1);
    --shadow-small: 0 2px 2px rgb(0, 0, 0, 0.1);
    --shadow-blue: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Primary ranglar */
    --primary-blue: #60a5fa;
    --primary-blue-light: #b3cffd;
    --primary-blue-hover: #2563eb;
    --primary-blue-secondary: #60a5fa;
    --primary-blue-bg: #1e3a8a;
    --primary-blue-bg-light: #1e40af;
    --primary-blue-bg-lighter: #1d4ed8;
    --primary-blue-text: #60a5fa;
    --gold: #f59e0b;

    /* Background ranglar */
    --bg-header: #2D3748;
    --bg-mail-ozim: #2787F5;
    --bg-mail-boshqa: #1e293d;
    --bg-btn: #475569;
    --bg-cit: #475569;
    --bg-music: #94a3b8;
    --bg-music-progress: #94a3b8;
    --bg-login-reg: #374151;
    --dark-light-ikon: #475569;
    --color-header: #4C79F6;
    --color-box-head: #94a3b8;
    --bg-header-badge: #E23030;
    --color-header-badge: white;
    --bg-body: #0f172a;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --bg-light-gray: #374151;
    --bg-input: #374151;
    --bg-gradient-blue: linear-gradient(180deg, #1d4ed8, #3b82f6);
    --bg-gradient-orange: linear-gradient(180deg, #ea580c, #dc2626);
    --bg-gradient-light: linear-gradient(180deg, #4d5560, #334155);

    /* Text ranglar */
    --text-textarea: white;
    --color-btn: #94a3b8;
    --color-cit: #dcdcdc;
    --text-mail-time: #dcdcdc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light-gray: #9ca3af;
    --text-slate: #cbd5e1;
    --text-dark-gray: #d1d5db;
    --text-white: #eff0f1;

    /* Border ranglar */
    --border-light: #374151;
    --border-gray: #374151;
    --border-medium: #4b5563;
    --border-dark: #6b7280;
    --border-light-gray: #4b5563;
    --border-blue: #3b82f6;

    /* Status/Alert ranglar */
    --success-bg: #059669;
    --success-light: #10b981;
    --success-bg-light: #064e3b;
    --success-border: #047857;
    --error-bg: #dc2626;
    --error-light: #ef4444;
    --warning-bg: #7c2d12;
    --warning-text: #f87171;

    /* Online/Offline ranglar */
    --online-color: #fbbf24;
    --online-border: #f59e0b;
    --offline-color: #6b7280;

    /* Shadow */
    --shadow-light: 0px 4px 5px rgb(0, 0, 0, 0.5);
    --shadow-medium: 0 0 15px rgba(0, 0, 0, 0.3);
    --shadow-small: 0 2px 2px rgb(0, 0, 0, 0.2);
    --shadow-blue: 0 -2px 10px rgba(0, 0, 0, 0.3);
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
                radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
    }
}

/* Dark mode toggle button */


*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    max-width: 800px;
    margin: auto;
    background-color: var(--bg-body);
    border: 1px solid var(--border-light);
    border-radius: 0 0 10px 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    word-break: break-word;   /* <-- SHU QATORNI QO‘SHING */
    overflow-wrap: anywhere;  /* <-- BU HAM YORDAM BERADI */
}

/*Links*/
a {
    text-decoration: none;
    color: var(--text-primary);
}

.link {
    color: var(--text-primary);
    padding: 10px 5px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-gray);
}

.link a {
    color: var(--text-primary);
    display: block;
}

.link-margin {
    padding: 15px 10px 30px 8px;
    border: 1px solid var(--border-gray);
    margin: 10px;
    border-radius: 10px;
    background: var(--bg-primary);
}

footer a {
    color: var(--text-primary);
}

footer{
    padding: 10px;
    background: var(--primary-blue-bg);
    border-radius: 0 0 10px 10px;
}

/*Box icon*/
.box-ikon{
    font-size: 20px;
    margin-right: 3px;
    color: var(--text-muted);
}

.mail-envelope {
    float: right;
    color: var(--primary-blue-light);
    transform: translateY(13px);
}

.mail-envelope .box-ikon {
    color: var(--primary-blue-text);
    font-size: 25px;
}

/*Title classes*/
.aut {
    background: var(--primary-blue-bg-light);
    color: var(--primary-blue-light);
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-blue);
}

/*Login reg forms*/
.input-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    margin: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px;
    background-color: var(--bg-primary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    width: 100%;
    max-width: 700px;
}

.form-group {
    justify-content: center;
    text-align: center;
    justify-items: center;
    margin-bottom: 15px;
}

.input {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    border: 2px solid var(--border-medium);
    border-radius: 5px;
    outline: none;
    transition: 0.2s ease-in-out;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.input:hover {
    border: 2px solid #0066ff60;
    box-shadow: 0 0 0 2px #0066ff40;
}

.select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 2px solid var(--border-medium);
    color: var(--text-muted);
    outline: none;
    background: var(--bg-primary);
}
.select:hover {
    border: 2px solid #0066ff60;
    box-shadow: 0 0 0 2px #0066ff40;
}
.button.kirish {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-blue-secondary);
    color: var(--text-white);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button.reg {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-light-gray);
    color: var(--text-dark-gray);
    text-align: center;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.button.reg a{
    color: var(--text-dark-gray);
}

.button.kirish:hover {
    background-color: var(--primary-blue-hover);
}
.button.submit {
    width: 150px;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 6px;
    margin: 6px 0;
    text-align: center;
    background: var(--primary-blue-secondary);
    color: var(--text-white);
}
.button-cont {
    text-align: center;
    padding: 6px;
}
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    background: var(--bg-light-gray);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: 0.3s ease;
}

.step.active {
    background: var(--primary-blue);
    color: var(--text-white);
}

.line {
    width: 40px;
    height: 2px;
    background: var(--border-light-gray);
    margin: 0 5px;
}

.prev {
    color: var(--text-muted);
}

/*Foto classlari*/
.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar{
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 2px solid var(--border-gray);
    float: left;
    margin: 0 5px;
    background-color: var(--bg-primary);
}

.not-avatar{
    font-weight: 800;
    background: var(--bg-gradient-blue);
    color: var(--text-white);
    font-size: 20px;
    width: 60px;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 2px solid var(--border-gray);
    margin: 0 5px;
    float: left;
}

.not-avatar-girl{
    font-weight: 800;
    background: var(--bg-gradient-orange);
    color: var(--text-white);
    font-size: 20px;
    width: 60px;
    height: 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 2px solid var(--border-gray);
    float: left;
    margin: 0 5px;
}

.avatar-chat{
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    float: left;
    margin: 0 5px;
    background-color: var(--bg-primary);
    position: relative;
}

.not-avatar-chat{
    font-weight: 800;
    background: var(--bg-gradient-blue);
    color: var(--text-white);
    font-size: 20px;
    width: 55px;
    height: 55px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 5px;
    float: left;
    position: relative;
}

.avatar-chat-new{
    width: 55px;
    height: 55px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 5px;
    float: left;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.not-avatar-girl-chat{
    font-weight: 800;
    background: var(--bg-gradient-orange);
    color: var(--text-white);
    font-size: 20px;
    width: 55px;
    height: 55px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    float: left;
    margin: 0 5px;
    position: relative;
}

.lazy-avatar {
    background-color: #e0e0e0;       /* Kulrang fon */
    background-size: cover;
    background-position: center;
    filter: blur(2px);              /* Xiralik */
    transition: filter 0.3s ease;
}
.lazy-avatar.loaded {
    filter: blur(0);                /* To‘liq yuklangach tiniqlashadi */
}


/* Yangi story bor (ko‘rilmagan) */
.story-new {
    border: 3px solid #09f;   /* ko‘k border */
}

.muqova {
    width: 100%;
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.not-muqova {
    width: 100%;
    height: 150px;
    position: relative;
    background: var(--bg-gradient-light);
}

.avatar-nick-online-vaqt {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-width: 200px;
}

/*Info php lasslari*/
.info-table-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-gray);
}

.info-table-container .box-info {
    font-size: 30px;
    color: var(--text-muted);
}

.info-table-container .info-item{
    flex: 1;
    text-align: center;
    padding: 10px 0;
    transition: all 0.3s ease-in-out;
}

.info-table-container .info-item a {
    display: block;
}

.info-table-container .info-item:hover {
    background: var(--bg-secondary);
}

/* FOTO */
.ajax-update-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid var(--border-gray);
    padding: 1px;
}

#images-container {
    z-index: 2;
    position: absolute;
    bottom: -85px;
    right: 0;
    left: 0;
    background: var(--bg-primary);
    padding: 5px;
}

#images-container #image-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

#images-container .ajax-image-name {
    margin: 5px;
    display: none;
    font-weight: 500;
    font-size: 16px;
}

.up-image {
    position: absolute;
    bottom: 5px;
    right: 10px;
}

.foto-index {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 0.1rem solid var(--border-gray);
    margin: 5px;
    transition: 0.3s ease-out;
}

.foto-index:hover {
    transform: scale(1.05);
}

.foto-index-cont {
    background: var(--bg-primary);
    padding: 20px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
}

.foto-fetch-foto {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    border: 0.1rem solid var(--border-gray);
    padding: 3px;
}

/* Tepa panel */
header {
    background: var(--bg-header);
    color: var(--color-header);
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    left: 0;
}

header a {
    color: var(--bg-text);
}

.header-height {
    height: 48px;
}

.dark-light-mode {
    float: right;
}

.head-panel {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-header);
    box-shadow: var(--shadow-header);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

/* Tugmalar */
.head-items {
    position: relative;
    transition: color 0.3s;
}

.head-items a{
    display: block;
    color: var(--header-items-link);
}

.box-head {
    font-size: 25px;
    color: var(--color-box-head);
}

.head-items:hover {
    opacity: 0.8;
}

/* Bildirishnoma belgisi */
.notification {
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--bg-header-badge);
    color: var(--color-header-badge);
    font-size: 11px;
    font-weight: bold;
    padding: 0px 5px;
    border-radius: 50%;
    border: 1px solid var(--border-header-badge);
}

.lavozim {
    background: var(--primary-blue-bg-light);
    color: var(--primary-blue-light);
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-blue);
}

.count {
    padding: 0 6px;
    border-radius: 8px;
    background: var(--bg-light-gray);
    color: var(--text-muted);
    font-size: 12px;
    float: right;
}

.count.new {
    color: var(--text-white);
    background: red;
}

/*Header success and error elements*/
.error {
    background: repeating-linear-gradient(
            135deg,
            #ffffff26 0%,
            #ffffff26 25%,
            transparent 25%,
            transparent 50%,
            #ffffff26 50%,
            #ffffff26 75%,
            transparent 75%,
            transparent 100%
    );
    background-size: 30px 30px;
    background-color: var(--error-bg);
    color: var(--text-white);
    padding: 8px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    position: fixed;
    top: 50px;
    right: 0;
    left: 0;
    animation: error 3s linear infinite;
    z-index: 2;
}

@keyframes error {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 0;
    }
}

.success {
    background: repeating-linear-gradient(
            135deg,
            #ffffff26 0%,
            #ffffff26 25%,
            transparent 25%,
            transparent 50%,
            #ffffff26 50%,
            #ffffff26 75%,
            transparent 75%,
            transparent 100%
    );
    background-size: 30px 30px;
    background-color: var(--success-bg);
    color: var(--text-white);
    padding: 8px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    position: fixed;
    top: 50px;
    right: 0;
    left: 0;
    animation: success 3s linear infinite;
    z-index: 2;
}

@keyframes success {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 0;
    }
}

/*Post yoq bolsa yani content mavjud bolmasa*/
.not-content {
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--border-gray);
    text-align: center;
    margin: 15px;
}

/*Mail*/
.post-data-sana {
    text-align: center;
    position: sticky;
    top: 50px;
    z-index: 2;
    margin: 20px auto 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light-gray);
    background: var(--bg-light-gray);
    padding: 2px 12px;
    border-radius: 12px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-data-sana::before,
.post-data-sana::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    width: 40px;
    background-color: var(--text-light-gray);
    border-radius: 1px;
}

.time {
    color: var(--text-muted);
    font-size: 11px;
    float: right;
    margin-top: 5px;
    margin-right: 5px;
}

.online-vaqt {
    color: var(--text-muted);
    font-size: 12px;
}

/*Online and ofline*/
.online{
    width: 13px;
    height: 13px;
    background: var(--online-color);
    display: inline-block;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    position: absolute;
    right: 0px;
    top: 2px;
}

.offline{
    width: 13px;
    height: 13px;
    background: var(--offline-color);
    display: inline-block;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    position: absolute;
    right: 0;
    top: 2px;
}

.oddiyOnline{
    width: 8px;
    height: 8px;
    background: var(--online-color);
    display: inline-block;
    border-radius: 50%;
    border: 1px solid var(--online-border);
    margin: 0 5px;
}

.oddiyOffline{
    width: 8px;
    height: 8px;
    background: var(--offline-color);
    display: inline-block;
    border-radius: 50%;
    margin: 0 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    padding: 8px 4px;
}

.pagination .page {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-slate);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.pagination .page:hover{
    background: var(--primary-blue-text);
    color: var(--text-white);
    border-radius: 5px;
}

.pagination .active {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: var(--primary-blue-text);
    color: var(--text-white);
    pointer-events: none;
}

.pagination .prev, .pagination .next {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-slate);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.pagination .prev:hover, .pagination .next:hover {
    background: var(--primary-blue-text);
    color: var(--text-white);
}

.smile-size {
    max-width: 100px;
    max-height: 100px;
}

/*Right message ikon*/
.envelope-ikon {
    float: right;
    color: var(--primary-blue-light);
    transform: translateY(10px);
    font-size: 20px;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 5px 8px;
}

/*   STATUS CLASSLARI    */
.status-input-cont {
    background: var(--bg-primary);
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-gray);
}

.status-input-cont form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.status-input-cont .sts-input {
    border: none;
    outline: none;
    padding: 8px;
    border-radius: 20px;
    background: var(--bg-input);
    width: 100%;
    margin-right: 10px;
    color: var(--text-primary);
}

.status-input-cont .sts-button {
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 5px 7px;
    font-size: 18px;
}

.sts-message {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    padding: 10px;
    border-radius: 5px;
    margin: 8px 2px 2px 2px;
    background: var(--primary-blue-bg-lighter);
    color: var(--primary-blue-light);
    position: relative;
}

.sts-burchak {
    border-top: 4px solid transparent;
    border-bottom: 4px solid var(--primary-blue-bg-lighter);
    border-right: 4px solid transparent;
    border-left: 4px solid var(--primary-blue-bg-lighter);
    position: absolute;
    top: -8px;
    left: 6px;
}

.sts-item-display {
    padding: 3px 10px;
    display: flex;
    gap: 5px;
    margin-bottom: 4px;
}

.sts-like-count-index {
    color: var(--text-muted);
    font-size: 11px;
    padding: 0 4px;
    border-radius: 10px;
    margin-left: -5px;
}

.sts-items-index {
    border: 1px solid var(--border-light-gray);
    background: var(--bg-light-gray);
    padding: 2px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*  ELONLAR BOLIMI  */
.elon-post {
    margin-top: 20px;
    position: relative;
    font-size: 12px;
    background: var(--bg-tertiary);
    margin-left: 60px;
    margin-right: 50px;
    border-radius: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-small);
}

.elon-post .elon-burchak {
    border-top: 4px solid transparent;
    border-bottom: 4px solid var(--border-gray);
    border-right: 4px solid transparent;
    border-left: 4px solid var(--border-gray);
    position: absolute;
    top: -8px;
    left: 3px;
}

.elon-post .elon-button {
    background: #47aafd;
    color: var(--text-white);
    padding: 4px 15px;
    margin-top: 5px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 12px;
}

/*========== CHAT ============*/
.chat-gif {
    max-width:120px;
    max-height:120px;
    border-radius:8px;
}

/*=======TASMA===========*/
.tasma-type {
    color: var(--primary-blue-light);
    background: #1c96fa40;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.tasma-post {
    margin-top: 20px;
    position: relative;
    font-size: 12px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    margin-left: 60px;
    margin-right: 50px;
    border-radius: 6px;
    padding: 4px 10px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-small);
}

.tasma-post .tasma-burchak {
    border-top: 4px solid transparent;
    border-bottom: 4px solid var(--border-gray);
    border-right: 4px solid transparent;
    border-left: 4px solid var(--border-gray);
    position: absolute;
    top: -8px;
    left: 3px;
}

.tasma-foto {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    border: 0.1rem solid var(--border-gray);
    padding: 2px;
    margin: 5px 10px;
}

.tasma-dost {
    padding: 10px 0 20px 60px;
}

.tasma-new {
    float: right;
    background: var(--warning-bg);
    color: var(--warning-text);
    margin-top: -25px;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.tasma-buttons {
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    background: var(--bg-primary);
}

.tasma-read {
    color: var(--success-light);
    background: var(--success-bg-light);
    padding: 10px 20px;
    border: 1px solid var(--success-border);
    outline: none;
    border-radius: 6px;
}

.tasma-delete {
    background: var(--error-light);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    outline: none;
}

/* Dark mode JavaScript functions */
.theme-script {
    display: none;
}

/*//======= MUSIC =======//*/

/*//======= MUSIC =======//*/

.bb_code_music-player {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 10px 15px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 -3px 15px rgba(0,0,0,.6);
    font-family: "Poppins", sans-serif;
    transition: transform .3s ease;
}

.bb_code_control-btn,
.bb_code_close-btn {
    background: var(--bg-music);
    border: none;
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    font-size: 20px;
}
.bb_code_control-btn:hover,
.bb_code_close-btn:hover {
    background: #3b82f6;
}

.bb_code_close-btn {
    border-radius: 6px !important;
    background: #ef4444 !important;
}
.bb_code_close-btn:hover { background: #dc2626 !important; }

.bb_code_progress-container {
    flex: 1;
    height: 6px;
    background: var(--bg-music-progress);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.bb_code_progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 4px;
}

#bb_code_volumeRange {
    width: 90px;
    cursor: pointer;
    accent-color: var(--bg-music);
}

#bb_code_currentTime, #bb_code_duration {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: center;
}

.bb_code_mini-player-btn {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #3b82f6;
    border: none;
    color: #fff;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    transition: background .2s;
}
.bb_code_mini-player-btn:hover {
    background: #2563eb;
}

/* 📱 Mobil optimizatsiya */
@media (max-width: 600px) {
    .bb_code_music-player {
        flex-wrap: wrap;              /* tugmalar va elementlar sig‘masa pastga tushadi */
        justify-content: center;
    }

    .bb_code_progress-container {
        order: 5;                     /* progressni har doim oxirida chiqaradi */
        width: 100%;                  /* to‘liq kenglikni egallaydi */
        margin-top: 6px;
    }

    #bb_code_volumeRange {
        width: 70px;
    }

    .bb_code_control-btn,
    .bb_code_close-btn {
        padding: 6px;
        font-size: 18px;
    }
}


.music-link {
    padding: 6px 10px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    background: var(--bg-btn);
}