:root {
    --sonelie-ink: #0b1020;
    --sonelie-ink-2: #0a0f1a;
    --sonelie-surface: rgba(255,255,255,0.06);
    --sonelie-surface-2: rgba(255,255,255,0.10);
    --sonelie-border: rgba(255,255,255,0.12);
    --sonelie-text: rgba(255,255,255,0.92);
    --sonelie-muted: rgba(255,255,255,0.65);
    --sonelie-accent: #d7b56d;
    --sonelie-accent-2: #7c5cff;
    --sonelie-danger: #ff5c7a;
}

html, body {
    color: var(--sonelie-text);
    background: radial-gradient(1200px 700px at 20% 10%, rgba(124,92,255,0.25), rgba(11,16,32,0.9) 55%),
    radial-gradient(900px 600px at 80% 0%, rgba(215,181,109,0.12), rgba(11,16,32,0.85) 55%),
    linear-gradient(180deg, var(--sonelie-ink), var(--sonelie-ink-2));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Fine grain (modern depth, avoids flat gradients) */
body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.10;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180" viewBox="0 0 180 180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="180" height="180" filter="url(%23n)" opacity="0.55"/></svg>');
    background-size: 220px 220px;
    mix-blend-mode: overlay;
}

/* Ensure content is above background layers */
body > * { position: relative;  }

/* === Base background wrapper === */
.bg-cosmos {
    position: fixed;
    inset: -15%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.48;
    transform: translateZ(0);
    will-change: transform;
}

.bg-cosmos svg {
    width: 100%;
    height: 120%;
    display: block;
    margin-top: 115px;
}

/* === Subtle grid === */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.10;
    background-image:
        linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(600px 360px at 70% 10%, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(600px 360px at 70% 10%, #000 40%, transparent 75%);
}

/* === Lightweight starfield === */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
    background-image:
        radial-gradient(1px 1px at 30px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 300px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 460px 160px, rgba(255,255,255,0.35), transparent),
        radial-gradient(1.5px 1.5px at 620px 40px, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 780px 140px, rgba(255,255,255,0.35), transparent);
    background-size: 900px 240px;
    transform: translateZ(0);
}

/* === Mobile optimization === */
@media (max-width: 768px) {
    .bg-grid {
        display: none;
    }

    .stars {
        opacity: 0.5;
    }

    .bg-cosmos {
        opacity: 0.45;
    }
}


/* Top info bar */
/* (Topbar removed) */
/* Navbar */
.navbar {
    position: relative;
    z-index: 1030;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(10,15,26,0.72), rgba(10,15,26,0.38));
    box-shadow: 0 18px 70px rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.92) !important;
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;

    /* no выделения — чистый бренд */
    padding: 0;
    border-radius: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.navbar-brand:hover { color: rgba(255,255,255,0.98) !important; }

/* Logo (mono, nocturnal, abstract) */
.logo { display: inline-flex; align-items: center; gap: 10px; }

.logo-word {
    font-size: 1.02rem;
    letter-spacing: 0.30em;
    font-weight: 800;
    color: rgba(255,255,255,0.94);
    text-shadow: 0 12px 28px rgba(0,0,0,0.40);
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 14px 40px rgba(0,0,0,0.48);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark:before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.90);
    opacity: 0.95;
}

.logo-mark:after {
    content: "";
    position: absolute;
    inset: 9px 5px 9px 12px;
    border-radius: 50%;
    background: rgba(11,16,32,0.98);
}

/* Tiny highlight notch (still mono) */
.logo-mark i { display: none; }



.nav-link {
    color: rgba(255,255,255,0.70) !important;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-link:after {
    content: "";
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.15rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(215,181,109,0), rgba(215,181,109,0.65), rgba(215,181,109,0));
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-link:hover { color: rgba(255,255,255,0.98) !important; }

/* Shift main menu away from logo */
.nav-main { margin-left: 2.2rem; }
.nav-link:hover:after { opacity: 1; transform: translateY(0); }

.nav-link:hover { color: rgba(255,255,255,0.98) !important; }

.footer .nav-main {
    margin: 0;
}
.footer .navbar-nav {
    flex-direction: column;
}

.btn-glow,
.btn-glow:hover,
.btn-glow:active,
.btn-glow:focus,
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #111;
    background: linear-gradient(90deg, var(--sonelie-accent), #f3d28a);
    border: 0;
    box-shadow: 0 10px 22px rgba(215,181,109,0.18);
    font-weight: 600;
}

.btn-glow:hover, .btn-primary:hover { filter: brightness(1.03); }

.btn-ghost {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
}

.btn-ghost:hover { background: rgba(255,255,255,0.10); }

/* Global links: remove default blue, improve contrast */
a, .btn-link { color: rgba(215,181,109,0.92); text-decoration: none; }
a:hover, .btn-link:hover { color: rgba(255,255,255,0.98); text-decoration: none; }
a:focus, .btn-link:focus,
a:active, .btn-link:active { color: rgba(255,255,255,0.98); outline: none; }

/* Unify shapes: pills for buttons + tags */
.btn { border-radius: 999px; }
.btn-sm { border-radius: 999px; }

.btn-ghost, .btn-glow, .btn-primary {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.btn-ghost.btn-sm, .btn-glow.btn-sm {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* User (navbar) */

.nav-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}

.nav-auth-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.98); }

.nav-user {

    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1px;
}

.nav-user .user-label {
    color: rgba(255,255,255,0.64);
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.90rem;
}

.user-menu { position: relative; vertical-align: middle; }

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.22rem 0.32rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    text-decoration: none;
}

.user-trigger:hover { background: rgba(255,255,255,0.06); }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-block;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}

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

.user-caret {
    color: rgba(255,255,255,0.70);
    font-size: 0.85rem;
    margin-left: 2px;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 12px;
    min-width: 230px;
    padding: 0.55rem;
    border-radius: 16px;
    background: rgba(10,15,26,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 26px 110px rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    z-index: 5000;
}

.user-dropdown:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.btn {
    cursor: pointer;
}

.dmtop {
    background-image: url(../images/arrow.png) !important;
    border-radius: 999px;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
    z-index: 9999;
    width: 40px;
    height: 40px;
    text-indent: -99999px;
    position: fixed;
    bottom: -100px;
    right: 25px;
    cursor: pointer;
    -webkit-transition: all .7s ease-in-out;
    -moz-transition: all .7s ease-in-out;
    -o-transition: all .7s ease-in-out;
    -ms-transition: all .7s ease-in-out;
    transition: all .7s ease-in-out;
    overflow: hidden;
}

.nav-search .input-group {
    max-width: 220px;
}

.user-dropdown-item {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    color: rgba(255,255,255,0.90);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.user-dropdown-item i {
    width: 18px;
    margin-right: 0.5rem;
    color: rgba(215,181,109,0.95);
}

.user-dropdown-item:hover {
    color: rgba(255,255,255,0.98);
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 0.45rem 0.35rem;
}

/* Responsive navbar behavior (Bootstrap 4 alpha.6 quirks safe) */
@media (max-width: 767px) {
    /* Mobile: force vertical nav inside collapse */
    #sonelieNav .navbar-nav { flex-direction: column !important; width: 100%; }
    #sonelieNav .navbar-nav .nav-item { width: 100%; }

    /* Use CSS grid to guarantee: left button / centered brand / right user */
    .nav-mobile {
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        column-gap: 0;
    }

    .navbar-toggler {
        grid-column: 1;
        justify-self: start;
        width: 44px;
        height: 44px;
        padding: 0;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 12px;
        color: rgba(255,255,255,0.92);
        font-size: 1.05rem;
        line-height: 1;
    }

    .navbar-toggler:focus { outline: none; }

    .navbar-brand {
        grid-column: 2;
        justify-self: center;
        margin: 0;
    }

    .nav-user.d-md-none {
        grid-column: 3;
        justify-self: end;
        width: 44px;
        height: 44px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .nav-user.d-md-none .user-avatar { width: 36px; height: 36px; }
    .nav-user.d-md-none .user-trigger { padding: 0; background: transparent; border: 0; box-shadow: none; }

    /* Collapse lives on the next row, full width, does not move the top row */
    #sonelieNav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .navbar-collapse {
        padding-top: 0.9rem;
    }

    /* Mobile menu should not stick to the left edge */
    .nav-main { margin-left: 0; width: 100%; padding-left: 25px; padding-right: 10px; }
    .nav-main .nav-item { width: 100%; }
    .nav-main .nav-link { padding: 0.7rem 0; }

    /* User dropdown: tap-friendly (focus) */
    .user-menu:focus-within .user-dropdown { display: block; }
    .user-menu:focus .user-dropdown { display: block; }
}

@media (min-width: 768px) {
    /* Desktop: keep navbar layout stable, do not stretch items across full width */
    #sonelieNav { display: flex !important; align-items: center; width: auto; flex: 1 1 auto; }
    #sonelieNav.collapse { height: auto !important; }

    .navbar-collapse { justify-content: flex-start; }
    .navbar-nav { flex-direction: row; width: auto; }
    .nav-main { margin-left: 2.2rem; width: auto; padding-left: 0; padding-right: 0; }

    /* Put search and user to the far right */
    .nav-search { margin-left: auto !important; }

    /* Desktop: open user dropdown on hover */
    .user-menu:hover .user-dropdown { display: block; }
}

@media (max-width: 575px) {
    .nav-user .user-label { display: none; }
}

/* Hero */
.hero {
    padding: 3.25rem 0 2.25rem;
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    left: -120px;
    top: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(124,92,255,0.35), rgba(124,92,255,0.00) 60%);
    filter: blur(1px);
    opacity: 0.9;
    pointer-events: none;
}

.hero:after {
    content: "";
    position: absolute;
    right: -180px;
    top: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, rgba(215,181,109,0.25), rgba(215,181,109,0.00) 62%);
    filter: blur(1px);
    opacity: 0.8;
    pointer-events: none;
}

.hero-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.08;
}

.hero-sub {
    color: var(--sonelie-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 22px 80px rgba(0,0,0,0.45);
    overflow: hidden;
}

.hero-card-header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-card-header small { color: var(--sonelie-muted); }

.pill {
    font-size: 0.82rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(124,92,255,0.18);
    border: 1px solid rgba(124,92,255,0.35);
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero-card-body { padding: 1.15rem; }

.form-control, .custom-select {
    background: rgba(10,15,26,0.35);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
}

.form-control:focus, .custom-select:focus {
    border-color: rgba(215,181,109,0.55);
    box-shadow: 0 0 0 0.2rem rgba(215,181,109,0.12);
    background: rgba(10,15,26,0.40);
    color: rgba(255,255,255,0.95);
}

.form-control::placeholder { color: rgba(255,255,255,0.45); }

/* Sections */
.section {
    padding: 2.25rem 0;
}

.section-title {
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.section-sub {
    color: var(--sonelie-muted);
    margin-bottom: 1.25rem;
}

.surface {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
}

.feature {
    padding: 1.15rem;
    height: 100%;
}

.feature i {
    color: var(--sonelie-accent);
    margin-right: 0.55rem;
}

.feature h6 {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.feature p {
    color: var(--sonelie-muted);
    margin-bottom: 0;
    line-height: 1.55;
}

/* Blog cards */
.post-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 18px 70px rgba(0,0,0,0.35);
}

.post-cover {
    height: 220px;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}
.post-page .main-cover {
    height: 320px;
}
.article {
    padding: 1.15rem 1.15rem 0.9rem;
}
.pp {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.toc {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.toc .toc-title {
    font-weight: 800;
    margin-bottom: 0.6rem;
}
.toc a {
    color: rgba(255, 255, 255, 0.88);
}
.toc a:hover {
    text-decoration: underline;
}

.post-card-stats {
    display: inline-block;
    position: absolute;
    right: 30px;
}

.post-card-stats small {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.70);
}

.post-cover:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 18px 22px, rgba(255,255,255,0.55), rgba(255,255,255,0)),
        radial-gradient(1px 1px at 64px 54px, rgba(255,255,255,0.40), rgba(255,255,255,0)),
        radial-gradient(2px 2px at 150px 42px, rgba(255,255,255,0.38), rgba(255,255,255,0)),
        radial-gradient(1px 1px at 220px 96px, rgba(255,255,255,0.35), rgba(255,255,255,0));
    opacity: 0.55;
}

.post-body { padding: 1.05rem 1.05rem 0.85rem; }

.post-meta {
    color: rgba(255,255,255,0.60);
    font-size: 0.88rem;
}

.post-title {
    font-weight: 800;
    margin: 1rem 0 0.75rem;
    line-height: 1.2;
}

.post-excerpt {
    color: rgba(255,255,255,0.70);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.badge-soft {
    display: inline-block;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    background: rgba(215,181,109,0.16);
    border: 1px solid rgba(215,181,109,0.28);
    color: rgba(255,255,255,0.92);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.badge-soft:hover {
    color: rgba(255,255,255,0.98);
    background: rgba(215,181,109,0.22);
    border-color: rgba(215,181,109,0.38);
}

/* Sidebar */
.sidebar-card {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
}

.sidebar-title {
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.sidebar-link {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
}

.sidebar-link:hover { color: rgba(255,255,255,0.98); }

/* Readability + background continuity (not a plain gradient, but a subtle dark veil) */
.main-wrap {
    position: relative;
}

.main-wrap:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,16,32,0.10), rgba(11,16,32,0.55) 35%, rgba(10,15,26,0.78));
    pointer-events: none;
    z-index: 0;
}

.main-wrap > * { position: relative; z-index: 1; }

/* Soft section separators (modern, minimal) */
.section {
    position: relative;
}

.section:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.00), rgba(255,255,255,0.10), rgba(255,255,255,0.00));
    opacity: 0.9;
}

/* Social blocks */
.social-icon{
    width:46px;
    height:46px;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.25rem;
    flex-shrink:0;
    box-shadow:0 14px 34px rgba(0,0,0,0.35);
}

.social-telegram{
    background: radial-gradient(circle at 30% 30%, #5fbfff, #229ED9);
    color:#fff;
}

.social-vk{
    background: radial-gradient(circle at 30% 30%, #6aa9ff, #4C75A3);
    color:#fff;
}

.social-icon i{ transform: translateX(1px); }

/* CTA */
.cta {
    padding: 2.25rem 0;
}

.cta-panel {
    background:
        radial-gradient(400px 220px at 20% 40%, rgba(215,181,109,0.22), rgba(215,181,109,0.00) 62%),
        radial-gradient(500px 260px at 80% 30%, rgba(124,92,255,0.28), rgba(124,92,255,0.00) 62%),
        rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 1.4rem 1.35rem;
    box-shadow: 0 22px 80px rgba(0,0,0,0.38);
}

/* Footer */
.footer {
    padding: 2.25rem 0 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.22);
}

.footer a { color: rgba(255,255,255,0.70); text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,0.95) !important; transform: none !important; }
.footer a:hover:after { display: none !important; }

.tiny { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* Helpers */
.text-muted-2 { color: var(--sonelie-muted) !important; }
.divider {
    height: 1px;
    background: rgba(255,255,255,0.10);
    margin: 1rem 0;
}

.modal {
    top: 20%
}
.modal-content {
    background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 92, 255, 0.25), rgba(11, 16, 32, 0.9) 55%), radial-gradient(900px 600px at 80% 0%, rgba(215, 181, 109, 0.12), rgba(11, 16, 32, 0.85) 55%), linear-gradient(180deg, var(--sonelie-ink), var(--sonelie-ink-2));
    min-height: 150px;
}
.modal-content .close {
    color: var(--sonelie-text);
}
.modal-content .form-check {
    margin-left: 25px;
}
.modal-content .form-check-label {
    padding-left: 0.25rem;
}

.page-hero {
    padding: 1.6rem 0 1rem;
}
.page-sub {
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.7;
    margin: 0;
}

.tag-cloud ul {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    list-style: none;
}
.tag-letter {
    font-size: 1.5rem;
}

.pagination .page-link {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-radius: 999px !important;
    margin: 0 0.25rem;
}
.pagination .page-item:first-child .page-link {
    border-bottom-right-radius: 0.25rem !important;
    border-top-right-radius: 0.25rem !important;
}
.pagination .page-item:last-child .page-link {
    border-bottom-left-radius: 0.25rem !important;
    border-top-left-radius: 0.25rem !important;
}

.pagination .page-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.98); }

.post-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
}
.breadcrumbs {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.92rem;
}
.badge-soft {
    display: inline-block;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    background: rgba(215, 181, 109, 0.16);
    border: 1px solid rgba(215, 181, 109, 0.28);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.article h2 {
    font-weight: 900;
    margin-top: 1.35rem;
    margin-bottom: 0.65rem;
}
.article p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.like-link.liked {
    color: rgba(215, 181, 109, 0.92);
}
.post-sharing {
    margin: 2rem auto 0;
}

.ya-share2__badge {
    background: linear-gradient(90deg, var(--sonelie-accent), #f3d28a);
    border: 0;
    box-shadow: 0 10px 22px rgba(215, 181, 109, 0.18);
    margin: 0 0.5rem;
}

.invalid-feedback {
    color: red;
    font-size: 13px;
    font-weight: normal;
    z-index: 999;
}

.comment-form-wrapper {
    width: 100%;
}

#post-comments {
    margin: 1rem auto;
    width: 100%;
}
.comment-item {
    padding: 15px;
    margin: 15px auto;
}
.comment-avatar {
    width: 50px;
    border-radius: 15px;
    margin-right: 1rem;
}
.comment-item .user_name {
    font-size: 1.2rem;
}
.comment-content {
    padding: 15px;
    border-radius: 5px;
}

.latest-comments .comment-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.sidebar-card a {
    font-weight: 900 !important;
    color: rgba(255,255,255,0.90) !important;
}

.pad {
    padding: 15px;
}

.profile img,
.post-search img {
    border-radius: 10px;
}

a.notification-link {
    color: rgba(255,255,255,0.90) !important;
}

.user-avatar .unread-alarm {
    position: absolute;
    top: 2px;
    right: 22px;
}

.notification-link .new {
    border: rgba(215,181,109,0.55) 1px solid;
}

.post-search .blog-meta small {
    margin-right: 5px;
}
.post-search .read-button {
    float: right;
    display: block;
    width: 85px;
    margin-top: 20px;
}
.post-search mark {
    padding: 0.1em;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--sonelie-accent), #f3d28a);
}
.post-search .post-media {
    margin-bottom: 10px;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    .hero { padding-top: 2.5rem; }
    .post-cover { height: 150px; }
}

@media (max-width: 575px) {
    .hero { padding-top: 2.1rem; }
    .hero-title { font-size: 2.05rem; }
    .tag-cloud ul {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }
    h1 {
        word-break: break-word;
        font-size: 2.05rem !important;
    }
    .user-avatar .unread-alarm {
        top: -3px;
        right: -5px;
    }
}
