body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    font-size: 18px;
    background: #f5f7fa;
}
td {
    color: #475569;
    font-size: 17px;
    padding: 8px;
}
div {
    text-decoration: none;
    font-size: 16px;
}
hr {
    color: #e2e8f0;
    background: #e2e8f0;
    height: 1px;
    border: none;
}
a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    color: #1e40af;
    text-decoration: underline;
}
.navspace {
    margin-right: 5px;
}
a.toplink {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}
.toplink img {
    border: 0;
    vertical-align: middle;
}
a:hover.toplink {
    color: #2563eb;
    background: #eef2ff;
    border-color: #2563eb;
    transform: translateY(-2px);
}
input, .txtarea {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1e293b;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
}
select {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1e293b;
    font-size: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 14px;
}
.button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    color: white;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.editor {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    margin: 0;
}
.fullheight {
    height: 100%;
}
.maintable {
    background: #ffffff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    overflow: hidden;
}
.main {
    padding: 24px;
    font-size: 18px;
    line-height: 1.6;
    color: #1e293b;
}
.content {
    padding: 5px;
    font-size: 16px;
}
.content a {
    color: #2563eb;
}
.content a:hover {
    color: #1e40af;
}
.topmenu {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #475569;
    font-size: 15px;
    white-space: nowrap;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 20px;
}
.topblock {
    background: #ffffff;
    padding: 2px;
}
.mainblock {
    width: 100%;
}
.leftblock {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 16px 12px;
    vertical-align: top;
}
.rightblock {
    text-align: right;
    padding: 0px;
}
.bottomblock {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}
.paneltable {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8fafc;
    padding: 0px;
}
.panelname {
    border-bottom: 2px solid #2563eb;
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    padding: 8px 4px;
    margin-bottom: 12px;
}
.panelcontent {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
}
.contentname {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 3px solid #2563eb;
    padding: 8px 4px;
    margin-bottom: 16px;
}
.message {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: #fef9c3;
    border: 1px solid #facc15;
    border-radius: 12px;
    padding: 12px;
}
.small {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #64748b;
    font-size: 12px;
    font-weight: normal;
}
.x-small {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #94a3b8;
    font-size: 11px;
    font-weight: normal;
}
.bord {
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
}
.caption {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #1e293b;
    font-size: 14px;
    font-weight: bold;
    background: #f1f5f9;
    padding: 10px;
}
.imgbord {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin: 5px;
}
.aimg {
    border: 0;
    vertical-align: middle;
    margin: 1px;
}
.adminlink {
    padding: 4px;
}
.page {
    font-size: 16px;
    padding: 5px;
}
.articlename {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    padding: 5px 8px 10px 8px;
}
.article {
    font-size: 16px;
    padding: 5px;
    line-height: 1.6;
}
.navside {
    display: block;
    margin: 0;
    padding: 0;
}

.navside a {
    display: block;
    padding: 12px 16px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    transition: all 0.2s ease;
}

.navside a:hover {
    background: #eef2ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
    text-decoration: none;
}

.navside a:first-child {
    border-top: none;
}
.panel_on {
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    background: #2563eb;
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
}
.panel_off {
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-block;
}
ul {
    font-size: 16px;
}
ul ul {
    font-size: 17px;
    line-height: 20px;
}
.steps {
    color: #059669;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 5px;
}
.pagenav {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    width: 32px;
    line-height: 30px;
}
.pagenav a {
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    background: #f1f5f9;
    border-radius: 8px;
    width: 100%;
    display: block;
}
.pagenav a:hover {
    color: #ffffff;
    background: #2563eb;
}
.quote {
    font-size: 14px;
    padding: 12px;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    margin-left: 20px;
}
.album {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.tooltip {
    color: #1e293b;
    font-size: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
}
.tooltip img {
    border: #e2e8f0 1px solid;
    border-radius: 8px;
    margin: 5px;
}
.bgcol {
    background: #fafafa;
}
.mess {
    font-size: 16px;
    padding: 4px;
}
.mess img {
    border: 0;
}
.block4 {
    float: left;
    width: 336px;
    height: 280px;
    background: #e2e8f0;
    vertical-align: bottom;
    bottom: 0px;
    margin: 1em 3em 2em 0;
    border-radius: 16px;
}
.right {
    float: left;
    height: 280px;
    width: 336px;
    margin: 0em 2em 1em 0em;
}
.float {
    clear: both;
    width: 160px;
    height: 600px;
    background: #e2e8f0;
    float: right;
    margin: 2em 0 2em 3em;
    border-radius: 16px;
}
.right2 {
    float: right;
    height: 600px;
    width: 0;
}
.float2 {
    clear: both;
    width: 336px;
    height: 280px;
    background: #e2e8f0;
    float: left;
    margin: 2em 3em 2em 0;
    border-radius: 16px;
}
.search {
    background: #fef9c3;
}
code {
    font-family: 'JetBrains Mono', 'Segoe UI', monospace;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    overflow: auto;
    box-sizing: border-box;
}
.news {
    padding: 12px;
    margin: 8px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}
.items {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    transition: all 0.2s ease;
}
.items:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.hot {
    background: #fef9c3;
    border: 1px solid #facc15;
}
.input-button {
    width: 100%;
    font-size: 15px;
    text-decoration: underline;
    text-align: center;
    background-color: #ffffff;
    border: 0px solid #ccc;
    color: #dc2626;
    margin: 0 auto;
}
.input-button2 {
    width: 20%;
    background: #f1f5f9;
    color: #2563eb;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
}
.svet5 {
    position: absolute;
    top 160px;
    left 40px;
}
.altik22 {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.glvn {
    background-color: #f8fafc;
    border-top: 3px solid #f59e0b;
    border-bottom: 2px solid #2563eb;
    text-align: left;
    padding: 1em;
    margin: 0 0 16px 0;
    border-radius: 16px;
}
.glvnz {
    background-color: #f8fafc;
    border-top: 3px solid #f59e0b;
    border-bottom: 2px solid #10b981;
    text-align: left;
    padding: 1em;
    margin: 0 0 16px 0;
    border-radius: 16px;
}
.navniz {
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    color: #2563eb;
}
.navniz a {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    text-decoration: none;
    color: #2563eb;
    font-size: 12px;
}
.navniz a:hover {
    color: #1e40af;
}

/* ===== ØÀÏÊÀ ÑÀÉÒÀ (ÑÎÂÐÅÌÅÍÍÀß) ===== */

.modern-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 3px solid #2563eb;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #475569;
    font-style: italic;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.header-links a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border-radius: 30px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.header-links a:hover {
    background: #eef2ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .modern-header {
        padding: 15px;
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .header-logo {
        justify-content: center;
    }
    .header-right {
        align-items: center;
    }
    .header-links {
        justify-content: center;
    }
    .header-links a {
        white-space: normal;
        text-align: center;
    }
    .logo-text h1 {
        font-size: 20px;
    }
    .logo-text p {
        font-size: 13px;
    }
    .logo-icon {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 600px) {
    .header-links {
        flex-direction: column;
        width: 100%;
    }
    .header-links a {
        text-align: center;
    }
}

/* ===== ÀÄÀÏÒÀÖÈß ÏÎÄ ÌÎÁÈËÜÍÛÅ ===== */
@media (max-width: 768px) {
    body {
        padding: 8px;
        font-size: 16px;
    }
    .main {
        padding: 16px;
        font-size: 17px;
    }
    .leftblock {
        width: 100%;
        display: block;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .contentname {
        font-size: 24px;
    }
    .topmenu {
        white-space: normal;
    }
    .topmenu a {
        display: inline-block;
        margin: 4px;
    }
}