/* ================================================================
   VASIYLIK KENGASHI SAHIFASI
   ================================================================ */

:root {
    --primary:   #1566B7;
    --primary-d: #0d47a1;
    --gold:      #FFD54F;
    --text:      #2c3e50;
    --muted:     #5f738c;
    --light-bg:  #f8faff;
    --border:    #e5efff;
    --dark-bg:   #0e1a2b;
}

/* ── HEADER ── */
.vk-header {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
}
.vk-header-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.vk-orb-1 { width: 320px; height: 320px; left: -80px; bottom: -80px; background: rgba(255,255,255,0.05); }
.vk-orb-2 { width: 440px; height: 440px; right: -120px; top: -120px; background: rgba(255,255,255,0.04); }
.vk-header-inner { position: relative; z-index: 2; }

.vk-header .breadcrumb { background: none; padding: 0; margin-bottom: 20px; }
.vk-header .breadcrumb-item,
.vk-header .breadcrumb-item a { color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none; font-family: sans-serif; }
.vk-header .breadcrumb-item a:hover { color: var(--gold); }
.vk-header .breadcrumb-item.active { color: #fff; }
.vk-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); }

.vk-header-tag {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); background: rgba(255,213,79,0.12);
    border: 1px solid rgba(255,213,79,0.25);
    padding: 5px 16px; border-radius: 20px; margin-bottom: 16px; font-family: sans-serif;
}
.vk-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.vk-header h1 em { font-style: italic; color: var(--gold); }
.vk-header-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.6); font-family: sans-serif; }
body.dark .vk-header { background: linear-gradient(135deg, #060c18 0%, #0a1628 100%); }

/* ── SECTION ── */
.vk-section { background: var(--light-bg); padding: 56px 0 88px; }
body.dark .vk-section { background: #0a1525; }

/* ── LAYOUT ── */
.vk-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: flex-start;
}

/* ── SIDEBAR ── */
.vk-sidebar { position: sticky; top: 24px; }

.vk-nav-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(21,102,183,0.07);
    overflow: hidden;
}
body.dark .vk-nav-card { background: #1a2740; border-color: rgba(255,255,255,0.07); }

.vk-nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted);
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
}
body.dark .vk-nav-title { color: #64748b; border-color: rgba(255,255,255,0.07); }

.vk-nav { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

.vk-nav-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 600; font-family: sans-serif;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: left;
    width: 100%;
}
.vk-nav-btn i { font-size: 15px; color: var(--muted); transition: color 0.2s; width: 18px; }
.vk-nav-btn:hover { background: var(--light-bg); color: var(--primary); }
.vk-nav-btn:hover i { color: var(--primary); }
.vk-nav-btn.active { background: linear-gradient(135deg, rgba(21,102,183,0.1), rgba(21,102,183,0.06)); color: var(--primary-d); }
.vk-nav-btn.active i { color: var(--primary); }
body.dark .vk-nav-btn { color: #cbd5e0; }
body.dark .vk-nav-btn i { color: #64748b; }
body.dark .vk-nav-btn:hover { background: #1f2f4a; color: #90caf9; }
body.dark .vk-nav-btn.active { background: rgba(21,102,183,0.2); color: #90caf9; }
body.dark .vk-nav-btn.active i { color: #90caf9; }

/* ── KONTENT ── */
.vk-content {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px rgba(21,102,183,0.07);
    overflow: hidden;
}
body.dark .vk-content { background: #1a2740; border-color: rgba(255,255,255,0.07); }

/* Content header */
.vk-content-header {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--light-bg);
    position: relative;
}
.vk-content-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.dark .vk-content-header { background: #111e33; border-color: rgba(255,255,255,0.07); }

.vk-content-header > i {
    font-size: 24px; color: var(--primary);
    margin-top: 4px; flex-shrink: 0;
}
body.dark .vk-content-header > i { color: #90caf9; }

.vk-content-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 900;
    color: var(--primary-d); margin: 0 0 6px;
    line-height: 1.3;
}
body.dark .vk-content-header h2 { color: #90caf9; }

.vk-content-header p {
    font-size: 13px; color: var(--muted);
    font-family: sans-serif; margin: 0;
}
body.dark .vk-content-header p { color: #64748b; }

/* ── NIZOM ── */
.vk-doc-body { padding: 32px; display: flex; flex-direction: column; gap: 32px; }

.vk-chapter {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.vk-chapter.visible { opacity: 1; transform: translateY(0); }

.vk-chapter-title {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}
body.dark .vk-chapter-title { border-color: rgba(255,255,255,0.08); }

.vk-chapter-num {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 14px; font-weight: 900;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(21,102,183,0.25);
}

.vk-chapter-title h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px; font-weight: 700;
    color: var(--dark-bg); margin: 0;
}
body.dark .vk-chapter-title h3 { color: #e8eeff; }

.vk-chapter-text { display: flex; flex-direction: column; gap: 14px; }

.vk-clause {
    display: flex; gap: 12px;
    opacity: 0; transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.vk-clause.visible { opacity: 1; transform: translateX(0); }

.vk-clause-num {
    font-family: 'Playfair Display', serif;
    font-size: 13px; font-weight: 700;
    color: var(--primary); min-width: 28px;
    padding-top: 1px; flex-shrink: 0;
}
body.dark .vk-clause-num { color: #90caf9; }

.vk-clause p {
    font-family: 'Source Serif 4', serif;
    font-size: 14.5px; line-height: 1.85;
    color: #4a5568; font-weight: 300; margin: 0;
}
body.dark .vk-clause p { color: #94a3b8; }

.vk-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.vk-list li {
    font-family: 'Source Serif 4', serif;
    font-size: 14px; line-height: 1.7;
    color: #4a5568; font-weight: 300;
}
body.dark .vk-list li { color: #94a3b8; }
.vk-list li::marker { color: var(--primary); }

/* ── TARKIB ── */
.vk-search-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    background: var(--light-bg);
}
body.dark .vk-search-bar { background: #111e33; border-color: rgba(255,255,255,0.07); }
.vk-search-bar i { color: var(--muted); font-size: 14px; }
.vk-search-bar input {
    flex: 1; border: none; background: transparent;
    font-size: 14px; font-family: sans-serif;
    color: var(--text); outline: none;
}
body.dark .vk-search-bar input { color: #e2e8f0; }
.vk-search-bar input::placeholder { color: var(--muted); }

.vk-table-wrap { overflow-x: auto; }

.vk-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 14px;
}

.vk-table thead tr {
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
}
.vk-table thead th {
    padding: 14px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: left;
}

.vk-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.18s;
}
.vk-table tbody tr:last-child { border-bottom: none; }
.vk-table tbody tr:hover { background: var(--light-bg); }
body.dark .vk-table tbody tr { border-color: rgba(255,255,255,0.05); }
body.dark .vk-table tbody tr:hover { background: #1f2f4a; }

.vk-table tbody td {
    padding: 13px 16px;
    color: var(--text);
    vertical-align: middle;
    line-height: 1.5;
}
body.dark .vk-table tbody td { color: #cbd5e0; }

.vk-table tbody td strong { color: var(--dark-bg); font-weight: 700; }
body.dark .vk-table tbody td strong { color: #e2e8f0; }

/* Rol badge */
.vk-role {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    font-family: sans-serif;
    background: rgba(21,102,183,0.08);
    color: var(--primary);
    white-space: nowrap;
}
.vk-role-rais {
    background: linear-gradient(135deg, var(--primary-d), var(--primary));
    color: #fff;
    box-shadow: 0 3px 10px rgba(21,102,183,0.25);
}
body.dark .vk-role { background: rgba(21,102,183,0.2); color: #90caf9; }

/* Jadval footer */
.vk-table-footer {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 28px;
    border-top: 2px solid var(--border);
    font-size: 13px; font-family: sans-serif;
    color: var(--muted);
}
.vk-table-footer strong { color: var(--primary); font-size: 16px; font-family: 'Playfair Display', serif; }
body.dark .vk-table-footer { border-color: rgba(255,255,255,0.07); color: #64748b; }
body.dark .vk-table-footer strong { color: #90caf9; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .vk-layout { grid-template-columns: 1fr; }
    .vk-sidebar { position: static; }
    .vk-nav { flex-direction: row; }
    .vk-nav-btn { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
    .vk-doc-body { padding: 20px 16px; }
    .vk-content-header { padding: 20px 16px; }
    .vk-search-bar { padding: 12px 16px; }
    .vk-table-footer { padding: 12px 16px; }
    .vk-table thead th,
    .vk-table tbody td { padding: 10px 10px; font-size: 13px; }
}