/* Glass Mag — Full stylesheet */

/* Self-hosted fonts */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/templates/glass-mag/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/templates/glass-mag/inter-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/templates/glass-mag/inter-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/templates/glass-mag/inter-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/templates/glass-mag/inter-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #0f0a1e;
    --ink-soft: #2d2640;
    --gray: #5b5566;
    --gray-light: #7d7790;
    --line: rgba(124, 58, 237, 0.12);
    --soft: rgba(124, 58, 237, 0.04);
    --bg: #f8f7fb;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-dark: #5b21b6;
    --rose: #f472b6;
    --indigo: #6366f1;
    --hff: 'Sora', sans-serif;
    --bff: 'Inter', sans-serif;
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1280px;
    --shadow: 0 8px 32px rgba(91, 33, 182, 0.1);
    --shadow-lg: 0 20px 60px rgba(91, 33, 182, 0.16);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--bff);
    color: var(--gray);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.16) 0%, transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.14) 0%, transparent 30%),
        radial-gradient(circle at 72% 82%, rgba(244, 114, 182, 0.13) 0%, transparent 32%),
        radial-gradient(circle at 28% 64%, rgba(124, 58, 237, 0.08) 0%, transparent 26%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--hff); color: var(--ink); font-weight: 700; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { padding: 26px 0 22px; }
.header-inner { display: flex; align-items: center; justify-content: center; }
.site-logo { font-family: var(--hff); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.site-logo .logo-svg { display: flex; align-items: center; }
.site-logo .logo-svg svg { height: 52px; width: auto; max-width: 340px; }
.site-logo img { max-height: 60px; width: auto; }

/* Glass navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.06);
}
.main-nav .container { display: flex; align-items: center; justify-content: center; position: relative; min-height: 64px; }
.nav-menu { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; }
.nav-item > a {
    display: block;
    padding: 12px 16px;
    font-family: var(--hff);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-item > a:hover, .nav-item.active > a { color: var(--accent); background: rgba(124, 58, 237, 0.08); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12); }
.nav-right { position: absolute; right: 24px; display: flex; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-soft); transition: color 0.2s, background 0.2s; }
.icon-btn:hover { color: var(--accent); background: rgba(124, 58, 237, 0.08); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 14px 10px; margin-right: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink-soft); transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: 44px 0 38px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr .95fr; gap: 26px; }
.hero-col-mid { display: flex; flex-direction: column; gap: 26px; }
.hero-col-side { display: flex; flex-direction: column; gap: 18px; }
.card-thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); box-shadow: var(--shadow); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
article:hover .card-thumb img { transform: scale(1.06); }
.hero-big .card-thumb { aspect-ratio: 4/4.3; }
.hero-mid .card-thumb { aspect-ratio: 16/10.4; }
.hero-big h2 { font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 10px 0 0; }
.hero-mid h3 { font-size: 19px; font-weight: 700; line-height: 1.28; margin: 8px 0 0; }

.meta-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-family: var(--hff); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-light); }
.meta-line a { color: var(--accent); transition: color 0.2s; }
.meta-line a:hover { color: var(--accent-dark); }
.meta-line .sep { color: var(--gray-light); opacity: 0.6; }

.rating-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: block;
    height: 30px;
    line-height: 30px;
    padding: 0 11px;
    border-radius: 15px;
    background: rgba(124, 58, 237, 0.9);
    color: #fff;
    font-family: var(--hff);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    backdrop-filter: blur(4px);
}
.rating-badge--sm { top: 8px; left: 8px; height: 20px; line-height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11.5px; }

.mini-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--radius-sm); padding: 10px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); }
.mini-card .card-thumb { width: 92px; height: 72px; flex-shrink: 0; border-radius: var(--radius-sm); box-shadow: none; }
.mini-card h4 { font-size: 14px; font-weight: 700; line-height: 1.32; margin-top: 3px; }

/* Category circles */
.cat-circles { padding: 10px 0 34px; }
.cat-circles-row { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.cat-circles-row::-webkit-scrollbar { height: 6px; }
.cat-circles-row::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 10px; }
.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 118px;
    text-align: center;
    padding: 14px 12px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cat-circle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cc-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(124, 58, 237, 0.15); box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle h3 { font-size: 13.5px; font-weight: 700; }
.cat-circle span { font-size: 11px; color: var(--gray-light); font-family: var(--hff); font-weight: 600; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding-bottom: 60px; }
.main-col { min-width: 0; }

/* Section head */
.section { padding-top: 34px; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .card-thumb { aspect-ratio: 16/10; box-shadow: none; }
.card h3 { font-size: 17px; font-weight: 700; line-height: 1.32; margin-top: 8px; }
.card-excerpt { font-size: 14px; line-height: 1.55; color: var(--gray); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--hff); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.read-more:hover { color: var(--accent-dark); }
.rm-circle { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(124, 58, 237, 0.1); }
.read-more:hover .rm-circle { background: rgba(124, 58, 237, 0.18); }
.rm-circle svg { width: 12px; height: 12px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.widget {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}
.widget-title { font-size: 16px; font-weight: 800; margin-bottom: 18px; letter-spacing: -0.01em; }
.popular-item { display: flex; gap: 14px; margin-bottom: 16px; }
.popular-item:last-child { margin-bottom: 0; }
.popular-item .card-thumb { width: 88px; height: 70px; flex-shrink: 0; border-radius: var(--radius-sm); box-shadow: none; }
.popular-item h4 { font-size: 13.5px; font-weight: 700; line-height: 1.3; margin-top: 3px; }

/* Newsletter widget */
.widget-newsletter {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(99, 102, 241, 0.88));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.nl-title { font-size: 18px; font-weight: 800; line-height: 1.25; margin-bottom: 14px; color: #fff; }
.newsletter-widget-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-widget-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: var(--bff);
    font-size: 14px;
    backdrop-filter: blur(6px);
}
.newsletter-widget-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-widget-form button {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--accent-dark);
    font-family: var(--hff);
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.newsletter-widget-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(91, 33, 182, 0.25); }

/* Category cards sidebar */
.cat-cards { display: flex; flex-direction: column; gap: 12px; }
.cat-card { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/7; box-shadow: var(--shadow); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover img { transform: scale(1.08); }
.cc-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: linear-gradient(90deg, rgba(15, 10, 30, 0.72), transparent 80%);
    color: #fff;
}
.cc-name { font-family: var(--hff); font-weight: 700; font-size: 15px; }
.cc-count { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); font-family: var(--hff); font-weight: 800; font-size: 11px; }

/* Social stats */
.social-stats { display: flex; flex-direction: column; gap: 10px; }
.social-stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--soft); transition: transform 0.2s; }
.social-stat:hover { transform: translateX(3px); }
.ss-left { display: flex; align-items: center; gap: 10px; font-family: var(--hff); font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.ss-left svg { width: 18px; height: 18px; }
.count { font-family: var(--hff); font-weight: 800; font-size: 13px; color: var(--accent); }

/* Footer */
.site-footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    backdrop-filter: blur(12px);
    padding: 50px 0 0;
}
.footer-social-strip { display: flex; justify-content: center; gap: 14px; margin-bottom: 36px; }
.footer-social-strip a { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.55); color: var(--ink-soft); box-shadow: var(--shadow); transition: transform 0.2s, color 0.2s; }
.footer-social-strip a:hover { transform: translateY(-3px); color: var(--accent); }
.footer-social-strip svg { width: 18px; height: 18px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 42px; }
.footer-logo { font-family: var(--hff); font-weight: 800; font-size: 26px; color: var(--ink); }
.footer-desc { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--gray); }
.footer-col h4 { font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--gray); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-newsletter { display: flex; flex-direction: column; gap: 10px; }
.footer-newsletter input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--ink);
    font-family: var(--bff);
    font-size: 14px;
}
.footer-newsletter button {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    color: #fff;
    font-family: var(--hff);
    font-weight: 800;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.footer-newsletter button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray-light); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--gray); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* Back to top */
#back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--accent);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
    z-index: 60;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { color: var(--accent-dark); transform: translateY(-2px); }

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 10, 30, 0.78);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-box { width: min(640px, 90vw); }
.search-box input {
    width: 100%;
    padding: 20px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--hff);
    font-size: 22px;
    backdrop-filter: blur(12px);
}
.search-box input::placeholder { color: rgba(255, 255, 255, 0.55); }
.search-close { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); transition: background 0.2s; }
.search-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Breadcrumb */
.breadcrumb { padding: 22px 0 4px; font-family: var(--hff); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-light); }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.breadcrumb-item a { color: var(--accent); transition: color 0.2s; }
.breadcrumb-item a:hover { color: var(--accent-dark); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 9px; color: var(--gray-light); opacity: 0.5; }
.breadcrumb-item.active { color: var(--ink-soft); }

/* Article */
.article-head { padding: 12px 0 26px; }
.article-head h1 { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 14px 0 16px; max-width: 860px; }
.article-excerpt { font-size: 18px; line-height: 1.55; color: var(--gray); max-width: 760px; }
.article-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--hff); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-light); }
.article-meta-row a { color: var(--accent); transition: color 0.2s; }
.article-meta-row a:hover { color: var(--accent-dark); }
.article-meta-row .sep { opacity: 0.5; }
.avatar-letter { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--rose)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--hff); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.share-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    margin: 4px 0 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.share-pill .share-label { font-family: var(--hff); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-light); padding-right: 6px; }
.share-pill a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: rgba(124, 58, 237, 0.08); transition: color 0.2s, background 0.2s, transform 0.2s; }
.share-pill a:hover { color: var(--accent); background: rgba(124, 58, 237, 0.16); transform: translateY(-2px); }
.share-pill svg { width: 14px; height: 14px; }

.article-featured { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 32px; }
.article-featured img { width: 100%; height: auto; }

.article-content { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.article-content > * + * { margin-top: 1.4em; }
.article-content h2 { font-size: 26px; font-weight: 800; margin-top: 2em; letter-spacing: -0.02em; }
.article-content h3 { font-size: 21px; font-weight: 700; margin-top: 1.8em; }
.article-content p { color: var(--gray); }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--accent-dark); }
.article-content ul, .article-content ol { margin-left: 1.4em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li + li { margin-top: 0.4em; }
.article-content blockquote {
    margin: 1.8em 0;
    padding: 22px 26px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--soft);
    font-style: italic;
    color: var(--ink-soft);
}
.article-content img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.social-share { display: flex; align-items: center; gap: 14px; margin: 36px 0; padding: 18px 22px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.social-share .share-label { font-family: var(--hff); font-weight: 800; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); }
.share-buttons { display: flex; gap: 10px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(124, 58, 237, 0.1); color: var(--ink-soft); transition: color 0.2s, background 0.2s, transform 0.2s; }
.share-btn:hover { color: var(--accent); background: rgba(124, 58, 237, 0.18); transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }

.author-box { display: flex; gap: 18px; padding: 26px; background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(10px); margin-bottom: 36px; }
.author-box-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(124, 58, 237, 0.15); }
.avatar-letter--xl { width: 72px; height: 72px; font-size: 28px; }
.author-box-info h3 { font-size: 17px; font-weight: 800; }
.author-box-info p { margin-top: 6px; font-size: 14px; color: var(--gray); line-height: 1.55; }
.author-box-link { display: inline-block; margin-top: 10px; font-family: var(--hff); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.author-box-link:hover { color: var(--accent-dark); }

/* Category / author page */
.archive-head { padding: 26px 0 32px; }
.archive-head h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; }
.archive-head p { margin-top: 10px; font-size: 16px; color: var(--gray); max-width: 640px; }
.archive-meta { display: flex; gap: 18px; margin-top: 14px; font-family: var(--hff); font-weight: 700; font-size: 13px; color: var(--accent); }

.author-profile { display: flex; align-items: center; gap: 22px; padding: 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(10px); margin-bottom: 32px; }
.author-profile-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(124, 58, 237, 0.15); }
.author-profile h1 { font-size: 30px; font-weight: 800; }
.author-profile p { margin-top: 6px; color: var(--gray); font-size: 15px; line-height: 1.55; }

.author-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.author-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: transform 0.2s, box-shadow 0.2s; }
.author-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.author-card-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(124, 58, 237, 0.12); }
.author-card h3 { font-size: 16px; font-weight: 800; }
.author-card span { font-size: 12px; color: var(--gray-light); font-family: var(--hff); font-weight: 600; }

/* Contact */
.contact-page { padding: 30px 0 60px; }
.contact-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 42px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
    text-align: center;
}
.contact-card h1 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.contact-card p { color: var(--gray); margin-bottom: 26px; line-height: 1.6; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--indigo));
    color: #fff;
    font-family: var(--hff);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 26px rgba(124, 58, 237, 0.32);
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-link:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 58, 237, 0.38); }
.contact-link svg { width: 18px; height: 18px; }

/* Page */
.page-content { padding: 18px 0 60px; }
.page-content h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 18px; }
.page-body { font-size: 17px; line-height: 1.75; color: var(--gray); }
.page-body > * + * { margin-top: 1.4em; }
.page-body h2 { font-size: 26px; font-weight: 800; margin-top: 2em; color: var(--ink); }
.page-body a { color: var(--accent); }

/* 404 */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.error-card {
    max-width: 520px;
    text-align: center;
    padding: 54px 40px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}
.error-code { font-family: var(--hff); font-size: 110px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--rose)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.error-card h1 { font-size: 28px; margin: 18px 0 10px; }
.error-card p { color: var(--gray); margin-bottom: 26px; }
.error-btn { display: inline-flex; padding: 14px 28px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--indigo)); color: #fff; font-family: var(--hff); font-weight: 800; transition: transform 0.2s, box-shadow 0.2s; }
.error-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.32); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--hff); font-weight: 700; font-size: 13px; color: var(--gray); background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow); backdrop-filter: blur(6px); transition: color 0.2s, background 0.2s; }
.pagination a:hover { color: var(--accent); background: rgba(124, 58, 237, 0.08); }
.pagination .current { color: #fff; background: linear-gradient(135deg, var(--accent), var(--indigo)); box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25); }

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero-col-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .layout { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px); flex-direction: column; align-items: stretch; padding: 10px 0; border-bottom: 1px solid rgba(124, 58, 237, 0.1); box-shadow: var(--shadow-lg); }
    .nav-menu.active { display: flex; }
    .nav-item > a { padding: 12px 24px; border-radius: 0; }
    .nav-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-col-side { grid-template-columns: 1fr; }
    .hero-big .card-thumb { aspect-ratio: 16/10; }
    .hero-big h2 { font-size: 22px; }
    .cards-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .article-head h1 { font-size: 29px; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .site-logo { font-size: 28px; }
    .header-inner { padding: 20px 0; }
    .author-list { grid-template-columns: 1fr; }
    .error-code { font-size: 80px; }
}
